@twin.org/identity-cli 0.0.3-next.8 → 0.9.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/es/cli.js +10 -1
- package/dist/es/cli.js.map +1 -1
- package/dist/es/commands/alsoKnownAsAdd.js +108 -0
- package/dist/es/commands/alsoKnownAsAdd.js.map +1 -0
- package/dist/es/commands/alsoKnownAsRemove.js +106 -0
- package/dist/es/commands/alsoKnownAsRemove.js.map +1 -0
- package/dist/es/commands/proofCreate.js +2 -3
- package/dist/es/commands/proofCreate.js.map +1 -1
- package/dist/es/commands/serviceAdd.js +4 -3
- package/dist/es/commands/serviceAdd.js.map +1 -1
- package/dist/es/commands/serviceRemove.js +3 -3
- package/dist/es/commands/serviceRemove.js.map +1 -1
- package/dist/es/commands/setupCommands.js +4 -6
- package/dist/es/commands/setupCommands.js.map +1 -1
- package/dist/es/commands/verifiableCredentialCreate.js +12 -10
- package/dist/es/commands/verifiableCredentialCreate.js.map +1 -1
- package/dist/es/commands/verifiableCredentialVerify.js +24 -5
- package/dist/es/commands/verifiableCredentialVerify.js.map +1 -1
- package/dist/es/commands/verifiablePresentationCreate.js +137 -0
- package/dist/es/commands/verifiablePresentationCreate.js.map +1 -0
- package/dist/es/commands/verifiablePresentationVerify.js +107 -0
- package/dist/es/commands/verifiablePresentationVerify.js.map +1 -0
- package/dist/es/commands/verificationMethodAdd.js +8 -8
- package/dist/es/commands/verificationMethodAdd.js.map +1 -1
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/locales/en.json +251 -39
- package/dist/types/commands/alsoKnownAsAdd.d.ts +30 -0
- package/dist/types/commands/alsoKnownAsRemove.d.ts +30 -0
- package/dist/types/commands/setupCommands.d.ts +2 -2
- package/dist/types/commands/verifiableCredentialCreate.d.ts +2 -2
- package/dist/types/commands/verifiableCredentialVerify.d.ts +3 -1
- package/dist/types/commands/verifiablePresentationCreate.d.ts +32 -0
- package/dist/types/commands/verifiablePresentationVerify.d.ts +24 -0
- package/dist/types/index.d.ts +2 -0
- package/docs/changelog.md +673 -115
- package/docs/reference/classes/CLI.md +1 -1
- package/docs/reference/functions/actionCommandVerifiablePresentationCreate.md +17 -0
- package/docs/reference/functions/actionCommandVerifiablePresentationVerify.md +17 -0
- package/docs/reference/functions/buildCommandVerifiablePresentationCreate.md +11 -0
- package/docs/reference/functions/buildCommandVerifiablePresentationVerify.md +11 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/variables/IdentityConnectorTypes.md +1 -1
- package/docs/reference/variables/IdentityResolverConnectorTypes.md +1 -1
- package/docs/{examples.md → usage.md} +23 -27
- package/locales/en.json +142 -2
- package/package.json +22 -22
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Function: actionCommandVerifiablePresentationCreate()
|
|
2
|
+
|
|
3
|
+
> **actionCommandVerifiablePresentationCreate**(`opts`): `Promise`\<`void`\>
|
|
4
|
+
|
|
5
|
+
Action the verifiable presentation create command.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### opts
|
|
10
|
+
|
|
11
|
+
`object` & `ICliOutputOptionsConsole` & `ICliOutputOptionsEnv` & `ICliOutputOptionsJson`
|
|
12
|
+
|
|
13
|
+
The options for the command.
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Function: actionCommandVerifiablePresentationVerify()
|
|
2
|
+
|
|
3
|
+
> **actionCommandVerifiablePresentationVerify**(`opts`): `Promise`\<`void`\>
|
|
4
|
+
|
|
5
|
+
Action the verifiable presentation verify command.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### opts
|
|
10
|
+
|
|
11
|
+
`object` & `ICliOutputOptionsConsole` & `ICliOutputOptionsEnv` & `ICliOutputOptionsJson`
|
|
12
|
+
|
|
13
|
+
The options for the command.
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Promise`\<`void`\>
|
package/docs/reference/index.md
CHANGED
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
- [actionCommandVerifiableCredentialUnrevoke](functions/actionCommandVerifiableCredentialUnrevoke.md)
|
|
40
40
|
- [buildCommandVerifiableCredentialVerify](functions/buildCommandVerifiableCredentialVerify.md)
|
|
41
41
|
- [actionCommandVerifiableCredentialVerify](functions/actionCommandVerifiableCredentialVerify.md)
|
|
42
|
+
- [buildCommandVerifiablePresentationCreate](functions/buildCommandVerifiablePresentationCreate.md)
|
|
43
|
+
- [actionCommandVerifiablePresentationCreate](functions/actionCommandVerifiablePresentationCreate.md)
|
|
44
|
+
- [buildCommandVerifiablePresentationVerify](functions/buildCommandVerifiablePresentationVerify.md)
|
|
45
|
+
- [actionCommandVerifiablePresentationVerify](functions/actionCommandVerifiablePresentationVerify.md)
|
|
42
46
|
- [buildCommandVerificationMethodAdd](functions/buildCommandVerificationMethodAdd.md)
|
|
43
47
|
- [actionCommandVerificationMethodAdd](functions/actionCommandVerificationMethodAdd.md)
|
|
44
48
|
- [buildCommandVerificationMethodRemove](functions/buildCommandVerificationMethodRemove.md)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Identity CLI Usage
|
|
2
|
+
|
|
3
|
+
Use this output to check available commands quickly before running identity workflows from your terminal.
|
|
2
4
|
|
|
3
5
|
## Running
|
|
4
6
|
|
|
@@ -15,7 +17,7 @@ or run directly using NPX:
|
|
|
15
17
|
npx "@twin.org/identity-cli"
|
|
16
18
|
```
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
## Help
|
|
19
21
|
|
|
20
22
|
```shell
|
|
21
23
|
🌍 TWIN Identity v1.0.0
|
|
@@ -47,13 +49,7 @@ Commands:
|
|
|
47
49
|
proof-verify [options] Verify a proof for some data using a verification method.
|
|
48
50
|
```
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
```shell
|
|
53
|
-
twin-identity identity-create --help
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Output
|
|
52
|
+
## identity-create --help
|
|
57
53
|
|
|
58
54
|
```shell
|
|
59
55
|
🌍 TWIN Identity v1.0.0
|
|
@@ -75,13 +71,19 @@ Options:
|
|
|
75
71
|
-h, --help display help for command
|
|
76
72
|
```
|
|
77
73
|
|
|
74
|
+
## Example
|
|
75
|
+
|
|
76
|
+
```shell
|
|
77
|
+
twin-identity identity-resolve --load-env config.env identity.env --did !DID --json did-document.json
|
|
78
|
+
```
|
|
79
|
+
|
|
78
80
|
The commands `mnemonic`, `address`, `faucet` and `transfer` are described in more detail in the examples for `crypto-cli` and `wallet-cli`.
|
|
79
81
|
|
|
80
82
|
## Command
|
|
81
83
|
|
|
82
84
|
### identity-create
|
|
83
85
|
|
|
84
|
-
Use this command to create a new DID
|
|
86
|
+
Use this command to create a new DID. The wallet address must have sufficient funds to store the identity. The seed and the funds can be generated using the `mnemonic` and `faucet` commands.
|
|
85
87
|
|
|
86
88
|
```shell
|
|
87
89
|
# Generate a seed and mnemonic and store it in the env file
|
|
@@ -90,7 +92,7 @@ twin-identity mnemonic --env wallet.env
|
|
|
90
92
|
twin-identity address --load-env wallet.env --hrp tst --seed !SEED --count 4 --env wallet.env --merge-env
|
|
91
93
|
```
|
|
92
94
|
|
|
93
|
-
To run this on the IOTA testnet you will need an env file with the following settings. Store the following config as config.env
|
|
95
|
+
To run this on the IOTA testnet you will need an env file with the following settings. Store the following config as config.env.
|
|
94
96
|
|
|
95
97
|
```shell
|
|
96
98
|
NODE_URL="https://api.devnet.iota.cafe"
|
|
@@ -111,7 +113,7 @@ twin-identity identity-create --load-env config.env wallet.env --seed !SEED --en
|
|
|
111
113
|
|
|
112
114
|
### identity-resolve
|
|
113
115
|
|
|
114
|
-
The identity resolve
|
|
116
|
+
The identity resolve command looks up an identity by DID to check it exists and return the DID document.
|
|
115
117
|
|
|
116
118
|
```shell
|
|
117
119
|
twin-identity identity-resolve --load-env config.env identity.env --did !DID --json did-document.json
|
|
@@ -119,7 +121,7 @@ twin-identity identity-resolve --load-env config.env identity.env --did !DID --j
|
|
|
119
121
|
|
|
120
122
|
### verification-method-add
|
|
121
123
|
|
|
122
|
-
This command
|
|
124
|
+
This command adds a verification method to a DID document.
|
|
123
125
|
|
|
124
126
|
```shell
|
|
125
127
|
twin-identity verification-method-add --load-env config.env wallet.env identity.env --seed !SEED --did !DID --type verificationMethod --env verification-method.env
|
|
@@ -127,7 +129,7 @@ twin-identity verification-method-add --load-env config.env wallet.env identity.
|
|
|
127
129
|
|
|
128
130
|
### verification-method-remove
|
|
129
131
|
|
|
130
|
-
This command
|
|
132
|
+
This command removes a verification method from a DID document.
|
|
131
133
|
|
|
132
134
|
```shell
|
|
133
135
|
twin-identity verification-method-remove --load-env config.env wallet.env identity.env verification-method.env --seed !SEED --id !DID_VERIFICATION_METHOD_ID
|
|
@@ -135,15 +137,15 @@ twin-identity verification-method-remove --load-env config.env wallet.env identi
|
|
|
135
137
|
|
|
136
138
|
### service-add
|
|
137
139
|
|
|
138
|
-
This command
|
|
140
|
+
This command adds a service to a DID document.
|
|
139
141
|
|
|
140
142
|
```shell
|
|
141
|
-
twin-identity service-add --load-env config.env wallet.env identity.env --seed !SEED --did !DID --id linked-domain --type LinkedDomains --endpoint https://
|
|
143
|
+
twin-identity service-add --load-env config.env wallet.env identity.env --seed !SEED --did !DID --id linked-domain --type LinkedDomains --endpoint https://example.org --env service.env
|
|
142
144
|
```
|
|
143
145
|
|
|
144
146
|
### service-remove
|
|
145
147
|
|
|
146
|
-
This command
|
|
148
|
+
This command removes a service from the DID document.
|
|
147
149
|
|
|
148
150
|
```shell
|
|
149
151
|
twin-identity service-remove --load-env config.env wallet.env identity.env service.env --seed !SEED --did !DID --id !DID_SERVICE_ID
|
|
@@ -151,7 +153,7 @@ twin-identity service-remove --load-env config.env wallet.env identity.env servi
|
|
|
151
153
|
|
|
152
154
|
## verifiable-credential-create
|
|
153
155
|
|
|
154
|
-
This command
|
|
156
|
+
This command generates a verifiable credential using the specified verification method. You will need to supply the data as a json file.
|
|
155
157
|
|
|
156
158
|
```json
|
|
157
159
|
{
|
|
@@ -164,11 +166,7 @@ This command will generate a verifiable credential using the specified verificat
|
|
|
164
166
|
twin-identity verifiable-credential-create --load-env config.env verification-method.env --id !DID_VERIFICATION_METHOD_ID --private-key !DID_VERIFICATION_METHOD_PRIVATE_KEY --credential-id https://example.edu/credentials/3732 --types UniversityDegreeCredential --subject-json subject.json --env vc.env --revocation-index 0
|
|
165
167
|
```
|
|
166
168
|
|
|
167
|
-
This
|
|
168
|
-
|
|
169
|
-
```shell
|
|
170
|
-
eyJraWQiOiJkaWQ6aW90YTp0c3Q6MHgxZTQ3YWQ0MjY4YWI5ZWNhNTFkYTkwNmRkNzE4MDIxZmJkNGYyZGUxYmU5NjA4NmRjMTMzZDQ0MmIwYjk3MzIyI2V5em9GMHFEUmtSQ0FlU1Rmdjd6WWFQNU00U2c2TkJLQUZ6eElhQVBTQzAiLCJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJpc3MiOiJkaWQ6aW90YTp0c3Q6MHgxZTQ3YWQ0MjY4YWI5ZWNhNTFkYTkwNmRkNzE4MDIxZmJkNGYyZGUxYmU5NjA4NmRjMTMzZDQ0MmIwYjk3MzIyIiwibmJmIjoxNzE4MTk3NDA5LCJqdGkiOiJodHRwczovL2V4YW1wbGUuZWR1L2NyZWRlbnRpYWxzLzM3MzIiLCJ2YyI6eyJAY29udGV4dCI6Imh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIiwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCIsIlVuaXZlcnNpdHlEZWdyZWVDcmVkZW50aWFsIl0sImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImRlZ3JlZU5hbWUiOiJCYWNoZWxvciBvZiBTY2llbmNlIGFuZCBBcnRzIiwibmFtZSI6IkFsaWNlIn0sImNyZWRlbnRpYWxTdGF0dXMiOnsiaWQiOiJkaWQ6aW90YTp0c3Q6MHgxZTQ3YWQ0MjY4YWI5ZWNhNTFkYTkwNmRkNzE4MDIxZmJkNGYyZGUxYmU5NjA4NmRjMTMzZDQ0MmIwYjk3MzIyI3Jldm9jYXRpb24iLCJ0eXBlIjoiUmV2b2NhdGlvbkJpdG1hcDIwMjIiLCJyZXZvY2F0aW9uQml0bWFwSW5kZXgiOiIwIn19fQ.O3tMQ1UdGSI2qv9ia3xiT1yTmvpnJKd749POMSy42-SWTWN99HyYr5SEVIDj5cLdCORRP3Se4O7wxPe7_tfmCw
|
|
171
|
-
```
|
|
169
|
+
This command outputs the verifiable credential as a JSON Web Token.
|
|
172
170
|
|
|
173
171
|
## verifiable-credential-verify
|
|
174
172
|
|
|
@@ -196,17 +194,15 @@ twin-identity verifiable-credential-unrevoke --load-env config.env wallet.env id
|
|
|
196
194
|
|
|
197
195
|
## proof-create
|
|
198
196
|
|
|
199
|
-
This command
|
|
197
|
+
This command generates a proof using the specified verification method.
|
|
200
198
|
|
|
201
199
|
```shell
|
|
202
200
|
twin-identity proof-create --load-env config.env verification-method.env --id !DID_VERIFICATION_METHOD_ID --private-key !DID_VERIFICATION_METHOD_PRIVATE_KEY --document-filename unsecured.json --json data-proof.json
|
|
203
201
|
```
|
|
204
202
|
|
|
205
|
-
This will output the proof.
|
|
206
|
-
|
|
207
203
|
## proof-verify
|
|
208
204
|
|
|
209
|
-
This command
|
|
205
|
+
This command verifies a proof for a document.
|
|
210
206
|
|
|
211
207
|
```shell
|
|
212
208
|
twin-identity proof-verify --load-env config.env verification-method.env --id !DID_VERIFICATION_METHOD_ID --document-filename unsecured.json --proof-filename data-proof.json
|
package/locales/en.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"error": {
|
|
3
3
|
"commands": {
|
|
4
|
+
"verifiable-presentation-create": {
|
|
5
|
+
"noCredentialsProvided": "Either --jwt or --json-ld must be provided with at least one credential.",
|
|
6
|
+
"jsonLdFileNotFound": "The JSON-LD credential file was not found."
|
|
7
|
+
},
|
|
8
|
+
"verifiable-credential-verify": {
|
|
9
|
+
"noCredentialProvided": "Either --jwt or --json-ld must be provided.",
|
|
10
|
+
"jsonLdFileNotFound": "The JSON-LD file was not found."
|
|
11
|
+
},
|
|
12
|
+
"verifiable-presentation-verify": {
|
|
13
|
+
"noPresentationProvided": "Either --jwt or --json-ld must be provided.",
|
|
14
|
+
"jsonLdFileNotFound": "The JSON-LD file was not found."
|
|
15
|
+
},
|
|
4
16
|
"verifiable-credential-create": {
|
|
5
17
|
"subjectJsonFileNotFound": "The subject JSON file was not found."
|
|
6
18
|
},
|
|
@@ -185,12 +197,77 @@
|
|
|
185
197
|
"addressIndex": "Address Index"
|
|
186
198
|
}
|
|
187
199
|
},
|
|
200
|
+
"verifiable-presentation-create": {
|
|
201
|
+
"summary": "Create a verifiable presentation.",
|
|
202
|
+
"description": "Create a verifiable presentation.",
|
|
203
|
+
"options": {
|
|
204
|
+
"verification-method-id": {
|
|
205
|
+
"param": "--verification-method-id '<'verification-method-id'>'",
|
|
206
|
+
"description": "The full verification method id including did, or start with ! to read environment variable."
|
|
207
|
+
},
|
|
208
|
+
"private-key": {
|
|
209
|
+
"param": "--private-key '<'private-key'>'",
|
|
210
|
+
"description": "The private key for the verification method id, in either hex or base64 form, or start with ! to read environment variable."
|
|
211
|
+
},
|
|
212
|
+
"presentation-id": {
|
|
213
|
+
"param": "--presentation-id '<'presentation-id'>'",
|
|
214
|
+
"description": "The presentation id which uniquely identifies the presentation."
|
|
215
|
+
},
|
|
216
|
+
"jwt": {
|
|
217
|
+
"param": "--jwt '<'jwt'>'",
|
|
218
|
+
"description": "Comma-separated list of verifiable credential JWTs to include in the presentation, or start with ! to read environment variable."
|
|
219
|
+
},
|
|
220
|
+
"json-ld": {
|
|
221
|
+
"param": "--json-ld '<'json-ld'>'",
|
|
222
|
+
"description": "Comma-separated list of JSON-LD filenames containing verifiable credentials to include in the presentation."
|
|
223
|
+
},
|
|
224
|
+
"expiration-date": {
|
|
225
|
+
"param": "--expiration-date '<'ISO Date'>'",
|
|
226
|
+
"description": "The expiration date for the presentation."
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"progress": {
|
|
230
|
+
"creatingVerifiablePresentation": "Creating Verifiable Presentation",
|
|
231
|
+
"loadingCredentialData": "Loading Credential Data"
|
|
232
|
+
},
|
|
233
|
+
"labels": {
|
|
234
|
+
"verificationMethodId": "Verification Method Id",
|
|
235
|
+
"presentationId": "Presentation Id",
|
|
236
|
+
"jwt": "JWT Credentials",
|
|
237
|
+
"jsonLd": "JSON-LD Credentials",
|
|
238
|
+
"verifiablePresentation": "Verifiable Presentation",
|
|
239
|
+
"expirationDate": "Expiration Date"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"verifiable-presentation-verify": {
|
|
243
|
+
"summary": "Verify a verifiable presentation.",
|
|
244
|
+
"description": "Verify a verifiable presentation.",
|
|
245
|
+
"options": {
|
|
246
|
+
"jwt": {
|
|
247
|
+
"param": "--jwt '<'jwt'>'",
|
|
248
|
+
"description": "The verifiable presentation as a JSON web token to verify, or start with ! to read environment variable."
|
|
249
|
+
},
|
|
250
|
+
"json-ld": {
|
|
251
|
+
"param": "--json-ld '<'json-ld'>'",
|
|
252
|
+
"description": "A JSON-LD file containing the verifiable presentation to verify."
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"progress": {
|
|
256
|
+
"verifyingPresentation": "Verifying Presentation"
|
|
257
|
+
},
|
|
258
|
+
"labels": {
|
|
259
|
+
"jwt": "JWT",
|
|
260
|
+
"jsonLd": "JSON-LD",
|
|
261
|
+
"isVerified": "Is Verified",
|
|
262
|
+
"isRevoked": "Is Revoked"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
188
265
|
"verifiable-credential-create": {
|
|
189
266
|
"summary": "Create a verifiable credential.",
|
|
190
267
|
"description": "Create a verifiable credential.",
|
|
191
268
|
"options": {
|
|
192
|
-
"id": {
|
|
193
|
-
"param": "--id '<'id'>'",
|
|
269
|
+
"verification-method-id": {
|
|
270
|
+
"param": "--verification-method-id '<'verification-method-id'>'",
|
|
194
271
|
"description": "The full verification method id including did, or start with ! to read environment variable."
|
|
195
272
|
},
|
|
196
273
|
"private-key": {
|
|
@@ -234,6 +311,10 @@
|
|
|
234
311
|
"jwt": {
|
|
235
312
|
"param": "--jwt '<'jwt'>'",
|
|
236
313
|
"description": "The verifiable credential as a JSON web token to verify, or start with ! to read environment variable."
|
|
314
|
+
},
|
|
315
|
+
"json-ld": {
|
|
316
|
+
"param": "--json-ld '<'json-ld'>'",
|
|
317
|
+
"description": "A JSON-LD file containing the verifiable credential to verify."
|
|
237
318
|
}
|
|
238
319
|
},
|
|
239
320
|
"progress": {
|
|
@@ -241,6 +322,7 @@
|
|
|
241
322
|
},
|
|
242
323
|
"labels": {
|
|
243
324
|
"jwt": "JWT",
|
|
325
|
+
"jsonLd": "JSON-LD",
|
|
244
326
|
"isVerified": "Is Verified",
|
|
245
327
|
"isRevoked": "Is Revoked"
|
|
246
328
|
}
|
|
@@ -350,6 +432,64 @@
|
|
|
350
432
|
"isVerified": "Is Verified"
|
|
351
433
|
}
|
|
352
434
|
},
|
|
435
|
+
"also-known-as-add": {
|
|
436
|
+
"summary": "Add an alias (alsoKnownAs) to a DID.",
|
|
437
|
+
"description": "Add an alias (alsoKnownAs) to a DID.",
|
|
438
|
+
"options": {
|
|
439
|
+
"seed": {
|
|
440
|
+
"param": "--seed '<'seed'>'",
|
|
441
|
+
"description": "The seed for the private key for the controller address of the document in hex or base64, or start with ! to read environment variable."
|
|
442
|
+
},
|
|
443
|
+
"did": {
|
|
444
|
+
"param": "--did '<'did'>'",
|
|
445
|
+
"description": "The identifier to add the alias to, or start with ! to read environment variable."
|
|
446
|
+
},
|
|
447
|
+
"alias": {
|
|
448
|
+
"param": "--alias '<'alias'>'",
|
|
449
|
+
"description": "The alias (alsoKnownAs) value to add."
|
|
450
|
+
},
|
|
451
|
+
"addressIndex": {
|
|
452
|
+
"param": "--address-index '<'index'>'",
|
|
453
|
+
"description": "The address index to use for the identity controller."
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"progress": {
|
|
457
|
+
"addingAlsoKnownAs": "Adding Alias (alsoKnownAs)"
|
|
458
|
+
},
|
|
459
|
+
"labels": {
|
|
460
|
+
"alias": "Alias (alsoKnownAs)",
|
|
461
|
+
"addressIndex": "Address Index"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"also-known-as-remove": {
|
|
465
|
+
"summary": "Remove an alias (alsoKnownAs) from a DID.",
|
|
466
|
+
"description": "Remove an alias (alsoKnownAs) from a DID.",
|
|
467
|
+
"options": {
|
|
468
|
+
"seed": {
|
|
469
|
+
"param": "--seed '<'seed'>'",
|
|
470
|
+
"description": "The seed for the private key for the controller address of the document in hex or base64, or start with ! to read environment variable."
|
|
471
|
+
},
|
|
472
|
+
"did": {
|
|
473
|
+
"param": "--did '<'did'>'",
|
|
474
|
+
"description": "The identifier to remove the alias from, or start with ! to read environment variable."
|
|
475
|
+
},
|
|
476
|
+
"alias": {
|
|
477
|
+
"param": "--alias '<'alias'>'",
|
|
478
|
+
"description": "The alias (alsoKnownAs) value to remove."
|
|
479
|
+
},
|
|
480
|
+
"addressIndex": {
|
|
481
|
+
"param": "--address-index '<'index'>'",
|
|
482
|
+
"description": "The address index to use for the identity controller."
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"progress": {
|
|
486
|
+
"removingAlsoKnownAs": "Removing Alias (alsoKnownAs)"
|
|
487
|
+
},
|
|
488
|
+
"labels": {
|
|
489
|
+
"alias": "Alias (alsoKnownAs)",
|
|
490
|
+
"addressIndex": "Address Index"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
353
493
|
"common": {
|
|
354
494
|
"options": {
|
|
355
495
|
"connector": {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-cli",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.9.0-next.1",
|
|
4
|
+
"description": "Command line tool for running identity workflows in local development and automation pipelines.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-identity.git",
|
|
8
8
|
"directory": "apps/identity-cli"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "next",
|
|
18
|
-
"@twin.org/core": "next",
|
|
19
|
-
"@twin.org/crypto": "next",
|
|
20
|
-
"@twin.org/crypto-cli": "next",
|
|
21
|
-
"@twin.org/data-json-ld": "next",
|
|
22
|
-
"@twin.org/entity": "next",
|
|
23
|
-
"@twin.org/entity-storage-connector-memory": "next",
|
|
24
|
-
"@twin.org/identity-connector-iota": "0.0
|
|
25
|
-
"@twin.org/identity-models": "0.0
|
|
26
|
-
"@twin.org/nameof": "next",
|
|
27
|
-
"@twin.org/standards-w3c-did": "next",
|
|
28
|
-
"@twin.org/vault-connector-entity-storage": "next",
|
|
29
|
-
"@twin.org/vault-models": "next",
|
|
30
|
-
"@twin.org/wallet-cli": "next",
|
|
31
|
-
"@twin.org/wallet-connector-iota": "next",
|
|
32
|
-
"@twin.org/wallet-models": "next",
|
|
33
|
-
"@twin.org/web": "next",
|
|
34
|
-
"commander": "
|
|
17
|
+
"@twin.org/cli-core": "0.9.0-next.1",
|
|
18
|
+
"@twin.org/core": "0.9.0-next.1",
|
|
19
|
+
"@twin.org/crypto": "0.9.0-next.1",
|
|
20
|
+
"@twin.org/crypto-cli": "0.9.0-next.1",
|
|
21
|
+
"@twin.org/data-json-ld": "0.9.0-next.1",
|
|
22
|
+
"@twin.org/entity": "0.9.0-next.1",
|
|
23
|
+
"@twin.org/entity-storage-connector-memory": "0.9.0-next.1",
|
|
24
|
+
"@twin.org/identity-connector-iota": "0.9.0-next.1",
|
|
25
|
+
"@twin.org/identity-models": "0.9.0-next.1",
|
|
26
|
+
"@twin.org/nameof": "0.9.0-next.1",
|
|
27
|
+
"@twin.org/standards-w3c-did": "0.9.0-next.1",
|
|
28
|
+
"@twin.org/vault-connector-entity-storage": "0.9.0-next.1",
|
|
29
|
+
"@twin.org/vault-models": "0.9.0-next.1",
|
|
30
|
+
"@twin.org/wallet-cli": "0.9.0-next.1",
|
|
31
|
+
"@twin.org/wallet-connector-iota": "0.9.0-next.1",
|
|
32
|
+
"@twin.org/wallet-models": "0.9.0-next.1",
|
|
33
|
+
"@twin.org/web": "0.9.0-next.1",
|
|
34
|
+
"commander": "15.0.0"
|
|
35
35
|
},
|
|
36
36
|
"main": "./dist/es/index.js",
|
|
37
37
|
"types": "./dist/types/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"authentication"
|
|
66
66
|
],
|
|
67
67
|
"bugs": {
|
|
68
|
-
"url": "git+https://github.com/
|
|
68
|
+
"url": "git+https://github.com/iotaledger/twin-identity/issues"
|
|
69
69
|
},
|
|
70
70
|
"homepage": "https://twindev.org"
|
|
71
71
|
}
|