@xano/cli 0.0.27 → 0.0.28
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/oclif.manifest.json
CHANGED
|
@@ -35,16 +35,14 @@
|
|
|
35
35
|
"index.js"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"branch:create": {
|
|
39
39
|
"aliases": [],
|
|
40
40
|
"args": {},
|
|
41
|
-
"description": "Create a new
|
|
41
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
42
42
|
"examples": [
|
|
43
|
-
"$ xano
|
|
44
|
-
"$ xano
|
|
45
|
-
"$ xano
|
|
46
|
-
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
47
|
-
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
43
|
+
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
44
|
+
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
45
|
+
"$ xano branch create --label staging --color \"#ebc346\" --output json\n{\n \"created_at\": \"2024-02-11T10:00:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
|
|
48
46
|
],
|
|
49
47
|
"flags": {
|
|
50
48
|
"profile": {
|
|
@@ -66,29 +64,33 @@
|
|
|
66
64
|
"allowNo": false,
|
|
67
65
|
"type": "boolean"
|
|
68
66
|
},
|
|
69
|
-
"
|
|
70
|
-
"char": "
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
],
|
|
74
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
75
|
-
"name": "edit",
|
|
67
|
+
"color": {
|
|
68
|
+
"char": "c",
|
|
69
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
70
|
+
"name": "color",
|
|
76
71
|
"required": false,
|
|
77
|
-
"
|
|
78
|
-
"
|
|
72
|
+
"hasDynamicHelp": false,
|
|
73
|
+
"multiple": false,
|
|
74
|
+
"type": "option"
|
|
79
75
|
},
|
|
80
|
-
"
|
|
81
|
-
"char": "
|
|
82
|
-
"description": "
|
|
83
|
-
"
|
|
84
|
-
"stdin"
|
|
85
|
-
],
|
|
86
|
-
"name": "file",
|
|
76
|
+
"description": {
|
|
77
|
+
"char": "d",
|
|
78
|
+
"description": "Description for the new branch",
|
|
79
|
+
"name": "description",
|
|
87
80
|
"required": false,
|
|
88
81
|
"hasDynamicHelp": false,
|
|
89
82
|
"multiple": false,
|
|
90
83
|
"type": "option"
|
|
91
84
|
},
|
|
85
|
+
"label": {
|
|
86
|
+
"char": "l",
|
|
87
|
+
"description": "Label for the new branch",
|
|
88
|
+
"name": "label",
|
|
89
|
+
"required": true,
|
|
90
|
+
"hasDynamicHelp": false,
|
|
91
|
+
"multiple": false,
|
|
92
|
+
"type": "option"
|
|
93
|
+
},
|
|
92
94
|
"output": {
|
|
93
95
|
"char": "o",
|
|
94
96
|
"description": "Output format",
|
|
@@ -103,20 +105,19 @@
|
|
|
103
105
|
],
|
|
104
106
|
"type": "option"
|
|
105
107
|
},
|
|
106
|
-
"
|
|
108
|
+
"source": {
|
|
107
109
|
"char": "s",
|
|
108
|
-
"description": "
|
|
109
|
-
"
|
|
110
|
-
"file"
|
|
111
|
-
],
|
|
112
|
-
"name": "stdin",
|
|
110
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
111
|
+
"name": "source",
|
|
113
112
|
"required": false,
|
|
114
|
-
"
|
|
115
|
-
"
|
|
113
|
+
"default": "v1",
|
|
114
|
+
"hasDynamicHelp": false,
|
|
115
|
+
"multiple": false,
|
|
116
|
+
"type": "option"
|
|
116
117
|
},
|
|
117
118
|
"workspace": {
|
|
118
119
|
"char": "w",
|
|
119
|
-
"description": "Workspace ID (
|
|
120
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
120
121
|
"name": "workspace",
|
|
121
122
|
"required": false,
|
|
122
123
|
"hasDynamicHelp": false,
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
},
|
|
127
128
|
"hasDynamicHelp": false,
|
|
128
129
|
"hiddenAliases": [],
|
|
129
|
-
"id": "
|
|
130
|
+
"id": "branch:create",
|
|
130
131
|
"pluginAlias": "@xano/cli",
|
|
131
132
|
"pluginName": "@xano/cli",
|
|
132
133
|
"pluginType": "core",
|
|
@@ -136,30 +137,25 @@
|
|
|
136
137
|
"relativePath": [
|
|
137
138
|
"dist",
|
|
138
139
|
"commands",
|
|
139
|
-
"
|
|
140
|
+
"branch",
|
|
140
141
|
"create",
|
|
141
142
|
"index.js"
|
|
142
143
|
]
|
|
143
144
|
},
|
|
144
|
-
"
|
|
145
|
+
"branch:delete": {
|
|
145
146
|
"aliases": [],
|
|
146
147
|
"args": {
|
|
147
|
-
"
|
|
148
|
-
"description": "
|
|
149
|
-
"name": "
|
|
150
|
-
"required":
|
|
148
|
+
"branch_label": {
|
|
149
|
+
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
150
|
+
"name": "branch_label",
|
|
151
|
+
"required": true
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
|
-
"description": "
|
|
154
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
154
155
|
"examples": [
|
|
155
|
-
"$ xano
|
|
156
|
-
"$ xano
|
|
157
|
-
"$ xano
|
|
158
|
-
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
159
|
-
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
160
|
-
"$ 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",
|
|
161
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
162
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
156
|
+
"$ xano branch delete feature-old\nAre you sure you want to delete branch 'feature-old'? This action cannot be undone. (y/N) y\nDeleted branch: feature-old\n",
|
|
157
|
+
"$ xano branch delete dev --force\nDeleted branch: dev\n",
|
|
158
|
+
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
163
159
|
],
|
|
164
160
|
"flags": {
|
|
165
161
|
"profile": {
|
|
@@ -181,26 +177,14 @@
|
|
|
181
177
|
"allowNo": false,
|
|
182
178
|
"type": "boolean"
|
|
183
179
|
},
|
|
184
|
-
"
|
|
185
|
-
"char": "
|
|
186
|
-
"description": "
|
|
187
|
-
"name": "
|
|
180
|
+
"force": {
|
|
181
|
+
"char": "f",
|
|
182
|
+
"description": "Skip confirmation prompt",
|
|
183
|
+
"name": "force",
|
|
188
184
|
"required": false,
|
|
189
185
|
"allowNo": false,
|
|
190
186
|
"type": "boolean"
|
|
191
187
|
},
|
|
192
|
-
"file": {
|
|
193
|
-
"char": "f",
|
|
194
|
-
"description": "Path to file containing XanoScript code",
|
|
195
|
-
"exclusive": [
|
|
196
|
-
"stdin"
|
|
197
|
-
],
|
|
198
|
-
"name": "file",
|
|
199
|
-
"required": false,
|
|
200
|
-
"hasDynamicHelp": false,
|
|
201
|
-
"multiple": false,
|
|
202
|
-
"type": "option"
|
|
203
|
-
},
|
|
204
188
|
"output": {
|
|
205
189
|
"char": "o",
|
|
206
190
|
"description": "Output format",
|
|
@@ -215,27 +199,9 @@
|
|
|
215
199
|
],
|
|
216
200
|
"type": "option"
|
|
217
201
|
},
|
|
218
|
-
"publish": {
|
|
219
|
-
"description": "Publish the function after editing",
|
|
220
|
-
"name": "publish",
|
|
221
|
-
"required": false,
|
|
222
|
-
"allowNo": false,
|
|
223
|
-
"type": "boolean"
|
|
224
|
-
},
|
|
225
|
-
"stdin": {
|
|
226
|
-
"char": "s",
|
|
227
|
-
"description": "Read XanoScript code from stdin",
|
|
228
|
-
"exclusive": [
|
|
229
|
-
"file"
|
|
230
|
-
],
|
|
231
|
-
"name": "stdin",
|
|
232
|
-
"required": false,
|
|
233
|
-
"allowNo": false,
|
|
234
|
-
"type": "boolean"
|
|
235
|
-
},
|
|
236
202
|
"workspace": {
|
|
237
203
|
"char": "w",
|
|
238
|
-
"description": "Workspace ID (
|
|
204
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
239
205
|
"name": "workspace",
|
|
240
206
|
"required": false,
|
|
241
207
|
"hasDynamicHelp": false,
|
|
@@ -245,7 +211,7 @@
|
|
|
245
211
|
},
|
|
246
212
|
"hasDynamicHelp": false,
|
|
247
213
|
"hiddenAliases": [],
|
|
248
|
-
"id": "
|
|
214
|
+
"id": "branch:delete",
|
|
249
215
|
"pluginAlias": "@xano/cli",
|
|
250
216
|
"pluginName": "@xano/cli",
|
|
251
217
|
"pluginType": "core",
|
|
@@ -255,28 +221,25 @@
|
|
|
255
221
|
"relativePath": [
|
|
256
222
|
"dist",
|
|
257
223
|
"commands",
|
|
258
|
-
"
|
|
259
|
-
"
|
|
224
|
+
"branch",
|
|
225
|
+
"delete",
|
|
260
226
|
"index.js"
|
|
261
227
|
]
|
|
262
228
|
},
|
|
263
|
-
"
|
|
229
|
+
"branch:edit": {
|
|
264
230
|
"aliases": [],
|
|
265
231
|
"args": {
|
|
266
|
-
"
|
|
267
|
-
"description": "
|
|
268
|
-
"name": "
|
|
269
|
-
"required":
|
|
232
|
+
"branch_label": {
|
|
233
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
234
|
+
"name": "branch_label",
|
|
235
|
+
"required": true
|
|
270
236
|
}
|
|
271
237
|
},
|
|
272
|
-
"description": "
|
|
238
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
273
239
|
"examples": [
|
|
274
|
-
"$ xano
|
|
275
|
-
"$ xano
|
|
276
|
-
"$ xano
|
|
277
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
278
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
279
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
240
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
241
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
242
|
+
"$ xano branch edit staging --description \"Staging environment\" -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false\n}\n"
|
|
280
243
|
],
|
|
281
244
|
"flags": {
|
|
282
245
|
"profile": {
|
|
@@ -298,19 +261,32 @@
|
|
|
298
261
|
"allowNo": false,
|
|
299
262
|
"type": "boolean"
|
|
300
263
|
},
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"
|
|
264
|
+
"color": {
|
|
265
|
+
"char": "c",
|
|
266
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
267
|
+
"name": "color",
|
|
304
268
|
"required": false,
|
|
305
|
-
"
|
|
306
|
-
"
|
|
269
|
+
"hasDynamicHelp": false,
|
|
270
|
+
"multiple": false,
|
|
271
|
+
"type": "option"
|
|
307
272
|
},
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
"
|
|
273
|
+
"description": {
|
|
274
|
+
"char": "d",
|
|
275
|
+
"description": "New description for the branch",
|
|
276
|
+
"name": "description",
|
|
311
277
|
"required": false,
|
|
312
|
-
"
|
|
313
|
-
"
|
|
278
|
+
"hasDynamicHelp": false,
|
|
279
|
+
"multiple": false,
|
|
280
|
+
"type": "option"
|
|
281
|
+
},
|
|
282
|
+
"label": {
|
|
283
|
+
"char": "l",
|
|
284
|
+
"description": "New label for the branch",
|
|
285
|
+
"name": "label",
|
|
286
|
+
"required": false,
|
|
287
|
+
"hasDynamicHelp": false,
|
|
288
|
+
"multiple": false,
|
|
289
|
+
"type": "option"
|
|
314
290
|
},
|
|
315
291
|
"output": {
|
|
316
292
|
"char": "o",
|
|
@@ -322,14 +298,13 @@
|
|
|
322
298
|
"multiple": false,
|
|
323
299
|
"options": [
|
|
324
300
|
"summary",
|
|
325
|
-
"json"
|
|
326
|
-
"xs"
|
|
301
|
+
"json"
|
|
327
302
|
],
|
|
328
303
|
"type": "option"
|
|
329
304
|
},
|
|
330
305
|
"workspace": {
|
|
331
306
|
"char": "w",
|
|
332
|
-
"description": "Workspace ID (
|
|
307
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
333
308
|
"name": "workspace",
|
|
334
309
|
"required": false,
|
|
335
310
|
"hasDynamicHelp": false,
|
|
@@ -339,7 +314,7 @@
|
|
|
339
314
|
},
|
|
340
315
|
"hasDynamicHelp": false,
|
|
341
316
|
"hiddenAliases": [],
|
|
342
|
-
"id": "
|
|
317
|
+
"id": "branch:edit",
|
|
343
318
|
"pluginAlias": "@xano/cli",
|
|
344
319
|
"pluginName": "@xano/cli",
|
|
345
320
|
"pluginType": "core",
|
|
@@ -349,20 +324,25 @@
|
|
|
349
324
|
"relativePath": [
|
|
350
325
|
"dist",
|
|
351
326
|
"commands",
|
|
352
|
-
"
|
|
353
|
-
"
|
|
327
|
+
"branch",
|
|
328
|
+
"edit",
|
|
354
329
|
"index.js"
|
|
355
330
|
]
|
|
356
331
|
},
|
|
357
|
-
"
|
|
332
|
+
"branch:get": {
|
|
358
333
|
"aliases": [],
|
|
359
|
-
"args": {
|
|
360
|
-
|
|
334
|
+
"args": {
|
|
335
|
+
"branch_label": {
|
|
336
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
337
|
+
"name": "branch_label",
|
|
338
|
+
"required": true
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"description": "Get details for a specific branch",
|
|
361
342
|
"examples": [
|
|
362
|
-
"$ xano
|
|
363
|
-
"$ xano
|
|
364
|
-
"$ xano
|
|
365
|
-
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
343
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
344
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
345
|
+
"$ xano branch get staging --output json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
|
|
366
346
|
],
|
|
367
347
|
"flags": {
|
|
368
348
|
"profile": {
|
|
@@ -384,33 +364,6 @@
|
|
|
384
364
|
"allowNo": false,
|
|
385
365
|
"type": "boolean"
|
|
386
366
|
},
|
|
387
|
-
"include_draft": {
|
|
388
|
-
"description": "Include draft functions",
|
|
389
|
-
"name": "include_draft",
|
|
390
|
-
"required": false,
|
|
391
|
-
"allowNo": false,
|
|
392
|
-
"type": "boolean"
|
|
393
|
-
},
|
|
394
|
-
"include_xanoscript": {
|
|
395
|
-
"description": "Include XanoScript in response",
|
|
396
|
-
"name": "include_xanoscript",
|
|
397
|
-
"required": false,
|
|
398
|
-
"allowNo": false,
|
|
399
|
-
"type": "boolean"
|
|
400
|
-
},
|
|
401
|
-
"order": {
|
|
402
|
-
"description": "Sort order",
|
|
403
|
-
"name": "order",
|
|
404
|
-
"required": false,
|
|
405
|
-
"default": "desc",
|
|
406
|
-
"hasDynamicHelp": false,
|
|
407
|
-
"multiple": false,
|
|
408
|
-
"options": [
|
|
409
|
-
"asc",
|
|
410
|
-
"desc"
|
|
411
|
-
],
|
|
412
|
-
"type": "option"
|
|
413
|
-
},
|
|
414
367
|
"output": {
|
|
415
368
|
"char": "o",
|
|
416
369
|
"description": "Output format",
|
|
@@ -425,37 +378,10 @@
|
|
|
425
378
|
],
|
|
426
379
|
"type": "option"
|
|
427
380
|
},
|
|
428
|
-
"
|
|
429
|
-
"
|
|
430
|
-
"
|
|
431
|
-
"
|
|
432
|
-
"default": 1,
|
|
433
|
-
"hasDynamicHelp": false,
|
|
434
|
-
"multiple": false,
|
|
435
|
-
"type": "option"
|
|
436
|
-
},
|
|
437
|
-
"per_page": {
|
|
438
|
-
"description": "Number of results per page",
|
|
439
|
-
"name": "per_page",
|
|
440
|
-
"required": false,
|
|
441
|
-
"default": 50,
|
|
442
|
-
"hasDynamicHelp": false,
|
|
443
|
-
"multiple": false,
|
|
444
|
-
"type": "option"
|
|
445
|
-
},
|
|
446
|
-
"sort": {
|
|
447
|
-
"description": "Sort field",
|
|
448
|
-
"name": "sort",
|
|
449
|
-
"required": false,
|
|
450
|
-
"default": "created_at",
|
|
451
|
-
"hasDynamicHelp": false,
|
|
452
|
-
"multiple": false,
|
|
453
|
-
"type": "option"
|
|
454
|
-
},
|
|
455
|
-
"workspace": {
|
|
456
|
-
"char": "w",
|
|
457
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
458
|
-
"name": "workspace",
|
|
381
|
+
"workspace": {
|
|
382
|
+
"char": "w",
|
|
383
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
384
|
+
"name": "workspace",
|
|
459
385
|
"required": false,
|
|
460
386
|
"hasDynamicHelp": false,
|
|
461
387
|
"multiple": false,
|
|
@@ -464,7 +390,7 @@
|
|
|
464
390
|
},
|
|
465
391
|
"hasDynamicHelp": false,
|
|
466
392
|
"hiddenAliases": [],
|
|
467
|
-
"id": "
|
|
393
|
+
"id": "branch:get",
|
|
468
394
|
"pluginAlias": "@xano/cli",
|
|
469
395
|
"pluginName": "@xano/cli",
|
|
470
396
|
"pluginType": "core",
|
|
@@ -474,25 +400,25 @@
|
|
|
474
400
|
"relativePath": [
|
|
475
401
|
"dist",
|
|
476
402
|
"commands",
|
|
477
|
-
"
|
|
478
|
-
"
|
|
403
|
+
"branch",
|
|
404
|
+
"get",
|
|
479
405
|
"index.js"
|
|
480
406
|
]
|
|
481
407
|
},
|
|
482
|
-
"branch:
|
|
408
|
+
"branch:list": {
|
|
483
409
|
"aliases": [],
|
|
484
410
|
"args": {
|
|
485
|
-
"
|
|
486
|
-
"description": "
|
|
487
|
-
"name": "
|
|
488
|
-
"required":
|
|
411
|
+
"workspace_id": {
|
|
412
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
413
|
+
"name": "workspace_id",
|
|
414
|
+
"required": false
|
|
489
415
|
}
|
|
490
416
|
},
|
|
491
|
-
"description": "
|
|
417
|
+
"description": "List all branches in a workspace",
|
|
492
418
|
"examples": [
|
|
493
|
-
"$ xano branch
|
|
494
|
-
"$ xano branch
|
|
495
|
-
"$ xano branch
|
|
419
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
420
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
421
|
+
"$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
|
|
496
422
|
],
|
|
497
423
|
"flags": {
|
|
498
424
|
"profile": {
|
|
@@ -514,14 +440,6 @@
|
|
|
514
440
|
"allowNo": false,
|
|
515
441
|
"type": "boolean"
|
|
516
442
|
},
|
|
517
|
-
"force": {
|
|
518
|
-
"char": "f",
|
|
519
|
-
"description": "Skip confirmation prompt",
|
|
520
|
-
"name": "force",
|
|
521
|
-
"required": false,
|
|
522
|
-
"allowNo": false,
|
|
523
|
-
"type": "boolean"
|
|
524
|
-
},
|
|
525
443
|
"output": {
|
|
526
444
|
"char": "o",
|
|
527
445
|
"description": "Output format",
|
|
@@ -535,20 +453,11 @@
|
|
|
535
453
|
"json"
|
|
536
454
|
],
|
|
537
455
|
"type": "option"
|
|
538
|
-
},
|
|
539
|
-
"workspace": {
|
|
540
|
-
"char": "w",
|
|
541
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
542
|
-
"name": "workspace",
|
|
543
|
-
"required": false,
|
|
544
|
-
"hasDynamicHelp": false,
|
|
545
|
-
"multiple": false,
|
|
546
|
-
"type": "option"
|
|
547
456
|
}
|
|
548
457
|
},
|
|
549
458
|
"hasDynamicHelp": false,
|
|
550
459
|
"hiddenAliases": [],
|
|
551
|
-
"id": "branch:
|
|
460
|
+
"id": "branch:list",
|
|
552
461
|
"pluginAlias": "@xano/cli",
|
|
553
462
|
"pluginName": "@xano/cli",
|
|
554
463
|
"pluginType": "core",
|
|
@@ -559,24 +468,28 @@
|
|
|
559
468
|
"dist",
|
|
560
469
|
"commands",
|
|
561
470
|
"branch",
|
|
562
|
-
"
|
|
471
|
+
"list",
|
|
563
472
|
"index.js"
|
|
564
473
|
]
|
|
565
474
|
},
|
|
566
|
-
"
|
|
475
|
+
"profile:edit": {
|
|
567
476
|
"aliases": [],
|
|
568
477
|
"args": {
|
|
569
|
-
"
|
|
570
|
-
"description": "
|
|
571
|
-
"name": "
|
|
572
|
-
"required":
|
|
478
|
+
"name": {
|
|
479
|
+
"description": "Profile name to edit (uses default profile if not specified)",
|
|
480
|
+
"name": "name",
|
|
481
|
+
"required": false
|
|
573
482
|
}
|
|
574
483
|
},
|
|
575
|
-
"description": "
|
|
484
|
+
"description": "Edit an existing profile configuration",
|
|
576
485
|
"examples": [
|
|
577
|
-
"$ xano
|
|
578
|
-
"$ xano
|
|
579
|
-
"$ xano
|
|
486
|
+
"$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
487
|
+
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
488
|
+
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
489
|
+
"$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
490
|
+
"$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
491
|
+
"$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
492
|
+
"$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
580
493
|
],
|
|
581
494
|
"flags": {
|
|
582
495
|
"profile": {
|
|
@@ -598,50 +511,91 @@
|
|
|
598
511
|
"allowNo": false,
|
|
599
512
|
"type": "boolean"
|
|
600
513
|
},
|
|
601
|
-
"
|
|
602
|
-
"char": "
|
|
603
|
-
"description": "
|
|
604
|
-
"name": "
|
|
514
|
+
"access_token": {
|
|
515
|
+
"char": "t",
|
|
516
|
+
"description": "Update access token for the Xano Metadata API",
|
|
517
|
+
"name": "access_token",
|
|
605
518
|
"required": false,
|
|
606
519
|
"hasDynamicHelp": false,
|
|
607
520
|
"multiple": false,
|
|
608
521
|
"type": "option"
|
|
609
522
|
},
|
|
610
|
-
"
|
|
611
|
-
"char": "
|
|
612
|
-
"description": "
|
|
613
|
-
"name": "
|
|
523
|
+
"account_origin": {
|
|
524
|
+
"char": "a",
|
|
525
|
+
"description": "Update account origin URL",
|
|
526
|
+
"name": "account_origin",
|
|
614
527
|
"required": false,
|
|
615
528
|
"hasDynamicHelp": false,
|
|
616
529
|
"multiple": false,
|
|
617
530
|
"type": "option"
|
|
618
531
|
},
|
|
619
|
-
"
|
|
620
|
-
"char": "
|
|
621
|
-
"description": "
|
|
622
|
-
"name": "
|
|
532
|
+
"branch": {
|
|
533
|
+
"char": "b",
|
|
534
|
+
"description": "Update branch name",
|
|
535
|
+
"name": "branch",
|
|
623
536
|
"required": false,
|
|
624
537
|
"hasDynamicHelp": false,
|
|
625
538
|
"multiple": false,
|
|
626
539
|
"type": "option"
|
|
627
540
|
},
|
|
628
|
-
"
|
|
629
|
-
"char": "
|
|
630
|
-
"description": "
|
|
631
|
-
"name": "
|
|
541
|
+
"instance_origin": {
|
|
542
|
+
"char": "i",
|
|
543
|
+
"description": "Update instance origin URL",
|
|
544
|
+
"name": "instance_origin",
|
|
545
|
+
"required": false,
|
|
546
|
+
"hasDynamicHelp": false,
|
|
547
|
+
"multiple": false,
|
|
548
|
+
"type": "option"
|
|
549
|
+
},
|
|
550
|
+
"project": {
|
|
551
|
+
"char": "j",
|
|
552
|
+
"description": "Update project ID",
|
|
553
|
+
"name": "project",
|
|
554
|
+
"required": false,
|
|
555
|
+
"hasDynamicHelp": false,
|
|
556
|
+
"multiple": false,
|
|
557
|
+
"type": "option"
|
|
558
|
+
},
|
|
559
|
+
"remove-branch": {
|
|
560
|
+
"description": "Remove branch from profile",
|
|
561
|
+
"name": "remove-branch",
|
|
562
|
+
"required": false,
|
|
563
|
+
"allowNo": false,
|
|
564
|
+
"type": "boolean"
|
|
565
|
+
},
|
|
566
|
+
"remove-project": {
|
|
567
|
+
"description": "Remove project from profile",
|
|
568
|
+
"name": "remove-project",
|
|
569
|
+
"required": false,
|
|
570
|
+
"allowNo": false,
|
|
571
|
+
"type": "boolean"
|
|
572
|
+
},
|
|
573
|
+
"remove-run-base-url": {
|
|
574
|
+
"description": "Remove run_base_url from profile (use default)",
|
|
575
|
+
"name": "remove-run-base-url",
|
|
576
|
+
"required": false,
|
|
577
|
+
"allowNo": false,
|
|
578
|
+
"type": "boolean"
|
|
579
|
+
},
|
|
580
|
+
"remove-workspace": {
|
|
581
|
+
"description": "Remove workspace from profile",
|
|
582
|
+
"name": "remove-workspace",
|
|
583
|
+
"required": false,
|
|
584
|
+
"allowNo": false,
|
|
585
|
+
"type": "boolean"
|
|
586
|
+
},
|
|
587
|
+
"run_base_url": {
|
|
588
|
+
"char": "r",
|
|
589
|
+
"description": "Update Xano Run API base URL",
|
|
590
|
+
"name": "run_base_url",
|
|
632
591
|
"required": false,
|
|
633
|
-
"default": "summary",
|
|
634
592
|
"hasDynamicHelp": false,
|
|
635
593
|
"multiple": false,
|
|
636
|
-
"options": [
|
|
637
|
-
"summary",
|
|
638
|
-
"json"
|
|
639
|
-
],
|
|
640
594
|
"type": "option"
|
|
641
595
|
},
|
|
642
596
|
"workspace": {
|
|
643
597
|
"char": "w",
|
|
644
|
-
"description": "
|
|
598
|
+
"description": "Update workspace name",
|
|
645
599
|
"name": "workspace",
|
|
646
600
|
"required": false,
|
|
647
601
|
"hasDynamicHelp": false,
|
|
@@ -651,7 +605,7 @@
|
|
|
651
605
|
},
|
|
652
606
|
"hasDynamicHelp": false,
|
|
653
607
|
"hiddenAliases": [],
|
|
654
|
-
"id": "
|
|
608
|
+
"id": "profile:edit",
|
|
655
609
|
"pluginAlias": "@xano/cli",
|
|
656
610
|
"pluginName": "@xano/cli",
|
|
657
611
|
"pluginType": "core",
|
|
@@ -661,73 +615,39 @@
|
|
|
661
615
|
"relativePath": [
|
|
662
616
|
"dist",
|
|
663
617
|
"commands",
|
|
664
|
-
"
|
|
618
|
+
"profile",
|
|
665
619
|
"edit",
|
|
666
620
|
"index.js"
|
|
667
621
|
]
|
|
668
622
|
},
|
|
669
|
-
"
|
|
623
|
+
"profile:delete": {
|
|
670
624
|
"aliases": [],
|
|
671
625
|
"args": {
|
|
672
|
-
"
|
|
673
|
-
"description": "
|
|
674
|
-
"name": "
|
|
626
|
+
"name": {
|
|
627
|
+
"description": "Profile name to delete",
|
|
628
|
+
"name": "name",
|
|
675
629
|
"required": true
|
|
676
630
|
}
|
|
677
631
|
},
|
|
678
|
-
"description": "
|
|
632
|
+
"description": "Delete a profile configuration",
|
|
679
633
|
"examples": [
|
|
680
|
-
"$ xano
|
|
681
|
-
"$ xano
|
|
682
|
-
"$ xano
|
|
634
|
+
"$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
635
|
+
"$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
636
|
+
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
683
637
|
],
|
|
684
638
|
"flags": {
|
|
685
|
-
"
|
|
686
|
-
"char": "
|
|
687
|
-
"description": "
|
|
688
|
-
"
|
|
689
|
-
"name": "profile",
|
|
690
|
-
"required": false,
|
|
691
|
-
"hasDynamicHelp": false,
|
|
692
|
-
"multiple": false,
|
|
693
|
-
"type": "option"
|
|
694
|
-
},
|
|
695
|
-
"verbose": {
|
|
696
|
-
"char": "v",
|
|
697
|
-
"description": "Show detailed request/response information",
|
|
698
|
-
"env": "XANO_VERBOSE",
|
|
699
|
-
"name": "verbose",
|
|
639
|
+
"force": {
|
|
640
|
+
"char": "f",
|
|
641
|
+
"description": "Skip confirmation prompt",
|
|
642
|
+
"name": "force",
|
|
700
643
|
"required": false,
|
|
701
644
|
"allowNo": false,
|
|
702
645
|
"type": "boolean"
|
|
703
|
-
},
|
|
704
|
-
"output": {
|
|
705
|
-
"char": "o",
|
|
706
|
-
"description": "Output format",
|
|
707
|
-
"name": "output",
|
|
708
|
-
"required": false,
|
|
709
|
-
"default": "summary",
|
|
710
|
-
"hasDynamicHelp": false,
|
|
711
|
-
"multiple": false,
|
|
712
|
-
"options": [
|
|
713
|
-
"summary",
|
|
714
|
-
"json"
|
|
715
|
-
],
|
|
716
|
-
"type": "option"
|
|
717
|
-
},
|
|
718
|
-
"workspace": {
|
|
719
|
-
"char": "w",
|
|
720
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
721
|
-
"name": "workspace",
|
|
722
|
-
"required": false,
|
|
723
|
-
"hasDynamicHelp": false,
|
|
724
|
-
"multiple": false,
|
|
725
|
-
"type": "option"
|
|
726
646
|
}
|
|
727
647
|
},
|
|
728
648
|
"hasDynamicHelp": false,
|
|
729
649
|
"hiddenAliases": [],
|
|
730
|
-
"id": "
|
|
650
|
+
"id": "profile:delete",
|
|
731
651
|
"pluginAlias": "@xano/cli",
|
|
732
652
|
"pluginName": "@xano/cli",
|
|
733
653
|
"pluginType": "core",
|
|
@@ -737,186 +657,12 @@
|
|
|
737
657
|
"relativePath": [
|
|
738
658
|
"dist",
|
|
739
659
|
"commands",
|
|
740
|
-
"
|
|
741
|
-
"
|
|
660
|
+
"profile",
|
|
661
|
+
"delete",
|
|
742
662
|
"index.js"
|
|
743
663
|
]
|
|
744
664
|
},
|
|
745
|
-
"
|
|
746
|
-
"aliases": [],
|
|
747
|
-
"args": {},
|
|
748
|
-
"description": "Create a new branch by cloning from an existing branch",
|
|
749
|
-
"examples": [
|
|
750
|
-
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
751
|
-
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
752
|
-
"$ xano branch create --label staging --color \"#ebc346\" --output json\n{\n \"created_at\": \"2024-02-11T10:00:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
|
|
753
|
-
],
|
|
754
|
-
"flags": {
|
|
755
|
-
"profile": {
|
|
756
|
-
"char": "p",
|
|
757
|
-
"description": "Profile to use for this command",
|
|
758
|
-
"env": "XANO_PROFILE",
|
|
759
|
-
"name": "profile",
|
|
760
|
-
"required": false,
|
|
761
|
-
"hasDynamicHelp": false,
|
|
762
|
-
"multiple": false,
|
|
763
|
-
"type": "option"
|
|
764
|
-
},
|
|
765
|
-
"verbose": {
|
|
766
|
-
"char": "v",
|
|
767
|
-
"description": "Show detailed request/response information",
|
|
768
|
-
"env": "XANO_VERBOSE",
|
|
769
|
-
"name": "verbose",
|
|
770
|
-
"required": false,
|
|
771
|
-
"allowNo": false,
|
|
772
|
-
"type": "boolean"
|
|
773
|
-
},
|
|
774
|
-
"color": {
|
|
775
|
-
"char": "c",
|
|
776
|
-
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
777
|
-
"name": "color",
|
|
778
|
-
"required": false,
|
|
779
|
-
"hasDynamicHelp": false,
|
|
780
|
-
"multiple": false,
|
|
781
|
-
"type": "option"
|
|
782
|
-
},
|
|
783
|
-
"description": {
|
|
784
|
-
"char": "d",
|
|
785
|
-
"description": "Description for the new branch",
|
|
786
|
-
"name": "description",
|
|
787
|
-
"required": false,
|
|
788
|
-
"hasDynamicHelp": false,
|
|
789
|
-
"multiple": false,
|
|
790
|
-
"type": "option"
|
|
791
|
-
},
|
|
792
|
-
"label": {
|
|
793
|
-
"char": "l",
|
|
794
|
-
"description": "Label for the new branch",
|
|
795
|
-
"name": "label",
|
|
796
|
-
"required": true,
|
|
797
|
-
"hasDynamicHelp": false,
|
|
798
|
-
"multiple": false,
|
|
799
|
-
"type": "option"
|
|
800
|
-
},
|
|
801
|
-
"output": {
|
|
802
|
-
"char": "o",
|
|
803
|
-
"description": "Output format",
|
|
804
|
-
"name": "output",
|
|
805
|
-
"required": false,
|
|
806
|
-
"default": "summary",
|
|
807
|
-
"hasDynamicHelp": false,
|
|
808
|
-
"multiple": false,
|
|
809
|
-
"options": [
|
|
810
|
-
"summary",
|
|
811
|
-
"json"
|
|
812
|
-
],
|
|
813
|
-
"type": "option"
|
|
814
|
-
},
|
|
815
|
-
"source": {
|
|
816
|
-
"char": "s",
|
|
817
|
-
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
818
|
-
"name": "source",
|
|
819
|
-
"required": false,
|
|
820
|
-
"default": "v1",
|
|
821
|
-
"hasDynamicHelp": false,
|
|
822
|
-
"multiple": false,
|
|
823
|
-
"type": "option"
|
|
824
|
-
},
|
|
825
|
-
"workspace": {
|
|
826
|
-
"char": "w",
|
|
827
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
828
|
-
"name": "workspace",
|
|
829
|
-
"required": false,
|
|
830
|
-
"hasDynamicHelp": false,
|
|
831
|
-
"multiple": false,
|
|
832
|
-
"type": "option"
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
"hasDynamicHelp": false,
|
|
836
|
-
"hiddenAliases": [],
|
|
837
|
-
"id": "branch:create",
|
|
838
|
-
"pluginAlias": "@xano/cli",
|
|
839
|
-
"pluginName": "@xano/cli",
|
|
840
|
-
"pluginType": "core",
|
|
841
|
-
"strict": true,
|
|
842
|
-
"enableJsonFlag": false,
|
|
843
|
-
"isESM": true,
|
|
844
|
-
"relativePath": [
|
|
845
|
-
"dist",
|
|
846
|
-
"commands",
|
|
847
|
-
"branch",
|
|
848
|
-
"create",
|
|
849
|
-
"index.js"
|
|
850
|
-
]
|
|
851
|
-
},
|
|
852
|
-
"branch:list": {
|
|
853
|
-
"aliases": [],
|
|
854
|
-
"args": {
|
|
855
|
-
"workspace_id": {
|
|
856
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
857
|
-
"name": "workspace_id",
|
|
858
|
-
"required": false
|
|
859
|
-
}
|
|
860
|
-
},
|
|
861
|
-
"description": "List all branches in a workspace",
|
|
862
|
-
"examples": [
|
|
863
|
-
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
864
|
-
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
865
|
-
"$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
|
|
866
|
-
],
|
|
867
|
-
"flags": {
|
|
868
|
-
"profile": {
|
|
869
|
-
"char": "p",
|
|
870
|
-
"description": "Profile to use for this command",
|
|
871
|
-
"env": "XANO_PROFILE",
|
|
872
|
-
"name": "profile",
|
|
873
|
-
"required": false,
|
|
874
|
-
"hasDynamicHelp": false,
|
|
875
|
-
"multiple": false,
|
|
876
|
-
"type": "option"
|
|
877
|
-
},
|
|
878
|
-
"verbose": {
|
|
879
|
-
"char": "v",
|
|
880
|
-
"description": "Show detailed request/response information",
|
|
881
|
-
"env": "XANO_VERBOSE",
|
|
882
|
-
"name": "verbose",
|
|
883
|
-
"required": false,
|
|
884
|
-
"allowNo": false,
|
|
885
|
-
"type": "boolean"
|
|
886
|
-
},
|
|
887
|
-
"output": {
|
|
888
|
-
"char": "o",
|
|
889
|
-
"description": "Output format",
|
|
890
|
-
"name": "output",
|
|
891
|
-
"required": false,
|
|
892
|
-
"default": "summary",
|
|
893
|
-
"hasDynamicHelp": false,
|
|
894
|
-
"multiple": false,
|
|
895
|
-
"options": [
|
|
896
|
-
"summary",
|
|
897
|
-
"json"
|
|
898
|
-
],
|
|
899
|
-
"type": "option"
|
|
900
|
-
}
|
|
901
|
-
},
|
|
902
|
-
"hasDynamicHelp": false,
|
|
903
|
-
"hiddenAliases": [],
|
|
904
|
-
"id": "branch:list",
|
|
905
|
-
"pluginAlias": "@xano/cli",
|
|
906
|
-
"pluginName": "@xano/cli",
|
|
907
|
-
"pluginType": "core",
|
|
908
|
-
"strict": true,
|
|
909
|
-
"enableJsonFlag": false,
|
|
910
|
-
"isESM": true,
|
|
911
|
-
"relativePath": [
|
|
912
|
-
"dist",
|
|
913
|
-
"commands",
|
|
914
|
-
"branch",
|
|
915
|
-
"list",
|
|
916
|
-
"index.js"
|
|
917
|
-
]
|
|
918
|
-
},
|
|
919
|
-
"profile:create": {
|
|
665
|
+
"profile:create": {
|
|
920
666
|
"aliases": [],
|
|
921
667
|
"args": {
|
|
922
668
|
"name": {
|
|
@@ -1022,20 +768,14 @@
|
|
|
1022
768
|
"index.js"
|
|
1023
769
|
]
|
|
1024
770
|
},
|
|
1025
|
-
"
|
|
771
|
+
"profile:me": {
|
|
1026
772
|
"aliases": [],
|
|
1027
|
-
"args": {
|
|
1028
|
-
|
|
1029
|
-
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
1030
|
-
"name": "branch_label",
|
|
1031
|
-
"required": true
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
"description": "Set a branch as the live (active) branch for API requests",
|
|
773
|
+
"args": {},
|
|
774
|
+
"description": "Get information about the currently authenticated user",
|
|
1035
775
|
"examples": [
|
|
1036
|
-
"$ xano
|
|
1037
|
-
"$ xano
|
|
1038
|
-
"$ xano
|
|
776
|
+
"$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
|
|
777
|
+
"$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
|
|
778
|
+
"$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
|
|
1039
779
|
],
|
|
1040
780
|
"flags": {
|
|
1041
781
|
"profile": {
|
|
@@ -1057,14 +797,6 @@
|
|
|
1057
797
|
"allowNo": false,
|
|
1058
798
|
"type": "boolean"
|
|
1059
799
|
},
|
|
1060
|
-
"force": {
|
|
1061
|
-
"char": "f",
|
|
1062
|
-
"description": "Skip confirmation prompt",
|
|
1063
|
-
"name": "force",
|
|
1064
|
-
"required": false,
|
|
1065
|
-
"allowNo": false,
|
|
1066
|
-
"type": "boolean"
|
|
1067
|
-
},
|
|
1068
800
|
"output": {
|
|
1069
801
|
"char": "o",
|
|
1070
802
|
"description": "Output format",
|
|
@@ -1078,20 +810,11 @@
|
|
|
1078
810
|
"json"
|
|
1079
811
|
],
|
|
1080
812
|
"type": "option"
|
|
1081
|
-
},
|
|
1082
|
-
"workspace": {
|
|
1083
|
-
"char": "w",
|
|
1084
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1085
|
-
"name": "workspace",
|
|
1086
|
-
"required": false,
|
|
1087
|
-
"hasDynamicHelp": false,
|
|
1088
|
-
"multiple": false,
|
|
1089
|
-
"type": "option"
|
|
1090
813
|
}
|
|
1091
814
|
},
|
|
1092
815
|
"hasDynamicHelp": false,
|
|
1093
816
|
"hiddenAliases": [],
|
|
1094
|
-
"id": "
|
|
817
|
+
"id": "profile:me",
|
|
1095
818
|
"pluginAlias": "@xano/cli",
|
|
1096
819
|
"pluginName": "@xano/cli",
|
|
1097
820
|
"pluginType": "core",
|
|
@@ -1101,39 +824,23 @@
|
|
|
1101
824
|
"relativePath": [
|
|
1102
825
|
"dist",
|
|
1103
826
|
"commands",
|
|
1104
|
-
"
|
|
1105
|
-
"
|
|
827
|
+
"profile",
|
|
828
|
+
"me",
|
|
1106
829
|
"index.js"
|
|
1107
830
|
]
|
|
1108
831
|
},
|
|
1109
|
-
"profile:
|
|
832
|
+
"profile:get-default": {
|
|
1110
833
|
"aliases": [],
|
|
1111
|
-
"args": {
|
|
1112
|
-
|
|
1113
|
-
"description": "Profile name to delete",
|
|
1114
|
-
"name": "name",
|
|
1115
|
-
"required": true
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
"description": "Delete a profile configuration",
|
|
834
|
+
"args": {},
|
|
835
|
+
"description": "Get the current default profile name",
|
|
1119
836
|
"examples": [
|
|
1120
|
-
"$ xano profile:
|
|
1121
|
-
"$ xano profile:
|
|
1122
|
-
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
837
|
+
"$ xano profile:get-default\nproduction\n",
|
|
838
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
1123
839
|
],
|
|
1124
|
-
"flags": {
|
|
1125
|
-
"force": {
|
|
1126
|
-
"char": "f",
|
|
1127
|
-
"description": "Skip confirmation prompt",
|
|
1128
|
-
"name": "force",
|
|
1129
|
-
"required": false,
|
|
1130
|
-
"allowNo": false,
|
|
1131
|
-
"type": "boolean"
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
840
|
+
"flags": {},
|
|
1134
841
|
"hasDynamicHelp": false,
|
|
1135
842
|
"hiddenAliases": [],
|
|
1136
|
-
"id": "profile:
|
|
843
|
+
"id": "profile:get-default",
|
|
1137
844
|
"pluginAlias": "@xano/cli",
|
|
1138
845
|
"pluginName": "@xano/cli",
|
|
1139
846
|
"pluginType": "core",
|
|
@@ -1144,28 +851,144 @@
|
|
|
1144
851
|
"dist",
|
|
1145
852
|
"commands",
|
|
1146
853
|
"profile",
|
|
1147
|
-
"
|
|
854
|
+
"get-default",
|
|
1148
855
|
"index.js"
|
|
1149
856
|
]
|
|
1150
857
|
},
|
|
1151
|
-
"profile:
|
|
858
|
+
"profile:list": {
|
|
1152
859
|
"aliases": [],
|
|
1153
|
-
"args": {
|
|
1154
|
-
|
|
1155
|
-
"description": "Profile name to edit (uses default profile if not specified)",
|
|
1156
|
-
"name": "name",
|
|
1157
|
-
"required": false
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
"description": "Edit an existing profile configuration",
|
|
860
|
+
"args": {},
|
|
861
|
+
"description": "List all available profile configurations",
|
|
1161
862
|
"examples": [
|
|
1162
|
-
"$ xano profile:
|
|
1163
|
-
"$ xano profile:
|
|
1164
|
-
"$ xano profile:
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
"
|
|
1168
|
-
|
|
863
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
864
|
+
"$ 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",
|
|
865
|
+
"$ 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"
|
|
866
|
+
],
|
|
867
|
+
"flags": {
|
|
868
|
+
"details": {
|
|
869
|
+
"char": "d",
|
|
870
|
+
"description": "Show detailed information for each profile",
|
|
871
|
+
"name": "details",
|
|
872
|
+
"required": false,
|
|
873
|
+
"allowNo": false,
|
|
874
|
+
"type": "boolean"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"hasDynamicHelp": false,
|
|
878
|
+
"hiddenAliases": [],
|
|
879
|
+
"id": "profile:list",
|
|
880
|
+
"pluginAlias": "@xano/cli",
|
|
881
|
+
"pluginName": "@xano/cli",
|
|
882
|
+
"pluginType": "core",
|
|
883
|
+
"strict": true,
|
|
884
|
+
"enableJsonFlag": false,
|
|
885
|
+
"isESM": true,
|
|
886
|
+
"relativePath": [
|
|
887
|
+
"dist",
|
|
888
|
+
"commands",
|
|
889
|
+
"profile",
|
|
890
|
+
"list",
|
|
891
|
+
"index.js"
|
|
892
|
+
]
|
|
893
|
+
},
|
|
894
|
+
"profile:project": {
|
|
895
|
+
"aliases": [],
|
|
896
|
+
"args": {},
|
|
897
|
+
"description": "Print the project for the default profile",
|
|
898
|
+
"examples": [
|
|
899
|
+
"$ xano profile:project\nmy-project-id\n",
|
|
900
|
+
"$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
|
|
901
|
+
],
|
|
902
|
+
"flags": {},
|
|
903
|
+
"hasDynamicHelp": false,
|
|
904
|
+
"hiddenAliases": [],
|
|
905
|
+
"id": "profile:project",
|
|
906
|
+
"pluginAlias": "@xano/cli",
|
|
907
|
+
"pluginName": "@xano/cli",
|
|
908
|
+
"pluginType": "core",
|
|
909
|
+
"strict": true,
|
|
910
|
+
"enableJsonFlag": false,
|
|
911
|
+
"isESM": true,
|
|
912
|
+
"relativePath": [
|
|
913
|
+
"dist",
|
|
914
|
+
"commands",
|
|
915
|
+
"profile",
|
|
916
|
+
"project",
|
|
917
|
+
"index.js"
|
|
918
|
+
]
|
|
919
|
+
},
|
|
920
|
+
"profile:set-default": {
|
|
921
|
+
"aliases": [],
|
|
922
|
+
"args": {
|
|
923
|
+
"name": {
|
|
924
|
+
"description": "Profile name to set as default",
|
|
925
|
+
"name": "name",
|
|
926
|
+
"required": true
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
"description": "Set the default profile",
|
|
930
|
+
"examples": [
|
|
931
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
932
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
933
|
+
],
|
|
934
|
+
"flags": {},
|
|
935
|
+
"hasDynamicHelp": false,
|
|
936
|
+
"hiddenAliases": [],
|
|
937
|
+
"id": "profile:set-default",
|
|
938
|
+
"pluginAlias": "@xano/cli",
|
|
939
|
+
"pluginName": "@xano/cli",
|
|
940
|
+
"pluginType": "core",
|
|
941
|
+
"strict": true,
|
|
942
|
+
"enableJsonFlag": false,
|
|
943
|
+
"isESM": true,
|
|
944
|
+
"relativePath": [
|
|
945
|
+
"dist",
|
|
946
|
+
"commands",
|
|
947
|
+
"profile",
|
|
948
|
+
"set-default",
|
|
949
|
+
"index.js"
|
|
950
|
+
]
|
|
951
|
+
},
|
|
952
|
+
"profile:token": {
|
|
953
|
+
"aliases": [],
|
|
954
|
+
"args": {},
|
|
955
|
+
"description": "Print the access token for the default profile",
|
|
956
|
+
"examples": [
|
|
957
|
+
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
958
|
+
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
959
|
+
],
|
|
960
|
+
"flags": {},
|
|
961
|
+
"hasDynamicHelp": false,
|
|
962
|
+
"hiddenAliases": [],
|
|
963
|
+
"id": "profile:token",
|
|
964
|
+
"pluginAlias": "@xano/cli",
|
|
965
|
+
"pluginName": "@xano/cli",
|
|
966
|
+
"pluginType": "core",
|
|
967
|
+
"strict": true,
|
|
968
|
+
"enableJsonFlag": false,
|
|
969
|
+
"isESM": true,
|
|
970
|
+
"relativePath": [
|
|
971
|
+
"dist",
|
|
972
|
+
"commands",
|
|
973
|
+
"profile",
|
|
974
|
+
"token",
|
|
975
|
+
"index.js"
|
|
976
|
+
]
|
|
977
|
+
},
|
|
978
|
+
"branch:set-live": {
|
|
979
|
+
"aliases": [],
|
|
980
|
+
"args": {
|
|
981
|
+
"branch_label": {
|
|
982
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
983
|
+
"name": "branch_label",
|
|
984
|
+
"required": true
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
988
|
+
"examples": [
|
|
989
|
+
"$ xano branch set-live staging\nAre you sure you want to set 'staging' as the live branch? (y/N) y\nBranch 'staging' is now live\n",
|
|
990
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
991
|
+
"$ xano branch set-live production -f -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"production\",\n \"backup\": false,\n \"live\": true\n}\n"
|
|
1169
992
|
],
|
|
1170
993
|
"flags": {
|
|
1171
994
|
"profile": {
|
|
@@ -1187,91 +1010,195 @@
|
|
|
1187
1010
|
"allowNo": false,
|
|
1188
1011
|
"type": "boolean"
|
|
1189
1012
|
},
|
|
1190
|
-
"
|
|
1191
|
-
"char": "
|
|
1192
|
-
"description": "
|
|
1193
|
-
"name": "
|
|
1013
|
+
"force": {
|
|
1014
|
+
"char": "f",
|
|
1015
|
+
"description": "Skip confirmation prompt",
|
|
1016
|
+
"name": "force",
|
|
1017
|
+
"required": false,
|
|
1018
|
+
"allowNo": false,
|
|
1019
|
+
"type": "boolean"
|
|
1020
|
+
},
|
|
1021
|
+
"output": {
|
|
1022
|
+
"char": "o",
|
|
1023
|
+
"description": "Output format",
|
|
1024
|
+
"name": "output",
|
|
1194
1025
|
"required": false,
|
|
1026
|
+
"default": "summary",
|
|
1195
1027
|
"hasDynamicHelp": false,
|
|
1196
1028
|
"multiple": false,
|
|
1029
|
+
"options": [
|
|
1030
|
+
"summary",
|
|
1031
|
+
"json"
|
|
1032
|
+
],
|
|
1197
1033
|
"type": "option"
|
|
1198
1034
|
},
|
|
1199
|
-
"
|
|
1200
|
-
"char": "
|
|
1201
|
-
"description": "
|
|
1202
|
-
"name": "
|
|
1035
|
+
"workspace": {
|
|
1036
|
+
"char": "w",
|
|
1037
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1038
|
+
"name": "workspace",
|
|
1203
1039
|
"required": false,
|
|
1204
1040
|
"hasDynamicHelp": false,
|
|
1205
1041
|
"multiple": false,
|
|
1206
1042
|
"type": "option"
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
"hasDynamicHelp": false,
|
|
1046
|
+
"hiddenAliases": [],
|
|
1047
|
+
"id": "branch:set-live",
|
|
1048
|
+
"pluginAlias": "@xano/cli",
|
|
1049
|
+
"pluginName": "@xano/cli",
|
|
1050
|
+
"pluginType": "core",
|
|
1051
|
+
"strict": true,
|
|
1052
|
+
"enableJsonFlag": false,
|
|
1053
|
+
"isESM": true,
|
|
1054
|
+
"relativePath": [
|
|
1055
|
+
"dist",
|
|
1056
|
+
"commands",
|
|
1057
|
+
"branch",
|
|
1058
|
+
"set-live",
|
|
1059
|
+
"index.js"
|
|
1060
|
+
]
|
|
1061
|
+
},
|
|
1062
|
+
"profile:wizard": {
|
|
1063
|
+
"aliases": [],
|
|
1064
|
+
"args": {},
|
|
1065
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
1066
|
+
"examples": [
|
|
1067
|
+
"$ 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"
|
|
1068
|
+
],
|
|
1069
|
+
"flags": {
|
|
1070
|
+
"name": {
|
|
1071
|
+
"char": "n",
|
|
1072
|
+
"description": "Profile name (skip prompt if provided)",
|
|
1073
|
+
"name": "name",
|
|
1212
1074
|
"required": false,
|
|
1213
1075
|
"hasDynamicHelp": false,
|
|
1214
1076
|
"multiple": false,
|
|
1215
1077
|
"type": "option"
|
|
1216
1078
|
},
|
|
1217
|
-
"
|
|
1218
|
-
"char": "
|
|
1219
|
-
"description": "
|
|
1220
|
-
"name": "
|
|
1079
|
+
"origin": {
|
|
1080
|
+
"char": "o",
|
|
1081
|
+
"description": "Xano instance origin URL",
|
|
1082
|
+
"name": "origin",
|
|
1221
1083
|
"required": false,
|
|
1084
|
+
"default": "https://app.xano.com",
|
|
1222
1085
|
"hasDynamicHelp": false,
|
|
1223
1086
|
"multiple": false,
|
|
1224
1087
|
"type": "option"
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
"hasDynamicHelp": false,
|
|
1091
|
+
"hiddenAliases": [],
|
|
1092
|
+
"id": "profile:wizard",
|
|
1093
|
+
"pluginAlias": "@xano/cli",
|
|
1094
|
+
"pluginName": "@xano/cli",
|
|
1095
|
+
"pluginType": "core",
|
|
1096
|
+
"strict": true,
|
|
1097
|
+
"enableJsonFlag": false,
|
|
1098
|
+
"isESM": true,
|
|
1099
|
+
"relativePath": [
|
|
1100
|
+
"dist",
|
|
1101
|
+
"commands",
|
|
1102
|
+
"profile",
|
|
1103
|
+
"wizard",
|
|
1104
|
+
"index.js"
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
"function:edit": {
|
|
1108
|
+
"aliases": [],
|
|
1109
|
+
"args": {
|
|
1110
|
+
"function_id": {
|
|
1111
|
+
"description": "Function ID to edit",
|
|
1112
|
+
"name": "function_id",
|
|
1113
|
+
"required": false
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"description": "Edit a function in a workspace",
|
|
1117
|
+
"examples": [
|
|
1118
|
+
"$ 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",
|
|
1119
|
+
"$ 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",
|
|
1120
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1121
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1122
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
1123
|
+
"$ 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",
|
|
1124
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1125
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
1126
|
+
],
|
|
1127
|
+
"flags": {
|
|
1128
|
+
"profile": {
|
|
1129
|
+
"char": "p",
|
|
1130
|
+
"description": "Profile to use for this command",
|
|
1131
|
+
"env": "XANO_PROFILE",
|
|
1132
|
+
"name": "profile",
|
|
1230
1133
|
"required": false,
|
|
1231
1134
|
"hasDynamicHelp": false,
|
|
1232
1135
|
"multiple": false,
|
|
1233
1136
|
"type": "option"
|
|
1234
1137
|
},
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1237
|
-
"
|
|
1138
|
+
"verbose": {
|
|
1139
|
+
"char": "v",
|
|
1140
|
+
"description": "Show detailed request/response information",
|
|
1141
|
+
"env": "XANO_VERBOSE",
|
|
1142
|
+
"name": "verbose",
|
|
1238
1143
|
"required": false,
|
|
1239
1144
|
"allowNo": false,
|
|
1240
1145
|
"type": "boolean"
|
|
1241
1146
|
},
|
|
1242
|
-
"
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1147
|
+
"edit": {
|
|
1148
|
+
"char": "e",
|
|
1149
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
1150
|
+
"name": "edit",
|
|
1245
1151
|
"required": false,
|
|
1246
1152
|
"allowNo": false,
|
|
1247
1153
|
"type": "boolean"
|
|
1248
1154
|
},
|
|
1249
|
-
"
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1155
|
+
"file": {
|
|
1156
|
+
"char": "f",
|
|
1157
|
+
"description": "Path to file containing XanoScript code",
|
|
1158
|
+
"exclusive": [
|
|
1159
|
+
"stdin"
|
|
1160
|
+
],
|
|
1161
|
+
"name": "file",
|
|
1252
1162
|
"required": false,
|
|
1253
|
-
"
|
|
1254
|
-
"
|
|
1163
|
+
"hasDynamicHelp": false,
|
|
1164
|
+
"multiple": false,
|
|
1165
|
+
"type": "option"
|
|
1255
1166
|
},
|
|
1256
|
-
"
|
|
1257
|
-
"
|
|
1258
|
-
"
|
|
1167
|
+
"output": {
|
|
1168
|
+
"char": "o",
|
|
1169
|
+
"description": "Output format",
|
|
1170
|
+
"name": "output",
|
|
1171
|
+
"required": false,
|
|
1172
|
+
"default": "summary",
|
|
1173
|
+
"hasDynamicHelp": false,
|
|
1174
|
+
"multiple": false,
|
|
1175
|
+
"options": [
|
|
1176
|
+
"summary",
|
|
1177
|
+
"json"
|
|
1178
|
+
],
|
|
1179
|
+
"type": "option"
|
|
1180
|
+
},
|
|
1181
|
+
"publish": {
|
|
1182
|
+
"description": "Publish the function after editing",
|
|
1183
|
+
"name": "publish",
|
|
1259
1184
|
"required": false,
|
|
1260
1185
|
"allowNo": false,
|
|
1261
1186
|
"type": "boolean"
|
|
1262
1187
|
},
|
|
1263
|
-
"
|
|
1264
|
-
"char": "
|
|
1265
|
-
"description": "
|
|
1266
|
-
"
|
|
1188
|
+
"stdin": {
|
|
1189
|
+
"char": "s",
|
|
1190
|
+
"description": "Read XanoScript code from stdin",
|
|
1191
|
+
"exclusive": [
|
|
1192
|
+
"file"
|
|
1193
|
+
],
|
|
1194
|
+
"name": "stdin",
|
|
1267
1195
|
"required": false,
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1270
|
-
"type": "option"
|
|
1196
|
+
"allowNo": false,
|
|
1197
|
+
"type": "boolean"
|
|
1271
1198
|
},
|
|
1272
1199
|
"workspace": {
|
|
1273
1200
|
"char": "w",
|
|
1274
|
-
"description": "
|
|
1201
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1275
1202
|
"name": "workspace",
|
|
1276
1203
|
"required": false,
|
|
1277
1204
|
"hasDynamicHelp": false,
|
|
@@ -1281,7 +1208,7 @@
|
|
|
1281
1208
|
},
|
|
1282
1209
|
"hasDynamicHelp": false,
|
|
1283
1210
|
"hiddenAliases": [],
|
|
1284
|
-
"id": "
|
|
1211
|
+
"id": "function:edit",
|
|
1285
1212
|
"pluginAlias": "@xano/cli",
|
|
1286
1213
|
"pluginName": "@xano/cli",
|
|
1287
1214
|
"pluginType": "core",
|
|
@@ -1291,85 +1218,103 @@
|
|
|
1291
1218
|
"relativePath": [
|
|
1292
1219
|
"dist",
|
|
1293
1220
|
"commands",
|
|
1294
|
-
"
|
|
1221
|
+
"function",
|
|
1295
1222
|
"edit",
|
|
1296
1223
|
"index.js"
|
|
1297
1224
|
]
|
|
1298
1225
|
},
|
|
1299
|
-
"
|
|
1300
|
-
"aliases": [],
|
|
1301
|
-
"args": {},
|
|
1302
|
-
"description": "Get the current default profile name",
|
|
1303
|
-
"examples": [
|
|
1304
|
-
"$ xano profile:get-default\nproduction\n",
|
|
1305
|
-
"$ xano profile:get-default\nNo default profile set\n"
|
|
1306
|
-
],
|
|
1307
|
-
"flags": {},
|
|
1308
|
-
"hasDynamicHelp": false,
|
|
1309
|
-
"hiddenAliases": [],
|
|
1310
|
-
"id": "profile:get-default",
|
|
1311
|
-
"pluginAlias": "@xano/cli",
|
|
1312
|
-
"pluginName": "@xano/cli",
|
|
1313
|
-
"pluginType": "core",
|
|
1314
|
-
"strict": true,
|
|
1315
|
-
"enableJsonFlag": false,
|
|
1316
|
-
"isESM": true,
|
|
1317
|
-
"relativePath": [
|
|
1318
|
-
"dist",
|
|
1319
|
-
"commands",
|
|
1320
|
-
"profile",
|
|
1321
|
-
"get-default",
|
|
1322
|
-
"index.js"
|
|
1323
|
-
]
|
|
1324
|
-
},
|
|
1325
|
-
"profile:list": {
|
|
1226
|
+
"function:create": {
|
|
1326
1227
|
"aliases": [],
|
|
1327
1228
|
"args": {},
|
|
1328
|
-
"description": "
|
|
1229
|
+
"description": "Create a new function in a workspace",
|
|
1329
1230
|
"examples": [
|
|
1330
|
-
"$ xano
|
|
1331
|
-
"$ xano
|
|
1332
|
-
"$ xano
|
|
1231
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1232
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1233
|
+
"$ xano function:create -w 40 -f function.xs --edit\n# Opens function.xs in $EDITOR, then creates function with edited content\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1234
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1235
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
1333
1236
|
],
|
|
1334
1237
|
"flags": {
|
|
1335
|
-
"
|
|
1336
|
-
"char": "
|
|
1337
|
-
"description": "
|
|
1338
|
-
"
|
|
1238
|
+
"profile": {
|
|
1239
|
+
"char": "p",
|
|
1240
|
+
"description": "Profile to use for this command",
|
|
1241
|
+
"env": "XANO_PROFILE",
|
|
1242
|
+
"name": "profile",
|
|
1243
|
+
"required": false,
|
|
1244
|
+
"hasDynamicHelp": false,
|
|
1245
|
+
"multiple": false,
|
|
1246
|
+
"type": "option"
|
|
1247
|
+
},
|
|
1248
|
+
"verbose": {
|
|
1249
|
+
"char": "v",
|
|
1250
|
+
"description": "Show detailed request/response information",
|
|
1251
|
+
"env": "XANO_VERBOSE",
|
|
1252
|
+
"name": "verbose",
|
|
1253
|
+
"required": false,
|
|
1254
|
+
"allowNo": false,
|
|
1255
|
+
"type": "boolean"
|
|
1256
|
+
},
|
|
1257
|
+
"edit": {
|
|
1258
|
+
"char": "e",
|
|
1259
|
+
"dependsOn": [
|
|
1260
|
+
"file"
|
|
1261
|
+
],
|
|
1262
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
1263
|
+
"name": "edit",
|
|
1264
|
+
"required": false,
|
|
1265
|
+
"allowNo": false,
|
|
1266
|
+
"type": "boolean"
|
|
1267
|
+
},
|
|
1268
|
+
"file": {
|
|
1269
|
+
"char": "f",
|
|
1270
|
+
"description": "Path to file containing XanoScript code",
|
|
1271
|
+
"exclusive": [
|
|
1272
|
+
"stdin"
|
|
1273
|
+
],
|
|
1274
|
+
"name": "file",
|
|
1275
|
+
"required": false,
|
|
1276
|
+
"hasDynamicHelp": false,
|
|
1277
|
+
"multiple": false,
|
|
1278
|
+
"type": "option"
|
|
1279
|
+
},
|
|
1280
|
+
"output": {
|
|
1281
|
+
"char": "o",
|
|
1282
|
+
"description": "Output format",
|
|
1283
|
+
"name": "output",
|
|
1284
|
+
"required": false,
|
|
1285
|
+
"default": "summary",
|
|
1286
|
+
"hasDynamicHelp": false,
|
|
1287
|
+
"multiple": false,
|
|
1288
|
+
"options": [
|
|
1289
|
+
"summary",
|
|
1290
|
+
"json"
|
|
1291
|
+
],
|
|
1292
|
+
"type": "option"
|
|
1293
|
+
},
|
|
1294
|
+
"stdin": {
|
|
1295
|
+
"char": "s",
|
|
1296
|
+
"description": "Read XanoScript code from stdin",
|
|
1297
|
+
"exclusive": [
|
|
1298
|
+
"file"
|
|
1299
|
+
],
|
|
1300
|
+
"name": "stdin",
|
|
1339
1301
|
"required": false,
|
|
1340
1302
|
"allowNo": false,
|
|
1341
1303
|
"type": "boolean"
|
|
1304
|
+
},
|
|
1305
|
+
"workspace": {
|
|
1306
|
+
"char": "w",
|
|
1307
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1308
|
+
"name": "workspace",
|
|
1309
|
+
"required": false,
|
|
1310
|
+
"hasDynamicHelp": false,
|
|
1311
|
+
"multiple": false,
|
|
1312
|
+
"type": "option"
|
|
1342
1313
|
}
|
|
1343
1314
|
},
|
|
1344
1315
|
"hasDynamicHelp": false,
|
|
1345
1316
|
"hiddenAliases": [],
|
|
1346
|
-
"id": "
|
|
1347
|
-
"pluginAlias": "@xano/cli",
|
|
1348
|
-
"pluginName": "@xano/cli",
|
|
1349
|
-
"pluginType": "core",
|
|
1350
|
-
"strict": true,
|
|
1351
|
-
"enableJsonFlag": false,
|
|
1352
|
-
"isESM": true,
|
|
1353
|
-
"relativePath": [
|
|
1354
|
-
"dist",
|
|
1355
|
-
"commands",
|
|
1356
|
-
"profile",
|
|
1357
|
-
"list",
|
|
1358
|
-
"index.js"
|
|
1359
|
-
]
|
|
1360
|
-
},
|
|
1361
|
-
"profile:project": {
|
|
1362
|
-
"aliases": [],
|
|
1363
|
-
"args": {},
|
|
1364
|
-
"description": "Print the project for the default profile",
|
|
1365
|
-
"examples": [
|
|
1366
|
-
"$ xano profile:project\nmy-project-id\n",
|
|
1367
|
-
"$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
|
|
1368
|
-
],
|
|
1369
|
-
"flags": {},
|
|
1370
|
-
"hasDynamicHelp": false,
|
|
1371
|
-
"hiddenAliases": [],
|
|
1372
|
-
"id": "profile:project",
|
|
1317
|
+
"id": "function:create",
|
|
1373
1318
|
"pluginAlias": "@xano/cli",
|
|
1374
1319
|
"pluginName": "@xano/cli",
|
|
1375
1320
|
"pluginType": "core",
|
|
@@ -1379,19 +1324,20 @@
|
|
|
1379
1324
|
"relativePath": [
|
|
1380
1325
|
"dist",
|
|
1381
1326
|
"commands",
|
|
1382
|
-
"
|
|
1383
|
-
"
|
|
1327
|
+
"function",
|
|
1328
|
+
"create",
|
|
1384
1329
|
"index.js"
|
|
1385
1330
|
]
|
|
1386
1331
|
},
|
|
1387
|
-
"
|
|
1332
|
+
"function:list": {
|
|
1388
1333
|
"aliases": [],
|
|
1389
1334
|
"args": {},
|
|
1390
|
-
"description": "
|
|
1335
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
1391
1336
|
"examples": [
|
|
1392
|
-
"$ xano
|
|
1393
|
-
"$ xano
|
|
1394
|
-
"$ xano
|
|
1337
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
1338
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
1339
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
1340
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
1395
1341
|
],
|
|
1396
1342
|
"flags": {
|
|
1397
1343
|
"profile": {
|
|
@@ -1413,6 +1359,33 @@
|
|
|
1413
1359
|
"allowNo": false,
|
|
1414
1360
|
"type": "boolean"
|
|
1415
1361
|
},
|
|
1362
|
+
"include_draft": {
|
|
1363
|
+
"description": "Include draft functions",
|
|
1364
|
+
"name": "include_draft",
|
|
1365
|
+
"required": false,
|
|
1366
|
+
"allowNo": false,
|
|
1367
|
+
"type": "boolean"
|
|
1368
|
+
},
|
|
1369
|
+
"include_xanoscript": {
|
|
1370
|
+
"description": "Include XanoScript in response",
|
|
1371
|
+
"name": "include_xanoscript",
|
|
1372
|
+
"required": false,
|
|
1373
|
+
"allowNo": false,
|
|
1374
|
+
"type": "boolean"
|
|
1375
|
+
},
|
|
1376
|
+
"order": {
|
|
1377
|
+
"description": "Sort order",
|
|
1378
|
+
"name": "order",
|
|
1379
|
+
"required": false,
|
|
1380
|
+
"default": "desc",
|
|
1381
|
+
"hasDynamicHelp": false,
|
|
1382
|
+
"multiple": false,
|
|
1383
|
+
"options": [
|
|
1384
|
+
"asc",
|
|
1385
|
+
"desc"
|
|
1386
|
+
],
|
|
1387
|
+
"type": "option"
|
|
1388
|
+
},
|
|
1416
1389
|
"output": {
|
|
1417
1390
|
"char": "o",
|
|
1418
1391
|
"description": "Output format",
|
|
@@ -1426,106 +1399,39 @@
|
|
|
1426
1399
|
"json"
|
|
1427
1400
|
],
|
|
1428
1401
|
"type": "option"
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
"id": "profile:me",
|
|
1434
|
-
"pluginAlias": "@xano/cli",
|
|
1435
|
-
"pluginName": "@xano/cli",
|
|
1436
|
-
"pluginType": "core",
|
|
1437
|
-
"strict": true,
|
|
1438
|
-
"enableJsonFlag": false,
|
|
1439
|
-
"isESM": true,
|
|
1440
|
-
"relativePath": [
|
|
1441
|
-
"dist",
|
|
1442
|
-
"commands",
|
|
1443
|
-
"profile",
|
|
1444
|
-
"me",
|
|
1445
|
-
"index.js"
|
|
1446
|
-
]
|
|
1447
|
-
},
|
|
1448
|
-
"profile:set-default": {
|
|
1449
|
-
"aliases": [],
|
|
1450
|
-
"args": {
|
|
1451
|
-
"name": {
|
|
1452
|
-
"description": "Profile name to set as default",
|
|
1453
|
-
"name": "name",
|
|
1454
|
-
"required": true
|
|
1455
|
-
}
|
|
1456
|
-
},
|
|
1457
|
-
"description": "Set the default profile",
|
|
1458
|
-
"examples": [
|
|
1459
|
-
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
1460
|
-
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
1461
|
-
],
|
|
1462
|
-
"flags": {},
|
|
1463
|
-
"hasDynamicHelp": false,
|
|
1464
|
-
"hiddenAliases": [],
|
|
1465
|
-
"id": "profile:set-default",
|
|
1466
|
-
"pluginAlias": "@xano/cli",
|
|
1467
|
-
"pluginName": "@xano/cli",
|
|
1468
|
-
"pluginType": "core",
|
|
1469
|
-
"strict": true,
|
|
1470
|
-
"enableJsonFlag": false,
|
|
1471
|
-
"isESM": true,
|
|
1472
|
-
"relativePath": [
|
|
1473
|
-
"dist",
|
|
1474
|
-
"commands",
|
|
1475
|
-
"profile",
|
|
1476
|
-
"set-default",
|
|
1477
|
-
"index.js"
|
|
1478
|
-
]
|
|
1479
|
-
},
|
|
1480
|
-
"profile:token": {
|
|
1481
|
-
"aliases": [],
|
|
1482
|
-
"args": {},
|
|
1483
|
-
"description": "Print the access token for the default profile",
|
|
1484
|
-
"examples": [
|
|
1485
|
-
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
1486
|
-
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1487
|
-
],
|
|
1488
|
-
"flags": {},
|
|
1489
|
-
"hasDynamicHelp": false,
|
|
1490
|
-
"hiddenAliases": [],
|
|
1491
|
-
"id": "profile:token",
|
|
1492
|
-
"pluginAlias": "@xano/cli",
|
|
1493
|
-
"pluginName": "@xano/cli",
|
|
1494
|
-
"pluginType": "core",
|
|
1495
|
-
"strict": true,
|
|
1496
|
-
"enableJsonFlag": false,
|
|
1497
|
-
"isESM": true,
|
|
1498
|
-
"relativePath": [
|
|
1499
|
-
"dist",
|
|
1500
|
-
"commands",
|
|
1501
|
-
"profile",
|
|
1502
|
-
"token",
|
|
1503
|
-
"index.js"
|
|
1504
|
-
]
|
|
1505
|
-
},
|
|
1506
|
-
"profile:wizard": {
|
|
1507
|
-
"aliases": [],
|
|
1508
|
-
"args": {},
|
|
1509
|
-
"description": "Create a new profile configuration using an interactive wizard",
|
|
1510
|
-
"examples": [
|
|
1511
|
-
"$ 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"
|
|
1512
|
-
],
|
|
1513
|
-
"flags": {
|
|
1514
|
-
"name": {
|
|
1515
|
-
"char": "n",
|
|
1516
|
-
"description": "Profile name (skip prompt if provided)",
|
|
1517
|
-
"name": "name",
|
|
1402
|
+
},
|
|
1403
|
+
"page": {
|
|
1404
|
+
"description": "Page number for pagination",
|
|
1405
|
+
"name": "page",
|
|
1518
1406
|
"required": false,
|
|
1407
|
+
"default": 1,
|
|
1519
1408
|
"hasDynamicHelp": false,
|
|
1520
1409
|
"multiple": false,
|
|
1521
1410
|
"type": "option"
|
|
1522
1411
|
},
|
|
1523
|
-
"
|
|
1524
|
-
"
|
|
1525
|
-
"
|
|
1526
|
-
"
|
|
1412
|
+
"per_page": {
|
|
1413
|
+
"description": "Number of results per page",
|
|
1414
|
+
"name": "per_page",
|
|
1415
|
+
"required": false,
|
|
1416
|
+
"default": 50,
|
|
1417
|
+
"hasDynamicHelp": false,
|
|
1418
|
+
"multiple": false,
|
|
1419
|
+
"type": "option"
|
|
1420
|
+
},
|
|
1421
|
+
"sort": {
|
|
1422
|
+
"description": "Sort field",
|
|
1423
|
+
"name": "sort",
|
|
1424
|
+
"required": false,
|
|
1425
|
+
"default": "created_at",
|
|
1426
|
+
"hasDynamicHelp": false,
|
|
1427
|
+
"multiple": false,
|
|
1428
|
+
"type": "option"
|
|
1429
|
+
},
|
|
1430
|
+
"workspace": {
|
|
1431
|
+
"char": "w",
|
|
1432
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1433
|
+
"name": "workspace",
|
|
1527
1434
|
"required": false,
|
|
1528
|
-
"default": "https://app.xano.com",
|
|
1529
1435
|
"hasDynamicHelp": false,
|
|
1530
1436
|
"multiple": false,
|
|
1531
1437
|
"type": "option"
|
|
@@ -1533,7 +1439,7 @@
|
|
|
1533
1439
|
},
|
|
1534
1440
|
"hasDynamicHelp": false,
|
|
1535
1441
|
"hiddenAliases": [],
|
|
1536
|
-
"id": "
|
|
1442
|
+
"id": "function:list",
|
|
1537
1443
|
"pluginAlias": "@xano/cli",
|
|
1538
1444
|
"pluginName": "@xano/cli",
|
|
1539
1445
|
"pluginType": "core",
|
|
@@ -1543,8 +1449,8 @@
|
|
|
1543
1449
|
"relativePath": [
|
|
1544
1450
|
"dist",
|
|
1545
1451
|
"commands",
|
|
1546
|
-
"
|
|
1547
|
-
"
|
|
1452
|
+
"function",
|
|
1453
|
+
"list",
|
|
1548
1454
|
"index.js"
|
|
1549
1455
|
]
|
|
1550
1456
|
},
|
|
@@ -1749,15 +1655,23 @@
|
|
|
1749
1655
|
"index.js"
|
|
1750
1656
|
]
|
|
1751
1657
|
},
|
|
1752
|
-
"
|
|
1658
|
+
"function:get": {
|
|
1753
1659
|
"aliases": [],
|
|
1754
|
-
"args": {
|
|
1755
|
-
|
|
1660
|
+
"args": {
|
|
1661
|
+
"function_id": {
|
|
1662
|
+
"description": "Function ID",
|
|
1663
|
+
"name": "function_id",
|
|
1664
|
+
"required": false
|
|
1665
|
+
}
|
|
1666
|
+
},
|
|
1667
|
+
"description": "Get a specific function from a workspace",
|
|
1756
1668
|
"examples": [
|
|
1757
|
-
"$ xano
|
|
1758
|
-
"$ xano
|
|
1759
|
-
"$ xano
|
|
1760
|
-
"$ xano
|
|
1669
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
1670
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
1671
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
1672
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
1673
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
1674
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
1761
1675
|
],
|
|
1762
1676
|
"flags": {
|
|
1763
1677
|
"profile": {
|
|
@@ -1779,36 +1693,33 @@
|
|
|
1779
1693
|
"allowNo": false,
|
|
1780
1694
|
"type": "boolean"
|
|
1781
1695
|
},
|
|
1782
|
-
"
|
|
1783
|
-
"
|
|
1784
|
-
"
|
|
1785
|
-
"name": "output",
|
|
1696
|
+
"include_draft": {
|
|
1697
|
+
"description": "Include draft version",
|
|
1698
|
+
"name": "include_draft",
|
|
1786
1699
|
"required": false,
|
|
1787
|
-
"
|
|
1788
|
-
"
|
|
1789
|
-
"multiple": false,
|
|
1790
|
-
"options": [
|
|
1791
|
-
"summary",
|
|
1792
|
-
"json"
|
|
1793
|
-
],
|
|
1794
|
-
"type": "option"
|
|
1700
|
+
"allowNo": false,
|
|
1701
|
+
"type": "boolean"
|
|
1795
1702
|
},
|
|
1796
|
-
"
|
|
1797
|
-
"description": "
|
|
1798
|
-
"name": "
|
|
1799
|
-
"required": false,
|
|
1800
|
-
"
|
|
1801
|
-
"
|
|
1802
|
-
"multiple": false,
|
|
1803
|
-
"type": "option"
|
|
1703
|
+
"include_xanoscript": {
|
|
1704
|
+
"description": "Include XanoScript in response",
|
|
1705
|
+
"name": "include_xanoscript",
|
|
1706
|
+
"required": false,
|
|
1707
|
+
"allowNo": false,
|
|
1708
|
+
"type": "boolean"
|
|
1804
1709
|
},
|
|
1805
|
-
"
|
|
1806
|
-
"
|
|
1807
|
-
"
|
|
1710
|
+
"output": {
|
|
1711
|
+
"char": "o",
|
|
1712
|
+
"description": "Output format",
|
|
1713
|
+
"name": "output",
|
|
1808
1714
|
"required": false,
|
|
1809
|
-
"default":
|
|
1715
|
+
"default": "summary",
|
|
1810
1716
|
"hasDynamicHelp": false,
|
|
1811
1717
|
"multiple": false,
|
|
1718
|
+
"options": [
|
|
1719
|
+
"summary",
|
|
1720
|
+
"json",
|
|
1721
|
+
"xs"
|
|
1722
|
+
],
|
|
1812
1723
|
"type": "option"
|
|
1813
1724
|
},
|
|
1814
1725
|
"workspace": {
|
|
@@ -1823,7 +1734,7 @@
|
|
|
1823
1734
|
},
|
|
1824
1735
|
"hasDynamicHelp": false,
|
|
1825
1736
|
"hiddenAliases": [],
|
|
1826
|
-
"id": "
|
|
1737
|
+
"id": "function:get",
|
|
1827
1738
|
"pluginAlias": "@xano/cli",
|
|
1828
1739
|
"pluginName": "@xano/cli",
|
|
1829
1740
|
"pluginType": "core",
|
|
@@ -1833,8 +1744,8 @@
|
|
|
1833
1744
|
"relativePath": [
|
|
1834
1745
|
"dist",
|
|
1835
1746
|
"commands",
|
|
1836
|
-
"
|
|
1837
|
-
"
|
|
1747
|
+
"function",
|
|
1748
|
+
"get",
|
|
1838
1749
|
"index.js"
|
|
1839
1750
|
]
|
|
1840
1751
|
},
|
|
@@ -1917,20 +1828,15 @@
|
|
|
1917
1828
|
"index.js"
|
|
1918
1829
|
]
|
|
1919
1830
|
},
|
|
1920
|
-
"
|
|
1831
|
+
"static_host:list": {
|
|
1921
1832
|
"aliases": [],
|
|
1922
|
-
"args": {
|
|
1923
|
-
|
|
1924
|
-
"description": "Workspace ID to delete",
|
|
1925
|
-
"name": "workspace_id",
|
|
1926
|
-
"required": true
|
|
1927
|
-
}
|
|
1928
|
-
},
|
|
1929
|
-
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
1833
|
+
"args": {},
|
|
1834
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
1930
1835
|
"examples": [
|
|
1931
|
-
"$ xano
|
|
1932
|
-
"$ xano
|
|
1933
|
-
"$ xano
|
|
1836
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1837
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1838
|
+
"$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
|
|
1839
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
1934
1840
|
],
|
|
1935
1841
|
"flags": {
|
|
1936
1842
|
"profile": {
|
|
@@ -1952,14 +1858,6 @@
|
|
|
1952
1858
|
"allowNo": false,
|
|
1953
1859
|
"type": "boolean"
|
|
1954
1860
|
},
|
|
1955
|
-
"force": {
|
|
1956
|
-
"char": "f",
|
|
1957
|
-
"description": "Skip confirmation prompt",
|
|
1958
|
-
"name": "force",
|
|
1959
|
-
"required": false,
|
|
1960
|
-
"allowNo": false,
|
|
1961
|
-
"type": "boolean"
|
|
1962
|
-
},
|
|
1963
1861
|
"output": {
|
|
1964
1862
|
"char": "o",
|
|
1965
1863
|
"description": "Output format",
|
|
@@ -1973,11 +1871,38 @@
|
|
|
1973
1871
|
"json"
|
|
1974
1872
|
],
|
|
1975
1873
|
"type": "option"
|
|
1874
|
+
},
|
|
1875
|
+
"page": {
|
|
1876
|
+
"description": "Page number for pagination",
|
|
1877
|
+
"name": "page",
|
|
1878
|
+
"required": false,
|
|
1879
|
+
"default": 1,
|
|
1880
|
+
"hasDynamicHelp": false,
|
|
1881
|
+
"multiple": false,
|
|
1882
|
+
"type": "option"
|
|
1883
|
+
},
|
|
1884
|
+
"per_page": {
|
|
1885
|
+
"description": "Number of results per page",
|
|
1886
|
+
"name": "per_page",
|
|
1887
|
+
"required": false,
|
|
1888
|
+
"default": 50,
|
|
1889
|
+
"hasDynamicHelp": false,
|
|
1890
|
+
"multiple": false,
|
|
1891
|
+
"type": "option"
|
|
1892
|
+
},
|
|
1893
|
+
"workspace": {
|
|
1894
|
+
"char": "w",
|
|
1895
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1896
|
+
"name": "workspace",
|
|
1897
|
+
"required": false,
|
|
1898
|
+
"hasDynamicHelp": false,
|
|
1899
|
+
"multiple": false,
|
|
1900
|
+
"type": "option"
|
|
1976
1901
|
}
|
|
1977
1902
|
},
|
|
1978
1903
|
"hasDynamicHelp": false,
|
|
1979
1904
|
"hiddenAliases": [],
|
|
1980
|
-
"id": "
|
|
1905
|
+
"id": "static_host:list",
|
|
1981
1906
|
"pluginAlias": "@xano/cli",
|
|
1982
1907
|
"pluginName": "@xano/cli",
|
|
1983
1908
|
"pluginType": "core",
|
|
@@ -1987,8 +1912,8 @@
|
|
|
1987
1912
|
"relativePath": [
|
|
1988
1913
|
"dist",
|
|
1989
1914
|
"commands",
|
|
1990
|
-
"
|
|
1991
|
-
"
|
|
1915
|
+
"static_host",
|
|
1916
|
+
"list",
|
|
1992
1917
|
"index.js"
|
|
1993
1918
|
]
|
|
1994
1919
|
},
|
|
@@ -2092,20 +2017,15 @@
|
|
|
2092
2017
|
"index.js"
|
|
2093
2018
|
]
|
|
2094
2019
|
},
|
|
2095
|
-
"workspace:
|
|
2020
|
+
"workspace:list": {
|
|
2096
2021
|
"aliases": [],
|
|
2097
|
-
"args": {
|
|
2098
|
-
|
|
2099
|
-
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
2100
|
-
"name": "workspace_id",
|
|
2101
|
-
"required": false
|
|
2102
|
-
}
|
|
2103
|
-
},
|
|
2104
|
-
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
2022
|
+
"args": {},
|
|
2023
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
2105
2024
|
"examples": [
|
|
2106
|
-
"$ xano workspace
|
|
2107
|
-
"$ xano workspace
|
|
2108
|
-
"$ xano workspace
|
|
2025
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
2026
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
2027
|
+
"$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
|
|
2028
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
2109
2029
|
],
|
|
2110
2030
|
"flags": {
|
|
2111
2031
|
"profile": {
|
|
@@ -2144,7 +2064,7 @@
|
|
|
2144
2064
|
},
|
|
2145
2065
|
"hasDynamicHelp": false,
|
|
2146
2066
|
"hiddenAliases": [],
|
|
2147
|
-
"id": "workspace:
|
|
2067
|
+
"id": "workspace:list",
|
|
2148
2068
|
"pluginAlias": "@xano/cli",
|
|
2149
2069
|
"pluginName": "@xano/cli",
|
|
2150
2070
|
"pluginType": "core",
|
|
@@ -2155,19 +2075,24 @@
|
|
|
2155
2075
|
"dist",
|
|
2156
2076
|
"commands",
|
|
2157
2077
|
"workspace",
|
|
2158
|
-
"
|
|
2078
|
+
"list",
|
|
2159
2079
|
"index.js"
|
|
2160
2080
|
]
|
|
2161
2081
|
},
|
|
2162
|
-
"workspace:
|
|
2082
|
+
"workspace:get": {
|
|
2163
2083
|
"aliases": [],
|
|
2164
|
-
"args": {
|
|
2165
|
-
|
|
2084
|
+
"args": {
|
|
2085
|
+
"workspace_id": {
|
|
2086
|
+
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
2087
|
+
"name": "workspace_id",
|
|
2088
|
+
"required": false
|
|
2089
|
+
}
|
|
2090
|
+
},
|
|
2091
|
+
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
2166
2092
|
"examples": [
|
|
2167
|
-
"$ xano workspace:
|
|
2168
|
-
"$ xano workspace
|
|
2169
|
-
"$ xano workspace
|
|
2170
|
-
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
2093
|
+
"$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
|
|
2094
|
+
"$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
|
|
2095
|
+
"$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
|
|
2171
2096
|
],
|
|
2172
2097
|
"flags": {
|
|
2173
2098
|
"profile": {
|
|
@@ -2206,7 +2131,7 @@
|
|
|
2206
2131
|
},
|
|
2207
2132
|
"hasDynamicHelp": false,
|
|
2208
2133
|
"hiddenAliases": [],
|
|
2209
|
-
"id": "workspace:
|
|
2134
|
+
"id": "workspace:get",
|
|
2210
2135
|
"pluginAlias": "@xano/cli",
|
|
2211
2136
|
"pluginName": "@xano/cli",
|
|
2212
2137
|
"pluginType": "core",
|
|
@@ -2217,24 +2142,25 @@
|
|
|
2217
2142
|
"dist",
|
|
2218
2143
|
"commands",
|
|
2219
2144
|
"workspace",
|
|
2220
|
-
"
|
|
2145
|
+
"get",
|
|
2221
2146
|
"index.js"
|
|
2222
2147
|
]
|
|
2223
2148
|
},
|
|
2224
|
-
"workspace:
|
|
2149
|
+
"workspace:pull": {
|
|
2225
2150
|
"aliases": [],
|
|
2226
2151
|
"args": {
|
|
2227
2152
|
"directory": {
|
|
2228
|
-
"description": "
|
|
2153
|
+
"description": "Output directory for pulled documents",
|
|
2229
2154
|
"name": "directory",
|
|
2230
2155
|
"required": true
|
|
2231
2156
|
}
|
|
2232
2157
|
},
|
|
2233
|
-
"description": "
|
|
2158
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
2234
2159
|
"examples": [
|
|
2235
|
-
"$ xano workspace
|
|
2236
|
-
"$ xano workspace
|
|
2237
|
-
"$ xano workspace
|
|
2160
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
2161
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
2162
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n",
|
|
2163
|
+
"$ xano workspace pull ./my-workspace -b dev\nPulled 42 documents to ./my-workspace\n"
|
|
2238
2164
|
],
|
|
2239
2165
|
"flags": {
|
|
2240
2166
|
"profile": {
|
|
@@ -2256,6 +2182,29 @@
|
|
|
2256
2182
|
"allowNo": false,
|
|
2257
2183
|
"type": "boolean"
|
|
2258
2184
|
},
|
|
2185
|
+
"branch": {
|
|
2186
|
+
"char": "b",
|
|
2187
|
+
"description": "Branch name (optional if set in profile, defaults to live)",
|
|
2188
|
+
"name": "branch",
|
|
2189
|
+
"required": false,
|
|
2190
|
+
"hasDynamicHelp": false,
|
|
2191
|
+
"multiple": false,
|
|
2192
|
+
"type": "option"
|
|
2193
|
+
},
|
|
2194
|
+
"env": {
|
|
2195
|
+
"description": "Include environment variables",
|
|
2196
|
+
"name": "env",
|
|
2197
|
+
"required": false,
|
|
2198
|
+
"allowNo": false,
|
|
2199
|
+
"type": "boolean"
|
|
2200
|
+
},
|
|
2201
|
+
"records": {
|
|
2202
|
+
"description": "Include records",
|
|
2203
|
+
"name": "records",
|
|
2204
|
+
"required": false,
|
|
2205
|
+
"allowNo": false,
|
|
2206
|
+
"type": "boolean"
|
|
2207
|
+
},
|
|
2259
2208
|
"workspace": {
|
|
2260
2209
|
"char": "w",
|
|
2261
2210
|
"description": "Workspace ID (optional if set in profile)",
|
|
@@ -2268,7 +2217,7 @@
|
|
|
2268
2217
|
},
|
|
2269
2218
|
"hasDynamicHelp": false,
|
|
2270
2219
|
"hiddenAliases": [],
|
|
2271
|
-
"id": "workspace:
|
|
2220
|
+
"id": "workspace:pull",
|
|
2272
2221
|
"pluginAlias": "@xano/cli",
|
|
2273
2222
|
"pluginName": "@xano/cli",
|
|
2274
2223
|
"pluginType": "core",
|
|
@@ -2279,24 +2228,25 @@
|
|
|
2279
2228
|
"dist",
|
|
2280
2229
|
"commands",
|
|
2281
2230
|
"workspace",
|
|
2282
|
-
"
|
|
2231
|
+
"pull",
|
|
2283
2232
|
"index.js"
|
|
2284
2233
|
]
|
|
2285
2234
|
},
|
|
2286
|
-
"workspace:
|
|
2235
|
+
"workspace:push": {
|
|
2287
2236
|
"aliases": [],
|
|
2288
2237
|
"args": {
|
|
2289
2238
|
"directory": {
|
|
2290
|
-
"description": "
|
|
2239
|
+
"description": "Directory containing documents to push (as produced by workspace pull)",
|
|
2291
2240
|
"name": "directory",
|
|
2292
2241
|
"required": true
|
|
2293
2242
|
}
|
|
2294
2243
|
},
|
|
2295
|
-
"description": "
|
|
2244
|
+
"description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
|
|
2296
2245
|
"examples": [
|
|
2297
|
-
"$ xano workspace
|
|
2298
|
-
"$ xano workspace
|
|
2299
|
-
"$ xano workspace
|
|
2246
|
+
"$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
|
|
2247
|
+
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
2248
|
+
"$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n",
|
|
2249
|
+
"$ xano workspace push ./my-workspace -b dev\nPushed 42 documents from ./my-workspace\n"
|
|
2300
2250
|
],
|
|
2301
2251
|
"flags": {
|
|
2302
2252
|
"profile": {
|
|
@@ -2318,19 +2268,14 @@
|
|
|
2318
2268
|
"allowNo": false,
|
|
2319
2269
|
"type": "boolean"
|
|
2320
2270
|
},
|
|
2321
|
-
"
|
|
2322
|
-
"
|
|
2323
|
-
"
|
|
2324
|
-
"
|
|
2325
|
-
"allowNo": false,
|
|
2326
|
-
"type": "boolean"
|
|
2327
|
-
},
|
|
2328
|
-
"records": {
|
|
2329
|
-
"description": "Include records",
|
|
2330
|
-
"name": "records",
|
|
2271
|
+
"branch": {
|
|
2272
|
+
"char": "b",
|
|
2273
|
+
"description": "Branch name (optional if set in profile, defaults to live)",
|
|
2274
|
+
"name": "branch",
|
|
2331
2275
|
"required": false,
|
|
2332
|
-
"
|
|
2333
|
-
"
|
|
2276
|
+
"hasDynamicHelp": false,
|
|
2277
|
+
"multiple": false,
|
|
2278
|
+
"type": "option"
|
|
2334
2279
|
},
|
|
2335
2280
|
"workspace": {
|
|
2336
2281
|
"char": "w",
|
|
@@ -2344,7 +2289,7 @@
|
|
|
2344
2289
|
},
|
|
2345
2290
|
"hasDynamicHelp": false,
|
|
2346
2291
|
"hiddenAliases": [],
|
|
2347
|
-
"id": "workspace:
|
|
2292
|
+
"id": "workspace:push",
|
|
2348
2293
|
"pluginAlias": "@xano/cli",
|
|
2349
2294
|
"pluginName": "@xano/cli",
|
|
2350
2295
|
"pluginType": "core",
|
|
@@ -2355,7 +2300,7 @@
|
|
|
2355
2300
|
"dist",
|
|
2356
2301
|
"commands",
|
|
2357
2302
|
"workspace",
|
|
2358
|
-
"
|
|
2303
|
+
"push",
|
|
2359
2304
|
"index.js"
|
|
2360
2305
|
]
|
|
2361
2306
|
},
|
|
@@ -2404,17 +2349,92 @@
|
|
|
2404
2349
|
},
|
|
2405
2350
|
"hasDynamicHelp": false,
|
|
2406
2351
|
"hiddenAliases": [],
|
|
2407
|
-
"id": "run:env:delete",
|
|
2352
|
+
"id": "run:env:delete",
|
|
2353
|
+
"pluginAlias": "@xano/cli",
|
|
2354
|
+
"pluginName": "@xano/cli",
|
|
2355
|
+
"pluginType": "core",
|
|
2356
|
+
"strict": true,
|
|
2357
|
+
"isESM": true,
|
|
2358
|
+
"relativePath": [
|
|
2359
|
+
"dist",
|
|
2360
|
+
"commands",
|
|
2361
|
+
"run",
|
|
2362
|
+
"env",
|
|
2363
|
+
"delete",
|
|
2364
|
+
"index.js"
|
|
2365
|
+
]
|
|
2366
|
+
},
|
|
2367
|
+
"workspace:delete": {
|
|
2368
|
+
"aliases": [],
|
|
2369
|
+
"args": {
|
|
2370
|
+
"workspace_id": {
|
|
2371
|
+
"description": "Workspace ID to delete",
|
|
2372
|
+
"name": "workspace_id",
|
|
2373
|
+
"required": true
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
2377
|
+
"examples": [
|
|
2378
|
+
"$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
|
|
2379
|
+
"$ xano workspace delete 123 --force\nDeleted workspace 123\n",
|
|
2380
|
+
"$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
|
|
2381
|
+
],
|
|
2382
|
+
"flags": {
|
|
2383
|
+
"profile": {
|
|
2384
|
+
"char": "p",
|
|
2385
|
+
"description": "Profile to use for this command",
|
|
2386
|
+
"env": "XANO_PROFILE",
|
|
2387
|
+
"name": "profile",
|
|
2388
|
+
"required": false,
|
|
2389
|
+
"hasDynamicHelp": false,
|
|
2390
|
+
"multiple": false,
|
|
2391
|
+
"type": "option"
|
|
2392
|
+
},
|
|
2393
|
+
"verbose": {
|
|
2394
|
+
"char": "v",
|
|
2395
|
+
"description": "Show detailed request/response information",
|
|
2396
|
+
"env": "XANO_VERBOSE",
|
|
2397
|
+
"name": "verbose",
|
|
2398
|
+
"required": false,
|
|
2399
|
+
"allowNo": false,
|
|
2400
|
+
"type": "boolean"
|
|
2401
|
+
},
|
|
2402
|
+
"force": {
|
|
2403
|
+
"char": "f",
|
|
2404
|
+
"description": "Skip confirmation prompt",
|
|
2405
|
+
"name": "force",
|
|
2406
|
+
"required": false,
|
|
2407
|
+
"allowNo": false,
|
|
2408
|
+
"type": "boolean"
|
|
2409
|
+
},
|
|
2410
|
+
"output": {
|
|
2411
|
+
"char": "o",
|
|
2412
|
+
"description": "Output format",
|
|
2413
|
+
"name": "output",
|
|
2414
|
+
"required": false,
|
|
2415
|
+
"default": "summary",
|
|
2416
|
+
"hasDynamicHelp": false,
|
|
2417
|
+
"multiple": false,
|
|
2418
|
+
"options": [
|
|
2419
|
+
"summary",
|
|
2420
|
+
"json"
|
|
2421
|
+
],
|
|
2422
|
+
"type": "option"
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
"hasDynamicHelp": false,
|
|
2426
|
+
"hiddenAliases": [],
|
|
2427
|
+
"id": "workspace:delete",
|
|
2408
2428
|
"pluginAlias": "@xano/cli",
|
|
2409
2429
|
"pluginName": "@xano/cli",
|
|
2410
2430
|
"pluginType": "core",
|
|
2411
2431
|
"strict": true,
|
|
2432
|
+
"enableJsonFlag": false,
|
|
2412
2433
|
"isESM": true,
|
|
2413
2434
|
"relativePath": [
|
|
2414
2435
|
"dist",
|
|
2415
2436
|
"commands",
|
|
2416
|
-
"
|
|
2417
|
-
"env",
|
|
2437
|
+
"workspace",
|
|
2418
2438
|
"delete",
|
|
2419
2439
|
"index.js"
|
|
2420
2440
|
]
|
|
@@ -2602,19 +2622,13 @@
|
|
|
2602
2622
|
"index.js"
|
|
2603
2623
|
]
|
|
2604
2624
|
},
|
|
2605
|
-
"run:
|
|
2625
|
+
"run:secrets:list": {
|
|
2606
2626
|
"aliases": [],
|
|
2607
|
-
"args": {
|
|
2608
|
-
|
|
2609
|
-
"description": "Project ID to delete",
|
|
2610
|
-
"name": "projectId",
|
|
2611
|
-
"required": true
|
|
2612
|
-
}
|
|
2613
|
-
},
|
|
2614
|
-
"description": "Delete a project",
|
|
2627
|
+
"args": {},
|
|
2628
|
+
"description": "List all secret keys",
|
|
2615
2629
|
"examples": [
|
|
2616
|
-
"$ xano run
|
|
2617
|
-
"$ xano run
|
|
2630
|
+
"$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
|
|
2631
|
+
"$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
|
|
2618
2632
|
],
|
|
2619
2633
|
"flags": {
|
|
2620
2634
|
"profile": {
|
|
@@ -2636,18 +2650,24 @@
|
|
|
2636
2650
|
"allowNo": false,
|
|
2637
2651
|
"type": "boolean"
|
|
2638
2652
|
},
|
|
2639
|
-
"
|
|
2640
|
-
"char": "
|
|
2641
|
-
"description": "
|
|
2642
|
-
"name": "
|
|
2653
|
+
"output": {
|
|
2654
|
+
"char": "o",
|
|
2655
|
+
"description": "Output format",
|
|
2656
|
+
"name": "output",
|
|
2643
2657
|
"required": false,
|
|
2644
|
-
"
|
|
2645
|
-
"
|
|
2658
|
+
"default": "table",
|
|
2659
|
+
"hasDynamicHelp": false,
|
|
2660
|
+
"multiple": false,
|
|
2661
|
+
"options": [
|
|
2662
|
+
"table",
|
|
2663
|
+
"json"
|
|
2664
|
+
],
|
|
2665
|
+
"type": "option"
|
|
2646
2666
|
}
|
|
2647
2667
|
},
|
|
2648
2668
|
"hasDynamicHelp": false,
|
|
2649
2669
|
"hiddenAliases": [],
|
|
2650
|
-
"id": "run:
|
|
2670
|
+
"id": "run:secrets:list",
|
|
2651
2671
|
"pluginAlias": "@xano/cli",
|
|
2652
2672
|
"pluginName": "@xano/cli",
|
|
2653
2673
|
"pluginType": "core",
|
|
@@ -2657,19 +2677,24 @@
|
|
|
2657
2677
|
"dist",
|
|
2658
2678
|
"commands",
|
|
2659
2679
|
"run",
|
|
2660
|
-
"
|
|
2661
|
-
"
|
|
2680
|
+
"secrets",
|
|
2681
|
+
"list",
|
|
2662
2682
|
"index.js"
|
|
2663
2683
|
]
|
|
2664
2684
|
},
|
|
2665
|
-
"run:
|
|
2685
|
+
"run:secrets:get": {
|
|
2666
2686
|
"aliases": [],
|
|
2667
|
-
"args": {
|
|
2668
|
-
|
|
2687
|
+
"args": {
|
|
2688
|
+
"name": {
|
|
2689
|
+
"description": "Secret name",
|
|
2690
|
+
"name": "name",
|
|
2691
|
+
"required": true
|
|
2692
|
+
}
|
|
2693
|
+
},
|
|
2694
|
+
"description": "Get a secret value",
|
|
2669
2695
|
"examples": [
|
|
2670
|
-
"$ xano run
|
|
2671
|
-
"$ xano run
|
|
2672
|
-
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
2696
|
+
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
2697
|
+
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
2673
2698
|
],
|
|
2674
2699
|
"flags": {
|
|
2675
2700
|
"profile": {
|
|
@@ -2691,35 +2716,16 @@
|
|
|
2691
2716
|
"allowNo": false,
|
|
2692
2717
|
"type": "boolean"
|
|
2693
2718
|
},
|
|
2694
|
-
"description": {
|
|
2695
|
-
"char": "d",
|
|
2696
|
-
"description": "Project description",
|
|
2697
|
-
"name": "description",
|
|
2698
|
-
"required": false,
|
|
2699
|
-
"default": "",
|
|
2700
|
-
"hasDynamicHelp": false,
|
|
2701
|
-
"multiple": false,
|
|
2702
|
-
"type": "option"
|
|
2703
|
-
},
|
|
2704
|
-
"name": {
|
|
2705
|
-
"char": "n",
|
|
2706
|
-
"description": "Project name",
|
|
2707
|
-
"name": "name",
|
|
2708
|
-
"required": true,
|
|
2709
|
-
"hasDynamicHelp": false,
|
|
2710
|
-
"multiple": false,
|
|
2711
|
-
"type": "option"
|
|
2712
|
-
},
|
|
2713
2719
|
"output": {
|
|
2714
2720
|
"char": "o",
|
|
2715
2721
|
"description": "Output format",
|
|
2716
2722
|
"name": "output",
|
|
2717
2723
|
"required": false,
|
|
2718
|
-
"default": "
|
|
2724
|
+
"default": "value",
|
|
2719
2725
|
"hasDynamicHelp": false,
|
|
2720
2726
|
"multiple": false,
|
|
2721
2727
|
"options": [
|
|
2722
|
-
"
|
|
2728
|
+
"value",
|
|
2723
2729
|
"json"
|
|
2724
2730
|
],
|
|
2725
2731
|
"type": "option"
|
|
@@ -2727,7 +2733,7 @@
|
|
|
2727
2733
|
},
|
|
2728
2734
|
"hasDynamicHelp": false,
|
|
2729
2735
|
"hiddenAliases": [],
|
|
2730
|
-
"id": "run:
|
|
2736
|
+
"id": "run:secrets:get",
|
|
2731
2737
|
"pluginAlias": "@xano/cli",
|
|
2732
2738
|
"pluginName": "@xano/cli",
|
|
2733
2739
|
"pluginType": "core",
|
|
@@ -2737,18 +2743,24 @@
|
|
|
2737
2743
|
"dist",
|
|
2738
2744
|
"commands",
|
|
2739
2745
|
"run",
|
|
2740
|
-
"
|
|
2741
|
-
"
|
|
2746
|
+
"secrets",
|
|
2747
|
+
"get",
|
|
2742
2748
|
"index.js"
|
|
2743
2749
|
]
|
|
2744
2750
|
},
|
|
2745
|
-
"run:
|
|
2751
|
+
"run:secrets:set": {
|
|
2746
2752
|
"aliases": [],
|
|
2747
|
-
"args": {
|
|
2748
|
-
|
|
2753
|
+
"args": {
|
|
2754
|
+
"name": {
|
|
2755
|
+
"description": "Secret name",
|
|
2756
|
+
"name": "name",
|
|
2757
|
+
"required": true
|
|
2758
|
+
}
|
|
2759
|
+
},
|
|
2760
|
+
"description": "Set a secret",
|
|
2749
2761
|
"examples": [
|
|
2750
|
-
"$ xano run
|
|
2751
|
-
"$ xano run
|
|
2762
|
+
"$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
|
|
2763
|
+
"$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
|
|
2752
2764
|
],
|
|
2753
2765
|
"flags": {
|
|
2754
2766
|
"profile": {
|
|
@@ -2770,24 +2782,41 @@
|
|
|
2770
2782
|
"allowNo": false,
|
|
2771
2783
|
"type": "boolean"
|
|
2772
2784
|
},
|
|
2773
|
-
"
|
|
2774
|
-
"char": "
|
|
2775
|
-
"description": "
|
|
2776
|
-
"name": "
|
|
2785
|
+
"repo": {
|
|
2786
|
+
"char": "r",
|
|
2787
|
+
"description": "Repository (for dockerconfigjson type)",
|
|
2788
|
+
"name": "repo",
|
|
2777
2789
|
"required": false,
|
|
2778
|
-
"
|
|
2790
|
+
"hasDynamicHelp": false,
|
|
2791
|
+
"multiple": false,
|
|
2792
|
+
"type": "option"
|
|
2793
|
+
},
|
|
2794
|
+
"type": {
|
|
2795
|
+
"char": "t",
|
|
2796
|
+
"description": "Secret type",
|
|
2797
|
+
"name": "type",
|
|
2798
|
+
"required": true,
|
|
2779
2799
|
"hasDynamicHelp": false,
|
|
2780
2800
|
"multiple": false,
|
|
2781
2801
|
"options": [
|
|
2782
|
-
"
|
|
2783
|
-
"
|
|
2802
|
+
"dockerconfigjson",
|
|
2803
|
+
"service-account-token"
|
|
2784
2804
|
],
|
|
2785
2805
|
"type": "option"
|
|
2806
|
+
},
|
|
2807
|
+
"value": {
|
|
2808
|
+
"char": "v",
|
|
2809
|
+
"description": "Secret value",
|
|
2810
|
+
"name": "value",
|
|
2811
|
+
"required": true,
|
|
2812
|
+
"hasDynamicHelp": false,
|
|
2813
|
+
"multiple": false,
|
|
2814
|
+
"type": "option"
|
|
2786
2815
|
}
|
|
2787
2816
|
},
|
|
2788
2817
|
"hasDynamicHelp": false,
|
|
2789
2818
|
"hiddenAliases": [],
|
|
2790
|
-
"id": "run:
|
|
2819
|
+
"id": "run:secrets:set",
|
|
2791
2820
|
"pluginAlias": "@xano/cli",
|
|
2792
2821
|
"pluginName": "@xano/cli",
|
|
2793
2822
|
"pluginType": "core",
|
|
@@ -2797,8 +2826,8 @@
|
|
|
2797
2826
|
"dist",
|
|
2798
2827
|
"commands",
|
|
2799
2828
|
"run",
|
|
2800
|
-
"
|
|
2801
|
-
"
|
|
2829
|
+
"secrets",
|
|
2830
|
+
"set",
|
|
2802
2831
|
"index.js"
|
|
2803
2832
|
]
|
|
2804
2833
|
},
|
|
@@ -2862,19 +2891,14 @@
|
|
|
2862
2891
|
"index.js"
|
|
2863
2892
|
]
|
|
2864
2893
|
},
|
|
2865
|
-
"run:
|
|
2894
|
+
"run:projects:create": {
|
|
2866
2895
|
"aliases": [],
|
|
2867
|
-
"args": {
|
|
2868
|
-
|
|
2869
|
-
"description": "Secret name",
|
|
2870
|
-
"name": "name",
|
|
2871
|
-
"required": true
|
|
2872
|
-
}
|
|
2873
|
-
},
|
|
2874
|
-
"description": "Get a secret value",
|
|
2896
|
+
"args": {},
|
|
2897
|
+
"description": "Create a new project",
|
|
2875
2898
|
"examples": [
|
|
2876
|
-
"$ xano run
|
|
2877
|
-
"$ xano run
|
|
2899
|
+
"$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
2900
|
+
"$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
2901
|
+
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
2878
2902
|
],
|
|
2879
2903
|
"flags": {
|
|
2880
2904
|
"profile": {
|
|
@@ -2896,16 +2920,35 @@
|
|
|
2896
2920
|
"allowNo": false,
|
|
2897
2921
|
"type": "boolean"
|
|
2898
2922
|
},
|
|
2923
|
+
"description": {
|
|
2924
|
+
"char": "d",
|
|
2925
|
+
"description": "Project description",
|
|
2926
|
+
"name": "description",
|
|
2927
|
+
"required": false,
|
|
2928
|
+
"default": "",
|
|
2929
|
+
"hasDynamicHelp": false,
|
|
2930
|
+
"multiple": false,
|
|
2931
|
+
"type": "option"
|
|
2932
|
+
},
|
|
2933
|
+
"name": {
|
|
2934
|
+
"char": "n",
|
|
2935
|
+
"description": "Project name",
|
|
2936
|
+
"name": "name",
|
|
2937
|
+
"required": true,
|
|
2938
|
+
"hasDynamicHelp": false,
|
|
2939
|
+
"multiple": false,
|
|
2940
|
+
"type": "option"
|
|
2941
|
+
},
|
|
2899
2942
|
"output": {
|
|
2900
2943
|
"char": "o",
|
|
2901
2944
|
"description": "Output format",
|
|
2902
2945
|
"name": "output",
|
|
2903
2946
|
"required": false,
|
|
2904
|
-
"default": "
|
|
2947
|
+
"default": "summary",
|
|
2905
2948
|
"hasDynamicHelp": false,
|
|
2906
2949
|
"multiple": false,
|
|
2907
2950
|
"options": [
|
|
2908
|
-
"
|
|
2951
|
+
"summary",
|
|
2909
2952
|
"json"
|
|
2910
2953
|
],
|
|
2911
2954
|
"type": "option"
|
|
@@ -2913,7 +2956,7 @@
|
|
|
2913
2956
|
},
|
|
2914
2957
|
"hasDynamicHelp": false,
|
|
2915
2958
|
"hiddenAliases": [],
|
|
2916
|
-
"id": "run:
|
|
2959
|
+
"id": "run:projects:create",
|
|
2917
2960
|
"pluginAlias": "@xano/cli",
|
|
2918
2961
|
"pluginName": "@xano/cli",
|
|
2919
2962
|
"pluginType": "core",
|
|
@@ -2923,25 +2966,18 @@
|
|
|
2923
2966
|
"dist",
|
|
2924
2967
|
"commands",
|
|
2925
2968
|
"run",
|
|
2926
|
-
"
|
|
2927
|
-
"
|
|
2969
|
+
"projects",
|
|
2970
|
+
"create",
|
|
2928
2971
|
"index.js"
|
|
2929
2972
|
]
|
|
2930
2973
|
},
|
|
2931
|
-
"run:projects:
|
|
2974
|
+
"run:projects:list": {
|
|
2932
2975
|
"aliases": [],
|
|
2933
|
-
"args": {
|
|
2934
|
-
|
|
2935
|
-
"description": "Project ID to update",
|
|
2936
|
-
"name": "projectId",
|
|
2937
|
-
"required": true
|
|
2938
|
-
}
|
|
2939
|
-
},
|
|
2940
|
-
"description": "Update a project",
|
|
2976
|
+
"args": {},
|
|
2977
|
+
"description": "List all projects",
|
|
2941
2978
|
"examples": [
|
|
2942
|
-
"$ xano run projects
|
|
2943
|
-
"$ xano run projects
|
|
2944
|
-
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
2979
|
+
"$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
|
|
2980
|
+
"$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
|
|
2945
2981
|
],
|
|
2946
2982
|
"flags": {
|
|
2947
2983
|
"profile": {
|
|
@@ -2963,34 +2999,16 @@
|
|
|
2963
2999
|
"allowNo": false,
|
|
2964
3000
|
"type": "boolean"
|
|
2965
3001
|
},
|
|
2966
|
-
"description": {
|
|
2967
|
-
"char": "d",
|
|
2968
|
-
"description": "New project description",
|
|
2969
|
-
"name": "description",
|
|
2970
|
-
"required": false,
|
|
2971
|
-
"hasDynamicHelp": false,
|
|
2972
|
-
"multiple": false,
|
|
2973
|
-
"type": "option"
|
|
2974
|
-
},
|
|
2975
|
-
"name": {
|
|
2976
|
-
"char": "n",
|
|
2977
|
-
"description": "New project name",
|
|
2978
|
-
"name": "name",
|
|
2979
|
-
"required": false,
|
|
2980
|
-
"hasDynamicHelp": false,
|
|
2981
|
-
"multiple": false,
|
|
2982
|
-
"type": "option"
|
|
2983
|
-
},
|
|
2984
3002
|
"output": {
|
|
2985
3003
|
"char": "o",
|
|
2986
3004
|
"description": "Output format",
|
|
2987
3005
|
"name": "output",
|
|
2988
3006
|
"required": false,
|
|
2989
|
-
"default": "
|
|
3007
|
+
"default": "table",
|
|
2990
3008
|
"hasDynamicHelp": false,
|
|
2991
3009
|
"multiple": false,
|
|
2992
3010
|
"options": [
|
|
2993
|
-
"
|
|
3011
|
+
"table",
|
|
2994
3012
|
"json"
|
|
2995
3013
|
],
|
|
2996
3014
|
"type": "option"
|
|
@@ -2998,7 +3016,7 @@
|
|
|
2998
3016
|
},
|
|
2999
3017
|
"hasDynamicHelp": false,
|
|
3000
3018
|
"hiddenAliases": [],
|
|
3001
|
-
"id": "run:projects:
|
|
3019
|
+
"id": "run:projects:list",
|
|
3002
3020
|
"pluginAlias": "@xano/cli",
|
|
3003
3021
|
"pluginName": "@xano/cli",
|
|
3004
3022
|
"pluginType": "core",
|
|
@@ -3009,17 +3027,23 @@
|
|
|
3009
3027
|
"commands",
|
|
3010
3028
|
"run",
|
|
3011
3029
|
"projects",
|
|
3012
|
-
"
|
|
3030
|
+
"list",
|
|
3013
3031
|
"index.js"
|
|
3014
3032
|
]
|
|
3015
3033
|
},
|
|
3016
|
-
"run:
|
|
3034
|
+
"run:projects:delete": {
|
|
3017
3035
|
"aliases": [],
|
|
3018
|
-
"args": {
|
|
3019
|
-
|
|
3036
|
+
"args": {
|
|
3037
|
+
"projectId": {
|
|
3038
|
+
"description": "Project ID to delete",
|
|
3039
|
+
"name": "projectId",
|
|
3040
|
+
"required": true
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
"description": "Delete a project",
|
|
3020
3044
|
"examples": [
|
|
3021
|
-
"$ xano run
|
|
3022
|
-
"$ xano run
|
|
3045
|
+
"$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
|
|
3046
|
+
"$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
|
|
3023
3047
|
],
|
|
3024
3048
|
"flags": {
|
|
3025
3049
|
"profile": {
|
|
@@ -3041,24 +3065,18 @@
|
|
|
3041
3065
|
"allowNo": false,
|
|
3042
3066
|
"type": "boolean"
|
|
3043
3067
|
},
|
|
3044
|
-
"
|
|
3045
|
-
"char": "
|
|
3046
|
-
"description": "
|
|
3047
|
-
"name": "
|
|
3068
|
+
"force": {
|
|
3069
|
+
"char": "f",
|
|
3070
|
+
"description": "Skip confirmation prompt",
|
|
3071
|
+
"name": "force",
|
|
3048
3072
|
"required": false,
|
|
3049
|
-
"
|
|
3050
|
-
"
|
|
3051
|
-
"multiple": false,
|
|
3052
|
-
"options": [
|
|
3053
|
-
"table",
|
|
3054
|
-
"json"
|
|
3055
|
-
],
|
|
3056
|
-
"type": "option"
|
|
3073
|
+
"allowNo": false,
|
|
3074
|
+
"type": "boolean"
|
|
3057
3075
|
}
|
|
3058
3076
|
},
|
|
3059
3077
|
"hasDynamicHelp": false,
|
|
3060
3078
|
"hiddenAliases": [],
|
|
3061
|
-
"id": "run:
|
|
3079
|
+
"id": "run:projects:delete",
|
|
3062
3080
|
"pluginAlias": "@xano/cli",
|
|
3063
3081
|
"pluginName": "@xano/cli",
|
|
3064
3082
|
"pluginType": "core",
|
|
@@ -3068,24 +3086,25 @@
|
|
|
3068
3086
|
"dist",
|
|
3069
3087
|
"commands",
|
|
3070
3088
|
"run",
|
|
3071
|
-
"
|
|
3072
|
-
"
|
|
3089
|
+
"projects",
|
|
3090
|
+
"delete",
|
|
3073
3091
|
"index.js"
|
|
3074
3092
|
]
|
|
3075
3093
|
},
|
|
3076
|
-
"run:
|
|
3094
|
+
"run:projects:update": {
|
|
3077
3095
|
"aliases": [],
|
|
3078
3096
|
"args": {
|
|
3079
|
-
"
|
|
3080
|
-
"description": "
|
|
3081
|
-
"name": "
|
|
3097
|
+
"projectId": {
|
|
3098
|
+
"description": "Project ID to update",
|
|
3099
|
+
"name": "projectId",
|
|
3082
3100
|
"required": true
|
|
3083
3101
|
}
|
|
3084
3102
|
},
|
|
3085
|
-
"description": "
|
|
3103
|
+
"description": "Update a project",
|
|
3086
3104
|
"examples": [
|
|
3087
|
-
"$ xano run
|
|
3088
|
-
"$ xano run
|
|
3105
|
+
"$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
|
|
3106
|
+
"$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
|
|
3107
|
+
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
3089
3108
|
],
|
|
3090
3109
|
"flags": {
|
|
3091
3110
|
"profile": {
|
|
@@ -3107,41 +3126,42 @@
|
|
|
3107
3126
|
"allowNo": false,
|
|
3108
3127
|
"type": "boolean"
|
|
3109
3128
|
},
|
|
3110
|
-
"
|
|
3111
|
-
"char": "
|
|
3112
|
-
"description": "
|
|
3113
|
-
"name": "
|
|
3129
|
+
"description": {
|
|
3130
|
+
"char": "d",
|
|
3131
|
+
"description": "New project description",
|
|
3132
|
+
"name": "description",
|
|
3114
3133
|
"required": false,
|
|
3115
3134
|
"hasDynamicHelp": false,
|
|
3116
3135
|
"multiple": false,
|
|
3117
3136
|
"type": "option"
|
|
3118
3137
|
},
|
|
3119
|
-
"
|
|
3120
|
-
"char": "
|
|
3121
|
-
"description": "
|
|
3122
|
-
"name": "
|
|
3123
|
-
"required":
|
|
3138
|
+
"name": {
|
|
3139
|
+
"char": "n",
|
|
3140
|
+
"description": "New project name",
|
|
3141
|
+
"name": "name",
|
|
3142
|
+
"required": false,
|
|
3124
3143
|
"hasDynamicHelp": false,
|
|
3125
3144
|
"multiple": false,
|
|
3126
|
-
"options": [
|
|
3127
|
-
"dockerconfigjson",
|
|
3128
|
-
"service-account-token"
|
|
3129
|
-
],
|
|
3130
3145
|
"type": "option"
|
|
3131
3146
|
},
|
|
3132
|
-
"
|
|
3133
|
-
"char": "
|
|
3134
|
-
"description": "
|
|
3135
|
-
"name": "
|
|
3136
|
-
"required":
|
|
3147
|
+
"output": {
|
|
3148
|
+
"char": "o",
|
|
3149
|
+
"description": "Output format",
|
|
3150
|
+
"name": "output",
|
|
3151
|
+
"required": false,
|
|
3152
|
+
"default": "summary",
|
|
3137
3153
|
"hasDynamicHelp": false,
|
|
3138
3154
|
"multiple": false,
|
|
3155
|
+
"options": [
|
|
3156
|
+
"summary",
|
|
3157
|
+
"json"
|
|
3158
|
+
],
|
|
3139
3159
|
"type": "option"
|
|
3140
3160
|
}
|
|
3141
3161
|
},
|
|
3142
3162
|
"hasDynamicHelp": false,
|
|
3143
3163
|
"hiddenAliases": [],
|
|
3144
|
-
"id": "run:
|
|
3164
|
+
"id": "run:projects:update",
|
|
3145
3165
|
"pluginAlias": "@xano/cli",
|
|
3146
3166
|
"pluginName": "@xano/cli",
|
|
3147
3167
|
"pluginType": "core",
|
|
@@ -3151,8 +3171,8 @@
|
|
|
3151
3171
|
"dist",
|
|
3152
3172
|
"commands",
|
|
3153
3173
|
"run",
|
|
3154
|
-
"
|
|
3155
|
-
"
|
|
3174
|
+
"projects",
|
|
3175
|
+
"update",
|
|
3156
3176
|
"index.js"
|
|
3157
3177
|
]
|
|
3158
3178
|
},
|
|
@@ -3282,66 +3302,6 @@
|
|
|
3282
3302
|
"index.js"
|
|
3283
3303
|
]
|
|
3284
3304
|
},
|
|
3285
|
-
"run:sessions:list": {
|
|
3286
|
-
"aliases": [],
|
|
3287
|
-
"args": {},
|
|
3288
|
-
"description": "List all sessions for the project",
|
|
3289
|
-
"examples": [
|
|
3290
|
-
"$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
|
|
3291
|
-
"$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
|
|
3292
|
-
],
|
|
3293
|
-
"flags": {
|
|
3294
|
-
"profile": {
|
|
3295
|
-
"char": "p",
|
|
3296
|
-
"description": "Profile to use for this command",
|
|
3297
|
-
"env": "XANO_PROFILE",
|
|
3298
|
-
"name": "profile",
|
|
3299
|
-
"required": false,
|
|
3300
|
-
"hasDynamicHelp": false,
|
|
3301
|
-
"multiple": false,
|
|
3302
|
-
"type": "option"
|
|
3303
|
-
},
|
|
3304
|
-
"verbose": {
|
|
3305
|
-
"char": "v",
|
|
3306
|
-
"description": "Show detailed request/response information",
|
|
3307
|
-
"env": "XANO_VERBOSE",
|
|
3308
|
-
"name": "verbose",
|
|
3309
|
-
"required": false,
|
|
3310
|
-
"allowNo": false,
|
|
3311
|
-
"type": "boolean"
|
|
3312
|
-
},
|
|
3313
|
-
"output": {
|
|
3314
|
-
"char": "o",
|
|
3315
|
-
"description": "Output format",
|
|
3316
|
-
"name": "output",
|
|
3317
|
-
"required": false,
|
|
3318
|
-
"default": "table",
|
|
3319
|
-
"hasDynamicHelp": false,
|
|
3320
|
-
"multiple": false,
|
|
3321
|
-
"options": [
|
|
3322
|
-
"table",
|
|
3323
|
-
"json"
|
|
3324
|
-
],
|
|
3325
|
-
"type": "option"
|
|
3326
|
-
}
|
|
3327
|
-
},
|
|
3328
|
-
"hasDynamicHelp": false,
|
|
3329
|
-
"hiddenAliases": [],
|
|
3330
|
-
"id": "run:sessions:list",
|
|
3331
|
-
"pluginAlias": "@xano/cli",
|
|
3332
|
-
"pluginName": "@xano/cli",
|
|
3333
|
-
"pluginType": "core",
|
|
3334
|
-
"strict": true,
|
|
3335
|
-
"isESM": true,
|
|
3336
|
-
"relativePath": [
|
|
3337
|
-
"dist",
|
|
3338
|
-
"commands",
|
|
3339
|
-
"run",
|
|
3340
|
-
"sessions",
|
|
3341
|
-
"list",
|
|
3342
|
-
"index.js"
|
|
3343
|
-
]
|
|
3344
|
-
},
|
|
3345
3305
|
"run:sessions:start": {
|
|
3346
3306
|
"aliases": [],
|
|
3347
3307
|
"args": {
|
|
@@ -3408,19 +3368,13 @@
|
|
|
3408
3368
|
"index.js"
|
|
3409
3369
|
]
|
|
3410
3370
|
},
|
|
3411
|
-
"run:sessions:
|
|
3371
|
+
"run:sessions:list": {
|
|
3412
3372
|
"aliases": [],
|
|
3413
|
-
"args": {
|
|
3414
|
-
|
|
3415
|
-
"description": "Session ID",
|
|
3416
|
-
"name": "sessionId",
|
|
3417
|
-
"required": true
|
|
3418
|
-
}
|
|
3419
|
-
},
|
|
3420
|
-
"description": "Stop a session",
|
|
3373
|
+
"args": {},
|
|
3374
|
+
"description": "List all sessions for the project",
|
|
3421
3375
|
"examples": [
|
|
3422
|
-
"$ xano run sessions
|
|
3423
|
-
"$ xano run sessions
|
|
3376
|
+
"$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
|
|
3377
|
+
"$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
|
|
3424
3378
|
],
|
|
3425
3379
|
"flags": {
|
|
3426
3380
|
"profile": {
|
|
@@ -3447,11 +3401,11 @@
|
|
|
3447
3401
|
"description": "Output format",
|
|
3448
3402
|
"name": "output",
|
|
3449
3403
|
"required": false,
|
|
3450
|
-
"default": "
|
|
3404
|
+
"default": "table",
|
|
3451
3405
|
"hasDynamicHelp": false,
|
|
3452
3406
|
"multiple": false,
|
|
3453
3407
|
"options": [
|
|
3454
|
-
"
|
|
3408
|
+
"table",
|
|
3455
3409
|
"json"
|
|
3456
3410
|
],
|
|
3457
3411
|
"type": "option"
|
|
@@ -3459,7 +3413,7 @@
|
|
|
3459
3413
|
},
|
|
3460
3414
|
"hasDynamicHelp": false,
|
|
3461
3415
|
"hiddenAliases": [],
|
|
3462
|
-
"id": "run:sessions:
|
|
3416
|
+
"id": "run:sessions:list",
|
|
3463
3417
|
"pluginAlias": "@xano/cli",
|
|
3464
3418
|
"pluginName": "@xano/cli",
|
|
3465
3419
|
"pluginType": "core",
|
|
@@ -3470,11 +3424,11 @@
|
|
|
3470
3424
|
"commands",
|
|
3471
3425
|
"run",
|
|
3472
3426
|
"sessions",
|
|
3473
|
-
"
|
|
3427
|
+
"list",
|
|
3474
3428
|
"index.js"
|
|
3475
3429
|
]
|
|
3476
3430
|
},
|
|
3477
|
-
"run:
|
|
3431
|
+
"run:sessions:stop": {
|
|
3478
3432
|
"aliases": [],
|
|
3479
3433
|
"args": {
|
|
3480
3434
|
"sessionId": {
|
|
@@ -3483,10 +3437,10 @@
|
|
|
3483
3437
|
"required": true
|
|
3484
3438
|
}
|
|
3485
3439
|
},
|
|
3486
|
-
"description": "
|
|
3440
|
+
"description": "Stop a session",
|
|
3487
3441
|
"examples": [
|
|
3488
|
-
"$ xano run
|
|
3489
|
-
"$ xano run
|
|
3442
|
+
"$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
|
|
3443
|
+
"$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
|
|
3490
3444
|
],
|
|
3491
3445
|
"flags": {
|
|
3492
3446
|
"profile": {
|
|
@@ -3525,7 +3479,7 @@
|
|
|
3525
3479
|
},
|
|
3526
3480
|
"hasDynamicHelp": false,
|
|
3527
3481
|
"hiddenAliases": [],
|
|
3528
|
-
"id": "run:
|
|
3482
|
+
"id": "run:sessions:stop",
|
|
3529
3483
|
"pluginAlias": "@xano/cli",
|
|
3530
3484
|
"pluginName": "@xano/cli",
|
|
3531
3485
|
"pluginType": "core",
|
|
@@ -3535,8 +3489,8 @@
|
|
|
3535
3489
|
"dist",
|
|
3536
3490
|
"commands",
|
|
3537
3491
|
"run",
|
|
3538
|
-
"
|
|
3539
|
-
"
|
|
3492
|
+
"sessions",
|
|
3493
|
+
"stop",
|
|
3540
3494
|
"index.js"
|
|
3541
3495
|
]
|
|
3542
3496
|
},
|
|
@@ -3644,6 +3598,72 @@
|
|
|
3644
3598
|
"index.js"
|
|
3645
3599
|
]
|
|
3646
3600
|
},
|
|
3601
|
+
"run:sink:get": {
|
|
3602
|
+
"aliases": [],
|
|
3603
|
+
"args": {
|
|
3604
|
+
"sessionId": {
|
|
3605
|
+
"description": "Session ID",
|
|
3606
|
+
"name": "sessionId",
|
|
3607
|
+
"required": true
|
|
3608
|
+
}
|
|
3609
|
+
},
|
|
3610
|
+
"description": "Get sink data for a completed session",
|
|
3611
|
+
"examples": [
|
|
3612
|
+
"$ 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",
|
|
3613
|
+
"$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
|
|
3614
|
+
],
|
|
3615
|
+
"flags": {
|
|
3616
|
+
"profile": {
|
|
3617
|
+
"char": "p",
|
|
3618
|
+
"description": "Profile to use for this command",
|
|
3619
|
+
"env": "XANO_PROFILE",
|
|
3620
|
+
"name": "profile",
|
|
3621
|
+
"required": false,
|
|
3622
|
+
"hasDynamicHelp": false,
|
|
3623
|
+
"multiple": false,
|
|
3624
|
+
"type": "option"
|
|
3625
|
+
},
|
|
3626
|
+
"verbose": {
|
|
3627
|
+
"char": "v",
|
|
3628
|
+
"description": "Show detailed request/response information",
|
|
3629
|
+
"env": "XANO_VERBOSE",
|
|
3630
|
+
"name": "verbose",
|
|
3631
|
+
"required": false,
|
|
3632
|
+
"allowNo": false,
|
|
3633
|
+
"type": "boolean"
|
|
3634
|
+
},
|
|
3635
|
+
"output": {
|
|
3636
|
+
"char": "o",
|
|
3637
|
+
"description": "Output format",
|
|
3638
|
+
"name": "output",
|
|
3639
|
+
"required": false,
|
|
3640
|
+
"default": "summary",
|
|
3641
|
+
"hasDynamicHelp": false,
|
|
3642
|
+
"multiple": false,
|
|
3643
|
+
"options": [
|
|
3644
|
+
"summary",
|
|
3645
|
+
"json"
|
|
3646
|
+
],
|
|
3647
|
+
"type": "option"
|
|
3648
|
+
}
|
|
3649
|
+
},
|
|
3650
|
+
"hasDynamicHelp": false,
|
|
3651
|
+
"hiddenAliases": [],
|
|
3652
|
+
"id": "run:sink:get",
|
|
3653
|
+
"pluginAlias": "@xano/cli",
|
|
3654
|
+
"pluginName": "@xano/cli",
|
|
3655
|
+
"pluginType": "core",
|
|
3656
|
+
"strict": true,
|
|
3657
|
+
"isESM": true,
|
|
3658
|
+
"relativePath": [
|
|
3659
|
+
"dist",
|
|
3660
|
+
"commands",
|
|
3661
|
+
"run",
|
|
3662
|
+
"sink",
|
|
3663
|
+
"get",
|
|
3664
|
+
"index.js"
|
|
3665
|
+
]
|
|
3666
|
+
},
|
|
3647
3667
|
"static_host:build:get": {
|
|
3648
3668
|
"aliases": [],
|
|
3649
3669
|
"args": {
|
|
@@ -3824,5 +3844,5 @@
|
|
|
3824
3844
|
]
|
|
3825
3845
|
}
|
|
3826
3846
|
},
|
|
3827
|
-
"version": "0.0.
|
|
3847
|
+
"version": "0.0.28"
|
|
3828
3848
|
}
|