@xano/cli 0.0.15 → 0.0.17
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.js +1 -1
- 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.js +1 -1
- package/oclif.manifest.json +509 -389
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -97,25 +97,23 @@
|
|
|
97
97
|
"index.js"
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
|
-
"function:
|
|
100
|
+
"function:get": {
|
|
101
101
|
"aliases": [],
|
|
102
102
|
"args": {
|
|
103
103
|
"function_id": {
|
|
104
|
-
"description": "Function ID
|
|
104
|
+
"description": "Function ID",
|
|
105
105
|
"name": "function_id",
|
|
106
106
|
"required": false
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"description": "
|
|
109
|
+
"description": "Get a specific function from a workspace",
|
|
110
110
|
"examples": [
|
|
111
|
-
"$ xano function:
|
|
112
|
-
"$ xano function:
|
|
113
|
-
"$ xano function:
|
|
114
|
-
"$ xano function:
|
|
115
|
-
"$ xano function:
|
|
116
|
-
"$ xano function:
|
|
117
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
118
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
111
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
112
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
113
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
114
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
115
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
116
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
119
117
|
],
|
|
120
118
|
"flags": {
|
|
121
119
|
"profile": {
|
|
@@ -137,44 +135,6 @@
|
|
|
137
135
|
"multiple": false,
|
|
138
136
|
"type": "option"
|
|
139
137
|
},
|
|
140
|
-
"file": {
|
|
141
|
-
"char": "f",
|
|
142
|
-
"description": "Path to file containing XanoScript code",
|
|
143
|
-
"exclusive": [
|
|
144
|
-
"stdin"
|
|
145
|
-
],
|
|
146
|
-
"name": "file",
|
|
147
|
-
"required": false,
|
|
148
|
-
"hasDynamicHelp": false,
|
|
149
|
-
"multiple": false,
|
|
150
|
-
"type": "option"
|
|
151
|
-
},
|
|
152
|
-
"stdin": {
|
|
153
|
-
"char": "s",
|
|
154
|
-
"description": "Read XanoScript code from stdin",
|
|
155
|
-
"exclusive": [
|
|
156
|
-
"file"
|
|
157
|
-
],
|
|
158
|
-
"name": "stdin",
|
|
159
|
-
"required": false,
|
|
160
|
-
"allowNo": false,
|
|
161
|
-
"type": "boolean"
|
|
162
|
-
},
|
|
163
|
-
"edit": {
|
|
164
|
-
"char": "e",
|
|
165
|
-
"description": "Open file in editor before updating function (requires --file)",
|
|
166
|
-
"name": "edit",
|
|
167
|
-
"required": false,
|
|
168
|
-
"allowNo": false,
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
|
-
"publish": {
|
|
172
|
-
"description": "Publish the function after editing",
|
|
173
|
-
"name": "publish",
|
|
174
|
-
"required": false,
|
|
175
|
-
"allowNo": false,
|
|
176
|
-
"type": "boolean"
|
|
177
|
-
},
|
|
178
138
|
"output": {
|
|
179
139
|
"char": "o",
|
|
180
140
|
"description": "Output format",
|
|
@@ -185,14 +145,29 @@
|
|
|
185
145
|
"multiple": false,
|
|
186
146
|
"options": [
|
|
187
147
|
"summary",
|
|
188
|
-
"json"
|
|
148
|
+
"json",
|
|
149
|
+
"xs"
|
|
189
150
|
],
|
|
190
151
|
"type": "option"
|
|
152
|
+
},
|
|
153
|
+
"include_draft": {
|
|
154
|
+
"description": "Include draft version",
|
|
155
|
+
"name": "include_draft",
|
|
156
|
+
"required": false,
|
|
157
|
+
"allowNo": false,
|
|
158
|
+
"type": "boolean"
|
|
159
|
+
},
|
|
160
|
+
"include_xanoscript": {
|
|
161
|
+
"description": "Include XanoScript in response",
|
|
162
|
+
"name": "include_xanoscript",
|
|
163
|
+
"required": false,
|
|
164
|
+
"allowNo": false,
|
|
165
|
+
"type": "boolean"
|
|
191
166
|
}
|
|
192
167
|
},
|
|
193
168
|
"hasDynamicHelp": false,
|
|
194
169
|
"hiddenAliases": [],
|
|
195
|
-
"id": "function:
|
|
170
|
+
"id": "function:get",
|
|
196
171
|
"pluginAlias": "@xano/cli",
|
|
197
172
|
"pluginName": "@xano/cli",
|
|
198
173
|
"pluginType": "core",
|
|
@@ -203,27 +178,29 @@
|
|
|
203
178
|
"dist",
|
|
204
179
|
"commands",
|
|
205
180
|
"function",
|
|
206
|
-
"
|
|
181
|
+
"get",
|
|
207
182
|
"index.js"
|
|
208
183
|
]
|
|
209
184
|
},
|
|
210
|
-
"function:
|
|
185
|
+
"function:edit": {
|
|
211
186
|
"aliases": [],
|
|
212
187
|
"args": {
|
|
213
188
|
"function_id": {
|
|
214
|
-
"description": "Function ID",
|
|
189
|
+
"description": "Function ID to edit",
|
|
215
190
|
"name": "function_id",
|
|
216
191
|
"required": false
|
|
217
192
|
}
|
|
218
193
|
},
|
|
219
|
-
"description": "
|
|
194
|
+
"description": "Edit a function in a workspace",
|
|
220
195
|
"examples": [
|
|
221
|
-
"$ xano function:
|
|
222
|
-
"$ xano function:
|
|
223
|
-
"$ xano function:
|
|
224
|
-
"$ xano function:
|
|
225
|
-
"$ xano function:
|
|
226
|
-
"$ xano function:
|
|
196
|
+
"$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
197
|
+
"$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
198
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
199
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
200
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
201
|
+
"$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
202
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
203
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
227
204
|
],
|
|
228
205
|
"flags": {
|
|
229
206
|
"profile": {
|
|
@@ -245,39 +222,62 @@
|
|
|
245
222
|
"multiple": false,
|
|
246
223
|
"type": "option"
|
|
247
224
|
},
|
|
248
|
-
"
|
|
249
|
-
"char": "
|
|
250
|
-
"description": "
|
|
251
|
-
"
|
|
225
|
+
"file": {
|
|
226
|
+
"char": "f",
|
|
227
|
+
"description": "Path to file containing XanoScript code",
|
|
228
|
+
"exclusive": [
|
|
229
|
+
"stdin"
|
|
230
|
+
],
|
|
231
|
+
"name": "file",
|
|
252
232
|
"required": false,
|
|
253
|
-
"default": "summary",
|
|
254
233
|
"hasDynamicHelp": false,
|
|
255
234
|
"multiple": false,
|
|
256
|
-
"options": [
|
|
257
|
-
"summary",
|
|
258
|
-
"json",
|
|
259
|
-
"xs"
|
|
260
|
-
],
|
|
261
235
|
"type": "option"
|
|
262
236
|
},
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
237
|
+
"stdin": {
|
|
238
|
+
"char": "s",
|
|
239
|
+
"description": "Read XanoScript code from stdin",
|
|
240
|
+
"exclusive": [
|
|
241
|
+
"file"
|
|
242
|
+
],
|
|
243
|
+
"name": "stdin",
|
|
266
244
|
"required": false,
|
|
267
245
|
"allowNo": false,
|
|
268
246
|
"type": "boolean"
|
|
269
247
|
},
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
248
|
+
"edit": {
|
|
249
|
+
"char": "e",
|
|
250
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
251
|
+
"name": "edit",
|
|
252
|
+
"required": false,
|
|
253
|
+
"allowNo": false,
|
|
254
|
+
"type": "boolean"
|
|
255
|
+
},
|
|
256
|
+
"publish": {
|
|
257
|
+
"description": "Publish the function after editing",
|
|
258
|
+
"name": "publish",
|
|
273
259
|
"required": false,
|
|
274
260
|
"allowNo": false,
|
|
275
261
|
"type": "boolean"
|
|
262
|
+
},
|
|
263
|
+
"output": {
|
|
264
|
+
"char": "o",
|
|
265
|
+
"description": "Output format",
|
|
266
|
+
"name": "output",
|
|
267
|
+
"required": false,
|
|
268
|
+
"default": "summary",
|
|
269
|
+
"hasDynamicHelp": false,
|
|
270
|
+
"multiple": false,
|
|
271
|
+
"options": [
|
|
272
|
+
"summary",
|
|
273
|
+
"json"
|
|
274
|
+
],
|
|
275
|
+
"type": "option"
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
278
|
"hasDynamicHelp": false,
|
|
279
279
|
"hiddenAliases": [],
|
|
280
|
-
"id": "function:
|
|
280
|
+
"id": "function:edit",
|
|
281
281
|
"pluginAlias": "@xano/cli",
|
|
282
282
|
"pluginName": "@xano/cli",
|
|
283
283
|
"pluginType": "core",
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"dist",
|
|
289
289
|
"commands",
|
|
290
290
|
"function",
|
|
291
|
-
"
|
|
291
|
+
"edit",
|
|
292
292
|
"index.js"
|
|
293
293
|
]
|
|
294
294
|
},
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
"project": {
|
|
635
635
|
"char": "j",
|
|
636
|
-
"description": "Update project
|
|
636
|
+
"description": "Update project ID",
|
|
637
637
|
"name": "project",
|
|
638
638
|
"required": false,
|
|
639
639
|
"hasDynamicHelp": false,
|
|
@@ -721,6 +721,38 @@
|
|
|
721
721
|
"index.js"
|
|
722
722
|
]
|
|
723
723
|
},
|
|
724
|
+
"profile:set-default": {
|
|
725
|
+
"aliases": [],
|
|
726
|
+
"args": {
|
|
727
|
+
"name": {
|
|
728
|
+
"description": "Profile name to set as default",
|
|
729
|
+
"name": "name",
|
|
730
|
+
"required": true
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
"description": "Set the default profile",
|
|
734
|
+
"examples": [
|
|
735
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
736
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
737
|
+
],
|
|
738
|
+
"flags": {},
|
|
739
|
+
"hasDynamicHelp": false,
|
|
740
|
+
"hiddenAliases": [],
|
|
741
|
+
"id": "profile:set-default",
|
|
742
|
+
"pluginAlias": "@xano/cli",
|
|
743
|
+
"pluginName": "@xano/cli",
|
|
744
|
+
"pluginType": "core",
|
|
745
|
+
"strict": true,
|
|
746
|
+
"enableJsonFlag": false,
|
|
747
|
+
"isESM": true,
|
|
748
|
+
"relativePath": [
|
|
749
|
+
"dist",
|
|
750
|
+
"commands",
|
|
751
|
+
"profile",
|
|
752
|
+
"set-default",
|
|
753
|
+
"index.js"
|
|
754
|
+
]
|
|
755
|
+
},
|
|
724
756
|
"profile:me": {
|
|
725
757
|
"aliases": [],
|
|
726
758
|
"args": {},
|
|
@@ -835,24 +867,37 @@
|
|
|
835
867
|
"index.js"
|
|
836
868
|
]
|
|
837
869
|
},
|
|
838
|
-
"profile:
|
|
870
|
+
"profile:wizard": {
|
|
839
871
|
"aliases": [],
|
|
840
|
-
"args": {
|
|
872
|
+
"args": {},
|
|
873
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
874
|
+
"examples": [
|
|
875
|
+
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
876
|
+
],
|
|
877
|
+
"flags": {
|
|
841
878
|
"name": {
|
|
842
|
-
"
|
|
879
|
+
"char": "n",
|
|
880
|
+
"description": "Profile name (skip prompt if provided)",
|
|
843
881
|
"name": "name",
|
|
844
|
-
"required":
|
|
882
|
+
"required": false,
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"type": "option"
|
|
886
|
+
},
|
|
887
|
+
"origin": {
|
|
888
|
+
"char": "o",
|
|
889
|
+
"description": "Xano instance origin URL",
|
|
890
|
+
"name": "origin",
|
|
891
|
+
"required": false,
|
|
892
|
+
"default": "https://app.xano.com",
|
|
893
|
+
"hasDynamicHelp": false,
|
|
894
|
+
"multiple": false,
|
|
895
|
+
"type": "option"
|
|
845
896
|
}
|
|
846
897
|
},
|
|
847
|
-
"description": "Set the default profile",
|
|
848
|
-
"examples": [
|
|
849
|
-
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
850
|
-
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
851
|
-
],
|
|
852
|
-
"flags": {},
|
|
853
898
|
"hasDynamicHelp": false,
|
|
854
899
|
"hiddenAliases": [],
|
|
855
|
-
"id": "profile:
|
|
900
|
+
"id": "profile:wizard",
|
|
856
901
|
"pluginAlias": "@xano/cli",
|
|
857
902
|
"pluginName": "@xano/cli",
|
|
858
903
|
"pluginType": "core",
|
|
@@ -863,7 +908,7 @@
|
|
|
863
908
|
"dist",
|
|
864
909
|
"commands",
|
|
865
910
|
"profile",
|
|
866
|
-
"
|
|
911
|
+
"wizard",
|
|
867
912
|
"index.js"
|
|
868
913
|
]
|
|
869
914
|
},
|
|
@@ -893,66 +938,24 @@
|
|
|
893
938
|
"index.js"
|
|
894
939
|
]
|
|
895
940
|
},
|
|
896
|
-
"
|
|
941
|
+
"run:exec": {
|
|
897
942
|
"aliases": [],
|
|
898
943
|
"args": {},
|
|
899
|
-
"description": "
|
|
944
|
+
"description": "Execute XanoScript code (job or service)",
|
|
900
945
|
"examples": [
|
|
901
|
-
"$ xano
|
|
946
|
+
"$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
|
|
947
|
+
"$ xano run exec -f script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
|
|
948
|
+
"$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
|
|
949
|
+
"$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
950
|
+
"$ xano run exec -f script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
951
|
+
"$ xano run exec -f script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
902
952
|
],
|
|
903
953
|
"flags": {
|
|
904
|
-
"
|
|
905
|
-
"char": "
|
|
906
|
-
"description": "Profile
|
|
907
|
-
"
|
|
908
|
-
"
|
|
909
|
-
"hasDynamicHelp": false,
|
|
910
|
-
"multiple": false,
|
|
911
|
-
"type": "option"
|
|
912
|
-
},
|
|
913
|
-
"origin": {
|
|
914
|
-
"char": "o",
|
|
915
|
-
"description": "Xano instance origin URL",
|
|
916
|
-
"name": "origin",
|
|
917
|
-
"required": false,
|
|
918
|
-
"default": "https://app.xano.com",
|
|
919
|
-
"hasDynamicHelp": false,
|
|
920
|
-
"multiple": false,
|
|
921
|
-
"type": "option"
|
|
922
|
-
}
|
|
923
|
-
},
|
|
924
|
-
"hasDynamicHelp": false,
|
|
925
|
-
"hiddenAliases": [],
|
|
926
|
-
"id": "profile:wizard",
|
|
927
|
-
"pluginAlias": "@xano/cli",
|
|
928
|
-
"pluginName": "@xano/cli",
|
|
929
|
-
"pluginType": "core",
|
|
930
|
-
"strict": true,
|
|
931
|
-
"enableJsonFlag": false,
|
|
932
|
-
"isESM": true,
|
|
933
|
-
"relativePath": [
|
|
934
|
-
"dist",
|
|
935
|
-
"commands",
|
|
936
|
-
"profile",
|
|
937
|
-
"wizard",
|
|
938
|
-
"index.js"
|
|
939
|
-
]
|
|
940
|
-
},
|
|
941
|
-
"run:info": {
|
|
942
|
-
"aliases": [],
|
|
943
|
-
"args": {},
|
|
944
|
-
"description": "Get information about a XanoScript document (type, inputs, env vars)",
|
|
945
|
-
"examples": [
|
|
946
|
-
"$ 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",
|
|
947
|
-
"$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
|
|
948
|
-
"$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
|
|
949
|
-
],
|
|
950
|
-
"flags": {
|
|
951
|
-
"profile": {
|
|
952
|
-
"char": "p",
|
|
953
|
-
"description": "Profile to use for this command",
|
|
954
|
-
"env": "XANO_PROFILE",
|
|
955
|
-
"name": "profile",
|
|
954
|
+
"profile": {
|
|
955
|
+
"char": "p",
|
|
956
|
+
"description": "Profile to use for this command",
|
|
957
|
+
"env": "XANO_PROFILE",
|
|
958
|
+
"name": "profile",
|
|
956
959
|
"required": false,
|
|
957
960
|
"hasDynamicHelp": false,
|
|
958
961
|
"multiple": false,
|
|
@@ -981,6 +984,17 @@
|
|
|
981
984
|
"allowNo": false,
|
|
982
985
|
"type": "boolean"
|
|
983
986
|
},
|
|
987
|
+
"edit": {
|
|
988
|
+
"char": "e",
|
|
989
|
+
"dependsOn": [
|
|
990
|
+
"file"
|
|
991
|
+
],
|
|
992
|
+
"description": "Open file in editor before running (requires --file)",
|
|
993
|
+
"name": "edit",
|
|
994
|
+
"required": false,
|
|
995
|
+
"allowNo": false,
|
|
996
|
+
"type": "boolean"
|
|
997
|
+
},
|
|
984
998
|
"output": {
|
|
985
999
|
"char": "o",
|
|
986
1000
|
"description": "Output format",
|
|
@@ -994,11 +1008,28 @@
|
|
|
994
1008
|
"json"
|
|
995
1009
|
],
|
|
996
1010
|
"type": "option"
|
|
1011
|
+
},
|
|
1012
|
+
"args": {
|
|
1013
|
+
"char": "a",
|
|
1014
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
1015
|
+
"name": "args",
|
|
1016
|
+
"required": false,
|
|
1017
|
+
"hasDynamicHelp": false,
|
|
1018
|
+
"multiple": false,
|
|
1019
|
+
"type": "option"
|
|
1020
|
+
},
|
|
1021
|
+
"env": {
|
|
1022
|
+
"description": "Environment variable override (key=value)",
|
|
1023
|
+
"name": "env",
|
|
1024
|
+
"required": false,
|
|
1025
|
+
"hasDynamicHelp": false,
|
|
1026
|
+
"multiple": true,
|
|
1027
|
+
"type": "option"
|
|
997
1028
|
}
|
|
998
1029
|
},
|
|
999
1030
|
"hasDynamicHelp": false,
|
|
1000
1031
|
"hiddenAliases": [],
|
|
1001
|
-
"id": "run:
|
|
1032
|
+
"id": "run:exec",
|
|
1002
1033
|
"pluginAlias": "@xano/cli",
|
|
1003
1034
|
"pluginName": "@xano/cli",
|
|
1004
1035
|
"pluginType": "core",
|
|
@@ -1008,21 +1039,18 @@
|
|
|
1008
1039
|
"dist",
|
|
1009
1040
|
"commands",
|
|
1010
1041
|
"run",
|
|
1011
|
-
"
|
|
1042
|
+
"exec",
|
|
1012
1043
|
"index.js"
|
|
1013
1044
|
]
|
|
1014
1045
|
},
|
|
1015
|
-
"run:
|
|
1046
|
+
"run:info": {
|
|
1016
1047
|
"aliases": [],
|
|
1017
1048
|
"args": {},
|
|
1018
|
-
"description": "
|
|
1049
|
+
"description": "Get information about a XanoScript document (type, inputs, env vars)",
|
|
1019
1050
|
"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"
|
|
1051
|
+
"$ 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",
|
|
1052
|
+
"$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
|
|
1053
|
+
"$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
|
|
1026
1054
|
],
|
|
1027
1055
|
"flags": {
|
|
1028
1056
|
"profile": {
|
|
@@ -1058,17 +1086,6 @@
|
|
|
1058
1086
|
"allowNo": false,
|
|
1059
1087
|
"type": "boolean"
|
|
1060
1088
|
},
|
|
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
1089
|
"output": {
|
|
1073
1090
|
"char": "o",
|
|
1074
1091
|
"description": "Output format",
|
|
@@ -1082,28 +1099,11 @@
|
|
|
1082
1099
|
"json"
|
|
1083
1100
|
],
|
|
1084
1101
|
"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
1102
|
}
|
|
1103
1103
|
},
|
|
1104
1104
|
"hasDynamicHelp": false,
|
|
1105
1105
|
"hiddenAliases": [],
|
|
1106
|
-
"id": "run:
|
|
1106
|
+
"id": "run:info",
|
|
1107
1107
|
"pluginAlias": "@xano/cli",
|
|
1108
1108
|
"pluginName": "@xano/cli",
|
|
1109
1109
|
"pluginType": "core",
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
"dist",
|
|
1114
1114
|
"commands",
|
|
1115
1115
|
"run",
|
|
1116
|
-
"
|
|
1116
|
+
"info",
|
|
1117
1117
|
"index.js"
|
|
1118
1118
|
]
|
|
1119
1119
|
},
|
|
@@ -1301,19 +1301,20 @@
|
|
|
1301
1301
|
"index.js"
|
|
1302
1302
|
]
|
|
1303
1303
|
},
|
|
1304
|
-
"
|
|
1304
|
+
"workspace:pull": {
|
|
1305
1305
|
"aliases": [],
|
|
1306
1306
|
"args": {
|
|
1307
|
-
"
|
|
1308
|
-
"description": "
|
|
1309
|
-
"name": "
|
|
1307
|
+
"directory": {
|
|
1308
|
+
"description": "Output directory for pulled documents",
|
|
1309
|
+
"name": "directory",
|
|
1310
1310
|
"required": true
|
|
1311
1311
|
}
|
|
1312
1312
|
},
|
|
1313
|
-
"description": "
|
|
1313
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
1314
1314
|
"examples": [
|
|
1315
|
-
"$ xano
|
|
1316
|
-
"$ xano
|
|
1315
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
1316
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
1317
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
|
|
1317
1318
|
],
|
|
1318
1319
|
"flags": {
|
|
1319
1320
|
"profile": {
|
|
@@ -1326,45 +1327,113 @@
|
|
|
1326
1327
|
"multiple": false,
|
|
1327
1328
|
"type": "option"
|
|
1328
1329
|
},
|
|
1329
|
-
"
|
|
1330
|
-
"char": "
|
|
1331
|
-
"description": "
|
|
1332
|
-
"name": "
|
|
1330
|
+
"workspace": {
|
|
1331
|
+
"char": "w",
|
|
1332
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1333
|
+
"name": "workspace",
|
|
1333
1334
|
"required": false,
|
|
1334
|
-
"default": "value",
|
|
1335
1335
|
"hasDynamicHelp": false,
|
|
1336
1336
|
"multiple": false,
|
|
1337
|
-
"options": [
|
|
1338
|
-
"value",
|
|
1339
|
-
"json"
|
|
1340
|
-
],
|
|
1341
1337
|
"type": "option"
|
|
1338
|
+
},
|
|
1339
|
+
"env": {
|
|
1340
|
+
"description": "Include environment variables",
|
|
1341
|
+
"name": "env",
|
|
1342
|
+
"required": false,
|
|
1343
|
+
"allowNo": false,
|
|
1344
|
+
"type": "boolean"
|
|
1345
|
+
},
|
|
1346
|
+
"records": {
|
|
1347
|
+
"description": "Include records",
|
|
1348
|
+
"name": "records",
|
|
1349
|
+
"required": false,
|
|
1350
|
+
"allowNo": false,
|
|
1351
|
+
"type": "boolean"
|
|
1342
1352
|
}
|
|
1343
1353
|
},
|
|
1344
1354
|
"hasDynamicHelp": false,
|
|
1345
1355
|
"hiddenAliases": [],
|
|
1346
|
-
"id": "
|
|
1356
|
+
"id": "workspace:pull",
|
|
1347
1357
|
"pluginAlias": "@xano/cli",
|
|
1348
1358
|
"pluginName": "@xano/cli",
|
|
1349
1359
|
"pluginType": "core",
|
|
1350
1360
|
"strict": true,
|
|
1361
|
+
"enableJsonFlag": false,
|
|
1351
1362
|
"isESM": true,
|
|
1352
1363
|
"relativePath": [
|
|
1353
1364
|
"dist",
|
|
1354
1365
|
"commands",
|
|
1355
|
-
"
|
|
1356
|
-
"
|
|
1357
|
-
"get",
|
|
1366
|
+
"workspace",
|
|
1367
|
+
"pull",
|
|
1358
1368
|
"index.js"
|
|
1359
1369
|
]
|
|
1360
1370
|
},
|
|
1361
|
-
"
|
|
1371
|
+
"workspace:push": {
|
|
1362
1372
|
"aliases": [],
|
|
1363
|
-
"args": {
|
|
1364
|
-
|
|
1373
|
+
"args": {
|
|
1374
|
+
"directory": {
|
|
1375
|
+
"description": "Directory containing documents to push (as produced by workspace pull)",
|
|
1376
|
+
"name": "directory",
|
|
1377
|
+
"required": true
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
"description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
|
|
1365
1381
|
"examples": [
|
|
1366
|
-
"$ xano
|
|
1367
|
-
"$ xano
|
|
1382
|
+
"$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
|
|
1383
|
+
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
1384
|
+
"$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
|
|
1385
|
+
],
|
|
1386
|
+
"flags": {
|
|
1387
|
+
"profile": {
|
|
1388
|
+
"char": "p",
|
|
1389
|
+
"description": "Profile to use for this command",
|
|
1390
|
+
"env": "XANO_PROFILE",
|
|
1391
|
+
"name": "profile",
|
|
1392
|
+
"required": false,
|
|
1393
|
+
"hasDynamicHelp": false,
|
|
1394
|
+
"multiple": false,
|
|
1395
|
+
"type": "option"
|
|
1396
|
+
},
|
|
1397
|
+
"workspace": {
|
|
1398
|
+
"char": "w",
|
|
1399
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1400
|
+
"name": "workspace",
|
|
1401
|
+
"required": false,
|
|
1402
|
+
"hasDynamicHelp": false,
|
|
1403
|
+
"multiple": false,
|
|
1404
|
+
"type": "option"
|
|
1405
|
+
}
|
|
1406
|
+
},
|
|
1407
|
+
"hasDynamicHelp": false,
|
|
1408
|
+
"hiddenAliases": [],
|
|
1409
|
+
"id": "workspace:push",
|
|
1410
|
+
"pluginAlias": "@xano/cli",
|
|
1411
|
+
"pluginName": "@xano/cli",
|
|
1412
|
+
"pluginType": "core",
|
|
1413
|
+
"strict": true,
|
|
1414
|
+
"enableJsonFlag": false,
|
|
1415
|
+
"isESM": true,
|
|
1416
|
+
"relativePath": [
|
|
1417
|
+
"dist",
|
|
1418
|
+
"commands",
|
|
1419
|
+
"workspace",
|
|
1420
|
+
"push",
|
|
1421
|
+
"index.js"
|
|
1422
|
+
]
|
|
1423
|
+
},
|
|
1424
|
+
"run:env:get": {
|
|
1425
|
+
"aliases": [],
|
|
1426
|
+
"args": {
|
|
1427
|
+
"name": {
|
|
1428
|
+
"description": "Environment variable name",
|
|
1429
|
+
"name": "name",
|
|
1430
|
+
"required": true
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"description": "Get an environment variable value",
|
|
1434
|
+
"examples": [
|
|
1435
|
+
"$ xano run env get API_KEY\nmy-secret-api-key\n",
|
|
1436
|
+
"$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
|
|
1368
1437
|
],
|
|
1369
1438
|
"flags": {
|
|
1370
1439
|
"profile": {
|
|
@@ -1382,11 +1451,11 @@
|
|
|
1382
1451
|
"description": "Output format",
|
|
1383
1452
|
"name": "output",
|
|
1384
1453
|
"required": false,
|
|
1385
|
-
"default": "
|
|
1454
|
+
"default": "value",
|
|
1386
1455
|
"hasDynamicHelp": false,
|
|
1387
1456
|
"multiple": false,
|
|
1388
1457
|
"options": [
|
|
1389
|
-
"
|
|
1458
|
+
"value",
|
|
1390
1459
|
"json"
|
|
1391
1460
|
],
|
|
1392
1461
|
"type": "option"
|
|
@@ -1394,7 +1463,7 @@
|
|
|
1394
1463
|
},
|
|
1395
1464
|
"hasDynamicHelp": false,
|
|
1396
1465
|
"hiddenAliases": [],
|
|
1397
|
-
"id": "run:env:
|
|
1466
|
+
"id": "run:env:get",
|
|
1398
1467
|
"pluginAlias": "@xano/cli",
|
|
1399
1468
|
"pluginName": "@xano/cli",
|
|
1400
1469
|
"pluginType": "core",
|
|
@@ -1405,28 +1474,17 @@
|
|
|
1405
1474
|
"commands",
|
|
1406
1475
|
"run",
|
|
1407
1476
|
"env",
|
|
1408
|
-
"
|
|
1477
|
+
"get",
|
|
1409
1478
|
"index.js"
|
|
1410
1479
|
]
|
|
1411
1480
|
},
|
|
1412
|
-
"run:env:
|
|
1481
|
+
"run:env:list": {
|
|
1413
1482
|
"aliases": [],
|
|
1414
|
-
"args": {
|
|
1415
|
-
|
|
1416
|
-
"description": "Environment variable name",
|
|
1417
|
-
"name": "name",
|
|
1418
|
-
"required": true
|
|
1419
|
-
},
|
|
1420
|
-
"value": {
|
|
1421
|
-
"description": "Environment variable value",
|
|
1422
|
-
"name": "value",
|
|
1423
|
-
"required": true
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
"description": "Set an environment variable",
|
|
1483
|
+
"args": {},
|
|
1484
|
+
"description": "List all environment variable keys",
|
|
1427
1485
|
"examples": [
|
|
1428
|
-
"$ xano run env
|
|
1429
|
-
"$ xano run env
|
|
1486
|
+
"$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
|
|
1487
|
+
"$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
|
|
1430
1488
|
],
|
|
1431
1489
|
"flags": {
|
|
1432
1490
|
"profile": {
|
|
@@ -1438,11 +1496,25 @@
|
|
|
1438
1496
|
"hasDynamicHelp": false,
|
|
1439
1497
|
"multiple": false,
|
|
1440
1498
|
"type": "option"
|
|
1499
|
+
},
|
|
1500
|
+
"output": {
|
|
1501
|
+
"char": "o",
|
|
1502
|
+
"description": "Output format",
|
|
1503
|
+
"name": "output",
|
|
1504
|
+
"required": false,
|
|
1505
|
+
"default": "list",
|
|
1506
|
+
"hasDynamicHelp": false,
|
|
1507
|
+
"multiple": false,
|
|
1508
|
+
"options": [
|
|
1509
|
+
"list",
|
|
1510
|
+
"json"
|
|
1511
|
+
],
|
|
1512
|
+
"type": "option"
|
|
1441
1513
|
}
|
|
1442
1514
|
},
|
|
1443
1515
|
"hasDynamicHelp": false,
|
|
1444
1516
|
"hiddenAliases": [],
|
|
1445
|
-
"id": "run:env:
|
|
1517
|
+
"id": "run:env:list",
|
|
1446
1518
|
"pluginAlias": "@xano/cli",
|
|
1447
1519
|
"pluginName": "@xano/cli",
|
|
1448
1520
|
"pluginType": "core",
|
|
@@ -1453,7 +1525,7 @@
|
|
|
1453
1525
|
"commands",
|
|
1454
1526
|
"run",
|
|
1455
1527
|
"env",
|
|
1456
|
-
"
|
|
1528
|
+
"list",
|
|
1457
1529
|
"index.js"
|
|
1458
1530
|
]
|
|
1459
1531
|
},
|
|
@@ -1579,6 +1651,54 @@
|
|
|
1579
1651
|
"index.js"
|
|
1580
1652
|
]
|
|
1581
1653
|
},
|
|
1654
|
+
"run:env:set": {
|
|
1655
|
+
"aliases": [],
|
|
1656
|
+
"args": {
|
|
1657
|
+
"name": {
|
|
1658
|
+
"description": "Environment variable name",
|
|
1659
|
+
"name": "name",
|
|
1660
|
+
"required": true
|
|
1661
|
+
},
|
|
1662
|
+
"value": {
|
|
1663
|
+
"description": "Environment variable value",
|
|
1664
|
+
"name": "value",
|
|
1665
|
+
"required": true
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
"description": "Set an environment variable",
|
|
1669
|
+
"examples": [
|
|
1670
|
+
"$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
|
|
1671
|
+
"$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
|
|
1672
|
+
],
|
|
1673
|
+
"flags": {
|
|
1674
|
+
"profile": {
|
|
1675
|
+
"char": "p",
|
|
1676
|
+
"description": "Profile to use for this command",
|
|
1677
|
+
"env": "XANO_PROFILE",
|
|
1678
|
+
"name": "profile",
|
|
1679
|
+
"required": false,
|
|
1680
|
+
"hasDynamicHelp": false,
|
|
1681
|
+
"multiple": false,
|
|
1682
|
+
"type": "option"
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"hasDynamicHelp": false,
|
|
1686
|
+
"hiddenAliases": [],
|
|
1687
|
+
"id": "run:env:set",
|
|
1688
|
+
"pluginAlias": "@xano/cli",
|
|
1689
|
+
"pluginName": "@xano/cli",
|
|
1690
|
+
"pluginType": "core",
|
|
1691
|
+
"strict": true,
|
|
1692
|
+
"isESM": true,
|
|
1693
|
+
"relativePath": [
|
|
1694
|
+
"dist",
|
|
1695
|
+
"commands",
|
|
1696
|
+
"run",
|
|
1697
|
+
"env",
|
|
1698
|
+
"set",
|
|
1699
|
+
"index.js"
|
|
1700
|
+
]
|
|
1701
|
+
},
|
|
1582
1702
|
"run:projects:list": {
|
|
1583
1703
|
"aliases": [],
|
|
1584
1704
|
"args": {},
|
|
@@ -1757,7 +1877,7 @@
|
|
|
1757
1877
|
"index.js"
|
|
1758
1878
|
]
|
|
1759
1879
|
},
|
|
1760
|
-
"run:secrets:
|
|
1880
|
+
"run:secrets:get": {
|
|
1761
1881
|
"aliases": [],
|
|
1762
1882
|
"args": {
|
|
1763
1883
|
"name": {
|
|
@@ -1766,10 +1886,10 @@
|
|
|
1766
1886
|
"required": true
|
|
1767
1887
|
}
|
|
1768
1888
|
},
|
|
1769
|
-
"description": "
|
|
1889
|
+
"description": "Get a secret value",
|
|
1770
1890
|
"examples": [
|
|
1771
|
-
"$ xano run secrets
|
|
1772
|
-
"$ xano run secrets
|
|
1891
|
+
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
1892
|
+
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
1773
1893
|
],
|
|
1774
1894
|
"flags": {
|
|
1775
1895
|
"profile": {
|
|
@@ -1782,41 +1902,24 @@
|
|
|
1782
1902
|
"multiple": false,
|
|
1783
1903
|
"type": "option"
|
|
1784
1904
|
},
|
|
1785
|
-
"
|
|
1786
|
-
"char": "
|
|
1787
|
-
"description": "
|
|
1788
|
-
"name": "
|
|
1789
|
-
"required":
|
|
1905
|
+
"output": {
|
|
1906
|
+
"char": "o",
|
|
1907
|
+
"description": "Output format",
|
|
1908
|
+
"name": "output",
|
|
1909
|
+
"required": false,
|
|
1910
|
+
"default": "value",
|
|
1790
1911
|
"hasDynamicHelp": false,
|
|
1791
1912
|
"multiple": false,
|
|
1792
1913
|
"options": [
|
|
1793
|
-
"
|
|
1794
|
-
"
|
|
1914
|
+
"value",
|
|
1915
|
+
"json"
|
|
1795
1916
|
],
|
|
1796
1917
|
"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",
|
|
1811
|
-
"required": false,
|
|
1812
|
-
"hasDynamicHelp": false,
|
|
1813
|
-
"multiple": false,
|
|
1814
|
-
"type": "option"
|
|
1815
1918
|
}
|
|
1816
1919
|
},
|
|
1817
1920
|
"hasDynamicHelp": false,
|
|
1818
1921
|
"hiddenAliases": [],
|
|
1819
|
-
"id": "run:secrets:
|
|
1922
|
+
"id": "run:secrets:get",
|
|
1820
1923
|
"pluginAlias": "@xano/cli",
|
|
1821
1924
|
"pluginName": "@xano/cli",
|
|
1822
1925
|
"pluginType": "core",
|
|
@@ -1827,11 +1930,11 @@
|
|
|
1827
1930
|
"commands",
|
|
1828
1931
|
"run",
|
|
1829
1932
|
"secrets",
|
|
1830
|
-
"
|
|
1933
|
+
"get",
|
|
1831
1934
|
"index.js"
|
|
1832
1935
|
]
|
|
1833
1936
|
},
|
|
1834
|
-
"run:secrets:
|
|
1937
|
+
"run:secrets:set": {
|
|
1835
1938
|
"aliases": [],
|
|
1836
1939
|
"args": {
|
|
1837
1940
|
"name": {
|
|
@@ -1840,10 +1943,10 @@
|
|
|
1840
1943
|
"required": true
|
|
1841
1944
|
}
|
|
1842
1945
|
},
|
|
1843
|
-
"description": "
|
|
1946
|
+
"description": "Set a secret",
|
|
1844
1947
|
"examples": [
|
|
1845
|
-
"$ xano run secrets
|
|
1846
|
-
"$ xano run secrets
|
|
1948
|
+
"$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
|
|
1949
|
+
"$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
|
|
1847
1950
|
],
|
|
1848
1951
|
"flags": {
|
|
1849
1952
|
"profile": {
|
|
@@ -1856,24 +1959,41 @@
|
|
|
1856
1959
|
"multiple": false,
|
|
1857
1960
|
"type": "option"
|
|
1858
1961
|
},
|
|
1859
|
-
"
|
|
1860
|
-
"char": "
|
|
1861
|
-
"description": "
|
|
1862
|
-
"name": "
|
|
1863
|
-
"required":
|
|
1864
|
-
"default": "value",
|
|
1962
|
+
"type": {
|
|
1963
|
+
"char": "t",
|
|
1964
|
+
"description": "Secret type",
|
|
1965
|
+
"name": "type",
|
|
1966
|
+
"required": true,
|
|
1865
1967
|
"hasDynamicHelp": false,
|
|
1866
1968
|
"multiple": false,
|
|
1867
1969
|
"options": [
|
|
1868
|
-
"
|
|
1869
|
-
"
|
|
1970
|
+
"dockerconfigjson",
|
|
1971
|
+
"service-account-token"
|
|
1870
1972
|
],
|
|
1871
1973
|
"type": "option"
|
|
1974
|
+
},
|
|
1975
|
+
"value": {
|
|
1976
|
+
"char": "v",
|
|
1977
|
+
"description": "Secret value",
|
|
1978
|
+
"name": "value",
|
|
1979
|
+
"required": true,
|
|
1980
|
+
"hasDynamicHelp": false,
|
|
1981
|
+
"multiple": false,
|
|
1982
|
+
"type": "option"
|
|
1983
|
+
},
|
|
1984
|
+
"repo": {
|
|
1985
|
+
"char": "r",
|
|
1986
|
+
"description": "Repository (for dockerconfigjson type)",
|
|
1987
|
+
"name": "repo",
|
|
1988
|
+
"required": false,
|
|
1989
|
+
"hasDynamicHelp": false,
|
|
1990
|
+
"multiple": false,
|
|
1991
|
+
"type": "option"
|
|
1872
1992
|
}
|
|
1873
1993
|
},
|
|
1874
1994
|
"hasDynamicHelp": false,
|
|
1875
1995
|
"hiddenAliases": [],
|
|
1876
|
-
"id": "run:secrets:
|
|
1996
|
+
"id": "run:secrets:set",
|
|
1877
1997
|
"pluginAlias": "@xano/cli",
|
|
1878
1998
|
"pluginName": "@xano/cli",
|
|
1879
1999
|
"pluginType": "core",
|
|
@@ -1884,7 +2004,7 @@
|
|
|
1884
2004
|
"commands",
|
|
1885
2005
|
"run",
|
|
1886
2006
|
"secrets",
|
|
1887
|
-
"
|
|
2007
|
+
"set",
|
|
1888
2008
|
"index.js"
|
|
1889
2009
|
]
|
|
1890
2010
|
},
|
|
@@ -1939,7 +2059,7 @@
|
|
|
1939
2059
|
"index.js"
|
|
1940
2060
|
]
|
|
1941
2061
|
},
|
|
1942
|
-
"run:
|
|
2062
|
+
"run:sessions:delete": {
|
|
1943
2063
|
"aliases": [],
|
|
1944
2064
|
"args": {
|
|
1945
2065
|
"sessionId": {
|
|
@@ -1948,10 +2068,10 @@
|
|
|
1948
2068
|
"required": true
|
|
1949
2069
|
}
|
|
1950
2070
|
},
|
|
1951
|
-
"description": "
|
|
2071
|
+
"description": "Delete a session",
|
|
1952
2072
|
"examples": [
|
|
1953
|
-
"$ xano run
|
|
1954
|
-
"$ xano run
|
|
2073
|
+
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
2074
|
+
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
1955
2075
|
],
|
|
1956
2076
|
"flags": {
|
|
1957
2077
|
"profile": {
|
|
@@ -1964,24 +2084,18 @@
|
|
|
1964
2084
|
"multiple": false,
|
|
1965
2085
|
"type": "option"
|
|
1966
2086
|
},
|
|
1967
|
-
"
|
|
1968
|
-
"char": "
|
|
1969
|
-
"description": "
|
|
1970
|
-
"name": "
|
|
2087
|
+
"force": {
|
|
2088
|
+
"char": "f",
|
|
2089
|
+
"description": "Skip confirmation prompt",
|
|
2090
|
+
"name": "force",
|
|
1971
2091
|
"required": false,
|
|
1972
|
-
"
|
|
1973
|
-
"
|
|
1974
|
-
"multiple": false,
|
|
1975
|
-
"options": [
|
|
1976
|
-
"summary",
|
|
1977
|
-
"json"
|
|
1978
|
-
],
|
|
1979
|
-
"type": "option"
|
|
2092
|
+
"allowNo": false,
|
|
2093
|
+
"type": "boolean"
|
|
1980
2094
|
}
|
|
1981
2095
|
},
|
|
1982
2096
|
"hasDynamicHelp": false,
|
|
1983
2097
|
"hiddenAliases": [],
|
|
1984
|
-
"id": "run:
|
|
2098
|
+
"id": "run:sessions:delete",
|
|
1985
2099
|
"pluginAlias": "@xano/cli",
|
|
1986
2100
|
"pluginName": "@xano/cli",
|
|
1987
2101
|
"pluginType": "core",
|
|
@@ -1991,12 +2105,12 @@
|
|
|
1991
2105
|
"dist",
|
|
1992
2106
|
"commands",
|
|
1993
2107
|
"run",
|
|
1994
|
-
"
|
|
1995
|
-
"
|
|
2108
|
+
"sessions",
|
|
2109
|
+
"delete",
|
|
1996
2110
|
"index.js"
|
|
1997
2111
|
]
|
|
1998
2112
|
},
|
|
1999
|
-
"run:sessions:
|
|
2113
|
+
"run:sessions:start": {
|
|
2000
2114
|
"aliases": [],
|
|
2001
2115
|
"args": {
|
|
2002
2116
|
"sessionId": {
|
|
@@ -2005,10 +2119,10 @@
|
|
|
2005
2119
|
"required": true
|
|
2006
2120
|
}
|
|
2007
2121
|
},
|
|
2008
|
-
"description": "
|
|
2122
|
+
"description": "Start a session",
|
|
2009
2123
|
"examples": [
|
|
2010
|
-
"$ xano run sessions
|
|
2011
|
-
"$ xano run sessions
|
|
2124
|
+
"$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
|
|
2125
|
+
"$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
|
|
2012
2126
|
],
|
|
2013
2127
|
"flags": {
|
|
2014
2128
|
"profile": {
|
|
@@ -2038,58 +2152,7 @@
|
|
|
2038
2152
|
},
|
|
2039
2153
|
"hasDynamicHelp": false,
|
|
2040
2154
|
"hiddenAliases": [],
|
|
2041
|
-
"id": "run:sessions:
|
|
2042
|
-
"pluginAlias": "@xano/cli",
|
|
2043
|
-
"pluginName": "@xano/cli",
|
|
2044
|
-
"pluginType": "core",
|
|
2045
|
-
"strict": true,
|
|
2046
|
-
"isESM": true,
|
|
2047
|
-
"relativePath": [
|
|
2048
|
-
"dist",
|
|
2049
|
-
"commands",
|
|
2050
|
-
"run",
|
|
2051
|
-
"sessions",
|
|
2052
|
-
"get",
|
|
2053
|
-
"index.js"
|
|
2054
|
-
]
|
|
2055
|
-
},
|
|
2056
|
-
"run:sessions:delete": {
|
|
2057
|
-
"aliases": [],
|
|
2058
|
-
"args": {
|
|
2059
|
-
"sessionId": {
|
|
2060
|
-
"description": "Session ID",
|
|
2061
|
-
"name": "sessionId",
|
|
2062
|
-
"required": true
|
|
2063
|
-
}
|
|
2064
|
-
},
|
|
2065
|
-
"description": "Delete a session",
|
|
2066
|
-
"examples": [
|
|
2067
|
-
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
2068
|
-
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
2069
|
-
],
|
|
2070
|
-
"flags": {
|
|
2071
|
-
"profile": {
|
|
2072
|
-
"char": "p",
|
|
2073
|
-
"description": "Profile to use for this command",
|
|
2074
|
-
"env": "XANO_PROFILE",
|
|
2075
|
-
"name": "profile",
|
|
2076
|
-
"required": false,
|
|
2077
|
-
"hasDynamicHelp": false,
|
|
2078
|
-
"multiple": false,
|
|
2079
|
-
"type": "option"
|
|
2080
|
-
},
|
|
2081
|
-
"force": {
|
|
2082
|
-
"char": "f",
|
|
2083
|
-
"description": "Skip confirmation prompt",
|
|
2084
|
-
"name": "force",
|
|
2085
|
-
"required": false,
|
|
2086
|
-
"allowNo": false,
|
|
2087
|
-
"type": "boolean"
|
|
2088
|
-
}
|
|
2089
|
-
},
|
|
2090
|
-
"hasDynamicHelp": false,
|
|
2091
|
-
"hiddenAliases": [],
|
|
2092
|
-
"id": "run:sessions:delete",
|
|
2155
|
+
"id": "run:sessions:start",
|
|
2093
2156
|
"pluginAlias": "@xano/cli",
|
|
2094
2157
|
"pluginName": "@xano/cli",
|
|
2095
2158
|
"pluginType": "core",
|
|
@@ -2100,7 +2163,7 @@
|
|
|
2100
2163
|
"commands",
|
|
2101
2164
|
"run",
|
|
2102
2165
|
"sessions",
|
|
2103
|
-
"
|
|
2166
|
+
"start",
|
|
2104
2167
|
"index.js"
|
|
2105
2168
|
]
|
|
2106
2169
|
},
|
|
@@ -2155,7 +2218,7 @@
|
|
|
2155
2218
|
"index.js"
|
|
2156
2219
|
]
|
|
2157
2220
|
},
|
|
2158
|
-
"run:sessions:
|
|
2221
|
+
"run:sessions:get": {
|
|
2159
2222
|
"aliases": [],
|
|
2160
2223
|
"args": {
|
|
2161
2224
|
"sessionId": {
|
|
@@ -2164,10 +2227,10 @@
|
|
|
2164
2227
|
"required": true
|
|
2165
2228
|
}
|
|
2166
2229
|
},
|
|
2167
|
-
"description": "
|
|
2230
|
+
"description": "Get session details",
|
|
2168
2231
|
"examples": [
|
|
2169
|
-
"$ xano run sessions
|
|
2170
|
-
"$ xano run sessions
|
|
2232
|
+
"$ 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",
|
|
2233
|
+
"$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
|
|
2171
2234
|
],
|
|
2172
2235
|
"flags": {
|
|
2173
2236
|
"profile": {
|
|
@@ -2197,7 +2260,7 @@
|
|
|
2197
2260
|
},
|
|
2198
2261
|
"hasDynamicHelp": false,
|
|
2199
2262
|
"hiddenAliases": [],
|
|
2200
|
-
"id": "run:sessions:
|
|
2263
|
+
"id": "run:sessions:get",
|
|
2201
2264
|
"pluginAlias": "@xano/cli",
|
|
2202
2265
|
"pluginName": "@xano/cli",
|
|
2203
2266
|
"pluginType": "core",
|
|
@@ -2208,7 +2271,7 @@
|
|
|
2208
2271
|
"commands",
|
|
2209
2272
|
"run",
|
|
2210
2273
|
"sessions",
|
|
2211
|
-
"
|
|
2274
|
+
"get",
|
|
2212
2275
|
"index.js"
|
|
2213
2276
|
]
|
|
2214
2277
|
},
|
|
@@ -2269,26 +2332,19 @@
|
|
|
2269
2332
|
"index.js"
|
|
2270
2333
|
]
|
|
2271
2334
|
},
|
|
2272
|
-
"
|
|
2335
|
+
"run:sink:get": {
|
|
2273
2336
|
"aliases": [],
|
|
2274
2337
|
"args": {
|
|
2275
|
-
"
|
|
2276
|
-
"description": "
|
|
2277
|
-
"name": "
|
|
2278
|
-
"required": true
|
|
2279
|
-
},
|
|
2280
|
-
"build_id": {
|
|
2281
|
-
"description": "Build ID",
|
|
2282
|
-
"name": "build_id",
|
|
2338
|
+
"sessionId": {
|
|
2339
|
+
"description": "Session ID",
|
|
2340
|
+
"name": "sessionId",
|
|
2283
2341
|
"required": true
|
|
2284
2342
|
}
|
|
2285
2343
|
},
|
|
2286
|
-
"description": "Get
|
|
2344
|
+
"description": "Get sink data for a completed session",
|
|
2287
2345
|
"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"
|
|
2346
|
+
"$ 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",
|
|
2347
|
+
"$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
|
|
2292
2348
|
],
|
|
2293
2349
|
"flags": {
|
|
2294
2350
|
"profile": {
|
|
@@ -2301,15 +2357,6 @@
|
|
|
2301
2357
|
"multiple": false,
|
|
2302
2358
|
"type": "option"
|
|
2303
2359
|
},
|
|
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
2360
|
"output": {
|
|
2314
2361
|
"char": "o",
|
|
2315
2362
|
"description": "Output format",
|
|
@@ -2327,18 +2374,17 @@
|
|
|
2327
2374
|
},
|
|
2328
2375
|
"hasDynamicHelp": false,
|
|
2329
2376
|
"hiddenAliases": [],
|
|
2330
|
-
"id": "
|
|
2377
|
+
"id": "run:sink:get",
|
|
2331
2378
|
"pluginAlias": "@xano/cli",
|
|
2332
2379
|
"pluginName": "@xano/cli",
|
|
2333
2380
|
"pluginType": "core",
|
|
2334
2381
|
"strict": true,
|
|
2335
|
-
"enableJsonFlag": false,
|
|
2336
2382
|
"isESM": true,
|
|
2337
2383
|
"relativePath": [
|
|
2338
2384
|
"dist",
|
|
2339
2385
|
"commands",
|
|
2340
|
-
"
|
|
2341
|
-
"
|
|
2386
|
+
"run",
|
|
2387
|
+
"sink",
|
|
2342
2388
|
"get",
|
|
2343
2389
|
"index.js"
|
|
2344
2390
|
]
|
|
@@ -2438,6 +2484,80 @@
|
|
|
2438
2484
|
"index.js"
|
|
2439
2485
|
]
|
|
2440
2486
|
},
|
|
2487
|
+
"static_host:build:get": {
|
|
2488
|
+
"aliases": [],
|
|
2489
|
+
"args": {
|
|
2490
|
+
"static_host": {
|
|
2491
|
+
"description": "Static Host name",
|
|
2492
|
+
"name": "static_host",
|
|
2493
|
+
"required": true
|
|
2494
|
+
},
|
|
2495
|
+
"build_id": {
|
|
2496
|
+
"description": "Build ID",
|
|
2497
|
+
"name": "build_id",
|
|
2498
|
+
"required": true
|
|
2499
|
+
}
|
|
2500
|
+
},
|
|
2501
|
+
"description": "Get details of a specific build for a static host",
|
|
2502
|
+
"examples": [
|
|
2503
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
2504
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
2505
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
2506
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
2507
|
+
],
|
|
2508
|
+
"flags": {
|
|
2509
|
+
"profile": {
|
|
2510
|
+
"char": "p",
|
|
2511
|
+
"description": "Profile to use for this command",
|
|
2512
|
+
"env": "XANO_PROFILE",
|
|
2513
|
+
"name": "profile",
|
|
2514
|
+
"required": false,
|
|
2515
|
+
"hasDynamicHelp": false,
|
|
2516
|
+
"multiple": false,
|
|
2517
|
+
"type": "option"
|
|
2518
|
+
},
|
|
2519
|
+
"workspace": {
|
|
2520
|
+
"char": "w",
|
|
2521
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2522
|
+
"name": "workspace",
|
|
2523
|
+
"required": false,
|
|
2524
|
+
"hasDynamicHelp": false,
|
|
2525
|
+
"multiple": false,
|
|
2526
|
+
"type": "option"
|
|
2527
|
+
},
|
|
2528
|
+
"output": {
|
|
2529
|
+
"char": "o",
|
|
2530
|
+
"description": "Output format",
|
|
2531
|
+
"name": "output",
|
|
2532
|
+
"required": false,
|
|
2533
|
+
"default": "summary",
|
|
2534
|
+
"hasDynamicHelp": false,
|
|
2535
|
+
"multiple": false,
|
|
2536
|
+
"options": [
|
|
2537
|
+
"summary",
|
|
2538
|
+
"json"
|
|
2539
|
+
],
|
|
2540
|
+
"type": "option"
|
|
2541
|
+
}
|
|
2542
|
+
},
|
|
2543
|
+
"hasDynamicHelp": false,
|
|
2544
|
+
"hiddenAliases": [],
|
|
2545
|
+
"id": "static_host:build:get",
|
|
2546
|
+
"pluginAlias": "@xano/cli",
|
|
2547
|
+
"pluginName": "@xano/cli",
|
|
2548
|
+
"pluginType": "core",
|
|
2549
|
+
"strict": true,
|
|
2550
|
+
"enableJsonFlag": false,
|
|
2551
|
+
"isESM": true,
|
|
2552
|
+
"relativePath": [
|
|
2553
|
+
"dist",
|
|
2554
|
+
"commands",
|
|
2555
|
+
"static_host",
|
|
2556
|
+
"build",
|
|
2557
|
+
"get",
|
|
2558
|
+
"index.js"
|
|
2559
|
+
]
|
|
2560
|
+
},
|
|
2441
2561
|
"static_host:build:list": {
|
|
2442
2562
|
"aliases": [],
|
|
2443
2563
|
"args": {
|
|
@@ -2526,5 +2646,5 @@
|
|
|
2526
2646
|
]
|
|
2527
2647
|
}
|
|
2528
2648
|
},
|
|
2529
|
-
"version": "0.0.
|
|
2649
|
+
"version": "0.0.17"
|
|
2530
2650
|
}
|