@super-protocol/sp-cli 0.0.2-alpha.1 → 0.0.2-beta.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.
@@ -597,7 +597,248 @@
597
597
  "config",
598
598
  "use.js"
599
599
  ]
600
+ },
601
+ "storage:base": {
602
+ "aliases": [],
603
+ "args": {},
604
+ "flags": {
605
+ "json": {
606
+ "description": "Format output as json.",
607
+ "helpGroup": "GLOBAL",
608
+ "name": "json",
609
+ "allowNo": false,
610
+ "type": "boolean"
611
+ },
612
+ "config": {
613
+ "helpGroup": "GLOBAL",
614
+ "name": "config",
615
+ "required": false,
616
+ "summary": "Specify config file.",
617
+ "hasDynamicHelp": false,
618
+ "multiple": false,
619
+ "type": "option"
620
+ },
621
+ "url": {
622
+ "helpGroup": "GLOBAL",
623
+ "name": "url",
624
+ "required": false,
625
+ "summary": "Specify provider base URL.",
626
+ "hasDynamicHelp": false,
627
+ "multiple": false,
628
+ "type": "option"
629
+ }
630
+ },
631
+ "hasDynamicHelp": false,
632
+ "hiddenAliases": [],
633
+ "id": "storage:base",
634
+ "pluginAlias": "@super-protocol/sp-cli",
635
+ "pluginName": "@super-protocol/sp-cli",
636
+ "pluginType": "core",
637
+ "strict": true,
638
+ "enableJsonFlag": true,
639
+ "isESM": true,
640
+ "relativePath": [
641
+ "dist",
642
+ "commands",
643
+ "storage",
644
+ "base.js"
645
+ ]
646
+ },
647
+ "storage:create": {
648
+ "aliases": [],
649
+ "args": {},
650
+ "description": "Create a new storage entry from file or interactive prompts.",
651
+ "examples": [
652
+ "<%= config.bin %> storage create",
653
+ "<%= config.bin %> storage create --fromFile ./storage.json",
654
+ "<%= config.bin %> storage create --not-default"
655
+ ],
656
+ "flags": {
657
+ "json": {
658
+ "description": "Format output as json.",
659
+ "helpGroup": "GLOBAL",
660
+ "name": "json",
661
+ "allowNo": false,
662
+ "type": "boolean"
663
+ },
664
+ "config": {
665
+ "helpGroup": "GLOBAL",
666
+ "name": "config",
667
+ "required": false,
668
+ "summary": "Specify config file.",
669
+ "hasDynamicHelp": false,
670
+ "multiple": false,
671
+ "type": "option"
672
+ },
673
+ "url": {
674
+ "helpGroup": "GLOBAL",
675
+ "name": "url",
676
+ "required": false,
677
+ "summary": "Specify provider base URL.",
678
+ "hasDynamicHelp": false,
679
+ "multiple": false,
680
+ "type": "option"
681
+ },
682
+ "fromFile": {
683
+ "aliases": [
684
+ "fromFile"
685
+ ],
686
+ "char": "f",
687
+ "description": "Path to a JSON file that contains AddStorageDto payload.",
688
+ "name": "fromFile",
689
+ "hasDynamicHelp": false,
690
+ "multiple": false,
691
+ "type": "option"
692
+ },
693
+ "notDefault": {
694
+ "description": "Skip setting the created storage as default.",
695
+ "name": "notDefault",
696
+ "allowNo": false,
697
+ "type": "boolean"
698
+ }
699
+ },
700
+ "hasDynamicHelp": false,
701
+ "hiddenAliases": [],
702
+ "id": "storage:create",
703
+ "pluginAlias": "@super-protocol/sp-cli",
704
+ "pluginName": "@super-protocol/sp-cli",
705
+ "pluginType": "core",
706
+ "strict": true,
707
+ "enableJsonFlag": true,
708
+ "isESM": true,
709
+ "relativePath": [
710
+ "dist",
711
+ "commands",
712
+ "storage",
713
+ "create.js"
714
+ ]
715
+ },
716
+ "storage:select": {
717
+ "aliases": [],
718
+ "args": {},
719
+ "description": "Select a storage that will be used by subsequent commands.",
720
+ "examples": [
721
+ "<%= config.bin %> storage select",
722
+ "<%= config.bin %> storage select --id=2de3e3a4-0000-1111-2222-333344445555"
723
+ ],
724
+ "flags": {
725
+ "json": {
726
+ "description": "Format output as json.",
727
+ "helpGroup": "GLOBAL",
728
+ "name": "json",
729
+ "allowNo": false,
730
+ "type": "boolean"
731
+ },
732
+ "config": {
733
+ "helpGroup": "GLOBAL",
734
+ "name": "config",
735
+ "required": false,
736
+ "summary": "Specify config file.",
737
+ "hasDynamicHelp": false,
738
+ "multiple": false,
739
+ "type": "option"
740
+ },
741
+ "url": {
742
+ "helpGroup": "GLOBAL",
743
+ "name": "url",
744
+ "required": false,
745
+ "summary": "Specify provider base URL.",
746
+ "hasDynamicHelp": false,
747
+ "multiple": false,
748
+ "type": "option"
749
+ },
750
+ "id": {
751
+ "char": "i",
752
+ "description": "Storage ID to select",
753
+ "name": "id",
754
+ "hasDynamicHelp": false,
755
+ "multiple": false,
756
+ "type": "option"
757
+ }
758
+ },
759
+ "hasDynamicHelp": false,
760
+ "hiddenAliases": [],
761
+ "id": "storage:select",
762
+ "pluginAlias": "@super-protocol/sp-cli",
763
+ "pluginName": "@super-protocol/sp-cli",
764
+ "pluginType": "core",
765
+ "strict": true,
766
+ "enableJsonFlag": true,
767
+ "isESM": true,
768
+ "relativePath": [
769
+ "dist",
770
+ "commands",
771
+ "storage",
772
+ "select.js"
773
+ ]
774
+ },
775
+ "storage:update": {
776
+ "aliases": [],
777
+ "args": {},
778
+ "description": "Update the configuration of an existing storage.",
779
+ "examples": [
780
+ "<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555 --fromFile ./storage-update.json",
781
+ "<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555"
782
+ ],
783
+ "flags": {
784
+ "json": {
785
+ "description": "Format output as json.",
786
+ "helpGroup": "GLOBAL",
787
+ "name": "json",
788
+ "allowNo": false,
789
+ "type": "boolean"
790
+ },
791
+ "config": {
792
+ "helpGroup": "GLOBAL",
793
+ "name": "config",
794
+ "required": false,
795
+ "summary": "Specify config file.",
796
+ "hasDynamicHelp": false,
797
+ "multiple": false,
798
+ "type": "option"
799
+ },
800
+ "url": {
801
+ "helpGroup": "GLOBAL",
802
+ "name": "url",
803
+ "required": false,
804
+ "summary": "Specify provider base URL.",
805
+ "hasDynamicHelp": false,
806
+ "multiple": false,
807
+ "type": "option"
808
+ },
809
+ "fromFile": {
810
+ "char": "f",
811
+ "description": "Path to a JSON file that contains UpdateStorageDto payload.",
812
+ "name": "fromFile",
813
+ "hasDynamicHelp": false,
814
+ "multiple": false,
815
+ "type": "option"
816
+ },
817
+ "id": {
818
+ "char": "i",
819
+ "description": "Storage ID to update",
820
+ "name": "id",
821
+ "hasDynamicHelp": false,
822
+ "multiple": false,
823
+ "type": "option"
824
+ }
825
+ },
826
+ "hasDynamicHelp": false,
827
+ "hiddenAliases": [],
828
+ "id": "storage:update",
829
+ "pluginAlias": "@super-protocol/sp-cli",
830
+ "pluginName": "@super-protocol/sp-cli",
831
+ "pluginType": "core",
832
+ "strict": true,
833
+ "enableJsonFlag": true,
834
+ "isESM": true,
835
+ "relativePath": [
836
+ "dist",
837
+ "commands",
838
+ "storage",
839
+ "update.js"
840
+ ]
600
841
  }
601
842
  },
602
- "version": "0.0.2-alpha.1"
843
+ "version": "0.0.2-beta.1"
603
844
  }
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@super-protocol/sp-cli",
3
3
  "description": "SuperProtocol Command line interface",
4
- "version": "0.0.2-alpha.1",
4
+ "version": "0.0.2-beta.1",
5
5
  "author": "SuperProtocol",
6
6
  "publishConfig": {
7
7
  "access": "public",
8
8
  "registry": "https://registry.npmjs.org/"
9
9
  },
10
10
  "bin": {
11
- "sp": "./bin/run.js"
11
+ "sp": "./bin/run.js",
12
+ "spcli": "./bin/run.js"
12
13
  },
13
14
  "bugs": "https://github.com/Super-Protocol/sp-cli/issues",
14
15
  "dependencies": {
@@ -63,6 +64,10 @@
63
64
  "type": "module",
64
65
  "oclif": {
65
66
  "bin": "sp",
67
+ "binAliases": [
68
+ "spcli",
69
+ "sp-cli"
70
+ ],
66
71
  "dirname": "sp",
67
72
  "commands": {
68
73
  "strategy": "pattern",