@xano/cli 0.0.15 → 0.0.16
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 +20 -4
- package/dist/commands/profile/edit/index.d.ts +2 -0
- package/dist/commands/profile/edit/index.js +15 -2
- package/dist/commands/profile/wizard/index.d.ts +1 -0
- package/dist/commands/profile/wizard/index.js +38 -0
- package/dist/commands/workspace/pull/index.d.ts +28 -0
- package/dist/commands/workspace/pull/index.js +238 -0
- package/dist/commands/workspace/push/index.d.ts +19 -0
- package/dist/commands/workspace/push/index.js +163 -0
- package/dist/lib/base-run-command.d.ts +1 -0
- package/dist/lib/base-run-command.js +6 -4
- package/oclif.manifest.json +445 -310
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -640,6 +640,14 @@
|
|
|
640
640
|
"multiple": false,
|
|
641
641
|
"type": "option"
|
|
642
642
|
},
|
|
643
|
+
"run-project": {
|
|
644
|
+
"description": "Update run project ID (for xano run commands)",
|
|
645
|
+
"name": "run-project",
|
|
646
|
+
"required": false,
|
|
647
|
+
"hasDynamicHelp": false,
|
|
648
|
+
"multiple": false,
|
|
649
|
+
"type": "option"
|
|
650
|
+
},
|
|
643
651
|
"remove-workspace": {
|
|
644
652
|
"description": "Remove workspace from profile",
|
|
645
653
|
"name": "remove-workspace",
|
|
@@ -661,6 +669,13 @@
|
|
|
661
669
|
"allowNo": false,
|
|
662
670
|
"type": "boolean"
|
|
663
671
|
},
|
|
672
|
+
"remove-run-project": {
|
|
673
|
+
"description": "Remove run project from profile",
|
|
674
|
+
"name": "remove-run-project",
|
|
675
|
+
"required": false,
|
|
676
|
+
"allowNo": false,
|
|
677
|
+
"type": "boolean"
|
|
678
|
+
},
|
|
664
679
|
"run_base_url": {
|
|
665
680
|
"char": "r",
|
|
666
681
|
"description": "Update Xano Run API base URL",
|
|
@@ -721,6 +736,42 @@
|
|
|
721
736
|
"index.js"
|
|
722
737
|
]
|
|
723
738
|
},
|
|
739
|
+
"profile:list": {
|
|
740
|
+
"aliases": [],
|
|
741
|
+
"args": {},
|
|
742
|
+
"description": "List all available profile configurations",
|
|
743
|
+
"examples": [
|
|
744
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
745
|
+
"$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
|
|
746
|
+
"$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
|
|
747
|
+
],
|
|
748
|
+
"flags": {
|
|
749
|
+
"details": {
|
|
750
|
+
"char": "d",
|
|
751
|
+
"description": "Show detailed information for each profile",
|
|
752
|
+
"name": "details",
|
|
753
|
+
"required": false,
|
|
754
|
+
"allowNo": false,
|
|
755
|
+
"type": "boolean"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"hasDynamicHelp": false,
|
|
759
|
+
"hiddenAliases": [],
|
|
760
|
+
"id": "profile:list",
|
|
761
|
+
"pluginAlias": "@xano/cli",
|
|
762
|
+
"pluginName": "@xano/cli",
|
|
763
|
+
"pluginType": "core",
|
|
764
|
+
"strict": true,
|
|
765
|
+
"enableJsonFlag": false,
|
|
766
|
+
"isESM": true,
|
|
767
|
+
"relativePath": [
|
|
768
|
+
"dist",
|
|
769
|
+
"commands",
|
|
770
|
+
"profile",
|
|
771
|
+
"list",
|
|
772
|
+
"index.js"
|
|
773
|
+
]
|
|
774
|
+
},
|
|
724
775
|
"profile:me": {
|
|
725
776
|
"aliases": [],
|
|
726
777
|
"args": {},
|
|
@@ -799,28 +850,18 @@
|
|
|
799
850
|
"index.js"
|
|
800
851
|
]
|
|
801
852
|
},
|
|
802
|
-
"profile:
|
|
853
|
+
"profile:token": {
|
|
803
854
|
"aliases": [],
|
|
804
855
|
"args": {},
|
|
805
|
-
"description": "
|
|
856
|
+
"description": "Print the access token for the default profile",
|
|
806
857
|
"examples": [
|
|
807
|
-
"$ xano profile:
|
|
808
|
-
"$ xano profile:
|
|
809
|
-
"$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
|
|
858
|
+
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
859
|
+
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
810
860
|
],
|
|
811
|
-
"flags": {
|
|
812
|
-
"details": {
|
|
813
|
-
"char": "d",
|
|
814
|
-
"description": "Show detailed information for each profile",
|
|
815
|
-
"name": "details",
|
|
816
|
-
"required": false,
|
|
817
|
-
"allowNo": false,
|
|
818
|
-
"type": "boolean"
|
|
819
|
-
}
|
|
820
|
-
},
|
|
861
|
+
"flags": {},
|
|
821
862
|
"hasDynamicHelp": false,
|
|
822
863
|
"hiddenAliases": [],
|
|
823
|
-
"id": "profile:
|
|
864
|
+
"id": "profile:token",
|
|
824
865
|
"pluginAlias": "@xano/cli",
|
|
825
866
|
"pluginName": "@xano/cli",
|
|
826
867
|
"pluginType": "core",
|
|
@@ -831,7 +872,7 @@
|
|
|
831
872
|
"dist",
|
|
832
873
|
"commands",
|
|
833
874
|
"profile",
|
|
834
|
-
"
|
|
875
|
+
"token",
|
|
835
876
|
"index.js"
|
|
836
877
|
]
|
|
837
878
|
},
|
|
@@ -867,32 +908,6 @@
|
|
|
867
908
|
"index.js"
|
|
868
909
|
]
|
|
869
910
|
},
|
|
870
|
-
"profile:token": {
|
|
871
|
-
"aliases": [],
|
|
872
|
-
"args": {},
|
|
873
|
-
"description": "Print the access token for the default profile",
|
|
874
|
-
"examples": [
|
|
875
|
-
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
876
|
-
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
877
|
-
],
|
|
878
|
-
"flags": {},
|
|
879
|
-
"hasDynamicHelp": false,
|
|
880
|
-
"hiddenAliases": [],
|
|
881
|
-
"id": "profile:token",
|
|
882
|
-
"pluginAlias": "@xano/cli",
|
|
883
|
-
"pluginName": "@xano/cli",
|
|
884
|
-
"pluginType": "core",
|
|
885
|
-
"strict": true,
|
|
886
|
-
"enableJsonFlag": false,
|
|
887
|
-
"isESM": true,
|
|
888
|
-
"relativePath": [
|
|
889
|
-
"dist",
|
|
890
|
-
"commands",
|
|
891
|
-
"profile",
|
|
892
|
-
"token",
|
|
893
|
-
"index.js"
|
|
894
|
-
]
|
|
895
|
-
},
|
|
896
911
|
"profile:wizard": {
|
|
897
912
|
"aliases": [],
|
|
898
913
|
"args": {},
|
|
@@ -938,14 +953,17 @@
|
|
|
938
953
|
"index.js"
|
|
939
954
|
]
|
|
940
955
|
},
|
|
941
|
-
"run:
|
|
956
|
+
"run:exec": {
|
|
942
957
|
"aliases": [],
|
|
943
958
|
"args": {},
|
|
944
|
-
"description": "
|
|
959
|
+
"description": "Execute XanoScript code (job or service)",
|
|
945
960
|
"examples": [
|
|
946
|
-
"$ xano run
|
|
947
|
-
"$
|
|
948
|
-
"$
|
|
961
|
+
"$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
|
|
962
|
+
"$ xano run exec -f script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
|
|
963
|
+
"$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
|
|
964
|
+
"$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
965
|
+
"$ xano run exec -f script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
966
|
+
"$ xano run exec -f script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
949
967
|
],
|
|
950
968
|
"flags": {
|
|
951
969
|
"profile": {
|
|
@@ -981,6 +999,17 @@
|
|
|
981
999
|
"allowNo": false,
|
|
982
1000
|
"type": "boolean"
|
|
983
1001
|
},
|
|
1002
|
+
"edit": {
|
|
1003
|
+
"char": "e",
|
|
1004
|
+
"dependsOn": [
|
|
1005
|
+
"file"
|
|
1006
|
+
],
|
|
1007
|
+
"description": "Open file in editor before running (requires --file)",
|
|
1008
|
+
"name": "edit",
|
|
1009
|
+
"required": false,
|
|
1010
|
+
"allowNo": false,
|
|
1011
|
+
"type": "boolean"
|
|
1012
|
+
},
|
|
984
1013
|
"output": {
|
|
985
1014
|
"char": "o",
|
|
986
1015
|
"description": "Output format",
|
|
@@ -994,11 +1023,28 @@
|
|
|
994
1023
|
"json"
|
|
995
1024
|
],
|
|
996
1025
|
"type": "option"
|
|
1026
|
+
},
|
|
1027
|
+
"args": {
|
|
1028
|
+
"char": "a",
|
|
1029
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
1030
|
+
"name": "args",
|
|
1031
|
+
"required": false,
|
|
1032
|
+
"hasDynamicHelp": false,
|
|
1033
|
+
"multiple": false,
|
|
1034
|
+
"type": "option"
|
|
1035
|
+
},
|
|
1036
|
+
"env": {
|
|
1037
|
+
"description": "Environment variable override (key=value)",
|
|
1038
|
+
"name": "env",
|
|
1039
|
+
"required": false,
|
|
1040
|
+
"hasDynamicHelp": false,
|
|
1041
|
+
"multiple": true,
|
|
1042
|
+
"type": "option"
|
|
997
1043
|
}
|
|
998
1044
|
},
|
|
999
1045
|
"hasDynamicHelp": false,
|
|
1000
1046
|
"hiddenAliases": [],
|
|
1001
|
-
"id": "run:
|
|
1047
|
+
"id": "run:exec",
|
|
1002
1048
|
"pluginAlias": "@xano/cli",
|
|
1003
1049
|
"pluginName": "@xano/cli",
|
|
1004
1050
|
"pluginType": "core",
|
|
@@ -1008,21 +1054,18 @@
|
|
|
1008
1054
|
"dist",
|
|
1009
1055
|
"commands",
|
|
1010
1056
|
"run",
|
|
1011
|
-
"
|
|
1057
|
+
"exec",
|
|
1012
1058
|
"index.js"
|
|
1013
1059
|
]
|
|
1014
1060
|
},
|
|
1015
|
-
"run:
|
|
1061
|
+
"run:info": {
|
|
1016
1062
|
"aliases": [],
|
|
1017
1063
|
"args": {},
|
|
1018
|
-
"description": "
|
|
1064
|
+
"description": "Get information about a XanoScript document (type, inputs, env vars)",
|
|
1019
1065
|
"examples": [
|
|
1020
|
-
"$ xano run
|
|
1021
|
-
"$
|
|
1022
|
-
"$
|
|
1023
|
-
"$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
1024
|
-
"$ xano run exec -f script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
1025
|
-
"$ xano run exec -f script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
1066
|
+
"$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
|
|
1067
|
+
"$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
|
|
1068
|
+
"$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
|
|
1026
1069
|
],
|
|
1027
1070
|
"flags": {
|
|
1028
1071
|
"profile": {
|
|
@@ -1058,17 +1101,6 @@
|
|
|
1058
1101
|
"allowNo": false,
|
|
1059
1102
|
"type": "boolean"
|
|
1060
1103
|
},
|
|
1061
|
-
"edit": {
|
|
1062
|
-
"char": "e",
|
|
1063
|
-
"dependsOn": [
|
|
1064
|
-
"file"
|
|
1065
|
-
],
|
|
1066
|
-
"description": "Open file in editor before running (requires --file)",
|
|
1067
|
-
"name": "edit",
|
|
1068
|
-
"required": false,
|
|
1069
|
-
"allowNo": false,
|
|
1070
|
-
"type": "boolean"
|
|
1071
|
-
},
|
|
1072
1104
|
"output": {
|
|
1073
1105
|
"char": "o",
|
|
1074
1106
|
"description": "Output format",
|
|
@@ -1082,28 +1114,11 @@
|
|
|
1082
1114
|
"json"
|
|
1083
1115
|
],
|
|
1084
1116
|
"type": "option"
|
|
1085
|
-
},
|
|
1086
|
-
"args": {
|
|
1087
|
-
"char": "a",
|
|
1088
|
-
"description": "Path or URL to JSON file containing input arguments",
|
|
1089
|
-
"name": "args",
|
|
1090
|
-
"required": false,
|
|
1091
|
-
"hasDynamicHelp": false,
|
|
1092
|
-
"multiple": false,
|
|
1093
|
-
"type": "option"
|
|
1094
|
-
},
|
|
1095
|
-
"env": {
|
|
1096
|
-
"description": "Environment variable override (key=value)",
|
|
1097
|
-
"name": "env",
|
|
1098
|
-
"required": false,
|
|
1099
|
-
"hasDynamicHelp": false,
|
|
1100
|
-
"multiple": true,
|
|
1101
|
-
"type": "option"
|
|
1102
1117
|
}
|
|
1103
1118
|
},
|
|
1104
1119
|
"hasDynamicHelp": false,
|
|
1105
1120
|
"hiddenAliases": [],
|
|
1106
|
-
"id": "run:
|
|
1121
|
+
"id": "run:info",
|
|
1107
1122
|
"pluginAlias": "@xano/cli",
|
|
1108
1123
|
"pluginName": "@xano/cli",
|
|
1109
1124
|
"pluginType": "core",
|
|
@@ -1113,7 +1128,7 @@
|
|
|
1113
1128
|
"dist",
|
|
1114
1129
|
"commands",
|
|
1115
1130
|
"run",
|
|
1116
|
-
"
|
|
1131
|
+
"info",
|
|
1117
1132
|
"index.js"
|
|
1118
1133
|
]
|
|
1119
1134
|
},
|
|
@@ -1250,19 +1265,20 @@
|
|
|
1250
1265
|
"index.js"
|
|
1251
1266
|
]
|
|
1252
1267
|
},
|
|
1253
|
-
"
|
|
1268
|
+
"workspace:pull": {
|
|
1254
1269
|
"aliases": [],
|
|
1255
1270
|
"args": {
|
|
1256
|
-
"
|
|
1257
|
-
"description": "
|
|
1258
|
-
"name": "
|
|
1271
|
+
"directory": {
|
|
1272
|
+
"description": "Output directory for pulled documents",
|
|
1273
|
+
"name": "directory",
|
|
1259
1274
|
"required": true
|
|
1260
1275
|
}
|
|
1261
1276
|
},
|
|
1262
|
-
"description": "
|
|
1277
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
1263
1278
|
"examples": [
|
|
1264
|
-
"$ xano
|
|
1265
|
-
"$ xano
|
|
1279
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
1280
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
1281
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
|
|
1266
1282
|
],
|
|
1267
1283
|
"flags": {
|
|
1268
1284
|
"profile": {
|
|
@@ -1275,10 +1291,25 @@
|
|
|
1275
1291
|
"multiple": false,
|
|
1276
1292
|
"type": "option"
|
|
1277
1293
|
},
|
|
1278
|
-
"
|
|
1279
|
-
"char": "
|
|
1280
|
-
"description": "
|
|
1281
|
-
"name": "
|
|
1294
|
+
"workspace": {
|
|
1295
|
+
"char": "w",
|
|
1296
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1297
|
+
"name": "workspace",
|
|
1298
|
+
"required": false,
|
|
1299
|
+
"hasDynamicHelp": false,
|
|
1300
|
+
"multiple": false,
|
|
1301
|
+
"type": "option"
|
|
1302
|
+
},
|
|
1303
|
+
"env": {
|
|
1304
|
+
"description": "Include environment variables",
|
|
1305
|
+
"name": "env",
|
|
1306
|
+
"required": false,
|
|
1307
|
+
"allowNo": false,
|
|
1308
|
+
"type": "boolean"
|
|
1309
|
+
},
|
|
1310
|
+
"records": {
|
|
1311
|
+
"description": "Include records",
|
|
1312
|
+
"name": "records",
|
|
1282
1313
|
"required": false,
|
|
1283
1314
|
"allowNo": false,
|
|
1284
1315
|
"type": "boolean"
|
|
@@ -1286,34 +1317,35 @@
|
|
|
1286
1317
|
},
|
|
1287
1318
|
"hasDynamicHelp": false,
|
|
1288
1319
|
"hiddenAliases": [],
|
|
1289
|
-
"id": "
|
|
1320
|
+
"id": "workspace:pull",
|
|
1290
1321
|
"pluginAlias": "@xano/cli",
|
|
1291
1322
|
"pluginName": "@xano/cli",
|
|
1292
1323
|
"pluginType": "core",
|
|
1293
1324
|
"strict": true,
|
|
1325
|
+
"enableJsonFlag": false,
|
|
1294
1326
|
"isESM": true,
|
|
1295
1327
|
"relativePath": [
|
|
1296
1328
|
"dist",
|
|
1297
1329
|
"commands",
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
1300
|
-
"delete",
|
|
1330
|
+
"workspace",
|
|
1331
|
+
"pull",
|
|
1301
1332
|
"index.js"
|
|
1302
1333
|
]
|
|
1303
1334
|
},
|
|
1304
|
-
"
|
|
1335
|
+
"workspace:push": {
|
|
1305
1336
|
"aliases": [],
|
|
1306
1337
|
"args": {
|
|
1307
|
-
"
|
|
1308
|
-
"description": "
|
|
1309
|
-
"name": "
|
|
1338
|
+
"directory": {
|
|
1339
|
+
"description": "Directory containing documents to push (as produced by workspace pull)",
|
|
1340
|
+
"name": "directory",
|
|
1310
1341
|
"required": true
|
|
1311
1342
|
}
|
|
1312
1343
|
},
|
|
1313
|
-
"description": "
|
|
1344
|
+
"description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
|
|
1314
1345
|
"examples": [
|
|
1315
|
-
"$ xano
|
|
1316
|
-
"$ xano
|
|
1346
|
+
"$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
|
|
1347
|
+
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
1348
|
+
"$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
|
|
1317
1349
|
],
|
|
1318
1350
|
"flags": {
|
|
1319
1351
|
"profile": {
|
|
@@ -1326,44 +1358,147 @@
|
|
|
1326
1358
|
"multiple": false,
|
|
1327
1359
|
"type": "option"
|
|
1328
1360
|
},
|
|
1329
|
-
"
|
|
1330
|
-
"char": "
|
|
1331
|
-
"description": "
|
|
1332
|
-
"name": "
|
|
1361
|
+
"workspace": {
|
|
1362
|
+
"char": "w",
|
|
1363
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1364
|
+
"name": "workspace",
|
|
1333
1365
|
"required": false,
|
|
1334
|
-
"default": "value",
|
|
1335
1366
|
"hasDynamicHelp": false,
|
|
1336
1367
|
"multiple": false,
|
|
1337
|
-
"options": [
|
|
1338
|
-
"value",
|
|
1339
|
-
"json"
|
|
1340
|
-
],
|
|
1341
1368
|
"type": "option"
|
|
1342
1369
|
}
|
|
1343
1370
|
},
|
|
1344
1371
|
"hasDynamicHelp": false,
|
|
1345
1372
|
"hiddenAliases": [],
|
|
1346
|
-
"id": "
|
|
1373
|
+
"id": "workspace:push",
|
|
1347
1374
|
"pluginAlias": "@xano/cli",
|
|
1348
1375
|
"pluginName": "@xano/cli",
|
|
1349
1376
|
"pluginType": "core",
|
|
1350
1377
|
"strict": true,
|
|
1378
|
+
"enableJsonFlag": false,
|
|
1351
1379
|
"isESM": true,
|
|
1352
1380
|
"relativePath": [
|
|
1353
1381
|
"dist",
|
|
1354
1382
|
"commands",
|
|
1355
|
-
"
|
|
1356
|
-
"
|
|
1357
|
-
"get",
|
|
1383
|
+
"workspace",
|
|
1384
|
+
"push",
|
|
1358
1385
|
"index.js"
|
|
1359
1386
|
]
|
|
1360
1387
|
},
|
|
1361
|
-
"run:env:
|
|
1388
|
+
"run:env:delete": {
|
|
1362
1389
|
"aliases": [],
|
|
1363
|
-
"args": {
|
|
1364
|
-
|
|
1390
|
+
"args": {
|
|
1391
|
+
"name": {
|
|
1392
|
+
"description": "Environment variable name",
|
|
1393
|
+
"name": "name",
|
|
1394
|
+
"required": true
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
"description": "Delete an environment variable",
|
|
1365
1398
|
"examples": [
|
|
1366
|
-
"$ xano run env
|
|
1399
|
+
"$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
|
|
1400
|
+
"$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
|
|
1401
|
+
],
|
|
1402
|
+
"flags": {
|
|
1403
|
+
"profile": {
|
|
1404
|
+
"char": "p",
|
|
1405
|
+
"description": "Profile to use for this command",
|
|
1406
|
+
"env": "XANO_PROFILE",
|
|
1407
|
+
"name": "profile",
|
|
1408
|
+
"required": false,
|
|
1409
|
+
"hasDynamicHelp": false,
|
|
1410
|
+
"multiple": false,
|
|
1411
|
+
"type": "option"
|
|
1412
|
+
},
|
|
1413
|
+
"force": {
|
|
1414
|
+
"char": "f",
|
|
1415
|
+
"description": "Skip confirmation prompt",
|
|
1416
|
+
"name": "force",
|
|
1417
|
+
"required": false,
|
|
1418
|
+
"allowNo": false,
|
|
1419
|
+
"type": "boolean"
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
"hasDynamicHelp": false,
|
|
1423
|
+
"hiddenAliases": [],
|
|
1424
|
+
"id": "run:env:delete",
|
|
1425
|
+
"pluginAlias": "@xano/cli",
|
|
1426
|
+
"pluginName": "@xano/cli",
|
|
1427
|
+
"pluginType": "core",
|
|
1428
|
+
"strict": true,
|
|
1429
|
+
"isESM": true,
|
|
1430
|
+
"relativePath": [
|
|
1431
|
+
"dist",
|
|
1432
|
+
"commands",
|
|
1433
|
+
"run",
|
|
1434
|
+
"env",
|
|
1435
|
+
"delete",
|
|
1436
|
+
"index.js"
|
|
1437
|
+
]
|
|
1438
|
+
},
|
|
1439
|
+
"run:env:get": {
|
|
1440
|
+
"aliases": [],
|
|
1441
|
+
"args": {
|
|
1442
|
+
"name": {
|
|
1443
|
+
"description": "Environment variable name",
|
|
1444
|
+
"name": "name",
|
|
1445
|
+
"required": true
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"description": "Get an environment variable value",
|
|
1449
|
+
"examples": [
|
|
1450
|
+
"$ xano run env get API_KEY\nmy-secret-api-key\n",
|
|
1451
|
+
"$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
|
|
1452
|
+
],
|
|
1453
|
+
"flags": {
|
|
1454
|
+
"profile": {
|
|
1455
|
+
"char": "p",
|
|
1456
|
+
"description": "Profile to use for this command",
|
|
1457
|
+
"env": "XANO_PROFILE",
|
|
1458
|
+
"name": "profile",
|
|
1459
|
+
"required": false,
|
|
1460
|
+
"hasDynamicHelp": false,
|
|
1461
|
+
"multiple": false,
|
|
1462
|
+
"type": "option"
|
|
1463
|
+
},
|
|
1464
|
+
"output": {
|
|
1465
|
+
"char": "o",
|
|
1466
|
+
"description": "Output format",
|
|
1467
|
+
"name": "output",
|
|
1468
|
+
"required": false,
|
|
1469
|
+
"default": "value",
|
|
1470
|
+
"hasDynamicHelp": false,
|
|
1471
|
+
"multiple": false,
|
|
1472
|
+
"options": [
|
|
1473
|
+
"value",
|
|
1474
|
+
"json"
|
|
1475
|
+
],
|
|
1476
|
+
"type": "option"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
"hasDynamicHelp": false,
|
|
1480
|
+
"hiddenAliases": [],
|
|
1481
|
+
"id": "run:env:get",
|
|
1482
|
+
"pluginAlias": "@xano/cli",
|
|
1483
|
+
"pluginName": "@xano/cli",
|
|
1484
|
+
"pluginType": "core",
|
|
1485
|
+
"strict": true,
|
|
1486
|
+
"isESM": true,
|
|
1487
|
+
"relativePath": [
|
|
1488
|
+
"dist",
|
|
1489
|
+
"commands",
|
|
1490
|
+
"run",
|
|
1491
|
+
"env",
|
|
1492
|
+
"get",
|
|
1493
|
+
"index.js"
|
|
1494
|
+
]
|
|
1495
|
+
},
|
|
1496
|
+
"run:env:list": {
|
|
1497
|
+
"aliases": [],
|
|
1498
|
+
"args": {},
|
|
1499
|
+
"description": "List all environment variable keys",
|
|
1500
|
+
"examples": [
|
|
1501
|
+
"$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
|
|
1367
1502
|
"$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
|
|
1368
1503
|
],
|
|
1369
1504
|
"flags": {
|
|
@@ -1579,57 +1714,6 @@
|
|
|
1579
1714
|
"index.js"
|
|
1580
1715
|
]
|
|
1581
1716
|
},
|
|
1582
|
-
"run:projects:list": {
|
|
1583
|
-
"aliases": [],
|
|
1584
|
-
"args": {},
|
|
1585
|
-
"description": "List all projects",
|
|
1586
|
-
"examples": [
|
|
1587
|
-
"$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
|
|
1588
|
-
"$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
|
|
1589
|
-
],
|
|
1590
|
-
"flags": {
|
|
1591
|
-
"profile": {
|
|
1592
|
-
"char": "p",
|
|
1593
|
-
"description": "Profile to use for this command",
|
|
1594
|
-
"env": "XANO_PROFILE",
|
|
1595
|
-
"name": "profile",
|
|
1596
|
-
"required": false,
|
|
1597
|
-
"hasDynamicHelp": false,
|
|
1598
|
-
"multiple": false,
|
|
1599
|
-
"type": "option"
|
|
1600
|
-
},
|
|
1601
|
-
"output": {
|
|
1602
|
-
"char": "o",
|
|
1603
|
-
"description": "Output format",
|
|
1604
|
-
"name": "output",
|
|
1605
|
-
"required": false,
|
|
1606
|
-
"default": "table",
|
|
1607
|
-
"hasDynamicHelp": false,
|
|
1608
|
-
"multiple": false,
|
|
1609
|
-
"options": [
|
|
1610
|
-
"table",
|
|
1611
|
-
"json"
|
|
1612
|
-
],
|
|
1613
|
-
"type": "option"
|
|
1614
|
-
}
|
|
1615
|
-
},
|
|
1616
|
-
"hasDynamicHelp": false,
|
|
1617
|
-
"hiddenAliases": [],
|
|
1618
|
-
"id": "run:projects:list",
|
|
1619
|
-
"pluginAlias": "@xano/cli",
|
|
1620
|
-
"pluginName": "@xano/cli",
|
|
1621
|
-
"pluginType": "core",
|
|
1622
|
-
"strict": true,
|
|
1623
|
-
"isESM": true,
|
|
1624
|
-
"relativePath": [
|
|
1625
|
-
"dist",
|
|
1626
|
-
"commands",
|
|
1627
|
-
"run",
|
|
1628
|
-
"projects",
|
|
1629
|
-
"list",
|
|
1630
|
-
"index.js"
|
|
1631
|
-
]
|
|
1632
|
-
},
|
|
1633
1717
|
"run:projects:update": {
|
|
1634
1718
|
"aliases": [],
|
|
1635
1719
|
"args": {
|
|
@@ -1706,19 +1790,13 @@
|
|
|
1706
1790
|
"index.js"
|
|
1707
1791
|
]
|
|
1708
1792
|
},
|
|
1709
|
-
"run:
|
|
1793
|
+
"run:projects:list": {
|
|
1710
1794
|
"aliases": [],
|
|
1711
|
-
"args": {
|
|
1712
|
-
|
|
1713
|
-
"description": "Secret name",
|
|
1714
|
-
"name": "name",
|
|
1715
|
-
"required": true
|
|
1716
|
-
}
|
|
1717
|
-
},
|
|
1718
|
-
"description": "Delete a secret",
|
|
1795
|
+
"args": {},
|
|
1796
|
+
"description": "List all projects",
|
|
1719
1797
|
"examples": [
|
|
1720
|
-
"$ xano run
|
|
1721
|
-
"$ xano run
|
|
1798
|
+
"$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
|
|
1799
|
+
"$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
|
|
1722
1800
|
],
|
|
1723
1801
|
"flags": {
|
|
1724
1802
|
"profile": {
|
|
@@ -1731,18 +1809,24 @@
|
|
|
1731
1809
|
"multiple": false,
|
|
1732
1810
|
"type": "option"
|
|
1733
1811
|
},
|
|
1734
|
-
"
|
|
1735
|
-
"char": "
|
|
1736
|
-
"description": "
|
|
1737
|
-
"name": "
|
|
1812
|
+
"output": {
|
|
1813
|
+
"char": "o",
|
|
1814
|
+
"description": "Output format",
|
|
1815
|
+
"name": "output",
|
|
1738
1816
|
"required": false,
|
|
1739
|
-
"
|
|
1740
|
-
"
|
|
1817
|
+
"default": "table",
|
|
1818
|
+
"hasDynamicHelp": false,
|
|
1819
|
+
"multiple": false,
|
|
1820
|
+
"options": [
|
|
1821
|
+
"table",
|
|
1822
|
+
"json"
|
|
1823
|
+
],
|
|
1824
|
+
"type": "option"
|
|
1741
1825
|
}
|
|
1742
1826
|
},
|
|
1743
1827
|
"hasDynamicHelp": false,
|
|
1744
1828
|
"hiddenAliases": [],
|
|
1745
|
-
"id": "run:
|
|
1829
|
+
"id": "run:projects:list",
|
|
1746
1830
|
"pluginAlias": "@xano/cli",
|
|
1747
1831
|
"pluginName": "@xano/cli",
|
|
1748
1832
|
"pluginType": "core",
|
|
@@ -1752,12 +1836,12 @@
|
|
|
1752
1836
|
"dist",
|
|
1753
1837
|
"commands",
|
|
1754
1838
|
"run",
|
|
1755
|
-
"
|
|
1756
|
-
"
|
|
1839
|
+
"projects",
|
|
1840
|
+
"list",
|
|
1757
1841
|
"index.js"
|
|
1758
1842
|
]
|
|
1759
1843
|
},
|
|
1760
|
-
"run:secrets:
|
|
1844
|
+
"run:secrets:delete": {
|
|
1761
1845
|
"aliases": [],
|
|
1762
1846
|
"args": {
|
|
1763
1847
|
"name": {
|
|
@@ -1766,10 +1850,10 @@
|
|
|
1766
1850
|
"required": true
|
|
1767
1851
|
}
|
|
1768
1852
|
},
|
|
1769
|
-
"description": "
|
|
1853
|
+
"description": "Delete a secret",
|
|
1770
1854
|
"examples": [
|
|
1771
|
-
"$ xano run secrets
|
|
1772
|
-
"$ xano run secrets
|
|
1855
|
+
"$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
|
|
1856
|
+
"$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
|
|
1773
1857
|
],
|
|
1774
1858
|
"flags": {
|
|
1775
1859
|
"profile": {
|
|
@@ -1782,41 +1866,18 @@
|
|
|
1782
1866
|
"multiple": false,
|
|
1783
1867
|
"type": "option"
|
|
1784
1868
|
},
|
|
1785
|
-
"
|
|
1786
|
-
"char": "
|
|
1787
|
-
"description": "
|
|
1788
|
-
"name": "
|
|
1789
|
-
"required": true,
|
|
1790
|
-
"hasDynamicHelp": false,
|
|
1791
|
-
"multiple": false,
|
|
1792
|
-
"options": [
|
|
1793
|
-
"dockerconfigjson",
|
|
1794
|
-
"service-account-token"
|
|
1795
|
-
],
|
|
1796
|
-
"type": "option"
|
|
1797
|
-
},
|
|
1798
|
-
"value": {
|
|
1799
|
-
"char": "v",
|
|
1800
|
-
"description": "Secret value",
|
|
1801
|
-
"name": "value",
|
|
1802
|
-
"required": true,
|
|
1803
|
-
"hasDynamicHelp": false,
|
|
1804
|
-
"multiple": false,
|
|
1805
|
-
"type": "option"
|
|
1806
|
-
},
|
|
1807
|
-
"repo": {
|
|
1808
|
-
"char": "r",
|
|
1809
|
-
"description": "Repository (for dockerconfigjson type)",
|
|
1810
|
-
"name": "repo",
|
|
1869
|
+
"force": {
|
|
1870
|
+
"char": "f",
|
|
1871
|
+
"description": "Skip confirmation prompt",
|
|
1872
|
+
"name": "force",
|
|
1811
1873
|
"required": false,
|
|
1812
|
-
"
|
|
1813
|
-
"
|
|
1814
|
-
"type": "option"
|
|
1874
|
+
"allowNo": false,
|
|
1875
|
+
"type": "boolean"
|
|
1815
1876
|
}
|
|
1816
1877
|
},
|
|
1817
1878
|
"hasDynamicHelp": false,
|
|
1818
1879
|
"hiddenAliases": [],
|
|
1819
|
-
"id": "run:secrets:
|
|
1880
|
+
"id": "run:secrets:delete",
|
|
1820
1881
|
"pluginAlias": "@xano/cli",
|
|
1821
1882
|
"pluginName": "@xano/cli",
|
|
1822
1883
|
"pluginType": "core",
|
|
@@ -1827,7 +1888,7 @@
|
|
|
1827
1888
|
"commands",
|
|
1828
1889
|
"run",
|
|
1829
1890
|
"secrets",
|
|
1830
|
-
"
|
|
1891
|
+
"delete",
|
|
1831
1892
|
"index.js"
|
|
1832
1893
|
]
|
|
1833
1894
|
},
|
|
@@ -1939,7 +2000,7 @@
|
|
|
1939
2000
|
"index.js"
|
|
1940
2001
|
]
|
|
1941
2002
|
},
|
|
1942
|
-
"run:
|
|
2003
|
+
"run:sessions:delete": {
|
|
1943
2004
|
"aliases": [],
|
|
1944
2005
|
"args": {
|
|
1945
2006
|
"sessionId": {
|
|
@@ -1948,10 +2009,10 @@
|
|
|
1948
2009
|
"required": true
|
|
1949
2010
|
}
|
|
1950
2011
|
},
|
|
1951
|
-
"description": "
|
|
2012
|
+
"description": "Delete a session",
|
|
1952
2013
|
"examples": [
|
|
1953
|
-
"$ xano run
|
|
1954
|
-
"$ xano run
|
|
2014
|
+
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
2015
|
+
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
1955
2016
|
],
|
|
1956
2017
|
"flags": {
|
|
1957
2018
|
"profile": {
|
|
@@ -1964,24 +2025,18 @@
|
|
|
1964
2025
|
"multiple": false,
|
|
1965
2026
|
"type": "option"
|
|
1966
2027
|
},
|
|
1967
|
-
"
|
|
1968
|
-
"char": "
|
|
1969
|
-
"description": "
|
|
1970
|
-
"name": "
|
|
2028
|
+
"force": {
|
|
2029
|
+
"char": "f",
|
|
2030
|
+
"description": "Skip confirmation prompt",
|
|
2031
|
+
"name": "force",
|
|
1971
2032
|
"required": false,
|
|
1972
|
-
"
|
|
1973
|
-
"
|
|
1974
|
-
"multiple": false,
|
|
1975
|
-
"options": [
|
|
1976
|
-
"summary",
|
|
1977
|
-
"json"
|
|
1978
|
-
],
|
|
1979
|
-
"type": "option"
|
|
2033
|
+
"allowNo": false,
|
|
2034
|
+
"type": "boolean"
|
|
1980
2035
|
}
|
|
1981
2036
|
},
|
|
1982
2037
|
"hasDynamicHelp": false,
|
|
1983
2038
|
"hiddenAliases": [],
|
|
1984
|
-
"id": "run:
|
|
2039
|
+
"id": "run:sessions:delete",
|
|
1985
2040
|
"pluginAlias": "@xano/cli",
|
|
1986
2041
|
"pluginName": "@xano/cli",
|
|
1987
2042
|
"pluginType": "core",
|
|
@@ -1991,24 +2046,24 @@
|
|
|
1991
2046
|
"dist",
|
|
1992
2047
|
"commands",
|
|
1993
2048
|
"run",
|
|
1994
|
-
"
|
|
1995
|
-
"
|
|
2049
|
+
"sessions",
|
|
2050
|
+
"delete",
|
|
1996
2051
|
"index.js"
|
|
1997
2052
|
]
|
|
1998
2053
|
},
|
|
1999
|
-
"run:
|
|
2054
|
+
"run:secrets:set": {
|
|
2000
2055
|
"aliases": [],
|
|
2001
2056
|
"args": {
|
|
2002
|
-
"
|
|
2003
|
-
"description": "
|
|
2004
|
-
"name": "
|
|
2057
|
+
"name": {
|
|
2058
|
+
"description": "Secret name",
|
|
2059
|
+
"name": "name",
|
|
2005
2060
|
"required": true
|
|
2006
2061
|
}
|
|
2007
2062
|
},
|
|
2008
|
-
"description": "
|
|
2063
|
+
"description": "Set a secret",
|
|
2009
2064
|
"examples": [
|
|
2010
|
-
"$ xano run
|
|
2011
|
-
"$ xano run
|
|
2065
|
+
"$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
|
|
2066
|
+
"$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
|
|
2012
2067
|
],
|
|
2013
2068
|
"flags": {
|
|
2014
2069
|
"profile": {
|
|
@@ -2021,24 +2076,41 @@
|
|
|
2021
2076
|
"multiple": false,
|
|
2022
2077
|
"type": "option"
|
|
2023
2078
|
},
|
|
2024
|
-
"
|
|
2025
|
-
"char": "
|
|
2026
|
-
"description": "
|
|
2027
|
-
"name": "
|
|
2028
|
-
"required":
|
|
2029
|
-
"default": "summary",
|
|
2079
|
+
"type": {
|
|
2080
|
+
"char": "t",
|
|
2081
|
+
"description": "Secret type",
|
|
2082
|
+
"name": "type",
|
|
2083
|
+
"required": true,
|
|
2030
2084
|
"hasDynamicHelp": false,
|
|
2031
2085
|
"multiple": false,
|
|
2032
2086
|
"options": [
|
|
2033
|
-
"
|
|
2034
|
-
"
|
|
2087
|
+
"dockerconfigjson",
|
|
2088
|
+
"service-account-token"
|
|
2035
2089
|
],
|
|
2036
2090
|
"type": "option"
|
|
2091
|
+
},
|
|
2092
|
+
"value": {
|
|
2093
|
+
"char": "v",
|
|
2094
|
+
"description": "Secret value",
|
|
2095
|
+
"name": "value",
|
|
2096
|
+
"required": true,
|
|
2097
|
+
"hasDynamicHelp": false,
|
|
2098
|
+
"multiple": false,
|
|
2099
|
+
"type": "option"
|
|
2100
|
+
},
|
|
2101
|
+
"repo": {
|
|
2102
|
+
"char": "r",
|
|
2103
|
+
"description": "Repository (for dockerconfigjson type)",
|
|
2104
|
+
"name": "repo",
|
|
2105
|
+
"required": false,
|
|
2106
|
+
"hasDynamicHelp": false,
|
|
2107
|
+
"multiple": false,
|
|
2108
|
+
"type": "option"
|
|
2037
2109
|
}
|
|
2038
2110
|
},
|
|
2039
2111
|
"hasDynamicHelp": false,
|
|
2040
2112
|
"hiddenAliases": [],
|
|
2041
|
-
"id": "run:
|
|
2113
|
+
"id": "run:secrets:set",
|
|
2042
2114
|
"pluginAlias": "@xano/cli",
|
|
2043
2115
|
"pluginName": "@xano/cli",
|
|
2044
2116
|
"pluginType": "core",
|
|
@@ -2048,12 +2120,12 @@
|
|
|
2048
2120
|
"dist",
|
|
2049
2121
|
"commands",
|
|
2050
2122
|
"run",
|
|
2051
|
-
"
|
|
2052
|
-
"
|
|
2123
|
+
"secrets",
|
|
2124
|
+
"set",
|
|
2053
2125
|
"index.js"
|
|
2054
2126
|
]
|
|
2055
2127
|
},
|
|
2056
|
-
"run:sessions:
|
|
2128
|
+
"run:sessions:get": {
|
|
2057
2129
|
"aliases": [],
|
|
2058
2130
|
"args": {
|
|
2059
2131
|
"sessionId": {
|
|
@@ -2062,10 +2134,10 @@
|
|
|
2062
2134
|
"required": true
|
|
2063
2135
|
}
|
|
2064
2136
|
},
|
|
2065
|
-
"description": "
|
|
2137
|
+
"description": "Get session details",
|
|
2066
2138
|
"examples": [
|
|
2067
|
-
"$ xano run sessions
|
|
2068
|
-
"$ xano run sessions
|
|
2139
|
+
"$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
|
|
2140
|
+
"$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
|
|
2069
2141
|
],
|
|
2070
2142
|
"flags": {
|
|
2071
2143
|
"profile": {
|
|
@@ -2078,18 +2150,24 @@
|
|
|
2078
2150
|
"multiple": false,
|
|
2079
2151
|
"type": "option"
|
|
2080
2152
|
},
|
|
2081
|
-
"
|
|
2082
|
-
"char": "
|
|
2083
|
-
"description": "
|
|
2084
|
-
"name": "
|
|
2153
|
+
"output": {
|
|
2154
|
+
"char": "o",
|
|
2155
|
+
"description": "Output format",
|
|
2156
|
+
"name": "output",
|
|
2085
2157
|
"required": false,
|
|
2086
|
-
"
|
|
2087
|
-
"
|
|
2158
|
+
"default": "summary",
|
|
2159
|
+
"hasDynamicHelp": false,
|
|
2160
|
+
"multiple": false,
|
|
2161
|
+
"options": [
|
|
2162
|
+
"summary",
|
|
2163
|
+
"json"
|
|
2164
|
+
],
|
|
2165
|
+
"type": "option"
|
|
2088
2166
|
}
|
|
2089
2167
|
},
|
|
2090
2168
|
"hasDynamicHelp": false,
|
|
2091
2169
|
"hiddenAliases": [],
|
|
2092
|
-
"id": "run:sessions:
|
|
2170
|
+
"id": "run:sessions:get",
|
|
2093
2171
|
"pluginAlias": "@xano/cli",
|
|
2094
2172
|
"pluginName": "@xano/cli",
|
|
2095
2173
|
"pluginType": "core",
|
|
@@ -2100,7 +2178,7 @@
|
|
|
2100
2178
|
"commands",
|
|
2101
2179
|
"run",
|
|
2102
2180
|
"sessions",
|
|
2103
|
-
"
|
|
2181
|
+
"get",
|
|
2104
2182
|
"index.js"
|
|
2105
2183
|
]
|
|
2106
2184
|
},
|
|
@@ -2269,26 +2347,19 @@
|
|
|
2269
2347
|
"index.js"
|
|
2270
2348
|
]
|
|
2271
2349
|
},
|
|
2272
|
-
"
|
|
2350
|
+
"run:sink:get": {
|
|
2273
2351
|
"aliases": [],
|
|
2274
2352
|
"args": {
|
|
2275
|
-
"
|
|
2276
|
-
"description": "
|
|
2277
|
-
"name": "
|
|
2278
|
-
"required": true
|
|
2279
|
-
},
|
|
2280
|
-
"build_id": {
|
|
2281
|
-
"description": "Build ID",
|
|
2282
|
-
"name": "build_id",
|
|
2353
|
+
"sessionId": {
|
|
2354
|
+
"description": "Session ID",
|
|
2355
|
+
"name": "sessionId",
|
|
2283
2356
|
"required": true
|
|
2284
2357
|
}
|
|
2285
2358
|
},
|
|
2286
|
-
"description": "Get
|
|
2359
|
+
"description": "Get sink data for a completed session",
|
|
2287
2360
|
"examples": [
|
|
2288
|
-
"$ xano
|
|
2289
|
-
"$ xano
|
|
2290
|
-
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
2291
|
-
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
2361
|
+
"$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
|
|
2362
|
+
"$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
|
|
2292
2363
|
],
|
|
2293
2364
|
"flags": {
|
|
2294
2365
|
"profile": {
|
|
@@ -2301,15 +2372,6 @@
|
|
|
2301
2372
|
"multiple": false,
|
|
2302
2373
|
"type": "option"
|
|
2303
2374
|
},
|
|
2304
|
-
"workspace": {
|
|
2305
|
-
"char": "w",
|
|
2306
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
2307
|
-
"name": "workspace",
|
|
2308
|
-
"required": false,
|
|
2309
|
-
"hasDynamicHelp": false,
|
|
2310
|
-
"multiple": false,
|
|
2311
|
-
"type": "option"
|
|
2312
|
-
},
|
|
2313
2375
|
"output": {
|
|
2314
2376
|
"char": "o",
|
|
2315
2377
|
"description": "Output format",
|
|
@@ -2327,18 +2389,17 @@
|
|
|
2327
2389
|
},
|
|
2328
2390
|
"hasDynamicHelp": false,
|
|
2329
2391
|
"hiddenAliases": [],
|
|
2330
|
-
"id": "
|
|
2392
|
+
"id": "run:sink:get",
|
|
2331
2393
|
"pluginAlias": "@xano/cli",
|
|
2332
2394
|
"pluginName": "@xano/cli",
|
|
2333
2395
|
"pluginType": "core",
|
|
2334
2396
|
"strict": true,
|
|
2335
|
-
"enableJsonFlag": false,
|
|
2336
2397
|
"isESM": true,
|
|
2337
2398
|
"relativePath": [
|
|
2338
2399
|
"dist",
|
|
2339
2400
|
"commands",
|
|
2340
|
-
"
|
|
2341
|
-
"
|
|
2401
|
+
"run",
|
|
2402
|
+
"sink",
|
|
2342
2403
|
"get",
|
|
2343
2404
|
"index.js"
|
|
2344
2405
|
]
|
|
@@ -2438,6 +2499,80 @@
|
|
|
2438
2499
|
"index.js"
|
|
2439
2500
|
]
|
|
2440
2501
|
},
|
|
2502
|
+
"static_host:build:get": {
|
|
2503
|
+
"aliases": [],
|
|
2504
|
+
"args": {
|
|
2505
|
+
"static_host": {
|
|
2506
|
+
"description": "Static Host name",
|
|
2507
|
+
"name": "static_host",
|
|
2508
|
+
"required": true
|
|
2509
|
+
},
|
|
2510
|
+
"build_id": {
|
|
2511
|
+
"description": "Build ID",
|
|
2512
|
+
"name": "build_id",
|
|
2513
|
+
"required": true
|
|
2514
|
+
}
|
|
2515
|
+
},
|
|
2516
|
+
"description": "Get details of a specific build for a static host",
|
|
2517
|
+
"examples": [
|
|
2518
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
2519
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
2520
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
2521
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
2522
|
+
],
|
|
2523
|
+
"flags": {
|
|
2524
|
+
"profile": {
|
|
2525
|
+
"char": "p",
|
|
2526
|
+
"description": "Profile to use for this command",
|
|
2527
|
+
"env": "XANO_PROFILE",
|
|
2528
|
+
"name": "profile",
|
|
2529
|
+
"required": false,
|
|
2530
|
+
"hasDynamicHelp": false,
|
|
2531
|
+
"multiple": false,
|
|
2532
|
+
"type": "option"
|
|
2533
|
+
},
|
|
2534
|
+
"workspace": {
|
|
2535
|
+
"char": "w",
|
|
2536
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2537
|
+
"name": "workspace",
|
|
2538
|
+
"required": false,
|
|
2539
|
+
"hasDynamicHelp": false,
|
|
2540
|
+
"multiple": false,
|
|
2541
|
+
"type": "option"
|
|
2542
|
+
},
|
|
2543
|
+
"output": {
|
|
2544
|
+
"char": "o",
|
|
2545
|
+
"description": "Output format",
|
|
2546
|
+
"name": "output",
|
|
2547
|
+
"required": false,
|
|
2548
|
+
"default": "summary",
|
|
2549
|
+
"hasDynamicHelp": false,
|
|
2550
|
+
"multiple": false,
|
|
2551
|
+
"options": [
|
|
2552
|
+
"summary",
|
|
2553
|
+
"json"
|
|
2554
|
+
],
|
|
2555
|
+
"type": "option"
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
"hasDynamicHelp": false,
|
|
2559
|
+
"hiddenAliases": [],
|
|
2560
|
+
"id": "static_host:build:get",
|
|
2561
|
+
"pluginAlias": "@xano/cli",
|
|
2562
|
+
"pluginName": "@xano/cli",
|
|
2563
|
+
"pluginType": "core",
|
|
2564
|
+
"strict": true,
|
|
2565
|
+
"enableJsonFlag": false,
|
|
2566
|
+
"isESM": true,
|
|
2567
|
+
"relativePath": [
|
|
2568
|
+
"dist",
|
|
2569
|
+
"commands",
|
|
2570
|
+
"static_host",
|
|
2571
|
+
"build",
|
|
2572
|
+
"get",
|
|
2573
|
+
"index.js"
|
|
2574
|
+
]
|
|
2575
|
+
},
|
|
2441
2576
|
"static_host:build:list": {
|
|
2442
2577
|
"aliases": [],
|
|
2443
2578
|
"args": {
|
|
@@ -2526,5 +2661,5 @@
|
|
|
2526
2661
|
]
|
|
2527
2662
|
}
|
|
2528
2663
|
},
|
|
2529
|
-
"version": "0.0.
|
|
2664
|
+
"version": "0.0.16"
|
|
2530
2665
|
}
|