@super-protocol/sp-cli 0.0.6 → 0.0.7
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 +97 -229
- package/dist/commands/account/base.d.ts +20 -0
- package/dist/commands/account/base.js +49 -0
- package/dist/commands/{config/delete.d.ts → account/forget.d.ts} +5 -2
- package/dist/commands/{config/delete.js → account/forget.js} +12 -5
- package/dist/commands/account/get-sppi.d.ts +2 -2
- package/dist/commands/account/get-sppi.js +8 -13
- package/dist/commands/account/info.d.ts +5 -2
- package/dist/commands/account/info.js +53 -3
- package/dist/commands/account/list.d.ts +9 -0
- package/dist/commands/{config → account}/list.js +16 -9
- package/dist/commands/account/login.d.ts +35 -0
- package/dist/commands/account/login.js +254 -0
- package/dist/commands/account/switch.d.ts +12 -0
- package/dist/commands/account/switch.js +40 -0
- package/dist/commands/base.d.ts +4 -3
- package/dist/commands/base.js +3 -1
- package/dist/commands/files/download.js +13 -5
- package/dist/commands/files/upload.js +11 -7
- package/dist/commands/storage/base.d.ts +2 -2
- package/dist/commands/storage/create.js +1 -1
- package/dist/commands/storage/select.js +3 -5
- package/dist/commands/storage/show.js +2 -4
- package/dist/commands/storage/update.js +31 -14
- package/dist/commands/workflows/extend-lease.d.ts +1 -1
- package/dist/commands/workflows/extend-lease.js +19 -10
- package/dist/config/config-file.schema.d.ts +1 -2
- package/dist/config/config-file.schema.js +0 -1
- package/dist/config/config.schema.d.ts +1 -1
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +2 -0
- package/dist/hooks/finally/shutdown-blockchain.d.ts +1 -1
- package/dist/hooks/finally/shutdown-blockchain.js +1 -1
- package/dist/hooks/finally/unlock-config.d.ts +3 -0
- package/dist/hooks/finally/unlock-config.js +5 -0
- package/dist/hooks/init/init-container.d.ts +1 -1
- package/dist/hooks/init/init-container.js +2 -3
- package/dist/hooks/init/lock-config.d.ts +3 -0
- package/dist/hooks/init/lock-config.js +19 -0
- package/dist/hooks/prerun/auth.d.ts +3 -0
- package/dist/hooks/prerun/auth.js +70 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/account-manager.interface.d.ts +1 -1
- package/dist/interfaces/config-manager.interface.d.ts +2 -2
- package/dist/lib/cli-instance-lock.d.ts +2 -0
- package/dist/lib/cli-instance-lock.js +37 -0
- package/dist/lib/container.d.ts +6 -4
- package/dist/lib/container.js +108 -38
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +4 -1
- package/dist/managers/account-manager.d.ts +7 -8
- package/dist/managers/account-manager.js +20 -45
- package/dist/managers/config-file-manager.d.ts +6 -7
- package/dist/managers/config-file-manager.js +35 -32
- package/dist/managers/config-manager.d.ts +5 -5
- package/dist/managers/config-manager.js +5 -2
- package/dist/middlewares/auth-middleware.d.ts +1 -1
- package/dist/services/auth.service.d.ts +10 -15
- package/dist/services/auth.service.js +71 -5
- package/dist/services/storage.service.d.ts +3 -3
- package/dist/services/storage.service.js +46 -19
- package/dist/utils/helper.d.ts +1 -0
- package/dist/utils/helper.js +15 -1
- package/oclif.manifest.json +258 -399
- package/package.json +17 -24
- package/dist/commands/auth/login.d.ts +0 -12
- package/dist/commands/auth/login.js +0 -50
- package/dist/commands/auth/me.d.ts +0 -5
- package/dist/commands/auth/me.js +0 -16
- package/dist/commands/config/add.d.ts +0 -13
- package/dist/commands/config/add.js +0 -73
- package/dist/commands/config/base.d.ts +0 -16
- package/dist/commands/config/base.js +0 -78
- package/dist/commands/config/create.d.ts +0 -11
- package/dist/commands/config/create.js +0 -41
- package/dist/commands/config/index.d.ts +0 -6
- package/dist/commands/config/index.js +0 -22
- package/dist/commands/config/list.d.ts +0 -6
- package/dist/commands/config/show.d.ts +0 -6
- package/dist/commands/config/show.js +0 -10
- package/dist/commands/config/use.d.ts +0 -6
- package/dist/commands/config/use.js +0 -27
package/oclif.manifest.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"account:
|
|
3
|
+
"account:forget": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Purge all account details",
|
|
7
7
|
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %>"
|
|
8
|
+
"<%= config.bin %> <%= command.id %>",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --name \"My Account\"",
|
|
10
|
+
"<%= config.bin %> <%= command.id %> --name \"My Account\" --force"
|
|
9
11
|
],
|
|
10
12
|
"flags": {
|
|
11
13
|
"json": {
|
|
@@ -17,47 +19,25 @@
|
|
|
17
19
|
},
|
|
18
20
|
"config": {
|
|
19
21
|
"helpGroup": "GLOBAL",
|
|
22
|
+
"hidden": true,
|
|
20
23
|
"name": "config",
|
|
21
24
|
"required": false,
|
|
22
25
|
"summary": "Specify config file.",
|
|
23
26
|
"hasDynamicHelp": false,
|
|
24
27
|
"multiple": false,
|
|
25
28
|
"type": "option"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
32
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
33
|
-
"pluginType": "core",
|
|
34
|
-
"strict": true,
|
|
35
|
-
"enableJsonFlag": true,
|
|
36
|
-
"isESM": true,
|
|
37
|
-
"relativePath": [
|
|
38
|
-
"dist",
|
|
39
|
-
"commands",
|
|
40
|
-
"account",
|
|
41
|
-
"get-sppi.js"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"account:info": {
|
|
45
|
-
"aliases": [],
|
|
46
|
-
"args": {},
|
|
47
|
-
"description": "Information about current authorized user",
|
|
48
|
-
"flags": {
|
|
49
|
-
"json": {
|
|
50
|
-
"description": "Format output as json.",
|
|
51
|
-
"helpGroup": "GLOBAL",
|
|
52
|
-
"name": "json",
|
|
29
|
+
},
|
|
30
|
+
"force": {
|
|
31
|
+
"char": "f",
|
|
32
|
+
"description": "Force deletion without confirmation",
|
|
33
|
+
"name": "force",
|
|
53
34
|
"allowNo": false,
|
|
54
35
|
"type": "boolean"
|
|
55
36
|
},
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"summary": "Specify config file.",
|
|
37
|
+
"name": {
|
|
38
|
+
"char": "n",
|
|
39
|
+
"description": "Configuration name to delete",
|
|
40
|
+
"name": "name",
|
|
61
41
|
"hasDynamicHelp": false,
|
|
62
42
|
"multiple": false,
|
|
63
43
|
"type": "option"
|
|
@@ -65,28 +45,26 @@
|
|
|
65
45
|
},
|
|
66
46
|
"hasDynamicHelp": false,
|
|
67
47
|
"hiddenAliases": [],
|
|
68
|
-
"id": "account:
|
|
48
|
+
"id": "account:forget",
|
|
69
49
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
70
50
|
"pluginName": "@super-protocol/sp-cli",
|
|
71
51
|
"pluginType": "core",
|
|
72
52
|
"strict": true,
|
|
73
|
-
"
|
|
53
|
+
"authenticate": false,
|
|
74
54
|
"isESM": true,
|
|
75
55
|
"relativePath": [
|
|
76
56
|
"dist",
|
|
77
57
|
"commands",
|
|
78
58
|
"account",
|
|
79
|
-
"
|
|
59
|
+
"forget.js"
|
|
80
60
|
]
|
|
81
61
|
},
|
|
82
|
-
"
|
|
83
|
-
"aliases": [
|
|
84
|
-
"login"
|
|
85
|
-
],
|
|
62
|
+
"account:get-sppi": {
|
|
63
|
+
"aliases": [],
|
|
86
64
|
"args": {},
|
|
87
|
-
"description": "
|
|
65
|
+
"description": "Get SPPI (Super Protocol incentive tokens) ",
|
|
88
66
|
"examples": [
|
|
89
|
-
"<%= config.bin %> <%= command.id
|
|
67
|
+
"<%= config.bin %> <%= command.id %>"
|
|
90
68
|
],
|
|
91
69
|
"flags": {
|
|
92
70
|
"json": {
|
|
@@ -98,6 +76,7 @@
|
|
|
98
76
|
},
|
|
99
77
|
"config": {
|
|
100
78
|
"helpGroup": "GLOBAL",
|
|
79
|
+
"hidden": true,
|
|
101
80
|
"name": "config",
|
|
102
81
|
"required": false,
|
|
103
82
|
"summary": "Specify config file.",
|
|
@@ -108,23 +87,23 @@
|
|
|
108
87
|
},
|
|
109
88
|
"hasDynamicHelp": false,
|
|
110
89
|
"hiddenAliases": [],
|
|
111
|
-
"id": "
|
|
90
|
+
"id": "account:get-sppi",
|
|
112
91
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
113
92
|
"pluginName": "@super-protocol/sp-cli",
|
|
114
93
|
"pluginType": "core",
|
|
115
94
|
"strict": true,
|
|
116
|
-
"enableJsonFlag": true,
|
|
117
95
|
"isESM": true,
|
|
118
96
|
"relativePath": [
|
|
119
97
|
"dist",
|
|
120
98
|
"commands",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
99
|
+
"account",
|
|
100
|
+
"get-sppi.js"
|
|
123
101
|
]
|
|
124
102
|
},
|
|
125
|
-
"
|
|
103
|
+
"account:info": {
|
|
126
104
|
"aliases": [],
|
|
127
105
|
"args": {},
|
|
106
|
+
"description": "Information about current authorized user",
|
|
128
107
|
"flags": {
|
|
129
108
|
"json": {
|
|
130
109
|
"description": "Format output as json.",
|
|
@@ -135,92 +114,42 @@
|
|
|
135
114
|
},
|
|
136
115
|
"config": {
|
|
137
116
|
"helpGroup": "GLOBAL",
|
|
117
|
+
"hidden": true,
|
|
138
118
|
"name": "config",
|
|
139
119
|
"required": false,
|
|
140
120
|
"summary": "Specify config file.",
|
|
141
121
|
"hasDynamicHelp": false,
|
|
142
122
|
"multiple": false,
|
|
143
123
|
"type": "option"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"hasDynamicHelp": false,
|
|
147
|
-
"hiddenAliases": [],
|
|
148
|
-
"id": "auth:me",
|
|
149
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
150
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
151
|
-
"pluginType": "core",
|
|
152
|
-
"strict": true,
|
|
153
|
-
"enableJsonFlag": true,
|
|
154
|
-
"isESM": true,
|
|
155
|
-
"relativePath": [
|
|
156
|
-
"dist",
|
|
157
|
-
"commands",
|
|
158
|
-
"auth",
|
|
159
|
-
"me.js"
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
"config:add": {
|
|
163
|
-
"aliases": [],
|
|
164
|
-
"args": {
|
|
165
|
-
"file": {
|
|
166
|
-
"description": "Configuration file path to import",
|
|
167
|
-
"name": "file",
|
|
168
|
-
"required": false
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
"description": "Import a configuration from a file",
|
|
172
|
-
"examples": [
|
|
173
|
-
"<%= config.bin %> <%= command.id %> ./my-config.json",
|
|
174
|
-
"<%= config.bin %> <%= command.id %> ./my-config.json --name \"Imported\"",
|
|
175
|
-
"Configuration files must follow this schema:\n\n {\n \"providerUrl\": \"https://api.dp.superprotocol.com\",\n \"name\": \"Some name\",\n \"account\": {\n \"address\": \"0x111222333444555....\",\n \"privateKey\": \"0x000011122233344555...\"\n }\n }"
|
|
176
|
-
],
|
|
177
|
-
"flags": {
|
|
178
|
-
"json": {
|
|
179
|
-
"description": "Format output as json.",
|
|
180
|
-
"helpGroup": "GLOBAL",
|
|
181
|
-
"name": "json",
|
|
182
|
-
"allowNo": false,
|
|
183
|
-
"type": "boolean"
|
|
184
124
|
},
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"name": "name",
|
|
189
|
-
"hasDynamicHelp": false,
|
|
190
|
-
"multiple": false,
|
|
191
|
-
"type": "option"
|
|
192
|
-
},
|
|
193
|
-
"yes": {
|
|
194
|
-
"char": "y",
|
|
195
|
-
"description": "Automatically switch to imported configuration",
|
|
196
|
-
"name": "yes",
|
|
125
|
+
"detail": {
|
|
126
|
+
"description": "Detailed information about Account",
|
|
127
|
+
"name": "detail",
|
|
197
128
|
"allowNo": false,
|
|
198
129
|
"type": "boolean"
|
|
199
130
|
}
|
|
200
131
|
},
|
|
201
132
|
"hasDynamicHelp": false,
|
|
202
133
|
"hiddenAliases": [],
|
|
203
|
-
"id": "
|
|
134
|
+
"id": "account:info",
|
|
204
135
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
205
136
|
"pluginName": "@super-protocol/sp-cli",
|
|
206
137
|
"pluginType": "core",
|
|
207
138
|
"strict": true,
|
|
208
|
-
"enableJsonFlag": true,
|
|
209
139
|
"isESM": true,
|
|
210
140
|
"relativePath": [
|
|
211
141
|
"dist",
|
|
212
142
|
"commands",
|
|
213
|
-
"
|
|
214
|
-
"
|
|
143
|
+
"account",
|
|
144
|
+
"info.js"
|
|
215
145
|
]
|
|
216
146
|
},
|
|
217
|
-
"
|
|
147
|
+
"account:list": {
|
|
218
148
|
"aliases": [],
|
|
219
149
|
"args": {},
|
|
220
|
-
"description": "
|
|
150
|
+
"description": "List all Accounts",
|
|
221
151
|
"examples": [
|
|
222
|
-
"<%= config.bin %> <%= command.id %>
|
|
223
|
-
"<%= config.bin %> <%= command.id %> --name \"Production\" --url \"https://api.dp.superprotocol.com\""
|
|
152
|
+
"<%= config.bin %> <%= command.id %>"
|
|
224
153
|
],
|
|
225
154
|
"flags": {
|
|
226
155
|
"json": {
|
|
@@ -230,75 +159,12 @@
|
|
|
230
159
|
"allowNo": false,
|
|
231
160
|
"type": "boolean"
|
|
232
161
|
},
|
|
233
|
-
"
|
|
234
|
-
"char": "n",
|
|
235
|
-
"description": "Configuration name",
|
|
236
|
-
"name": "name",
|
|
237
|
-
"required": true,
|
|
238
|
-
"hasDynamicHelp": false,
|
|
239
|
-
"multiple": false,
|
|
240
|
-
"type": "option"
|
|
241
|
-
},
|
|
242
|
-
"url": {
|
|
243
|
-
"char": "u",
|
|
244
|
-
"description": "Provider base URL",
|
|
245
|
-
"name": "url",
|
|
246
|
-
"hasDynamicHelp": false,
|
|
247
|
-
"multiple": false,
|
|
248
|
-
"type": "option"
|
|
249
|
-
},
|
|
250
|
-
"yes": {
|
|
251
|
-
"char": "y",
|
|
252
|
-
"description": "Switch to new config",
|
|
253
|
-
"name": "yes",
|
|
254
|
-
"allowNo": false,
|
|
255
|
-
"type": "boolean"
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
"hasDynamicHelp": false,
|
|
259
|
-
"hiddenAliases": [],
|
|
260
|
-
"id": "config:create",
|
|
261
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
262
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
263
|
-
"pluginType": "core",
|
|
264
|
-
"strict": true,
|
|
265
|
-
"enableJsonFlag": true,
|
|
266
|
-
"isESM": true,
|
|
267
|
-
"relativePath": [
|
|
268
|
-
"dist",
|
|
269
|
-
"commands",
|
|
270
|
-
"config",
|
|
271
|
-
"create.js"
|
|
272
|
-
]
|
|
273
|
-
},
|
|
274
|
-
"config:delete": {
|
|
275
|
-
"aliases": [],
|
|
276
|
-
"args": {},
|
|
277
|
-
"description": "Delete a configuration file",
|
|
278
|
-
"examples": [
|
|
279
|
-
"<%= config.bin %> <%= command.id %>",
|
|
280
|
-
"<%= config.bin %> <%= command.id %> --name \"My Config\"",
|
|
281
|
-
"<%= config.bin %> <%= command.id %> --name \"My Config\" --force"
|
|
282
|
-
],
|
|
283
|
-
"flags": {
|
|
284
|
-
"json": {
|
|
285
|
-
"description": "Format output as json.",
|
|
162
|
+
"config": {
|
|
286
163
|
"helpGroup": "GLOBAL",
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
"force": {
|
|
292
|
-
"char": "f",
|
|
293
|
-
"description": "Force deletion without confirmation",
|
|
294
|
-
"name": "force",
|
|
295
|
-
"allowNo": false,
|
|
296
|
-
"type": "boolean"
|
|
297
|
-
},
|
|
298
|
-
"name": {
|
|
299
|
-
"char": "n",
|
|
300
|
-
"description": "Configuration name to delete",
|
|
301
|
-
"name": "name",
|
|
164
|
+
"hidden": true,
|
|
165
|
+
"name": "config",
|
|
166
|
+
"required": false,
|
|
167
|
+
"summary": "Specify config file.",
|
|
302
168
|
"hasDynamicHelp": false,
|
|
303
169
|
"multiple": false,
|
|
304
170
|
"type": "option"
|
|
@@ -306,170 +172,29 @@
|
|
|
306
172
|
},
|
|
307
173
|
"hasDynamicHelp": false,
|
|
308
174
|
"hiddenAliases": [],
|
|
309
|
-
"id": "
|
|
310
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
311
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
312
|
-
"pluginType": "core",
|
|
313
|
-
"strict": true,
|
|
314
|
-
"enableJsonFlag": true,
|
|
315
|
-
"isESM": true,
|
|
316
|
-
"relativePath": [
|
|
317
|
-
"dist",
|
|
318
|
-
"commands",
|
|
319
|
-
"config",
|
|
320
|
-
"delete.js"
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
"config": {
|
|
324
|
-
"aliases": [],
|
|
325
|
-
"args": {},
|
|
326
|
-
"description": "Manage configuration configs",
|
|
327
|
-
"examples": [
|
|
328
|
-
"<%= config.bin %> <%= command.id %> show - Show current configuration details",
|
|
329
|
-
"<%= config.bin %> <%= command.id %> list - List all configurations",
|
|
330
|
-
"<%= config.bin %> <%= command.id %> use - Switch to a configuration",
|
|
331
|
-
"<%= config.bin %> <%= command.id %> create --name \"My Config\" - Create new configuration",
|
|
332
|
-
"<%= config.bin %> <%= command.id %> add ./config.json - Import configuration from file",
|
|
333
|
-
"<%= config.bin %> <%= command.id %> delete - Delete a configuration"
|
|
334
|
-
],
|
|
335
|
-
"flags": {
|
|
336
|
-
"json": {
|
|
337
|
-
"description": "Format output as json.",
|
|
338
|
-
"helpGroup": "GLOBAL",
|
|
339
|
-
"name": "json",
|
|
340
|
-
"allowNo": false,
|
|
341
|
-
"type": "boolean"
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
"hasDynamicHelp": false,
|
|
345
|
-
"hiddenAliases": [],
|
|
346
|
-
"id": "config",
|
|
347
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
348
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
349
|
-
"pluginType": "core",
|
|
350
|
-
"strict": true,
|
|
351
|
-
"enableJsonFlag": true,
|
|
352
|
-
"isESM": true,
|
|
353
|
-
"relativePath": [
|
|
354
|
-
"dist",
|
|
355
|
-
"commands",
|
|
356
|
-
"config",
|
|
357
|
-
"index.js"
|
|
358
|
-
]
|
|
359
|
-
},
|
|
360
|
-
"config:list": {
|
|
361
|
-
"aliases": [],
|
|
362
|
-
"args": {},
|
|
363
|
-
"description": "List all configurations",
|
|
364
|
-
"examples": [
|
|
365
|
-
"<%= config.bin %> <%= command.id %>"
|
|
366
|
-
],
|
|
367
|
-
"flags": {
|
|
368
|
-
"json": {
|
|
369
|
-
"description": "Format output as json.",
|
|
370
|
-
"helpGroup": "GLOBAL",
|
|
371
|
-
"name": "json",
|
|
372
|
-
"allowNo": false,
|
|
373
|
-
"type": "boolean"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
"hasDynamicHelp": false,
|
|
377
|
-
"hiddenAliases": [],
|
|
378
|
-
"id": "config:list",
|
|
175
|
+
"id": "account:list",
|
|
379
176
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
380
177
|
"pluginName": "@super-protocol/sp-cli",
|
|
381
178
|
"pluginType": "core",
|
|
382
179
|
"strict": true,
|
|
383
180
|
"enableJsonFlag": true,
|
|
181
|
+
"authenticate": false,
|
|
384
182
|
"isESM": true,
|
|
385
183
|
"relativePath": [
|
|
386
184
|
"dist",
|
|
387
185
|
"commands",
|
|
388
|
-
"
|
|
186
|
+
"account",
|
|
389
187
|
"list.js"
|
|
390
188
|
]
|
|
391
189
|
},
|
|
392
|
-
"
|
|
393
|
-
"aliases": [
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
"
|
|
397
|
-
|
|
398
|
-
],
|
|
399
|
-
"flags": {
|
|
400
|
-
"json": {
|
|
401
|
-
"description": "Format output as json.",
|
|
402
|
-
"helpGroup": "GLOBAL",
|
|
403
|
-
"name": "json",
|
|
404
|
-
"allowNo": false,
|
|
405
|
-
"type": "boolean"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"hasDynamicHelp": false,
|
|
409
|
-
"hiddenAliases": [],
|
|
410
|
-
"id": "config:show",
|
|
411
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
412
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
413
|
-
"pluginType": "core",
|
|
414
|
-
"strict": true,
|
|
415
|
-
"enableJsonFlag": true,
|
|
416
|
-
"isESM": true,
|
|
417
|
-
"relativePath": [
|
|
418
|
-
"dist",
|
|
419
|
-
"commands",
|
|
420
|
-
"config",
|
|
421
|
-
"show.js"
|
|
422
|
-
]
|
|
423
|
-
},
|
|
424
|
-
"config:use": {
|
|
425
|
-
"aliases": [],
|
|
426
|
-
"args": {},
|
|
427
|
-
"description": "Switch to a different configuration file",
|
|
428
|
-
"examples": [
|
|
429
|
-
"<%= config.bin %> <%= command.id %>"
|
|
430
|
-
],
|
|
431
|
-
"flags": {
|
|
432
|
-
"json": {
|
|
433
|
-
"description": "Format output as json.",
|
|
434
|
-
"helpGroup": "GLOBAL",
|
|
435
|
-
"name": "json",
|
|
436
|
-
"allowNo": false,
|
|
437
|
-
"type": "boolean"
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
"hasDynamicHelp": false,
|
|
441
|
-
"hiddenAliases": [],
|
|
442
|
-
"id": "config:use",
|
|
443
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
444
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
445
|
-
"pluginType": "core",
|
|
446
|
-
"strict": true,
|
|
447
|
-
"enableJsonFlag": true,
|
|
448
|
-
"isESM": true,
|
|
449
|
-
"relativePath": [
|
|
450
|
-
"dist",
|
|
451
|
-
"commands",
|
|
452
|
-
"config",
|
|
453
|
-
"use.js"
|
|
454
|
-
]
|
|
455
|
-
},
|
|
456
|
-
"files:download": {
|
|
457
|
-
"aliases": [],
|
|
458
|
-
"args": {
|
|
459
|
-
"resourceFile": {
|
|
460
|
-
"description": "Path to a resource file",
|
|
461
|
-
"name": "resourceFile",
|
|
462
|
-
"required": true
|
|
463
|
-
},
|
|
464
|
-
"localDirectory": {
|
|
465
|
-
"description": "Path to save downloaded file",
|
|
466
|
-
"name": "localDirectory",
|
|
467
|
-
"required": true
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
"description": "Download file or directory described in resource file",
|
|
190
|
+
"account:login": {
|
|
191
|
+
"aliases": [
|
|
192
|
+
"login"
|
|
193
|
+
],
|
|
194
|
+
"args": {},
|
|
195
|
+
"description": "Login to SuperProtocol (sign up or sign in).",
|
|
471
196
|
"examples": [
|
|
472
|
-
"<%= config.bin %> <%= command.id
|
|
197
|
+
"<%= config.bin %> <%= command.id %>\n"
|
|
473
198
|
],
|
|
474
199
|
"flags": {
|
|
475
200
|
"json": {
|
|
@@ -481,6 +206,7 @@
|
|
|
481
206
|
},
|
|
482
207
|
"config": {
|
|
483
208
|
"helpGroup": "GLOBAL",
|
|
209
|
+
"hidden": true,
|
|
484
210
|
"name": "config",
|
|
485
211
|
"required": false,
|
|
486
212
|
"summary": "Specify config file.",
|
|
@@ -488,44 +214,58 @@
|
|
|
488
214
|
"multiple": false,
|
|
489
215
|
"type": "option"
|
|
490
216
|
},
|
|
491
|
-
"
|
|
492
|
-
"description": "
|
|
493
|
-
"name": "
|
|
494
|
-
"
|
|
217
|
+
"name": {
|
|
218
|
+
"description": "Account readable name",
|
|
219
|
+
"name": "name",
|
|
220
|
+
"hasDynamicHelp": false,
|
|
221
|
+
"multiple": false,
|
|
222
|
+
"type": "option"
|
|
223
|
+
},
|
|
224
|
+
"privateKey": {
|
|
225
|
+
"description": "Account private key used for authentication",
|
|
226
|
+
"name": "privateKey",
|
|
227
|
+
"hasDynamicHelp": false,
|
|
228
|
+
"multiple": false,
|
|
229
|
+
"type": "option"
|
|
230
|
+
},
|
|
231
|
+
"url": {
|
|
232
|
+
"description": "Provider base URL",
|
|
233
|
+
"hidden": true,
|
|
234
|
+
"name": "url",
|
|
495
235
|
"hasDynamicHelp": false,
|
|
496
236
|
"multiple": false,
|
|
497
237
|
"type": "option"
|
|
238
|
+
},
|
|
239
|
+
"yes": {
|
|
240
|
+
"char": "y",
|
|
241
|
+
"description": "Skip questions (generate keys when needed).",
|
|
242
|
+
"name": "yes",
|
|
243
|
+
"allowNo": false,
|
|
244
|
+
"type": "boolean"
|
|
498
245
|
}
|
|
499
246
|
},
|
|
500
247
|
"hasDynamicHelp": false,
|
|
501
248
|
"hiddenAliases": [],
|
|
502
|
-
"id": "
|
|
249
|
+
"id": "account:login",
|
|
503
250
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
504
251
|
"pluginName": "@super-protocol/sp-cli",
|
|
505
252
|
"pluginType": "core",
|
|
506
253
|
"strict": true,
|
|
507
|
-
"
|
|
508
|
-
"help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
|
|
254
|
+
"authenticate": false,
|
|
509
255
|
"isESM": true,
|
|
510
256
|
"relativePath": [
|
|
511
257
|
"dist",
|
|
512
258
|
"commands",
|
|
513
|
-
"
|
|
514
|
-
"
|
|
259
|
+
"account",
|
|
260
|
+
"login.js"
|
|
515
261
|
]
|
|
516
262
|
},
|
|
517
|
-
"
|
|
263
|
+
"account:switch": {
|
|
518
264
|
"aliases": [],
|
|
519
|
-
"args": {
|
|
520
|
-
|
|
521
|
-
"description": "file or directory to upload",
|
|
522
|
-
"name": "path",
|
|
523
|
-
"required": true
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
"description": "Upload file or directory to remote storage",
|
|
265
|
+
"args": {},
|
|
266
|
+
"description": "Switch to a different account",
|
|
527
267
|
"examples": [
|
|
528
|
-
"<%= config.bin %> <%= command.id %>
|
|
268
|
+
"<%= config.bin %> <%= command.id %>"
|
|
529
269
|
],
|
|
530
270
|
"flags": {
|
|
531
271
|
"json": {
|
|
@@ -537,75 +277,29 @@
|
|
|
537
277
|
},
|
|
538
278
|
"config": {
|
|
539
279
|
"helpGroup": "GLOBAL",
|
|
280
|
+
"hidden": true,
|
|
540
281
|
"name": "config",
|
|
541
282
|
"required": false,
|
|
542
283
|
"summary": "Specify config file.",
|
|
543
284
|
"hasDynamicHelp": false,
|
|
544
285
|
"multiple": false,
|
|
545
286
|
"type": "option"
|
|
546
|
-
},
|
|
547
|
-
"filename": {
|
|
548
|
-
"description": "The name of the resulting file/directory in the storage",
|
|
549
|
-
"name": "filename",
|
|
550
|
-
"required": false,
|
|
551
|
-
"hasDynamicHelp": false,
|
|
552
|
-
"multiple": false,
|
|
553
|
-
"type": "option"
|
|
554
|
-
},
|
|
555
|
-
"maximum-concurrent": {
|
|
556
|
-
"description": "Maximum concurrent pieces to upload at once per transfer",
|
|
557
|
-
"name": "maximum-concurrent",
|
|
558
|
-
"default": 1,
|
|
559
|
-
"hasDynamicHelp": false,
|
|
560
|
-
"multiple": false,
|
|
561
|
-
"type": "option"
|
|
562
|
-
},
|
|
563
|
-
"metadata": {
|
|
564
|
-
"description": "Path to a metadata file for adding fields to the resource file",
|
|
565
|
-
"name": "metadata",
|
|
566
|
-
"required": false,
|
|
567
|
-
"hasDynamicHelp": false,
|
|
568
|
-
"multiple": false,
|
|
569
|
-
"type": "option"
|
|
570
|
-
},
|
|
571
|
-
"output": {
|
|
572
|
-
"description": "Path to save resource file that is used to access the uploaded file",
|
|
573
|
-
"name": "output",
|
|
574
|
-
"required": false,
|
|
575
|
-
"default": "resource.json",
|
|
576
|
-
"hasDynamicHelp": false,
|
|
577
|
-
"multiple": false,
|
|
578
|
-
"type": "option"
|
|
579
|
-
},
|
|
580
|
-
"skip-encryption": {
|
|
581
|
-
"description": "Skip file encryption before upload",
|
|
582
|
-
"name": "skip-encryption",
|
|
583
|
-
"required": false,
|
|
584
|
-
"allowNo": false,
|
|
585
|
-
"type": "boolean"
|
|
586
|
-
},
|
|
587
|
-
"sync": {
|
|
588
|
-
"description": "Sync mode: delete files in target that don't exist in source",
|
|
589
|
-
"name": "sync",
|
|
590
|
-
"required": false,
|
|
591
|
-
"allowNo": false,
|
|
592
|
-
"type": "boolean"
|
|
593
287
|
}
|
|
594
288
|
},
|
|
595
289
|
"hasDynamicHelp": false,
|
|
596
290
|
"hiddenAliases": [],
|
|
597
|
-
"id": "
|
|
291
|
+
"id": "account:switch",
|
|
598
292
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
599
293
|
"pluginName": "@super-protocol/sp-cli",
|
|
600
294
|
"pluginType": "core",
|
|
601
295
|
"strict": true,
|
|
602
|
-
"
|
|
296
|
+
"authenticate": false,
|
|
603
297
|
"isESM": true,
|
|
604
298
|
"relativePath": [
|
|
605
299
|
"dist",
|
|
606
300
|
"commands",
|
|
607
|
-
"
|
|
608
|
-
"
|
|
301
|
+
"account",
|
|
302
|
+
"switch.js"
|
|
609
303
|
]
|
|
610
304
|
},
|
|
611
305
|
"storage:create": {
|
|
@@ -627,6 +321,7 @@
|
|
|
627
321
|
},
|
|
628
322
|
"config": {
|
|
629
323
|
"helpGroup": "GLOBAL",
|
|
324
|
+
"hidden": true,
|
|
630
325
|
"name": "config",
|
|
631
326
|
"required": false,
|
|
632
327
|
"summary": "Specify config file.",
|
|
@@ -684,6 +379,7 @@
|
|
|
684
379
|
},
|
|
685
380
|
"config": {
|
|
686
381
|
"helpGroup": "GLOBAL",
|
|
382
|
+
"hidden": true,
|
|
687
383
|
"name": "config",
|
|
688
384
|
"required": false,
|
|
689
385
|
"summary": "Specify config file.",
|
|
@@ -724,6 +420,7 @@
|
|
|
724
420
|
},
|
|
725
421
|
"config": {
|
|
726
422
|
"helpGroup": "GLOBAL",
|
|
423
|
+
"hidden": true,
|
|
727
424
|
"name": "config",
|
|
728
425
|
"required": false,
|
|
729
426
|
"summary": "Specify config file.",
|
|
@@ -765,6 +462,7 @@
|
|
|
765
462
|
},
|
|
766
463
|
"config": {
|
|
767
464
|
"helpGroup": "GLOBAL",
|
|
465
|
+
"hidden": true,
|
|
768
466
|
"name": "config",
|
|
769
467
|
"required": false,
|
|
770
468
|
"summary": "Specify config file.",
|
|
@@ -829,6 +527,7 @@
|
|
|
829
527
|
},
|
|
830
528
|
"config": {
|
|
831
529
|
"helpGroup": "GLOBAL",
|
|
530
|
+
"hidden": true,
|
|
832
531
|
"name": "config",
|
|
833
532
|
"required": false,
|
|
834
533
|
"summary": "Specify config file.",
|
|
@@ -866,6 +565,7 @@
|
|
|
866
565
|
"pluginType": "core",
|
|
867
566
|
"strict": true,
|
|
868
567
|
"enableJsonFlag": true,
|
|
568
|
+
"authenticate": true,
|
|
869
569
|
"isESM": true,
|
|
870
570
|
"relativePath": [
|
|
871
571
|
"dist",
|
|
@@ -873,7 +573,166 @@
|
|
|
873
573
|
"workflows",
|
|
874
574
|
"extend-lease.js"
|
|
875
575
|
]
|
|
576
|
+
},
|
|
577
|
+
"files:download": {
|
|
578
|
+
"aliases": [],
|
|
579
|
+
"args": {
|
|
580
|
+
"resourceFile": {
|
|
581
|
+
"description": "Path to a resource file",
|
|
582
|
+
"name": "resourceFile",
|
|
583
|
+
"required": true
|
|
584
|
+
},
|
|
585
|
+
"localDirectory": {
|
|
586
|
+
"description": "Path to save downloaded file",
|
|
587
|
+
"name": "localDirectory",
|
|
588
|
+
"required": true
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"description": "Download file or directory described in resource file",
|
|
592
|
+
"examples": [
|
|
593
|
+
"<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload "
|
|
594
|
+
],
|
|
595
|
+
"flags": {
|
|
596
|
+
"json": {
|
|
597
|
+
"description": "Format output as json.",
|
|
598
|
+
"helpGroup": "GLOBAL",
|
|
599
|
+
"name": "json",
|
|
600
|
+
"allowNo": false,
|
|
601
|
+
"type": "boolean"
|
|
602
|
+
},
|
|
603
|
+
"config": {
|
|
604
|
+
"helpGroup": "GLOBAL",
|
|
605
|
+
"hidden": true,
|
|
606
|
+
"name": "config",
|
|
607
|
+
"required": false,
|
|
608
|
+
"summary": "Specify config file.",
|
|
609
|
+
"hasDynamicHelp": false,
|
|
610
|
+
"multiple": false,
|
|
611
|
+
"type": "option"
|
|
612
|
+
},
|
|
613
|
+
"maximum-concurrent": {
|
|
614
|
+
"description": "Maximum concurrent pieces to download at once per transfer",
|
|
615
|
+
"name": "maximum-concurrent",
|
|
616
|
+
"default": 1,
|
|
617
|
+
"hasDynamicHelp": false,
|
|
618
|
+
"multiple": false,
|
|
619
|
+
"type": "option"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"hasDynamicHelp": false,
|
|
623
|
+
"hiddenAliases": [],
|
|
624
|
+
"id": "files:download",
|
|
625
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
626
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
627
|
+
"pluginType": "core",
|
|
628
|
+
"strict": true,
|
|
629
|
+
"enableJsonFlag": true,
|
|
630
|
+
"authenticate": true,
|
|
631
|
+
"help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
|
|
632
|
+
"isESM": true,
|
|
633
|
+
"relativePath": [
|
|
634
|
+
"dist",
|
|
635
|
+
"commands",
|
|
636
|
+
"files",
|
|
637
|
+
"download.js"
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
"files:upload": {
|
|
641
|
+
"aliases": [],
|
|
642
|
+
"args": {
|
|
643
|
+
"path": {
|
|
644
|
+
"description": "file or directory to upload",
|
|
645
|
+
"name": "path",
|
|
646
|
+
"required": true
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"description": "Upload file or directory to remote storage",
|
|
650
|
+
"examples": [
|
|
651
|
+
"<%= config.bin %> <%= command.id %> ./file.txt"
|
|
652
|
+
],
|
|
653
|
+
"flags": {
|
|
654
|
+
"json": {
|
|
655
|
+
"description": "Format output as json.",
|
|
656
|
+
"helpGroup": "GLOBAL",
|
|
657
|
+
"name": "json",
|
|
658
|
+
"allowNo": false,
|
|
659
|
+
"type": "boolean"
|
|
660
|
+
},
|
|
661
|
+
"config": {
|
|
662
|
+
"helpGroup": "GLOBAL",
|
|
663
|
+
"hidden": true,
|
|
664
|
+
"name": "config",
|
|
665
|
+
"required": false,
|
|
666
|
+
"summary": "Specify config file.",
|
|
667
|
+
"hasDynamicHelp": false,
|
|
668
|
+
"multiple": false,
|
|
669
|
+
"type": "option"
|
|
670
|
+
},
|
|
671
|
+
"filename": {
|
|
672
|
+
"description": "The name of the resulting file/directory in the storage",
|
|
673
|
+
"name": "filename",
|
|
674
|
+
"required": false,
|
|
675
|
+
"hasDynamicHelp": false,
|
|
676
|
+
"multiple": false,
|
|
677
|
+
"type": "option"
|
|
678
|
+
},
|
|
679
|
+
"maximum-concurrent": {
|
|
680
|
+
"description": "Maximum concurrent pieces to upload at once per transfer",
|
|
681
|
+
"name": "maximum-concurrent",
|
|
682
|
+
"default": 1,
|
|
683
|
+
"hasDynamicHelp": false,
|
|
684
|
+
"multiple": false,
|
|
685
|
+
"type": "option"
|
|
686
|
+
},
|
|
687
|
+
"metadata": {
|
|
688
|
+
"description": "Path to a metadata file for adding fields to the resource file",
|
|
689
|
+
"name": "metadata",
|
|
690
|
+
"required": false,
|
|
691
|
+
"hasDynamicHelp": false,
|
|
692
|
+
"multiple": false,
|
|
693
|
+
"type": "option"
|
|
694
|
+
},
|
|
695
|
+
"output": {
|
|
696
|
+
"description": "Path to save resource file that is used to access the uploaded file",
|
|
697
|
+
"name": "output",
|
|
698
|
+
"required": false,
|
|
699
|
+
"default": "resource.json",
|
|
700
|
+
"hasDynamicHelp": false,
|
|
701
|
+
"multiple": false,
|
|
702
|
+
"type": "option"
|
|
703
|
+
},
|
|
704
|
+
"skip-encryption": {
|
|
705
|
+
"description": "Skip file encryption before upload",
|
|
706
|
+
"name": "skip-encryption",
|
|
707
|
+
"required": false,
|
|
708
|
+
"allowNo": false,
|
|
709
|
+
"type": "boolean"
|
|
710
|
+
},
|
|
711
|
+
"sync": {
|
|
712
|
+
"description": "Sync mode: delete files in target that don't exist in source",
|
|
713
|
+
"name": "sync",
|
|
714
|
+
"required": false,
|
|
715
|
+
"allowNo": false,
|
|
716
|
+
"type": "boolean"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
"hasDynamicHelp": false,
|
|
720
|
+
"hiddenAliases": [],
|
|
721
|
+
"id": "files:upload",
|
|
722
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
723
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
724
|
+
"pluginType": "core",
|
|
725
|
+
"strict": true,
|
|
726
|
+
"enableJsonFlag": true,
|
|
727
|
+
"authenticate": true,
|
|
728
|
+
"isESM": true,
|
|
729
|
+
"relativePath": [
|
|
730
|
+
"dist",
|
|
731
|
+
"commands",
|
|
732
|
+
"files",
|
|
733
|
+
"upload.js"
|
|
734
|
+
]
|
|
876
735
|
}
|
|
877
736
|
},
|
|
878
|
-
"version": "0.0.
|
|
737
|
+
"version": "0.0.7"
|
|
879
738
|
}
|