@xano/cli 0.0.76 → 0.0.78
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
|
@@ -100,16 +100,14 @@
|
|
|
100
100
|
"index.js"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
|
-
"
|
|
103
|
+
"branch:create": {
|
|
104
104
|
"aliases": [],
|
|
105
105
|
"args": {},
|
|
106
|
-
"description": "Create a new
|
|
106
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
107
107
|
"examples": [
|
|
108
|
-
"$ xano
|
|
109
|
-
"$ xano
|
|
110
|
-
"$ xano
|
|
111
|
-
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
112
|
-
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
108
|
+
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
109
|
+
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
110
|
+
"$ 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"
|
|
113
111
|
],
|
|
114
112
|
"flags": {
|
|
115
113
|
"profile": {
|
|
@@ -131,29 +129,33 @@
|
|
|
131
129
|
"allowNo": false,
|
|
132
130
|
"type": "boolean"
|
|
133
131
|
},
|
|
134
|
-
"
|
|
135
|
-
"char": "
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
],
|
|
139
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
140
|
-
"name": "edit",
|
|
132
|
+
"color": {
|
|
133
|
+
"char": "c",
|
|
134
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
135
|
+
"name": "color",
|
|
141
136
|
"required": false,
|
|
142
|
-
"
|
|
143
|
-
"
|
|
137
|
+
"hasDynamicHelp": false,
|
|
138
|
+
"multiple": false,
|
|
139
|
+
"type": "option"
|
|
144
140
|
},
|
|
145
|
-
"
|
|
146
|
-
"char": "
|
|
147
|
-
"description": "
|
|
148
|
-
"
|
|
149
|
-
"stdin"
|
|
150
|
-
],
|
|
151
|
-
"name": "file",
|
|
141
|
+
"description": {
|
|
142
|
+
"char": "d",
|
|
143
|
+
"description": "Description for the new branch",
|
|
144
|
+
"name": "description",
|
|
152
145
|
"required": false,
|
|
153
146
|
"hasDynamicHelp": false,
|
|
154
147
|
"multiple": false,
|
|
155
148
|
"type": "option"
|
|
156
149
|
},
|
|
150
|
+
"label": {
|
|
151
|
+
"char": "l",
|
|
152
|
+
"description": "Label for the new branch",
|
|
153
|
+
"name": "label",
|
|
154
|
+
"required": true,
|
|
155
|
+
"hasDynamicHelp": false,
|
|
156
|
+
"multiple": false,
|
|
157
|
+
"type": "option"
|
|
158
|
+
},
|
|
157
159
|
"output": {
|
|
158
160
|
"char": "o",
|
|
159
161
|
"description": "Output format",
|
|
@@ -168,20 +170,19 @@
|
|
|
168
170
|
],
|
|
169
171
|
"type": "option"
|
|
170
172
|
},
|
|
171
|
-
"
|
|
173
|
+
"source": {
|
|
172
174
|
"char": "s",
|
|
173
|
-
"description": "
|
|
174
|
-
"
|
|
175
|
-
"file"
|
|
176
|
-
],
|
|
177
|
-
"name": "stdin",
|
|
175
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
176
|
+
"name": "source",
|
|
178
177
|
"required": false,
|
|
179
|
-
"
|
|
180
|
-
"
|
|
178
|
+
"default": "v1",
|
|
179
|
+
"hasDynamicHelp": false,
|
|
180
|
+
"multiple": false,
|
|
181
|
+
"type": "option"
|
|
181
182
|
},
|
|
182
183
|
"workspace": {
|
|
183
184
|
"char": "w",
|
|
184
|
-
"description": "Workspace ID (
|
|
185
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
185
186
|
"name": "workspace",
|
|
186
187
|
"required": false,
|
|
187
188
|
"hasDynamicHelp": false,
|
|
@@ -191,7 +192,7 @@
|
|
|
191
192
|
},
|
|
192
193
|
"hasDynamicHelp": false,
|
|
193
194
|
"hiddenAliases": [],
|
|
194
|
-
"id": "
|
|
195
|
+
"id": "branch:create",
|
|
195
196
|
"pluginAlias": "@xano/cli",
|
|
196
197
|
"pluginName": "@xano/cli",
|
|
197
198
|
"pluginType": "core",
|
|
@@ -201,30 +202,25 @@
|
|
|
201
202
|
"relativePath": [
|
|
202
203
|
"dist",
|
|
203
204
|
"commands",
|
|
204
|
-
"
|
|
205
|
+
"branch",
|
|
205
206
|
"create",
|
|
206
207
|
"index.js"
|
|
207
208
|
]
|
|
208
209
|
},
|
|
209
|
-
"
|
|
210
|
+
"branch:delete": {
|
|
210
211
|
"aliases": [],
|
|
211
212
|
"args": {
|
|
212
|
-
"
|
|
213
|
-
"description": "
|
|
214
|
-
"name": "
|
|
215
|
-
"required":
|
|
213
|
+
"branch_label": {
|
|
214
|
+
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
215
|
+
"name": "branch_label",
|
|
216
|
+
"required": true
|
|
216
217
|
}
|
|
217
218
|
},
|
|
218
|
-
"description": "
|
|
219
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
219
220
|
"examples": [
|
|
220
|
-
"$ xano
|
|
221
|
-
"$ xano
|
|
222
|
-
"$ xano
|
|
223
|
-
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
224
|
-
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
225
|
-
"$ 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",
|
|
226
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
227
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
221
|
+
"$ 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",
|
|
222
|
+
"$ xano branch delete dev --force\nDeleted branch: dev\n",
|
|
223
|
+
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
228
224
|
],
|
|
229
225
|
"flags": {
|
|
230
226
|
"profile": {
|
|
@@ -246,26 +242,14 @@
|
|
|
246
242
|
"allowNo": false,
|
|
247
243
|
"type": "boolean"
|
|
248
244
|
},
|
|
249
|
-
"
|
|
250
|
-
"char": "
|
|
251
|
-
"description": "
|
|
252
|
-
"name": "
|
|
245
|
+
"force": {
|
|
246
|
+
"char": "f",
|
|
247
|
+
"description": "Skip confirmation prompt",
|
|
248
|
+
"name": "force",
|
|
253
249
|
"required": false,
|
|
254
250
|
"allowNo": false,
|
|
255
251
|
"type": "boolean"
|
|
256
252
|
},
|
|
257
|
-
"file": {
|
|
258
|
-
"char": "f",
|
|
259
|
-
"description": "Path to file containing XanoScript code",
|
|
260
|
-
"exclusive": [
|
|
261
|
-
"stdin"
|
|
262
|
-
],
|
|
263
|
-
"name": "file",
|
|
264
|
-
"required": false,
|
|
265
|
-
"hasDynamicHelp": false,
|
|
266
|
-
"multiple": false,
|
|
267
|
-
"type": "option"
|
|
268
|
-
},
|
|
269
253
|
"output": {
|
|
270
254
|
"char": "o",
|
|
271
255
|
"description": "Output format",
|
|
@@ -280,27 +264,9 @@
|
|
|
280
264
|
],
|
|
281
265
|
"type": "option"
|
|
282
266
|
},
|
|
283
|
-
"publish": {
|
|
284
|
-
"description": "Publish the function after editing",
|
|
285
|
-
"name": "publish",
|
|
286
|
-
"required": false,
|
|
287
|
-
"allowNo": false,
|
|
288
|
-
"type": "boolean"
|
|
289
|
-
},
|
|
290
|
-
"stdin": {
|
|
291
|
-
"char": "s",
|
|
292
|
-
"description": "Read XanoScript code from stdin",
|
|
293
|
-
"exclusive": [
|
|
294
|
-
"file"
|
|
295
|
-
],
|
|
296
|
-
"name": "stdin",
|
|
297
|
-
"required": false,
|
|
298
|
-
"allowNo": false,
|
|
299
|
-
"type": "boolean"
|
|
300
|
-
},
|
|
301
267
|
"workspace": {
|
|
302
268
|
"char": "w",
|
|
303
|
-
"description": "Workspace ID (
|
|
269
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
304
270
|
"name": "workspace",
|
|
305
271
|
"required": false,
|
|
306
272
|
"hasDynamicHelp": false,
|
|
@@ -310,7 +276,7 @@
|
|
|
310
276
|
},
|
|
311
277
|
"hasDynamicHelp": false,
|
|
312
278
|
"hiddenAliases": [],
|
|
313
|
-
"id": "
|
|
279
|
+
"id": "branch:delete",
|
|
314
280
|
"pluginAlias": "@xano/cli",
|
|
315
281
|
"pluginName": "@xano/cli",
|
|
316
282
|
"pluginType": "core",
|
|
@@ -320,28 +286,25 @@
|
|
|
320
286
|
"relativePath": [
|
|
321
287
|
"dist",
|
|
322
288
|
"commands",
|
|
323
|
-
"
|
|
324
|
-
"
|
|
289
|
+
"branch",
|
|
290
|
+
"delete",
|
|
325
291
|
"index.js"
|
|
326
292
|
]
|
|
327
293
|
},
|
|
328
|
-
"
|
|
294
|
+
"branch:edit": {
|
|
329
295
|
"aliases": [],
|
|
330
296
|
"args": {
|
|
331
|
-
"
|
|
332
|
-
"description": "
|
|
333
|
-
"name": "
|
|
334
|
-
"required":
|
|
297
|
+
"branch_label": {
|
|
298
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
299
|
+
"name": "branch_label",
|
|
300
|
+
"required": true
|
|
335
301
|
}
|
|
336
302
|
},
|
|
337
|
-
"description": "
|
|
303
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
338
304
|
"examples": [
|
|
339
|
-
"$ xano
|
|
340
|
-
"$ xano
|
|
341
|
-
"$ xano
|
|
342
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
343
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
344
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
305
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
306
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
307
|
+
"$ 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"
|
|
345
308
|
],
|
|
346
309
|
"flags": {
|
|
347
310
|
"profile": {
|
|
@@ -363,19 +326,32 @@
|
|
|
363
326
|
"allowNo": false,
|
|
364
327
|
"type": "boolean"
|
|
365
328
|
},
|
|
366
|
-
"
|
|
367
|
-
"
|
|
368
|
-
"
|
|
329
|
+
"color": {
|
|
330
|
+
"char": "c",
|
|
331
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
332
|
+
"name": "color",
|
|
369
333
|
"required": false,
|
|
370
|
-
"
|
|
371
|
-
"
|
|
334
|
+
"hasDynamicHelp": false,
|
|
335
|
+
"multiple": false,
|
|
336
|
+
"type": "option"
|
|
372
337
|
},
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
338
|
+
"description": {
|
|
339
|
+
"char": "d",
|
|
340
|
+
"description": "New description for the branch",
|
|
341
|
+
"name": "description",
|
|
376
342
|
"required": false,
|
|
377
|
-
"
|
|
378
|
-
"
|
|
343
|
+
"hasDynamicHelp": false,
|
|
344
|
+
"multiple": false,
|
|
345
|
+
"type": "option"
|
|
346
|
+
},
|
|
347
|
+
"label": {
|
|
348
|
+
"char": "l",
|
|
349
|
+
"description": "New label for the branch",
|
|
350
|
+
"name": "label",
|
|
351
|
+
"required": false,
|
|
352
|
+
"hasDynamicHelp": false,
|
|
353
|
+
"multiple": false,
|
|
354
|
+
"type": "option"
|
|
379
355
|
},
|
|
380
356
|
"output": {
|
|
381
357
|
"char": "o",
|
|
@@ -387,14 +363,13 @@
|
|
|
387
363
|
"multiple": false,
|
|
388
364
|
"options": [
|
|
389
365
|
"summary",
|
|
390
|
-
"json"
|
|
391
|
-
"xs"
|
|
366
|
+
"json"
|
|
392
367
|
],
|
|
393
368
|
"type": "option"
|
|
394
369
|
},
|
|
395
370
|
"workspace": {
|
|
396
371
|
"char": "w",
|
|
397
|
-
"description": "Workspace ID (
|
|
372
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
398
373
|
"name": "workspace",
|
|
399
374
|
"required": false,
|
|
400
375
|
"hasDynamicHelp": false,
|
|
@@ -404,7 +379,7 @@
|
|
|
404
379
|
},
|
|
405
380
|
"hasDynamicHelp": false,
|
|
406
381
|
"hiddenAliases": [],
|
|
407
|
-
"id": "
|
|
382
|
+
"id": "branch:edit",
|
|
408
383
|
"pluginAlias": "@xano/cli",
|
|
409
384
|
"pluginName": "@xano/cli",
|
|
410
385
|
"pluginType": "core",
|
|
@@ -414,18 +389,25 @@
|
|
|
414
389
|
"relativePath": [
|
|
415
390
|
"dist",
|
|
416
391
|
"commands",
|
|
417
|
-
"
|
|
418
|
-
"
|
|
392
|
+
"branch",
|
|
393
|
+
"edit",
|
|
419
394
|
"index.js"
|
|
420
395
|
]
|
|
421
396
|
},
|
|
422
|
-
"
|
|
397
|
+
"branch:set_live": {
|
|
423
398
|
"aliases": [],
|
|
424
|
-
"args": {
|
|
425
|
-
|
|
399
|
+
"args": {
|
|
400
|
+
"branch_label": {
|
|
401
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
402
|
+
"name": "branch_label",
|
|
403
|
+
"required": true
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
426
407
|
"examples": [
|
|
427
|
-
"$ xano
|
|
428
|
-
"$ xano
|
|
408
|
+
"$ 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",
|
|
409
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
410
|
+
"$ 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"
|
|
429
411
|
],
|
|
430
412
|
"flags": {
|
|
431
413
|
"profile": {
|
|
@@ -447,6 +429,14 @@
|
|
|
447
429
|
"allowNo": false,
|
|
448
430
|
"type": "boolean"
|
|
449
431
|
},
|
|
432
|
+
"force": {
|
|
433
|
+
"char": "f",
|
|
434
|
+
"description": "Skip confirmation prompt",
|
|
435
|
+
"name": "force",
|
|
436
|
+
"required": false,
|
|
437
|
+
"allowNo": false,
|
|
438
|
+
"type": "boolean"
|
|
439
|
+
},
|
|
450
440
|
"output": {
|
|
451
441
|
"char": "o",
|
|
452
442
|
"description": "Output format",
|
|
@@ -460,11 +450,20 @@
|
|
|
460
450
|
"json"
|
|
461
451
|
],
|
|
462
452
|
"type": "option"
|
|
453
|
+
},
|
|
454
|
+
"workspace": {
|
|
455
|
+
"char": "w",
|
|
456
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
457
|
+
"name": "workspace",
|
|
458
|
+
"required": false,
|
|
459
|
+
"hasDynamicHelp": false,
|
|
460
|
+
"multiple": false,
|
|
461
|
+
"type": "option"
|
|
463
462
|
}
|
|
464
463
|
},
|
|
465
464
|
"hasDynamicHelp": false,
|
|
466
465
|
"hiddenAliases": [],
|
|
467
|
-
"id": "
|
|
466
|
+
"id": "branch:set_live",
|
|
468
467
|
"pluginAlias": "@xano/cli",
|
|
469
468
|
"pluginName": "@xano/cli",
|
|
470
469
|
"pluginType": "core",
|
|
@@ -474,24 +473,25 @@
|
|
|
474
473
|
"relativePath": [
|
|
475
474
|
"dist",
|
|
476
475
|
"commands",
|
|
477
|
-
"
|
|
478
|
-
"
|
|
476
|
+
"branch",
|
|
477
|
+
"set_live",
|
|
479
478
|
"index.js"
|
|
480
479
|
]
|
|
481
480
|
},
|
|
482
|
-
"
|
|
481
|
+
"branch:list": {
|
|
483
482
|
"aliases": [],
|
|
484
483
|
"args": {
|
|
485
|
-
"
|
|
486
|
-
"description": "
|
|
487
|
-
"name": "
|
|
488
|
-
"required":
|
|
484
|
+
"workspace_id": {
|
|
485
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
486
|
+
"name": "workspace_id",
|
|
487
|
+
"required": false
|
|
489
488
|
}
|
|
490
489
|
},
|
|
491
|
-
"description": "
|
|
490
|
+
"description": "List all branches in a workspace",
|
|
492
491
|
"examples": [
|
|
493
|
-
"$ xano
|
|
494
|
-
"$ xano
|
|
492
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
493
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
494
|
+
"$ 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"
|
|
495
495
|
],
|
|
496
496
|
"flags": {
|
|
497
497
|
"profile": {
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
},
|
|
531
531
|
"hasDynamicHelp": false,
|
|
532
532
|
"hiddenAliases": [],
|
|
533
|
-
"id": "
|
|
533
|
+
"id": "branch:list",
|
|
534
534
|
"pluginAlias": "@xano/cli",
|
|
535
535
|
"pluginName": "@xano/cli",
|
|
536
536
|
"pluginType": "core",
|
|
@@ -540,19 +540,21 @@
|
|
|
540
540
|
"relativePath": [
|
|
541
541
|
"dist",
|
|
542
542
|
"commands",
|
|
543
|
-
"
|
|
544
|
-
"
|
|
543
|
+
"branch",
|
|
544
|
+
"list",
|
|
545
545
|
"index.js"
|
|
546
546
|
]
|
|
547
547
|
},
|
|
548
|
-
"
|
|
548
|
+
"function:create": {
|
|
549
549
|
"aliases": [],
|
|
550
550
|
"args": {},
|
|
551
|
-
"description": "Create a new
|
|
551
|
+
"description": "Create a new function in a workspace",
|
|
552
552
|
"examples": [
|
|
553
|
-
"$ xano
|
|
554
|
-
"$ xano
|
|
555
|
-
"$ xano
|
|
553
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
554
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
555
|
+
"$ 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",
|
|
556
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
557
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
556
558
|
],
|
|
557
559
|
"flags": {
|
|
558
560
|
"profile": {
|
|
@@ -574,33 +576,29 @@
|
|
|
574
576
|
"allowNo": false,
|
|
575
577
|
"type": "boolean"
|
|
576
578
|
},
|
|
577
|
-
"
|
|
578
|
-
"char": "
|
|
579
|
-
"
|
|
580
|
-
|
|
579
|
+
"edit": {
|
|
580
|
+
"char": "e",
|
|
581
|
+
"dependsOn": [
|
|
582
|
+
"file"
|
|
583
|
+
],
|
|
584
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
585
|
+
"name": "edit",
|
|
581
586
|
"required": false,
|
|
582
|
-
"
|
|
583
|
-
"
|
|
584
|
-
"type": "option"
|
|
587
|
+
"allowNo": false,
|
|
588
|
+
"type": "boolean"
|
|
585
589
|
},
|
|
586
|
-
"
|
|
587
|
-
"char": "
|
|
588
|
-
"description": "
|
|
589
|
-
"
|
|
590
|
+
"file": {
|
|
591
|
+
"char": "f",
|
|
592
|
+
"description": "Path to file containing XanoScript code",
|
|
593
|
+
"exclusive": [
|
|
594
|
+
"stdin"
|
|
595
|
+
],
|
|
596
|
+
"name": "file",
|
|
590
597
|
"required": false,
|
|
591
598
|
"hasDynamicHelp": false,
|
|
592
599
|
"multiple": false,
|
|
593
600
|
"type": "option"
|
|
594
601
|
},
|
|
595
|
-
"label": {
|
|
596
|
-
"char": "l",
|
|
597
|
-
"description": "Label for the new branch",
|
|
598
|
-
"name": "label",
|
|
599
|
-
"required": true,
|
|
600
|
-
"hasDynamicHelp": false,
|
|
601
|
-
"multiple": false,
|
|
602
|
-
"type": "option"
|
|
603
|
-
},
|
|
604
602
|
"output": {
|
|
605
603
|
"char": "o",
|
|
606
604
|
"description": "Output format",
|
|
@@ -615,19 +613,20 @@
|
|
|
615
613
|
],
|
|
616
614
|
"type": "option"
|
|
617
615
|
},
|
|
618
|
-
"
|
|
616
|
+
"stdin": {
|
|
619
617
|
"char": "s",
|
|
620
|
-
"description": "
|
|
621
|
-
"
|
|
618
|
+
"description": "Read XanoScript code from stdin",
|
|
619
|
+
"exclusive": [
|
|
620
|
+
"file"
|
|
621
|
+
],
|
|
622
|
+
"name": "stdin",
|
|
622
623
|
"required": false,
|
|
623
|
-
"
|
|
624
|
-
"
|
|
625
|
-
"multiple": false,
|
|
626
|
-
"type": "option"
|
|
624
|
+
"allowNo": false,
|
|
625
|
+
"type": "boolean"
|
|
627
626
|
},
|
|
628
627
|
"workspace": {
|
|
629
628
|
"char": "w",
|
|
630
|
-
"description": "Workspace ID (
|
|
629
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
631
630
|
"name": "workspace",
|
|
632
631
|
"required": false,
|
|
633
632
|
"hasDynamicHelp": false,
|
|
@@ -637,7 +636,7 @@
|
|
|
637
636
|
},
|
|
638
637
|
"hasDynamicHelp": false,
|
|
639
638
|
"hiddenAliases": [],
|
|
640
|
-
"id": "
|
|
639
|
+
"id": "function:create",
|
|
641
640
|
"pluginAlias": "@xano/cli",
|
|
642
641
|
"pluginName": "@xano/cli",
|
|
643
642
|
"pluginType": "core",
|
|
@@ -647,25 +646,30 @@
|
|
|
647
646
|
"relativePath": [
|
|
648
647
|
"dist",
|
|
649
648
|
"commands",
|
|
650
|
-
"
|
|
649
|
+
"function",
|
|
651
650
|
"create",
|
|
652
651
|
"index.js"
|
|
653
652
|
]
|
|
654
653
|
},
|
|
655
|
-
"
|
|
654
|
+
"function:edit": {
|
|
656
655
|
"aliases": [],
|
|
657
656
|
"args": {
|
|
658
|
-
"
|
|
659
|
-
"description": "
|
|
660
|
-
"name": "
|
|
661
|
-
"required":
|
|
657
|
+
"function_id": {
|
|
658
|
+
"description": "Function ID to edit",
|
|
659
|
+
"name": "function_id",
|
|
660
|
+
"required": false
|
|
662
661
|
}
|
|
663
662
|
},
|
|
664
|
-
"description": "
|
|
663
|
+
"description": "Edit a function in a workspace",
|
|
665
664
|
"examples": [
|
|
666
|
-
"$ xano
|
|
667
|
-
"$ xano
|
|
668
|
-
"$ xano
|
|
665
|
+
"$ 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",
|
|
666
|
+
"$ 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",
|
|
667
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
668
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
669
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
670
|
+
"$ 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",
|
|
671
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
672
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
669
673
|
],
|
|
670
674
|
"flags": {
|
|
671
675
|
"profile": {
|
|
@@ -687,14 +691,26 @@
|
|
|
687
691
|
"allowNo": false,
|
|
688
692
|
"type": "boolean"
|
|
689
693
|
},
|
|
690
|
-
"
|
|
691
|
-
"char": "
|
|
692
|
-
"description": "
|
|
693
|
-
"name": "
|
|
694
|
+
"edit": {
|
|
695
|
+
"char": "e",
|
|
696
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
697
|
+
"name": "edit",
|
|
694
698
|
"required": false,
|
|
695
699
|
"allowNo": false,
|
|
696
700
|
"type": "boolean"
|
|
697
701
|
},
|
|
702
|
+
"file": {
|
|
703
|
+
"char": "f",
|
|
704
|
+
"description": "Path to file containing XanoScript code",
|
|
705
|
+
"exclusive": [
|
|
706
|
+
"stdin"
|
|
707
|
+
],
|
|
708
|
+
"name": "file",
|
|
709
|
+
"required": false,
|
|
710
|
+
"hasDynamicHelp": false,
|
|
711
|
+
"multiple": false,
|
|
712
|
+
"type": "option"
|
|
713
|
+
},
|
|
698
714
|
"output": {
|
|
699
715
|
"char": "o",
|
|
700
716
|
"description": "Output format",
|
|
@@ -709,9 +725,27 @@
|
|
|
709
725
|
],
|
|
710
726
|
"type": "option"
|
|
711
727
|
},
|
|
728
|
+
"publish": {
|
|
729
|
+
"description": "Publish the function after editing",
|
|
730
|
+
"name": "publish",
|
|
731
|
+
"required": false,
|
|
732
|
+
"allowNo": false,
|
|
733
|
+
"type": "boolean"
|
|
734
|
+
},
|
|
735
|
+
"stdin": {
|
|
736
|
+
"char": "s",
|
|
737
|
+
"description": "Read XanoScript code from stdin",
|
|
738
|
+
"exclusive": [
|
|
739
|
+
"file"
|
|
740
|
+
],
|
|
741
|
+
"name": "stdin",
|
|
742
|
+
"required": false,
|
|
743
|
+
"allowNo": false,
|
|
744
|
+
"type": "boolean"
|
|
745
|
+
},
|
|
712
746
|
"workspace": {
|
|
713
747
|
"char": "w",
|
|
714
|
-
"description": "Workspace ID (
|
|
748
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
715
749
|
"name": "workspace",
|
|
716
750
|
"required": false,
|
|
717
751
|
"hasDynamicHelp": false,
|
|
@@ -721,7 +755,7 @@
|
|
|
721
755
|
},
|
|
722
756
|
"hasDynamicHelp": false,
|
|
723
757
|
"hiddenAliases": [],
|
|
724
|
-
"id": "
|
|
758
|
+
"id": "function:edit",
|
|
725
759
|
"pluginAlias": "@xano/cli",
|
|
726
760
|
"pluginName": "@xano/cli",
|
|
727
761
|
"pluginType": "core",
|
|
@@ -731,25 +765,28 @@
|
|
|
731
765
|
"relativePath": [
|
|
732
766
|
"dist",
|
|
733
767
|
"commands",
|
|
734
|
-
"
|
|
735
|
-
"
|
|
768
|
+
"function",
|
|
769
|
+
"edit",
|
|
736
770
|
"index.js"
|
|
737
771
|
]
|
|
738
772
|
},
|
|
739
|
-
"
|
|
773
|
+
"function:get": {
|
|
740
774
|
"aliases": [],
|
|
741
775
|
"args": {
|
|
742
|
-
"
|
|
743
|
-
"description": "
|
|
744
|
-
"name": "
|
|
745
|
-
"required":
|
|
776
|
+
"function_id": {
|
|
777
|
+
"description": "Function ID",
|
|
778
|
+
"name": "function_id",
|
|
779
|
+
"required": false
|
|
746
780
|
}
|
|
747
781
|
},
|
|
748
|
-
"description": "
|
|
782
|
+
"description": "Get a specific function from a workspace",
|
|
749
783
|
"examples": [
|
|
750
|
-
"$ xano
|
|
751
|
-
"$ xano
|
|
752
|
-
"$ xano
|
|
784
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
785
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
786
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
787
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
788
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
789
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
753
790
|
],
|
|
754
791
|
"flags": {
|
|
755
792
|
"profile": {
|
|
@@ -771,32 +808,19 @@
|
|
|
771
808
|
"allowNo": false,
|
|
772
809
|
"type": "boolean"
|
|
773
810
|
},
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
"
|
|
777
|
-
"name": "color",
|
|
778
|
-
"required": false,
|
|
779
|
-
"hasDynamicHelp": false,
|
|
780
|
-
"multiple": false,
|
|
781
|
-
"type": "option"
|
|
782
|
-
},
|
|
783
|
-
"description": {
|
|
784
|
-
"char": "d",
|
|
785
|
-
"description": "New description for the branch",
|
|
786
|
-
"name": "description",
|
|
811
|
+
"include_draft": {
|
|
812
|
+
"description": "Include draft version",
|
|
813
|
+
"name": "include_draft",
|
|
787
814
|
"required": false,
|
|
788
|
-
"
|
|
789
|
-
"
|
|
790
|
-
"type": "option"
|
|
815
|
+
"allowNo": false,
|
|
816
|
+
"type": "boolean"
|
|
791
817
|
},
|
|
792
|
-
"
|
|
793
|
-
"
|
|
794
|
-
"
|
|
795
|
-
"name": "label",
|
|
818
|
+
"include_xanoscript": {
|
|
819
|
+
"description": "Include XanoScript in response",
|
|
820
|
+
"name": "include_xanoscript",
|
|
796
821
|
"required": false,
|
|
797
|
-
"
|
|
798
|
-
"
|
|
799
|
-
"type": "option"
|
|
822
|
+
"allowNo": false,
|
|
823
|
+
"type": "boolean"
|
|
800
824
|
},
|
|
801
825
|
"output": {
|
|
802
826
|
"char": "o",
|
|
@@ -808,13 +832,14 @@
|
|
|
808
832
|
"multiple": false,
|
|
809
833
|
"options": [
|
|
810
834
|
"summary",
|
|
811
|
-
"json"
|
|
835
|
+
"json",
|
|
836
|
+
"xs"
|
|
812
837
|
],
|
|
813
838
|
"type": "option"
|
|
814
839
|
},
|
|
815
840
|
"workspace": {
|
|
816
841
|
"char": "w",
|
|
817
|
-
"description": "Workspace ID (
|
|
842
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
818
843
|
"name": "workspace",
|
|
819
844
|
"required": false,
|
|
820
845
|
"hasDynamicHelp": false,
|
|
@@ -824,7 +849,7 @@
|
|
|
824
849
|
},
|
|
825
850
|
"hasDynamicHelp": false,
|
|
826
851
|
"hiddenAliases": [],
|
|
827
|
-
"id": "
|
|
852
|
+
"id": "function:get",
|
|
828
853
|
"pluginAlias": "@xano/cli",
|
|
829
854
|
"pluginName": "@xano/cli",
|
|
830
855
|
"pluginType": "core",
|
|
@@ -834,25 +859,20 @@
|
|
|
834
859
|
"relativePath": [
|
|
835
860
|
"dist",
|
|
836
861
|
"commands",
|
|
837
|
-
"
|
|
838
|
-
"
|
|
862
|
+
"function",
|
|
863
|
+
"get",
|
|
839
864
|
"index.js"
|
|
840
865
|
]
|
|
841
866
|
},
|
|
842
|
-
"
|
|
867
|
+
"function:list": {
|
|
843
868
|
"aliases": [],
|
|
844
|
-
"args": {
|
|
845
|
-
|
|
846
|
-
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
847
|
-
"name": "branch_label",
|
|
848
|
-
"required": true
|
|
849
|
-
}
|
|
850
|
-
},
|
|
851
|
-
"description": "Get details for a specific branch",
|
|
869
|
+
"args": {},
|
|
870
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
852
871
|
"examples": [
|
|
853
|
-
"$ xano
|
|
854
|
-
"$ xano
|
|
855
|
-
"$ xano
|
|
872
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
873
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
874
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
875
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
856
876
|
],
|
|
857
877
|
"flags": {
|
|
858
878
|
"profile": {
|
|
@@ -874,23 +894,77 @@
|
|
|
874
894
|
"allowNo": false,
|
|
875
895
|
"type": "boolean"
|
|
876
896
|
},
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
"name": "output",
|
|
897
|
+
"include_draft": {
|
|
898
|
+
"description": "Include draft functions",
|
|
899
|
+
"name": "include_draft",
|
|
881
900
|
"required": false,
|
|
882
|
-
"
|
|
901
|
+
"allowNo": false,
|
|
902
|
+
"type": "boolean"
|
|
903
|
+
},
|
|
904
|
+
"include_xanoscript": {
|
|
905
|
+
"description": "Include XanoScript in response",
|
|
906
|
+
"name": "include_xanoscript",
|
|
907
|
+
"required": false,
|
|
908
|
+
"allowNo": false,
|
|
909
|
+
"type": "boolean"
|
|
910
|
+
},
|
|
911
|
+
"order": {
|
|
912
|
+
"description": "Sort order",
|
|
913
|
+
"name": "order",
|
|
914
|
+
"required": false,
|
|
915
|
+
"default": "desc",
|
|
883
916
|
"hasDynamicHelp": false,
|
|
884
917
|
"multiple": false,
|
|
885
918
|
"options": [
|
|
886
|
-
"
|
|
919
|
+
"asc",
|
|
920
|
+
"desc"
|
|
921
|
+
],
|
|
922
|
+
"type": "option"
|
|
923
|
+
},
|
|
924
|
+
"output": {
|
|
925
|
+
"char": "o",
|
|
926
|
+
"description": "Output format",
|
|
927
|
+
"name": "output",
|
|
928
|
+
"required": false,
|
|
929
|
+
"default": "summary",
|
|
930
|
+
"hasDynamicHelp": false,
|
|
931
|
+
"multiple": false,
|
|
932
|
+
"options": [
|
|
933
|
+
"summary",
|
|
887
934
|
"json"
|
|
888
935
|
],
|
|
889
936
|
"type": "option"
|
|
890
937
|
},
|
|
938
|
+
"page": {
|
|
939
|
+
"description": "Page number for pagination",
|
|
940
|
+
"name": "page",
|
|
941
|
+
"required": false,
|
|
942
|
+
"default": 1,
|
|
943
|
+
"hasDynamicHelp": false,
|
|
944
|
+
"multiple": false,
|
|
945
|
+
"type": "option"
|
|
946
|
+
},
|
|
947
|
+
"per_page": {
|
|
948
|
+
"description": "Number of results per page",
|
|
949
|
+
"name": "per_page",
|
|
950
|
+
"required": false,
|
|
951
|
+
"default": 50,
|
|
952
|
+
"hasDynamicHelp": false,
|
|
953
|
+
"multiple": false,
|
|
954
|
+
"type": "option"
|
|
955
|
+
},
|
|
956
|
+
"sort": {
|
|
957
|
+
"description": "Sort field",
|
|
958
|
+
"name": "sort",
|
|
959
|
+
"required": false,
|
|
960
|
+
"default": "created_at",
|
|
961
|
+
"hasDynamicHelp": false,
|
|
962
|
+
"multiple": false,
|
|
963
|
+
"type": "option"
|
|
964
|
+
},
|
|
891
965
|
"workspace": {
|
|
892
966
|
"char": "w",
|
|
893
|
-
"description": "Workspace ID (
|
|
967
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
894
968
|
"name": "workspace",
|
|
895
969
|
"required": false,
|
|
896
970
|
"hasDynamicHelp": false,
|
|
@@ -900,7 +974,7 @@
|
|
|
900
974
|
},
|
|
901
975
|
"hasDynamicHelp": false,
|
|
902
976
|
"hiddenAliases": [],
|
|
903
|
-
"id": "
|
|
977
|
+
"id": "function:list",
|
|
904
978
|
"pluginAlias": "@xano/cli",
|
|
905
979
|
"pluginName": "@xano/cli",
|
|
906
980
|
"pluginType": "core",
|
|
@@ -910,25 +984,24 @@
|
|
|
910
984
|
"relativePath": [
|
|
911
985
|
"dist",
|
|
912
986
|
"commands",
|
|
913
|
-
"
|
|
914
|
-
"
|
|
987
|
+
"function",
|
|
988
|
+
"list",
|
|
915
989
|
"index.js"
|
|
916
990
|
]
|
|
917
991
|
},
|
|
918
|
-
"
|
|
992
|
+
"platform:get": {
|
|
919
993
|
"aliases": [],
|
|
920
994
|
"args": {
|
|
921
|
-
"
|
|
922
|
-
"description": "
|
|
923
|
-
"name": "
|
|
995
|
+
"platform_id": {
|
|
996
|
+
"description": "Platform ID to retrieve",
|
|
997
|
+
"name": "platform_id",
|
|
924
998
|
"required": true
|
|
925
999
|
}
|
|
926
1000
|
},
|
|
927
|
-
"description": "
|
|
1001
|
+
"description": "Get details of a specific platform",
|
|
928
1002
|
"examples": [
|
|
929
|
-
"$ xano
|
|
930
|
-
"$ xano
|
|
931
|
-
"$ 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"
|
|
1003
|
+
"$ xano platform get 23629\nPlatform ID: 23629\n Created: 2025-11-28\n Helm: 0.1.356\n Images:\n backend 0.0.2985\n frontend 0.1.3427\n database 0.1.6\n node 0.1.192\n deno 0.0.212\n redis 0.1.34\n realtime 0.1.149\n standalone 0.0.2456\n playwright 0.0.992\n static 0.0.10\n static-build 0.0.4\n backend-encoded 0.0.1396\n",
|
|
1004
|
+
"$ xano platform get 23629 -o json"
|
|
932
1005
|
],
|
|
933
1006
|
"flags": {
|
|
934
1007
|
"profile": {
|
|
@@ -950,14 +1023,6 @@
|
|
|
950
1023
|
"allowNo": false,
|
|
951
1024
|
"type": "boolean"
|
|
952
1025
|
},
|
|
953
|
-
"force": {
|
|
954
|
-
"char": "f",
|
|
955
|
-
"description": "Skip confirmation prompt",
|
|
956
|
-
"name": "force",
|
|
957
|
-
"required": false,
|
|
958
|
-
"allowNo": false,
|
|
959
|
-
"type": "boolean"
|
|
960
|
-
},
|
|
961
1026
|
"output": {
|
|
962
1027
|
"char": "o",
|
|
963
1028
|
"description": "Output format",
|
|
@@ -971,20 +1036,11 @@
|
|
|
971
1036
|
"json"
|
|
972
1037
|
],
|
|
973
1038
|
"type": "option"
|
|
974
|
-
},
|
|
975
|
-
"workspace": {
|
|
976
|
-
"char": "w",
|
|
977
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
978
|
-
"name": "workspace",
|
|
979
|
-
"required": false,
|
|
980
|
-
"hasDynamicHelp": false,
|
|
981
|
-
"multiple": false,
|
|
982
|
-
"type": "option"
|
|
983
1039
|
}
|
|
984
1040
|
},
|
|
985
1041
|
"hasDynamicHelp": false,
|
|
986
1042
|
"hiddenAliases": [],
|
|
987
|
-
"id": "
|
|
1043
|
+
"id": "platform:get",
|
|
988
1044
|
"pluginAlias": "@xano/cli",
|
|
989
1045
|
"pluginName": "@xano/cli",
|
|
990
1046
|
"pluginType": "core",
|
|
@@ -994,25 +1050,18 @@
|
|
|
994
1050
|
"relativePath": [
|
|
995
1051
|
"dist",
|
|
996
1052
|
"commands",
|
|
997
|
-
"
|
|
998
|
-
"
|
|
1053
|
+
"platform",
|
|
1054
|
+
"get",
|
|
999
1055
|
"index.js"
|
|
1000
1056
|
]
|
|
1001
1057
|
},
|
|
1002
|
-
"
|
|
1058
|
+
"platform:list": {
|
|
1003
1059
|
"aliases": [],
|
|
1004
|
-
"args": {
|
|
1005
|
-
|
|
1006
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1007
|
-
"name": "workspace_id",
|
|
1008
|
-
"required": false
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
"description": "List all branches in a workspace",
|
|
1060
|
+
"args": {},
|
|
1061
|
+
"description": "List all platforms",
|
|
1012
1062
|
"examples": [
|
|
1013
|
-
"$ xano
|
|
1014
|
-
"$ xano
|
|
1015
|
-
"$ 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"
|
|
1063
|
+
"$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
|
|
1064
|
+
"$ xano platform list --output json"
|
|
1016
1065
|
],
|
|
1017
1066
|
"flags": {
|
|
1018
1067
|
"profile": {
|
|
@@ -1051,7 +1100,7 @@
|
|
|
1051
1100
|
},
|
|
1052
1101
|
"hasDynamicHelp": false,
|
|
1053
1102
|
"hiddenAliases": [],
|
|
1054
|
-
"id": "
|
|
1103
|
+
"id": "platform:list",
|
|
1055
1104
|
"pluginAlias": "@xano/cli",
|
|
1056
1105
|
"pluginName": "@xano/cli",
|
|
1057
1106
|
"pluginType": "core",
|
|
@@ -1061,7 +1110,7 @@
|
|
|
1061
1110
|
"relativePath": [
|
|
1062
1111
|
"dist",
|
|
1063
1112
|
"commands",
|
|
1064
|
-
"
|
|
1113
|
+
"platform",
|
|
1065
1114
|
"list",
|
|
1066
1115
|
"index.js"
|
|
1067
1116
|
]
|
|
@@ -1456,15 +1505,51 @@
|
|
|
1456
1505
|
"index.js"
|
|
1457
1506
|
]
|
|
1458
1507
|
},
|
|
1459
|
-
"
|
|
1508
|
+
"profile:set": {
|
|
1460
1509
|
"aliases": [],
|
|
1461
|
-
"args": {
|
|
1462
|
-
|
|
1510
|
+
"args": {
|
|
1511
|
+
"name": {
|
|
1512
|
+
"description": "Profile name to set as default",
|
|
1513
|
+
"name": "name",
|
|
1514
|
+
"required": true
|
|
1515
|
+
}
|
|
1516
|
+
},
|
|
1517
|
+
"description": "Set the default profile",
|
|
1463
1518
|
"examples": [
|
|
1464
|
-
"$ xano
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1519
|
+
"$ xano profile set production\nDefault profile set to 'production'\n"
|
|
1520
|
+
],
|
|
1521
|
+
"flags": {},
|
|
1522
|
+
"hasDynamicHelp": false,
|
|
1523
|
+
"hiddenAliases": [],
|
|
1524
|
+
"id": "profile:set",
|
|
1525
|
+
"pluginAlias": "@xano/cli",
|
|
1526
|
+
"pluginName": "@xano/cli",
|
|
1527
|
+
"pluginType": "core",
|
|
1528
|
+
"strict": true,
|
|
1529
|
+
"enableJsonFlag": false,
|
|
1530
|
+
"isESM": true,
|
|
1531
|
+
"relativePath": [
|
|
1532
|
+
"dist",
|
|
1533
|
+
"commands",
|
|
1534
|
+
"profile",
|
|
1535
|
+
"set",
|
|
1536
|
+
"index.js"
|
|
1537
|
+
]
|
|
1538
|
+
},
|
|
1539
|
+
"branch:get": {
|
|
1540
|
+
"aliases": [],
|
|
1541
|
+
"args": {
|
|
1542
|
+
"branch_label": {
|
|
1543
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
1544
|
+
"name": "branch_label",
|
|
1545
|
+
"required": true
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
"description": "Get details for a specific branch",
|
|
1549
|
+
"examples": [
|
|
1550
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
1551
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
1552
|
+
"$ 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"
|
|
1468
1553
|
],
|
|
1469
1554
|
"flags": {
|
|
1470
1555
|
"profile": {
|
|
@@ -1486,33 +1571,6 @@
|
|
|
1486
1571
|
"allowNo": false,
|
|
1487
1572
|
"type": "boolean"
|
|
1488
1573
|
},
|
|
1489
|
-
"include_draft": {
|
|
1490
|
-
"description": "Include draft functions",
|
|
1491
|
-
"name": "include_draft",
|
|
1492
|
-
"required": false,
|
|
1493
|
-
"allowNo": false,
|
|
1494
|
-
"type": "boolean"
|
|
1495
|
-
},
|
|
1496
|
-
"include_xanoscript": {
|
|
1497
|
-
"description": "Include XanoScript in response",
|
|
1498
|
-
"name": "include_xanoscript",
|
|
1499
|
-
"required": false,
|
|
1500
|
-
"allowNo": false,
|
|
1501
|
-
"type": "boolean"
|
|
1502
|
-
},
|
|
1503
|
-
"order": {
|
|
1504
|
-
"description": "Sort order",
|
|
1505
|
-
"name": "order",
|
|
1506
|
-
"required": false,
|
|
1507
|
-
"default": "desc",
|
|
1508
|
-
"hasDynamicHelp": false,
|
|
1509
|
-
"multiple": false,
|
|
1510
|
-
"options": [
|
|
1511
|
-
"asc",
|
|
1512
|
-
"desc"
|
|
1513
|
-
],
|
|
1514
|
-
"type": "option"
|
|
1515
|
-
},
|
|
1516
1574
|
"output": {
|
|
1517
1575
|
"char": "o",
|
|
1518
1576
|
"description": "Output format",
|
|
@@ -1527,36 +1585,9 @@
|
|
|
1527
1585
|
],
|
|
1528
1586
|
"type": "option"
|
|
1529
1587
|
},
|
|
1530
|
-
"page": {
|
|
1531
|
-
"description": "Page number for pagination",
|
|
1532
|
-
"name": "page",
|
|
1533
|
-
"required": false,
|
|
1534
|
-
"default": 1,
|
|
1535
|
-
"hasDynamicHelp": false,
|
|
1536
|
-
"multiple": false,
|
|
1537
|
-
"type": "option"
|
|
1538
|
-
},
|
|
1539
|
-
"per_page": {
|
|
1540
|
-
"description": "Number of results per page",
|
|
1541
|
-
"name": "per_page",
|
|
1542
|
-
"required": false,
|
|
1543
|
-
"default": 50,
|
|
1544
|
-
"hasDynamicHelp": false,
|
|
1545
|
-
"multiple": false,
|
|
1546
|
-
"type": "option"
|
|
1547
|
-
},
|
|
1548
|
-
"sort": {
|
|
1549
|
-
"description": "Sort field",
|
|
1550
|
-
"name": "sort",
|
|
1551
|
-
"required": false,
|
|
1552
|
-
"default": "created_at",
|
|
1553
|
-
"hasDynamicHelp": false,
|
|
1554
|
-
"multiple": false,
|
|
1555
|
-
"type": "option"
|
|
1556
|
-
},
|
|
1557
1588
|
"workspace": {
|
|
1558
1589
|
"char": "w",
|
|
1559
|
-
"description": "Workspace ID (
|
|
1590
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1560
1591
|
"name": "workspace",
|
|
1561
1592
|
"required": false,
|
|
1562
1593
|
"hasDynamicHelp": false,
|
|
@@ -1566,38 +1597,7 @@
|
|
|
1566
1597
|
},
|
|
1567
1598
|
"hasDynamicHelp": false,
|
|
1568
1599
|
"hiddenAliases": [],
|
|
1569
|
-
"id": "
|
|
1570
|
-
"pluginAlias": "@xano/cli",
|
|
1571
|
-
"pluginName": "@xano/cli",
|
|
1572
|
-
"pluginType": "core",
|
|
1573
|
-
"strict": true,
|
|
1574
|
-
"enableJsonFlag": false,
|
|
1575
|
-
"isESM": true,
|
|
1576
|
-
"relativePath": [
|
|
1577
|
-
"dist",
|
|
1578
|
-
"commands",
|
|
1579
|
-
"function",
|
|
1580
|
-
"list",
|
|
1581
|
-
"index.js"
|
|
1582
|
-
]
|
|
1583
|
-
},
|
|
1584
|
-
"profile:set": {
|
|
1585
|
-
"aliases": [],
|
|
1586
|
-
"args": {
|
|
1587
|
-
"name": {
|
|
1588
|
-
"description": "Profile name to set as default",
|
|
1589
|
-
"name": "name",
|
|
1590
|
-
"required": true
|
|
1591
|
-
}
|
|
1592
|
-
},
|
|
1593
|
-
"description": "Set the default profile",
|
|
1594
|
-
"examples": [
|
|
1595
|
-
"$ xano profile set production\nDefault profile set to 'production'\n"
|
|
1596
|
-
],
|
|
1597
|
-
"flags": {},
|
|
1598
|
-
"hasDynamicHelp": false,
|
|
1599
|
-
"hiddenAliases": [],
|
|
1600
|
-
"id": "profile:set",
|
|
1600
|
+
"id": "branch:get",
|
|
1601
1601
|
"pluginAlias": "@xano/cli",
|
|
1602
1602
|
"pluginName": "@xano/cli",
|
|
1603
1603
|
"pluginType": "core",
|
|
@@ -1607,8 +1607,8 @@
|
|
|
1607
1607
|
"relativePath": [
|
|
1608
1608
|
"dist",
|
|
1609
1609
|
"commands",
|
|
1610
|
-
"
|
|
1611
|
-
"
|
|
1610
|
+
"branch",
|
|
1611
|
+
"get",
|
|
1612
1612
|
"index.js"
|
|
1613
1613
|
]
|
|
1614
1614
|
},
|
|
@@ -1691,13 +1691,46 @@
|
|
|
1691
1691
|
"index.js"
|
|
1692
1692
|
]
|
|
1693
1693
|
},
|
|
1694
|
-
"
|
|
1694
|
+
"profile:workspace": {
|
|
1695
1695
|
"aliases": [],
|
|
1696
1696
|
"args": {},
|
|
1697
|
-
"description": "
|
|
1697
|
+
"description": "Print the workspace ID for the default profile",
|
|
1698
1698
|
"examples": [
|
|
1699
|
-
"$ xano
|
|
1700
|
-
"$ xano
|
|
1699
|
+
"$ xano profile:workspace\nabc123-workspace-id\n",
|
|
1700
|
+
"$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
|
|
1701
|
+
],
|
|
1702
|
+
"flags": {},
|
|
1703
|
+
"hasDynamicHelp": false,
|
|
1704
|
+
"hiddenAliases": [],
|
|
1705
|
+
"id": "profile:workspace",
|
|
1706
|
+
"pluginAlias": "@xano/cli",
|
|
1707
|
+
"pluginName": "@xano/cli",
|
|
1708
|
+
"pluginType": "core",
|
|
1709
|
+
"strict": true,
|
|
1710
|
+
"enableJsonFlag": false,
|
|
1711
|
+
"isESM": true,
|
|
1712
|
+
"relativePath": [
|
|
1713
|
+
"dist",
|
|
1714
|
+
"commands",
|
|
1715
|
+
"profile",
|
|
1716
|
+
"workspace",
|
|
1717
|
+
"index.js"
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
"release:delete": {
|
|
1721
|
+
"aliases": [],
|
|
1722
|
+
"args": {
|
|
1723
|
+
"release_name": {
|
|
1724
|
+
"description": "Release name to delete",
|
|
1725
|
+
"name": "release_name",
|
|
1726
|
+
"required": true
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
"description": "Delete a release permanently. This action cannot be undone.",
|
|
1730
|
+
"examples": [
|
|
1731
|
+
"$ xano release delete v1.0\nAre you sure you want to delete release 'v1.0'? This action cannot be undone. (y/N) y\nDeleted release 'v1.0'\n",
|
|
1732
|
+
"$ xano release delete v1.0 --force\nDeleted release 'v1.0'\n",
|
|
1733
|
+
"$ xano release delete v1.0 -f -o json"
|
|
1701
1734
|
],
|
|
1702
1735
|
"flags": {
|
|
1703
1736
|
"profile": {
|
|
@@ -1719,40 +1752,14 @@
|
|
|
1719
1752
|
"allowNo": false,
|
|
1720
1753
|
"type": "boolean"
|
|
1721
1754
|
},
|
|
1722
|
-
"
|
|
1723
|
-
"char": "
|
|
1724
|
-
"description": "
|
|
1725
|
-
"name": "
|
|
1726
|
-
"required": true,
|
|
1727
|
-
"hasDynamicHelp": false,
|
|
1728
|
-
"multiple": false,
|
|
1729
|
-
"type": "option"
|
|
1730
|
-
},
|
|
1731
|
-
"description": {
|
|
1732
|
-
"char": "d",
|
|
1733
|
-
"description": "Release description",
|
|
1734
|
-
"name": "description",
|
|
1735
|
-
"required": false,
|
|
1736
|
-
"hasDynamicHelp": false,
|
|
1737
|
-
"multiple": false,
|
|
1738
|
-
"type": "option"
|
|
1739
|
-
},
|
|
1740
|
-
"hotfix": {
|
|
1741
|
-
"description": "Mark as a hotfix release",
|
|
1742
|
-
"name": "hotfix",
|
|
1755
|
+
"force": {
|
|
1756
|
+
"char": "f",
|
|
1757
|
+
"description": "Skip confirmation prompt",
|
|
1758
|
+
"name": "force",
|
|
1743
1759
|
"required": false,
|
|
1744
1760
|
"allowNo": false,
|
|
1745
1761
|
"type": "boolean"
|
|
1746
1762
|
},
|
|
1747
|
-
"name": {
|
|
1748
|
-
"char": "n",
|
|
1749
|
-
"description": "Name for the release",
|
|
1750
|
-
"name": "name",
|
|
1751
|
-
"required": true,
|
|
1752
|
-
"hasDynamicHelp": false,
|
|
1753
|
-
"multiple": false,
|
|
1754
|
-
"type": "option"
|
|
1755
|
-
},
|
|
1756
1763
|
"output": {
|
|
1757
1764
|
"char": "o",
|
|
1758
1765
|
"description": "Output format",
|
|
@@ -1767,14 +1774,6 @@
|
|
|
1767
1774
|
],
|
|
1768
1775
|
"type": "option"
|
|
1769
1776
|
},
|
|
1770
|
-
"table-ids": {
|
|
1771
|
-
"description": "Comma-separated table IDs to include",
|
|
1772
|
-
"name": "table-ids",
|
|
1773
|
-
"required": false,
|
|
1774
|
-
"hasDynamicHelp": false,
|
|
1775
|
-
"multiple": false,
|
|
1776
|
-
"type": "option"
|
|
1777
|
-
},
|
|
1778
1777
|
"workspace": {
|
|
1779
1778
|
"char": "w",
|
|
1780
1779
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -1787,7 +1786,7 @@
|
|
|
1787
1786
|
},
|
|
1788
1787
|
"hasDynamicHelp": false,
|
|
1789
1788
|
"hiddenAliases": [],
|
|
1790
|
-
"id": "release:
|
|
1789
|
+
"id": "release:delete",
|
|
1791
1790
|
"pluginAlias": "@xano/cli",
|
|
1792
1791
|
"pluginName": "@xano/cli",
|
|
1793
1792
|
"pluginType": "core",
|
|
@@ -1798,24 +1797,23 @@
|
|
|
1798
1797
|
"dist",
|
|
1799
1798
|
"commands",
|
|
1800
1799
|
"release",
|
|
1801
|
-
"
|
|
1800
|
+
"delete",
|
|
1802
1801
|
"index.js"
|
|
1803
1802
|
]
|
|
1804
1803
|
},
|
|
1805
|
-
"release:
|
|
1804
|
+
"release:edit": {
|
|
1806
1805
|
"aliases": [],
|
|
1807
1806
|
"args": {
|
|
1808
1807
|
"release_name": {
|
|
1809
|
-
"description": "Release name to
|
|
1808
|
+
"description": "Release name to edit",
|
|
1810
1809
|
"name": "release_name",
|
|
1811
1810
|
"required": true
|
|
1812
1811
|
}
|
|
1813
1812
|
},
|
|
1814
|
-
"description": "
|
|
1813
|
+
"description": "Edit an existing release",
|
|
1815
1814
|
"examples": [
|
|
1816
|
-
"$ xano release
|
|
1817
|
-
"$ xano release
|
|
1818
|
-
"$ xano release delete v1.0 -f -o json"
|
|
1815
|
+
"$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
|
|
1816
|
+
"$ xano release edit v1.0 --description \"New description\" -o json"
|
|
1819
1817
|
],
|
|
1820
1818
|
"flags": {
|
|
1821
1819
|
"profile": {
|
|
@@ -1837,13 +1835,23 @@
|
|
|
1837
1835
|
"allowNo": false,
|
|
1838
1836
|
"type": "boolean"
|
|
1839
1837
|
},
|
|
1840
|
-
"
|
|
1841
|
-
"char": "
|
|
1842
|
-
"description": "
|
|
1843
|
-
"name": "
|
|
1838
|
+
"description": {
|
|
1839
|
+
"char": "d",
|
|
1840
|
+
"description": "New description",
|
|
1841
|
+
"name": "description",
|
|
1844
1842
|
"required": false,
|
|
1845
|
-
"
|
|
1846
|
-
"
|
|
1843
|
+
"hasDynamicHelp": false,
|
|
1844
|
+
"multiple": false,
|
|
1845
|
+
"type": "option"
|
|
1846
|
+
},
|
|
1847
|
+
"name": {
|
|
1848
|
+
"char": "n",
|
|
1849
|
+
"description": "New name for the release",
|
|
1850
|
+
"name": "name",
|
|
1851
|
+
"required": false,
|
|
1852
|
+
"hasDynamicHelp": false,
|
|
1853
|
+
"multiple": false,
|
|
1854
|
+
"type": "option"
|
|
1847
1855
|
},
|
|
1848
1856
|
"output": {
|
|
1849
1857
|
"char": "o",
|
|
@@ -1871,7 +1879,7 @@
|
|
|
1871
1879
|
},
|
|
1872
1880
|
"hasDynamicHelp": false,
|
|
1873
1881
|
"hiddenAliases": [],
|
|
1874
|
-
"id": "release:
|
|
1882
|
+
"id": "release:edit",
|
|
1875
1883
|
"pluginAlias": "@xano/cli",
|
|
1876
1884
|
"pluginName": "@xano/cli",
|
|
1877
1885
|
"pluginType": "core",
|
|
@@ -1882,7 +1890,7 @@
|
|
|
1882
1890
|
"dist",
|
|
1883
1891
|
"commands",
|
|
1884
1892
|
"release",
|
|
1885
|
-
"
|
|
1893
|
+
"edit",
|
|
1886
1894
|
"index.js"
|
|
1887
1895
|
]
|
|
1888
1896
|
},
|
|
@@ -2045,19 +2053,13 @@
|
|
|
2045
2053
|
"index.js"
|
|
2046
2054
|
]
|
|
2047
2055
|
},
|
|
2048
|
-
"release:
|
|
2056
|
+
"release:import": {
|
|
2049
2057
|
"aliases": [],
|
|
2050
|
-
"args": {
|
|
2051
|
-
|
|
2052
|
-
"description": "Release name to edit",
|
|
2053
|
-
"name": "release_name",
|
|
2054
|
-
"required": true
|
|
2055
|
-
}
|
|
2056
|
-
},
|
|
2057
|
-
"description": "Edit an existing release",
|
|
2058
|
+
"args": {},
|
|
2059
|
+
"description": "Import a release file into a workspace",
|
|
2058
2060
|
"examples": [
|
|
2059
|
-
"$ xano release
|
|
2060
|
-
"$ xano release
|
|
2061
|
+
"$ xano release import --file ./my-release.tar.gz\nImported release as #15\n",
|
|
2062
|
+
"$ xano release import --file ./my-release.tar.gz -o json"
|
|
2061
2063
|
],
|
|
2062
2064
|
"flags": {
|
|
2063
2065
|
"profile": {
|
|
@@ -2079,20 +2081,11 @@
|
|
|
2079
2081
|
"allowNo": false,
|
|
2080
2082
|
"type": "boolean"
|
|
2081
2083
|
},
|
|
2082
|
-
"
|
|
2083
|
-
"char": "
|
|
2084
|
-
"description": "
|
|
2085
|
-
"name": "
|
|
2086
|
-
"required":
|
|
2087
|
-
"hasDynamicHelp": false,
|
|
2088
|
-
"multiple": false,
|
|
2089
|
-
"type": "option"
|
|
2090
|
-
},
|
|
2091
|
-
"name": {
|
|
2092
|
-
"char": "n",
|
|
2093
|
-
"description": "New name for the release",
|
|
2094
|
-
"name": "name",
|
|
2095
|
-
"required": false,
|
|
2084
|
+
"file": {
|
|
2085
|
+
"char": "f",
|
|
2086
|
+
"description": "Path to the release file (.tar.gz)",
|
|
2087
|
+
"name": "file",
|
|
2088
|
+
"required": true,
|
|
2096
2089
|
"hasDynamicHelp": false,
|
|
2097
2090
|
"multiple": false,
|
|
2098
2091
|
"type": "option"
|
|
@@ -2123,7 +2116,7 @@
|
|
|
2123
2116
|
},
|
|
2124
2117
|
"hasDynamicHelp": false,
|
|
2125
2118
|
"hiddenAliases": [],
|
|
2126
|
-
"id": "release:
|
|
2119
|
+
"id": "release:import",
|
|
2127
2120
|
"pluginAlias": "@xano/cli",
|
|
2128
2121
|
"pluginName": "@xano/cli",
|
|
2129
2122
|
"pluginType": "core",
|
|
@@ -2134,43 +2127,17 @@
|
|
|
2134
2127
|
"dist",
|
|
2135
2128
|
"commands",
|
|
2136
2129
|
"release",
|
|
2137
|
-
"
|
|
2138
|
-
"index.js"
|
|
2139
|
-
]
|
|
2140
|
-
},
|
|
2141
|
-
"profile:workspace": {
|
|
2142
|
-
"aliases": [],
|
|
2143
|
-
"args": {},
|
|
2144
|
-
"description": "Print the workspace ID for the default profile",
|
|
2145
|
-
"examples": [
|
|
2146
|
-
"$ xano profile:workspace\nabc123-workspace-id\n",
|
|
2147
|
-
"$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
|
|
2148
|
-
],
|
|
2149
|
-
"flags": {},
|
|
2150
|
-
"hasDynamicHelp": false,
|
|
2151
|
-
"hiddenAliases": [],
|
|
2152
|
-
"id": "profile:workspace",
|
|
2153
|
-
"pluginAlias": "@xano/cli",
|
|
2154
|
-
"pluginName": "@xano/cli",
|
|
2155
|
-
"pluginType": "core",
|
|
2156
|
-
"strict": true,
|
|
2157
|
-
"enableJsonFlag": false,
|
|
2158
|
-
"isESM": true,
|
|
2159
|
-
"relativePath": [
|
|
2160
|
-
"dist",
|
|
2161
|
-
"commands",
|
|
2162
|
-
"profile",
|
|
2163
|
-
"workspace",
|
|
2130
|
+
"import",
|
|
2164
2131
|
"index.js"
|
|
2165
2132
|
]
|
|
2166
2133
|
},
|
|
2167
|
-
"release:
|
|
2134
|
+
"release:list": {
|
|
2168
2135
|
"aliases": [],
|
|
2169
2136
|
"args": {},
|
|
2170
|
-
"description": "
|
|
2137
|
+
"description": "List all releases in a workspace",
|
|
2171
2138
|
"examples": [
|
|
2172
|
-
"$ xano release
|
|
2173
|
-
"$ xano release
|
|
2139
|
+
"$ xano release list\nReleases in workspace 5:\n - v1.0 (ID: 10) - main\n - v1.1-hotfix (ID: 11) - main [hotfix]\n",
|
|
2140
|
+
"$ xano release list -w 5 --output json"
|
|
2174
2141
|
],
|
|
2175
2142
|
"flags": {
|
|
2176
2143
|
"profile": {
|
|
@@ -2192,15 +2159,6 @@
|
|
|
2192
2159
|
"allowNo": false,
|
|
2193
2160
|
"type": "boolean"
|
|
2194
2161
|
},
|
|
2195
|
-
"file": {
|
|
2196
|
-
"char": "f",
|
|
2197
|
-
"description": "Path to the release file (.tar.gz)",
|
|
2198
|
-
"name": "file",
|
|
2199
|
-
"required": true,
|
|
2200
|
-
"hasDynamicHelp": false,
|
|
2201
|
-
"multiple": false,
|
|
2202
|
-
"type": "option"
|
|
2203
|
-
},
|
|
2204
2162
|
"output": {
|
|
2205
2163
|
"char": "o",
|
|
2206
2164
|
"description": "Output format",
|
|
@@ -2227,7 +2185,7 @@
|
|
|
2227
2185
|
},
|
|
2228
2186
|
"hasDynamicHelp": false,
|
|
2229
2187
|
"hiddenAliases": [],
|
|
2230
|
-
"id": "release:
|
|
2188
|
+
"id": "release:list",
|
|
2231
2189
|
"pluginAlias": "@xano/cli",
|
|
2232
2190
|
"pluginName": "@xano/cli",
|
|
2233
2191
|
"pluginType": "core",
|
|
@@ -2238,17 +2196,17 @@
|
|
|
2238
2196
|
"dist",
|
|
2239
2197
|
"commands",
|
|
2240
2198
|
"release",
|
|
2241
|
-
"
|
|
2199
|
+
"list",
|
|
2242
2200
|
"index.js"
|
|
2243
2201
|
]
|
|
2244
2202
|
},
|
|
2245
|
-
"release:
|
|
2203
|
+
"release:create": {
|
|
2246
2204
|
"aliases": [],
|
|
2247
2205
|
"args": {},
|
|
2248
|
-
"description": "
|
|
2206
|
+
"description": "Create a new release in a workspace",
|
|
2249
2207
|
"examples": [
|
|
2250
|
-
"$ xano release
|
|
2251
|
-
"$ xano release
|
|
2208
|
+
"$ xano release create --name \"v1.0\" --branch main\nCreated release: v1.0 - ID: 10\n",
|
|
2209
|
+
"$ xano release create --name \"v1.1-hotfix\" --branch main --hotfix --description \"Critical fix\" -o json"
|
|
2252
2210
|
],
|
|
2253
2211
|
"flags": {
|
|
2254
2212
|
"profile": {
|
|
@@ -2270,6 +2228,40 @@
|
|
|
2270
2228
|
"allowNo": false,
|
|
2271
2229
|
"type": "boolean"
|
|
2272
2230
|
},
|
|
2231
|
+
"branch": {
|
|
2232
|
+
"char": "b",
|
|
2233
|
+
"description": "Branch to create the release from",
|
|
2234
|
+
"name": "branch",
|
|
2235
|
+
"required": true,
|
|
2236
|
+
"hasDynamicHelp": false,
|
|
2237
|
+
"multiple": false,
|
|
2238
|
+
"type": "option"
|
|
2239
|
+
},
|
|
2240
|
+
"description": {
|
|
2241
|
+
"char": "d",
|
|
2242
|
+
"description": "Release description",
|
|
2243
|
+
"name": "description",
|
|
2244
|
+
"required": false,
|
|
2245
|
+
"hasDynamicHelp": false,
|
|
2246
|
+
"multiple": false,
|
|
2247
|
+
"type": "option"
|
|
2248
|
+
},
|
|
2249
|
+
"hotfix": {
|
|
2250
|
+
"description": "Mark as a hotfix release",
|
|
2251
|
+
"name": "hotfix",
|
|
2252
|
+
"required": false,
|
|
2253
|
+
"allowNo": false,
|
|
2254
|
+
"type": "boolean"
|
|
2255
|
+
},
|
|
2256
|
+
"name": {
|
|
2257
|
+
"char": "n",
|
|
2258
|
+
"description": "Name for the release",
|
|
2259
|
+
"name": "name",
|
|
2260
|
+
"required": true,
|
|
2261
|
+
"hasDynamicHelp": false,
|
|
2262
|
+
"multiple": false,
|
|
2263
|
+
"type": "option"
|
|
2264
|
+
},
|
|
2273
2265
|
"output": {
|
|
2274
2266
|
"char": "o",
|
|
2275
2267
|
"description": "Output format",
|
|
@@ -2284,6 +2276,14 @@
|
|
|
2284
2276
|
],
|
|
2285
2277
|
"type": "option"
|
|
2286
2278
|
},
|
|
2279
|
+
"table-ids": {
|
|
2280
|
+
"description": "Comma-separated table IDs to include",
|
|
2281
|
+
"name": "table-ids",
|
|
2282
|
+
"required": false,
|
|
2283
|
+
"hasDynamicHelp": false,
|
|
2284
|
+
"multiple": false,
|
|
2285
|
+
"type": "option"
|
|
2286
|
+
},
|
|
2287
2287
|
"workspace": {
|
|
2288
2288
|
"char": "w",
|
|
2289
2289
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2296,7 +2296,7 @@
|
|
|
2296
2296
|
},
|
|
2297
2297
|
"hasDynamicHelp": false,
|
|
2298
2298
|
"hiddenAliases": [],
|
|
2299
|
-
"id": "release:
|
|
2299
|
+
"id": "release:create",
|
|
2300
2300
|
"pluginAlias": "@xano/cli",
|
|
2301
2301
|
"pluginName": "@xano/cli",
|
|
2302
2302
|
"pluginType": "core",
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
"dist",
|
|
2308
2308
|
"commands",
|
|
2309
2309
|
"release",
|
|
2310
|
-
"
|
|
2310
|
+
"create",
|
|
2311
2311
|
"index.js"
|
|
2312
2312
|
]
|
|
2313
2313
|
},
|
|
@@ -2396,6 +2396,124 @@
|
|
|
2396
2396
|
"index.js"
|
|
2397
2397
|
]
|
|
2398
2398
|
},
|
|
2399
|
+
"release:push": {
|
|
2400
|
+
"aliases": [],
|
|
2401
|
+
"args": {
|
|
2402
|
+
"directory": {
|
|
2403
|
+
"description": "Directory containing .xs documents to create the release from",
|
|
2404
|
+
"name": "directory",
|
|
2405
|
+
"required": true
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2408
|
+
"description": "Create a new release from local XanoScript files via the multidoc endpoint",
|
|
2409
|
+
"examples": [
|
|
2410
|
+
"$ xano release push ./my-release -n \"v1.0\"\nCreated release: v1.0 - ID: 10\n",
|
|
2411
|
+
"$ xano release push ./output -n \"v2.0\" -w 40 -d \"Major update\"\nCreated release: v2.0 - ID: 15\n",
|
|
2412
|
+
"$ xano release push ./backup -n \"v1.1-hotfix\" --hotfix --profile production\nCreated release: v1.1-hotfix - ID: 20\n",
|
|
2413
|
+
"$ xano release push ./my-release -n \"v1.0\" --no-records --no-env\nCreate release from schema only, skip records and environment variables\n",
|
|
2414
|
+
"$ xano release push ./my-release -n \"v1.0\" -o json\nOutput release details as JSON\n"
|
|
2415
|
+
],
|
|
2416
|
+
"flags": {
|
|
2417
|
+
"profile": {
|
|
2418
|
+
"char": "p",
|
|
2419
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2420
|
+
"env": "XANO_PROFILE",
|
|
2421
|
+
"name": "profile",
|
|
2422
|
+
"required": false,
|
|
2423
|
+
"hasDynamicHelp": false,
|
|
2424
|
+
"multiple": false,
|
|
2425
|
+
"type": "option"
|
|
2426
|
+
},
|
|
2427
|
+
"verbose": {
|
|
2428
|
+
"char": "v",
|
|
2429
|
+
"description": "Show detailed request/response information",
|
|
2430
|
+
"env": "XANO_VERBOSE",
|
|
2431
|
+
"name": "verbose",
|
|
2432
|
+
"required": false,
|
|
2433
|
+
"allowNo": false,
|
|
2434
|
+
"type": "boolean"
|
|
2435
|
+
},
|
|
2436
|
+
"description": {
|
|
2437
|
+
"char": "d",
|
|
2438
|
+
"description": "Release description",
|
|
2439
|
+
"name": "description",
|
|
2440
|
+
"required": false,
|
|
2441
|
+
"default": "",
|
|
2442
|
+
"hasDynamicHelp": false,
|
|
2443
|
+
"multiple": false,
|
|
2444
|
+
"type": "option"
|
|
2445
|
+
},
|
|
2446
|
+
"env": {
|
|
2447
|
+
"description": "Include environment variables (default: true, use --no-env to exclude)",
|
|
2448
|
+
"name": "env",
|
|
2449
|
+
"required": false,
|
|
2450
|
+
"allowNo": true,
|
|
2451
|
+
"type": "boolean"
|
|
2452
|
+
},
|
|
2453
|
+
"hotfix": {
|
|
2454
|
+
"description": "Mark as a hotfix release",
|
|
2455
|
+
"name": "hotfix",
|
|
2456
|
+
"required": false,
|
|
2457
|
+
"allowNo": false,
|
|
2458
|
+
"type": "boolean"
|
|
2459
|
+
},
|
|
2460
|
+
"name": {
|
|
2461
|
+
"char": "n",
|
|
2462
|
+
"description": "Name for the release",
|
|
2463
|
+
"name": "name",
|
|
2464
|
+
"required": true,
|
|
2465
|
+
"hasDynamicHelp": false,
|
|
2466
|
+
"multiple": false,
|
|
2467
|
+
"type": "option"
|
|
2468
|
+
},
|
|
2469
|
+
"output": {
|
|
2470
|
+
"char": "o",
|
|
2471
|
+
"description": "Output format",
|
|
2472
|
+
"name": "output",
|
|
2473
|
+
"required": false,
|
|
2474
|
+
"default": "summary",
|
|
2475
|
+
"hasDynamicHelp": false,
|
|
2476
|
+
"multiple": false,
|
|
2477
|
+
"options": [
|
|
2478
|
+
"summary",
|
|
2479
|
+
"json"
|
|
2480
|
+
],
|
|
2481
|
+
"type": "option"
|
|
2482
|
+
},
|
|
2483
|
+
"records": {
|
|
2484
|
+
"description": "Include records (default: true, use --no-records to exclude)",
|
|
2485
|
+
"name": "records",
|
|
2486
|
+
"required": false,
|
|
2487
|
+
"allowNo": true,
|
|
2488
|
+
"type": "boolean"
|
|
2489
|
+
},
|
|
2490
|
+
"workspace": {
|
|
2491
|
+
"char": "w",
|
|
2492
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2493
|
+
"name": "workspace",
|
|
2494
|
+
"required": false,
|
|
2495
|
+
"hasDynamicHelp": false,
|
|
2496
|
+
"multiple": false,
|
|
2497
|
+
"type": "option"
|
|
2498
|
+
}
|
|
2499
|
+
},
|
|
2500
|
+
"hasDynamicHelp": false,
|
|
2501
|
+
"hiddenAliases": [],
|
|
2502
|
+
"id": "release:push",
|
|
2503
|
+
"pluginAlias": "@xano/cli",
|
|
2504
|
+
"pluginName": "@xano/cli",
|
|
2505
|
+
"pluginType": "core",
|
|
2506
|
+
"strict": true,
|
|
2507
|
+
"enableJsonFlag": false,
|
|
2508
|
+
"isESM": true,
|
|
2509
|
+
"relativePath": [
|
|
2510
|
+
"dist",
|
|
2511
|
+
"commands",
|
|
2512
|
+
"release",
|
|
2513
|
+
"push",
|
|
2514
|
+
"index.js"
|
|
2515
|
+
]
|
|
2516
|
+
},
|
|
2399
2517
|
"static_host:list": {
|
|
2400
2518
|
"aliases": [],
|
|
2401
2519
|
"args": {},
|
|
@@ -2485,22 +2603,19 @@
|
|
|
2485
2603
|
"index.js"
|
|
2486
2604
|
]
|
|
2487
2605
|
},
|
|
2488
|
-
"
|
|
2606
|
+
"tenant:create": {
|
|
2489
2607
|
"aliases": [],
|
|
2490
2608
|
"args": {
|
|
2491
|
-
"
|
|
2492
|
-
"description": "
|
|
2493
|
-
"name": "
|
|
2609
|
+
"display": {
|
|
2610
|
+
"description": "Display name for the tenant",
|
|
2611
|
+
"name": "display",
|
|
2494
2612
|
"required": true
|
|
2495
2613
|
}
|
|
2496
2614
|
},
|
|
2497
|
-
"description": "Create a new
|
|
2615
|
+
"description": "Create a new tenant in a workspace",
|
|
2498
2616
|
"examples": [
|
|
2499
|
-
"$ xano
|
|
2500
|
-
"$ xano
|
|
2501
|
-
"$ xano release push ./backup -n \"v1.1-hotfix\" --hotfix --profile production\nCreated release: v1.1-hotfix - ID: 20\n",
|
|
2502
|
-
"$ xano release push ./my-release -n \"v1.0\" --no-records --no-env\nCreate release from schema only, skip records and environment variables\n",
|
|
2503
|
-
"$ xano release push ./my-release -n \"v1.0\" -o json\nOutput release details as JSON\n"
|
|
2617
|
+
"$ xano tenant create \"Production\"\nCreated tenant: Production (production) - ID: 42\n",
|
|
2618
|
+
"$ xano tenant create \"Staging\" --description \"Staging env\" --cluster_id 1 --platform_id 1 --license tier2 -o json"
|
|
2504
2619
|
],
|
|
2505
2620
|
"flags": {
|
|
2506
2621
|
"profile": {
|
|
@@ -2522,39 +2637,146 @@
|
|
|
2522
2637
|
"allowNo": false,
|
|
2523
2638
|
"type": "boolean"
|
|
2524
2639
|
},
|
|
2640
|
+
"cluster_id": {
|
|
2641
|
+
"description": "Cluster ID to deploy to (required for tier2/tier3)",
|
|
2642
|
+
"name": "cluster_id",
|
|
2643
|
+
"required": false,
|
|
2644
|
+
"hasDynamicHelp": false,
|
|
2645
|
+
"multiple": false,
|
|
2646
|
+
"type": "option"
|
|
2647
|
+
},
|
|
2525
2648
|
"description": {
|
|
2526
2649
|
"char": "d",
|
|
2527
|
-
"description": "
|
|
2650
|
+
"description": "Tenant description",
|
|
2528
2651
|
"name": "description",
|
|
2529
2652
|
"required": false,
|
|
2530
|
-
"default": "",
|
|
2531
2653
|
"hasDynamicHelp": false,
|
|
2532
2654
|
"multiple": false,
|
|
2533
2655
|
"type": "option"
|
|
2534
2656
|
},
|
|
2535
|
-
"
|
|
2536
|
-
"description": "
|
|
2537
|
-
"name": "
|
|
2657
|
+
"domain": {
|
|
2658
|
+
"description": "Custom domain for the tenant",
|
|
2659
|
+
"name": "domain",
|
|
2538
2660
|
"required": false,
|
|
2661
|
+
"hasDynamicHelp": false,
|
|
2662
|
+
"multiple": false,
|
|
2663
|
+
"type": "option"
|
|
2664
|
+
},
|
|
2665
|
+
"ephemeral": {
|
|
2666
|
+
"description": "Mark tenant as ephemeral (allows push operations)",
|
|
2667
|
+
"name": "ephemeral",
|
|
2668
|
+
"allowNo": false,
|
|
2669
|
+
"type": "boolean"
|
|
2670
|
+
},
|
|
2671
|
+
"ingress": {
|
|
2672
|
+
"description": "Enable ingress",
|
|
2673
|
+
"name": "ingress",
|
|
2539
2674
|
"allowNo": true,
|
|
2540
2675
|
"type": "boolean"
|
|
2541
2676
|
},
|
|
2542
|
-
"
|
|
2543
|
-
"description": "
|
|
2544
|
-
"name": "
|
|
2677
|
+
"license": {
|
|
2678
|
+
"description": "License tier",
|
|
2679
|
+
"name": "license",
|
|
2545
2680
|
"required": false,
|
|
2546
|
-
"
|
|
2681
|
+
"default": "tier1",
|
|
2682
|
+
"hasDynamicHelp": false,
|
|
2683
|
+
"multiple": false,
|
|
2684
|
+
"options": [
|
|
2685
|
+
"tier1",
|
|
2686
|
+
"tier2",
|
|
2687
|
+
"tier3"
|
|
2688
|
+
],
|
|
2689
|
+
"type": "option"
|
|
2690
|
+
},
|
|
2691
|
+
"output": {
|
|
2692
|
+
"char": "o",
|
|
2693
|
+
"description": "Output format",
|
|
2694
|
+
"name": "output",
|
|
2695
|
+
"required": false,
|
|
2696
|
+
"default": "summary",
|
|
2697
|
+
"hasDynamicHelp": false,
|
|
2698
|
+
"multiple": false,
|
|
2699
|
+
"options": [
|
|
2700
|
+
"summary",
|
|
2701
|
+
"json"
|
|
2702
|
+
],
|
|
2703
|
+
"type": "option"
|
|
2704
|
+
},
|
|
2705
|
+
"platform_id": {
|
|
2706
|
+
"description": "Platform ID to use",
|
|
2707
|
+
"name": "platform_id",
|
|
2708
|
+
"required": false,
|
|
2709
|
+
"hasDynamicHelp": false,
|
|
2710
|
+
"multiple": false,
|
|
2711
|
+
"type": "option"
|
|
2712
|
+
},
|
|
2713
|
+
"tasks": {
|
|
2714
|
+
"description": "Enable background tasks",
|
|
2715
|
+
"name": "tasks",
|
|
2716
|
+
"allowNo": true,
|
|
2547
2717
|
"type": "boolean"
|
|
2548
2718
|
},
|
|
2549
|
-
"
|
|
2550
|
-
"char": "
|
|
2551
|
-
"description": "
|
|
2552
|
-
"name": "
|
|
2553
|
-
"required":
|
|
2719
|
+
"workspace": {
|
|
2720
|
+
"char": "w",
|
|
2721
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2722
|
+
"name": "workspace",
|
|
2723
|
+
"required": false,
|
|
2724
|
+
"hasDynamicHelp": false,
|
|
2725
|
+
"multiple": false,
|
|
2726
|
+
"type": "option"
|
|
2727
|
+
}
|
|
2728
|
+
},
|
|
2729
|
+
"hasDynamicHelp": false,
|
|
2730
|
+
"hiddenAliases": [],
|
|
2731
|
+
"id": "tenant:create",
|
|
2732
|
+
"pluginAlias": "@xano/cli",
|
|
2733
|
+
"pluginName": "@xano/cli",
|
|
2734
|
+
"pluginType": "core",
|
|
2735
|
+
"strict": true,
|
|
2736
|
+
"enableJsonFlag": false,
|
|
2737
|
+
"isESM": true,
|
|
2738
|
+
"relativePath": [
|
|
2739
|
+
"dist",
|
|
2740
|
+
"commands",
|
|
2741
|
+
"tenant",
|
|
2742
|
+
"create",
|
|
2743
|
+
"index.js"
|
|
2744
|
+
]
|
|
2745
|
+
},
|
|
2746
|
+
"tenant:deploy_platform": {
|
|
2747
|
+
"aliases": [],
|
|
2748
|
+
"args": {
|
|
2749
|
+
"tenant_name": {
|
|
2750
|
+
"description": "Tenant name to deploy to",
|
|
2751
|
+
"name": "tenant_name",
|
|
2752
|
+
"required": true
|
|
2753
|
+
}
|
|
2754
|
+
},
|
|
2755
|
+
"description": "Deploy a platform version to a tenant",
|
|
2756
|
+
"examples": [
|
|
2757
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
2758
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
|
|
2759
|
+
],
|
|
2760
|
+
"flags": {
|
|
2761
|
+
"profile": {
|
|
2762
|
+
"char": "p",
|
|
2763
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2764
|
+
"env": "XANO_PROFILE",
|
|
2765
|
+
"name": "profile",
|
|
2766
|
+
"required": false,
|
|
2554
2767
|
"hasDynamicHelp": false,
|
|
2555
2768
|
"multiple": false,
|
|
2556
2769
|
"type": "option"
|
|
2557
2770
|
},
|
|
2771
|
+
"verbose": {
|
|
2772
|
+
"char": "v",
|
|
2773
|
+
"description": "Show detailed request/response information",
|
|
2774
|
+
"env": "XANO_VERBOSE",
|
|
2775
|
+
"name": "verbose",
|
|
2776
|
+
"required": false,
|
|
2777
|
+
"allowNo": false,
|
|
2778
|
+
"type": "boolean"
|
|
2779
|
+
},
|
|
2558
2780
|
"output": {
|
|
2559
2781
|
"char": "o",
|
|
2560
2782
|
"description": "Output format",
|
|
@@ -2569,16 +2791,17 @@
|
|
|
2569
2791
|
],
|
|
2570
2792
|
"type": "option"
|
|
2571
2793
|
},
|
|
2572
|
-
"
|
|
2573
|
-
"description": "
|
|
2574
|
-
"name": "
|
|
2575
|
-
"required":
|
|
2576
|
-
"
|
|
2577
|
-
"
|
|
2794
|
+
"platform_id": {
|
|
2795
|
+
"description": "Platform ID to deploy",
|
|
2796
|
+
"name": "platform_id",
|
|
2797
|
+
"required": true,
|
|
2798
|
+
"hasDynamicHelp": false,
|
|
2799
|
+
"multiple": false,
|
|
2800
|
+
"type": "option"
|
|
2578
2801
|
},
|
|
2579
2802
|
"workspace": {
|
|
2580
2803
|
"char": "w",
|
|
2581
|
-
"description": "Workspace ID (
|
|
2804
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2582
2805
|
"name": "workspace",
|
|
2583
2806
|
"required": false,
|
|
2584
2807
|
"hasDynamicHelp": false,
|
|
@@ -2588,7 +2811,7 @@
|
|
|
2588
2811
|
},
|
|
2589
2812
|
"hasDynamicHelp": false,
|
|
2590
2813
|
"hiddenAliases": [],
|
|
2591
|
-
"id": "
|
|
2814
|
+
"id": "tenant:deploy_platform",
|
|
2592
2815
|
"pluginAlias": "@xano/cli",
|
|
2593
2816
|
"pluginName": "@xano/cli",
|
|
2594
2817
|
"pluginType": "core",
|
|
@@ -2598,24 +2821,24 @@
|
|
|
2598
2821
|
"relativePath": [
|
|
2599
2822
|
"dist",
|
|
2600
2823
|
"commands",
|
|
2601
|
-
"
|
|
2602
|
-
"
|
|
2824
|
+
"tenant",
|
|
2825
|
+
"deploy_platform",
|
|
2603
2826
|
"index.js"
|
|
2604
2827
|
]
|
|
2605
2828
|
},
|
|
2606
|
-
"tenant:
|
|
2829
|
+
"tenant:deploy_release": {
|
|
2607
2830
|
"aliases": [],
|
|
2608
2831
|
"args": {
|
|
2609
|
-
"
|
|
2610
|
-
"description": "
|
|
2611
|
-
"name": "
|
|
2832
|
+
"tenant_name": {
|
|
2833
|
+
"description": "Tenant name to deploy to",
|
|
2834
|
+
"name": "tenant_name",
|
|
2612
2835
|
"required": true
|
|
2613
2836
|
}
|
|
2614
2837
|
},
|
|
2615
|
-
"description": "
|
|
2838
|
+
"description": "Deploy a release to a tenant",
|
|
2616
2839
|
"examples": [
|
|
2617
|
-
"$ xano tenant
|
|
2618
|
-
"$ xano tenant
|
|
2840
|
+
"$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0\nDeployed release \"v1.0\" to tenant: My Tenant (my-tenant)\n",
|
|
2841
|
+
"$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 -o json"
|
|
2619
2842
|
],
|
|
2620
2843
|
"flags": {
|
|
2621
2844
|
"profile": {
|
|
@@ -2637,57 +2860,6 @@
|
|
|
2637
2860
|
"allowNo": false,
|
|
2638
2861
|
"type": "boolean"
|
|
2639
2862
|
},
|
|
2640
|
-
"cluster_id": {
|
|
2641
|
-
"description": "Cluster ID to deploy to (required for tier2/tier3)",
|
|
2642
|
-
"name": "cluster_id",
|
|
2643
|
-
"required": false,
|
|
2644
|
-
"hasDynamicHelp": false,
|
|
2645
|
-
"multiple": false,
|
|
2646
|
-
"type": "option"
|
|
2647
|
-
},
|
|
2648
|
-
"description": {
|
|
2649
|
-
"char": "d",
|
|
2650
|
-
"description": "Tenant description",
|
|
2651
|
-
"name": "description",
|
|
2652
|
-
"required": false,
|
|
2653
|
-
"hasDynamicHelp": false,
|
|
2654
|
-
"multiple": false,
|
|
2655
|
-
"type": "option"
|
|
2656
|
-
},
|
|
2657
|
-
"domain": {
|
|
2658
|
-
"description": "Custom domain for the tenant",
|
|
2659
|
-
"name": "domain",
|
|
2660
|
-
"required": false,
|
|
2661
|
-
"hasDynamicHelp": false,
|
|
2662
|
-
"multiple": false,
|
|
2663
|
-
"type": "option"
|
|
2664
|
-
},
|
|
2665
|
-
"ephemeral": {
|
|
2666
|
-
"description": "Mark tenant as ephemeral (allows push operations)",
|
|
2667
|
-
"name": "ephemeral",
|
|
2668
|
-
"allowNo": false,
|
|
2669
|
-
"type": "boolean"
|
|
2670
|
-
},
|
|
2671
|
-
"ingress": {
|
|
2672
|
-
"description": "Enable ingress",
|
|
2673
|
-
"name": "ingress",
|
|
2674
|
-
"allowNo": true,
|
|
2675
|
-
"type": "boolean"
|
|
2676
|
-
},
|
|
2677
|
-
"license": {
|
|
2678
|
-
"description": "License tier",
|
|
2679
|
-
"name": "license",
|
|
2680
|
-
"required": false,
|
|
2681
|
-
"default": "tier1",
|
|
2682
|
-
"hasDynamicHelp": false,
|
|
2683
|
-
"multiple": false,
|
|
2684
|
-
"options": [
|
|
2685
|
-
"tier1",
|
|
2686
|
-
"tier2",
|
|
2687
|
-
"tier3"
|
|
2688
|
-
],
|
|
2689
|
-
"type": "option"
|
|
2690
|
-
},
|
|
2691
2863
|
"output": {
|
|
2692
2864
|
"char": "o",
|
|
2693
2865
|
"description": "Output format",
|
|
@@ -2702,20 +2874,15 @@
|
|
|
2702
2874
|
],
|
|
2703
2875
|
"type": "option"
|
|
2704
2876
|
},
|
|
2705
|
-
"
|
|
2706
|
-
"
|
|
2707
|
-
"
|
|
2708
|
-
"
|
|
2877
|
+
"release": {
|
|
2878
|
+
"char": "r",
|
|
2879
|
+
"description": "Release name to deploy",
|
|
2880
|
+
"name": "release",
|
|
2881
|
+
"required": true,
|
|
2709
2882
|
"hasDynamicHelp": false,
|
|
2710
2883
|
"multiple": false,
|
|
2711
2884
|
"type": "option"
|
|
2712
2885
|
},
|
|
2713
|
-
"tasks": {
|
|
2714
|
-
"description": "Enable background tasks",
|
|
2715
|
-
"name": "tasks",
|
|
2716
|
-
"allowNo": true,
|
|
2717
|
-
"type": "boolean"
|
|
2718
|
-
},
|
|
2719
2886
|
"workspace": {
|
|
2720
2887
|
"char": "w",
|
|
2721
2888
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2728,7 +2895,7 @@
|
|
|
2728
2895
|
},
|
|
2729
2896
|
"hasDynamicHelp": false,
|
|
2730
2897
|
"hiddenAliases": [],
|
|
2731
|
-
"id": "tenant:
|
|
2898
|
+
"id": "tenant:deploy_release",
|
|
2732
2899
|
"pluginAlias": "@xano/cli",
|
|
2733
2900
|
"pluginName": "@xano/cli",
|
|
2734
2901
|
"pluginType": "core",
|
|
@@ -2739,7 +2906,7 @@
|
|
|
2739
2906
|
"dist",
|
|
2740
2907
|
"commands",
|
|
2741
2908
|
"tenant",
|
|
2742
|
-
"
|
|
2909
|
+
"deploy_release",
|
|
2743
2910
|
"index.js"
|
|
2744
2911
|
]
|
|
2745
2912
|
},
|
|
@@ -2956,19 +3123,19 @@
|
|
|
2956
3123
|
"index.js"
|
|
2957
3124
|
]
|
|
2958
3125
|
},
|
|
2959
|
-
"tenant:
|
|
3126
|
+
"tenant:get": {
|
|
2960
3127
|
"aliases": [],
|
|
2961
3128
|
"args": {
|
|
2962
3129
|
"tenant_name": {
|
|
2963
|
-
"description": "Tenant name to
|
|
3130
|
+
"description": "Tenant name to retrieve",
|
|
2964
3131
|
"name": "tenant_name",
|
|
2965
3132
|
"required": true
|
|
2966
3133
|
}
|
|
2967
3134
|
},
|
|
2968
|
-
"description": "
|
|
3135
|
+
"description": "Get details of a specific tenant",
|
|
2969
3136
|
"examples": [
|
|
2970
|
-
"$ xano tenant
|
|
2971
|
-
"$ xano tenant
|
|
3137
|
+
"$ xano tenant get t1234-abcd-xyz1\nTenant: My Tenant (my-tenant)\n State: ok\n License: tier1\n Domain: my-tenant.xano.io\n Cluster: default\n Release: v1.0\n",
|
|
3138
|
+
"$ xano tenant get t1234-abcd-xyz1 -w 5 -o json"
|
|
2972
3139
|
],
|
|
2973
3140
|
"flags": {
|
|
2974
3141
|
"profile": {
|
|
@@ -3004,15 +3171,6 @@
|
|
|
3004
3171
|
],
|
|
3005
3172
|
"type": "option"
|
|
3006
3173
|
},
|
|
3007
|
-
"release": {
|
|
3008
|
-
"char": "r",
|
|
3009
|
-
"description": "Release name to deploy",
|
|
3010
|
-
"name": "release",
|
|
3011
|
-
"required": true,
|
|
3012
|
-
"hasDynamicHelp": false,
|
|
3013
|
-
"multiple": false,
|
|
3014
|
-
"type": "option"
|
|
3015
|
-
},
|
|
3016
3174
|
"workspace": {
|
|
3017
3175
|
"char": "w",
|
|
3018
3176
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -3025,7 +3183,7 @@
|
|
|
3025
3183
|
},
|
|
3026
3184
|
"hasDynamicHelp": false,
|
|
3027
3185
|
"hiddenAliases": [],
|
|
3028
|
-
"id": "tenant:
|
|
3186
|
+
"id": "tenant:get",
|
|
3029
3187
|
"pluginAlias": "@xano/cli",
|
|
3030
3188
|
"pluginName": "@xano/cli",
|
|
3031
3189
|
"pluginType": "core",
|
|
@@ -3036,23 +3194,23 @@
|
|
|
3036
3194
|
"dist",
|
|
3037
3195
|
"commands",
|
|
3038
3196
|
"tenant",
|
|
3039
|
-
"
|
|
3197
|
+
"get",
|
|
3040
3198
|
"index.js"
|
|
3041
3199
|
]
|
|
3042
3200
|
},
|
|
3043
|
-
"tenant:
|
|
3201
|
+
"tenant:impersonate": {
|
|
3044
3202
|
"aliases": [],
|
|
3045
3203
|
"args": {
|
|
3046
3204
|
"tenant_name": {
|
|
3047
|
-
"description": "Tenant name to
|
|
3205
|
+
"description": "Tenant name to impersonate",
|
|
3048
3206
|
"name": "tenant_name",
|
|
3049
3207
|
"required": true
|
|
3050
3208
|
}
|
|
3051
3209
|
},
|
|
3052
|
-
"description": "
|
|
3210
|
+
"description": "Impersonate a tenant and open it in the browser",
|
|
3053
3211
|
"examples": [
|
|
3054
|
-
"$ xano tenant
|
|
3055
|
-
"$ xano tenant
|
|
3212
|
+
"$ xano tenant impersonate my-tenant\nOpening browser...\nImpersonation successful!\n",
|
|
3213
|
+
"$ xano tenant impersonate my-tenant -o json"
|
|
3056
3214
|
],
|
|
3057
3215
|
"flags": {
|
|
3058
3216
|
"profile": {
|
|
@@ -3088,6 +3246,14 @@
|
|
|
3088
3246
|
],
|
|
3089
3247
|
"type": "option"
|
|
3090
3248
|
},
|
|
3249
|
+
"url-only": {
|
|
3250
|
+
"char": "u",
|
|
3251
|
+
"description": "Print the URL without opening the browser",
|
|
3252
|
+
"name": "url-only",
|
|
3253
|
+
"required": false,
|
|
3254
|
+
"allowNo": false,
|
|
3255
|
+
"type": "boolean"
|
|
3256
|
+
},
|
|
3091
3257
|
"workspace": {
|
|
3092
3258
|
"char": "w",
|
|
3093
3259
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -3100,7 +3266,7 @@
|
|
|
3100
3266
|
},
|
|
3101
3267
|
"hasDynamicHelp": false,
|
|
3102
3268
|
"hiddenAliases": [],
|
|
3103
|
-
"id": "tenant:
|
|
3269
|
+
"id": "tenant:impersonate",
|
|
3104
3270
|
"pluginAlias": "@xano/cli",
|
|
3105
3271
|
"pluginName": "@xano/cli",
|
|
3106
3272
|
"pluginType": "core",
|
|
@@ -3111,7 +3277,7 @@
|
|
|
3111
3277
|
"dist",
|
|
3112
3278
|
"commands",
|
|
3113
3279
|
"tenant",
|
|
3114
|
-
"
|
|
3280
|
+
"impersonate",
|
|
3115
3281
|
"index.js"
|
|
3116
3282
|
]
|
|
3117
3283
|
},
|
|
@@ -3184,19 +3350,21 @@
|
|
|
3184
3350
|
"index.js"
|
|
3185
3351
|
]
|
|
3186
3352
|
},
|
|
3187
|
-
"tenant:
|
|
3353
|
+
"tenant:pull": {
|
|
3188
3354
|
"aliases": [],
|
|
3189
3355
|
"args": {
|
|
3190
|
-
"
|
|
3191
|
-
"description": "
|
|
3192
|
-
"name": "
|
|
3356
|
+
"directory": {
|
|
3357
|
+
"description": "Output directory for pulled documents",
|
|
3358
|
+
"name": "directory",
|
|
3193
3359
|
"required": true
|
|
3194
3360
|
}
|
|
3195
3361
|
},
|
|
3196
|
-
"description": "
|
|
3362
|
+
"description": "Pull a tenant multidoc from the Xano Metadata API and split into individual files",
|
|
3197
3363
|
"examples": [
|
|
3198
|
-
"$ xano tenant
|
|
3199
|
-
"$ xano tenant
|
|
3364
|
+
"$ xano tenant pull ./my-tenant -t my-tenant\nPulled 42 documents from tenant my-tenant to ./my-tenant\n",
|
|
3365
|
+
"$ xano tenant pull ./output -t my-tenant -w 40\nPulled 15 documents from tenant my-tenant to ./output\n",
|
|
3366
|
+
"$ xano tenant pull ./backup -t my-tenant --profile production --env --records\nPulled 58 documents from tenant my-tenant to ./backup\n",
|
|
3367
|
+
"$ xano tenant pull ./my-tenant -t my-tenant --draft\nPulled 42 documents from tenant my-tenant to ./my-tenant\n"
|
|
3200
3368
|
],
|
|
3201
3369
|
"flags": {
|
|
3202
3370
|
"profile": {
|
|
@@ -3218,31 +3386,39 @@
|
|
|
3218
3386
|
"allowNo": false,
|
|
3219
3387
|
"type": "boolean"
|
|
3220
3388
|
},
|
|
3221
|
-
"
|
|
3222
|
-
"
|
|
3223
|
-
"
|
|
3224
|
-
"name": "output",
|
|
3389
|
+
"draft": {
|
|
3390
|
+
"description": "Include draft versions",
|
|
3391
|
+
"name": "draft",
|
|
3225
3392
|
"required": false,
|
|
3226
|
-
"
|
|
3227
|
-
"
|
|
3228
|
-
"multiple": false,
|
|
3229
|
-
"options": [
|
|
3230
|
-
"summary",
|
|
3231
|
-
"json"
|
|
3232
|
-
],
|
|
3233
|
-
"type": "option"
|
|
3393
|
+
"allowNo": false,
|
|
3394
|
+
"type": "boolean"
|
|
3234
3395
|
},
|
|
3235
|
-
"
|
|
3236
|
-
"
|
|
3237
|
-
"
|
|
3238
|
-
"
|
|
3396
|
+
"env": {
|
|
3397
|
+
"description": "Include environment variables",
|
|
3398
|
+
"name": "env",
|
|
3399
|
+
"required": false,
|
|
3400
|
+
"allowNo": false,
|
|
3401
|
+
"type": "boolean"
|
|
3402
|
+
},
|
|
3403
|
+
"records": {
|
|
3404
|
+
"description": "Include records",
|
|
3405
|
+
"name": "records",
|
|
3239
3406
|
"required": false,
|
|
3240
3407
|
"allowNo": false,
|
|
3241
3408
|
"type": "boolean"
|
|
3242
3409
|
},
|
|
3410
|
+
"tenant": {
|
|
3411
|
+
"char": "t",
|
|
3412
|
+
"description": "Tenant name to pull from",
|
|
3413
|
+
"name": "tenant",
|
|
3414
|
+
"required": true,
|
|
3415
|
+
"hasDynamicHelp": false,
|
|
3416
|
+
"multiple": false,
|
|
3417
|
+
"type": "option"
|
|
3418
|
+
},
|
|
3243
3419
|
"workspace": {
|
|
3244
3420
|
"char": "w",
|
|
3245
|
-
"description": "Workspace ID (
|
|
3421
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
3246
3422
|
"name": "workspace",
|
|
3247
3423
|
"required": false,
|
|
3248
3424
|
"hasDynamicHelp": false,
|
|
@@ -3252,7 +3428,7 @@
|
|
|
3252
3428
|
},
|
|
3253
3429
|
"hasDynamicHelp": false,
|
|
3254
3430
|
"hiddenAliases": [],
|
|
3255
|
-
"id": "tenant:
|
|
3431
|
+
"id": "tenant:pull",
|
|
3256
3432
|
"pluginAlias": "@xano/cli",
|
|
3257
3433
|
"pluginName": "@xano/cli",
|
|
3258
3434
|
"pluginType": "core",
|
|
@@ -3263,25 +3439,27 @@
|
|
|
3263
3439
|
"dist",
|
|
3264
3440
|
"commands",
|
|
3265
3441
|
"tenant",
|
|
3266
|
-
"
|
|
3442
|
+
"pull",
|
|
3267
3443
|
"index.js"
|
|
3268
3444
|
]
|
|
3269
3445
|
},
|
|
3270
|
-
"tenant:
|
|
3446
|
+
"tenant:push": {
|
|
3271
3447
|
"aliases": [],
|
|
3272
3448
|
"args": {
|
|
3273
3449
|
"directory": {
|
|
3274
|
-
"description": "
|
|
3450
|
+
"description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
|
|
3275
3451
|
"name": "directory",
|
|
3276
3452
|
"required": true
|
|
3277
3453
|
}
|
|
3278
3454
|
},
|
|
3279
|
-
"description": "
|
|
3455
|
+
"description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
|
|
3280
3456
|
"examples": [
|
|
3281
|
-
"$ xano tenant
|
|
3282
|
-
"$ xano tenant
|
|
3283
|
-
"$ xano tenant
|
|
3284
|
-
"$ xano tenant
|
|
3457
|
+
"$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
|
|
3458
|
+
"$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
|
|
3459
|
+
"$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
|
|
3460
|
+
"$ xano tenant push ./my-workspace -t my-tenant --records\nInclude table records in import\n",
|
|
3461
|
+
"$ xano tenant push ./my-workspace -t my-tenant --env\nInclude environment variables in import\n",
|
|
3462
|
+
"$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
|
|
3285
3463
|
],
|
|
3286
3464
|
"flags": {
|
|
3287
3465
|
"profile": {
|
|
@@ -3303,22 +3481,15 @@
|
|
|
3303
3481
|
"allowNo": false,
|
|
3304
3482
|
"type": "boolean"
|
|
3305
3483
|
},
|
|
3306
|
-
"draft": {
|
|
3307
|
-
"description": "Include draft versions",
|
|
3308
|
-
"name": "draft",
|
|
3309
|
-
"required": false,
|
|
3310
|
-
"allowNo": false,
|
|
3311
|
-
"type": "boolean"
|
|
3312
|
-
},
|
|
3313
3484
|
"env": {
|
|
3314
|
-
"description": "Include environment variables",
|
|
3485
|
+
"description": "Include environment variables in import",
|
|
3315
3486
|
"name": "env",
|
|
3316
3487
|
"required": false,
|
|
3317
3488
|
"allowNo": false,
|
|
3318
3489
|
"type": "boolean"
|
|
3319
3490
|
},
|
|
3320
3491
|
"records": {
|
|
3321
|
-
"description": "Include records",
|
|
3492
|
+
"description": "Include records in import",
|
|
3322
3493
|
"name": "records",
|
|
3323
3494
|
"required": false,
|
|
3324
3495
|
"allowNo": false,
|
|
@@ -3326,13 +3497,20 @@
|
|
|
3326
3497
|
},
|
|
3327
3498
|
"tenant": {
|
|
3328
3499
|
"char": "t",
|
|
3329
|
-
"description": "Tenant name to
|
|
3500
|
+
"description": "Tenant name to push to",
|
|
3330
3501
|
"name": "tenant",
|
|
3331
3502
|
"required": true,
|
|
3332
3503
|
"hasDynamicHelp": false,
|
|
3333
3504
|
"multiple": false,
|
|
3334
3505
|
"type": "option"
|
|
3335
3506
|
},
|
|
3507
|
+
"truncate": {
|
|
3508
|
+
"description": "Truncate all table records before importing",
|
|
3509
|
+
"name": "truncate",
|
|
3510
|
+
"required": false,
|
|
3511
|
+
"allowNo": false,
|
|
3512
|
+
"type": "boolean"
|
|
3513
|
+
},
|
|
3336
3514
|
"workspace": {
|
|
3337
3515
|
"char": "w",
|
|
3338
3516
|
"description": "Workspace ID (optional if set in profile)",
|
|
@@ -3345,7 +3523,7 @@
|
|
|
3345
3523
|
},
|
|
3346
3524
|
"hasDynamicHelp": false,
|
|
3347
3525
|
"hiddenAliases": [],
|
|
3348
|
-
"id": "tenant:
|
|
3526
|
+
"id": "tenant:push",
|
|
3349
3527
|
"pluginAlias": "@xano/cli",
|
|
3350
3528
|
"pluginName": "@xano/cli",
|
|
3351
3529
|
"pluginType": "core",
|
|
@@ -3356,7 +3534,7 @@
|
|
|
3356
3534
|
"dist",
|
|
3357
3535
|
"commands",
|
|
3358
3536
|
"tenant",
|
|
3359
|
-
"
|
|
3537
|
+
"push",
|
|
3360
3538
|
"index.js"
|
|
3361
3539
|
]
|
|
3362
3540
|
},
|
|
@@ -3452,101 +3630,6 @@
|
|
|
3452
3630
|
"index.js"
|
|
3453
3631
|
]
|
|
3454
3632
|
},
|
|
3455
|
-
"tenant:push": {
|
|
3456
|
-
"aliases": [],
|
|
3457
|
-
"args": {
|
|
3458
|
-
"directory": {
|
|
3459
|
-
"description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
|
|
3460
|
-
"name": "directory",
|
|
3461
|
-
"required": true
|
|
3462
|
-
}
|
|
3463
|
-
},
|
|
3464
|
-
"description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
|
|
3465
|
-
"examples": [
|
|
3466
|
-
"$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
|
|
3467
|
-
"$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
|
|
3468
|
-
"$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
|
|
3469
|
-
"$ xano tenant push ./my-workspace -t my-tenant --records\nInclude table records in import\n",
|
|
3470
|
-
"$ xano tenant push ./my-workspace -t my-tenant --env\nInclude environment variables in import\n",
|
|
3471
|
-
"$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
|
|
3472
|
-
],
|
|
3473
|
-
"flags": {
|
|
3474
|
-
"profile": {
|
|
3475
|
-
"char": "p",
|
|
3476
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
3477
|
-
"env": "XANO_PROFILE",
|
|
3478
|
-
"name": "profile",
|
|
3479
|
-
"required": false,
|
|
3480
|
-
"hasDynamicHelp": false,
|
|
3481
|
-
"multiple": false,
|
|
3482
|
-
"type": "option"
|
|
3483
|
-
},
|
|
3484
|
-
"verbose": {
|
|
3485
|
-
"char": "v",
|
|
3486
|
-
"description": "Show detailed request/response information",
|
|
3487
|
-
"env": "XANO_VERBOSE",
|
|
3488
|
-
"name": "verbose",
|
|
3489
|
-
"required": false,
|
|
3490
|
-
"allowNo": false,
|
|
3491
|
-
"type": "boolean"
|
|
3492
|
-
},
|
|
3493
|
-
"env": {
|
|
3494
|
-
"description": "Include environment variables in import",
|
|
3495
|
-
"name": "env",
|
|
3496
|
-
"required": false,
|
|
3497
|
-
"allowNo": false,
|
|
3498
|
-
"type": "boolean"
|
|
3499
|
-
},
|
|
3500
|
-
"records": {
|
|
3501
|
-
"description": "Include records in import",
|
|
3502
|
-
"name": "records",
|
|
3503
|
-
"required": false,
|
|
3504
|
-
"allowNo": false,
|
|
3505
|
-
"type": "boolean"
|
|
3506
|
-
},
|
|
3507
|
-
"tenant": {
|
|
3508
|
-
"char": "t",
|
|
3509
|
-
"description": "Tenant name to push to",
|
|
3510
|
-
"name": "tenant",
|
|
3511
|
-
"required": true,
|
|
3512
|
-
"hasDynamicHelp": false,
|
|
3513
|
-
"multiple": false,
|
|
3514
|
-
"type": "option"
|
|
3515
|
-
},
|
|
3516
|
-
"truncate": {
|
|
3517
|
-
"description": "Truncate all table records before importing",
|
|
3518
|
-
"name": "truncate",
|
|
3519
|
-
"required": false,
|
|
3520
|
-
"allowNo": false,
|
|
3521
|
-
"type": "boolean"
|
|
3522
|
-
},
|
|
3523
|
-
"workspace": {
|
|
3524
|
-
"char": "w",
|
|
3525
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
3526
|
-
"name": "workspace",
|
|
3527
|
-
"required": false,
|
|
3528
|
-
"hasDynamicHelp": false,
|
|
3529
|
-
"multiple": false,
|
|
3530
|
-
"type": "option"
|
|
3531
|
-
}
|
|
3532
|
-
},
|
|
3533
|
-
"hasDynamicHelp": false,
|
|
3534
|
-
"hiddenAliases": [],
|
|
3535
|
-
"id": "tenant:push",
|
|
3536
|
-
"pluginAlias": "@xano/cli",
|
|
3537
|
-
"pluginName": "@xano/cli",
|
|
3538
|
-
"pluginType": "core",
|
|
3539
|
-
"strict": true,
|
|
3540
|
-
"enableJsonFlag": false,
|
|
3541
|
-
"isESM": true,
|
|
3542
|
-
"relativePath": [
|
|
3543
|
-
"dist",
|
|
3544
|
-
"commands",
|
|
3545
|
-
"tenant",
|
|
3546
|
-
"push",
|
|
3547
|
-
"index.js"
|
|
3548
|
-
]
|
|
3549
|
-
},
|
|
3550
3633
|
"unit_test:run": {
|
|
3551
3634
|
"aliases": [],
|
|
3552
3635
|
"args": {
|
|
@@ -4034,89 +4117,6 @@
|
|
|
4034
4117
|
"index.js"
|
|
4035
4118
|
]
|
|
4036
4119
|
},
|
|
4037
|
-
"tenant:deploy_platform": {
|
|
4038
|
-
"aliases": [],
|
|
4039
|
-
"args": {
|
|
4040
|
-
"tenant_name": {
|
|
4041
|
-
"description": "Tenant name to deploy to",
|
|
4042
|
-
"name": "tenant_name",
|
|
4043
|
-
"required": true
|
|
4044
|
-
}
|
|
4045
|
-
},
|
|
4046
|
-
"description": "Deploy a platform version to a tenant",
|
|
4047
|
-
"examples": [
|
|
4048
|
-
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
4049
|
-
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
|
|
4050
|
-
],
|
|
4051
|
-
"flags": {
|
|
4052
|
-
"profile": {
|
|
4053
|
-
"char": "p",
|
|
4054
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
4055
|
-
"env": "XANO_PROFILE",
|
|
4056
|
-
"name": "profile",
|
|
4057
|
-
"required": false,
|
|
4058
|
-
"hasDynamicHelp": false,
|
|
4059
|
-
"multiple": false,
|
|
4060
|
-
"type": "option"
|
|
4061
|
-
},
|
|
4062
|
-
"verbose": {
|
|
4063
|
-
"char": "v",
|
|
4064
|
-
"description": "Show detailed request/response information",
|
|
4065
|
-
"env": "XANO_VERBOSE",
|
|
4066
|
-
"name": "verbose",
|
|
4067
|
-
"required": false,
|
|
4068
|
-
"allowNo": false,
|
|
4069
|
-
"type": "boolean"
|
|
4070
|
-
},
|
|
4071
|
-
"output": {
|
|
4072
|
-
"char": "o",
|
|
4073
|
-
"description": "Output format",
|
|
4074
|
-
"name": "output",
|
|
4075
|
-
"required": false,
|
|
4076
|
-
"default": "summary",
|
|
4077
|
-
"hasDynamicHelp": false,
|
|
4078
|
-
"multiple": false,
|
|
4079
|
-
"options": [
|
|
4080
|
-
"summary",
|
|
4081
|
-
"json"
|
|
4082
|
-
],
|
|
4083
|
-
"type": "option"
|
|
4084
|
-
},
|
|
4085
|
-
"platform_id": {
|
|
4086
|
-
"description": "Platform ID to deploy",
|
|
4087
|
-
"name": "platform_id",
|
|
4088
|
-
"required": true,
|
|
4089
|
-
"hasDynamicHelp": false,
|
|
4090
|
-
"multiple": false,
|
|
4091
|
-
"type": "option"
|
|
4092
|
-
},
|
|
4093
|
-
"workspace": {
|
|
4094
|
-
"char": "w",
|
|
4095
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4096
|
-
"name": "workspace",
|
|
4097
|
-
"required": false,
|
|
4098
|
-
"hasDynamicHelp": false,
|
|
4099
|
-
"multiple": false,
|
|
4100
|
-
"type": "option"
|
|
4101
|
-
}
|
|
4102
|
-
},
|
|
4103
|
-
"hasDynamicHelp": false,
|
|
4104
|
-
"hiddenAliases": [],
|
|
4105
|
-
"id": "tenant:deploy_platform",
|
|
4106
|
-
"pluginAlias": "@xano/cli",
|
|
4107
|
-
"pluginName": "@xano/cli",
|
|
4108
|
-
"pluginType": "core",
|
|
4109
|
-
"strict": true,
|
|
4110
|
-
"enableJsonFlag": false,
|
|
4111
|
-
"isESM": true,
|
|
4112
|
-
"relativePath": [
|
|
4113
|
-
"dist",
|
|
4114
|
-
"commands",
|
|
4115
|
-
"tenant",
|
|
4116
|
-
"deploy_platform",
|
|
4117
|
-
"index.js"
|
|
4118
|
-
]
|
|
4119
|
-
},
|
|
4120
4120
|
"workflow_test:run_all": {
|
|
4121
4121
|
"aliases": [],
|
|
4122
4122
|
"args": {},
|
|
@@ -4346,20 +4346,21 @@
|
|
|
4346
4346
|
"index.js"
|
|
4347
4347
|
]
|
|
4348
4348
|
},
|
|
4349
|
-
"workspace:
|
|
4349
|
+
"workspace:edit": {
|
|
4350
4350
|
"aliases": [],
|
|
4351
4351
|
"args": {
|
|
4352
4352
|
"workspace_id": {
|
|
4353
|
-
"description": "Workspace ID to
|
|
4353
|
+
"description": "Workspace ID to edit (uses profile workspace if not provided)",
|
|
4354
4354
|
"name": "workspace_id",
|
|
4355
4355
|
"required": false
|
|
4356
4356
|
}
|
|
4357
4357
|
},
|
|
4358
|
-
"description": "
|
|
4358
|
+
"description": "Edit an existing workspace via the Xano Metadata API",
|
|
4359
4359
|
"examples": [
|
|
4360
|
-
"$ xano workspace
|
|
4361
|
-
"$ xano workspace
|
|
4362
|
-
"$ xano workspace
|
|
4360
|
+
"$ xano workspace edit 123 --name \"new-name\"\nUpdated workspace: new-name (ID: 123)\n",
|
|
4361
|
+
"$ xano workspace edit --name \"updated-workspace\" --description \"Updated description\"\nUpdated workspace: updated-workspace (ID: 123)\n Description: Updated description\n",
|
|
4362
|
+
"$ xano workspace edit 123 --swagger --require-token\nUpdated workspace: my-workspace (ID: 123)\n Swagger: enabled\n Require Token: true\n",
|
|
4363
|
+
"$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\n"
|
|
4363
4364
|
],
|
|
4364
4365
|
"flags": {
|
|
4365
4366
|
"profile": {
|
|
@@ -4381,6 +4382,24 @@
|
|
|
4381
4382
|
"allowNo": false,
|
|
4382
4383
|
"type": "boolean"
|
|
4383
4384
|
},
|
|
4385
|
+
"description": {
|
|
4386
|
+
"char": "d",
|
|
4387
|
+
"description": "New description for the workspace",
|
|
4388
|
+
"name": "description",
|
|
4389
|
+
"required": false,
|
|
4390
|
+
"hasDynamicHelp": false,
|
|
4391
|
+
"multiple": false,
|
|
4392
|
+
"type": "option"
|
|
4393
|
+
},
|
|
4394
|
+
"name": {
|
|
4395
|
+
"char": "n",
|
|
4396
|
+
"description": "New name for the workspace",
|
|
4397
|
+
"name": "name",
|
|
4398
|
+
"required": false,
|
|
4399
|
+
"hasDynamicHelp": false,
|
|
4400
|
+
"multiple": false,
|
|
4401
|
+
"type": "option"
|
|
4402
|
+
},
|
|
4384
4403
|
"output": {
|
|
4385
4404
|
"char": "o",
|
|
4386
4405
|
"description": "Output format",
|
|
@@ -4394,11 +4413,25 @@
|
|
|
4394
4413
|
"json"
|
|
4395
4414
|
],
|
|
4396
4415
|
"type": "option"
|
|
4416
|
+
},
|
|
4417
|
+
"require-token": {
|
|
4418
|
+
"description": "Whether to require a token for documentation access",
|
|
4419
|
+
"name": "require-token",
|
|
4420
|
+
"required": false,
|
|
4421
|
+
"allowNo": true,
|
|
4422
|
+
"type": "boolean"
|
|
4423
|
+
},
|
|
4424
|
+
"swagger": {
|
|
4425
|
+
"description": "Enable or disable swagger documentation",
|
|
4426
|
+
"name": "swagger",
|
|
4427
|
+
"required": false,
|
|
4428
|
+
"allowNo": true,
|
|
4429
|
+
"type": "boolean"
|
|
4397
4430
|
}
|
|
4398
4431
|
},
|
|
4399
4432
|
"hasDynamicHelp": false,
|
|
4400
4433
|
"hiddenAliases": [],
|
|
4401
|
-
"id": "workspace:
|
|
4434
|
+
"id": "workspace:edit",
|
|
4402
4435
|
"pluginAlias": "@xano/cli",
|
|
4403
4436
|
"pluginName": "@xano/cli",
|
|
4404
4437
|
"pluginType": "core",
|
|
@@ -4409,19 +4442,24 @@
|
|
|
4409
4442
|
"dist",
|
|
4410
4443
|
"commands",
|
|
4411
4444
|
"workspace",
|
|
4412
|
-
"
|
|
4445
|
+
"edit",
|
|
4413
4446
|
"index.js"
|
|
4414
4447
|
]
|
|
4415
4448
|
},
|
|
4416
|
-
"workspace:
|
|
4449
|
+
"workspace:get": {
|
|
4417
4450
|
"aliases": [],
|
|
4418
|
-
"args": {
|
|
4419
|
-
|
|
4451
|
+
"args": {
|
|
4452
|
+
"workspace_id": {
|
|
4453
|
+
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
4454
|
+
"name": "workspace_id",
|
|
4455
|
+
"required": false
|
|
4456
|
+
}
|
|
4457
|
+
},
|
|
4458
|
+
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
4420
4459
|
"examples": [
|
|
4421
|
-
"$ xano workspace:
|
|
4422
|
-
"$ xano workspace
|
|
4423
|
-
"$ xano workspace
|
|
4424
|
-
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
4460
|
+
"$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
|
|
4461
|
+
"$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
|
|
4462
|
+
"$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
|
|
4425
4463
|
],
|
|
4426
4464
|
"flags": {
|
|
4427
4465
|
"profile": {
|
|
@@ -4460,7 +4498,7 @@
|
|
|
4460
4498
|
},
|
|
4461
4499
|
"hasDynamicHelp": false,
|
|
4462
4500
|
"hiddenAliases": [],
|
|
4463
|
-
"id": "workspace:
|
|
4501
|
+
"id": "workspace:get",
|
|
4464
4502
|
"pluginAlias": "@xano/cli",
|
|
4465
4503
|
"pluginName": "@xano/cli",
|
|
4466
4504
|
"pluginType": "core",
|
|
@@ -4471,25 +4509,19 @@
|
|
|
4471
4509
|
"dist",
|
|
4472
4510
|
"commands",
|
|
4473
4511
|
"workspace",
|
|
4474
|
-
"
|
|
4512
|
+
"get",
|
|
4475
4513
|
"index.js"
|
|
4476
4514
|
]
|
|
4477
4515
|
},
|
|
4478
|
-
"workspace:
|
|
4516
|
+
"workspace:list": {
|
|
4479
4517
|
"aliases": [],
|
|
4480
|
-
"args": {
|
|
4481
|
-
|
|
4482
|
-
"description": "Workspace ID to edit (uses profile workspace if not provided)",
|
|
4483
|
-
"name": "workspace_id",
|
|
4484
|
-
"required": false
|
|
4485
|
-
}
|
|
4486
|
-
},
|
|
4487
|
-
"description": "Edit an existing workspace via the Xano Metadata API",
|
|
4518
|
+
"args": {},
|
|
4519
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
4488
4520
|
"examples": [
|
|
4489
|
-
"$ xano workspace
|
|
4490
|
-
"$ xano workspace
|
|
4491
|
-
"$ xano workspace
|
|
4492
|
-
"$ xano workspace
|
|
4521
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
4522
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
4523
|
+
"$ 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",
|
|
4524
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
4493
4525
|
],
|
|
4494
4526
|
"flags": {
|
|
4495
4527
|
"profile": {
|
|
@@ -4511,24 +4543,6 @@
|
|
|
4511
4543
|
"allowNo": false,
|
|
4512
4544
|
"type": "boolean"
|
|
4513
4545
|
},
|
|
4514
|
-
"description": {
|
|
4515
|
-
"char": "d",
|
|
4516
|
-
"description": "New description for the workspace",
|
|
4517
|
-
"name": "description",
|
|
4518
|
-
"required": false,
|
|
4519
|
-
"hasDynamicHelp": false,
|
|
4520
|
-
"multiple": false,
|
|
4521
|
-
"type": "option"
|
|
4522
|
-
},
|
|
4523
|
-
"name": {
|
|
4524
|
-
"char": "n",
|
|
4525
|
-
"description": "New name for the workspace",
|
|
4526
|
-
"name": "name",
|
|
4527
|
-
"required": false,
|
|
4528
|
-
"hasDynamicHelp": false,
|
|
4529
|
-
"multiple": false,
|
|
4530
|
-
"type": "option"
|
|
4531
|
-
},
|
|
4532
4546
|
"output": {
|
|
4533
4547
|
"char": "o",
|
|
4534
4548
|
"description": "Output format",
|
|
@@ -4542,25 +4556,11 @@
|
|
|
4542
4556
|
"json"
|
|
4543
4557
|
],
|
|
4544
4558
|
"type": "option"
|
|
4545
|
-
},
|
|
4546
|
-
"require-token": {
|
|
4547
|
-
"description": "Whether to require a token for documentation access",
|
|
4548
|
-
"name": "require-token",
|
|
4549
|
-
"required": false,
|
|
4550
|
-
"allowNo": true,
|
|
4551
|
-
"type": "boolean"
|
|
4552
|
-
},
|
|
4553
|
-
"swagger": {
|
|
4554
|
-
"description": "Enable or disable swagger documentation",
|
|
4555
|
-
"name": "swagger",
|
|
4556
|
-
"required": false,
|
|
4557
|
-
"allowNo": true,
|
|
4558
|
-
"type": "boolean"
|
|
4559
4559
|
}
|
|
4560
4560
|
},
|
|
4561
4561
|
"hasDynamicHelp": false,
|
|
4562
4562
|
"hiddenAliases": [],
|
|
4563
|
-
"id": "workspace:
|
|
4563
|
+
"id": "workspace:list",
|
|
4564
4564
|
"pluginAlias": "@xano/cli",
|
|
4565
4565
|
"pluginName": "@xano/cli",
|
|
4566
4566
|
"pluginType": "core",
|
|
@@ -4571,7 +4571,7 @@
|
|
|
4571
4571
|
"dist",
|
|
4572
4572
|
"commands",
|
|
4573
4573
|
"workspace",
|
|
4574
|
-
"
|
|
4574
|
+
"list",
|
|
4575
4575
|
"index.js"
|
|
4576
4576
|
]
|
|
4577
4577
|
},
|
|
@@ -4678,9 +4678,10 @@
|
|
|
4678
4678
|
"required": true
|
|
4679
4679
|
}
|
|
4680
4680
|
},
|
|
4681
|
-
"description": "Push local documents to a workspace. Shows a preview of changes before pushing unless --
|
|
4681
|
+
"description": "Push local documents to a workspace. Shows a preview of changes before pushing unless --force is specified. Use --dry-run to preview only.",
|
|
4682
4682
|
"examples": [
|
|
4683
4683
|
"$ xano workspace push ./my-workspace\nShows preview of changes, requires confirmation\n",
|
|
4684
|
+
"$ xano workspace push ./my-workspace --dry-run\nPreview changes without pushing\n",
|
|
4684
4685
|
"$ xano workspace push ./my-workspace --force\nSkip preview and push immediately (for CI/CD)\n",
|
|
4685
4686
|
"$ xano workspace push ./my-workspace --delete\nShows preview including deletions, requires confirmation\n",
|
|
4686
4687
|
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
@@ -4727,6 +4728,13 @@
|
|
|
4727
4728
|
"allowNo": false,
|
|
4728
4729
|
"type": "boolean"
|
|
4729
4730
|
},
|
|
4731
|
+
"dry-run": {
|
|
4732
|
+
"description": "Show preview of changes without pushing (exit after preview)",
|
|
4733
|
+
"name": "dry-run",
|
|
4734
|
+
"required": false,
|
|
4735
|
+
"allowNo": false,
|
|
4736
|
+
"type": "boolean"
|
|
4737
|
+
},
|
|
4730
4738
|
"env": {
|
|
4731
4739
|
"description": "Include environment variables in import",
|
|
4732
4740
|
"name": "env",
|
|
@@ -5126,19 +5134,13 @@
|
|
|
5126
5134
|
"index.js"
|
|
5127
5135
|
]
|
|
5128
5136
|
},
|
|
5129
|
-
"tenant:
|
|
5137
|
+
"tenant:cluster:create": {
|
|
5130
5138
|
"aliases": [],
|
|
5131
|
-
"args": {
|
|
5132
|
-
|
|
5133
|
-
"description": "Tenant name to back up",
|
|
5134
|
-
"name": "tenant_name",
|
|
5135
|
-
"required": true
|
|
5136
|
-
}
|
|
5137
|
-
},
|
|
5138
|
-
"description": "Create a backup for a tenant",
|
|
5139
|
+
"args": {},
|
|
5140
|
+
"description": "Create a new tenant cluster",
|
|
5139
5141
|
"examples": [
|
|
5140
|
-
"$ xano tenant
|
|
5141
|
-
"$ xano tenant
|
|
5142
|
+
"$ xano tenant cluster create --name \"us-east-1\" --credentials_file ./kubeconfig.yaml\nCreated tenant cluster: us-east-1 (standard) - ID: 3\n",
|
|
5143
|
+
"$ xano tenant cluster create --name \"eu-west-1\" --credentials \"...\" --type run --description \"EU run cluster\" -o json"
|
|
5142
5144
|
],
|
|
5143
5145
|
"flags": {
|
|
5144
5146
|
"profile": {
|
|
@@ -5160,105 +5162,58 @@
|
|
|
5160
5162
|
"allowNo": false,
|
|
5161
5163
|
"type": "boolean"
|
|
5162
5164
|
},
|
|
5163
|
-
"
|
|
5164
|
-
"
|
|
5165
|
-
"
|
|
5166
|
-
|
|
5165
|
+
"credentials": {
|
|
5166
|
+
"description": "Kubeconfig credentials (raw text)",
|
|
5167
|
+
"exclusive": [
|
|
5168
|
+
"credentials_file"
|
|
5169
|
+
],
|
|
5170
|
+
"name": "credentials",
|
|
5167
5171
|
"required": false,
|
|
5168
|
-
"default": "",
|
|
5169
5172
|
"hasDynamicHelp": false,
|
|
5170
5173
|
"multiple": false,
|
|
5171
5174
|
"type": "option"
|
|
5172
5175
|
},
|
|
5173
|
-
"
|
|
5174
|
-
"
|
|
5175
|
-
"
|
|
5176
|
-
|
|
5176
|
+
"credentials_file": {
|
|
5177
|
+
"description": "Path to kubeconfig credentials file",
|
|
5178
|
+
"exclusive": [
|
|
5179
|
+
"credentials"
|
|
5180
|
+
],
|
|
5181
|
+
"name": "credentials_file",
|
|
5177
5182
|
"required": false,
|
|
5178
|
-
"default": "summary",
|
|
5179
5183
|
"hasDynamicHelp": false,
|
|
5180
5184
|
"multiple": false,
|
|
5181
|
-
"options": [
|
|
5182
|
-
"summary",
|
|
5183
|
-
"json"
|
|
5184
|
-
],
|
|
5185
5185
|
"type": "option"
|
|
5186
5186
|
},
|
|
5187
|
-
"
|
|
5188
|
-
"char": "
|
|
5189
|
-
"description": "
|
|
5190
|
-
"name": "
|
|
5187
|
+
"description": {
|
|
5188
|
+
"char": "d",
|
|
5189
|
+
"description": "Cluster description",
|
|
5190
|
+
"name": "description",
|
|
5191
5191
|
"required": false,
|
|
5192
5192
|
"hasDynamicHelp": false,
|
|
5193
5193
|
"multiple": false,
|
|
5194
5194
|
"type": "option"
|
|
5195
|
-
}
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
"id": "tenant:backup:create",
|
|
5200
|
-
"pluginAlias": "@xano/cli",
|
|
5201
|
-
"pluginName": "@xano/cli",
|
|
5202
|
-
"pluginType": "core",
|
|
5203
|
-
"strict": true,
|
|
5204
|
-
"enableJsonFlag": false,
|
|
5205
|
-
"isESM": true,
|
|
5206
|
-
"relativePath": [
|
|
5207
|
-
"dist",
|
|
5208
|
-
"commands",
|
|
5209
|
-
"tenant",
|
|
5210
|
-
"backup",
|
|
5211
|
-
"create",
|
|
5212
|
-
"index.js"
|
|
5213
|
-
]
|
|
5214
|
-
},
|
|
5215
|
-
"tenant:backup:export": {
|
|
5216
|
-
"aliases": [],
|
|
5217
|
-
"args": {
|
|
5218
|
-
"tenant_name": {
|
|
5219
|
-
"description": "Tenant name to export backup from",
|
|
5220
|
-
"name": "tenant_name",
|
|
5221
|
-
"required": true
|
|
5222
|
-
}
|
|
5223
|
-
},
|
|
5224
|
-
"description": "Export (download) a tenant backup to a local file",
|
|
5225
|
-
"examples": [
|
|
5226
|
-
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
|
|
5227
|
-
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
|
|
5228
|
-
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5229
|
-
],
|
|
5230
|
-
"flags": {
|
|
5231
|
-
"profile": {
|
|
5232
|
-
"char": "p",
|
|
5233
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
5234
|
-
"env": "XANO_PROFILE",
|
|
5235
|
-
"name": "profile",
|
|
5195
|
+
},
|
|
5196
|
+
"domain": {
|
|
5197
|
+
"description": "Custom domain for the cluster",
|
|
5198
|
+
"name": "domain",
|
|
5236
5199
|
"required": false,
|
|
5237
5200
|
"hasDynamicHelp": false,
|
|
5238
5201
|
"multiple": false,
|
|
5239
5202
|
"type": "option"
|
|
5240
5203
|
},
|
|
5241
|
-
"
|
|
5242
|
-
"char": "
|
|
5243
|
-
"description": "
|
|
5244
|
-
"
|
|
5245
|
-
"name": "verbose",
|
|
5246
|
-
"required": false,
|
|
5247
|
-
"allowNo": false,
|
|
5248
|
-
"type": "boolean"
|
|
5249
|
-
},
|
|
5250
|
-
"backup_id": {
|
|
5251
|
-
"description": "Backup ID to export",
|
|
5252
|
-
"name": "backup_id",
|
|
5204
|
+
"name": {
|
|
5205
|
+
"char": "n",
|
|
5206
|
+
"description": "Cluster name",
|
|
5207
|
+
"name": "name",
|
|
5253
5208
|
"required": true,
|
|
5254
5209
|
"hasDynamicHelp": false,
|
|
5255
5210
|
"multiple": false,
|
|
5256
5211
|
"type": "option"
|
|
5257
5212
|
},
|
|
5258
|
-
"
|
|
5213
|
+
"output": {
|
|
5259
5214
|
"char": "o",
|
|
5260
5215
|
"description": "Output format",
|
|
5261
|
-
"name": "
|
|
5216
|
+
"name": "output",
|
|
5262
5217
|
"required": false,
|
|
5263
5218
|
"default": "summary",
|
|
5264
5219
|
"hasDynamicHelp": false,
|
|
@@ -5269,27 +5224,23 @@
|
|
|
5269
5224
|
],
|
|
5270
5225
|
"type": "option"
|
|
5271
5226
|
},
|
|
5272
|
-
"
|
|
5273
|
-
"description": "
|
|
5274
|
-
"name": "
|
|
5275
|
-
"required": false,
|
|
5276
|
-
"hasDynamicHelp": false,
|
|
5277
|
-
"multiple": false,
|
|
5278
|
-
"type": "option"
|
|
5279
|
-
},
|
|
5280
|
-
"workspace": {
|
|
5281
|
-
"char": "w",
|
|
5282
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5283
|
-
"name": "workspace",
|
|
5227
|
+
"type": {
|
|
5228
|
+
"description": "Cluster type",
|
|
5229
|
+
"name": "type",
|
|
5284
5230
|
"required": false,
|
|
5231
|
+
"default": "standard",
|
|
5285
5232
|
"hasDynamicHelp": false,
|
|
5286
5233
|
"multiple": false,
|
|
5234
|
+
"options": [
|
|
5235
|
+
"standard",
|
|
5236
|
+
"run"
|
|
5237
|
+
],
|
|
5287
5238
|
"type": "option"
|
|
5288
5239
|
}
|
|
5289
5240
|
},
|
|
5290
5241
|
"hasDynamicHelp": false,
|
|
5291
5242
|
"hiddenAliases": [],
|
|
5292
|
-
"id": "tenant:
|
|
5243
|
+
"id": "tenant:cluster:create",
|
|
5293
5244
|
"pluginAlias": "@xano/cli",
|
|
5294
5245
|
"pluginName": "@xano/cli",
|
|
5295
5246
|
"pluginType": "core",
|
|
@@ -5300,24 +5251,24 @@
|
|
|
5300
5251
|
"dist",
|
|
5301
5252
|
"commands",
|
|
5302
5253
|
"tenant",
|
|
5303
|
-
"
|
|
5304
|
-
"
|
|
5254
|
+
"cluster",
|
|
5255
|
+
"create",
|
|
5305
5256
|
"index.js"
|
|
5306
5257
|
]
|
|
5307
5258
|
},
|
|
5308
|
-
"tenant:
|
|
5259
|
+
"tenant:cluster:edit": {
|
|
5309
5260
|
"aliases": [],
|
|
5310
5261
|
"args": {
|
|
5311
|
-
"
|
|
5312
|
-
"description": "
|
|
5313
|
-
"name": "
|
|
5262
|
+
"cluster_id": {
|
|
5263
|
+
"description": "Cluster ID to edit",
|
|
5264
|
+
"name": "cluster_id",
|
|
5314
5265
|
"required": true
|
|
5315
5266
|
}
|
|
5316
5267
|
},
|
|
5317
|
-
"description": "
|
|
5268
|
+
"description": "Update an existing tenant cluster",
|
|
5318
5269
|
"examples": [
|
|
5319
|
-
"$ xano tenant
|
|
5320
|
-
"$ xano tenant
|
|
5270
|
+
"$ xano tenant cluster edit 1 --name \"us-east-1-updated\" --description \"Updated cluster\" --domain \"us-east.xano.io\" --type standard\nUpdated tenant cluster: us-east-1-updated (standard) - ID: 1\n",
|
|
5271
|
+
"$ xano tenant cluster edit 1 --name \"eu-west\" --description \"\" --domain \"\" --type run -o json"
|
|
5321
5272
|
],
|
|
5322
5273
|
"flags": {
|
|
5323
5274
|
"profile": {
|
|
@@ -5339,6 +5290,32 @@
|
|
|
5339
5290
|
"allowNo": false,
|
|
5340
5291
|
"type": "boolean"
|
|
5341
5292
|
},
|
|
5293
|
+
"description": {
|
|
5294
|
+
"char": "d",
|
|
5295
|
+
"description": "Cluster description",
|
|
5296
|
+
"name": "description",
|
|
5297
|
+
"required": true,
|
|
5298
|
+
"hasDynamicHelp": false,
|
|
5299
|
+
"multiple": false,
|
|
5300
|
+
"type": "option"
|
|
5301
|
+
},
|
|
5302
|
+
"domain": {
|
|
5303
|
+
"description": "Custom domain for the cluster",
|
|
5304
|
+
"name": "domain",
|
|
5305
|
+
"required": true,
|
|
5306
|
+
"hasDynamicHelp": false,
|
|
5307
|
+
"multiple": false,
|
|
5308
|
+
"type": "option"
|
|
5309
|
+
},
|
|
5310
|
+
"name": {
|
|
5311
|
+
"char": "n",
|
|
5312
|
+
"description": "Cluster name",
|
|
5313
|
+
"name": "name",
|
|
5314
|
+
"required": true,
|
|
5315
|
+
"hasDynamicHelp": false,
|
|
5316
|
+
"multiple": false,
|
|
5317
|
+
"type": "option"
|
|
5318
|
+
},
|
|
5342
5319
|
"output": {
|
|
5343
5320
|
"char": "o",
|
|
5344
5321
|
"description": "Output format",
|
|
@@ -5350,31 +5327,25 @@
|
|
|
5350
5327
|
"options": [
|
|
5351
5328
|
"summary",
|
|
5352
5329
|
"json"
|
|
5353
|
-
],
|
|
5354
|
-
"type": "option"
|
|
5355
|
-
},
|
|
5356
|
-
"
|
|
5357
|
-
"description": "
|
|
5358
|
-
"name": "
|
|
5359
|
-
"required":
|
|
5360
|
-
"default": 1,
|
|
5361
|
-
"hasDynamicHelp": false,
|
|
5362
|
-
"multiple": false,
|
|
5363
|
-
"type": "option"
|
|
5364
|
-
},
|
|
5365
|
-
"workspace": {
|
|
5366
|
-
"char": "w",
|
|
5367
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5368
|
-
"name": "workspace",
|
|
5369
|
-
"required": false,
|
|
5330
|
+
],
|
|
5331
|
+
"type": "option"
|
|
5332
|
+
},
|
|
5333
|
+
"type": {
|
|
5334
|
+
"description": "Cluster type",
|
|
5335
|
+
"name": "type",
|
|
5336
|
+
"required": true,
|
|
5370
5337
|
"hasDynamicHelp": false,
|
|
5371
5338
|
"multiple": false,
|
|
5339
|
+
"options": [
|
|
5340
|
+
"standard",
|
|
5341
|
+
"run"
|
|
5342
|
+
],
|
|
5372
5343
|
"type": "option"
|
|
5373
5344
|
}
|
|
5374
5345
|
},
|
|
5375
5346
|
"hasDynamicHelp": false,
|
|
5376
5347
|
"hiddenAliases": [],
|
|
5377
|
-
"id": "tenant:
|
|
5348
|
+
"id": "tenant:cluster:edit",
|
|
5378
5349
|
"pluginAlias": "@xano/cli",
|
|
5379
5350
|
"pluginName": "@xano/cli",
|
|
5380
5351
|
"pluginType": "core",
|
|
@@ -5385,25 +5356,24 @@
|
|
|
5385
5356
|
"dist",
|
|
5386
5357
|
"commands",
|
|
5387
5358
|
"tenant",
|
|
5388
|
-
"
|
|
5389
|
-
"
|
|
5359
|
+
"cluster",
|
|
5360
|
+
"edit",
|
|
5390
5361
|
"index.js"
|
|
5391
5362
|
]
|
|
5392
5363
|
},
|
|
5393
|
-
"tenant:
|
|
5364
|
+
"tenant:cluster:get": {
|
|
5394
5365
|
"aliases": [],
|
|
5395
5366
|
"args": {
|
|
5396
|
-
"
|
|
5397
|
-
"description": "
|
|
5398
|
-
"name": "
|
|
5367
|
+
"cluster_id": {
|
|
5368
|
+
"description": "Cluster ID to retrieve",
|
|
5369
|
+
"name": "cluster_id",
|
|
5399
5370
|
"required": true
|
|
5400
5371
|
}
|
|
5401
5372
|
},
|
|
5402
|
-
"description": "
|
|
5373
|
+
"description": "Get details of a specific tenant cluster",
|
|
5403
5374
|
"examples": [
|
|
5404
|
-
"$ xano tenant
|
|
5405
|
-
"$ xano tenant
|
|
5406
|
-
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5375
|
+
"$ xano tenant cluster get 1\nCluster: us-east-1\n ID: 1\n Type: standard\n Domain: us-east-1.xano.io\n",
|
|
5376
|
+
"$ xano tenant cluster get 1 -o json"
|
|
5407
5377
|
],
|
|
5408
5378
|
"flags": {
|
|
5409
5379
|
"profile": {
|
|
@@ -5425,22 +5395,6 @@
|
|
|
5425
5395
|
"allowNo": false,
|
|
5426
5396
|
"type": "boolean"
|
|
5427
5397
|
},
|
|
5428
|
-
"backup_id": {
|
|
5429
|
-
"description": "Backup ID to delete",
|
|
5430
|
-
"name": "backup_id",
|
|
5431
|
-
"required": true,
|
|
5432
|
-
"hasDynamicHelp": false,
|
|
5433
|
-
"multiple": false,
|
|
5434
|
-
"type": "option"
|
|
5435
|
-
},
|
|
5436
|
-
"force": {
|
|
5437
|
-
"char": "f",
|
|
5438
|
-
"description": "Skip confirmation prompt",
|
|
5439
|
-
"name": "force",
|
|
5440
|
-
"required": false,
|
|
5441
|
-
"allowNo": false,
|
|
5442
|
-
"type": "boolean"
|
|
5443
|
-
},
|
|
5444
5398
|
"output": {
|
|
5445
5399
|
"char": "o",
|
|
5446
5400
|
"description": "Output format",
|
|
@@ -5454,20 +5408,11 @@
|
|
|
5454
5408
|
"json"
|
|
5455
5409
|
],
|
|
5456
5410
|
"type": "option"
|
|
5457
|
-
},
|
|
5458
|
-
"workspace": {
|
|
5459
|
-
"char": "w",
|
|
5460
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5461
|
-
"name": "workspace",
|
|
5462
|
-
"required": false,
|
|
5463
|
-
"hasDynamicHelp": false,
|
|
5464
|
-
"multiple": false,
|
|
5465
|
-
"type": "option"
|
|
5466
5411
|
}
|
|
5467
5412
|
},
|
|
5468
5413
|
"hasDynamicHelp": false,
|
|
5469
5414
|
"hiddenAliases": [],
|
|
5470
|
-
"id": "tenant:
|
|
5415
|
+
"id": "tenant:cluster:get",
|
|
5471
5416
|
"pluginAlias": "@xano/cli",
|
|
5472
5417
|
"pluginName": "@xano/cli",
|
|
5473
5418
|
"pluginType": "core",
|
|
@@ -5478,24 +5423,24 @@
|
|
|
5478
5423
|
"dist",
|
|
5479
5424
|
"commands",
|
|
5480
5425
|
"tenant",
|
|
5481
|
-
"
|
|
5482
|
-
"
|
|
5426
|
+
"cluster",
|
|
5427
|
+
"get",
|
|
5483
5428
|
"index.js"
|
|
5484
5429
|
]
|
|
5485
5430
|
},
|
|
5486
|
-
"tenant:backup:
|
|
5431
|
+
"tenant:backup:create": {
|
|
5487
5432
|
"aliases": [],
|
|
5488
5433
|
"args": {
|
|
5489
5434
|
"tenant_name": {
|
|
5490
|
-
"description": "Tenant name to
|
|
5435
|
+
"description": "Tenant name to back up",
|
|
5491
5436
|
"name": "tenant_name",
|
|
5492
5437
|
"required": true
|
|
5493
5438
|
}
|
|
5494
5439
|
},
|
|
5495
|
-
"description": "
|
|
5440
|
+
"description": "Create a backup for a tenant",
|
|
5496
5441
|
"examples": [
|
|
5497
|
-
"$ xano tenant backup
|
|
5498
|
-
"$ xano tenant backup
|
|
5442
|
+
"$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
|
|
5443
|
+
"$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
|
|
5499
5444
|
],
|
|
5500
5445
|
"flags": {
|
|
5501
5446
|
"profile": {
|
|
@@ -5527,15 +5472,6 @@
|
|
|
5527
5472
|
"multiple": false,
|
|
5528
5473
|
"type": "option"
|
|
5529
5474
|
},
|
|
5530
|
-
"file": {
|
|
5531
|
-
"char": "f",
|
|
5532
|
-
"description": "Path to the backup file (.tar.gz)",
|
|
5533
|
-
"name": "file",
|
|
5534
|
-
"required": true,
|
|
5535
|
-
"hasDynamicHelp": false,
|
|
5536
|
-
"multiple": false,
|
|
5537
|
-
"type": "option"
|
|
5538
|
-
},
|
|
5539
5475
|
"output": {
|
|
5540
5476
|
"char": "o",
|
|
5541
5477
|
"description": "Output format",
|
|
@@ -5562,7 +5498,7 @@
|
|
|
5562
5498
|
},
|
|
5563
5499
|
"hasDynamicHelp": false,
|
|
5564
5500
|
"hiddenAliases": [],
|
|
5565
|
-
"id": "tenant:backup:
|
|
5501
|
+
"id": "tenant:backup:create",
|
|
5566
5502
|
"pluginAlias": "@xano/cli",
|
|
5567
5503
|
"pluginName": "@xano/cli",
|
|
5568
5504
|
"pluginType": "core",
|
|
@@ -5574,23 +5510,17 @@
|
|
|
5574
5510
|
"commands",
|
|
5575
5511
|
"tenant",
|
|
5576
5512
|
"backup",
|
|
5577
|
-
"
|
|
5513
|
+
"create",
|
|
5578
5514
|
"index.js"
|
|
5579
5515
|
]
|
|
5580
5516
|
},
|
|
5581
|
-
"tenant:
|
|
5517
|
+
"tenant:cluster:list": {
|
|
5582
5518
|
"aliases": [],
|
|
5583
|
-
"args": {
|
|
5584
|
-
|
|
5585
|
-
"description": "Tenant name to restore",
|
|
5586
|
-
"name": "tenant_name",
|
|
5587
|
-
"required": true
|
|
5588
|
-
}
|
|
5589
|
-
},
|
|
5590
|
-
"description": "Restore a tenant from a backup. This replaces the current tenant data.",
|
|
5519
|
+
"args": {},
|
|
5520
|
+
"description": "List all tenant clusters",
|
|
5591
5521
|
"examples": [
|
|
5592
|
-
"$ xano tenant
|
|
5593
|
-
"$ xano tenant
|
|
5522
|
+
"$ xano tenant cluster list\nTenant clusters:\n - us-east-1 (standard) [ID: 1]\n - eu-west-1 (run) [ID: 2]\n",
|
|
5523
|
+
"$ xano tenant cluster list --output json"
|
|
5594
5524
|
],
|
|
5595
5525
|
"flags": {
|
|
5596
5526
|
"profile": {
|
|
@@ -5612,22 +5542,6 @@
|
|
|
5612
5542
|
"allowNo": false,
|
|
5613
5543
|
"type": "boolean"
|
|
5614
5544
|
},
|
|
5615
|
-
"backup_id": {
|
|
5616
|
-
"description": "Backup ID to restore from",
|
|
5617
|
-
"name": "backup_id",
|
|
5618
|
-
"required": true,
|
|
5619
|
-
"hasDynamicHelp": false,
|
|
5620
|
-
"multiple": false,
|
|
5621
|
-
"type": "option"
|
|
5622
|
-
},
|
|
5623
|
-
"force": {
|
|
5624
|
-
"char": "f",
|
|
5625
|
-
"description": "Skip confirmation prompt",
|
|
5626
|
-
"name": "force",
|
|
5627
|
-
"required": false,
|
|
5628
|
-
"allowNo": false,
|
|
5629
|
-
"type": "boolean"
|
|
5630
|
-
},
|
|
5631
5545
|
"output": {
|
|
5632
5546
|
"char": "o",
|
|
5633
5547
|
"description": "Output format",
|
|
@@ -5641,20 +5555,11 @@
|
|
|
5641
5555
|
"json"
|
|
5642
5556
|
],
|
|
5643
5557
|
"type": "option"
|
|
5644
|
-
},
|
|
5645
|
-
"workspace": {
|
|
5646
|
-
"char": "w",
|
|
5647
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5648
|
-
"name": "workspace",
|
|
5649
|
-
"required": false,
|
|
5650
|
-
"hasDynamicHelp": false,
|
|
5651
|
-
"multiple": false,
|
|
5652
|
-
"type": "option"
|
|
5653
5558
|
}
|
|
5654
5559
|
},
|
|
5655
5560
|
"hasDynamicHelp": false,
|
|
5656
5561
|
"hiddenAliases": [],
|
|
5657
|
-
"id": "tenant:
|
|
5562
|
+
"id": "tenant:cluster:list",
|
|
5658
5563
|
"pluginAlias": "@xano/cli",
|
|
5659
5564
|
"pluginName": "@xano/cli",
|
|
5660
5565
|
"pluginType": "core",
|
|
@@ -5665,18 +5570,25 @@
|
|
|
5665
5570
|
"dist",
|
|
5666
5571
|
"commands",
|
|
5667
5572
|
"tenant",
|
|
5668
|
-
"
|
|
5669
|
-
"
|
|
5573
|
+
"cluster",
|
|
5574
|
+
"list",
|
|
5670
5575
|
"index.js"
|
|
5671
5576
|
]
|
|
5672
5577
|
},
|
|
5673
|
-
"tenant:
|
|
5578
|
+
"tenant:backup:delete": {
|
|
5674
5579
|
"aliases": [],
|
|
5675
|
-
"args": {
|
|
5676
|
-
|
|
5580
|
+
"args": {
|
|
5581
|
+
"tenant_name": {
|
|
5582
|
+
"description": "Tenant name that owns the backup",
|
|
5583
|
+
"name": "tenant_name",
|
|
5584
|
+
"required": true
|
|
5585
|
+
}
|
|
5586
|
+
},
|
|
5587
|
+
"description": "Delete a tenant backup permanently. This action cannot be undone.",
|
|
5677
5588
|
"examples": [
|
|
5678
|
-
"$ xano tenant
|
|
5679
|
-
"$ xano tenant
|
|
5589
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to delete backup #10? This action cannot be undone. (y/N) y\nDeleted backup #10\n",
|
|
5590
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
|
|
5591
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5680
5592
|
],
|
|
5681
5593
|
"flags": {
|
|
5682
5594
|
"profile": {
|
|
@@ -5698,53 +5610,21 @@
|
|
|
5698
5610
|
"allowNo": false,
|
|
5699
5611
|
"type": "boolean"
|
|
5700
5612
|
},
|
|
5701
|
-
"
|
|
5702
|
-
"description": "
|
|
5703
|
-
"
|
|
5704
|
-
|
|
5705
|
-
],
|
|
5706
|
-
"name": "credentials",
|
|
5707
|
-
"required": false,
|
|
5708
|
-
"hasDynamicHelp": false,
|
|
5709
|
-
"multiple": false,
|
|
5710
|
-
"type": "option"
|
|
5711
|
-
},
|
|
5712
|
-
"credentials_file": {
|
|
5713
|
-
"description": "Path to kubeconfig credentials file",
|
|
5714
|
-
"exclusive": [
|
|
5715
|
-
"credentials"
|
|
5716
|
-
],
|
|
5717
|
-
"name": "credentials_file",
|
|
5718
|
-
"required": false,
|
|
5719
|
-
"hasDynamicHelp": false,
|
|
5720
|
-
"multiple": false,
|
|
5721
|
-
"type": "option"
|
|
5722
|
-
},
|
|
5723
|
-
"description": {
|
|
5724
|
-
"char": "d",
|
|
5725
|
-
"description": "Cluster description",
|
|
5726
|
-
"name": "description",
|
|
5727
|
-
"required": false,
|
|
5613
|
+
"backup_id": {
|
|
5614
|
+
"description": "Backup ID to delete",
|
|
5615
|
+
"name": "backup_id",
|
|
5616
|
+
"required": true,
|
|
5728
5617
|
"hasDynamicHelp": false,
|
|
5729
5618
|
"multiple": false,
|
|
5730
5619
|
"type": "option"
|
|
5731
5620
|
},
|
|
5732
|
-
"
|
|
5733
|
-
"
|
|
5734
|
-
"
|
|
5621
|
+
"force": {
|
|
5622
|
+
"char": "f",
|
|
5623
|
+
"description": "Skip confirmation prompt",
|
|
5624
|
+
"name": "force",
|
|
5735
5625
|
"required": false,
|
|
5736
|
-
"
|
|
5737
|
-
"
|
|
5738
|
-
"type": "option"
|
|
5739
|
-
},
|
|
5740
|
-
"name": {
|
|
5741
|
-
"char": "n",
|
|
5742
|
-
"description": "Cluster name",
|
|
5743
|
-
"name": "name",
|
|
5744
|
-
"required": true,
|
|
5745
|
-
"hasDynamicHelp": false,
|
|
5746
|
-
"multiple": false,
|
|
5747
|
-
"type": "option"
|
|
5626
|
+
"allowNo": false,
|
|
5627
|
+
"type": "boolean"
|
|
5748
5628
|
},
|
|
5749
5629
|
"output": {
|
|
5750
5630
|
"char": "o",
|
|
@@ -5760,23 +5640,19 @@
|
|
|
5760
5640
|
],
|
|
5761
5641
|
"type": "option"
|
|
5762
5642
|
},
|
|
5763
|
-
"
|
|
5764
|
-
"
|
|
5765
|
-
"
|
|
5643
|
+
"workspace": {
|
|
5644
|
+
"char": "w",
|
|
5645
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5646
|
+
"name": "workspace",
|
|
5766
5647
|
"required": false,
|
|
5767
|
-
"default": "standard",
|
|
5768
5648
|
"hasDynamicHelp": false,
|
|
5769
5649
|
"multiple": false,
|
|
5770
|
-
"options": [
|
|
5771
|
-
"standard",
|
|
5772
|
-
"run"
|
|
5773
|
-
],
|
|
5774
5650
|
"type": "option"
|
|
5775
5651
|
}
|
|
5776
5652
|
},
|
|
5777
5653
|
"hasDynamicHelp": false,
|
|
5778
5654
|
"hiddenAliases": [],
|
|
5779
|
-
"id": "tenant:
|
|
5655
|
+
"id": "tenant:backup:delete",
|
|
5780
5656
|
"pluginAlias": "@xano/cli",
|
|
5781
5657
|
"pluginName": "@xano/cli",
|
|
5782
5658
|
"pluginType": "core",
|
|
@@ -5787,24 +5663,25 @@
|
|
|
5787
5663
|
"dist",
|
|
5788
5664
|
"commands",
|
|
5789
5665
|
"tenant",
|
|
5790
|
-
"
|
|
5791
|
-
"
|
|
5666
|
+
"backup",
|
|
5667
|
+
"delete",
|
|
5792
5668
|
"index.js"
|
|
5793
5669
|
]
|
|
5794
5670
|
},
|
|
5795
|
-
"tenant:
|
|
5671
|
+
"tenant:backup:export": {
|
|
5796
5672
|
"aliases": [],
|
|
5797
5673
|
"args": {
|
|
5798
|
-
"
|
|
5799
|
-
"description": "
|
|
5800
|
-
"name": "
|
|
5674
|
+
"tenant_name": {
|
|
5675
|
+
"description": "Tenant name to export backup from",
|
|
5676
|
+
"name": "tenant_name",
|
|
5801
5677
|
"required": true
|
|
5802
5678
|
}
|
|
5803
5679
|
},
|
|
5804
|
-
"description": "
|
|
5680
|
+
"description": "Export (download) a tenant backup to a local file",
|
|
5805
5681
|
"examples": [
|
|
5806
|
-
"$ xano tenant
|
|
5807
|
-
"$ xano tenant
|
|
5682
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
|
|
5683
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
|
|
5684
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5808
5685
|
],
|
|
5809
5686
|
"flags": {
|
|
5810
5687
|
"profile": {
|
|
@@ -5821,41 +5698,23 @@
|
|
|
5821
5698
|
"char": "v",
|
|
5822
5699
|
"description": "Show detailed request/response information",
|
|
5823
5700
|
"env": "XANO_VERBOSE",
|
|
5824
|
-
"name": "verbose",
|
|
5825
|
-
"required": false,
|
|
5826
|
-
"allowNo": false,
|
|
5827
|
-
"type": "boolean"
|
|
5828
|
-
},
|
|
5829
|
-
"description": {
|
|
5830
|
-
"char": "d",
|
|
5831
|
-
"description": "Cluster description",
|
|
5832
|
-
"name": "description",
|
|
5833
|
-
"required": true,
|
|
5834
|
-
"hasDynamicHelp": false,
|
|
5835
|
-
"multiple": false,
|
|
5836
|
-
"type": "option"
|
|
5837
|
-
},
|
|
5838
|
-
"domain": {
|
|
5839
|
-
"description": "Custom domain for the cluster",
|
|
5840
|
-
"name": "domain",
|
|
5841
|
-
"required": true,
|
|
5842
|
-
"hasDynamicHelp": false,
|
|
5843
|
-
"multiple": false,
|
|
5844
|
-
"type": "option"
|
|
5701
|
+
"name": "verbose",
|
|
5702
|
+
"required": false,
|
|
5703
|
+
"allowNo": false,
|
|
5704
|
+
"type": "boolean"
|
|
5845
5705
|
},
|
|
5846
|
-
"
|
|
5847
|
-
"
|
|
5848
|
-
"
|
|
5849
|
-
"name": "name",
|
|
5706
|
+
"backup_id": {
|
|
5707
|
+
"description": "Backup ID to export",
|
|
5708
|
+
"name": "backup_id",
|
|
5850
5709
|
"required": true,
|
|
5851
5710
|
"hasDynamicHelp": false,
|
|
5852
5711
|
"multiple": false,
|
|
5853
5712
|
"type": "option"
|
|
5854
5713
|
},
|
|
5855
|
-
"
|
|
5714
|
+
"format": {
|
|
5856
5715
|
"char": "o",
|
|
5857
5716
|
"description": "Output format",
|
|
5858
|
-
"name": "
|
|
5717
|
+
"name": "format",
|
|
5859
5718
|
"required": false,
|
|
5860
5719
|
"default": "summary",
|
|
5861
5720
|
"hasDynamicHelp": false,
|
|
@@ -5866,22 +5725,27 @@
|
|
|
5866
5725
|
],
|
|
5867
5726
|
"type": "option"
|
|
5868
5727
|
},
|
|
5869
|
-
"
|
|
5870
|
-
"description": "
|
|
5871
|
-
"name": "
|
|
5872
|
-
"required":
|
|
5728
|
+
"output": {
|
|
5729
|
+
"description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
|
|
5730
|
+
"name": "output",
|
|
5731
|
+
"required": false,
|
|
5732
|
+
"hasDynamicHelp": false,
|
|
5733
|
+
"multiple": false,
|
|
5734
|
+
"type": "option"
|
|
5735
|
+
},
|
|
5736
|
+
"workspace": {
|
|
5737
|
+
"char": "w",
|
|
5738
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5739
|
+
"name": "workspace",
|
|
5740
|
+
"required": false,
|
|
5873
5741
|
"hasDynamicHelp": false,
|
|
5874
5742
|
"multiple": false,
|
|
5875
|
-
"options": [
|
|
5876
|
-
"standard",
|
|
5877
|
-
"run"
|
|
5878
|
-
],
|
|
5879
5743
|
"type": "option"
|
|
5880
5744
|
}
|
|
5881
5745
|
},
|
|
5882
5746
|
"hasDynamicHelp": false,
|
|
5883
5747
|
"hiddenAliases": [],
|
|
5884
|
-
"id": "tenant:
|
|
5748
|
+
"id": "tenant:backup:export",
|
|
5885
5749
|
"pluginAlias": "@xano/cli",
|
|
5886
5750
|
"pluginName": "@xano/cli",
|
|
5887
5751
|
"pluginType": "core",
|
|
@@ -5892,25 +5756,24 @@
|
|
|
5892
5756
|
"dist",
|
|
5893
5757
|
"commands",
|
|
5894
5758
|
"tenant",
|
|
5895
|
-
"
|
|
5896
|
-
"
|
|
5759
|
+
"backup",
|
|
5760
|
+
"export",
|
|
5897
5761
|
"index.js"
|
|
5898
5762
|
]
|
|
5899
5763
|
},
|
|
5900
|
-
"tenant:
|
|
5764
|
+
"tenant:backup:import": {
|
|
5901
5765
|
"aliases": [],
|
|
5902
5766
|
"args": {
|
|
5903
|
-
"
|
|
5904
|
-
"description": "
|
|
5905
|
-
"name": "
|
|
5767
|
+
"tenant_name": {
|
|
5768
|
+
"description": "Tenant name to import backup into",
|
|
5769
|
+
"name": "tenant_name",
|
|
5906
5770
|
"required": true
|
|
5907
5771
|
}
|
|
5908
5772
|
},
|
|
5909
|
-
"description": "
|
|
5773
|
+
"description": "Import a backup file into a tenant",
|
|
5910
5774
|
"examples": [
|
|
5911
|
-
"$ xano tenant
|
|
5912
|
-
"$ xano tenant
|
|
5913
|
-
"$ xano tenant cluster delete 3 -f -o json"
|
|
5775
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz\nImported backup as #15 for tenant t1234-abcd-xyz1\n",
|
|
5776
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz --description \"Restored from production\" -o json"
|
|
5914
5777
|
],
|
|
5915
5778
|
"flags": {
|
|
5916
5779
|
"profile": {
|
|
@@ -5932,13 +5795,24 @@
|
|
|
5932
5795
|
"allowNo": false,
|
|
5933
5796
|
"type": "boolean"
|
|
5934
5797
|
},
|
|
5935
|
-
"
|
|
5936
|
-
"char": "
|
|
5937
|
-
"description": "
|
|
5938
|
-
"name": "
|
|
5798
|
+
"description": {
|
|
5799
|
+
"char": "d",
|
|
5800
|
+
"description": "Backup description",
|
|
5801
|
+
"name": "description",
|
|
5939
5802
|
"required": false,
|
|
5940
|
-
"
|
|
5941
|
-
"
|
|
5803
|
+
"default": "",
|
|
5804
|
+
"hasDynamicHelp": false,
|
|
5805
|
+
"multiple": false,
|
|
5806
|
+
"type": "option"
|
|
5807
|
+
},
|
|
5808
|
+
"file": {
|
|
5809
|
+
"char": "f",
|
|
5810
|
+
"description": "Path to the backup file (.tar.gz)",
|
|
5811
|
+
"name": "file",
|
|
5812
|
+
"required": true,
|
|
5813
|
+
"hasDynamicHelp": false,
|
|
5814
|
+
"multiple": false,
|
|
5815
|
+
"type": "option"
|
|
5942
5816
|
},
|
|
5943
5817
|
"output": {
|
|
5944
5818
|
"char": "o",
|
|
@@ -5953,11 +5827,20 @@
|
|
|
5953
5827
|
"json"
|
|
5954
5828
|
],
|
|
5955
5829
|
"type": "option"
|
|
5830
|
+
},
|
|
5831
|
+
"workspace": {
|
|
5832
|
+
"char": "w",
|
|
5833
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5834
|
+
"name": "workspace",
|
|
5835
|
+
"required": false,
|
|
5836
|
+
"hasDynamicHelp": false,
|
|
5837
|
+
"multiple": false,
|
|
5838
|
+
"type": "option"
|
|
5956
5839
|
}
|
|
5957
5840
|
},
|
|
5958
5841
|
"hasDynamicHelp": false,
|
|
5959
5842
|
"hiddenAliases": [],
|
|
5960
|
-
"id": "tenant:
|
|
5843
|
+
"id": "tenant:backup:import",
|
|
5961
5844
|
"pluginAlias": "@xano/cli",
|
|
5962
5845
|
"pluginName": "@xano/cli",
|
|
5963
5846
|
"pluginType": "core",
|
|
@@ -5968,24 +5851,24 @@
|
|
|
5968
5851
|
"dist",
|
|
5969
5852
|
"commands",
|
|
5970
5853
|
"tenant",
|
|
5971
|
-
"
|
|
5972
|
-
"
|
|
5854
|
+
"backup",
|
|
5855
|
+
"import",
|
|
5973
5856
|
"index.js"
|
|
5974
5857
|
]
|
|
5975
5858
|
},
|
|
5976
|
-
"tenant:
|
|
5859
|
+
"tenant:backup:list": {
|
|
5977
5860
|
"aliases": [],
|
|
5978
5861
|
"args": {
|
|
5979
|
-
"
|
|
5980
|
-
"description": "
|
|
5981
|
-
"name": "
|
|
5862
|
+
"tenant_name": {
|
|
5863
|
+
"description": "Tenant name to list backups for",
|
|
5864
|
+
"name": "tenant_name",
|
|
5982
5865
|
"required": true
|
|
5983
5866
|
}
|
|
5984
5867
|
},
|
|
5985
|
-
"description": "
|
|
5868
|
+
"description": "List backups for a tenant",
|
|
5986
5869
|
"examples": [
|
|
5987
|
-
"$ xano tenant
|
|
5988
|
-
"$ xano tenant
|
|
5870
|
+
"$ xano tenant backup list t1234-abcd-xyz1\nBackups for tenant t1234-abcd-xyz1:\n - #1 - Pre-deploy backup (2024-01-15)\n - #2 - Daily backup (2024-01-16)\n",
|
|
5871
|
+
"$ xano tenant backup list t1234-abcd-xyz1 -o json"
|
|
5989
5872
|
],
|
|
5990
5873
|
"flags": {
|
|
5991
5874
|
"profile": {
|
|
@@ -6020,11 +5903,29 @@
|
|
|
6020
5903
|
"json"
|
|
6021
5904
|
],
|
|
6022
5905
|
"type": "option"
|
|
5906
|
+
},
|
|
5907
|
+
"page": {
|
|
5908
|
+
"description": "Page number for pagination",
|
|
5909
|
+
"name": "page",
|
|
5910
|
+
"required": false,
|
|
5911
|
+
"default": 1,
|
|
5912
|
+
"hasDynamicHelp": false,
|
|
5913
|
+
"multiple": false,
|
|
5914
|
+
"type": "option"
|
|
5915
|
+
},
|
|
5916
|
+
"workspace": {
|
|
5917
|
+
"char": "w",
|
|
5918
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5919
|
+
"name": "workspace",
|
|
5920
|
+
"required": false,
|
|
5921
|
+
"hasDynamicHelp": false,
|
|
5922
|
+
"multiple": false,
|
|
5923
|
+
"type": "option"
|
|
6023
5924
|
}
|
|
6024
5925
|
},
|
|
6025
5926
|
"hasDynamicHelp": false,
|
|
6026
5927
|
"hiddenAliases": [],
|
|
6027
|
-
"id": "tenant:
|
|
5928
|
+
"id": "tenant:backup:list",
|
|
6028
5929
|
"pluginAlias": "@xano/cli",
|
|
6029
5930
|
"pluginName": "@xano/cli",
|
|
6030
5931
|
"pluginType": "core",
|
|
@@ -6035,18 +5936,24 @@
|
|
|
6035
5936
|
"dist",
|
|
6036
5937
|
"commands",
|
|
6037
5938
|
"tenant",
|
|
6038
|
-
"
|
|
6039
|
-
"
|
|
5939
|
+
"backup",
|
|
5940
|
+
"list",
|
|
6040
5941
|
"index.js"
|
|
6041
5942
|
]
|
|
6042
5943
|
},
|
|
6043
|
-
"tenant:
|
|
5944
|
+
"tenant:backup:restore": {
|
|
6044
5945
|
"aliases": [],
|
|
6045
|
-
"args": {
|
|
6046
|
-
|
|
5946
|
+
"args": {
|
|
5947
|
+
"tenant_name": {
|
|
5948
|
+
"description": "Tenant name to restore",
|
|
5949
|
+
"name": "tenant_name",
|
|
5950
|
+
"required": true
|
|
5951
|
+
}
|
|
5952
|
+
},
|
|
5953
|
+
"description": "Restore a tenant from a backup. This replaces the current tenant data.",
|
|
6047
5954
|
"examples": [
|
|
6048
|
-
"$ xano tenant
|
|
6049
|
-
"$ xano tenant
|
|
5955
|
+
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to restore tenant t1234-abcd-xyz1 from backup 10? This will replace current data. (y/N) y\nRestored tenant t1234-abcd-xyz1 from backup #10\n",
|
|
5956
|
+
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10 --force -o json"
|
|
6050
5957
|
],
|
|
6051
5958
|
"flags": {
|
|
6052
5959
|
"profile": {
|
|
@@ -6068,6 +5975,22 @@
|
|
|
6068
5975
|
"allowNo": false,
|
|
6069
5976
|
"type": "boolean"
|
|
6070
5977
|
},
|
|
5978
|
+
"backup_id": {
|
|
5979
|
+
"description": "Backup ID to restore from",
|
|
5980
|
+
"name": "backup_id",
|
|
5981
|
+
"required": true,
|
|
5982
|
+
"hasDynamicHelp": false,
|
|
5983
|
+
"multiple": false,
|
|
5984
|
+
"type": "option"
|
|
5985
|
+
},
|
|
5986
|
+
"force": {
|
|
5987
|
+
"char": "f",
|
|
5988
|
+
"description": "Skip confirmation prompt",
|
|
5989
|
+
"name": "force",
|
|
5990
|
+
"required": false,
|
|
5991
|
+
"allowNo": false,
|
|
5992
|
+
"type": "boolean"
|
|
5993
|
+
},
|
|
6071
5994
|
"output": {
|
|
6072
5995
|
"char": "o",
|
|
6073
5996
|
"description": "Output format",
|
|
@@ -6081,11 +6004,20 @@
|
|
|
6081
6004
|
"json"
|
|
6082
6005
|
],
|
|
6083
6006
|
"type": "option"
|
|
6007
|
+
},
|
|
6008
|
+
"workspace": {
|
|
6009
|
+
"char": "w",
|
|
6010
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6011
|
+
"name": "workspace",
|
|
6012
|
+
"required": false,
|
|
6013
|
+
"hasDynamicHelp": false,
|
|
6014
|
+
"multiple": false,
|
|
6015
|
+
"type": "option"
|
|
6084
6016
|
}
|
|
6085
6017
|
},
|
|
6086
6018
|
"hasDynamicHelp": false,
|
|
6087
6019
|
"hiddenAliases": [],
|
|
6088
|
-
"id": "tenant:
|
|
6020
|
+
"id": "tenant:backup:restore",
|
|
6089
6021
|
"pluginAlias": "@xano/cli",
|
|
6090
6022
|
"pluginName": "@xano/cli",
|
|
6091
6023
|
"pluginType": "core",
|
|
@@ -6096,8 +6028,8 @@
|
|
|
6096
6028
|
"dist",
|
|
6097
6029
|
"commands",
|
|
6098
6030
|
"tenant",
|
|
6099
|
-
"
|
|
6100
|
-
"
|
|
6031
|
+
"backup",
|
|
6032
|
+
"restore",
|
|
6101
6033
|
"index.js"
|
|
6102
6034
|
]
|
|
6103
6035
|
},
|
|
@@ -7022,6 +6954,82 @@
|
|
|
7022
6954
|
"index.js"
|
|
7023
6955
|
]
|
|
7024
6956
|
},
|
|
6957
|
+
"tenant:cluster:delete": {
|
|
6958
|
+
"aliases": [],
|
|
6959
|
+
"args": {
|
|
6960
|
+
"cluster_id": {
|
|
6961
|
+
"description": "Cluster ID to delete",
|
|
6962
|
+
"name": "cluster_id",
|
|
6963
|
+
"required": true
|
|
6964
|
+
}
|
|
6965
|
+
},
|
|
6966
|
+
"description": "Delete a tenant cluster. This action cannot be undone.",
|
|
6967
|
+
"examples": [
|
|
6968
|
+
"$ xano tenant cluster delete 3\nAre you sure you want to delete tenant cluster 3? This action cannot be undone. (y/N) y\nTenant cluster 3 deleted successfully\n",
|
|
6969
|
+
"$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
|
|
6970
|
+
"$ xano tenant cluster delete 3 -f -o json"
|
|
6971
|
+
],
|
|
6972
|
+
"flags": {
|
|
6973
|
+
"profile": {
|
|
6974
|
+
"char": "p",
|
|
6975
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
6976
|
+
"env": "XANO_PROFILE",
|
|
6977
|
+
"name": "profile",
|
|
6978
|
+
"required": false,
|
|
6979
|
+
"hasDynamicHelp": false,
|
|
6980
|
+
"multiple": false,
|
|
6981
|
+
"type": "option"
|
|
6982
|
+
},
|
|
6983
|
+
"verbose": {
|
|
6984
|
+
"char": "v",
|
|
6985
|
+
"description": "Show detailed request/response information",
|
|
6986
|
+
"env": "XANO_VERBOSE",
|
|
6987
|
+
"name": "verbose",
|
|
6988
|
+
"required": false,
|
|
6989
|
+
"allowNo": false,
|
|
6990
|
+
"type": "boolean"
|
|
6991
|
+
},
|
|
6992
|
+
"force": {
|
|
6993
|
+
"char": "f",
|
|
6994
|
+
"description": "Skip confirmation prompt",
|
|
6995
|
+
"name": "force",
|
|
6996
|
+
"required": false,
|
|
6997
|
+
"allowNo": false,
|
|
6998
|
+
"type": "boolean"
|
|
6999
|
+
},
|
|
7000
|
+
"output": {
|
|
7001
|
+
"char": "o",
|
|
7002
|
+
"description": "Output format",
|
|
7003
|
+
"name": "output",
|
|
7004
|
+
"required": false,
|
|
7005
|
+
"default": "summary",
|
|
7006
|
+
"hasDynamicHelp": false,
|
|
7007
|
+
"multiple": false,
|
|
7008
|
+
"options": [
|
|
7009
|
+
"summary",
|
|
7010
|
+
"json"
|
|
7011
|
+
],
|
|
7012
|
+
"type": "option"
|
|
7013
|
+
}
|
|
7014
|
+
},
|
|
7015
|
+
"hasDynamicHelp": false,
|
|
7016
|
+
"hiddenAliases": [],
|
|
7017
|
+
"id": "tenant:cluster:delete",
|
|
7018
|
+
"pluginAlias": "@xano/cli",
|
|
7019
|
+
"pluginName": "@xano/cli",
|
|
7020
|
+
"pluginType": "core",
|
|
7021
|
+
"strict": true,
|
|
7022
|
+
"enableJsonFlag": false,
|
|
7023
|
+
"isESM": true,
|
|
7024
|
+
"relativePath": [
|
|
7025
|
+
"dist",
|
|
7026
|
+
"commands",
|
|
7027
|
+
"tenant",
|
|
7028
|
+
"cluster",
|
|
7029
|
+
"delete",
|
|
7030
|
+
"index.js"
|
|
7031
|
+
]
|
|
7032
|
+
},
|
|
7025
7033
|
"tenant:cluster:license:set": {
|
|
7026
7034
|
"aliases": [],
|
|
7027
7035
|
"args": {
|
|
@@ -7127,5 +7135,5 @@
|
|
|
7127
7135
|
]
|
|
7128
7136
|
}
|
|
7129
7137
|
},
|
|
7130
|
-
"version": "0.0.
|
|
7138
|
+
"version": "0.0.78"
|
|
7131
7139
|
}
|