@super-protocol/sp-cli 0.0.2-beta.11 → 0.0.2-beta.12

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 CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @super-protocol/sp-cli
21
21
  $ sp COMMAND
22
22
  running command...
23
23
  $ sp (--version)
24
- @super-protocol/sp-cli/0.0.2-beta.11 linux-x64 node-v22.21.1
24
+ @super-protocol/sp-cli/0.0.2-beta.12 linux-x64 node-v22.21.1
25
25
  $ sp --help [COMMAND]
26
26
  USAGE
27
27
  $ sp COMMAND
@@ -34,10 +34,8 @@ USAGE
34
34
  * [`sp auth login`](#sp-auth-login)
35
35
  * [`sp auth me`](#sp-auth-me)
36
36
  * [`sp autocomplete [SHELL]`](#sp-autocomplete-shell)
37
- * [`sp base`](#sp-base)
38
37
  * [`sp config`](#sp-config)
39
38
  * [`sp config add [FILE]`](#sp-config-add-file)
40
- * [`sp config base`](#sp-config-base)
41
39
  * [`sp config create`](#sp-config-create)
42
40
  * [`sp config delete`](#sp-config-delete)
43
41
  * [`sp config list`](#sp-config-list)
@@ -47,13 +45,14 @@ USAGE
47
45
  * [`sp files upload PATH`](#sp-files-upload-path)
48
46
  * [`sp help [COMMAND]`](#sp-help-command)
49
47
  * [`sp login`](#sp-login)
50
- * [`sp storage base`](#sp-storage-base)
51
48
  * [`sp storage create`](#sp-storage-create)
52
49
  * [`sp storage select`](#sp-storage-select)
53
50
  * [`sp storage update`](#sp-storage-update)
54
51
 
55
52
  ## `sp account info`
56
53
 
54
+ Information about current authorized user
55
+
57
56
  ```
58
57
  USAGE
59
58
  $ sp account info [--json] [--config <value>]
@@ -61,13 +60,16 @@ USAGE
61
60
  GLOBAL FLAGS
62
61
  --config=<value> Specify config file.
63
62
  --json Format output as json.
63
+
64
+ DESCRIPTION
65
+ Information about current authorized user
64
66
  ```
65
67
 
66
- _See code: [src/commands/account/info.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/account/info.ts)_
68
+ _See code: [src/commands/account/info.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/account/info.ts)_
67
69
 
68
70
  ## `sp auth login`
69
71
 
70
- Authorization
72
+ Login to remote server
71
73
 
72
74
  ```
73
75
  USAGE
@@ -78,7 +80,7 @@ GLOBAL FLAGS
78
80
  --json Format output as json.
79
81
 
80
82
  DESCRIPTION
81
- Authorization
83
+ Login to remote server
82
84
 
83
85
  ALIASES
84
86
  $ sp login
@@ -87,7 +89,7 @@ EXAMPLES
87
89
  $ sp auth login
88
90
  ```
89
91
 
90
- _See code: [src/commands/auth/login.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/auth/login.ts)_
92
+ _See code: [src/commands/auth/login.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/auth/login.ts)_
91
93
 
92
94
  ## `sp auth me`
93
95
 
@@ -100,7 +102,7 @@ GLOBAL FLAGS
100
102
  --json Format output as json.
101
103
  ```
102
104
 
103
- _See code: [src/commands/auth/me.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/auth/me.ts)_
105
+ _See code: [src/commands/auth/me.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/auth/me.ts)_
104
106
 
105
107
  ## `sp autocomplete [SHELL]`
106
108
 
@@ -133,19 +135,6 @@ EXAMPLES
133
135
 
134
136
  _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.39/src/commands/autocomplete/index.ts)_
135
137
 
136
- ## `sp base`
137
-
138
- ```
139
- USAGE
140
- $ sp base [--json] [--config <value>]
141
-
142
- GLOBAL FLAGS
143
- --config=<value> Specify config file.
144
- --json Format output as json.
145
- ```
146
-
147
- _See code: [src/commands/base.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/base.ts)_
148
-
149
138
  ## `sp config`
150
139
 
151
140
  Manage configuration configs
@@ -174,7 +163,7 @@ EXAMPLES
174
163
  $ sp config delete - Delete a configuration
175
164
  ```
176
165
 
177
- _See code: [src/commands/config/index.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/index.ts)_
166
+ _See code: [src/commands/config/index.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/index.ts)_
178
167
 
179
168
  ## `sp config add [FILE]`
180
169
 
@@ -213,19 +202,7 @@ EXAMPLES
213
202
  }
214
203
  ```
215
204
 
216
- _See code: [src/commands/config/add.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/add.ts)_
217
-
218
- ## `sp config base`
219
-
220
- ```
221
- USAGE
222
- $ sp config base [--json]
223
-
224
- GLOBAL FLAGS
225
- --json Format output as json.
226
- ```
227
-
228
- _See code: [src/commands/config/base.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/base.ts)_
205
+ _See code: [src/commands/config/add.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/add.ts)_
229
206
 
230
207
  ## `sp config create`
231
208
 
@@ -252,7 +229,7 @@ EXAMPLES
252
229
  $ sp config create --name "Production" --url "https://api.dp.superprotocol.com"
253
230
  ```
254
231
 
255
- _See code: [src/commands/config/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/create.ts)_
232
+ _See code: [src/commands/config/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/create.ts)_
256
233
 
257
234
  ## `sp config delete`
258
235
 
@@ -280,7 +257,7 @@ EXAMPLES
280
257
  $ sp config delete --name "My Config" --force
281
258
  ```
282
259
 
283
- _See code: [src/commands/config/delete.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/delete.ts)_
260
+ _See code: [src/commands/config/delete.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/delete.ts)_
284
261
 
285
262
  ## `sp config list`
286
263
 
@@ -300,7 +277,7 @@ EXAMPLES
300
277
  $ sp config list
301
278
  ```
302
279
 
303
- _See code: [src/commands/config/list.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/list.ts)_
280
+ _See code: [src/commands/config/list.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/list.ts)_
304
281
 
305
282
  ## `sp config show`
306
283
 
@@ -320,7 +297,7 @@ EXAMPLES
320
297
  $ sp config show
321
298
  ```
322
299
 
323
- _See code: [src/commands/config/show.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/show.ts)_
300
+ _See code: [src/commands/config/show.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/show.ts)_
324
301
 
325
302
  ## `sp config use`
326
303
 
@@ -340,11 +317,11 @@ EXAMPLES
340
317
  $ sp config use
341
318
  ```
342
319
 
343
- _See code: [src/commands/config/use.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/config/use.ts)_
320
+ _See code: [src/commands/config/use.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/use.ts)_
344
321
 
345
322
  ## `sp files download RESOURCEFILE LOCALDIRECTORY`
346
323
 
347
- describe the command here
324
+ Download file or directory described in resource frole
348
325
 
349
326
  ```
350
327
  USAGE
@@ -362,17 +339,17 @@ GLOBAL FLAGS
362
339
  --json Format output as json.
363
340
 
364
341
  DESCRIPTION
365
- describe the command here
342
+ Download file or directory described in resource frole
366
343
 
367
344
  EXAMPLES
368
345
  $ sp files download ./resource.json ./pathToDownload
369
346
  ```
370
347
 
371
- _See code: [src/commands/files/download.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/files/download.ts)_
348
+ _See code: [src/commands/files/download.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/files/download.ts)_
372
349
 
373
350
  ## `sp files upload PATH`
374
351
 
375
- describe the command here
352
+ Upload files of directory to remote storage
376
353
 
377
354
  ```
378
355
  USAGE
@@ -396,13 +373,13 @@ GLOBAL FLAGS
396
373
  --json Format output as json.
397
374
 
398
375
  DESCRIPTION
399
- describe the command here
376
+ Upload files of directory to remote storage
400
377
 
401
378
  EXAMPLES
402
379
  $ sp files upload ./file.txt
403
380
  ```
404
381
 
405
- _See code: [src/commands/files/upload.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/files/upload.ts)_
382
+ _See code: [src/commands/files/upload.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/files/upload.ts)_
406
383
 
407
384
  ## `sp help [COMMAND]`
408
385
 
@@ -426,7 +403,7 @@ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.3
426
403
 
427
404
  ## `sp login`
428
405
 
429
- Authorization
406
+ Login to remote server
430
407
 
431
408
  ```
432
409
  USAGE
@@ -437,7 +414,7 @@ GLOBAL FLAGS
437
414
  --json Format output as json.
438
415
 
439
416
  DESCRIPTION
440
- Authorization
417
+ Login to remote server
441
418
 
442
419
  ALIASES
443
420
  $ sp login
@@ -446,19 +423,6 @@ EXAMPLES
446
423
  $ sp login
447
424
  ```
448
425
 
449
- ## `sp storage base`
450
-
451
- ```
452
- USAGE
453
- $ sp storage base [--json] [--config <value>]
454
-
455
- GLOBAL FLAGS
456
- --config=<value> Specify config file.
457
- --json Format output as json.
458
- ```
459
-
460
- _See code: [src/commands/storage/base.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/storage/base.ts)_
461
-
462
426
  ## `sp storage create`
463
427
 
464
428
  Create a new storage entry from file or interactive prompts.
@@ -486,7 +450,7 @@ EXAMPLES
486
450
  $ sp storage create --not-default
487
451
  ```
488
452
 
489
- _See code: [src/commands/storage/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/storage/create.ts)_
453
+ _See code: [src/commands/storage/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/storage/create.ts)_
490
454
 
491
455
  ## `sp storage select`
492
456
 
@@ -512,7 +476,7 @@ EXAMPLES
512
476
  $ sp storage select --id=2de3e3a4-0000-1111-2222-333344445555
513
477
  ```
514
478
 
515
- _See code: [src/commands/storage/select.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/storage/select.ts)_
479
+ _See code: [src/commands/storage/select.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/storage/select.ts)_
516
480
 
517
481
  ## `sp storage update`
518
482
 
@@ -539,5 +503,5 @@ EXAMPLES
539
503
  $ sp storage update --id=2de3e3a4-0000-1111-2222-333344445555
540
504
  ```
541
505
 
542
- _See code: [src/commands/storage/update.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.11/src/commands/storage/update.ts)_
506
+ _See code: [src/commands/storage/update.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/storage/update.ts)_
543
507
  <!-- commandsstop -->
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../base.js';
2
2
  export declare class InfoCommand extends BaseCommand<typeof InfoCommand> {
3
+ static description: string;
3
4
  init(): Promise<void>;
4
5
  run(): Promise<{
5
6
  address: string;
@@ -2,6 +2,7 @@ import { formatEther } from 'viem';
2
2
  import { StorageService } from '../../services/storage.service.js';
3
3
  import { BaseCommand } from '../base.js';
4
4
  export class InfoCommand extends BaseCommand {
5
+ static description = 'Information about current authorized user';
5
6
  async init() {
6
7
  await super.init();
7
8
  await this.container.initProviderClient().initAccountManager().initConfigManager().build();
@@ -3,7 +3,7 @@ import { StorageService } from '../../services/storage.service.js';
3
3
  import { BaseCommand } from '../base.js';
4
4
  export default class SpLogin extends BaseCommand {
5
5
  static aliases = ['login'];
6
- static description = 'Authorization';
6
+ static description = 'Login to remote server';
7
7
  static examples = [
8
8
  `<%= config.bin %> <%= command.id %>
9
9
  `,
@@ -8,7 +8,7 @@ export default class FilesDownload extends BaseCommand {
8
8
  // eslint-disable-next-line perfectionist/sort-objects
9
9
  localDirectory: Args.string({ description: 'Path to save downloaded file', required: true }),
10
10
  };
11
- static description = 'describe the command here';
11
+ static description = 'Download file or directory described in resource frole';
12
12
  static examples = [
13
13
  '<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload ',
14
14
  ];
@@ -6,7 +6,7 @@ export default class FilesUpload extends BaseCommand {
6
6
  static args = {
7
7
  path: Args.string({ description: 'file or directory to upload', required: true }),
8
8
  };
9
- static description = 'describe the command here';
9
+ static description = 'Upload files of directory to remote storage';
10
10
  static examples = [
11
11
  '<%= config.bin %> <%= command.id %> ./file.txt',
12
12
  ];
@@ -1,44 +1,9 @@
1
1
  {
2
2
  "commands": {
3
- "base": {
4
- "aliases": [],
5
- "args": {},
6
- "flags": {
7
- "json": {
8
- "description": "Format output as json.",
9
- "helpGroup": "GLOBAL",
10
- "name": "json",
11
- "allowNo": false,
12
- "type": "boolean"
13
- },
14
- "config": {
15
- "helpGroup": "GLOBAL",
16
- "name": "config",
17
- "required": false,
18
- "summary": "Specify config file.",
19
- "hasDynamicHelp": false,
20
- "multiple": false,
21
- "type": "option"
22
- }
23
- },
24
- "hasDynamicHelp": false,
25
- "hiddenAliases": [],
26
- "id": "base",
27
- "pluginAlias": "@super-protocol/sp-cli",
28
- "pluginName": "@super-protocol/sp-cli",
29
- "pluginType": "core",
30
- "strict": true,
31
- "enableJsonFlag": true,
32
- "isESM": true,
33
- "relativePath": [
34
- "dist",
35
- "commands",
36
- "base.js"
37
- ]
38
- },
39
3
  "account:info": {
40
4
  "aliases": [],
41
5
  "args": {},
6
+ "description": "Information about current authorized user",
42
7
  "flags": {
43
8
  "json": {
44
9
  "description": "Format output as json.",
@@ -78,7 +43,7 @@
78
43
  "login"
79
44
  ],
80
45
  "args": {},
81
- "description": "Authorization",
46
+ "description": "Login to remote server",
82
47
  "examples": [
83
48
  "<%= config.bin %> <%= command.id %>\n"
84
49
  ],
@@ -208,34 +173,6 @@
208
173
  "add.js"
209
174
  ]
210
175
  },
211
- "config:base": {
212
- "aliases": [],
213
- "args": {},
214
- "flags": {
215
- "json": {
216
- "description": "Format output as json.",
217
- "helpGroup": "GLOBAL",
218
- "name": "json",
219
- "allowNo": false,
220
- "type": "boolean"
221
- }
222
- },
223
- "hasDynamicHelp": false,
224
- "hiddenAliases": [],
225
- "id": "config:base",
226
- "pluginAlias": "@super-protocol/sp-cli",
227
- "pluginName": "@super-protocol/sp-cli",
228
- "pluginType": "core",
229
- "strict": true,
230
- "enableJsonFlag": true,
231
- "isESM": true,
232
- "relativePath": [
233
- "dist",
234
- "commands",
235
- "config",
236
- "base.js"
237
- ]
238
- },
239
176
  "config:create": {
240
177
  "aliases": [],
241
178
  "args": {},
@@ -489,7 +426,7 @@
489
426
  "required": true
490
427
  }
491
428
  },
492
- "description": "describe the command here",
429
+ "description": "Download file or directory described in resource frole",
493
430
  "examples": [
494
431
  "<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload "
495
432
  ],
@@ -545,7 +482,7 @@
545
482
  "required": true
546
483
  }
547
484
  },
548
- "description": "describe the command here",
485
+ "description": "Upload files of directory to remote storage",
549
486
  "examples": [
550
487
  "<%= config.bin %> <%= command.id %> ./file.txt"
551
488
  ],
@@ -630,43 +567,6 @@
630
567
  "upload.js"
631
568
  ]
632
569
  },
633
- "storage:base": {
634
- "aliases": [],
635
- "args": {},
636
- "flags": {
637
- "json": {
638
- "description": "Format output as json.",
639
- "helpGroup": "GLOBAL",
640
- "name": "json",
641
- "allowNo": false,
642
- "type": "boolean"
643
- },
644
- "config": {
645
- "helpGroup": "GLOBAL",
646
- "name": "config",
647
- "required": false,
648
- "summary": "Specify config file.",
649
- "hasDynamicHelp": false,
650
- "multiple": false,
651
- "type": "option"
652
- }
653
- },
654
- "hasDynamicHelp": false,
655
- "hiddenAliases": [],
656
- "id": "storage:base",
657
- "pluginAlias": "@super-protocol/sp-cli",
658
- "pluginName": "@super-protocol/sp-cli",
659
- "pluginType": "core",
660
- "strict": true,
661
- "enableJsonFlag": true,
662
- "isESM": true,
663
- "relativePath": [
664
- "dist",
665
- "commands",
666
- "storage",
667
- "base.js"
668
- ]
669
- },
670
570
  "storage:create": {
671
571
  "aliases": [],
672
572
  "args": {},
@@ -718,7 +618,6 @@
718
618
  "pluginName": "@super-protocol/sp-cli",
719
619
  "pluginType": "core",
720
620
  "strict": true,
721
- "enableJsonFlag": true,
722
621
  "isESM": true,
723
622
  "relativePath": [
724
623
  "dist",
@@ -768,7 +667,6 @@
768
667
  "pluginName": "@super-protocol/sp-cli",
769
668
  "pluginType": "core",
770
669
  "strict": true,
771
- "enableJsonFlag": true,
772
670
  "isESM": true,
773
671
  "relativePath": [
774
672
  "dist",
@@ -826,7 +724,6 @@
826
724
  "pluginName": "@super-protocol/sp-cli",
827
725
  "pluginType": "core",
828
726
  "strict": true,
829
- "enableJsonFlag": true,
830
727
  "isESM": true,
831
728
  "relativePath": [
832
729
  "dist",
@@ -836,5 +733,5 @@
836
733
  ]
837
734
  }
838
735
  },
839
- "version": "0.0.2-beta.11"
736
+ "version": "0.0.2-beta.12"
840
737
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@super-protocol/sp-cli",
3
3
  "description": "SuperProtocol Command line interface",
4
- "version": "0.0.2-beta.11",
4
+ "version": "0.0.2-beta.12",
5
5
  "author": "SuperProtocol",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -77,7 +77,7 @@
77
77
  "globPatterns": [
78
78
  "**/*.+(js|cjs|mjs|ts|tsx|mts|cts)",
79
79
  "!**/*.+(d.*|test.*|spec.*|helpers.*)?(x)",
80
- "!**/base.ts"
80
+ "!**/base.(ts|js)"
81
81
  ]
82
82
  },
83
83
  "plugins": [