@contextual-io/cli 0.3.0 → 0.4.0
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 +250 -35
- package/dist/base.js +3 -1
- package/dist/commands/config/add.js +1 -1
- package/dist/commands/config/current.js +1 -1
- package/dist/commands/config/delete.js +1 -1
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/index.js +1 -1
- package/dist/commands/config/list.js +1 -1
- package/dist/commands/config/login.js +1 -1
- package/dist/commands/config/use.js +1 -1
- package/dist/commands/records/add.js +1 -1
- package/dist/commands/records/delete.js +1 -1
- package/dist/commands/records/get.js +1 -1
- package/dist/commands/records/index.js +1 -1
- package/dist/commands/records/list.js +1 -1
- package/dist/commands/records/query.js +1 -1
- package/dist/commands/records/replace.js +1 -1
- package/dist/commands/types/add.d.ts +11 -0
- package/dist/commands/types/add.js +57 -0
- package/dist/commands/types/delete.d.ts +12 -0
- package/dist/commands/types/delete.js +35 -0
- package/dist/commands/types/get.d.ts +12 -0
- package/dist/commands/types/get.js +33 -0
- package/dist/commands/types/index.d.ts +9 -0
- package/dist/commands/types/index.js +13 -0
- package/dist/commands/types/list.d.ts +19 -0
- package/dist/commands/types/list.js +128 -0
- package/dist/commands/types/replace.d.ts +13 -0
- package/dist/commands/types/replace.js +57 -0
- package/dist/models/uri.js +5 -0
- package/dist/utils/auth.js +2 -2
- package/dist/utils/endpoints.d.ts +1 -0
- package/dist/utils/endpoints.js +1 -0
- package/oclif.manifest.json +351 -16
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"required": true
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"description": "
|
|
12
|
+
"description": "Add a new config.",
|
|
13
13
|
"examples": [
|
|
14
14
|
"<%= config.bin %> <%= command.id %> some-config-id --tenant-id my-tenant"
|
|
15
15
|
],
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"config:current": {
|
|
57
57
|
"aliases": [],
|
|
58
58
|
"args": {},
|
|
59
|
-
"description": "
|
|
59
|
+
"description": "Get the current config.",
|
|
60
60
|
"examples": [
|
|
61
61
|
"<%= config.bin %> <%= command.id %>"
|
|
62
62
|
],
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"required": true
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
"description": "
|
|
97
|
+
"description": "Delete a config.",
|
|
98
98
|
"examples": [
|
|
99
99
|
"<%= config.bin %> <%= command.id %> some-config-id"
|
|
100
100
|
],
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"name": "config-id"
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
|
-
"description": "
|
|
126
|
+
"description": "Get a specific config.",
|
|
127
127
|
"examples": [
|
|
128
128
|
"<%= config.bin %> <%= command.id %>",
|
|
129
129
|
"<%= config.bin %> <%= command.id %> some-config-id"
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"config": {
|
|
157
157
|
"aliases": [],
|
|
158
158
|
"args": {},
|
|
159
|
-
"description": "
|
|
159
|
+
"description": "Manage configs.",
|
|
160
160
|
"examples": [],
|
|
161
161
|
"flags": {},
|
|
162
162
|
"hasDynamicHelp": false,
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"config:list": {
|
|
182
182
|
"aliases": [],
|
|
183
183
|
"args": {},
|
|
184
|
-
"description": "
|
|
184
|
+
"description": "List all available configs.",
|
|
185
185
|
"examples": [
|
|
186
186
|
"<%= config.bin %> <%= command.id %>"
|
|
187
187
|
],
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"config:login": {
|
|
214
214
|
"aliases": [],
|
|
215
215
|
"args": {},
|
|
216
|
-
"description": "
|
|
216
|
+
"description": "Login using the current config.",
|
|
217
217
|
"examples": [
|
|
218
218
|
"<%= config.bin %> <%= command.id %>"
|
|
219
219
|
],
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"required": true
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
"description": "
|
|
246
|
+
"description": "Use a config.",
|
|
247
247
|
"examples": [
|
|
248
248
|
"<%= config.bin %> <%= command.id %> some-config-id"
|
|
249
249
|
],
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"name": "uri"
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
"description": "
|
|
278
|
+
"description": "Create record(s).",
|
|
279
279
|
"examples": [
|
|
280
280
|
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
281
281
|
"<%= config.bin %> <%= command.id %> --type my-type --input-file records.json"
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"name": "uri"
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
|
-
"description": "
|
|
335
|
+
"description": "Delete record(s).",
|
|
336
336
|
"examples": [
|
|
337
337
|
"<%= config.bin %> <%= command.id %> native-object:my-type/instance-1",
|
|
338
338
|
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1",
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
"name": "uri"
|
|
392
392
|
}
|
|
393
393
|
},
|
|
394
|
-
"description": "
|
|
394
|
+
"description": "Get a record.",
|
|
395
395
|
"examples": [
|
|
396
396
|
"<%= config.bin %> <%= command.id %> native-object:my-type/instance-1",
|
|
397
397
|
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1",
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
"records": {
|
|
446
446
|
"aliases": [],
|
|
447
447
|
"args": {},
|
|
448
|
-
"description": "
|
|
448
|
+
"description": "Manage records.",
|
|
449
449
|
"examples": [],
|
|
450
450
|
"flags": {},
|
|
451
451
|
"hasDynamicHelp": false,
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
"name": "uri"
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
|
-
"description": "
|
|
478
|
+
"description": "List records.",
|
|
479
479
|
"examples": [
|
|
480
480
|
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
481
481
|
"<%= config.bin %> <%= command.id %> --type my-type",
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
"name": "uri"
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
|
-
"description": "
|
|
602
|
+
"description": "Query records.",
|
|
603
603
|
"examples": [
|
|
604
604
|
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
605
605
|
"<%= config.bin %> <%= command.id %> --type my-type --query-file query.json",
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
"name": "uri"
|
|
701
701
|
}
|
|
702
702
|
},
|
|
703
|
-
"description": "
|
|
703
|
+
"description": "Replace a record.",
|
|
704
704
|
"examples": [
|
|
705
705
|
"<%= config.bin %> <%= command.id %> native-object:my-type/instance-1 --input-file record.json",
|
|
706
706
|
"<%= config.bin %> <%= command.id %> native-object:my-type --id instance-1 --input-file record.json",
|
|
@@ -757,7 +757,342 @@
|
|
|
757
757
|
"records",
|
|
758
758
|
"replace.js"
|
|
759
759
|
]
|
|
760
|
+
},
|
|
761
|
+
"types:add": {
|
|
762
|
+
"aliases": [
|
|
763
|
+
"types:create",
|
|
764
|
+
"types:import"
|
|
765
|
+
],
|
|
766
|
+
"args": {},
|
|
767
|
+
"description": "Create type(s).",
|
|
768
|
+
"examples": [
|
|
769
|
+
"<%= config.bin %> <%= command.id %>",
|
|
770
|
+
"<%= config.bin %> <%= command.id %> --input-file types.json"
|
|
771
|
+
],
|
|
772
|
+
"flags": {
|
|
773
|
+
"config-id": {
|
|
774
|
+
"char": "C",
|
|
775
|
+
"helpGroup": "GLOBAL",
|
|
776
|
+
"name": "config-id",
|
|
777
|
+
"summary": "Specify config id to use for call.",
|
|
778
|
+
"hasDynamicHelp": false,
|
|
779
|
+
"multiple": false,
|
|
780
|
+
"type": "option"
|
|
781
|
+
},
|
|
782
|
+
"input-file": {
|
|
783
|
+
"char": "i",
|
|
784
|
+
"description": "file to read. can read stdin if value is '-'",
|
|
785
|
+
"name": "input-file",
|
|
786
|
+
"default": "-",
|
|
787
|
+
"hasDynamicHelp": false,
|
|
788
|
+
"multiple": false,
|
|
789
|
+
"type": "option"
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"hasDynamicHelp": false,
|
|
793
|
+
"hiddenAliases": [],
|
|
794
|
+
"id": "types:add",
|
|
795
|
+
"pluginAlias": "@contextual-io/cli",
|
|
796
|
+
"pluginName": "@contextual-io/cli",
|
|
797
|
+
"pluginType": "core",
|
|
798
|
+
"strict": true,
|
|
799
|
+
"enableJsonFlag": false,
|
|
800
|
+
"isESM": true,
|
|
801
|
+
"relativePath": [
|
|
802
|
+
"dist",
|
|
803
|
+
"commands",
|
|
804
|
+
"types",
|
|
805
|
+
"add.js"
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
"types:delete": {
|
|
809
|
+
"aliases": [],
|
|
810
|
+
"args": {
|
|
811
|
+
"uri": {
|
|
812
|
+
"description": "uri of type",
|
|
813
|
+
"name": "uri"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
"description": "Delete a type.",
|
|
817
|
+
"examples": [
|
|
818
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
819
|
+
"<%= config.bin %> <%= command.id %> --type my-type"
|
|
820
|
+
],
|
|
821
|
+
"flags": {
|
|
822
|
+
"config-id": {
|
|
823
|
+
"char": "C",
|
|
824
|
+
"helpGroup": "GLOBAL",
|
|
825
|
+
"name": "config-id",
|
|
826
|
+
"summary": "Specify config id to use for call.",
|
|
827
|
+
"hasDynamicHelp": false,
|
|
828
|
+
"multiple": false,
|
|
829
|
+
"type": "option"
|
|
830
|
+
},
|
|
831
|
+
"type": {
|
|
832
|
+
"char": "T",
|
|
833
|
+
"description": "type",
|
|
834
|
+
"name": "type",
|
|
835
|
+
"hasDynamicHelp": false,
|
|
836
|
+
"multiple": false,
|
|
837
|
+
"type": "option"
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"hasDynamicHelp": false,
|
|
841
|
+
"hiddenAliases": [],
|
|
842
|
+
"id": "types:delete",
|
|
843
|
+
"pluginAlias": "@contextual-io/cli",
|
|
844
|
+
"pluginName": "@contextual-io/cli",
|
|
845
|
+
"pluginType": "core",
|
|
846
|
+
"strict": true,
|
|
847
|
+
"enableJsonFlag": false,
|
|
848
|
+
"isESM": true,
|
|
849
|
+
"relativePath": [
|
|
850
|
+
"dist",
|
|
851
|
+
"commands",
|
|
852
|
+
"types",
|
|
853
|
+
"delete.js"
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
"types:get": {
|
|
857
|
+
"aliases": [],
|
|
858
|
+
"args": {
|
|
859
|
+
"uri": {
|
|
860
|
+
"description": "uri of type",
|
|
861
|
+
"name": "uri"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"description": "Get a type.",
|
|
865
|
+
"examples": [
|
|
866
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type",
|
|
867
|
+
"<%= config.bin %> <%= command.id %> --type my-type"
|
|
868
|
+
],
|
|
869
|
+
"flags": {
|
|
870
|
+
"config-id": {
|
|
871
|
+
"char": "C",
|
|
872
|
+
"helpGroup": "GLOBAL",
|
|
873
|
+
"name": "config-id",
|
|
874
|
+
"summary": "Specify config id to use for call.",
|
|
875
|
+
"hasDynamicHelp": false,
|
|
876
|
+
"multiple": false,
|
|
877
|
+
"type": "option"
|
|
878
|
+
},
|
|
879
|
+
"type": {
|
|
880
|
+
"char": "T",
|
|
881
|
+
"description": "type",
|
|
882
|
+
"name": "type",
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"type": "option"
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"hasDynamicHelp": false,
|
|
889
|
+
"hiddenAliases": [],
|
|
890
|
+
"id": "types:get",
|
|
891
|
+
"pluginAlias": "@contextual-io/cli",
|
|
892
|
+
"pluginName": "@contextual-io/cli",
|
|
893
|
+
"pluginType": "core",
|
|
894
|
+
"strict": true,
|
|
895
|
+
"enableJsonFlag": false,
|
|
896
|
+
"isESM": true,
|
|
897
|
+
"relativePath": [
|
|
898
|
+
"dist",
|
|
899
|
+
"commands",
|
|
900
|
+
"types",
|
|
901
|
+
"get.js"
|
|
902
|
+
]
|
|
903
|
+
},
|
|
904
|
+
"types": {
|
|
905
|
+
"aliases": [],
|
|
906
|
+
"args": {},
|
|
907
|
+
"description": "Manage types.",
|
|
908
|
+
"examples": [],
|
|
909
|
+
"flags": {},
|
|
910
|
+
"hasDynamicHelp": false,
|
|
911
|
+
"hiddenAliases": [],
|
|
912
|
+
"id": "types",
|
|
913
|
+
"pluginAlias": "@contextual-io/cli",
|
|
914
|
+
"pluginName": "@contextual-io/cli",
|
|
915
|
+
"pluginType": "core",
|
|
916
|
+
"strict": true,
|
|
917
|
+
"usage": [
|
|
918
|
+
"<%= command.id %> <COMMAND>"
|
|
919
|
+
],
|
|
920
|
+
"enableJsonFlag": false,
|
|
921
|
+
"isESM": true,
|
|
922
|
+
"relativePath": [
|
|
923
|
+
"dist",
|
|
924
|
+
"commands",
|
|
925
|
+
"types",
|
|
926
|
+
"index.js"
|
|
927
|
+
]
|
|
928
|
+
},
|
|
929
|
+
"types:list": {
|
|
930
|
+
"aliases": [],
|
|
931
|
+
"args": {},
|
|
932
|
+
"description": "List types.",
|
|
933
|
+
"examples": [
|
|
934
|
+
"<%= config.bin %> <%= command.id %>",
|
|
935
|
+
"<%= config.bin %> <%= command.id %> --order-by field1:desc",
|
|
936
|
+
"<%= config.bin %> <%= command.id %> -s field1=value1 -s field2=value2 --include-total"
|
|
937
|
+
],
|
|
938
|
+
"flags": {
|
|
939
|
+
"config-id": {
|
|
940
|
+
"char": "C",
|
|
941
|
+
"helpGroup": "GLOBAL",
|
|
942
|
+
"name": "config-id",
|
|
943
|
+
"summary": "Specify config id to use for call.",
|
|
944
|
+
"hasDynamicHelp": false,
|
|
945
|
+
"multiple": false,
|
|
946
|
+
"type": "option"
|
|
947
|
+
},
|
|
948
|
+
"exact-search": {
|
|
949
|
+
"char": "S",
|
|
950
|
+
"description": "search fields exactly",
|
|
951
|
+
"name": "exact-search",
|
|
952
|
+
"hasDynamicHelp": false,
|
|
953
|
+
"multiple": true,
|
|
954
|
+
"type": "option"
|
|
955
|
+
},
|
|
956
|
+
"export": {
|
|
957
|
+
"char": "e",
|
|
958
|
+
"description": "export data as JSONL",
|
|
959
|
+
"name": "export",
|
|
960
|
+
"allowNo": false,
|
|
961
|
+
"type": "boolean"
|
|
962
|
+
},
|
|
963
|
+
"from": {
|
|
964
|
+
"char": "f",
|
|
965
|
+
"description": "search from",
|
|
966
|
+
"name": "from",
|
|
967
|
+
"hasDynamicHelp": false,
|
|
968
|
+
"multiple": true,
|
|
969
|
+
"type": "option"
|
|
970
|
+
},
|
|
971
|
+
"include-total": {
|
|
972
|
+
"description": "include total count",
|
|
973
|
+
"name": "include-total",
|
|
974
|
+
"allowNo": false,
|
|
975
|
+
"type": "boolean"
|
|
976
|
+
},
|
|
977
|
+
"order-by": {
|
|
978
|
+
"char": "o",
|
|
979
|
+
"description": "order fields",
|
|
980
|
+
"name": "order-by",
|
|
981
|
+
"hasDynamicHelp": false,
|
|
982
|
+
"multiple": true,
|
|
983
|
+
"type": "option"
|
|
984
|
+
},
|
|
985
|
+
"page-size": {
|
|
986
|
+
"description": "number of types per page",
|
|
987
|
+
"name": "page-size",
|
|
988
|
+
"hasDynamicHelp": false,
|
|
989
|
+
"multiple": false,
|
|
990
|
+
"type": "option"
|
|
991
|
+
},
|
|
992
|
+
"page-token": {
|
|
993
|
+
"description": "page token to fetch",
|
|
994
|
+
"name": "page-token",
|
|
995
|
+
"hasDynamicHelp": false,
|
|
996
|
+
"multiple": false,
|
|
997
|
+
"type": "option"
|
|
998
|
+
},
|
|
999
|
+
"progress": {
|
|
1000
|
+
"char": "p",
|
|
1001
|
+
"description": "show progress during export",
|
|
1002
|
+
"name": "progress",
|
|
1003
|
+
"allowNo": false,
|
|
1004
|
+
"type": "boolean"
|
|
1005
|
+
},
|
|
1006
|
+
"search": {
|
|
1007
|
+
"char": "s",
|
|
1008
|
+
"description": "search fields",
|
|
1009
|
+
"name": "search",
|
|
1010
|
+
"hasDynamicHelp": false,
|
|
1011
|
+
"multiple": true,
|
|
1012
|
+
"type": "option"
|
|
1013
|
+
},
|
|
1014
|
+
"to": {
|
|
1015
|
+
"char": "t",
|
|
1016
|
+
"description": "search to",
|
|
1017
|
+
"name": "to",
|
|
1018
|
+
"hasDynamicHelp": false,
|
|
1019
|
+
"multiple": true,
|
|
1020
|
+
"type": "option"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"hasDynamicHelp": false,
|
|
1024
|
+
"hiddenAliases": [],
|
|
1025
|
+
"id": "types:list",
|
|
1026
|
+
"pluginAlias": "@contextual-io/cli",
|
|
1027
|
+
"pluginName": "@contextual-io/cli",
|
|
1028
|
+
"pluginType": "core",
|
|
1029
|
+
"strict": true,
|
|
1030
|
+
"enableJsonFlag": false,
|
|
1031
|
+
"isESM": true,
|
|
1032
|
+
"relativePath": [
|
|
1033
|
+
"dist",
|
|
1034
|
+
"commands",
|
|
1035
|
+
"types",
|
|
1036
|
+
"list.js"
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
"types:replace": {
|
|
1040
|
+
"aliases": [],
|
|
1041
|
+
"args": {
|
|
1042
|
+
"uri": {
|
|
1043
|
+
"description": "uri of type",
|
|
1044
|
+
"name": "uri"
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"description": "Replace a type.",
|
|
1048
|
+
"examples": [
|
|
1049
|
+
"<%= config.bin %> <%= command.id %> native-object:my-type --input-file record.json",
|
|
1050
|
+
"<%= config.bin %> <%= command.id %> --type my-type --input-file record.json"
|
|
1051
|
+
],
|
|
1052
|
+
"flags": {
|
|
1053
|
+
"config-id": {
|
|
1054
|
+
"char": "C",
|
|
1055
|
+
"helpGroup": "GLOBAL",
|
|
1056
|
+
"name": "config-id",
|
|
1057
|
+
"summary": "Specify config id to use for call.",
|
|
1058
|
+
"hasDynamicHelp": false,
|
|
1059
|
+
"multiple": false,
|
|
1060
|
+
"type": "option"
|
|
1061
|
+
},
|
|
1062
|
+
"input-file": {
|
|
1063
|
+
"char": "i",
|
|
1064
|
+
"description": "file to read. can read stdin if value is '-'",
|
|
1065
|
+
"name": "input-file",
|
|
1066
|
+
"default": "-",
|
|
1067
|
+
"hasDynamicHelp": false,
|
|
1068
|
+
"multiple": false,
|
|
1069
|
+
"type": "option"
|
|
1070
|
+
},
|
|
1071
|
+
"type": {
|
|
1072
|
+
"char": "T",
|
|
1073
|
+
"description": "type",
|
|
1074
|
+
"name": "type",
|
|
1075
|
+
"hasDynamicHelp": false,
|
|
1076
|
+
"multiple": false,
|
|
1077
|
+
"type": "option"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"hasDynamicHelp": false,
|
|
1081
|
+
"hiddenAliases": [],
|
|
1082
|
+
"id": "types:replace",
|
|
1083
|
+
"pluginAlias": "@contextual-io/cli",
|
|
1084
|
+
"pluginName": "@contextual-io/cli",
|
|
1085
|
+
"pluginType": "core",
|
|
1086
|
+
"strict": true,
|
|
1087
|
+
"enableJsonFlag": false,
|
|
1088
|
+
"isESM": true,
|
|
1089
|
+
"relativePath": [
|
|
1090
|
+
"dist",
|
|
1091
|
+
"commands",
|
|
1092
|
+
"types",
|
|
1093
|
+
"replace.js"
|
|
1094
|
+
]
|
|
760
1095
|
}
|
|
761
1096
|
},
|
|
762
|
-
"version": "0.
|
|
1097
|
+
"version": "0.4.0"
|
|
763
1098
|
}
|