pontus-x_cli 0.0.7 → 1.0.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 +559 -157
- package/bin/dev.js +7 -0
- package/bin/run.js +8 -0
- package/dist/commands/access.d.ts +9 -0
- package/dist/commands/access.js +23 -0
- package/dist/commands/access.js.map +1 -0
- package/dist/commands/change-price.d.ts +13 -0
- package/dist/commands/change-price.js +49 -0
- package/dist/commands/change-price.js.map +1 -0
- package/dist/commands/check-participant-compliance.d.ts +10 -0
- package/dist/commands/check-participant-compliance.js +54 -0
- package/dist/commands/check-participant-compliance.js.map +1 -0
- package/dist/commands/compute-results.d.ts +12 -0
- package/dist/commands/compute-results.js +40 -0
- package/dist/commands/compute-results.js.map +1 -0
- package/dist/commands/compute-status.d.ts +12 -0
- package/dist/commands/compute-status.js +40 -0
- package/dist/commands/compute-status.js.map +1 -0
- package/dist/commands/compute.d.ts +14 -0
- package/dist/commands/compute.js +66 -0
- package/dist/commands/compute.js.map +1 -0
- package/dist/commands/edit-algo.d.ts +16 -0
- package/dist/commands/edit-algo.js +51 -0
- package/dist/commands/edit-algo.js.map +1 -0
- package/dist/commands/edit-asset-url.d.ts +13 -0
- package/dist/commands/edit-asset-url.js +55 -0
- package/dist/commands/edit-asset-url.js.map +1 -0
- package/dist/commands/edit-trusted-algos.d.ts +13 -0
- package/dist/commands/edit-trusted-algos.js +54 -0
- package/dist/commands/edit-trusted-algos.js.map +1 -0
- package/dist/commands/export-private-key.d.ts +11 -0
- package/dist/commands/export-private-key.js +67 -0
- package/dist/commands/export-private-key.js.map +1 -0
- package/dist/commands/generate-asset-credentials.d.ts +15 -0
- package/dist/commands/generate-asset-credentials.js +59 -0
- package/dist/commands/generate-asset-credentials.js.map +1 -0
- package/dist/commands/generate-did-web.d.ts +10 -0
- package/dist/commands/generate-did-web.js +39 -0
- package/dist/commands/generate-did-web.js.map +1 -0
- package/dist/commands/generate-participant-credentials.d.ts +12 -0
- package/dist/commands/generate-participant-credentials.js +51 -0
- package/dist/commands/generate-participant-credentials.js.map +1 -0
- package/dist/commands/get.d.ts +9 -0
- package/dist/commands/get.js +23 -0
- package/dist/commands/get.js.map +1 -0
- package/dist/commands/login.d.ts +14 -0
- package/dist/commands/login.js +51 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +6 -0
- package/dist/commands/logout.js +24 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/publish.d.ts +15 -0
- package/dist/commands/publish.js +107 -0
- package/dist/commands/publish.js.map +1 -0
- package/dist/commands/revoke.d.ts +12 -0
- package/dist/commands/revoke.js +50 -0
- package/dist/commands/revoke.js.map +1 -0
- package/dist/commands/self-description.d.ts +13 -0
- package/dist/commands/self-description.js +53 -0
- package/dist/commands/self-description.js.map +1 -0
- package/dist/config.d.ts +48 -0
- package/dist/config.js +106 -117
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -444
- package/dist/index.js.map +1 -1
- package/dist/lib/gaia-x_compliance/generate-credentials/index.d.ts +1 -0
- package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/index.js +55 -105
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -0
- package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/participant.hbs +5 -1
- package/dist/lib/publishFromFile.d.ts +2 -0
- package/dist/lib/publishFromFile.js +143 -0
- package/dist/lib/publishFromFile.js.map +1 -0
- package/dist/types/schema.d.ts +2 -0
- package/dist/types/schema.js +8 -0
- package/dist/types/schema.js.map +1 -0
- package/dist/types/schema.json +474 -0
- package/dist/utils/connection.d.ts +13 -0
- package/dist/utils/connection.js +11 -19
- package/dist/utils/connection.js.map +1 -1
- package/oclif.manifest.json +830 -0
- package/package.json +72 -40
- package/dist/aquarius-query/index.js +0 -30
- package/dist/aquarius-query/index.js.map +0 -1
- package/dist/export-key-as-json/index.js +0 -27
- package/dist/export-key-as-json/index.js.map +0 -1
- package/dist/gaia-x_compliance/generate-credentials/index.js.map +0 -1
- package/dist/gaia-x_compliance/generate-did-web/index.js +0 -14
- package/dist/gaia-x_compliance/generate-did-web/index.js.map +0 -1
- package/dist/publish/samples/algo/index.js +0 -62
- package/dist/publish/samples/algo/index.js.map +0 -1
- package/dist/publish/samples/basic-predictor/index.js +0 -83
- package/dist/publish/samples/basic-predictor/index.js.map +0 -1
- package/dist/publish/samples/data/index.js +0 -55
- package/dist/publish/samples/data/index.js.map +0 -1
- package/dist/utils/index.js +0 -20
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/package-version.js +0 -22
- package/dist/utils/package-version.js.map +0 -1
- package/dist/utils/publish-script-runner.js +0 -60
- package/dist/utils/publish-script-runner.js.map +0 -1
- /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/dataset.hbs +0 -0
- /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/lrn-request.hbs +0 -0
- /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/service.hbs +0 -0
- /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/tandc.hbs +0 -0
package/README.md
CHANGED
|
@@ -1,299 +1,701 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pontus-x_cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A new CLI generated with oclif
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://oclif.io)
|
|
6
|
+
[](https://npmjs.org/package/pontus-x_cli)
|
|
7
|
+
[](https://npmjs.org/package/pontus-x_cli)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<!-- toc -->
|
|
10
|
+
* [pontus-x_cli](#pontus-x_cli)
|
|
11
|
+
* [Usage](#usage)
|
|
12
|
+
* [Commands](#commands)
|
|
13
|
+
* [Useful information](#useful-information)
|
|
14
|
+
* [Development](#development)
|
|
15
|
+
<!-- tocstop -->
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
# Usage
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
<!-- usage -->
|
|
20
|
+
```sh-session
|
|
21
|
+
$ npm install -g pontus-x_cli
|
|
22
|
+
$ pontus-x_cli COMMAND
|
|
23
|
+
running command...
|
|
24
|
+
$ pontus-x_cli (--version)
|
|
25
|
+
pontus-x_cli/1.0.1 linux-x64 node-v25.0.0
|
|
26
|
+
$ pontus-x_cli --help [COMMAND]
|
|
27
|
+
USAGE
|
|
28
|
+
$ pontus-x_cli COMMAND
|
|
29
|
+
...
|
|
13
30
|
```
|
|
31
|
+
<!-- usagestop -->
|
|
14
32
|
|
|
15
|
-
|
|
33
|
+
# Commands
|
|
34
|
+
|
|
35
|
+
<!-- commands -->
|
|
36
|
+
* [`pontus-x_cli access DID`](#pontus-x_cli-access-did)
|
|
37
|
+
* [`pontus-x_cli autocomplete [SHELL]`](#pontus-x_cli-autocomplete-shell)
|
|
38
|
+
* [`pontus-x_cli change-price DID NEWPRICE`](#pontus-x_cli-change-price-did-newprice)
|
|
39
|
+
* [`pontus-x_cli check-participant-compliance`](#pontus-x_cli-check-participant-compliance)
|
|
40
|
+
* [`pontus-x_cli compute ALGO`](#pontus-x_cli-compute-algo)
|
|
41
|
+
* [`pontus-x_cli compute-results JOBID`](#pontus-x_cli-compute-results-jobid)
|
|
42
|
+
* [`pontus-x_cli compute-status JOBID`](#pontus-x_cli-compute-status-jobid)
|
|
43
|
+
* [`pontus-x_cli edit-algo DID IMAGE TAG CHECKSUM ENTRYPOINT`](#pontus-x_cli-edit-algo-did-image-tag-checksum-entrypoint)
|
|
44
|
+
* [`pontus-x_cli edit-asset-url DID URL`](#pontus-x_cli-edit-asset-url-did-url)
|
|
45
|
+
* [`pontus-x_cli edit-trusted-algos DID`](#pontus-x_cli-edit-trusted-algos-did)
|
|
46
|
+
* [`pontus-x_cli export-private-key`](#pontus-x_cli-export-private-key)
|
|
47
|
+
* [`pontus-x_cli generate-asset-credentials DID`](#pontus-x_cli-generate-asset-credentials-did)
|
|
48
|
+
* [`pontus-x_cli generate-did-web`](#pontus-x_cli-generate-did-web)
|
|
49
|
+
* [`pontus-x_cli generate-participant-credentials`](#pontus-x_cli-generate-participant-credentials)
|
|
50
|
+
* [`pontus-x_cli get DID`](#pontus-x_cli-get-did)
|
|
51
|
+
* [`pontus-x_cli help [COMMAND]`](#pontus-x_cli-help-command)
|
|
52
|
+
* [`pontus-x_cli login KEYFILE`](#pontus-x_cli-login-keyfile)
|
|
53
|
+
* [`pontus-x_cli logout`](#pontus-x_cli-logout)
|
|
54
|
+
* [`pontus-x_cli publish PATH`](#pontus-x_cli-publish-path)
|
|
55
|
+
* [`pontus-x_cli revoke DIDS`](#pontus-x_cli-revoke-dids)
|
|
56
|
+
* [`pontus-x_cli self-description DID SDURL`](#pontus-x_cli-self-description-did-sdurl)
|
|
57
|
+
|
|
58
|
+
## `pontus-x_cli access DID`
|
|
59
|
+
|
|
60
|
+
Access an asset that can be downloaded given its DID
|
|
16
61
|
|
|
17
62
|
```
|
|
18
|
-
|
|
63
|
+
USAGE
|
|
64
|
+
$ pontus-x_cli access DID
|
|
65
|
+
|
|
66
|
+
ARGUMENTS
|
|
67
|
+
DID DID of the asset
|
|
68
|
+
|
|
69
|
+
DESCRIPTION
|
|
70
|
+
Access an asset that can be downloaded given its DID
|
|
71
|
+
|
|
72
|
+
EXAMPLES
|
|
73
|
+
$ pontus-x_cli access did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686
|
|
19
74
|
```
|
|
20
75
|
|
|
21
|
-
|
|
76
|
+
_See code: [src/commands/access.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/access.ts)_
|
|
77
|
+
|
|
78
|
+
## `pontus-x_cli autocomplete [SHELL]`
|
|
22
79
|
|
|
23
|
-
|
|
80
|
+
Display autocomplete installation instructions.
|
|
24
81
|
|
|
25
|
-
```shell
|
|
26
|
-
pontus-x_cli install-completion
|
|
27
82
|
```
|
|
83
|
+
USAGE
|
|
84
|
+
$ pontus-x_cli autocomplete [SHELL] [-r]
|
|
85
|
+
|
|
86
|
+
ARGUMENTS
|
|
87
|
+
SHELL (zsh|bash|powershell) Shell type
|
|
88
|
+
|
|
89
|
+
FLAGS
|
|
90
|
+
-r, --refresh-cache Refresh cache (ignores displaying instructions)
|
|
91
|
+
|
|
92
|
+
DESCRIPTION
|
|
93
|
+
Display autocomplete installation instructions.
|
|
28
94
|
|
|
29
|
-
|
|
95
|
+
EXAMPLES
|
|
96
|
+
$ pontus-x_cli autocomplete
|
|
30
97
|
|
|
31
|
-
|
|
98
|
+
$ pontus-x_cli autocomplete bash
|
|
32
99
|
|
|
33
|
-
|
|
100
|
+
$ pontus-x_cli autocomplete zsh
|
|
34
101
|
|
|
35
|
-
|
|
102
|
+
$ pontus-x_cli autocomplete powershell
|
|
36
103
|
|
|
37
|
-
|
|
104
|
+
$ pontus-x_cli autocomplete --refresh-cache
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.34/src/commands/autocomplete/index.ts)_
|
|
38
108
|
|
|
39
|
-
|
|
109
|
+
## `pontus-x_cli change-price DID NEWPRICE`
|
|
110
|
+
|
|
111
|
+
Change the price keeping the existing currency for an asset with the given DID
|
|
40
112
|
|
|
41
|
-
```shell
|
|
42
|
-
pontus-x_cli login 62078f05eb4450272d7e492f3660835826906822.json
|
|
43
113
|
```
|
|
114
|
+
USAGE
|
|
115
|
+
$ pontus-x_cli change-price DID NEWPRICE [-y]
|
|
116
|
+
|
|
117
|
+
ARGUMENTS
|
|
118
|
+
DID DID of the asset
|
|
119
|
+
NEWPRICE New price for the asset
|
|
44
120
|
|
|
45
|
-
|
|
121
|
+
FLAGS
|
|
122
|
+
-y, --yes Automatic yes to prompts
|
|
46
123
|
|
|
47
|
-
|
|
124
|
+
DESCRIPTION
|
|
125
|
+
Change the price keeping the existing currency for an asset with the given DID
|
|
48
126
|
|
|
49
|
-
|
|
50
|
-
pontus-x_cli
|
|
127
|
+
EXAMPLES
|
|
128
|
+
$ pontus-x_cli change-price did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10
|
|
51
129
|
```
|
|
52
130
|
|
|
53
|
-
|
|
131
|
+
_See code: [src/commands/change-price.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/change-price.ts)_
|
|
54
132
|
|
|
55
|
-
|
|
133
|
+
## `pontus-x_cli check-participant-compliance`
|
|
134
|
+
|
|
135
|
+
Use Gaia-X Compliance to check a participant Verifiable Presentation
|
|
56
136
|
|
|
57
|
-
```shell
|
|
58
|
-
pontus-x_cli get did:op:34d5f73d77550843201ee1a43ad9d404d3e557ed6a70772e9afde7a27d863b8f
|
|
59
137
|
```
|
|
138
|
+
USAGE
|
|
139
|
+
$ pontus-x_cli check-participant-compliance -p <value> --vp <value>
|
|
60
140
|
|
|
61
|
-
|
|
141
|
+
FLAGS
|
|
142
|
+
-p, --participant=<value> (required) Path to the JSON file including the required participant data
|
|
143
|
+
--vp=<value> (required) Path to the participant Verifiable Presentation file
|
|
62
144
|
|
|
63
|
-
|
|
145
|
+
DESCRIPTION
|
|
146
|
+
Use Gaia-X Compliance to check a participant Verifiable Presentation
|
|
64
147
|
|
|
65
|
-
|
|
66
|
-
pontus-x_cli
|
|
148
|
+
EXAMPLES
|
|
149
|
+
$ pontus-x_cli check-participant-compliance -p ./CEP.data.json --vp ./CEP.vp.json
|
|
67
150
|
```
|
|
68
151
|
|
|
69
|
-
|
|
152
|
+
_See code: [src/commands/check-participant-compliance.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/check-participant-compliance.ts)_
|
|
70
153
|
|
|
71
|
-
|
|
154
|
+
## `pontus-x_cli compute ALGO`
|
|
155
|
+
|
|
156
|
+
Compute the algorithm on one or more datasets.
|
|
72
157
|
|
|
73
|
-
```shell
|
|
74
|
-
pontus-x_cli revoke did:op:052eb04066d696a27430116676c859c6303d82257c7a0ebda51f4e80363f6bca did:op:052eb04066d696a27430116676c859c6303d82257c7a0ebda51f4e80363f6bca
|
|
75
158
|
```
|
|
159
|
+
USAGE
|
|
160
|
+
$ pontus-x_cli compute ALGO -d <value>... [-y]
|
|
76
161
|
|
|
77
|
-
|
|
162
|
+
ARGUMENTS
|
|
163
|
+
ALGO Algorithm DID
|
|
78
164
|
|
|
79
|
-
|
|
165
|
+
FLAGS
|
|
166
|
+
-d, --datasets=<value>... (required) Dataset DIDs
|
|
167
|
+
-y, --yes Automatic yes to prompts
|
|
80
168
|
|
|
81
|
-
|
|
169
|
+
DESCRIPTION
|
|
170
|
+
Compute the algorithm on one or more datasets.
|
|
82
171
|
|
|
83
|
-
|
|
84
|
-
pontus-x_cli
|
|
172
|
+
EXAMPLES
|
|
173
|
+
$ pontus-x_cli compute did:op:34e2ff9baf030318b13ff3940ab0885bb11fee49a8597123392983f5a0db8a35 -d did:op:d8a36ff74d36e54ce245d27689330fc39debb2fdfeac09d4a08b24b68cf5053d
|
|
85
174
|
```
|
|
86
175
|
|
|
87
|
-
|
|
176
|
+
_See code: [src/commands/compute.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/compute.ts)_
|
|
88
177
|
|
|
89
|
-
|
|
178
|
+
## `pontus-x_cli compute-results JOBID`
|
|
179
|
+
|
|
180
|
+
Get the compute job results.
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
USAGE
|
|
184
|
+
$ pontus-x_cli compute-results JOBID -p <value>
|
|
185
|
+
|
|
186
|
+
ARGUMENTS
|
|
187
|
+
JOBID Compute job ID
|
|
188
|
+
|
|
189
|
+
FLAGS
|
|
190
|
+
-p, --provider=<value> (required) [default: https://provider.agrospai.udl.cat] The Provider URL
|
|
191
|
+
|
|
192
|
+
DESCRIPTION
|
|
193
|
+
Get the compute job results.
|
|
194
|
+
|
|
195
|
+
EXAMPLES
|
|
196
|
+
$ pontus-x_cli compute-results 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
_See code: [src/commands/compute-results.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/compute-results.ts)_
|
|
200
|
+
|
|
201
|
+
## `pontus-x_cli compute-status JOBID`
|
|
202
|
+
|
|
203
|
+
Check compute job status.
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
USAGE
|
|
207
|
+
$ pontus-x_cli compute-status JOBID -p <value>
|
|
208
|
+
|
|
209
|
+
ARGUMENTS
|
|
210
|
+
JOBID Compute job ID
|
|
211
|
+
|
|
212
|
+
FLAGS
|
|
213
|
+
-p, --provider=<value> (required) [default: https://provider.agrospai.udl.cat] The Provider URL
|
|
214
|
+
|
|
215
|
+
DESCRIPTION
|
|
216
|
+
Check compute job status.
|
|
217
|
+
|
|
218
|
+
EXAMPLES
|
|
219
|
+
$ pontus-x_cli compute-status 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
_See code: [src/commands/compute-status.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/compute-status.ts)_
|
|
223
|
+
|
|
224
|
+
## `pontus-x_cli edit-algo DID IMAGE TAG CHECKSUM ENTRYPOINT`
|
|
225
|
+
|
|
226
|
+
Change the container metadata for a given algorithm DID
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
USAGE
|
|
230
|
+
$ pontus-x_cli edit-algo DID IMAGE TAG CHECKSUM ENTRYPOINT [-y]
|
|
231
|
+
|
|
232
|
+
ARGUMENTS
|
|
233
|
+
DID Algorithm DID
|
|
234
|
+
IMAGE Container image
|
|
235
|
+
TAG Container tag
|
|
236
|
+
CHECKSUM Image checksum
|
|
237
|
+
ENTRYPOINT Algorithm entrypoint
|
|
238
|
+
|
|
239
|
+
FLAGS
|
|
240
|
+
-y, --yes Skip confirmation prompt
|
|
241
|
+
|
|
242
|
+
DESCRIPTION
|
|
243
|
+
Change the container metadata for a given algorithm DID
|
|
244
|
+
|
|
245
|
+
EXAMPLES
|
|
246
|
+
$ pontus-x_cli edit-algo did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f rogargon/pandas-profiling 4.16 sha256:81dca5439f07dff4d56097546a9fce7335be3de8e2622dc105c64e54376f86b5 "python /algorithm/src/main.py"
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
_See code: [src/commands/edit-algo.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/edit-algo.ts)_
|
|
250
|
+
|
|
251
|
+
## `pontus-x_cli edit-asset-url DID URL`
|
|
252
|
+
|
|
253
|
+
Change the URL of an asset DID
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
USAGE
|
|
257
|
+
$ pontus-x_cli edit-asset-url DID URL [-y]
|
|
258
|
+
|
|
259
|
+
ARGUMENTS
|
|
260
|
+
DID DID of the asset
|
|
261
|
+
URL New URL for the asset
|
|
262
|
+
|
|
263
|
+
FLAGS
|
|
264
|
+
-y, --yes Automatic yes to prompts
|
|
265
|
+
|
|
266
|
+
DESCRIPTION
|
|
267
|
+
Change the URL of an asset DID
|
|
268
|
+
|
|
269
|
+
EXAMPLES
|
|
270
|
+
$ pontus-x_cli edit-asset-url did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686 https://raw.githubusercontent.com/plotly/datasets/refs/heads/master/titanic.csv
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
_See code: [src/commands/edit-asset-url.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/edit-asset-url.ts)_
|
|
274
|
+
|
|
275
|
+
## `pontus-x_cli edit-trusted-algos DID`
|
|
276
|
+
|
|
277
|
+
Overwrite the trusted algorithms for a data asset to the provided algorithm DIDs
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
USAGE
|
|
281
|
+
$ pontus-x_cli edit-trusted-algos DID --algos <value>... [-y]
|
|
282
|
+
|
|
283
|
+
ARGUMENTS
|
|
284
|
+
DID DID of the asset
|
|
285
|
+
|
|
286
|
+
FLAGS
|
|
287
|
+
-y, --yes Skip confirmation prompt
|
|
288
|
+
--algos=<value>... (required) Algorithm DIDs
|
|
289
|
+
|
|
290
|
+
DESCRIPTION
|
|
291
|
+
Overwrite the trusted algorithms for a data asset to the provided algorithm DIDs
|
|
292
|
+
|
|
293
|
+
EXAMPLES
|
|
294
|
+
$ pontus-x_cli edit-trusted-algos did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a --algos did:op:8f9994d01975cadd0196a2f7f811ed850e5d02a7223e7c5a31faaebe7371c81a did:op:0b970c95211cb8ef4574383386376646081bb7eb949b2a75e1e2171ea25949a7
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
_See code: [src/commands/edit-trusted-algos.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/edit-trusted-algos.ts)_
|
|
298
|
+
|
|
299
|
+
## `pontus-x_cli export-private-key`
|
|
300
|
+
|
|
301
|
+
Export your private key as a JSON file, to use later with the login command or for Pontus-X portals automation
|
|
302
|
+
|
|
303
|
+
```
|
|
304
|
+
USAGE
|
|
305
|
+
$ pontus-x_cli export-private-key [-p <value>] [-k <value>] [-f <value>]
|
|
306
|
+
|
|
307
|
+
FLAGS
|
|
308
|
+
-f, --filepath=<value> File path to save the encrypted private key (default is <address>.json)
|
|
309
|
+
-k, --privateKey=<value> Your private key
|
|
310
|
+
-p, --password=<value> Password to encrypt the private key file
|
|
311
|
+
|
|
312
|
+
DESCRIPTION
|
|
313
|
+
Export your private key as a JSON file, to use later with the login command or for Pontus-X portals automation
|
|
314
|
+
|
|
315
|
+
EXAMPLES
|
|
316
|
+
$ pontus-x_cli export-private-key
|
|
317
|
+
```
|
|
90
318
|
|
|
91
|
-
|
|
319
|
+
_See code: [src/commands/export-private-key.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/export-private-key.ts)_
|
|
320
|
+
|
|
321
|
+
## `pontus-x_cli generate-asset-credentials DID`
|
|
322
|
+
|
|
323
|
+
Generate the Gaia-X credentials for the input DID asset, including its verifiable presentation
|
|
92
324
|
|
|
93
|
-
```shell
|
|
94
|
-
pontus-x_cli change-price did:op:34d5f73d77550843201ee1a43ad9d404d3e557ed6a70772e9afde7a27d863b8f 0.1
|
|
95
325
|
```
|
|
326
|
+
USAGE
|
|
327
|
+
$ pontus-x_cli generate-asset-credentials DID -c <value> -d <value> -p <value> [-w <value>]
|
|
328
|
+
|
|
329
|
+
ARGUMENTS
|
|
330
|
+
DID DID of the asset
|
|
96
331
|
|
|
97
|
-
|
|
332
|
+
FLAGS
|
|
333
|
+
-c, --certificate=<value> (required) Path to the certificate.key file
|
|
334
|
+
-d, --didjson=<value> (required) Path to the did.json file
|
|
335
|
+
-p, --participant=<value> (required) Path to the JSON file including the required participant data
|
|
336
|
+
-w, --password=<value> Password for the private key file (if not provided, it will be asked interactively)
|
|
98
337
|
|
|
99
|
-
|
|
338
|
+
DESCRIPTION
|
|
339
|
+
Generate the Gaia-X credentials for the input DID asset, including its verifiable presentation
|
|
100
340
|
|
|
101
|
-
|
|
102
|
-
pontus-x_cli
|
|
341
|
+
EXAMPLES
|
|
342
|
+
$ pontus-x_cli generate-asset-credentials -p ./CEP.data.json -d ./did.json -c certificate.key did:op:01f8bc1e797a854dc718bd7a802acb07c5fc39f706b03dd454bceb66be6828c6
|
|
103
343
|
```
|
|
104
344
|
|
|
105
|
-
|
|
345
|
+
_See code: [src/commands/generate-asset-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/generate-asset-credentials.ts)_
|
|
106
346
|
|
|
107
|
-
|
|
347
|
+
## `pontus-x_cli generate-did-web`
|
|
348
|
+
|
|
349
|
+
Generate a did.json to set up a DID-Web source to publish Gaia-X complaint credentials
|
|
108
350
|
|
|
109
|
-
```shell
|
|
110
|
-
pontus-x_cli edit-trusted-algos did:op:f7946c46eb87318b2cd34efdd5f33b19ea9223a90b67f447da6a92aa68ca007c did:op:34d5f73d77550843201ee1a43ad9d404d3e557ed6a70772e9afde7a27d863b8f did:op:d20f956e79709fb2469fffe2bd85cf2fec95a21d2497998bb530043c6bbec901
|
|
111
351
|
```
|
|
352
|
+
USAGE
|
|
353
|
+
$ pontus-x_cli generate-did-web -c <value> -d <value>
|
|
112
354
|
|
|
113
|
-
|
|
355
|
+
FLAGS
|
|
356
|
+
-c, --certificate=<value> (required) Path to the file with the certificate chain for the DID domain URL
|
|
357
|
+
-d, --domain=<value> (required) URL where the DID-Web document will be hosted
|
|
114
358
|
|
|
115
|
-
|
|
359
|
+
DESCRIPTION
|
|
360
|
+
Generate a did.json to set up a DID-Web source to publish Gaia-X complaint credentials
|
|
116
361
|
|
|
117
|
-
|
|
118
|
-
pontus-x_cli
|
|
362
|
+
EXAMPLES
|
|
363
|
+
$ pontus-x_cli generate-did-web -d <https://compliance.agrospai.udl.cat> -c certificate-chain.crt
|
|
119
364
|
```
|
|
120
365
|
|
|
121
|
-
|
|
366
|
+
_See code: [src/commands/generate-did-web.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/generate-did-web.ts)_
|
|
367
|
+
|
|
368
|
+
## `pontus-x_cli generate-participant-credentials`
|
|
122
369
|
|
|
123
|
-
|
|
370
|
+
Generate the Gaia-X credentials for the participant including their verifiable presentation
|
|
124
371
|
|
|
125
|
-
```shell
|
|
126
|
-
pontus-x_cli publish --provider https://provider.agrospai.udl.cat src/publish/samples/data --dry-run
|
|
127
372
|
```
|
|
373
|
+
USAGE
|
|
374
|
+
$ pontus-x_cli generate-participant-credentials -c <value> -d <value> -p <value> [-w <value>]
|
|
128
375
|
|
|
129
|
-
|
|
376
|
+
FLAGS
|
|
377
|
+
-c, --certificate=<value> (required) Path to the certificate.key file
|
|
378
|
+
-d, --didjson=<value> (required) Path to the did.json file
|
|
379
|
+
-p, --participant=<value> (required) Path to the JSON file including the required participant data
|
|
380
|
+
-w, --password=<value> Password for the private key file (if not provided, it will be asked interactively)
|
|
130
381
|
|
|
131
|
-
|
|
382
|
+
DESCRIPTION
|
|
383
|
+
Generate the Gaia-X credentials for the participant including their verifiable presentation
|
|
132
384
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
// Your publishing logic here
|
|
136
|
-
}
|
|
385
|
+
EXAMPLES
|
|
386
|
+
$ pontus-x_cli generate-participant-credentials -p ./CEP.data.json -d ./did.json -c certificate.key
|
|
137
387
|
```
|
|
138
388
|
|
|
139
|
-
|
|
389
|
+
_See code: [src/commands/generate-participant-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/generate-participant-credentials.ts)_
|
|
140
390
|
|
|
141
|
-
|
|
391
|
+
## `pontus-x_cli get DID`
|
|
142
392
|
|
|
143
|
-
|
|
393
|
+
Get the available metadata to the asset with the given DID
|
|
144
394
|
|
|
145
|
-
|
|
395
|
+
```
|
|
396
|
+
USAGE
|
|
397
|
+
$ pontus-x_cli get DID
|
|
398
|
+
|
|
399
|
+
ARGUMENTS
|
|
400
|
+
DID DID of the asset
|
|
146
401
|
|
|
147
|
-
|
|
402
|
+
DESCRIPTION
|
|
403
|
+
Get the available metadata to the asset with the given DID
|
|
148
404
|
|
|
149
|
-
|
|
405
|
+
EXAMPLES
|
|
406
|
+
$ pontus-x_cli get did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a
|
|
407
|
+
```
|
|
150
408
|
|
|
151
|
-
|
|
409
|
+
_See code: [src/commands/get.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/get.ts)_
|
|
152
410
|
|
|
153
|
-
|
|
411
|
+
## `pontus-x_cli help [COMMAND]`
|
|
154
412
|
|
|
155
|
-
|
|
413
|
+
Display help for pontus-x_cli.
|
|
414
|
+
|
|
415
|
+
```
|
|
416
|
+
USAGE
|
|
417
|
+
$ pontus-x_cli help [COMMAND...] [-n]
|
|
156
418
|
|
|
157
|
-
|
|
419
|
+
ARGUMENTS
|
|
420
|
+
COMMAND... Command to show help for.
|
|
158
421
|
|
|
159
|
-
|
|
422
|
+
FLAGS
|
|
423
|
+
-n, --nested-commands Include all nested commands in the output.
|
|
160
424
|
|
|
161
|
-
|
|
162
|
-
|
|
425
|
+
DESCRIPTION
|
|
426
|
+
Display help for pontus-x_cli.
|
|
163
427
|
```
|
|
164
428
|
|
|
165
|
-
|
|
429
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.32/src/commands/help.ts)_
|
|
430
|
+
|
|
431
|
+
## `pontus-x_cli login KEYFILE`
|
|
432
|
+
|
|
433
|
+
Login to retrieve your private key from a JSON key store and store it in .env
|
|
166
434
|
|
|
167
|
-
```shell
|
|
168
|
-
kubectl create namespace test
|
|
169
|
-
kubectl apply -f test-nginx.yaml
|
|
170
435
|
```
|
|
436
|
+
USAGE
|
|
437
|
+
$ pontus-x_cli login KEYFILE [-p <value>]
|
|
438
|
+
|
|
439
|
+
ARGUMENTS
|
|
440
|
+
KEYFILE Path to the keyFile.json
|
|
171
441
|
|
|
172
|
-
|
|
442
|
+
FLAGS
|
|
443
|
+
-p, --password=<value> Password to decrypt the key file
|
|
173
444
|
|
|
174
|
-
|
|
175
|
-
|
|
445
|
+
DESCRIPTION
|
|
446
|
+
Login to retrieve your private key from a JSON key store and store it in .env
|
|
447
|
+
|
|
448
|
+
EXAMPLES
|
|
449
|
+
$ pontus-x_cli login d999baae98ac5246568fd726be8832c49626867d.json
|
|
176
450
|
```
|
|
177
451
|
|
|
178
|
-
|
|
452
|
+
_See code: [src/commands/login.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/login.ts)_
|
|
453
|
+
|
|
454
|
+
## `pontus-x_cli logout`
|
|
455
|
+
|
|
456
|
+
Logout to remove your private key from .env file
|
|
179
457
|
|
|
180
|
-
```shell
|
|
181
|
-
kubectl get certificate -n test
|
|
182
458
|
```
|
|
459
|
+
USAGE
|
|
460
|
+
$ pontus-x_cli logout
|
|
183
461
|
|
|
184
|
-
|
|
462
|
+
DESCRIPTION
|
|
463
|
+
Logout to remove your private key from .env file
|
|
185
464
|
|
|
465
|
+
EXAMPLES
|
|
466
|
+
$ pontus-x_cli logout
|
|
186
467
|
```
|
|
187
|
-
|
|
188
|
-
|
|
468
|
+
|
|
469
|
+
_See code: [src/commands/logout.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/logout.ts)_
|
|
470
|
+
|
|
471
|
+
## `pontus-x_cli publish PATH`
|
|
472
|
+
|
|
473
|
+
Publish the asset as instructed in the provided script folder.
|
|
474
|
+
|
|
189
475
|
```
|
|
476
|
+
USAGE
|
|
477
|
+
$ pontus-x_cli publish PATH -p <value> [--dry-run]
|
|
190
478
|
|
|
191
|
-
|
|
479
|
+
ARGUMENTS
|
|
480
|
+
PATH Path to the JSON/YAML or TS file describing the asset to publish
|
|
192
481
|
|
|
193
|
-
|
|
194
|
-
|
|
482
|
+
FLAGS
|
|
483
|
+
-p, --provider=<value> (required) [default: https://provider.agrospai.udl.cat] The Provider URL
|
|
484
|
+
--dry-run Dry run the publishing process
|
|
485
|
+
|
|
486
|
+
DESCRIPTION
|
|
487
|
+
Publish the asset as instructed in the provided script folder.
|
|
488
|
+
|
|
489
|
+
EXAMPLES
|
|
490
|
+
$ pontus-x_cli publish samples/publish/algo/spec.json
|
|
491
|
+
|
|
492
|
+
$ pontus-x_cli publish samples/publish/algo/spec.yaml
|
|
493
|
+
|
|
494
|
+
$ pontus-x_cli publish samples/publish/algo/index.ts
|
|
195
495
|
```
|
|
196
496
|
|
|
197
|
-
|
|
497
|
+
_See code: [src/commands/publish.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/publish.ts)_
|
|
498
|
+
|
|
499
|
+
## `pontus-x_cli revoke DIDS`
|
|
500
|
+
|
|
501
|
+
Publisher revocation of one or more owned DIDs
|
|
198
502
|
|
|
199
|
-
```shell
|
|
200
|
-
kubectl get secret your.domain.org-cert -n test -o jsonpath='{.data.tls\.key}' | base64 --decode > certificate.key
|
|
201
503
|
```
|
|
504
|
+
USAGE
|
|
505
|
+
$ pontus-x_cli revoke DIDS [-y]
|
|
506
|
+
|
|
507
|
+
ARGUMENTS
|
|
508
|
+
DIDS DIDs to revoke
|
|
202
509
|
|
|
203
|
-
|
|
510
|
+
FLAGS
|
|
511
|
+
-y, --yes Skip confirmation prompt
|
|
204
512
|
|
|
205
|
-
|
|
513
|
+
DESCRIPTION
|
|
514
|
+
Publisher revocation of one or more owned DIDs
|
|
515
|
+
|
|
516
|
+
EXAMPLES
|
|
517
|
+
$ pontus-x_cli revoke did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a did:op:abcee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7b
|
|
518
|
+
```
|
|
206
519
|
|
|
207
|
-
|
|
520
|
+
_See code: [src/commands/revoke.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/revoke.ts)_
|
|
208
521
|
|
|
209
|
-
|
|
522
|
+
## `pontus-x_cli self-description DID SDURL`
|
|
523
|
+
|
|
524
|
+
Associate Gaia-X Self-Description to the asset with the given DID
|
|
210
525
|
|
|
211
|
-
```shell
|
|
212
|
-
pontus-x_cli generate-did-web -d https://your.domain.org -c certificate-chain.crt
|
|
213
526
|
```
|
|
527
|
+
USAGE
|
|
528
|
+
$ pontus-x_cli self-description DID SDURL [-y]
|
|
214
529
|
|
|
215
|
-
|
|
530
|
+
ARGUMENTS
|
|
531
|
+
DID DID of the asset
|
|
532
|
+
SDURL URL of the Self-Description
|
|
216
533
|
|
|
217
|
-
|
|
534
|
+
FLAGS
|
|
535
|
+
-y, --yes Skip confirmation prompt
|
|
218
536
|
|
|
219
|
-
|
|
537
|
+
DESCRIPTION
|
|
538
|
+
Associate Gaia-X Self-Description to the asset with the given DID
|
|
220
539
|
|
|
221
|
-
|
|
222
|
-
|
|
540
|
+
EXAMPLES
|
|
541
|
+
$ pontus-x_cli self-description did:op:d22954f2cbf6a85c897ce605c275cc786e099592cc59e3b7dd66b93e784bed8c https://example.com/self-description.json
|
|
223
542
|
```
|
|
224
543
|
|
|
225
|
-
|
|
544
|
+
_See code: [src/commands/self-description.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.1/src/commands/self-description.ts)_
|
|
545
|
+
<!-- commandsstop -->
|
|
546
|
+
|
|
547
|
+
# Useful information
|
|
548
|
+
|
|
549
|
+
## How to obtain the certificate chain
|
|
550
|
+
|
|
551
|
+
You can use the following command to obtain the certificate chain for the compliance service:
|
|
226
552
|
|
|
227
|
-
```
|
|
228
|
-
|
|
553
|
+
```bash
|
|
554
|
+
curl -o certificate-chain.crt "https://whatsmychaincert.com/generate?include_leaf=1&include_root=1&host=compliance.agrospai.udl.cat"
|
|
229
555
|
```
|
|
230
556
|
|
|
231
|
-
|
|
557
|
+
## How to obtain the certificate key
|
|
232
558
|
|
|
233
|
-
|
|
559
|
+
If you are using Kubernetes with cert-manager, you can extract the key with the following command:
|
|
234
560
|
|
|
235
|
-
|
|
561
|
+
```bash
|
|
562
|
+
kubectl get secret compliance-tls -n tenant-1 -o jsonpath='{.data.tls\.key}' | base64 --decode > certificate.key
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
# Development
|
|
236
566
|
|
|
237
|
-
|
|
567
|
+
## Install dependencies
|
|
238
568
|
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
"participant_name": "UdL",
|
|
242
|
-
"participant_uri": "https://www.udl.cat",
|
|
243
|
-
"participant_legal_name": "Universitat de Lleida",
|
|
244
|
-
"participant_vat_id": "ESQ7550001G",
|
|
245
|
-
"participant_country_subdivision_code": "ES-L",
|
|
246
|
-
"participant_street_address": "Victor Siurana, 1",
|
|
247
|
-
"participant_postal_code": "25003",
|
|
248
|
-
"participant_locality": "Lleida"
|
|
249
|
-
}
|
|
569
|
+
```sh
|
|
570
|
+
npm install
|
|
250
571
|
```
|
|
251
572
|
|
|
252
|
-
|
|
573
|
+
## Build the CLI
|
|
253
574
|
|
|
254
|
-
```
|
|
255
|
-
|
|
575
|
+
```sh
|
|
576
|
+
npm run build
|
|
256
577
|
```
|
|
257
578
|
|
|
258
|
-
|
|
579
|
+
## Run the built CLI
|
|
259
580
|
|
|
260
|
-
|
|
261
|
-
|
|
581
|
+
### Development
|
|
582
|
+
|
|
583
|
+
```sh
|
|
584
|
+
./bin/dev.js COMMAND
|
|
262
585
|
```
|
|
263
586
|
|
|
264
|
-
|
|
587
|
+
### Production
|
|
265
588
|
|
|
266
|
-
|
|
589
|
+
```sh
|
|
590
|
+
./bin/run.js COMMAND
|
|
591
|
+
```
|
|
267
592
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
593
|
+
### Global installation
|
|
594
|
+
|
|
595
|
+
```sh
|
|
596
|
+
npm install -g .
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
## Formatting
|
|
600
|
+
|
|
601
|
+
```sh
|
|
602
|
+
npm run format
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
## Linting
|
|
606
|
+
|
|
607
|
+
```sh
|
|
608
|
+
npm run lint
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
## Typing
|
|
612
|
+
|
|
613
|
+
```sh
|
|
614
|
+
npm run tsc
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
## Testing
|
|
618
|
+
|
|
619
|
+
You can customize the tests in `test/config.ts` file. The two most important parameters are `PRIVATE_KEY_PATH` and `PRIVATE_KEY_PASSWORD`.
|
|
620
|
+
|
|
621
|
+
By default, you need to have the `privateKey.json` file in the base root. Which you can generate with the command: `npm run dev export-private-key -f privateKey.json`.
|
|
622
|
+
|
|
623
|
+
### Structure
|
|
624
|
+
|
|
625
|
+
The tests are organized in folders by functionality:
|
|
626
|
+
|
|
627
|
+
```text
|
|
628
|
+
test/
|
|
629
|
+
├── auth/
|
|
630
|
+
├── read/
|
|
631
|
+
└── write/
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
* **auth**: commands related to authentication.
|
|
635
|
+
* **read**: commands that do not make modifications in the blockchain.
|
|
636
|
+
* **write**: commands that make modifications in the blockchain. There is one exception: the `access` command, which causes problems when run in parallel with other write commands. All write commands are run sequentially to avoid conflicts.
|
|
637
|
+
|
|
638
|
+
### Initialization
|
|
639
|
+
|
|
640
|
+
Because the tests interact with the blockchain, we need to first deploy some assets manually and keep track of their DIDs in the `STATE_FILE` (by default `./.vitest-state.json`).
|
|
641
|
+
|
|
642
|
+
```sh
|
|
643
|
+
npm run test:init
|
|
272
644
|
```
|
|
273
645
|
|
|
274
|
-
###
|
|
646
|
+
### Clean up
|
|
647
|
+
|
|
648
|
+
Whenever you want to clean up the deployed assets in the blockchain, you can run:
|
|
649
|
+
|
|
650
|
+
```sh
|
|
651
|
+
npm run test:clean
|
|
652
|
+
```
|
|
275
653
|
|
|
276
|
-
|
|
654
|
+
### Run all tests once
|
|
277
655
|
|
|
278
|
-
|
|
656
|
+
```sh
|
|
657
|
+
npm run test
|
|
658
|
+
```
|
|
279
659
|
|
|
280
|
-
|
|
660
|
+
### Run a specific test file once
|
|
281
661
|
|
|
282
|
-
```
|
|
283
|
-
|
|
662
|
+
```sh
|
|
663
|
+
npm run test TEST_NAME # example: access, login, get, etc.
|
|
284
664
|
```
|
|
285
665
|
|
|
286
|
-
|
|
666
|
+
### Run a specific test folder
|
|
287
667
|
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
--from-file=UdL.vp.json --from-file=CEP.vp.json \
|
|
291
|
-
--dry-run=client -o yaml | kubectl apply -f -
|
|
668
|
+
```sh
|
|
669
|
+
npm run test TEST_FOLDER # example: auth, read, write
|
|
292
670
|
```
|
|
293
671
|
|
|
294
|
-
###
|
|
672
|
+
### Run a specific test file in watch mode
|
|
295
673
|
|
|
296
|
-
|
|
674
|
+
```sh
|
|
675
|
+
npm run test:watch TEST_NAME # example: access, login, get, etc.
|
|
676
|
+
```
|
|
297
677
|
|
|
298
|
-
|
|
299
|
-
|
|
678
|
+
### Open the Vitest UI
|
|
679
|
+
|
|
680
|
+
```sh
|
|
681
|
+
npm run test:ui
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
### Generate report
|
|
685
|
+
|
|
686
|
+
```sh
|
|
687
|
+
npx vitest --reporter=html
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
## Generate documentation
|
|
691
|
+
|
|
692
|
+
```sh
|
|
693
|
+
npm run prepack
|
|
694
|
+
npm run postpack
|
|
695
|
+
```
|
|
696
|
+
|
|
697
|
+
## Generate JSON schema
|
|
698
|
+
|
|
699
|
+
```sh
|
|
700
|
+
npm run schema
|
|
701
|
+
```
|