@xano/cli 0.0.40 → 0.0.41
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/dist/commands/profile/me/index.js +33 -14
- package/dist/commands/workspace/pull/index.d.ts +0 -6
- package/dist/commands/workspace/pull/index.js +5 -55
- package/dist/commands/workspace/push/index.d.ts +1 -0
- package/dist/commands/workspace/push/index.js +112 -8
- package/dist/utils/document-parser.d.ts +17 -0
- package/dist/utils/document-parser.js +61 -0
- package/oclif.manifest.json +1347 -1340
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -142,20 +142,20 @@
|
|
|
142
142
|
"index.js"
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
|
-
"branch:
|
|
145
|
+
"branch:delete": {
|
|
146
146
|
"aliases": [],
|
|
147
147
|
"args": {
|
|
148
148
|
"branch_label": {
|
|
149
|
-
"description": "Branch label (
|
|
149
|
+
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
150
150
|
"name": "branch_label",
|
|
151
151
|
"required": true
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
"description": "
|
|
154
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
155
155
|
"examples": [
|
|
156
|
-
"$ xano branch
|
|
157
|
-
"$ xano branch
|
|
158
|
-
"$ xano branch
|
|
156
|
+
"$ xano branch delete feature-old\nAre you sure you want to delete branch 'feature-old'? This action cannot be undone. (y/N) y\nDeleted branch: feature-old\n",
|
|
157
|
+
"$ xano branch delete dev --force\nDeleted branch: dev\n",
|
|
158
|
+
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
159
159
|
],
|
|
160
160
|
"flags": {
|
|
161
161
|
"profile": {
|
|
@@ -177,6 +177,14 @@
|
|
|
177
177
|
"allowNo": false,
|
|
178
178
|
"type": "boolean"
|
|
179
179
|
},
|
|
180
|
+
"force": {
|
|
181
|
+
"char": "f",
|
|
182
|
+
"description": "Skip confirmation prompt",
|
|
183
|
+
"name": "force",
|
|
184
|
+
"required": false,
|
|
185
|
+
"allowNo": false,
|
|
186
|
+
"type": "boolean"
|
|
187
|
+
},
|
|
180
188
|
"output": {
|
|
181
189
|
"char": "o",
|
|
182
190
|
"description": "Output format",
|
|
@@ -203,7 +211,7 @@
|
|
|
203
211
|
},
|
|
204
212
|
"hasDynamicHelp": false,
|
|
205
213
|
"hiddenAliases": [],
|
|
206
|
-
"id": "branch:
|
|
214
|
+
"id": "branch:delete",
|
|
207
215
|
"pluginAlias": "@xano/cli",
|
|
208
216
|
"pluginName": "@xano/cli",
|
|
209
217
|
"pluginType": "core",
|
|
@@ -214,24 +222,24 @@
|
|
|
214
222
|
"dist",
|
|
215
223
|
"commands",
|
|
216
224
|
"branch",
|
|
217
|
-
"
|
|
225
|
+
"delete",
|
|
218
226
|
"index.js"
|
|
219
227
|
]
|
|
220
228
|
},
|
|
221
|
-
"branch:
|
|
229
|
+
"branch:edit": {
|
|
222
230
|
"aliases": [],
|
|
223
231
|
"args": {
|
|
224
|
-
"
|
|
225
|
-
"description": "
|
|
226
|
-
"name": "
|
|
227
|
-
"required":
|
|
232
|
+
"branch_label": {
|
|
233
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
234
|
+
"name": "branch_label",
|
|
235
|
+
"required": true
|
|
228
236
|
}
|
|
229
237
|
},
|
|
230
|
-
"description": "
|
|
238
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
231
239
|
"examples": [
|
|
232
|
-
"$ xano branch
|
|
233
|
-
"$ xano branch
|
|
234
|
-
"$ xano branch
|
|
240
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
241
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
242
|
+
"$ xano branch edit staging --description \"Staging environment\" -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false\n}\n"
|
|
235
243
|
],
|
|
236
244
|
"flags": {
|
|
237
245
|
"profile": {
|
|
@@ -253,6 +261,33 @@
|
|
|
253
261
|
"allowNo": false,
|
|
254
262
|
"type": "boolean"
|
|
255
263
|
},
|
|
264
|
+
"color": {
|
|
265
|
+
"char": "c",
|
|
266
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
267
|
+
"name": "color",
|
|
268
|
+
"required": false,
|
|
269
|
+
"hasDynamicHelp": false,
|
|
270
|
+
"multiple": false,
|
|
271
|
+
"type": "option"
|
|
272
|
+
},
|
|
273
|
+
"description": {
|
|
274
|
+
"char": "d",
|
|
275
|
+
"description": "New description for the branch",
|
|
276
|
+
"name": "description",
|
|
277
|
+
"required": false,
|
|
278
|
+
"hasDynamicHelp": false,
|
|
279
|
+
"multiple": false,
|
|
280
|
+
"type": "option"
|
|
281
|
+
},
|
|
282
|
+
"label": {
|
|
283
|
+
"char": "l",
|
|
284
|
+
"description": "New label for the branch",
|
|
285
|
+
"name": "label",
|
|
286
|
+
"required": false,
|
|
287
|
+
"hasDynamicHelp": false,
|
|
288
|
+
"multiple": false,
|
|
289
|
+
"type": "option"
|
|
290
|
+
},
|
|
256
291
|
"output": {
|
|
257
292
|
"char": "o",
|
|
258
293
|
"description": "Output format",
|
|
@@ -266,11 +301,20 @@
|
|
|
266
301
|
"json"
|
|
267
302
|
],
|
|
268
303
|
"type": "option"
|
|
304
|
+
},
|
|
305
|
+
"workspace": {
|
|
306
|
+
"char": "w",
|
|
307
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
308
|
+
"name": "workspace",
|
|
309
|
+
"required": false,
|
|
310
|
+
"hasDynamicHelp": false,
|
|
311
|
+
"multiple": false,
|
|
312
|
+
"type": "option"
|
|
269
313
|
}
|
|
270
314
|
},
|
|
271
315
|
"hasDynamicHelp": false,
|
|
272
316
|
"hiddenAliases": [],
|
|
273
|
-
"id": "branch:
|
|
317
|
+
"id": "branch:edit",
|
|
274
318
|
"pluginAlias": "@xano/cli",
|
|
275
319
|
"pluginName": "@xano/cli",
|
|
276
320
|
"pluginType": "core",
|
|
@@ -281,24 +325,24 @@
|
|
|
281
325
|
"dist",
|
|
282
326
|
"commands",
|
|
283
327
|
"branch",
|
|
284
|
-
"
|
|
328
|
+
"edit",
|
|
285
329
|
"index.js"
|
|
286
330
|
]
|
|
287
331
|
},
|
|
288
|
-
"branch:
|
|
332
|
+
"branch:list": {
|
|
289
333
|
"aliases": [],
|
|
290
334
|
"args": {
|
|
291
|
-
"
|
|
292
|
-
"description": "
|
|
293
|
-
"name": "
|
|
294
|
-
"required":
|
|
335
|
+
"workspace_id": {
|
|
336
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
337
|
+
"name": "workspace_id",
|
|
338
|
+
"required": false
|
|
295
339
|
}
|
|
296
340
|
},
|
|
297
|
-
"description": "
|
|
341
|
+
"description": "List all branches in a workspace",
|
|
298
342
|
"examples": [
|
|
299
|
-
"$ xano branch
|
|
300
|
-
"$ xano branch
|
|
301
|
-
"$ xano branch
|
|
343
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
344
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
345
|
+
"$ 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"
|
|
302
346
|
],
|
|
303
347
|
"flags": {
|
|
304
348
|
"profile": {
|
|
@@ -320,14 +364,6 @@
|
|
|
320
364
|
"allowNo": false,
|
|
321
365
|
"type": "boolean"
|
|
322
366
|
},
|
|
323
|
-
"force": {
|
|
324
|
-
"char": "f",
|
|
325
|
-
"description": "Skip confirmation prompt",
|
|
326
|
-
"name": "force",
|
|
327
|
-
"required": false,
|
|
328
|
-
"allowNo": false,
|
|
329
|
-
"type": "boolean"
|
|
330
|
-
},
|
|
331
367
|
"output": {
|
|
332
368
|
"char": "o",
|
|
333
369
|
"description": "Output format",
|
|
@@ -341,20 +377,11 @@
|
|
|
341
377
|
"json"
|
|
342
378
|
],
|
|
343
379
|
"type": "option"
|
|
344
|
-
},
|
|
345
|
-
"workspace": {
|
|
346
|
-
"char": "w",
|
|
347
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
348
|
-
"name": "workspace",
|
|
349
|
-
"required": false,
|
|
350
|
-
"hasDynamicHelp": false,
|
|
351
|
-
"multiple": false,
|
|
352
|
-
"type": "option"
|
|
353
380
|
}
|
|
354
381
|
},
|
|
355
382
|
"hasDynamicHelp": false,
|
|
356
383
|
"hiddenAliases": [],
|
|
357
|
-
"id": "branch:
|
|
384
|
+
"id": "branch:list",
|
|
358
385
|
"pluginAlias": "@xano/cli",
|
|
359
386
|
"pluginName": "@xano/cli",
|
|
360
387
|
"pluginType": "core",
|
|
@@ -365,7 +392,7 @@
|
|
|
365
392
|
"dist",
|
|
366
393
|
"commands",
|
|
367
394
|
"branch",
|
|
368
|
-
"
|
|
395
|
+
"list",
|
|
369
396
|
"index.js"
|
|
370
397
|
]
|
|
371
398
|
},
|
|
@@ -453,20 +480,16 @@
|
|
|
453
480
|
"index.js"
|
|
454
481
|
]
|
|
455
482
|
},
|
|
456
|
-
"
|
|
483
|
+
"function:create": {
|
|
457
484
|
"aliases": [],
|
|
458
|
-
"args": {
|
|
459
|
-
|
|
460
|
-
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
461
|
-
"name": "branch_label",
|
|
462
|
-
"required": true
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
485
|
+
"args": {},
|
|
486
|
+
"description": "Create a new function in a workspace",
|
|
466
487
|
"examples": [
|
|
467
|
-
"$ xano
|
|
468
|
-
"$ xano
|
|
469
|
-
"$ xano
|
|
488
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
489
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
490
|
+
"$ 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",
|
|
491
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
492
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
470
493
|
],
|
|
471
494
|
"flags": {
|
|
472
495
|
"profile": {
|
|
@@ -488,28 +511,24 @@
|
|
|
488
511
|
"allowNo": false,
|
|
489
512
|
"type": "boolean"
|
|
490
513
|
},
|
|
491
|
-
"
|
|
492
|
-
"char": "
|
|
493
|
-
"
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
"
|
|
497
|
-
"
|
|
498
|
-
"type": "option"
|
|
499
|
-
},
|
|
500
|
-
"description": {
|
|
501
|
-
"char": "d",
|
|
502
|
-
"description": "New description for the branch",
|
|
503
|
-
"name": "description",
|
|
514
|
+
"edit": {
|
|
515
|
+
"char": "e",
|
|
516
|
+
"dependsOn": [
|
|
517
|
+
"file"
|
|
518
|
+
],
|
|
519
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
520
|
+
"name": "edit",
|
|
504
521
|
"required": false,
|
|
505
|
-
"
|
|
506
|
-
"
|
|
507
|
-
"type": "option"
|
|
522
|
+
"allowNo": false,
|
|
523
|
+
"type": "boolean"
|
|
508
524
|
},
|
|
509
|
-
"
|
|
510
|
-
"char": "
|
|
511
|
-
"description": "
|
|
512
|
-
"
|
|
525
|
+
"file": {
|
|
526
|
+
"char": "f",
|
|
527
|
+
"description": "Path to file containing XanoScript code",
|
|
528
|
+
"exclusive": [
|
|
529
|
+
"stdin"
|
|
530
|
+
],
|
|
531
|
+
"name": "file",
|
|
513
532
|
"required": false,
|
|
514
533
|
"hasDynamicHelp": false,
|
|
515
534
|
"multiple": false,
|
|
@@ -529,9 +548,20 @@
|
|
|
529
548
|
],
|
|
530
549
|
"type": "option"
|
|
531
550
|
},
|
|
551
|
+
"stdin": {
|
|
552
|
+
"char": "s",
|
|
553
|
+
"description": "Read XanoScript code from stdin",
|
|
554
|
+
"exclusive": [
|
|
555
|
+
"file"
|
|
556
|
+
],
|
|
557
|
+
"name": "stdin",
|
|
558
|
+
"required": false,
|
|
559
|
+
"allowNo": false,
|
|
560
|
+
"type": "boolean"
|
|
561
|
+
},
|
|
532
562
|
"workspace": {
|
|
533
563
|
"char": "w",
|
|
534
|
-
"description": "Workspace ID (
|
|
564
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
535
565
|
"name": "workspace",
|
|
536
566
|
"required": false,
|
|
537
567
|
"hasDynamicHelp": false,
|
|
@@ -541,7 +571,7 @@
|
|
|
541
571
|
},
|
|
542
572
|
"hasDynamicHelp": false,
|
|
543
573
|
"hiddenAliases": [],
|
|
544
|
-
"id": "
|
|
574
|
+
"id": "function:create",
|
|
545
575
|
"pluginAlias": "@xano/cli",
|
|
546
576
|
"pluginName": "@xano/cli",
|
|
547
577
|
"pluginType": "core",
|
|
@@ -551,21 +581,30 @@
|
|
|
551
581
|
"relativePath": [
|
|
552
582
|
"dist",
|
|
553
583
|
"commands",
|
|
554
|
-
"
|
|
555
|
-
"
|
|
584
|
+
"function",
|
|
585
|
+
"create",
|
|
556
586
|
"index.js"
|
|
557
587
|
]
|
|
558
588
|
},
|
|
559
|
-
"function:
|
|
589
|
+
"function:edit": {
|
|
560
590
|
"aliases": [],
|
|
561
|
-
"args": {
|
|
562
|
-
|
|
591
|
+
"args": {
|
|
592
|
+
"function_id": {
|
|
593
|
+
"description": "Function ID to edit",
|
|
594
|
+
"name": "function_id",
|
|
595
|
+
"required": false
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"description": "Edit a function in a workspace",
|
|
563
599
|
"examples": [
|
|
564
|
-
"$ xano function:
|
|
565
|
-
"$ xano function:
|
|
566
|
-
"$ xano function:
|
|
567
|
-
"$
|
|
568
|
-
"$ xano function:
|
|
600
|
+
"$ 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",
|
|
601
|
+
"$ 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",
|
|
602
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
603
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
604
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
605
|
+
"$ 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",
|
|
606
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
607
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
569
608
|
],
|
|
570
609
|
"flags": {
|
|
571
610
|
"profile": {
|
|
@@ -589,10 +628,7 @@
|
|
|
589
628
|
},
|
|
590
629
|
"edit": {
|
|
591
630
|
"char": "e",
|
|
592
|
-
"
|
|
593
|
-
"file"
|
|
594
|
-
],
|
|
595
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
631
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
596
632
|
"name": "edit",
|
|
597
633
|
"required": false,
|
|
598
634
|
"allowNo": false,
|
|
@@ -624,6 +660,13 @@
|
|
|
624
660
|
],
|
|
625
661
|
"type": "option"
|
|
626
662
|
},
|
|
663
|
+
"publish": {
|
|
664
|
+
"description": "Publish the function after editing",
|
|
665
|
+
"name": "publish",
|
|
666
|
+
"required": false,
|
|
667
|
+
"allowNo": false,
|
|
668
|
+
"type": "boolean"
|
|
669
|
+
},
|
|
627
670
|
"stdin": {
|
|
628
671
|
"char": "s",
|
|
629
672
|
"description": "Read XanoScript code from stdin",
|
|
@@ -647,7 +690,7 @@
|
|
|
647
690
|
},
|
|
648
691
|
"hasDynamicHelp": false,
|
|
649
692
|
"hiddenAliases": [],
|
|
650
|
-
"id": "function:
|
|
693
|
+
"id": "function:edit",
|
|
651
694
|
"pluginAlias": "@xano/cli",
|
|
652
695
|
"pluginName": "@xano/cli",
|
|
653
696
|
"pluginType": "core",
|
|
@@ -658,7 +701,7 @@
|
|
|
658
701
|
"dist",
|
|
659
702
|
"commands",
|
|
660
703
|
"function",
|
|
661
|
-
"
|
|
704
|
+
"edit",
|
|
662
705
|
"index.js"
|
|
663
706
|
]
|
|
664
707
|
},
|
|
@@ -756,19 +799,15 @@
|
|
|
756
799
|
"index.js"
|
|
757
800
|
]
|
|
758
801
|
},
|
|
759
|
-
"
|
|
802
|
+
"function:list": {
|
|
760
803
|
"aliases": [],
|
|
761
|
-
"args": {
|
|
762
|
-
|
|
763
|
-
"description": "Platform ID to retrieve",
|
|
764
|
-
"name": "platform_id",
|
|
765
|
-
"required": true
|
|
766
|
-
}
|
|
767
|
-
},
|
|
768
|
-
"description": "Get details of a specific platform",
|
|
804
|
+
"args": {},
|
|
805
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
769
806
|
"examples": [
|
|
770
|
-
"$ xano
|
|
771
|
-
"$ xano
|
|
807
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
808
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
809
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
810
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
772
811
|
],
|
|
773
812
|
"flags": {
|
|
774
813
|
"profile": {
|
|
@@ -790,7 +829,34 @@
|
|
|
790
829
|
"allowNo": false,
|
|
791
830
|
"type": "boolean"
|
|
792
831
|
},
|
|
793
|
-
"
|
|
832
|
+
"include_draft": {
|
|
833
|
+
"description": "Include draft functions",
|
|
834
|
+
"name": "include_draft",
|
|
835
|
+
"required": false,
|
|
836
|
+
"allowNo": false,
|
|
837
|
+
"type": "boolean"
|
|
838
|
+
},
|
|
839
|
+
"include_xanoscript": {
|
|
840
|
+
"description": "Include XanoScript in response",
|
|
841
|
+
"name": "include_xanoscript",
|
|
842
|
+
"required": false,
|
|
843
|
+
"allowNo": false,
|
|
844
|
+
"type": "boolean"
|
|
845
|
+
},
|
|
846
|
+
"order": {
|
|
847
|
+
"description": "Sort order",
|
|
848
|
+
"name": "order",
|
|
849
|
+
"required": false,
|
|
850
|
+
"default": "desc",
|
|
851
|
+
"hasDynamicHelp": false,
|
|
852
|
+
"multiple": false,
|
|
853
|
+
"options": [
|
|
854
|
+
"asc",
|
|
855
|
+
"desc"
|
|
856
|
+
],
|
|
857
|
+
"type": "option"
|
|
858
|
+
},
|
|
859
|
+
"output": {
|
|
794
860
|
"char": "o",
|
|
795
861
|
"description": "Output format",
|
|
796
862
|
"name": "output",
|
|
@@ -803,11 +869,47 @@
|
|
|
803
869
|
"json"
|
|
804
870
|
],
|
|
805
871
|
"type": "option"
|
|
872
|
+
},
|
|
873
|
+
"page": {
|
|
874
|
+
"description": "Page number for pagination",
|
|
875
|
+
"name": "page",
|
|
876
|
+
"required": false,
|
|
877
|
+
"default": 1,
|
|
878
|
+
"hasDynamicHelp": false,
|
|
879
|
+
"multiple": false,
|
|
880
|
+
"type": "option"
|
|
881
|
+
},
|
|
882
|
+
"per_page": {
|
|
883
|
+
"description": "Number of results per page",
|
|
884
|
+
"name": "per_page",
|
|
885
|
+
"required": false,
|
|
886
|
+
"default": 50,
|
|
887
|
+
"hasDynamicHelp": false,
|
|
888
|
+
"multiple": false,
|
|
889
|
+
"type": "option"
|
|
890
|
+
},
|
|
891
|
+
"sort": {
|
|
892
|
+
"description": "Sort field",
|
|
893
|
+
"name": "sort",
|
|
894
|
+
"required": false,
|
|
895
|
+
"default": "created_at",
|
|
896
|
+
"hasDynamicHelp": false,
|
|
897
|
+
"multiple": false,
|
|
898
|
+
"type": "option"
|
|
899
|
+
},
|
|
900
|
+
"workspace": {
|
|
901
|
+
"char": "w",
|
|
902
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
903
|
+
"name": "workspace",
|
|
904
|
+
"required": false,
|
|
905
|
+
"hasDynamicHelp": false,
|
|
906
|
+
"multiple": false,
|
|
907
|
+
"type": "option"
|
|
806
908
|
}
|
|
807
909
|
},
|
|
808
910
|
"hasDynamicHelp": false,
|
|
809
911
|
"hiddenAliases": [],
|
|
810
|
-
"id": "
|
|
912
|
+
"id": "function:list",
|
|
811
913
|
"pluginAlias": "@xano/cli",
|
|
812
914
|
"pluginName": "@xano/cli",
|
|
813
915
|
"pluginType": "core",
|
|
@@ -817,18 +919,24 @@
|
|
|
817
919
|
"relativePath": [
|
|
818
920
|
"dist",
|
|
819
921
|
"commands",
|
|
820
|
-
"
|
|
821
|
-
"
|
|
922
|
+
"function",
|
|
923
|
+
"list",
|
|
822
924
|
"index.js"
|
|
823
925
|
]
|
|
824
926
|
},
|
|
825
|
-
"platform:
|
|
927
|
+
"platform:get": {
|
|
826
928
|
"aliases": [],
|
|
827
|
-
"args": {
|
|
828
|
-
|
|
929
|
+
"args": {
|
|
930
|
+
"platform_id": {
|
|
931
|
+
"description": "Platform ID to retrieve",
|
|
932
|
+
"name": "platform_id",
|
|
933
|
+
"required": true
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"description": "Get details of a specific platform",
|
|
829
937
|
"examples": [
|
|
830
|
-
"$ xano platform
|
|
831
|
-
"$ xano platform
|
|
938
|
+
"$ 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",
|
|
939
|
+
"$ xano platform get 23629 -o json"
|
|
832
940
|
],
|
|
833
941
|
"flags": {
|
|
834
942
|
"profile": {
|
|
@@ -867,7 +975,7 @@
|
|
|
867
975
|
},
|
|
868
976
|
"hasDynamicHelp": false,
|
|
869
977
|
"hiddenAliases": [],
|
|
870
|
-
"id": "platform:
|
|
978
|
+
"id": "platform:get",
|
|
871
979
|
"pluginAlias": "@xano/cli",
|
|
872
980
|
"pluginName": "@xano/cli",
|
|
873
981
|
"pluginType": "core",
|
|
@@ -878,7 +986,7 @@
|
|
|
878
986
|
"dist",
|
|
879
987
|
"commands",
|
|
880
988
|
"platform",
|
|
881
|
-
"
|
|
989
|
+
"get",
|
|
882
990
|
"index.js"
|
|
883
991
|
]
|
|
884
992
|
},
|
|
@@ -969,15 +1077,13 @@
|
|
|
969
1077
|
"index.js"
|
|
970
1078
|
]
|
|
971
1079
|
},
|
|
972
|
-
"
|
|
1080
|
+
"platform:list": {
|
|
973
1081
|
"aliases": [],
|
|
974
1082
|
"args": {},
|
|
975
|
-
"description": "List all
|
|
1083
|
+
"description": "List all platforms",
|
|
976
1084
|
"examples": [
|
|
977
|
-
"$ xano
|
|
978
|
-
"$ xano
|
|
979
|
-
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
980
|
-
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
1085
|
+
"$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
|
|
1086
|
+
"$ xano platform list --output json"
|
|
981
1087
|
],
|
|
982
1088
|
"flags": {
|
|
983
1089
|
"profile": {
|
|
@@ -999,33 +1105,6 @@
|
|
|
999
1105
|
"allowNo": false,
|
|
1000
1106
|
"type": "boolean"
|
|
1001
1107
|
},
|
|
1002
|
-
"include_draft": {
|
|
1003
|
-
"description": "Include draft functions",
|
|
1004
|
-
"name": "include_draft",
|
|
1005
|
-
"required": false,
|
|
1006
|
-
"allowNo": false,
|
|
1007
|
-
"type": "boolean"
|
|
1008
|
-
},
|
|
1009
|
-
"include_xanoscript": {
|
|
1010
|
-
"description": "Include XanoScript in response",
|
|
1011
|
-
"name": "include_xanoscript",
|
|
1012
|
-
"required": false,
|
|
1013
|
-
"allowNo": false,
|
|
1014
|
-
"type": "boolean"
|
|
1015
|
-
},
|
|
1016
|
-
"order": {
|
|
1017
|
-
"description": "Sort order",
|
|
1018
|
-
"name": "order",
|
|
1019
|
-
"required": false,
|
|
1020
|
-
"default": "desc",
|
|
1021
|
-
"hasDynamicHelp": false,
|
|
1022
|
-
"multiple": false,
|
|
1023
|
-
"options": [
|
|
1024
|
-
"asc",
|
|
1025
|
-
"desc"
|
|
1026
|
-
],
|
|
1027
|
-
"type": "option"
|
|
1028
|
-
},
|
|
1029
1108
|
"output": {
|
|
1030
1109
|
"char": "o",
|
|
1031
1110
|
"description": "Output format",
|
|
@@ -1039,37 +1118,77 @@
|
|
|
1039
1118
|
"json"
|
|
1040
1119
|
],
|
|
1041
1120
|
"type": "option"
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"hasDynamicHelp": false,
|
|
1124
|
+
"hiddenAliases": [],
|
|
1125
|
+
"id": "platform:list",
|
|
1126
|
+
"pluginAlias": "@xano/cli",
|
|
1127
|
+
"pluginName": "@xano/cli",
|
|
1128
|
+
"pluginType": "core",
|
|
1129
|
+
"strict": true,
|
|
1130
|
+
"enableJsonFlag": false,
|
|
1131
|
+
"isESM": true,
|
|
1132
|
+
"relativePath": [
|
|
1133
|
+
"dist",
|
|
1134
|
+
"commands",
|
|
1135
|
+
"platform",
|
|
1136
|
+
"list",
|
|
1137
|
+
"index.js"
|
|
1138
|
+
]
|
|
1139
|
+
},
|
|
1140
|
+
"branch:get": {
|
|
1141
|
+
"aliases": [],
|
|
1142
|
+
"args": {
|
|
1143
|
+
"branch_label": {
|
|
1144
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
1145
|
+
"name": "branch_label",
|
|
1146
|
+
"required": true
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
"description": "Get details for a specific branch",
|
|
1150
|
+
"examples": [
|
|
1151
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
1152
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
1153
|
+
"$ 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"
|
|
1154
|
+
],
|
|
1155
|
+
"flags": {
|
|
1156
|
+
"profile": {
|
|
1157
|
+
"char": "p",
|
|
1158
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
1159
|
+
"env": "XANO_PROFILE",
|
|
1160
|
+
"name": "profile",
|
|
1046
1161
|
"required": false,
|
|
1047
|
-
"default": 1,
|
|
1048
1162
|
"hasDynamicHelp": false,
|
|
1049
1163
|
"multiple": false,
|
|
1050
1164
|
"type": "option"
|
|
1051
1165
|
},
|
|
1052
|
-
"
|
|
1053
|
-
"
|
|
1054
|
-
"
|
|
1166
|
+
"verbose": {
|
|
1167
|
+
"char": "v",
|
|
1168
|
+
"description": "Show detailed request/response information",
|
|
1169
|
+
"env": "XANO_VERBOSE",
|
|
1170
|
+
"name": "verbose",
|
|
1055
1171
|
"required": false,
|
|
1056
|
-
"
|
|
1057
|
-
"
|
|
1058
|
-
"multiple": false,
|
|
1059
|
-
"type": "option"
|
|
1172
|
+
"allowNo": false,
|
|
1173
|
+
"type": "boolean"
|
|
1060
1174
|
},
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1063
|
-
"
|
|
1175
|
+
"output": {
|
|
1176
|
+
"char": "o",
|
|
1177
|
+
"description": "Output format",
|
|
1178
|
+
"name": "output",
|
|
1064
1179
|
"required": false,
|
|
1065
|
-
"default": "
|
|
1180
|
+
"default": "summary",
|
|
1066
1181
|
"hasDynamicHelp": false,
|
|
1067
1182
|
"multiple": false,
|
|
1183
|
+
"options": [
|
|
1184
|
+
"summary",
|
|
1185
|
+
"json"
|
|
1186
|
+
],
|
|
1068
1187
|
"type": "option"
|
|
1069
1188
|
},
|
|
1070
1189
|
"workspace": {
|
|
1071
1190
|
"char": "w",
|
|
1072
|
-
"description": "Workspace ID (
|
|
1191
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1073
1192
|
"name": "workspace",
|
|
1074
1193
|
"required": false,
|
|
1075
1194
|
"hasDynamicHelp": false,
|
|
@@ -1079,7 +1198,7 @@
|
|
|
1079
1198
|
},
|
|
1080
1199
|
"hasDynamicHelp": false,
|
|
1081
1200
|
"hiddenAliases": [],
|
|
1082
|
-
"id": "
|
|
1201
|
+
"id": "branch:get",
|
|
1083
1202
|
"pluginAlias": "@xano/cli",
|
|
1084
1203
|
"pluginName": "@xano/cli",
|
|
1085
1204
|
"pluginType": "core",
|
|
@@ -1089,8 +1208,8 @@
|
|
|
1089
1208
|
"relativePath": [
|
|
1090
1209
|
"dist",
|
|
1091
1210
|
"commands",
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1211
|
+
"branch",
|
|
1212
|
+
"get",
|
|
1094
1213
|
"index.js"
|
|
1095
1214
|
]
|
|
1096
1215
|
},
|
|
@@ -1250,133 +1369,40 @@
|
|
|
1250
1369
|
"index.js"
|
|
1251
1370
|
]
|
|
1252
1371
|
},
|
|
1253
|
-
"
|
|
1372
|
+
"profile:get_default": {
|
|
1254
1373
|
"aliases": [],
|
|
1255
|
-
"args": {
|
|
1256
|
-
|
|
1257
|
-
"description": "Function ID to edit",
|
|
1258
|
-
"name": "function_id",
|
|
1259
|
-
"required": false
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
"description": "Edit a function in a workspace",
|
|
1374
|
+
"args": {},
|
|
1375
|
+
"description": "Get the current default profile name",
|
|
1263
1376
|
"examples": [
|
|
1264
|
-
"$ xano
|
|
1265
|
-
"$ xano
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
"
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
}
|
|
1293
|
-
"edit": {
|
|
1294
|
-
"char": "e",
|
|
1295
|
-
"description": "Open file in editor before updating function (requires --file)",
|
|
1296
|
-
"name": "edit",
|
|
1297
|
-
"required": false,
|
|
1298
|
-
"allowNo": false,
|
|
1299
|
-
"type": "boolean"
|
|
1300
|
-
},
|
|
1301
|
-
"file": {
|
|
1302
|
-
"char": "f",
|
|
1303
|
-
"description": "Path to file containing XanoScript code",
|
|
1304
|
-
"exclusive": [
|
|
1305
|
-
"stdin"
|
|
1306
|
-
],
|
|
1307
|
-
"name": "file",
|
|
1308
|
-
"required": false,
|
|
1309
|
-
"hasDynamicHelp": false,
|
|
1310
|
-
"multiple": false,
|
|
1311
|
-
"type": "option"
|
|
1312
|
-
},
|
|
1313
|
-
"output": {
|
|
1314
|
-
"char": "o",
|
|
1315
|
-
"description": "Output format",
|
|
1316
|
-
"name": "output",
|
|
1317
|
-
"required": false,
|
|
1318
|
-
"default": "summary",
|
|
1319
|
-
"hasDynamicHelp": false,
|
|
1320
|
-
"multiple": false,
|
|
1321
|
-
"options": [
|
|
1322
|
-
"summary",
|
|
1323
|
-
"json"
|
|
1324
|
-
],
|
|
1325
|
-
"type": "option"
|
|
1326
|
-
},
|
|
1327
|
-
"publish": {
|
|
1328
|
-
"description": "Publish the function after editing",
|
|
1329
|
-
"name": "publish",
|
|
1330
|
-
"required": false,
|
|
1331
|
-
"allowNo": false,
|
|
1332
|
-
"type": "boolean"
|
|
1333
|
-
},
|
|
1334
|
-
"stdin": {
|
|
1335
|
-
"char": "s",
|
|
1336
|
-
"description": "Read XanoScript code from stdin",
|
|
1337
|
-
"exclusive": [
|
|
1338
|
-
"file"
|
|
1339
|
-
],
|
|
1340
|
-
"name": "stdin",
|
|
1341
|
-
"required": false,
|
|
1342
|
-
"allowNo": false,
|
|
1343
|
-
"type": "boolean"
|
|
1344
|
-
},
|
|
1345
|
-
"workspace": {
|
|
1346
|
-
"char": "w",
|
|
1347
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
1348
|
-
"name": "workspace",
|
|
1349
|
-
"required": false,
|
|
1350
|
-
"hasDynamicHelp": false,
|
|
1351
|
-
"multiple": false,
|
|
1352
|
-
"type": "option"
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
"hasDynamicHelp": false,
|
|
1356
|
-
"hiddenAliases": [],
|
|
1357
|
-
"id": "function:edit",
|
|
1358
|
-
"pluginAlias": "@xano/cli",
|
|
1359
|
-
"pluginName": "@xano/cli",
|
|
1360
|
-
"pluginType": "core",
|
|
1361
|
-
"strict": true,
|
|
1362
|
-
"enableJsonFlag": false,
|
|
1363
|
-
"isESM": true,
|
|
1364
|
-
"relativePath": [
|
|
1365
|
-
"dist",
|
|
1366
|
-
"commands",
|
|
1367
|
-
"function",
|
|
1368
|
-
"edit",
|
|
1369
|
-
"index.js"
|
|
1370
|
-
]
|
|
1371
|
-
},
|
|
1372
|
-
"profile:me": {
|
|
1373
|
-
"aliases": [],
|
|
1374
|
-
"args": {},
|
|
1375
|
-
"description": "Get information about the currently authenticated user",
|
|
1376
|
-
"examples": [
|
|
1377
|
-
"$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
|
|
1378
|
-
"$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
|
|
1379
|
-
"$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
|
|
1377
|
+
"$ xano profile:get-default\nproduction\n",
|
|
1378
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
1379
|
+
],
|
|
1380
|
+
"flags": {},
|
|
1381
|
+
"hasDynamicHelp": false,
|
|
1382
|
+
"hiddenAliases": [],
|
|
1383
|
+
"id": "profile:get_default",
|
|
1384
|
+
"pluginAlias": "@xano/cli",
|
|
1385
|
+
"pluginName": "@xano/cli",
|
|
1386
|
+
"pluginType": "core",
|
|
1387
|
+
"strict": true,
|
|
1388
|
+
"enableJsonFlag": false,
|
|
1389
|
+
"isESM": true,
|
|
1390
|
+
"relativePath": [
|
|
1391
|
+
"dist",
|
|
1392
|
+
"commands",
|
|
1393
|
+
"profile",
|
|
1394
|
+
"get_default",
|
|
1395
|
+
"index.js"
|
|
1396
|
+
]
|
|
1397
|
+
},
|
|
1398
|
+
"profile:me": {
|
|
1399
|
+
"aliases": [],
|
|
1400
|
+
"args": {},
|
|
1401
|
+
"description": "Get information about the currently authenticated user",
|
|
1402
|
+
"examples": [
|
|
1403
|
+
"$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
|
|
1404
|
+
"$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
|
|
1405
|
+
"$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
|
|
1380
1406
|
],
|
|
1381
1407
|
"flags": {
|
|
1382
1408
|
"profile": {
|
|
@@ -1462,18 +1488,37 @@
|
|
|
1462
1488
|
"index.js"
|
|
1463
1489
|
]
|
|
1464
1490
|
},
|
|
1465
|
-
"profile:
|
|
1491
|
+
"profile:wizard": {
|
|
1466
1492
|
"aliases": [],
|
|
1467
1493
|
"args": {},
|
|
1468
|
-
"description": "
|
|
1494
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
1469
1495
|
"examples": [
|
|
1470
|
-
"$ xano profile:
|
|
1471
|
-
"$ xano profile:get-default\nNo default profile set\n"
|
|
1496
|
+
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
1472
1497
|
],
|
|
1473
|
-
"flags": {
|
|
1498
|
+
"flags": {
|
|
1499
|
+
"name": {
|
|
1500
|
+
"char": "n",
|
|
1501
|
+
"description": "Profile name (skip prompt if provided)",
|
|
1502
|
+
"name": "name",
|
|
1503
|
+
"required": false,
|
|
1504
|
+
"hasDynamicHelp": false,
|
|
1505
|
+
"multiple": false,
|
|
1506
|
+
"type": "option"
|
|
1507
|
+
},
|
|
1508
|
+
"origin": {
|
|
1509
|
+
"char": "o",
|
|
1510
|
+
"description": "Xano instance origin URL",
|
|
1511
|
+
"name": "origin",
|
|
1512
|
+
"required": false,
|
|
1513
|
+
"default": "https://app.xano.com",
|
|
1514
|
+
"hasDynamicHelp": false,
|
|
1515
|
+
"multiple": false,
|
|
1516
|
+
"type": "option"
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1474
1519
|
"hasDynamicHelp": false,
|
|
1475
1520
|
"hiddenAliases": [],
|
|
1476
|
-
"id": "profile:
|
|
1521
|
+
"id": "profile:wizard",
|
|
1477
1522
|
"pluginAlias": "@xano/cli",
|
|
1478
1523
|
"pluginName": "@xano/cli",
|
|
1479
1524
|
"pluginType": "core",
|
|
@@ -1484,32 +1529,22 @@
|
|
|
1484
1529
|
"dist",
|
|
1485
1530
|
"commands",
|
|
1486
1531
|
"profile",
|
|
1487
|
-
"
|
|
1532
|
+
"wizard",
|
|
1488
1533
|
"index.js"
|
|
1489
1534
|
]
|
|
1490
1535
|
},
|
|
1491
|
-
"profile:
|
|
1536
|
+
"profile:token": {
|
|
1492
1537
|
"aliases": [],
|
|
1493
1538
|
"args": {},
|
|
1494
|
-
"description": "
|
|
1539
|
+
"description": "Print the access token for the default profile",
|
|
1495
1540
|
"examples": [
|
|
1496
|
-
"$ xano profile:
|
|
1497
|
-
"$ xano profile:
|
|
1498
|
-
"$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
|
|
1541
|
+
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
1542
|
+
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1499
1543
|
],
|
|
1500
|
-
"flags": {
|
|
1501
|
-
"details": {
|
|
1502
|
-
"char": "d",
|
|
1503
|
-
"description": "Show detailed information for each profile",
|
|
1504
|
-
"name": "details",
|
|
1505
|
-
"required": false,
|
|
1506
|
-
"allowNo": false,
|
|
1507
|
-
"type": "boolean"
|
|
1508
|
-
}
|
|
1509
|
-
},
|
|
1544
|
+
"flags": {},
|
|
1510
1545
|
"hasDynamicHelp": false,
|
|
1511
1546
|
"hiddenAliases": [],
|
|
1512
|
-
"id": "profile:
|
|
1547
|
+
"id": "profile:token",
|
|
1513
1548
|
"pluginAlias": "@xano/cli",
|
|
1514
1549
|
"pluginName": "@xano/cli",
|
|
1515
1550
|
"pluginType": "core",
|
|
@@ -1520,41 +1555,22 @@
|
|
|
1520
1555
|
"dist",
|
|
1521
1556
|
"commands",
|
|
1522
1557
|
"profile",
|
|
1523
|
-
"
|
|
1558
|
+
"token",
|
|
1524
1559
|
"index.js"
|
|
1525
1560
|
]
|
|
1526
1561
|
},
|
|
1527
|
-
"profile:
|
|
1562
|
+
"profile:workspace": {
|
|
1528
1563
|
"aliases": [],
|
|
1529
1564
|
"args": {},
|
|
1530
|
-
"description": "
|
|
1565
|
+
"description": "Print the workspace ID for the default profile",
|
|
1531
1566
|
"examples": [
|
|
1532
|
-
"$ xano profile:
|
|
1567
|
+
"$ xano profile:workspace\nabc123-workspace-id\n",
|
|
1568
|
+
"$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
|
|
1533
1569
|
],
|
|
1534
|
-
"flags": {
|
|
1535
|
-
"name": {
|
|
1536
|
-
"char": "n",
|
|
1537
|
-
"description": "Profile name (skip prompt if provided)",
|
|
1538
|
-
"name": "name",
|
|
1539
|
-
"required": false,
|
|
1540
|
-
"hasDynamicHelp": false,
|
|
1541
|
-
"multiple": false,
|
|
1542
|
-
"type": "option"
|
|
1543
|
-
},
|
|
1544
|
-
"origin": {
|
|
1545
|
-
"char": "o",
|
|
1546
|
-
"description": "Xano instance origin URL",
|
|
1547
|
-
"name": "origin",
|
|
1548
|
-
"required": false,
|
|
1549
|
-
"default": "https://app.xano.com",
|
|
1550
|
-
"hasDynamicHelp": false,
|
|
1551
|
-
"multiple": false,
|
|
1552
|
-
"type": "option"
|
|
1553
|
-
}
|
|
1554
|
-
},
|
|
1570
|
+
"flags": {},
|
|
1555
1571
|
"hasDynamicHelp": false,
|
|
1556
1572
|
"hiddenAliases": [],
|
|
1557
|
-
"id": "profile:
|
|
1573
|
+
"id": "profile:workspace",
|
|
1558
1574
|
"pluginAlias": "@xano/cli",
|
|
1559
1575
|
"pluginName": "@xano/cli",
|
|
1560
1576
|
"pluginType": "core",
|
|
@@ -1565,22 +1581,32 @@
|
|
|
1565
1581
|
"dist",
|
|
1566
1582
|
"commands",
|
|
1567
1583
|
"profile",
|
|
1568
|
-
"
|
|
1584
|
+
"workspace",
|
|
1569
1585
|
"index.js"
|
|
1570
1586
|
]
|
|
1571
1587
|
},
|
|
1572
|
-
"profile:
|
|
1588
|
+
"profile:list": {
|
|
1573
1589
|
"aliases": [],
|
|
1574
1590
|
"args": {},
|
|
1575
|
-
"description": "
|
|
1591
|
+
"description": "List all available profile configurations",
|
|
1576
1592
|
"examples": [
|
|
1577
|
-
"$ xano profile:
|
|
1578
|
-
"$ xano profile:
|
|
1593
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
1594
|
+
"$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
|
|
1595
|
+
"$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
|
|
1579
1596
|
],
|
|
1580
|
-
"flags": {
|
|
1597
|
+
"flags": {
|
|
1598
|
+
"details": {
|
|
1599
|
+
"char": "d",
|
|
1600
|
+
"description": "Show detailed information for each profile",
|
|
1601
|
+
"name": "details",
|
|
1602
|
+
"required": false,
|
|
1603
|
+
"allowNo": false,
|
|
1604
|
+
"type": "boolean"
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1581
1607
|
"hasDynamicHelp": false,
|
|
1582
1608
|
"hiddenAliases": [],
|
|
1583
|
-
"id": "profile:
|
|
1609
|
+
"id": "profile:list",
|
|
1584
1610
|
"pluginAlias": "@xano/cli",
|
|
1585
1611
|
"pluginName": "@xano/cli",
|
|
1586
1612
|
"pluginType": "core",
|
|
@@ -1591,7 +1617,7 @@
|
|
|
1591
1617
|
"dist",
|
|
1592
1618
|
"commands",
|
|
1593
1619
|
"profile",
|
|
1594
|
-
"
|
|
1620
|
+
"list",
|
|
1595
1621
|
"index.js"
|
|
1596
1622
|
]
|
|
1597
1623
|
},
|
|
@@ -1790,39 +1816,19 @@
|
|
|
1790
1816
|
"index.js"
|
|
1791
1817
|
]
|
|
1792
1818
|
},
|
|
1793
|
-
"
|
|
1794
|
-
"aliases": [],
|
|
1795
|
-
"args": {},
|
|
1796
|
-
"description": "Print the workspace ID for the default profile",
|
|
1797
|
-
"examples": [
|
|
1798
|
-
"$ xano profile:workspace\nabc123-workspace-id\n",
|
|
1799
|
-
"$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
|
|
1800
|
-
],
|
|
1801
|
-
"flags": {},
|
|
1802
|
-
"hasDynamicHelp": false,
|
|
1803
|
-
"hiddenAliases": [],
|
|
1804
|
-
"id": "profile:workspace",
|
|
1805
|
-
"pluginAlias": "@xano/cli",
|
|
1806
|
-
"pluginName": "@xano/cli",
|
|
1807
|
-
"pluginType": "core",
|
|
1808
|
-
"strict": true,
|
|
1809
|
-
"enableJsonFlag": false,
|
|
1810
|
-
"isESM": true,
|
|
1811
|
-
"relativePath": [
|
|
1812
|
-
"dist",
|
|
1813
|
-
"commands",
|
|
1814
|
-
"profile",
|
|
1815
|
-
"workspace",
|
|
1816
|
-
"index.js"
|
|
1817
|
-
]
|
|
1818
|
-
},
|
|
1819
|
-
"release:import": {
|
|
1819
|
+
"release:edit": {
|
|
1820
1820
|
"aliases": [],
|
|
1821
|
-
"args": {
|
|
1822
|
-
|
|
1821
|
+
"args": {
|
|
1822
|
+
"release_name": {
|
|
1823
|
+
"description": "Release name to edit",
|
|
1824
|
+
"name": "release_name",
|
|
1825
|
+
"required": true
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
"description": "Edit an existing release",
|
|
1823
1829
|
"examples": [
|
|
1824
|
-
"$ xano release
|
|
1825
|
-
"$ xano release
|
|
1830
|
+
"$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
|
|
1831
|
+
"$ xano release edit v1.0 --description \"New description\" -o json"
|
|
1826
1832
|
],
|
|
1827
1833
|
"flags": {
|
|
1828
1834
|
"profile": {
|
|
@@ -1844,11 +1850,20 @@
|
|
|
1844
1850
|
"allowNo": false,
|
|
1845
1851
|
"type": "boolean"
|
|
1846
1852
|
},
|
|
1847
|
-
"
|
|
1848
|
-
"char": "
|
|
1849
|
-
"description": "
|
|
1850
|
-
"name": "
|
|
1851
|
-
"required":
|
|
1853
|
+
"description": {
|
|
1854
|
+
"char": "d",
|
|
1855
|
+
"description": "New description",
|
|
1856
|
+
"name": "description",
|
|
1857
|
+
"required": false,
|
|
1858
|
+
"hasDynamicHelp": false,
|
|
1859
|
+
"multiple": false,
|
|
1860
|
+
"type": "option"
|
|
1861
|
+
},
|
|
1862
|
+
"name": {
|
|
1863
|
+
"char": "n",
|
|
1864
|
+
"description": "New name for the release",
|
|
1865
|
+
"name": "name",
|
|
1866
|
+
"required": false,
|
|
1852
1867
|
"hasDynamicHelp": false,
|
|
1853
1868
|
"multiple": false,
|
|
1854
1869
|
"type": "option"
|
|
@@ -1879,7 +1894,7 @@
|
|
|
1879
1894
|
},
|
|
1880
1895
|
"hasDynamicHelp": false,
|
|
1881
1896
|
"hiddenAliases": [],
|
|
1882
|
-
"id": "release:
|
|
1897
|
+
"id": "release:edit",
|
|
1883
1898
|
"pluginAlias": "@xano/cli",
|
|
1884
1899
|
"pluginName": "@xano/cli",
|
|
1885
1900
|
"pluginType": "core",
|
|
@@ -1890,24 +1905,17 @@
|
|
|
1890
1905
|
"dist",
|
|
1891
1906
|
"commands",
|
|
1892
1907
|
"release",
|
|
1893
|
-
"
|
|
1908
|
+
"edit",
|
|
1894
1909
|
"index.js"
|
|
1895
1910
|
]
|
|
1896
1911
|
},
|
|
1897
|
-
"release:
|
|
1912
|
+
"release:import": {
|
|
1898
1913
|
"aliases": [],
|
|
1899
|
-
"args": {
|
|
1900
|
-
|
|
1901
|
-
"description": "Release name to export",
|
|
1902
|
-
"name": "release_name",
|
|
1903
|
-
"required": true
|
|
1904
|
-
}
|
|
1905
|
-
},
|
|
1906
|
-
"description": "Export (download) a release to a local file",
|
|
1914
|
+
"args": {},
|
|
1915
|
+
"description": "Import a release file into a workspace",
|
|
1907
1916
|
"examples": [
|
|
1908
|
-
"$ xano release
|
|
1909
|
-
"$ xano release
|
|
1910
|
-
"$ xano release export v1.0 -o json"
|
|
1917
|
+
"$ xano release import --file ./my-release.tar.gz\nImported release as #15\n",
|
|
1918
|
+
"$ xano release import --file ./my-release.tar.gz -o json"
|
|
1911
1919
|
],
|
|
1912
1920
|
"flags": {
|
|
1913
1921
|
"profile": {
|
|
@@ -1929,10 +1937,19 @@
|
|
|
1929
1937
|
"allowNo": false,
|
|
1930
1938
|
"type": "boolean"
|
|
1931
1939
|
},
|
|
1932
|
-
"
|
|
1940
|
+
"file": {
|
|
1941
|
+
"char": "f",
|
|
1942
|
+
"description": "Path to the release file (.tar.gz)",
|
|
1943
|
+
"name": "file",
|
|
1944
|
+
"required": true,
|
|
1945
|
+
"hasDynamicHelp": false,
|
|
1946
|
+
"multiple": false,
|
|
1947
|
+
"type": "option"
|
|
1948
|
+
},
|
|
1949
|
+
"output": {
|
|
1933
1950
|
"char": "o",
|
|
1934
1951
|
"description": "Output format",
|
|
1935
|
-
"name": "
|
|
1952
|
+
"name": "output",
|
|
1936
1953
|
"required": false,
|
|
1937
1954
|
"default": "summary",
|
|
1938
1955
|
"hasDynamicHelp": false,
|
|
@@ -1943,14 +1960,6 @@
|
|
|
1943
1960
|
],
|
|
1944
1961
|
"type": "option"
|
|
1945
1962
|
},
|
|
1946
|
-
"output": {
|
|
1947
|
-
"description": "Output file path (defaults to ./release-{name}.tar.gz)",
|
|
1948
|
-
"name": "output",
|
|
1949
|
-
"required": false,
|
|
1950
|
-
"hasDynamicHelp": false,
|
|
1951
|
-
"multiple": false,
|
|
1952
|
-
"type": "option"
|
|
1953
|
-
},
|
|
1954
1963
|
"workspace": {
|
|
1955
1964
|
"char": "w",
|
|
1956
1965
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -1963,7 +1972,7 @@
|
|
|
1963
1972
|
},
|
|
1964
1973
|
"hasDynamicHelp": false,
|
|
1965
1974
|
"hiddenAliases": [],
|
|
1966
|
-
"id": "release:
|
|
1975
|
+
"id": "release:import",
|
|
1967
1976
|
"pluginAlias": "@xano/cli",
|
|
1968
1977
|
"pluginName": "@xano/cli",
|
|
1969
1978
|
"pluginType": "core",
|
|
@@ -1974,23 +1983,17 @@
|
|
|
1974
1983
|
"dist",
|
|
1975
1984
|
"commands",
|
|
1976
1985
|
"release",
|
|
1977
|
-
"
|
|
1986
|
+
"import",
|
|
1978
1987
|
"index.js"
|
|
1979
1988
|
]
|
|
1980
1989
|
},
|
|
1981
|
-
"release:
|
|
1990
|
+
"release:list": {
|
|
1982
1991
|
"aliases": [],
|
|
1983
|
-
"args": {
|
|
1984
|
-
|
|
1985
|
-
"description": "Release name to retrieve",
|
|
1986
|
-
"name": "release_name",
|
|
1987
|
-
"required": true
|
|
1988
|
-
}
|
|
1989
|
-
},
|
|
1990
|
-
"description": "Get details of a specific release",
|
|
1992
|
+
"args": {},
|
|
1993
|
+
"description": "List all releases in a workspace",
|
|
1991
1994
|
"examples": [
|
|
1992
|
-
"$ xano release
|
|
1993
|
-
"$ xano release
|
|
1995
|
+
"$ xano release list\nReleases in workspace 5:\n - v1.0 (ID: 10) - main\n - v1.1-hotfix (ID: 11) - main [hotfix]\n",
|
|
1996
|
+
"$ xano release list -w 5 --output json"
|
|
1994
1997
|
],
|
|
1995
1998
|
"flags": {
|
|
1996
1999
|
"profile": {
|
|
@@ -2038,7 +2041,7 @@
|
|
|
2038
2041
|
},
|
|
2039
2042
|
"hasDynamicHelp": false,
|
|
2040
2043
|
"hiddenAliases": [],
|
|
2041
|
-
"id": "release:
|
|
2044
|
+
"id": "release:list",
|
|
2042
2045
|
"pluginAlias": "@xano/cli",
|
|
2043
2046
|
"pluginName": "@xano/cli",
|
|
2044
2047
|
"pluginType": "core",
|
|
@@ -2049,23 +2052,24 @@
|
|
|
2049
2052
|
"dist",
|
|
2050
2053
|
"commands",
|
|
2051
2054
|
"release",
|
|
2052
|
-
"
|
|
2055
|
+
"list",
|
|
2053
2056
|
"index.js"
|
|
2054
2057
|
]
|
|
2055
2058
|
},
|
|
2056
|
-
"release:
|
|
2059
|
+
"release:export": {
|
|
2057
2060
|
"aliases": [],
|
|
2058
2061
|
"args": {
|
|
2059
2062
|
"release_name": {
|
|
2060
|
-
"description": "Release name to
|
|
2063
|
+
"description": "Release name to export",
|
|
2061
2064
|
"name": "release_name",
|
|
2062
2065
|
"required": true
|
|
2063
2066
|
}
|
|
2064
2067
|
},
|
|
2065
|
-
"description": "
|
|
2068
|
+
"description": "Export (download) a release to a local file",
|
|
2066
2069
|
"examples": [
|
|
2067
|
-
"$ xano release
|
|
2068
|
-
"$ xano release
|
|
2070
|
+
"$ xano release export v1.0\nDownloaded release 'v1.0' to ./release-v1.0.tar.gz\n",
|
|
2071
|
+
"$ xano release export v1.0 --output ./backups/my-release.tar.gz",
|
|
2072
|
+
"$ xano release export v1.0 -o json"
|
|
2069
2073
|
],
|
|
2070
2074
|
"flags": {
|
|
2071
2075
|
"profile": {
|
|
@@ -2082,33 +2086,15 @@
|
|
|
2082
2086
|
"char": "v",
|
|
2083
2087
|
"description": "Show detailed request/response information",
|
|
2084
2088
|
"env": "XANO_VERBOSE",
|
|
2085
|
-
"name": "verbose",
|
|
2086
|
-
"required": false,
|
|
2087
|
-
"allowNo": false,
|
|
2088
|
-
"type": "boolean"
|
|
2089
|
-
},
|
|
2090
|
-
"description": {
|
|
2091
|
-
"char": "d",
|
|
2092
|
-
"description": "New description",
|
|
2093
|
-
"name": "description",
|
|
2094
|
-
"required": false,
|
|
2095
|
-
"hasDynamicHelp": false,
|
|
2096
|
-
"multiple": false,
|
|
2097
|
-
"type": "option"
|
|
2098
|
-
},
|
|
2099
|
-
"name": {
|
|
2100
|
-
"char": "n",
|
|
2101
|
-
"description": "New name for the release",
|
|
2102
|
-
"name": "name",
|
|
2089
|
+
"name": "verbose",
|
|
2103
2090
|
"required": false,
|
|
2104
|
-
"
|
|
2105
|
-
"
|
|
2106
|
-
"type": "option"
|
|
2091
|
+
"allowNo": false,
|
|
2092
|
+
"type": "boolean"
|
|
2107
2093
|
},
|
|
2108
|
-
"
|
|
2094
|
+
"format": {
|
|
2109
2095
|
"char": "o",
|
|
2110
2096
|
"description": "Output format",
|
|
2111
|
-
"name": "
|
|
2097
|
+
"name": "format",
|
|
2112
2098
|
"required": false,
|
|
2113
2099
|
"default": "summary",
|
|
2114
2100
|
"hasDynamicHelp": false,
|
|
@@ -2119,6 +2105,14 @@
|
|
|
2119
2105
|
],
|
|
2120
2106
|
"type": "option"
|
|
2121
2107
|
},
|
|
2108
|
+
"output": {
|
|
2109
|
+
"description": "Output file path (defaults to ./release-{name}.tar.gz)",
|
|
2110
|
+
"name": "output",
|
|
2111
|
+
"required": false,
|
|
2112
|
+
"hasDynamicHelp": false,
|
|
2113
|
+
"multiple": false,
|
|
2114
|
+
"type": "option"
|
|
2115
|
+
},
|
|
2122
2116
|
"workspace": {
|
|
2123
2117
|
"char": "w",
|
|
2124
2118
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2131,7 +2125,7 @@
|
|
|
2131
2125
|
},
|
|
2132
2126
|
"hasDynamicHelp": false,
|
|
2133
2127
|
"hiddenAliases": [],
|
|
2134
|
-
"id": "release:
|
|
2128
|
+
"id": "release:export",
|
|
2135
2129
|
"pluginAlias": "@xano/cli",
|
|
2136
2130
|
"pluginName": "@xano/cli",
|
|
2137
2131
|
"pluginType": "core",
|
|
@@ -2142,17 +2136,23 @@
|
|
|
2142
2136
|
"dist",
|
|
2143
2137
|
"commands",
|
|
2144
2138
|
"release",
|
|
2145
|
-
"
|
|
2139
|
+
"export",
|
|
2146
2140
|
"index.js"
|
|
2147
2141
|
]
|
|
2148
2142
|
},
|
|
2149
|
-
"release:
|
|
2143
|
+
"release:get": {
|
|
2150
2144
|
"aliases": [],
|
|
2151
|
-
"args": {
|
|
2152
|
-
|
|
2145
|
+
"args": {
|
|
2146
|
+
"release_name": {
|
|
2147
|
+
"description": "Release name to retrieve",
|
|
2148
|
+
"name": "release_name",
|
|
2149
|
+
"required": true
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
"description": "Get details of a specific release",
|
|
2153
2153
|
"examples": [
|
|
2154
|
-
"$ xano release
|
|
2155
|
-
"$ xano release
|
|
2154
|
+
"$ xano release get v1.0\nRelease: v1.0 - ID: 10\n Branch: main\n Description: Initial release\n Hotfix: false\n",
|
|
2155
|
+
"$ xano release get v1.0 -w 5 -o json"
|
|
2156
2156
|
],
|
|
2157
2157
|
"flags": {
|
|
2158
2158
|
"profile": {
|
|
@@ -2200,7 +2200,7 @@
|
|
|
2200
2200
|
},
|
|
2201
2201
|
"hasDynamicHelp": false,
|
|
2202
2202
|
"hiddenAliases": [],
|
|
2203
|
-
"id": "release:
|
|
2203
|
+
"id": "release:get",
|
|
2204
2204
|
"pluginAlias": "@xano/cli",
|
|
2205
2205
|
"pluginName": "@xano/cli",
|
|
2206
2206
|
"pluginType": "core",
|
|
@@ -2211,7 +2211,7 @@
|
|
|
2211
2211
|
"dist",
|
|
2212
2212
|
"commands",
|
|
2213
2213
|
"release",
|
|
2214
|
-
"
|
|
2214
|
+
"get",
|
|
2215
2215
|
"index.js"
|
|
2216
2216
|
]
|
|
2217
2217
|
},
|
|
@@ -2418,6 +2418,146 @@
|
|
|
2418
2418
|
"index.js"
|
|
2419
2419
|
]
|
|
2420
2420
|
},
|
|
2421
|
+
"tenant:create": {
|
|
2422
|
+
"aliases": [],
|
|
2423
|
+
"args": {
|
|
2424
|
+
"display": {
|
|
2425
|
+
"description": "Display name for the tenant",
|
|
2426
|
+
"name": "display",
|
|
2427
|
+
"required": true
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
"description": "Create a new tenant in a workspace",
|
|
2431
|
+
"examples": [
|
|
2432
|
+
"$ xano tenant create \"Production\"\nCreated tenant: Production (production) - ID: 42\n",
|
|
2433
|
+
"$ xano tenant create \"Staging\" --description \"Staging env\" --cluster_id 1 --platform_id 1 --license tier2 -o json"
|
|
2434
|
+
],
|
|
2435
|
+
"flags": {
|
|
2436
|
+
"profile": {
|
|
2437
|
+
"char": "p",
|
|
2438
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2439
|
+
"env": "XANO_PROFILE",
|
|
2440
|
+
"name": "profile",
|
|
2441
|
+
"required": false,
|
|
2442
|
+
"hasDynamicHelp": false,
|
|
2443
|
+
"multiple": false,
|
|
2444
|
+
"type": "option"
|
|
2445
|
+
},
|
|
2446
|
+
"verbose": {
|
|
2447
|
+
"char": "v",
|
|
2448
|
+
"description": "Show detailed request/response information",
|
|
2449
|
+
"env": "XANO_VERBOSE",
|
|
2450
|
+
"name": "verbose",
|
|
2451
|
+
"required": false,
|
|
2452
|
+
"allowNo": false,
|
|
2453
|
+
"type": "boolean"
|
|
2454
|
+
},
|
|
2455
|
+
"cluster_id": {
|
|
2456
|
+
"description": "Cluster ID to deploy to (required for tier2/tier3)",
|
|
2457
|
+
"name": "cluster_id",
|
|
2458
|
+
"required": false,
|
|
2459
|
+
"hasDynamicHelp": false,
|
|
2460
|
+
"multiple": false,
|
|
2461
|
+
"type": "option"
|
|
2462
|
+
},
|
|
2463
|
+
"description": {
|
|
2464
|
+
"char": "d",
|
|
2465
|
+
"description": "Tenant description",
|
|
2466
|
+
"name": "description",
|
|
2467
|
+
"required": false,
|
|
2468
|
+
"hasDynamicHelp": false,
|
|
2469
|
+
"multiple": false,
|
|
2470
|
+
"type": "option"
|
|
2471
|
+
},
|
|
2472
|
+
"domain": {
|
|
2473
|
+
"description": "Custom domain for the tenant",
|
|
2474
|
+
"name": "domain",
|
|
2475
|
+
"required": false,
|
|
2476
|
+
"hasDynamicHelp": false,
|
|
2477
|
+
"multiple": false,
|
|
2478
|
+
"type": "option"
|
|
2479
|
+
},
|
|
2480
|
+
"ephemeral": {
|
|
2481
|
+
"description": "Mark tenant as ephemeral (allows push operations)",
|
|
2482
|
+
"name": "ephemeral",
|
|
2483
|
+
"allowNo": false,
|
|
2484
|
+
"type": "boolean"
|
|
2485
|
+
},
|
|
2486
|
+
"ingress": {
|
|
2487
|
+
"description": "Enable ingress",
|
|
2488
|
+
"name": "ingress",
|
|
2489
|
+
"allowNo": true,
|
|
2490
|
+
"type": "boolean"
|
|
2491
|
+
},
|
|
2492
|
+
"license": {
|
|
2493
|
+
"description": "License tier",
|
|
2494
|
+
"name": "license",
|
|
2495
|
+
"required": false,
|
|
2496
|
+
"default": "tier1",
|
|
2497
|
+
"hasDynamicHelp": false,
|
|
2498
|
+
"multiple": false,
|
|
2499
|
+
"options": [
|
|
2500
|
+
"tier1",
|
|
2501
|
+
"tier2",
|
|
2502
|
+
"tier3"
|
|
2503
|
+
],
|
|
2504
|
+
"type": "option"
|
|
2505
|
+
},
|
|
2506
|
+
"output": {
|
|
2507
|
+
"char": "o",
|
|
2508
|
+
"description": "Output format",
|
|
2509
|
+
"name": "output",
|
|
2510
|
+
"required": false,
|
|
2511
|
+
"default": "summary",
|
|
2512
|
+
"hasDynamicHelp": false,
|
|
2513
|
+
"multiple": false,
|
|
2514
|
+
"options": [
|
|
2515
|
+
"summary",
|
|
2516
|
+
"json"
|
|
2517
|
+
],
|
|
2518
|
+
"type": "option"
|
|
2519
|
+
},
|
|
2520
|
+
"platform_id": {
|
|
2521
|
+
"description": "Platform ID to use",
|
|
2522
|
+
"name": "platform_id",
|
|
2523
|
+
"required": false,
|
|
2524
|
+
"hasDynamicHelp": false,
|
|
2525
|
+
"multiple": false,
|
|
2526
|
+
"type": "option"
|
|
2527
|
+
},
|
|
2528
|
+
"tasks": {
|
|
2529
|
+
"description": "Enable background tasks",
|
|
2530
|
+
"name": "tasks",
|
|
2531
|
+
"allowNo": true,
|
|
2532
|
+
"type": "boolean"
|
|
2533
|
+
},
|
|
2534
|
+
"workspace": {
|
|
2535
|
+
"char": "w",
|
|
2536
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2537
|
+
"name": "workspace",
|
|
2538
|
+
"required": false,
|
|
2539
|
+
"hasDynamicHelp": false,
|
|
2540
|
+
"multiple": false,
|
|
2541
|
+
"type": "option"
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2544
|
+
"hasDynamicHelp": false,
|
|
2545
|
+
"hiddenAliases": [],
|
|
2546
|
+
"id": "tenant:create",
|
|
2547
|
+
"pluginAlias": "@xano/cli",
|
|
2548
|
+
"pluginName": "@xano/cli",
|
|
2549
|
+
"pluginType": "core",
|
|
2550
|
+
"strict": true,
|
|
2551
|
+
"enableJsonFlag": false,
|
|
2552
|
+
"isESM": true,
|
|
2553
|
+
"relativePath": [
|
|
2554
|
+
"dist",
|
|
2555
|
+
"commands",
|
|
2556
|
+
"tenant",
|
|
2557
|
+
"create",
|
|
2558
|
+
"index.js"
|
|
2559
|
+
]
|
|
2560
|
+
},
|
|
2421
2561
|
"static_host:list": {
|
|
2422
2562
|
"aliases": [],
|
|
2423
2563
|
"args": {},
|
|
@@ -2507,19 +2647,20 @@
|
|
|
2507
2647
|
"index.js"
|
|
2508
2648
|
]
|
|
2509
2649
|
},
|
|
2510
|
-
"tenant:
|
|
2650
|
+
"tenant:delete": {
|
|
2511
2651
|
"aliases": [],
|
|
2512
2652
|
"args": {
|
|
2513
|
-
"
|
|
2514
|
-
"description": "
|
|
2515
|
-
"name": "
|
|
2653
|
+
"tenant_name": {
|
|
2654
|
+
"description": "Tenant name to delete",
|
|
2655
|
+
"name": "tenant_name",
|
|
2516
2656
|
"required": true
|
|
2517
2657
|
}
|
|
2518
2658
|
},
|
|
2519
|
-
"description": "
|
|
2659
|
+
"description": "Delete a tenant permanently. This destroys all associated infrastructure and cannot be undone.",
|
|
2520
2660
|
"examples": [
|
|
2521
|
-
"$ xano tenant
|
|
2522
|
-
"$ xano tenant
|
|
2661
|
+
"$ xano tenant delete t1234-abcd-xyz1\nAre you sure you want to delete tenant t1234-abcd-xyz1? This action cannot be undone. (y/N) y\nDeleted tenant t1234-abcd-xyz1\n",
|
|
2662
|
+
"$ xano tenant delete t1234-abcd-xyz1 --force\nDeleted tenant t1234-abcd-xyz1\n",
|
|
2663
|
+
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
2523
2664
|
],
|
|
2524
2665
|
"flags": {
|
|
2525
2666
|
"profile": {
|
|
@@ -2541,57 +2682,89 @@
|
|
|
2541
2682
|
"allowNo": false,
|
|
2542
2683
|
"type": "boolean"
|
|
2543
2684
|
},
|
|
2544
|
-
"
|
|
2545
|
-
"
|
|
2546
|
-
"
|
|
2685
|
+
"force": {
|
|
2686
|
+
"char": "f",
|
|
2687
|
+
"description": "Skip confirmation prompt",
|
|
2688
|
+
"name": "force",
|
|
2689
|
+
"required": false,
|
|
2690
|
+
"allowNo": false,
|
|
2691
|
+
"type": "boolean"
|
|
2692
|
+
},
|
|
2693
|
+
"output": {
|
|
2694
|
+
"char": "o",
|
|
2695
|
+
"description": "Output format",
|
|
2696
|
+
"name": "output",
|
|
2547
2697
|
"required": false,
|
|
2698
|
+
"default": "summary",
|
|
2548
2699
|
"hasDynamicHelp": false,
|
|
2549
2700
|
"multiple": false,
|
|
2701
|
+
"options": [
|
|
2702
|
+
"summary",
|
|
2703
|
+
"json"
|
|
2704
|
+
],
|
|
2550
2705
|
"type": "option"
|
|
2551
2706
|
},
|
|
2552
|
-
"
|
|
2553
|
-
"char": "
|
|
2554
|
-
"description": "
|
|
2555
|
-
"name": "
|
|
2707
|
+
"workspace": {
|
|
2708
|
+
"char": "w",
|
|
2709
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2710
|
+
"name": "workspace",
|
|
2711
|
+
"required": false,
|
|
2712
|
+
"hasDynamicHelp": false,
|
|
2713
|
+
"multiple": false,
|
|
2714
|
+
"type": "option"
|
|
2715
|
+
}
|
|
2716
|
+
},
|
|
2717
|
+
"hasDynamicHelp": false,
|
|
2718
|
+
"hiddenAliases": [],
|
|
2719
|
+
"id": "tenant:delete",
|
|
2720
|
+
"pluginAlias": "@xano/cli",
|
|
2721
|
+
"pluginName": "@xano/cli",
|
|
2722
|
+
"pluginType": "core",
|
|
2723
|
+
"strict": true,
|
|
2724
|
+
"enableJsonFlag": false,
|
|
2725
|
+
"isESM": true,
|
|
2726
|
+
"relativePath": [
|
|
2727
|
+
"dist",
|
|
2728
|
+
"commands",
|
|
2729
|
+
"tenant",
|
|
2730
|
+
"delete",
|
|
2731
|
+
"index.js"
|
|
2732
|
+
]
|
|
2733
|
+
},
|
|
2734
|
+
"tenant:deploy_platform": {
|
|
2735
|
+
"aliases": [],
|
|
2736
|
+
"args": {
|
|
2737
|
+
"tenant_name": {
|
|
2738
|
+
"description": "Tenant name to deploy to",
|
|
2739
|
+
"name": "tenant_name",
|
|
2740
|
+
"required": true
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2743
|
+
"description": "Deploy a platform version to a tenant",
|
|
2744
|
+
"examples": [
|
|
2745
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
2746
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
|
|
2747
|
+
],
|
|
2748
|
+
"flags": {
|
|
2749
|
+
"profile": {
|
|
2750
|
+
"char": "p",
|
|
2751
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2752
|
+
"env": "XANO_PROFILE",
|
|
2753
|
+
"name": "profile",
|
|
2556
2754
|
"required": false,
|
|
2557
2755
|
"hasDynamicHelp": false,
|
|
2558
2756
|
"multiple": false,
|
|
2559
2757
|
"type": "option"
|
|
2560
2758
|
},
|
|
2561
|
-
"
|
|
2562
|
-
"
|
|
2563
|
-
"
|
|
2759
|
+
"verbose": {
|
|
2760
|
+
"char": "v",
|
|
2761
|
+
"description": "Show detailed request/response information",
|
|
2762
|
+
"env": "XANO_VERBOSE",
|
|
2763
|
+
"name": "verbose",
|
|
2564
2764
|
"required": false,
|
|
2565
|
-
"hasDynamicHelp": false,
|
|
2566
|
-
"multiple": false,
|
|
2567
|
-
"type": "option"
|
|
2568
|
-
},
|
|
2569
|
-
"ephemeral": {
|
|
2570
|
-
"description": "Mark tenant as ephemeral (allows push operations)",
|
|
2571
|
-
"name": "ephemeral",
|
|
2572
2765
|
"allowNo": false,
|
|
2573
2766
|
"type": "boolean"
|
|
2574
2767
|
},
|
|
2575
|
-
"ingress": {
|
|
2576
|
-
"description": "Enable ingress",
|
|
2577
|
-
"name": "ingress",
|
|
2578
|
-
"allowNo": true,
|
|
2579
|
-
"type": "boolean"
|
|
2580
|
-
},
|
|
2581
|
-
"license": {
|
|
2582
|
-
"description": "License tier",
|
|
2583
|
-
"name": "license",
|
|
2584
|
-
"required": false,
|
|
2585
|
-
"default": "tier1",
|
|
2586
|
-
"hasDynamicHelp": false,
|
|
2587
|
-
"multiple": false,
|
|
2588
|
-
"options": [
|
|
2589
|
-
"tier1",
|
|
2590
|
-
"tier2",
|
|
2591
|
-
"tier3"
|
|
2592
|
-
],
|
|
2593
|
-
"type": "option"
|
|
2594
|
-
},
|
|
2595
2768
|
"output": {
|
|
2596
2769
|
"char": "o",
|
|
2597
2770
|
"description": "Output format",
|
|
@@ -2607,19 +2780,13 @@
|
|
|
2607
2780
|
"type": "option"
|
|
2608
2781
|
},
|
|
2609
2782
|
"platform_id": {
|
|
2610
|
-
"description": "Platform ID to
|
|
2783
|
+
"description": "Platform ID to deploy",
|
|
2611
2784
|
"name": "platform_id",
|
|
2612
|
-
"required":
|
|
2785
|
+
"required": true,
|
|
2613
2786
|
"hasDynamicHelp": false,
|
|
2614
2787
|
"multiple": false,
|
|
2615
2788
|
"type": "option"
|
|
2616
2789
|
},
|
|
2617
|
-
"tasks": {
|
|
2618
|
-
"description": "Enable background tasks",
|
|
2619
|
-
"name": "tasks",
|
|
2620
|
-
"allowNo": true,
|
|
2621
|
-
"type": "boolean"
|
|
2622
|
-
},
|
|
2623
2790
|
"workspace": {
|
|
2624
2791
|
"char": "w",
|
|
2625
2792
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2632,7 +2799,7 @@
|
|
|
2632
2799
|
},
|
|
2633
2800
|
"hasDynamicHelp": false,
|
|
2634
2801
|
"hiddenAliases": [],
|
|
2635
|
-
"id": "tenant:
|
|
2802
|
+
"id": "tenant:deploy_platform",
|
|
2636
2803
|
"pluginAlias": "@xano/cli",
|
|
2637
2804
|
"pluginName": "@xano/cli",
|
|
2638
2805
|
"pluginType": "core",
|
|
@@ -2643,7 +2810,7 @@
|
|
|
2643
2810
|
"dist",
|
|
2644
2811
|
"commands",
|
|
2645
2812
|
"tenant",
|
|
2646
|
-
"
|
|
2813
|
+
"deploy_platform",
|
|
2647
2814
|
"index.js"
|
|
2648
2815
|
]
|
|
2649
2816
|
},
|
|
@@ -2731,19 +2898,19 @@
|
|
|
2731
2898
|
"index.js"
|
|
2732
2899
|
]
|
|
2733
2900
|
},
|
|
2734
|
-
"tenant:
|
|
2901
|
+
"tenant:get": {
|
|
2735
2902
|
"aliases": [],
|
|
2736
2903
|
"args": {
|
|
2737
2904
|
"tenant_name": {
|
|
2738
|
-
"description": "Tenant name to
|
|
2905
|
+
"description": "Tenant name to retrieve",
|
|
2739
2906
|
"name": "tenant_name",
|
|
2740
2907
|
"required": true
|
|
2741
2908
|
}
|
|
2742
2909
|
},
|
|
2743
|
-
"description": "
|
|
2910
|
+
"description": "Get details of a specific tenant",
|
|
2744
2911
|
"examples": [
|
|
2745
|
-
"$ xano tenant
|
|
2746
|
-
"$ xano tenant
|
|
2912
|
+
"$ 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",
|
|
2913
|
+
"$ xano tenant get t1234-abcd-xyz1 -w 5 -o json"
|
|
2747
2914
|
],
|
|
2748
2915
|
"flags": {
|
|
2749
2916
|
"profile": {
|
|
@@ -2765,38 +2932,6 @@
|
|
|
2765
2932
|
"allowNo": false,
|
|
2766
2933
|
"type": "boolean"
|
|
2767
2934
|
},
|
|
2768
|
-
"description": {
|
|
2769
|
-
"char": "d",
|
|
2770
|
-
"description": "New description",
|
|
2771
|
-
"name": "description",
|
|
2772
|
-
"required": false,
|
|
2773
|
-
"hasDynamicHelp": false,
|
|
2774
|
-
"multiple": false,
|
|
2775
|
-
"type": "option"
|
|
2776
|
-
},
|
|
2777
|
-
"display": {
|
|
2778
|
-
"description": "New display name",
|
|
2779
|
-
"name": "display",
|
|
2780
|
-
"required": false,
|
|
2781
|
-
"hasDynamicHelp": false,
|
|
2782
|
-
"multiple": false,
|
|
2783
|
-
"type": "option"
|
|
2784
|
-
},
|
|
2785
|
-
"domain": {
|
|
2786
|
-
"description": "Custom domain",
|
|
2787
|
-
"name": "domain",
|
|
2788
|
-
"required": false,
|
|
2789
|
-
"hasDynamicHelp": false,
|
|
2790
|
-
"multiple": false,
|
|
2791
|
-
"type": "option"
|
|
2792
|
-
},
|
|
2793
|
-
"ingress": {
|
|
2794
|
-
"description": "Enable/disable ingress",
|
|
2795
|
-
"name": "ingress",
|
|
2796
|
-
"required": false,
|
|
2797
|
-
"allowNo": true,
|
|
2798
|
-
"type": "boolean"
|
|
2799
|
-
},
|
|
2800
2935
|
"output": {
|
|
2801
2936
|
"char": "o",
|
|
2802
2937
|
"description": "Output format",
|
|
@@ -2811,28 +2946,6 @@
|
|
|
2811
2946
|
],
|
|
2812
2947
|
"type": "option"
|
|
2813
2948
|
},
|
|
2814
|
-
"proxy": {
|
|
2815
|
-
"description": "Proxy URL",
|
|
2816
|
-
"name": "proxy",
|
|
2817
|
-
"required": false,
|
|
2818
|
-
"hasDynamicHelp": false,
|
|
2819
|
-
"multiple": false,
|
|
2820
|
-
"type": "option"
|
|
2821
|
-
},
|
|
2822
|
-
"rbac": {
|
|
2823
|
-
"description": "Enable/disable RBAC",
|
|
2824
|
-
"name": "rbac",
|
|
2825
|
-
"required": false,
|
|
2826
|
-
"allowNo": true,
|
|
2827
|
-
"type": "boolean"
|
|
2828
|
-
},
|
|
2829
|
-
"tasks": {
|
|
2830
|
-
"description": "Enable/disable background tasks",
|
|
2831
|
-
"name": "tasks",
|
|
2832
|
-
"required": false,
|
|
2833
|
-
"allowNo": true,
|
|
2834
|
-
"type": "boolean"
|
|
2835
|
-
},
|
|
2836
2949
|
"workspace": {
|
|
2837
2950
|
"char": "w",
|
|
2838
2951
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2845,7 +2958,7 @@
|
|
|
2845
2958
|
},
|
|
2846
2959
|
"hasDynamicHelp": false,
|
|
2847
2960
|
"hiddenAliases": [],
|
|
2848
|
-
"id": "tenant:
|
|
2961
|
+
"id": "tenant:get",
|
|
2849
2962
|
"pluginAlias": "@xano/cli",
|
|
2850
2963
|
"pluginName": "@xano/cli",
|
|
2851
2964
|
"pluginType": "core",
|
|
@@ -2856,24 +2969,23 @@
|
|
|
2856
2969
|
"dist",
|
|
2857
2970
|
"commands",
|
|
2858
2971
|
"tenant",
|
|
2859
|
-
"
|
|
2972
|
+
"get",
|
|
2860
2973
|
"index.js"
|
|
2861
2974
|
]
|
|
2862
2975
|
},
|
|
2863
|
-
"tenant:
|
|
2976
|
+
"tenant:impersonate": {
|
|
2864
2977
|
"aliases": [],
|
|
2865
2978
|
"args": {
|
|
2866
2979
|
"tenant_name": {
|
|
2867
|
-
"description": "Tenant name to
|
|
2980
|
+
"description": "Tenant name to impersonate",
|
|
2868
2981
|
"name": "tenant_name",
|
|
2869
2982
|
"required": true
|
|
2870
2983
|
}
|
|
2871
2984
|
},
|
|
2872
|
-
"description": "
|
|
2985
|
+
"description": "Impersonate a tenant and open it in the browser",
|
|
2873
2986
|
"examples": [
|
|
2874
|
-
"$ xano tenant
|
|
2875
|
-
"$ xano tenant
|
|
2876
|
-
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
2987
|
+
"$ xano tenant impersonate my-tenant\nOpening browser...\nImpersonation successful!\n",
|
|
2988
|
+
"$ xano tenant impersonate my-tenant -o json"
|
|
2877
2989
|
],
|
|
2878
2990
|
"flags": {
|
|
2879
2991
|
"profile": {
|
|
@@ -2895,14 +3007,6 @@
|
|
|
2895
3007
|
"allowNo": false,
|
|
2896
3008
|
"type": "boolean"
|
|
2897
3009
|
},
|
|
2898
|
-
"force": {
|
|
2899
|
-
"char": "f",
|
|
2900
|
-
"description": "Skip confirmation prompt",
|
|
2901
|
-
"name": "force",
|
|
2902
|
-
"required": false,
|
|
2903
|
-
"allowNo": false,
|
|
2904
|
-
"type": "boolean"
|
|
2905
|
-
},
|
|
2906
3010
|
"output": {
|
|
2907
3011
|
"char": "o",
|
|
2908
3012
|
"description": "Output format",
|
|
@@ -2917,6 +3021,14 @@
|
|
|
2917
3021
|
],
|
|
2918
3022
|
"type": "option"
|
|
2919
3023
|
},
|
|
3024
|
+
"url-only": {
|
|
3025
|
+
"char": "u",
|
|
3026
|
+
"description": "Print the URL without opening the browser",
|
|
3027
|
+
"name": "url-only",
|
|
3028
|
+
"required": false,
|
|
3029
|
+
"allowNo": false,
|
|
3030
|
+
"type": "boolean"
|
|
3031
|
+
},
|
|
2920
3032
|
"workspace": {
|
|
2921
3033
|
"char": "w",
|
|
2922
3034
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2929,7 +3041,7 @@
|
|
|
2929
3041
|
},
|
|
2930
3042
|
"hasDynamicHelp": false,
|
|
2931
3043
|
"hiddenAliases": [],
|
|
2932
|
-
"id": "tenant:
|
|
3044
|
+
"id": "tenant:impersonate",
|
|
2933
3045
|
"pluginAlias": "@xano/cli",
|
|
2934
3046
|
"pluginName": "@xano/cli",
|
|
2935
3047
|
"pluginType": "core",
|
|
@@ -2940,23 +3052,25 @@
|
|
|
2940
3052
|
"dist",
|
|
2941
3053
|
"commands",
|
|
2942
3054
|
"tenant",
|
|
2943
|
-
"
|
|
3055
|
+
"impersonate",
|
|
2944
3056
|
"index.js"
|
|
2945
3057
|
]
|
|
2946
3058
|
},
|
|
2947
|
-
"tenant:
|
|
3059
|
+
"tenant:pull": {
|
|
2948
3060
|
"aliases": [],
|
|
2949
3061
|
"args": {
|
|
2950
|
-
"
|
|
2951
|
-
"description": "
|
|
2952
|
-
"name": "
|
|
3062
|
+
"directory": {
|
|
3063
|
+
"description": "Output directory for pulled documents",
|
|
3064
|
+
"name": "directory",
|
|
2953
3065
|
"required": true
|
|
2954
3066
|
}
|
|
2955
3067
|
},
|
|
2956
|
-
"description": "
|
|
3068
|
+
"description": "Pull a tenant multidoc from the Xano Metadata API and split into individual files",
|
|
2957
3069
|
"examples": [
|
|
2958
|
-
"$ xano tenant
|
|
2959
|
-
"$ xano tenant
|
|
3070
|
+
"$ xano tenant pull ./my-tenant -t my-tenant\nPulled 42 documents from tenant my-tenant to ./my-tenant\n",
|
|
3071
|
+
"$ xano tenant pull ./output -t my-tenant -w 40\nPulled 15 documents from tenant my-tenant to ./output\n",
|
|
3072
|
+
"$ xano tenant pull ./backup -t my-tenant --profile production --env --records\nPulled 58 documents from tenant my-tenant to ./backup\n",
|
|
3073
|
+
"$ xano tenant pull ./my-tenant -t my-tenant --draft\nPulled 42 documents from tenant my-tenant to ./my-tenant\n"
|
|
2960
3074
|
],
|
|
2961
3075
|
"flags": {
|
|
2962
3076
|
"profile": {
|
|
@@ -2978,23 +3092,31 @@
|
|
|
2978
3092
|
"allowNo": false,
|
|
2979
3093
|
"type": "boolean"
|
|
2980
3094
|
},
|
|
2981
|
-
"
|
|
2982
|
-
"
|
|
2983
|
-
"
|
|
2984
|
-
"name": "output",
|
|
3095
|
+
"draft": {
|
|
3096
|
+
"description": "Include draft versions",
|
|
3097
|
+
"name": "draft",
|
|
2985
3098
|
"required": false,
|
|
2986
|
-
"
|
|
2987
|
-
"
|
|
2988
|
-
"multiple": false,
|
|
2989
|
-
"options": [
|
|
2990
|
-
"summary",
|
|
2991
|
-
"json"
|
|
2992
|
-
],
|
|
2993
|
-
"type": "option"
|
|
3099
|
+
"allowNo": false,
|
|
3100
|
+
"type": "boolean"
|
|
2994
3101
|
},
|
|
2995
|
-
"
|
|
2996
|
-
"description": "
|
|
2997
|
-
"name": "
|
|
3102
|
+
"env": {
|
|
3103
|
+
"description": "Include environment variables",
|
|
3104
|
+
"name": "env",
|
|
3105
|
+
"required": false,
|
|
3106
|
+
"allowNo": false,
|
|
3107
|
+
"type": "boolean"
|
|
3108
|
+
},
|
|
3109
|
+
"records": {
|
|
3110
|
+
"description": "Include records",
|
|
3111
|
+
"name": "records",
|
|
3112
|
+
"required": false,
|
|
3113
|
+
"allowNo": false,
|
|
3114
|
+
"type": "boolean"
|
|
3115
|
+
},
|
|
3116
|
+
"tenant": {
|
|
3117
|
+
"char": "t",
|
|
3118
|
+
"description": "Tenant name to pull from",
|
|
3119
|
+
"name": "tenant",
|
|
2998
3120
|
"required": true,
|
|
2999
3121
|
"hasDynamicHelp": false,
|
|
3000
3122
|
"multiple": false,
|
|
@@ -3002,7 +3124,7 @@
|
|
|
3002
3124
|
},
|
|
3003
3125
|
"workspace": {
|
|
3004
3126
|
"char": "w",
|
|
3005
|
-
"description": "Workspace ID (
|
|
3127
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
3006
3128
|
"name": "workspace",
|
|
3007
3129
|
"required": false,
|
|
3008
3130
|
"hasDynamicHelp": false,
|
|
@@ -3012,7 +3134,7 @@
|
|
|
3012
3134
|
},
|
|
3013
3135
|
"hasDynamicHelp": false,
|
|
3014
3136
|
"hiddenAliases": [],
|
|
3015
|
-
"id": "tenant:
|
|
3137
|
+
"id": "tenant:pull",
|
|
3016
3138
|
"pluginAlias": "@xano/cli",
|
|
3017
3139
|
"pluginName": "@xano/cli",
|
|
3018
3140
|
"pluginType": "core",
|
|
@@ -3023,23 +3145,23 @@
|
|
|
3023
3145
|
"dist",
|
|
3024
3146
|
"commands",
|
|
3025
3147
|
"tenant",
|
|
3026
|
-
"
|
|
3148
|
+
"pull",
|
|
3027
3149
|
"index.js"
|
|
3028
3150
|
]
|
|
3029
3151
|
},
|
|
3030
|
-
"tenant:
|
|
3152
|
+
"tenant:edit": {
|
|
3031
3153
|
"aliases": [],
|
|
3032
3154
|
"args": {
|
|
3033
3155
|
"tenant_name": {
|
|
3034
|
-
"description": "Tenant name to
|
|
3156
|
+
"description": "Tenant name to edit",
|
|
3035
3157
|
"name": "tenant_name",
|
|
3036
3158
|
"required": true
|
|
3037
3159
|
}
|
|
3038
3160
|
},
|
|
3039
|
-
"description": "
|
|
3161
|
+
"description": "Edit an existing tenant",
|
|
3040
3162
|
"examples": [
|
|
3041
|
-
"$ xano tenant
|
|
3042
|
-
"$ xano tenant
|
|
3163
|
+
"$ xano tenant edit t1234-abcd-xyz1 --display \"New Name\" --description \"Updated description\"\nUpdated tenant: New Name (my-tenant) - ID: 42\n",
|
|
3164
|
+
"$ xano tenant edit t1234-abcd-xyz1 --no-tasks --no-ingress -o json"
|
|
3043
3165
|
],
|
|
3044
3166
|
"flags": {
|
|
3045
3167
|
"profile": {
|
|
@@ -3052,13 +3174,45 @@
|
|
|
3052
3174
|
"multiple": false,
|
|
3053
3175
|
"type": "option"
|
|
3054
3176
|
},
|
|
3055
|
-
"verbose": {
|
|
3056
|
-
"char": "v",
|
|
3057
|
-
"description": "Show detailed request/response information",
|
|
3058
|
-
"env": "XANO_VERBOSE",
|
|
3059
|
-
"name": "verbose",
|
|
3177
|
+
"verbose": {
|
|
3178
|
+
"char": "v",
|
|
3179
|
+
"description": "Show detailed request/response information",
|
|
3180
|
+
"env": "XANO_VERBOSE",
|
|
3181
|
+
"name": "verbose",
|
|
3182
|
+
"required": false,
|
|
3183
|
+
"allowNo": false,
|
|
3184
|
+
"type": "boolean"
|
|
3185
|
+
},
|
|
3186
|
+
"description": {
|
|
3187
|
+
"char": "d",
|
|
3188
|
+
"description": "New description",
|
|
3189
|
+
"name": "description",
|
|
3190
|
+
"required": false,
|
|
3191
|
+
"hasDynamicHelp": false,
|
|
3192
|
+
"multiple": false,
|
|
3193
|
+
"type": "option"
|
|
3194
|
+
},
|
|
3195
|
+
"display": {
|
|
3196
|
+
"description": "New display name",
|
|
3197
|
+
"name": "display",
|
|
3198
|
+
"required": false,
|
|
3199
|
+
"hasDynamicHelp": false,
|
|
3200
|
+
"multiple": false,
|
|
3201
|
+
"type": "option"
|
|
3202
|
+
},
|
|
3203
|
+
"domain": {
|
|
3204
|
+
"description": "Custom domain",
|
|
3205
|
+
"name": "domain",
|
|
3060
3206
|
"required": false,
|
|
3061
|
-
"
|
|
3207
|
+
"hasDynamicHelp": false,
|
|
3208
|
+
"multiple": false,
|
|
3209
|
+
"type": "option"
|
|
3210
|
+
},
|
|
3211
|
+
"ingress": {
|
|
3212
|
+
"description": "Enable/disable ingress",
|
|
3213
|
+
"name": "ingress",
|
|
3214
|
+
"required": false,
|
|
3215
|
+
"allowNo": true,
|
|
3062
3216
|
"type": "boolean"
|
|
3063
3217
|
},
|
|
3064
3218
|
"output": {
|
|
@@ -3075,6 +3229,28 @@
|
|
|
3075
3229
|
],
|
|
3076
3230
|
"type": "option"
|
|
3077
3231
|
},
|
|
3232
|
+
"proxy": {
|
|
3233
|
+
"description": "Proxy URL",
|
|
3234
|
+
"name": "proxy",
|
|
3235
|
+
"required": false,
|
|
3236
|
+
"hasDynamicHelp": false,
|
|
3237
|
+
"multiple": false,
|
|
3238
|
+
"type": "option"
|
|
3239
|
+
},
|
|
3240
|
+
"rbac": {
|
|
3241
|
+
"description": "Enable/disable RBAC",
|
|
3242
|
+
"name": "rbac",
|
|
3243
|
+
"required": false,
|
|
3244
|
+
"allowNo": true,
|
|
3245
|
+
"type": "boolean"
|
|
3246
|
+
},
|
|
3247
|
+
"tasks": {
|
|
3248
|
+
"description": "Enable/disable background tasks",
|
|
3249
|
+
"name": "tasks",
|
|
3250
|
+
"required": false,
|
|
3251
|
+
"allowNo": true,
|
|
3252
|
+
"type": "boolean"
|
|
3253
|
+
},
|
|
3078
3254
|
"workspace": {
|
|
3079
3255
|
"char": "w",
|
|
3080
3256
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -3087,7 +3263,7 @@
|
|
|
3087
3263
|
},
|
|
3088
3264
|
"hasDynamicHelp": false,
|
|
3089
3265
|
"hiddenAliases": [],
|
|
3090
|
-
"id": "tenant:
|
|
3266
|
+
"id": "tenant:edit",
|
|
3091
3267
|
"pluginAlias": "@xano/cli",
|
|
3092
3268
|
"pluginName": "@xano/cli",
|
|
3093
3269
|
"pluginType": "core",
|
|
@@ -3098,7 +3274,7 @@
|
|
|
3098
3274
|
"dist",
|
|
3099
3275
|
"commands",
|
|
3100
3276
|
"tenant",
|
|
3101
|
-
"
|
|
3277
|
+
"edit",
|
|
3102
3278
|
"index.js"
|
|
3103
3279
|
]
|
|
3104
3280
|
},
|
|
@@ -3171,21 +3347,23 @@
|
|
|
3171
3347
|
"index.js"
|
|
3172
3348
|
]
|
|
3173
3349
|
},
|
|
3174
|
-
"tenant:
|
|
3350
|
+
"tenant:push": {
|
|
3175
3351
|
"aliases": [],
|
|
3176
3352
|
"args": {
|
|
3177
3353
|
"directory": {
|
|
3178
|
-
"description": "
|
|
3354
|
+
"description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
|
|
3179
3355
|
"name": "directory",
|
|
3180
3356
|
"required": true
|
|
3181
3357
|
}
|
|
3182
3358
|
},
|
|
3183
|
-
"description": "
|
|
3359
|
+
"description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
|
|
3184
3360
|
"examples": [
|
|
3185
|
-
"$ xano tenant
|
|
3186
|
-
"$ xano tenant
|
|
3187
|
-
"$ xano tenant
|
|
3188
|
-
"$ xano tenant
|
|
3361
|
+
"$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
|
|
3362
|
+
"$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
|
|
3363
|
+
"$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
|
|
3364
|
+
"$ xano tenant push ./my-workspace -t my-tenant --no-records\nPush schema only, skip importing table records\n",
|
|
3365
|
+
"$ xano tenant push ./my-workspace -t my-tenant --no-env\nPush without overwriting environment variables\n",
|
|
3366
|
+
"$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
|
|
3189
3367
|
],
|
|
3190
3368
|
"flags": {
|
|
3191
3369
|
"profile": {
|
|
@@ -3207,122 +3385,39 @@
|
|
|
3207
3385
|
"allowNo": false,
|
|
3208
3386
|
"type": "boolean"
|
|
3209
3387
|
},
|
|
3210
|
-
"draft": {
|
|
3211
|
-
"description": "Include draft versions",
|
|
3212
|
-
"name": "draft",
|
|
3213
|
-
"required": false,
|
|
3214
|
-
"allowNo": false,
|
|
3215
|
-
"type": "boolean"
|
|
3216
|
-
},
|
|
3217
3388
|
"env": {
|
|
3218
|
-
"description": "Include environment variables",
|
|
3389
|
+
"description": "Include environment variables in import (default: true, use --no-env to exclude)",
|
|
3219
3390
|
"name": "env",
|
|
3220
3391
|
"required": false,
|
|
3221
|
-
"allowNo":
|
|
3392
|
+
"allowNo": true,
|
|
3222
3393
|
"type": "boolean"
|
|
3223
3394
|
},
|
|
3224
3395
|
"records": {
|
|
3225
|
-
"description": "Include records",
|
|
3396
|
+
"description": "Include records in import (default: true, use --no-records to exclude)",
|
|
3226
3397
|
"name": "records",
|
|
3227
3398
|
"required": false,
|
|
3228
|
-
"allowNo":
|
|
3399
|
+
"allowNo": true,
|
|
3229
3400
|
"type": "boolean"
|
|
3230
3401
|
},
|
|
3231
3402
|
"tenant": {
|
|
3232
3403
|
"char": "t",
|
|
3233
|
-
"description": "Tenant name to
|
|
3404
|
+
"description": "Tenant name to push to",
|
|
3234
3405
|
"name": "tenant",
|
|
3235
3406
|
"required": true,
|
|
3236
3407
|
"hasDynamicHelp": false,
|
|
3237
3408
|
"multiple": false,
|
|
3238
3409
|
"type": "option"
|
|
3239
3410
|
},
|
|
3240
|
-
"
|
|
3241
|
-
"
|
|
3242
|
-
"
|
|
3243
|
-
"name": "workspace",
|
|
3244
|
-
"required": false,
|
|
3245
|
-
"hasDynamicHelp": false,
|
|
3246
|
-
"multiple": false,
|
|
3247
|
-
"type": "option"
|
|
3248
|
-
}
|
|
3249
|
-
},
|
|
3250
|
-
"hasDynamicHelp": false,
|
|
3251
|
-
"hiddenAliases": [],
|
|
3252
|
-
"id": "tenant:pull",
|
|
3253
|
-
"pluginAlias": "@xano/cli",
|
|
3254
|
-
"pluginName": "@xano/cli",
|
|
3255
|
-
"pluginType": "core",
|
|
3256
|
-
"strict": true,
|
|
3257
|
-
"enableJsonFlag": false,
|
|
3258
|
-
"isESM": true,
|
|
3259
|
-
"relativePath": [
|
|
3260
|
-
"dist",
|
|
3261
|
-
"commands",
|
|
3262
|
-
"tenant",
|
|
3263
|
-
"pull",
|
|
3264
|
-
"index.js"
|
|
3265
|
-
]
|
|
3266
|
-
},
|
|
3267
|
-
"tenant:impersonate": {
|
|
3268
|
-
"aliases": [],
|
|
3269
|
-
"args": {
|
|
3270
|
-
"tenant_name": {
|
|
3271
|
-
"description": "Tenant name to impersonate",
|
|
3272
|
-
"name": "tenant_name",
|
|
3273
|
-
"required": true
|
|
3274
|
-
}
|
|
3275
|
-
},
|
|
3276
|
-
"description": "Impersonate a tenant and open it in the browser",
|
|
3277
|
-
"examples": [
|
|
3278
|
-
"$ xano tenant impersonate my-tenant\nOpening browser...\nImpersonation successful!\n",
|
|
3279
|
-
"$ xano tenant impersonate my-tenant -o json"
|
|
3280
|
-
],
|
|
3281
|
-
"flags": {
|
|
3282
|
-
"profile": {
|
|
3283
|
-
"char": "p",
|
|
3284
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
3285
|
-
"env": "XANO_PROFILE",
|
|
3286
|
-
"name": "profile",
|
|
3287
|
-
"required": false,
|
|
3288
|
-
"hasDynamicHelp": false,
|
|
3289
|
-
"multiple": false,
|
|
3290
|
-
"type": "option"
|
|
3291
|
-
},
|
|
3292
|
-
"verbose": {
|
|
3293
|
-
"char": "v",
|
|
3294
|
-
"description": "Show detailed request/response information",
|
|
3295
|
-
"env": "XANO_VERBOSE",
|
|
3296
|
-
"name": "verbose",
|
|
3297
|
-
"required": false,
|
|
3298
|
-
"allowNo": false,
|
|
3299
|
-
"type": "boolean"
|
|
3300
|
-
},
|
|
3301
|
-
"output": {
|
|
3302
|
-
"char": "o",
|
|
3303
|
-
"description": "Output format",
|
|
3304
|
-
"name": "output",
|
|
3305
|
-
"required": false,
|
|
3306
|
-
"default": "summary",
|
|
3307
|
-
"hasDynamicHelp": false,
|
|
3308
|
-
"multiple": false,
|
|
3309
|
-
"options": [
|
|
3310
|
-
"summary",
|
|
3311
|
-
"json"
|
|
3312
|
-
],
|
|
3313
|
-
"type": "option"
|
|
3314
|
-
},
|
|
3315
|
-
"url-only": {
|
|
3316
|
-
"char": "u",
|
|
3317
|
-
"description": "Print the URL without opening the browser",
|
|
3318
|
-
"name": "url-only",
|
|
3411
|
+
"truncate": {
|
|
3412
|
+
"description": "Truncate all table records before importing",
|
|
3413
|
+
"name": "truncate",
|
|
3319
3414
|
"required": false,
|
|
3320
3415
|
"allowNo": false,
|
|
3321
3416
|
"type": "boolean"
|
|
3322
3417
|
},
|
|
3323
3418
|
"workspace": {
|
|
3324
3419
|
"char": "w",
|
|
3325
|
-
"description": "Workspace ID (
|
|
3420
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
3326
3421
|
"name": "workspace",
|
|
3327
3422
|
"required": false,
|
|
3328
3423
|
"hasDynamicHelp": false,
|
|
@@ -3332,7 +3427,7 @@
|
|
|
3332
3427
|
},
|
|
3333
3428
|
"hasDynamicHelp": false,
|
|
3334
3429
|
"hiddenAliases": [],
|
|
3335
|
-
"id": "tenant:
|
|
3430
|
+
"id": "tenant:push",
|
|
3336
3431
|
"pluginAlias": "@xano/cli",
|
|
3337
3432
|
"pluginName": "@xano/cli",
|
|
3338
3433
|
"pluginType": "core",
|
|
@@ -3343,7 +3438,7 @@
|
|
|
3343
3438
|
"dist",
|
|
3344
3439
|
"commands",
|
|
3345
3440
|
"tenant",
|
|
3346
|
-
"
|
|
3441
|
+
"push",
|
|
3347
3442
|
"index.js"
|
|
3348
3443
|
]
|
|
3349
3444
|
},
|
|
@@ -3514,23 +3609,13 @@
|
|
|
3514
3609
|
"index.js"
|
|
3515
3610
|
]
|
|
3516
3611
|
},
|
|
3517
|
-
"
|
|
3612
|
+
"unit_test:run_all": {
|
|
3518
3613
|
"aliases": [],
|
|
3519
|
-
"args": {
|
|
3520
|
-
|
|
3521
|
-
"description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
|
|
3522
|
-
"name": "directory",
|
|
3523
|
-
"required": true
|
|
3524
|
-
}
|
|
3525
|
-
},
|
|
3526
|
-
"description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
|
|
3614
|
+
"args": {},
|
|
3615
|
+
"description": "Run all unit tests in a workspace",
|
|
3527
3616
|
"examples": [
|
|
3528
|
-
"$ xano
|
|
3529
|
-
"$ xano
|
|
3530
|
-
"$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
|
|
3531
|
-
"$ xano tenant push ./my-workspace -t my-tenant --no-records\nPush schema only, skip importing table records\n",
|
|
3532
|
-
"$ xano tenant push ./my-workspace -t my-tenant --no-env\nPush without overwriting environment variables\n",
|
|
3533
|
-
"$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
|
|
3617
|
+
"$ xano unit-test run-all\nRunning 5 unit tests...\n\nPASS my-test [function: math]\nPASS auth-check [query: /user/login]\nFAIL data-validation [function: validate]\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
|
|
3618
|
+
"$ xano unit-test run-all --obj-type function -o json"
|
|
3534
3619
|
],
|
|
3535
3620
|
"flags": {
|
|
3536
3621
|
"profile": {
|
|
@@ -3552,39 +3637,45 @@
|
|
|
3552
3637
|
"allowNo": false,
|
|
3553
3638
|
"type": "boolean"
|
|
3554
3639
|
},
|
|
3555
|
-
"
|
|
3556
|
-
"
|
|
3557
|
-
"
|
|
3640
|
+
"branch": {
|
|
3641
|
+
"char": "b",
|
|
3642
|
+
"description": "Filter by branch name",
|
|
3643
|
+
"name": "branch",
|
|
3558
3644
|
"required": false,
|
|
3559
|
-
"
|
|
3560
|
-
"
|
|
3645
|
+
"hasDynamicHelp": false,
|
|
3646
|
+
"multiple": false,
|
|
3647
|
+
"type": "option"
|
|
3561
3648
|
},
|
|
3562
|
-
"
|
|
3563
|
-
"description": "
|
|
3564
|
-
"name": "
|
|
3649
|
+
"obj-type": {
|
|
3650
|
+
"description": "Filter by object type",
|
|
3651
|
+
"name": "obj-type",
|
|
3565
3652
|
"required": false,
|
|
3566
|
-
"allowNo": true,
|
|
3567
|
-
"type": "boolean"
|
|
3568
|
-
},
|
|
3569
|
-
"tenant": {
|
|
3570
|
-
"char": "t",
|
|
3571
|
-
"description": "Tenant name to push to",
|
|
3572
|
-
"name": "tenant",
|
|
3573
|
-
"required": true,
|
|
3574
3653
|
"hasDynamicHelp": false,
|
|
3575
3654
|
"multiple": false,
|
|
3655
|
+
"options": [
|
|
3656
|
+
"function",
|
|
3657
|
+
"query",
|
|
3658
|
+
"middleware"
|
|
3659
|
+
],
|
|
3576
3660
|
"type": "option"
|
|
3577
3661
|
},
|
|
3578
|
-
"
|
|
3579
|
-
"
|
|
3580
|
-
"
|
|
3662
|
+
"output": {
|
|
3663
|
+
"char": "o",
|
|
3664
|
+
"description": "Output format",
|
|
3665
|
+
"name": "output",
|
|
3581
3666
|
"required": false,
|
|
3582
|
-
"
|
|
3583
|
-
"
|
|
3667
|
+
"default": "summary",
|
|
3668
|
+
"hasDynamicHelp": false,
|
|
3669
|
+
"multiple": false,
|
|
3670
|
+
"options": [
|
|
3671
|
+
"summary",
|
|
3672
|
+
"json"
|
|
3673
|
+
],
|
|
3674
|
+
"type": "option"
|
|
3584
3675
|
},
|
|
3585
3676
|
"workspace": {
|
|
3586
3677
|
"char": "w",
|
|
3587
|
-
"description": "Workspace ID (
|
|
3678
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
3588
3679
|
"name": "workspace",
|
|
3589
3680
|
"required": false,
|
|
3590
3681
|
"hasDynamicHelp": false,
|
|
@@ -3594,7 +3685,7 @@
|
|
|
3594
3685
|
},
|
|
3595
3686
|
"hasDynamicHelp": false,
|
|
3596
3687
|
"hiddenAliases": [],
|
|
3597
|
-
"id": "
|
|
3688
|
+
"id": "unit_test:run_all",
|
|
3598
3689
|
"pluginAlias": "@xano/cli",
|
|
3599
3690
|
"pluginName": "@xano/cli",
|
|
3600
3691
|
"pluginType": "core",
|
|
@@ -3604,24 +3695,19 @@
|
|
|
3604
3695
|
"relativePath": [
|
|
3605
3696
|
"dist",
|
|
3606
3697
|
"commands",
|
|
3607
|
-
"
|
|
3608
|
-
"
|
|
3698
|
+
"unit_test",
|
|
3699
|
+
"run_all",
|
|
3609
3700
|
"index.js"
|
|
3610
3701
|
]
|
|
3611
3702
|
},
|
|
3612
|
-
"workflow_test:
|
|
3703
|
+
"workflow_test:list": {
|
|
3613
3704
|
"aliases": [],
|
|
3614
|
-
"args": {
|
|
3615
|
-
|
|
3616
|
-
"description": "ID of the workflow test to delete",
|
|
3617
|
-
"name": "workflow_test_id",
|
|
3618
|
-
"required": true
|
|
3619
|
-
}
|
|
3620
|
-
},
|
|
3621
|
-
"description": "Delete a workflow test",
|
|
3705
|
+
"args": {},
|
|
3706
|
+
"description": "List all workflow tests in a workspace",
|
|
3622
3707
|
"examples": [
|
|
3623
|
-
"$ xano workflow-test
|
|
3624
|
-
"$ xano workflow-test
|
|
3708
|
+
"$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
|
|
3709
|
+
"$ xano workflow-test list -w 5 --output json",
|
|
3710
|
+
"$ xano workflow-test list --branch main"
|
|
3625
3711
|
],
|
|
3626
3712
|
"flags": {
|
|
3627
3713
|
"profile": {
|
|
@@ -3643,13 +3729,14 @@
|
|
|
3643
3729
|
"allowNo": false,
|
|
3644
3730
|
"type": "boolean"
|
|
3645
3731
|
},
|
|
3646
|
-
"
|
|
3647
|
-
"char": "
|
|
3648
|
-
"description": "
|
|
3649
|
-
"name": "
|
|
3732
|
+
"branch": {
|
|
3733
|
+
"char": "b",
|
|
3734
|
+
"description": "Filter by branch name",
|
|
3735
|
+
"name": "branch",
|
|
3650
3736
|
"required": false,
|
|
3651
|
-
"
|
|
3652
|
-
"
|
|
3737
|
+
"hasDynamicHelp": false,
|
|
3738
|
+
"multiple": false,
|
|
3739
|
+
"type": "option"
|
|
3653
3740
|
},
|
|
3654
3741
|
"output": {
|
|
3655
3742
|
"char": "o",
|
|
@@ -3677,7 +3764,7 @@
|
|
|
3677
3764
|
},
|
|
3678
3765
|
"hasDynamicHelp": false,
|
|
3679
3766
|
"hiddenAliases": [],
|
|
3680
|
-
"id": "workflow_test:
|
|
3767
|
+
"id": "workflow_test:list",
|
|
3681
3768
|
"pluginAlias": "@xano/cli",
|
|
3682
3769
|
"pluginName": "@xano/cli",
|
|
3683
3770
|
"pluginType": "core",
|
|
@@ -3688,17 +3775,24 @@
|
|
|
3688
3775
|
"dist",
|
|
3689
3776
|
"commands",
|
|
3690
3777
|
"workflow_test",
|
|
3691
|
-
"
|
|
3778
|
+
"list",
|
|
3692
3779
|
"index.js"
|
|
3693
3780
|
]
|
|
3694
3781
|
},
|
|
3695
|
-
"
|
|
3782
|
+
"workflow_test:get": {
|
|
3696
3783
|
"aliases": [],
|
|
3697
|
-
"args": {
|
|
3698
|
-
|
|
3784
|
+
"args": {
|
|
3785
|
+
"workflow_test_id": {
|
|
3786
|
+
"description": "ID of the workflow test",
|
|
3787
|
+
"name": "workflow_test_id",
|
|
3788
|
+
"required": true
|
|
3789
|
+
}
|
|
3790
|
+
},
|
|
3791
|
+
"description": "Get a specific workflow test",
|
|
3699
3792
|
"examples": [
|
|
3700
|
-
"$ xano
|
|
3701
|
-
"$ xano
|
|
3793
|
+
"$ xano workflow-test get 1\nWorkflow Test: my-test (ID: 1)\n Description: Validates auth endpoints\n Branch: main\n",
|
|
3794
|
+
"$ xano workflow-test get 1 -o xs",
|
|
3795
|
+
"$ xano workflow-test get 1 -o json"
|
|
3702
3796
|
],
|
|
3703
3797
|
"flags": {
|
|
3704
3798
|
"profile": {
|
|
@@ -3720,27 +3814,12 @@
|
|
|
3720
3814
|
"allowNo": false,
|
|
3721
3815
|
"type": "boolean"
|
|
3722
3816
|
},
|
|
3723
|
-
"
|
|
3724
|
-
"
|
|
3725
|
-
"
|
|
3726
|
-
"name": "branch",
|
|
3727
|
-
"required": false,
|
|
3728
|
-
"hasDynamicHelp": false,
|
|
3729
|
-
"multiple": false,
|
|
3730
|
-
"type": "option"
|
|
3731
|
-
},
|
|
3732
|
-
"obj-type": {
|
|
3733
|
-
"description": "Filter by object type",
|
|
3734
|
-
"name": "obj-type",
|
|
3817
|
+
"include-draft": {
|
|
3818
|
+
"description": "Include draft version",
|
|
3819
|
+
"name": "include-draft",
|
|
3735
3820
|
"required": false,
|
|
3736
|
-
"
|
|
3737
|
-
"
|
|
3738
|
-
"options": [
|
|
3739
|
-
"function",
|
|
3740
|
-
"query",
|
|
3741
|
-
"middleware"
|
|
3742
|
-
],
|
|
3743
|
-
"type": "option"
|
|
3821
|
+
"allowNo": false,
|
|
3822
|
+
"type": "boolean"
|
|
3744
3823
|
},
|
|
3745
3824
|
"output": {
|
|
3746
3825
|
"char": "o",
|
|
@@ -3752,7 +3831,8 @@
|
|
|
3752
3831
|
"multiple": false,
|
|
3753
3832
|
"options": [
|
|
3754
3833
|
"summary",
|
|
3755
|
-
"json"
|
|
3834
|
+
"json",
|
|
3835
|
+
"xs"
|
|
3756
3836
|
],
|
|
3757
3837
|
"type": "option"
|
|
3758
3838
|
},
|
|
@@ -3768,7 +3848,7 @@
|
|
|
3768
3848
|
},
|
|
3769
3849
|
"hasDynamicHelp": false,
|
|
3770
3850
|
"hiddenAliases": [],
|
|
3771
|
-
"id": "
|
|
3851
|
+
"id": "workflow_test:get",
|
|
3772
3852
|
"pluginAlias": "@xano/cli",
|
|
3773
3853
|
"pluginName": "@xano/cli",
|
|
3774
3854
|
"pluginType": "core",
|
|
@@ -3778,25 +3858,24 @@
|
|
|
3778
3858
|
"relativePath": [
|
|
3779
3859
|
"dist",
|
|
3780
3860
|
"commands",
|
|
3781
|
-
"
|
|
3782
|
-
"
|
|
3861
|
+
"workflow_test",
|
|
3862
|
+
"get",
|
|
3783
3863
|
"index.js"
|
|
3784
3864
|
]
|
|
3785
3865
|
},
|
|
3786
|
-
"workflow_test:
|
|
3866
|
+
"workflow_test:delete": {
|
|
3787
3867
|
"aliases": [],
|
|
3788
3868
|
"args": {
|
|
3789
3869
|
"workflow_test_id": {
|
|
3790
|
-
"description": "ID of the workflow test",
|
|
3870
|
+
"description": "ID of the workflow test to delete",
|
|
3791
3871
|
"name": "workflow_test_id",
|
|
3792
3872
|
"required": true
|
|
3793
3873
|
}
|
|
3794
3874
|
},
|
|
3795
|
-
"description": "
|
|
3875
|
+
"description": "Delete a workflow test",
|
|
3796
3876
|
"examples": [
|
|
3797
|
-
"$ xano workflow-test
|
|
3798
|
-
"$ xano workflow-test
|
|
3799
|
-
"$ xano workflow-test get 1 -o json"
|
|
3877
|
+
"$ xano workflow-test delete 1\nAre you sure you want to delete workflow test 1? (y/N) y\nDeleted workflow test 1\n",
|
|
3878
|
+
"$ xano workflow-test delete 1 --force"
|
|
3800
3879
|
],
|
|
3801
3880
|
"flags": {
|
|
3802
3881
|
"profile": {
|
|
@@ -3818,9 +3897,10 @@
|
|
|
3818
3897
|
"allowNo": false,
|
|
3819
3898
|
"type": "boolean"
|
|
3820
3899
|
},
|
|
3821
|
-
"
|
|
3822
|
-
"
|
|
3823
|
-
"
|
|
3900
|
+
"force": {
|
|
3901
|
+
"char": "f",
|
|
3902
|
+
"description": "Skip confirmation prompt",
|
|
3903
|
+
"name": "force",
|
|
3824
3904
|
"required": false,
|
|
3825
3905
|
"allowNo": false,
|
|
3826
3906
|
"type": "boolean"
|
|
@@ -3835,8 +3915,7 @@
|
|
|
3835
3915
|
"multiple": false,
|
|
3836
3916
|
"options": [
|
|
3837
3917
|
"summary",
|
|
3838
|
-
"json"
|
|
3839
|
-
"xs"
|
|
3918
|
+
"json"
|
|
3840
3919
|
],
|
|
3841
3920
|
"type": "option"
|
|
3842
3921
|
},
|
|
@@ -3852,7 +3931,7 @@
|
|
|
3852
3931
|
},
|
|
3853
3932
|
"hasDynamicHelp": false,
|
|
3854
3933
|
"hiddenAliases": [],
|
|
3855
|
-
"id": "workflow_test:
|
|
3934
|
+
"id": "workflow_test:delete",
|
|
3856
3935
|
"pluginAlias": "@xano/cli",
|
|
3857
3936
|
"pluginName": "@xano/cli",
|
|
3858
3937
|
"pluginType": "core",
|
|
@@ -3863,7 +3942,7 @@
|
|
|
3863
3942
|
"dist",
|
|
3864
3943
|
"commands",
|
|
3865
3944
|
"workflow_test",
|
|
3866
|
-
"
|
|
3945
|
+
"delete",
|
|
3867
3946
|
"index.js"
|
|
3868
3947
|
]
|
|
3869
3948
|
},
|
|
@@ -4196,20 +4275,20 @@
|
|
|
4196
4275
|
"index.js"
|
|
4197
4276
|
]
|
|
4198
4277
|
},
|
|
4199
|
-
"workspace:
|
|
4278
|
+
"workspace:get": {
|
|
4200
4279
|
"aliases": [],
|
|
4201
4280
|
"args": {
|
|
4202
4281
|
"workspace_id": {
|
|
4203
|
-
"description": "Workspace ID to
|
|
4282
|
+
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
4204
4283
|
"name": "workspace_id",
|
|
4205
|
-
"required":
|
|
4284
|
+
"required": false
|
|
4206
4285
|
}
|
|
4207
4286
|
},
|
|
4208
|
-
"description": "
|
|
4287
|
+
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
4209
4288
|
"examples": [
|
|
4210
|
-
"$ xano workspace
|
|
4211
|
-
"$ xano workspace
|
|
4212
|
-
"$ xano workspace
|
|
4289
|
+
"$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
|
|
4290
|
+
"$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
|
|
4291
|
+
"$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
|
|
4213
4292
|
],
|
|
4214
4293
|
"flags": {
|
|
4215
4294
|
"profile": {
|
|
@@ -4231,14 +4310,6 @@
|
|
|
4231
4310
|
"allowNo": false,
|
|
4232
4311
|
"type": "boolean"
|
|
4233
4312
|
},
|
|
4234
|
-
"force": {
|
|
4235
|
-
"char": "f",
|
|
4236
|
-
"description": "Skip confirmation prompt",
|
|
4237
|
-
"name": "force",
|
|
4238
|
-
"required": false,
|
|
4239
|
-
"allowNo": false,
|
|
4240
|
-
"type": "boolean"
|
|
4241
|
-
},
|
|
4242
4313
|
"output": {
|
|
4243
4314
|
"char": "o",
|
|
4244
4315
|
"description": "Output format",
|
|
@@ -4256,7 +4327,7 @@
|
|
|
4256
4327
|
},
|
|
4257
4328
|
"hasDynamicHelp": false,
|
|
4258
4329
|
"hiddenAliases": [],
|
|
4259
|
-
"id": "workspace:
|
|
4330
|
+
"id": "workspace:get",
|
|
4260
4331
|
"pluginAlias": "@xano/cli",
|
|
4261
4332
|
"pluginName": "@xano/cli",
|
|
4262
4333
|
"pluginType": "core",
|
|
@@ -4267,24 +4338,19 @@
|
|
|
4267
4338
|
"dist",
|
|
4268
4339
|
"commands",
|
|
4269
4340
|
"workspace",
|
|
4270
|
-
"
|
|
4341
|
+
"get",
|
|
4271
4342
|
"index.js"
|
|
4272
4343
|
]
|
|
4273
4344
|
},
|
|
4274
|
-
"workspace:
|
|
4345
|
+
"workspace:list": {
|
|
4275
4346
|
"aliases": [],
|
|
4276
|
-
"args": {
|
|
4277
|
-
|
|
4278
|
-
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
4279
|
-
"name": "workspace_id",
|
|
4280
|
-
"required": false
|
|
4281
|
-
}
|
|
4282
|
-
},
|
|
4283
|
-
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
4347
|
+
"args": {},
|
|
4348
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
4284
4349
|
"examples": [
|
|
4285
|
-
"$ xano workspace
|
|
4286
|
-
"$ xano workspace
|
|
4287
|
-
"$ xano workspace
|
|
4350
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
4351
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
4352
|
+
"$ 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",
|
|
4353
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
4288
4354
|
],
|
|
4289
4355
|
"flags": {
|
|
4290
4356
|
"profile": {
|
|
@@ -4323,7 +4389,7 @@
|
|
|
4323
4389
|
},
|
|
4324
4390
|
"hasDynamicHelp": false,
|
|
4325
4391
|
"hiddenAliases": [],
|
|
4326
|
-
"id": "workspace:
|
|
4392
|
+
"id": "workspace:list",
|
|
4327
4393
|
"pluginAlias": "@xano/cli",
|
|
4328
4394
|
"pluginName": "@xano/cli",
|
|
4329
4395
|
"pluginType": "core",
|
|
@@ -4334,19 +4400,26 @@
|
|
|
4334
4400
|
"dist",
|
|
4335
4401
|
"commands",
|
|
4336
4402
|
"workspace",
|
|
4337
|
-
"
|
|
4403
|
+
"list",
|
|
4338
4404
|
"index.js"
|
|
4339
4405
|
]
|
|
4340
4406
|
},
|
|
4341
|
-
"workspace:
|
|
4407
|
+
"workspace:pull": {
|
|
4342
4408
|
"aliases": [],
|
|
4343
|
-
"args": {
|
|
4344
|
-
|
|
4409
|
+
"args": {
|
|
4410
|
+
"directory": {
|
|
4411
|
+
"description": "Output directory for pulled documents",
|
|
4412
|
+
"name": "directory",
|
|
4413
|
+
"required": true
|
|
4414
|
+
}
|
|
4415
|
+
},
|
|
4416
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
4345
4417
|
"examples": [
|
|
4346
|
-
"$ xano workspace
|
|
4347
|
-
"$ xano workspace
|
|
4348
|
-
"$ xano workspace
|
|
4349
|
-
"$ xano workspace
|
|
4418
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
4419
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
4420
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n",
|
|
4421
|
+
"$ xano workspace pull ./my-workspace --draft\nPulled 42 documents to ./my-workspace\n",
|
|
4422
|
+
"$ xano workspace pull ./my-workspace -b dev\nPulled 42 documents to ./my-workspace\n"
|
|
4350
4423
|
],
|
|
4351
4424
|
"flags": {
|
|
4352
4425
|
"profile": {
|
|
@@ -4368,24 +4441,49 @@
|
|
|
4368
4441
|
"allowNo": false,
|
|
4369
4442
|
"type": "boolean"
|
|
4370
4443
|
},
|
|
4371
|
-
"
|
|
4372
|
-
"char": "
|
|
4373
|
-
"description": "
|
|
4374
|
-
"name": "
|
|
4444
|
+
"branch": {
|
|
4445
|
+
"char": "b",
|
|
4446
|
+
"description": "Branch name (optional if set in profile, defaults to live)",
|
|
4447
|
+
"name": "branch",
|
|
4448
|
+
"required": false,
|
|
4449
|
+
"hasDynamicHelp": false,
|
|
4450
|
+
"multiple": false,
|
|
4451
|
+
"type": "option"
|
|
4452
|
+
},
|
|
4453
|
+
"env": {
|
|
4454
|
+
"description": "Include environment variables",
|
|
4455
|
+
"name": "env",
|
|
4456
|
+
"required": false,
|
|
4457
|
+
"allowNo": false,
|
|
4458
|
+
"type": "boolean"
|
|
4459
|
+
},
|
|
4460
|
+
"draft": {
|
|
4461
|
+
"description": "Include draft versions",
|
|
4462
|
+
"name": "draft",
|
|
4463
|
+
"required": false,
|
|
4464
|
+
"allowNo": false,
|
|
4465
|
+
"type": "boolean"
|
|
4466
|
+
},
|
|
4467
|
+
"records": {
|
|
4468
|
+
"description": "Include records",
|
|
4469
|
+
"name": "records",
|
|
4470
|
+
"required": false,
|
|
4471
|
+
"allowNo": false,
|
|
4472
|
+
"type": "boolean"
|
|
4473
|
+
},
|
|
4474
|
+
"workspace": {
|
|
4475
|
+
"char": "w",
|
|
4476
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
4477
|
+
"name": "workspace",
|
|
4375
4478
|
"required": false,
|
|
4376
|
-
"default": "summary",
|
|
4377
4479
|
"hasDynamicHelp": false,
|
|
4378
4480
|
"multiple": false,
|
|
4379
|
-
"options": [
|
|
4380
|
-
"summary",
|
|
4381
|
-
"json"
|
|
4382
|
-
],
|
|
4383
4481
|
"type": "option"
|
|
4384
4482
|
}
|
|
4385
4483
|
},
|
|
4386
4484
|
"hasDynamicHelp": false,
|
|
4387
4485
|
"hiddenAliases": [],
|
|
4388
|
-
"id": "workspace:
|
|
4486
|
+
"id": "workspace:pull",
|
|
4389
4487
|
"pluginAlias": "@xano/cli",
|
|
4390
4488
|
"pluginName": "@xano/cli",
|
|
4391
4489
|
"pluginType": "core",
|
|
@@ -4396,18 +4494,24 @@
|
|
|
4396
4494
|
"dist",
|
|
4397
4495
|
"commands",
|
|
4398
4496
|
"workspace",
|
|
4399
|
-
"
|
|
4497
|
+
"pull",
|
|
4400
4498
|
"index.js"
|
|
4401
4499
|
]
|
|
4402
4500
|
},
|
|
4403
|
-
"
|
|
4501
|
+
"workspace:delete": {
|
|
4404
4502
|
"aliases": [],
|
|
4405
|
-
"args": {
|
|
4406
|
-
|
|
4503
|
+
"args": {
|
|
4504
|
+
"workspace_id": {
|
|
4505
|
+
"description": "Workspace ID to delete",
|
|
4506
|
+
"name": "workspace_id",
|
|
4507
|
+
"required": true
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
4407
4511
|
"examples": [
|
|
4408
|
-
"$ xano
|
|
4409
|
-
"$ xano
|
|
4410
|
-
"$ xano
|
|
4512
|
+
"$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
|
|
4513
|
+
"$ xano workspace delete 123 --force\nDeleted workspace 123\n",
|
|
4514
|
+
"$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
|
|
4411
4515
|
],
|
|
4412
4516
|
"flags": {
|
|
4413
4517
|
"profile": {
|
|
@@ -4429,14 +4533,13 @@
|
|
|
4429
4533
|
"allowNo": false,
|
|
4430
4534
|
"type": "boolean"
|
|
4431
4535
|
},
|
|
4432
|
-
"
|
|
4433
|
-
"char": "
|
|
4434
|
-
"description": "
|
|
4435
|
-
"name": "
|
|
4536
|
+
"force": {
|
|
4537
|
+
"char": "f",
|
|
4538
|
+
"description": "Skip confirmation prompt",
|
|
4539
|
+
"name": "force",
|
|
4436
4540
|
"required": false,
|
|
4437
|
-
"
|
|
4438
|
-
"
|
|
4439
|
-
"type": "option"
|
|
4541
|
+
"allowNo": false,
|
|
4542
|
+
"type": "boolean"
|
|
4440
4543
|
},
|
|
4441
4544
|
"output": {
|
|
4442
4545
|
"char": "o",
|
|
@@ -4451,20 +4554,11 @@
|
|
|
4451
4554
|
"json"
|
|
4452
4555
|
],
|
|
4453
4556
|
"type": "option"
|
|
4454
|
-
},
|
|
4455
|
-
"workspace": {
|
|
4456
|
-
"char": "w",
|
|
4457
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4458
|
-
"name": "workspace",
|
|
4459
|
-
"required": false,
|
|
4460
|
-
"hasDynamicHelp": false,
|
|
4461
|
-
"multiple": false,
|
|
4462
|
-
"type": "option"
|
|
4463
4557
|
}
|
|
4464
4558
|
},
|
|
4465
4559
|
"hasDynamicHelp": false,
|
|
4466
4560
|
"hiddenAliases": [],
|
|
4467
|
-
"id": "
|
|
4561
|
+
"id": "workspace:delete",
|
|
4468
4562
|
"pluginAlias": "@xano/cli",
|
|
4469
4563
|
"pluginName": "@xano/cli",
|
|
4470
4564
|
"pluginType": "core",
|
|
@@ -4474,8 +4568,8 @@
|
|
|
4474
4568
|
"relativePath": [
|
|
4475
4569
|
"dist",
|
|
4476
4570
|
"commands",
|
|
4477
|
-
"
|
|
4478
|
-
"
|
|
4571
|
+
"workspace",
|
|
4572
|
+
"delete",
|
|
4479
4573
|
"index.js"
|
|
4480
4574
|
]
|
|
4481
4575
|
},
|
|
@@ -4543,6 +4637,13 @@
|
|
|
4543
4637
|
"allowNo": true,
|
|
4544
4638
|
"type": "boolean"
|
|
4545
4639
|
},
|
|
4640
|
+
"sync-guids": {
|
|
4641
|
+
"description": "Write server-assigned GUIDs back to local files (use --no-sync-guids to skip)",
|
|
4642
|
+
"name": "sync-guids",
|
|
4643
|
+
"required": false,
|
|
4644
|
+
"allowNo": true,
|
|
4645
|
+
"type": "boolean"
|
|
4646
|
+
},
|
|
4546
4647
|
"truncate": {
|
|
4547
4648
|
"description": "Truncate all table records before importing",
|
|
4548
4649
|
"name": "truncate",
|
|
@@ -4577,22 +4678,20 @@
|
|
|
4577
4678
|
"index.js"
|
|
4578
4679
|
]
|
|
4579
4680
|
},
|
|
4580
|
-
"
|
|
4681
|
+
"static_host:build:create": {
|
|
4581
4682
|
"aliases": [],
|
|
4582
4683
|
"args": {
|
|
4583
|
-
"
|
|
4584
|
-
"description": "
|
|
4585
|
-
"name": "
|
|
4684
|
+
"static_host": {
|
|
4685
|
+
"description": "Static Host name",
|
|
4686
|
+
"name": "static_host",
|
|
4586
4687
|
"required": true
|
|
4587
4688
|
}
|
|
4588
4689
|
},
|
|
4589
|
-
"description": "
|
|
4690
|
+
"description": "Create a new build for a static host",
|
|
4590
4691
|
"examples": [
|
|
4591
|
-
"$ xano
|
|
4592
|
-
"$ xano
|
|
4593
|
-
"$ xano
|
|
4594
|
-
"$ xano workspace pull ./my-workspace --draft\nPulled 42 documents to ./my-workspace\n",
|
|
4595
|
-
"$ xano workspace pull ./my-workspace -b dev\nPulled 42 documents to ./my-workspace\n"
|
|
4692
|
+
"$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
|
|
4693
|
+
"$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
|
|
4694
|
+
"$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
|
|
4596
4695
|
],
|
|
4597
4696
|
"flags": {
|
|
4598
4697
|
"profile": {
|
|
@@ -4614,35 +4713,46 @@
|
|
|
4614
4713
|
"allowNo": false,
|
|
4615
4714
|
"type": "boolean"
|
|
4616
4715
|
},
|
|
4617
|
-
"
|
|
4618
|
-
"char": "
|
|
4619
|
-
"description": "
|
|
4620
|
-
"name": "
|
|
4716
|
+
"description": {
|
|
4717
|
+
"char": "d",
|
|
4718
|
+
"description": "Build description",
|
|
4719
|
+
"name": "description",
|
|
4621
4720
|
"required": false,
|
|
4622
4721
|
"hasDynamicHelp": false,
|
|
4623
4722
|
"multiple": false,
|
|
4624
4723
|
"type": "option"
|
|
4625
4724
|
},
|
|
4626
|
-
"
|
|
4627
|
-
"
|
|
4628
|
-
"
|
|
4629
|
-
"
|
|
4630
|
-
"
|
|
4631
|
-
"
|
|
4725
|
+
"file": {
|
|
4726
|
+
"char": "f",
|
|
4727
|
+
"description": "Path to zip file to upload",
|
|
4728
|
+
"name": "file",
|
|
4729
|
+
"required": true,
|
|
4730
|
+
"hasDynamicHelp": false,
|
|
4731
|
+
"multiple": false,
|
|
4732
|
+
"type": "option"
|
|
4632
4733
|
},
|
|
4633
|
-
"
|
|
4634
|
-
"
|
|
4635
|
-
"
|
|
4636
|
-
"
|
|
4637
|
-
"
|
|
4638
|
-
"
|
|
4734
|
+
"name": {
|
|
4735
|
+
"char": "n",
|
|
4736
|
+
"description": "Build name",
|
|
4737
|
+
"name": "name",
|
|
4738
|
+
"required": true,
|
|
4739
|
+
"hasDynamicHelp": false,
|
|
4740
|
+
"multiple": false,
|
|
4741
|
+
"type": "option"
|
|
4639
4742
|
},
|
|
4640
|
-
"
|
|
4641
|
-
"
|
|
4642
|
-
"
|
|
4743
|
+
"output": {
|
|
4744
|
+
"char": "o",
|
|
4745
|
+
"description": "Output format",
|
|
4746
|
+
"name": "output",
|
|
4643
4747
|
"required": false,
|
|
4644
|
-
"
|
|
4645
|
-
"
|
|
4748
|
+
"default": "summary",
|
|
4749
|
+
"hasDynamicHelp": false,
|
|
4750
|
+
"multiple": false,
|
|
4751
|
+
"options": [
|
|
4752
|
+
"summary",
|
|
4753
|
+
"json"
|
|
4754
|
+
],
|
|
4755
|
+
"type": "option"
|
|
4646
4756
|
},
|
|
4647
4757
|
"workspace": {
|
|
4648
4758
|
"char": "w",
|
|
@@ -4656,7 +4766,7 @@
|
|
|
4656
4766
|
},
|
|
4657
4767
|
"hasDynamicHelp": false,
|
|
4658
4768
|
"hiddenAliases": [],
|
|
4659
|
-
"id": "
|
|
4769
|
+
"id": "static_host:build:create",
|
|
4660
4770
|
"pluginAlias": "@xano/cli",
|
|
4661
4771
|
"pluginName": "@xano/cli",
|
|
4662
4772
|
"pluginType": "core",
|
|
@@ -4666,24 +4776,32 @@
|
|
|
4666
4776
|
"relativePath": [
|
|
4667
4777
|
"dist",
|
|
4668
4778
|
"commands",
|
|
4669
|
-
"
|
|
4670
|
-
"
|
|
4779
|
+
"static_host",
|
|
4780
|
+
"build",
|
|
4781
|
+
"create",
|
|
4671
4782
|
"index.js"
|
|
4672
4783
|
]
|
|
4673
4784
|
},
|
|
4674
|
-
"
|
|
4785
|
+
"static_host:build:get": {
|
|
4675
4786
|
"aliases": [],
|
|
4676
4787
|
"args": {
|
|
4677
|
-
"
|
|
4678
|
-
"description": "
|
|
4679
|
-
"name": "
|
|
4788
|
+
"build_id": {
|
|
4789
|
+
"description": "Build ID",
|
|
4790
|
+
"name": "build_id",
|
|
4791
|
+
"required": true
|
|
4792
|
+
},
|
|
4793
|
+
"static_host": {
|
|
4794
|
+
"description": "Static Host name",
|
|
4795
|
+
"name": "static_host",
|
|
4680
4796
|
"required": true
|
|
4681
4797
|
}
|
|
4682
4798
|
},
|
|
4683
|
-
"description": "
|
|
4799
|
+
"description": "Get details of a specific build for a static host",
|
|
4684
4800
|
"examples": [
|
|
4685
|
-
"$ xano
|
|
4686
|
-
"$ xano
|
|
4801
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
4802
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
4803
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
4804
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
4687
4805
|
],
|
|
4688
4806
|
"flags": {
|
|
4689
4807
|
"profile": {
|
|
@@ -4705,16 +4823,6 @@
|
|
|
4705
4823
|
"allowNo": false,
|
|
4706
4824
|
"type": "boolean"
|
|
4707
4825
|
},
|
|
4708
|
-
"description": {
|
|
4709
|
-
"char": "d",
|
|
4710
|
-
"description": "Backup description",
|
|
4711
|
-
"name": "description",
|
|
4712
|
-
"required": false,
|
|
4713
|
-
"default": "",
|
|
4714
|
-
"hasDynamicHelp": false,
|
|
4715
|
-
"multiple": false,
|
|
4716
|
-
"type": "option"
|
|
4717
|
-
},
|
|
4718
4826
|
"output": {
|
|
4719
4827
|
"char": "o",
|
|
4720
4828
|
"description": "Output format",
|
|
@@ -4731,7 +4839,7 @@
|
|
|
4731
4839
|
},
|
|
4732
4840
|
"workspace": {
|
|
4733
4841
|
"char": "w",
|
|
4734
|
-
"description": "Workspace ID (
|
|
4842
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
4735
4843
|
"name": "workspace",
|
|
4736
4844
|
"required": false,
|
|
4737
4845
|
"hasDynamicHelp": false,
|
|
@@ -4741,7 +4849,7 @@
|
|
|
4741
4849
|
},
|
|
4742
4850
|
"hasDynamicHelp": false,
|
|
4743
4851
|
"hiddenAliases": [],
|
|
4744
|
-
"id": "
|
|
4852
|
+
"id": "static_host:build:get",
|
|
4745
4853
|
"pluginAlias": "@xano/cli",
|
|
4746
4854
|
"pluginName": "@xano/cli",
|
|
4747
4855
|
"pluginType": "core",
|
|
@@ -4751,26 +4859,27 @@
|
|
|
4751
4859
|
"relativePath": [
|
|
4752
4860
|
"dist",
|
|
4753
4861
|
"commands",
|
|
4754
|
-
"
|
|
4755
|
-
"
|
|
4756
|
-
"
|
|
4862
|
+
"static_host",
|
|
4863
|
+
"build",
|
|
4864
|
+
"get",
|
|
4757
4865
|
"index.js"
|
|
4758
4866
|
]
|
|
4759
4867
|
},
|
|
4760
|
-
"
|
|
4868
|
+
"static_host:build:list": {
|
|
4761
4869
|
"aliases": [],
|
|
4762
4870
|
"args": {
|
|
4763
|
-
"
|
|
4764
|
-
"description": "
|
|
4765
|
-
"name": "
|
|
4871
|
+
"static_host": {
|
|
4872
|
+
"description": "Static Host name",
|
|
4873
|
+
"name": "static_host",
|
|
4766
4874
|
"required": true
|
|
4767
4875
|
}
|
|
4768
4876
|
},
|
|
4769
|
-
"description": "
|
|
4877
|
+
"description": "List all builds for a static host",
|
|
4770
4878
|
"examples": [
|
|
4771
|
-
"$ xano
|
|
4772
|
-
"$ xano
|
|
4773
|
-
"$ xano
|
|
4879
|
+
"$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
|
|
4880
|
+
"$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
|
|
4881
|
+
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
4882
|
+
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
4774
4883
|
],
|
|
4775
4884
|
"flags": {
|
|
4776
4885
|
"profile": {
|
|
@@ -4792,18 +4901,10 @@
|
|
|
4792
4901
|
"allowNo": false,
|
|
4793
4902
|
"type": "boolean"
|
|
4794
4903
|
},
|
|
4795
|
-
"
|
|
4796
|
-
"description": "Backup ID to export",
|
|
4797
|
-
"name": "backup_id",
|
|
4798
|
-
"required": true,
|
|
4799
|
-
"hasDynamicHelp": false,
|
|
4800
|
-
"multiple": false,
|
|
4801
|
-
"type": "option"
|
|
4802
|
-
},
|
|
4803
|
-
"format": {
|
|
4904
|
+
"output": {
|
|
4804
4905
|
"char": "o",
|
|
4805
4906
|
"description": "Output format",
|
|
4806
|
-
"name": "
|
|
4907
|
+
"name": "output",
|
|
4807
4908
|
"required": false,
|
|
4808
4909
|
"default": "summary",
|
|
4809
4910
|
"hasDynamicHelp": false,
|
|
@@ -4814,17 +4915,27 @@
|
|
|
4814
4915
|
],
|
|
4815
4916
|
"type": "option"
|
|
4816
4917
|
},
|
|
4817
|
-
"
|
|
4818
|
-
"description": "
|
|
4819
|
-
"name": "
|
|
4918
|
+
"page": {
|
|
4919
|
+
"description": "Page number for pagination",
|
|
4920
|
+
"name": "page",
|
|
4820
4921
|
"required": false,
|
|
4922
|
+
"default": 1,
|
|
4923
|
+
"hasDynamicHelp": false,
|
|
4924
|
+
"multiple": false,
|
|
4925
|
+
"type": "option"
|
|
4926
|
+
},
|
|
4927
|
+
"per_page": {
|
|
4928
|
+
"description": "Number of results per page",
|
|
4929
|
+
"name": "per_page",
|
|
4930
|
+
"required": false,
|
|
4931
|
+
"default": 50,
|
|
4821
4932
|
"hasDynamicHelp": false,
|
|
4822
4933
|
"multiple": false,
|
|
4823
4934
|
"type": "option"
|
|
4824
4935
|
},
|
|
4825
4936
|
"workspace": {
|
|
4826
4937
|
"char": "w",
|
|
4827
|
-
"description": "Workspace ID (
|
|
4938
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
4828
4939
|
"name": "workspace",
|
|
4829
4940
|
"required": false,
|
|
4830
4941
|
"hasDynamicHelp": false,
|
|
@@ -4834,7 +4945,7 @@
|
|
|
4834
4945
|
},
|
|
4835
4946
|
"hasDynamicHelp": false,
|
|
4836
4947
|
"hiddenAliases": [],
|
|
4837
|
-
"id": "
|
|
4948
|
+
"id": "static_host:build:list",
|
|
4838
4949
|
"pluginAlias": "@xano/cli",
|
|
4839
4950
|
"pluginName": "@xano/cli",
|
|
4840
4951
|
"pluginType": "core",
|
|
@@ -4844,26 +4955,25 @@
|
|
|
4844
4955
|
"relativePath": [
|
|
4845
4956
|
"dist",
|
|
4846
4957
|
"commands",
|
|
4847
|
-
"
|
|
4848
|
-
"
|
|
4849
|
-
"
|
|
4958
|
+
"static_host",
|
|
4959
|
+
"build",
|
|
4960
|
+
"list",
|
|
4850
4961
|
"index.js"
|
|
4851
4962
|
]
|
|
4852
4963
|
},
|
|
4853
|
-
"tenant:backup:
|
|
4964
|
+
"tenant:backup:create": {
|
|
4854
4965
|
"aliases": [],
|
|
4855
4966
|
"args": {
|
|
4856
4967
|
"tenant_name": {
|
|
4857
|
-
"description": "Tenant name
|
|
4968
|
+
"description": "Tenant name to back up",
|
|
4858
4969
|
"name": "tenant_name",
|
|
4859
4970
|
"required": true
|
|
4860
4971
|
}
|
|
4861
4972
|
},
|
|
4862
|
-
"description": "
|
|
4973
|
+
"description": "Create a backup for a tenant",
|
|
4863
4974
|
"examples": [
|
|
4864
|
-
"$ xano tenant backup
|
|
4865
|
-
"$ xano tenant backup
|
|
4866
|
-
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
4975
|
+
"$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
|
|
4976
|
+
"$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
|
|
4867
4977
|
],
|
|
4868
4978
|
"flags": {
|
|
4869
4979
|
"profile": {
|
|
@@ -4885,22 +4995,16 @@
|
|
|
4885
4995
|
"allowNo": false,
|
|
4886
4996
|
"type": "boolean"
|
|
4887
4997
|
},
|
|
4888
|
-
"
|
|
4889
|
-
"
|
|
4890
|
-
"
|
|
4891
|
-
"
|
|
4998
|
+
"description": {
|
|
4999
|
+
"char": "d",
|
|
5000
|
+
"description": "Backup description",
|
|
5001
|
+
"name": "description",
|
|
5002
|
+
"required": false,
|
|
5003
|
+
"default": "",
|
|
4892
5004
|
"hasDynamicHelp": false,
|
|
4893
5005
|
"multiple": false,
|
|
4894
5006
|
"type": "option"
|
|
4895
5007
|
},
|
|
4896
|
-
"force": {
|
|
4897
|
-
"char": "f",
|
|
4898
|
-
"description": "Skip confirmation prompt",
|
|
4899
|
-
"name": "force",
|
|
4900
|
-
"required": false,
|
|
4901
|
-
"allowNo": false,
|
|
4902
|
-
"type": "boolean"
|
|
4903
|
-
},
|
|
4904
5008
|
"output": {
|
|
4905
5009
|
"char": "o",
|
|
4906
5010
|
"description": "Output format",
|
|
@@ -4927,7 +5031,7 @@
|
|
|
4927
5031
|
},
|
|
4928
5032
|
"hasDynamicHelp": false,
|
|
4929
5033
|
"hiddenAliases": [],
|
|
4930
|
-
"id": "tenant:backup:
|
|
5034
|
+
"id": "tenant:backup:create",
|
|
4931
5035
|
"pluginAlias": "@xano/cli",
|
|
4932
5036
|
"pluginName": "@xano/cli",
|
|
4933
5037
|
"pluginType": "core",
|
|
@@ -4939,23 +5043,24 @@
|
|
|
4939
5043
|
"commands",
|
|
4940
5044
|
"tenant",
|
|
4941
5045
|
"backup",
|
|
4942
|
-
"
|
|
5046
|
+
"create",
|
|
4943
5047
|
"index.js"
|
|
4944
5048
|
]
|
|
4945
5049
|
},
|
|
4946
|
-
"tenant:backup:
|
|
5050
|
+
"tenant:backup:export": {
|
|
4947
5051
|
"aliases": [],
|
|
4948
5052
|
"args": {
|
|
4949
5053
|
"tenant_name": {
|
|
4950
|
-
"description": "Tenant name to
|
|
5054
|
+
"description": "Tenant name to export backup from",
|
|
4951
5055
|
"name": "tenant_name",
|
|
4952
5056
|
"required": true
|
|
4953
5057
|
}
|
|
4954
5058
|
},
|
|
4955
|
-
"description": "
|
|
5059
|
+
"description": "Export (download) a tenant backup to a local file",
|
|
4956
5060
|
"examples": [
|
|
4957
|
-
"$ xano tenant backup
|
|
4958
|
-
"$ xano tenant backup
|
|
5061
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
|
|
5062
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
|
|
5063
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
4959
5064
|
],
|
|
4960
5065
|
"flags": {
|
|
4961
5066
|
"profile": {
|
|
@@ -4977,29 +5082,18 @@
|
|
|
4977
5082
|
"allowNo": false,
|
|
4978
5083
|
"type": "boolean"
|
|
4979
5084
|
},
|
|
4980
|
-
"
|
|
4981
|
-
"
|
|
4982
|
-
"
|
|
4983
|
-
"name": "description",
|
|
4984
|
-
"required": false,
|
|
4985
|
-
"default": "",
|
|
4986
|
-
"hasDynamicHelp": false,
|
|
4987
|
-
"multiple": false,
|
|
4988
|
-
"type": "option"
|
|
4989
|
-
},
|
|
4990
|
-
"file": {
|
|
4991
|
-
"char": "f",
|
|
4992
|
-
"description": "Path to the backup file (.tar.gz)",
|
|
4993
|
-
"name": "file",
|
|
5085
|
+
"backup_id": {
|
|
5086
|
+
"description": "Backup ID to export",
|
|
5087
|
+
"name": "backup_id",
|
|
4994
5088
|
"required": true,
|
|
4995
5089
|
"hasDynamicHelp": false,
|
|
4996
5090
|
"multiple": false,
|
|
4997
5091
|
"type": "option"
|
|
4998
5092
|
},
|
|
4999
|
-
"
|
|
5093
|
+
"format": {
|
|
5000
5094
|
"char": "o",
|
|
5001
5095
|
"description": "Output format",
|
|
5002
|
-
"name": "
|
|
5096
|
+
"name": "format",
|
|
5003
5097
|
"required": false,
|
|
5004
5098
|
"default": "summary",
|
|
5005
5099
|
"hasDynamicHelp": false,
|
|
@@ -5010,6 +5104,14 @@
|
|
|
5010
5104
|
],
|
|
5011
5105
|
"type": "option"
|
|
5012
5106
|
},
|
|
5107
|
+
"output": {
|
|
5108
|
+
"description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
|
|
5109
|
+
"name": "output",
|
|
5110
|
+
"required": false,
|
|
5111
|
+
"hasDynamicHelp": false,
|
|
5112
|
+
"multiple": false,
|
|
5113
|
+
"type": "option"
|
|
5114
|
+
},
|
|
5013
5115
|
"workspace": {
|
|
5014
5116
|
"char": "w",
|
|
5015
5117
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -5022,7 +5124,7 @@
|
|
|
5022
5124
|
},
|
|
5023
5125
|
"hasDynamicHelp": false,
|
|
5024
5126
|
"hiddenAliases": [],
|
|
5025
|
-
"id": "tenant:backup:
|
|
5127
|
+
"id": "tenant:backup:export",
|
|
5026
5128
|
"pluginAlias": "@xano/cli",
|
|
5027
5129
|
"pluginName": "@xano/cli",
|
|
5028
5130
|
"pluginType": "core",
|
|
@@ -5034,23 +5136,23 @@
|
|
|
5034
5136
|
"commands",
|
|
5035
5137
|
"tenant",
|
|
5036
5138
|
"backup",
|
|
5037
|
-
"
|
|
5139
|
+
"export",
|
|
5038
5140
|
"index.js"
|
|
5039
5141
|
]
|
|
5040
5142
|
},
|
|
5041
|
-
"tenant:backup:
|
|
5143
|
+
"tenant:backup:import": {
|
|
5042
5144
|
"aliases": [],
|
|
5043
5145
|
"args": {
|
|
5044
5146
|
"tenant_name": {
|
|
5045
|
-
"description": "Tenant name to
|
|
5147
|
+
"description": "Tenant name to import backup into",
|
|
5046
5148
|
"name": "tenant_name",
|
|
5047
5149
|
"required": true
|
|
5048
5150
|
}
|
|
5049
5151
|
},
|
|
5050
|
-
"description": "
|
|
5152
|
+
"description": "Import a backup file into a tenant",
|
|
5051
5153
|
"examples": [
|
|
5052
|
-
"$ xano tenant backup
|
|
5053
|
-
"$ xano tenant backup
|
|
5154
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz\nImported backup as #15 for tenant t1234-abcd-xyz1\n",
|
|
5155
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz --description \"Restored from production\" -o json"
|
|
5054
5156
|
],
|
|
5055
5157
|
"flags": {
|
|
5056
5158
|
"profile": {
|
|
@@ -5072,6 +5174,25 @@
|
|
|
5072
5174
|
"allowNo": false,
|
|
5073
5175
|
"type": "boolean"
|
|
5074
5176
|
},
|
|
5177
|
+
"description": {
|
|
5178
|
+
"char": "d",
|
|
5179
|
+
"description": "Backup description",
|
|
5180
|
+
"name": "description",
|
|
5181
|
+
"required": false,
|
|
5182
|
+
"default": "",
|
|
5183
|
+
"hasDynamicHelp": false,
|
|
5184
|
+
"multiple": false,
|
|
5185
|
+
"type": "option"
|
|
5186
|
+
},
|
|
5187
|
+
"file": {
|
|
5188
|
+
"char": "f",
|
|
5189
|
+
"description": "Path to the backup file (.tar.gz)",
|
|
5190
|
+
"name": "file",
|
|
5191
|
+
"required": true,
|
|
5192
|
+
"hasDynamicHelp": false,
|
|
5193
|
+
"multiple": false,
|
|
5194
|
+
"type": "option"
|
|
5195
|
+
},
|
|
5075
5196
|
"output": {
|
|
5076
5197
|
"char": "o",
|
|
5077
5198
|
"description": "Output format",
|
|
@@ -5086,15 +5207,6 @@
|
|
|
5086
5207
|
],
|
|
5087
5208
|
"type": "option"
|
|
5088
5209
|
},
|
|
5089
|
-
"page": {
|
|
5090
|
-
"description": "Page number for pagination",
|
|
5091
|
-
"name": "page",
|
|
5092
|
-
"required": false,
|
|
5093
|
-
"default": 1,
|
|
5094
|
-
"hasDynamicHelp": false,
|
|
5095
|
-
"multiple": false,
|
|
5096
|
-
"type": "option"
|
|
5097
|
-
},
|
|
5098
5210
|
"workspace": {
|
|
5099
5211
|
"char": "w",
|
|
5100
5212
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -5107,7 +5219,7 @@
|
|
|
5107
5219
|
},
|
|
5108
5220
|
"hasDynamicHelp": false,
|
|
5109
5221
|
"hiddenAliases": [],
|
|
5110
|
-
"id": "tenant:backup:
|
|
5222
|
+
"id": "tenant:backup:import",
|
|
5111
5223
|
"pluginAlias": "@xano/cli",
|
|
5112
5224
|
"pluginName": "@xano/cli",
|
|
5113
5225
|
"pluginType": "core",
|
|
@@ -5119,23 +5231,24 @@
|
|
|
5119
5231
|
"commands",
|
|
5120
5232
|
"tenant",
|
|
5121
5233
|
"backup",
|
|
5122
|
-
"
|
|
5234
|
+
"import",
|
|
5123
5235
|
"index.js"
|
|
5124
5236
|
]
|
|
5125
5237
|
},
|
|
5126
|
-
"tenant:backup:
|
|
5238
|
+
"tenant:backup:delete": {
|
|
5127
5239
|
"aliases": [],
|
|
5128
5240
|
"args": {
|
|
5129
5241
|
"tenant_name": {
|
|
5130
|
-
"description": "Tenant name
|
|
5242
|
+
"description": "Tenant name that owns the backup",
|
|
5131
5243
|
"name": "tenant_name",
|
|
5132
5244
|
"required": true
|
|
5133
5245
|
}
|
|
5134
5246
|
},
|
|
5135
|
-
"description": "
|
|
5247
|
+
"description": "Delete a tenant backup permanently. This action cannot be undone.",
|
|
5136
5248
|
"examples": [
|
|
5137
|
-
"$ xano tenant backup
|
|
5138
|
-
"$ xano tenant backup
|
|
5249
|
+
"$ 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",
|
|
5250
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
|
|
5251
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5139
5252
|
],
|
|
5140
5253
|
"flags": {
|
|
5141
5254
|
"profile": {
|
|
@@ -5158,7 +5271,7 @@
|
|
|
5158
5271
|
"type": "boolean"
|
|
5159
5272
|
},
|
|
5160
5273
|
"backup_id": {
|
|
5161
|
-
"description": "Backup ID to
|
|
5274
|
+
"description": "Backup ID to delete",
|
|
5162
5275
|
"name": "backup_id",
|
|
5163
5276
|
"required": true,
|
|
5164
5277
|
"hasDynamicHelp": false,
|
|
@@ -5199,7 +5312,7 @@
|
|
|
5199
5312
|
},
|
|
5200
5313
|
"hasDynamicHelp": false,
|
|
5201
5314
|
"hiddenAliases": [],
|
|
5202
|
-
"id": "tenant:backup:
|
|
5315
|
+
"id": "tenant:backup:delete",
|
|
5203
5316
|
"pluginAlias": "@xano/cli",
|
|
5204
5317
|
"pluginName": "@xano/cli",
|
|
5205
5318
|
"pluginType": "core",
|
|
@@ -5211,24 +5324,23 @@
|
|
|
5211
5324
|
"commands",
|
|
5212
5325
|
"tenant",
|
|
5213
5326
|
"backup",
|
|
5214
|
-
"
|
|
5327
|
+
"delete",
|
|
5215
5328
|
"index.js"
|
|
5216
5329
|
]
|
|
5217
5330
|
},
|
|
5218
|
-
"
|
|
5331
|
+
"tenant:backup:list": {
|
|
5219
5332
|
"aliases": [],
|
|
5220
5333
|
"args": {
|
|
5221
|
-
"
|
|
5222
|
-
"description": "
|
|
5223
|
-
"name": "
|
|
5334
|
+
"tenant_name": {
|
|
5335
|
+
"description": "Tenant name to list backups for",
|
|
5336
|
+
"name": "tenant_name",
|
|
5224
5337
|
"required": true
|
|
5225
5338
|
}
|
|
5226
5339
|
},
|
|
5227
|
-
"description": "
|
|
5340
|
+
"description": "List backups for a tenant",
|
|
5228
5341
|
"examples": [
|
|
5229
|
-
"$ xano
|
|
5230
|
-
"$ xano
|
|
5231
|
-
"$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
|
|
5342
|
+
"$ 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",
|
|
5343
|
+
"$ xano tenant backup list t1234-abcd-xyz1 -o json"
|
|
5232
5344
|
],
|
|
5233
5345
|
"flags": {
|
|
5234
5346
|
"profile": {
|
|
@@ -5250,33 +5362,6 @@
|
|
|
5250
5362
|
"allowNo": false,
|
|
5251
5363
|
"type": "boolean"
|
|
5252
5364
|
},
|
|
5253
|
-
"description": {
|
|
5254
|
-
"char": "d",
|
|
5255
|
-
"description": "Build description",
|
|
5256
|
-
"name": "description",
|
|
5257
|
-
"required": false,
|
|
5258
|
-
"hasDynamicHelp": false,
|
|
5259
|
-
"multiple": false,
|
|
5260
|
-
"type": "option"
|
|
5261
|
-
},
|
|
5262
|
-
"file": {
|
|
5263
|
-
"char": "f",
|
|
5264
|
-
"description": "Path to zip file to upload",
|
|
5265
|
-
"name": "file",
|
|
5266
|
-
"required": true,
|
|
5267
|
-
"hasDynamicHelp": false,
|
|
5268
|
-
"multiple": false,
|
|
5269
|
-
"type": "option"
|
|
5270
|
-
},
|
|
5271
|
-
"name": {
|
|
5272
|
-
"char": "n",
|
|
5273
|
-
"description": "Build name",
|
|
5274
|
-
"name": "name",
|
|
5275
|
-
"required": true,
|
|
5276
|
-
"hasDynamicHelp": false,
|
|
5277
|
-
"multiple": false,
|
|
5278
|
-
"type": "option"
|
|
5279
|
-
},
|
|
5280
5365
|
"output": {
|
|
5281
5366
|
"char": "o",
|
|
5282
5367
|
"description": "Output format",
|
|
@@ -5291,9 +5376,18 @@
|
|
|
5291
5376
|
],
|
|
5292
5377
|
"type": "option"
|
|
5293
5378
|
},
|
|
5379
|
+
"page": {
|
|
5380
|
+
"description": "Page number for pagination",
|
|
5381
|
+
"name": "page",
|
|
5382
|
+
"required": false,
|
|
5383
|
+
"default": 1,
|
|
5384
|
+
"hasDynamicHelp": false,
|
|
5385
|
+
"multiple": false,
|
|
5386
|
+
"type": "option"
|
|
5387
|
+
},
|
|
5294
5388
|
"workspace": {
|
|
5295
5389
|
"char": "w",
|
|
5296
|
-
"description": "Workspace ID (
|
|
5390
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5297
5391
|
"name": "workspace",
|
|
5298
5392
|
"required": false,
|
|
5299
5393
|
"hasDynamicHelp": false,
|
|
@@ -5303,7 +5397,7 @@
|
|
|
5303
5397
|
},
|
|
5304
5398
|
"hasDynamicHelp": false,
|
|
5305
5399
|
"hiddenAliases": [],
|
|
5306
|
-
"id": "
|
|
5400
|
+
"id": "tenant:backup:list",
|
|
5307
5401
|
"pluginAlias": "@xano/cli",
|
|
5308
5402
|
"pluginName": "@xano/cli",
|
|
5309
5403
|
"pluginType": "core",
|
|
@@ -5313,27 +5407,25 @@
|
|
|
5313
5407
|
"relativePath": [
|
|
5314
5408
|
"dist",
|
|
5315
5409
|
"commands",
|
|
5316
|
-
"
|
|
5317
|
-
"
|
|
5318
|
-
"
|
|
5410
|
+
"tenant",
|
|
5411
|
+
"backup",
|
|
5412
|
+
"list",
|
|
5319
5413
|
"index.js"
|
|
5320
5414
|
]
|
|
5321
5415
|
},
|
|
5322
|
-
"
|
|
5416
|
+
"tenant:backup:restore": {
|
|
5323
5417
|
"aliases": [],
|
|
5324
5418
|
"args": {
|
|
5325
|
-
"
|
|
5326
|
-
"description": "
|
|
5327
|
-
"name": "
|
|
5419
|
+
"tenant_name": {
|
|
5420
|
+
"description": "Tenant name to restore",
|
|
5421
|
+
"name": "tenant_name",
|
|
5328
5422
|
"required": true
|
|
5329
5423
|
}
|
|
5330
5424
|
},
|
|
5331
|
-
"description": "
|
|
5425
|
+
"description": "Restore a tenant from a backup. This replaces the current tenant data.",
|
|
5332
5426
|
"examples": [
|
|
5333
|
-
"$ xano
|
|
5334
|
-
"$ xano
|
|
5335
|
-
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
5336
|
-
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
5427
|
+
"$ 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",
|
|
5428
|
+
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10 --force -o json"
|
|
5337
5429
|
],
|
|
5338
5430
|
"flags": {
|
|
5339
5431
|
"profile": {
|
|
@@ -5355,6 +5447,22 @@
|
|
|
5355
5447
|
"allowNo": false,
|
|
5356
5448
|
"type": "boolean"
|
|
5357
5449
|
},
|
|
5450
|
+
"backup_id": {
|
|
5451
|
+
"description": "Backup ID to restore from",
|
|
5452
|
+
"name": "backup_id",
|
|
5453
|
+
"required": true,
|
|
5454
|
+
"hasDynamicHelp": false,
|
|
5455
|
+
"multiple": false,
|
|
5456
|
+
"type": "option"
|
|
5457
|
+
},
|
|
5458
|
+
"force": {
|
|
5459
|
+
"char": "f",
|
|
5460
|
+
"description": "Skip confirmation prompt",
|
|
5461
|
+
"name": "force",
|
|
5462
|
+
"required": false,
|
|
5463
|
+
"allowNo": false,
|
|
5464
|
+
"type": "boolean"
|
|
5465
|
+
},
|
|
5358
5466
|
"output": {
|
|
5359
5467
|
"char": "o",
|
|
5360
5468
|
"description": "Output format",
|
|
@@ -5369,27 +5477,9 @@
|
|
|
5369
5477
|
],
|
|
5370
5478
|
"type": "option"
|
|
5371
5479
|
},
|
|
5372
|
-
"page": {
|
|
5373
|
-
"description": "Page number for pagination",
|
|
5374
|
-
"name": "page",
|
|
5375
|
-
"required": false,
|
|
5376
|
-
"default": 1,
|
|
5377
|
-
"hasDynamicHelp": false,
|
|
5378
|
-
"multiple": false,
|
|
5379
|
-
"type": "option"
|
|
5380
|
-
},
|
|
5381
|
-
"per_page": {
|
|
5382
|
-
"description": "Number of results per page",
|
|
5383
|
-
"name": "per_page",
|
|
5384
|
-
"required": false,
|
|
5385
|
-
"default": 50,
|
|
5386
|
-
"hasDynamicHelp": false,
|
|
5387
|
-
"multiple": false,
|
|
5388
|
-
"type": "option"
|
|
5389
|
-
},
|
|
5390
5480
|
"workspace": {
|
|
5391
5481
|
"char": "w",
|
|
5392
|
-
"description": "Workspace ID (
|
|
5482
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5393
5483
|
"name": "workspace",
|
|
5394
5484
|
"required": false,
|
|
5395
5485
|
"hasDynamicHelp": false,
|
|
@@ -5399,7 +5489,7 @@
|
|
|
5399
5489
|
},
|
|
5400
5490
|
"hasDynamicHelp": false,
|
|
5401
5491
|
"hiddenAliases": [],
|
|
5402
|
-
"id": "
|
|
5492
|
+
"id": "tenant:backup:restore",
|
|
5403
5493
|
"pluginAlias": "@xano/cli",
|
|
5404
5494
|
"pluginName": "@xano/cli",
|
|
5405
5495
|
"pluginType": "core",
|
|
@@ -5409,9 +5499,9 @@
|
|
|
5409
5499
|
"relativePath": [
|
|
5410
5500
|
"dist",
|
|
5411
5501
|
"commands",
|
|
5412
|
-
"
|
|
5413
|
-
"
|
|
5414
|
-
"
|
|
5502
|
+
"tenant",
|
|
5503
|
+
"backup",
|
|
5504
|
+
"restore",
|
|
5415
5505
|
"index.js"
|
|
5416
5506
|
]
|
|
5417
5507
|
},
|
|
@@ -5484,102 +5574,13 @@
|
|
|
5484
5574
|
},
|
|
5485
5575
|
"name": {
|
|
5486
5576
|
"char": "n",
|
|
5487
|
-
"description": "Cluster name",
|
|
5488
|
-
"name": "name",
|
|
5489
|
-
"required": true,
|
|
5490
|
-
"hasDynamicHelp": false,
|
|
5491
|
-
"multiple": false,
|
|
5492
|
-
"type": "option"
|
|
5493
|
-
},
|
|
5494
|
-
"output": {
|
|
5495
|
-
"char": "o",
|
|
5496
|
-
"description": "Output format",
|
|
5497
|
-
"name": "output",
|
|
5498
|
-
"required": false,
|
|
5499
|
-
"default": "summary",
|
|
5500
|
-
"hasDynamicHelp": false,
|
|
5501
|
-
"multiple": false,
|
|
5502
|
-
"options": [
|
|
5503
|
-
"summary",
|
|
5504
|
-
"json"
|
|
5505
|
-
],
|
|
5506
|
-
"type": "option"
|
|
5507
|
-
},
|
|
5508
|
-
"type": {
|
|
5509
|
-
"description": "Cluster type",
|
|
5510
|
-
"name": "type",
|
|
5511
|
-
"required": false,
|
|
5512
|
-
"default": "standard",
|
|
5513
|
-
"hasDynamicHelp": false,
|
|
5514
|
-
"multiple": false,
|
|
5515
|
-
"options": [
|
|
5516
|
-
"standard",
|
|
5517
|
-
"run"
|
|
5518
|
-
],
|
|
5519
|
-
"type": "option"
|
|
5520
|
-
}
|
|
5521
|
-
},
|
|
5522
|
-
"hasDynamicHelp": false,
|
|
5523
|
-
"hiddenAliases": [],
|
|
5524
|
-
"id": "tenant:cluster:create",
|
|
5525
|
-
"pluginAlias": "@xano/cli",
|
|
5526
|
-
"pluginName": "@xano/cli",
|
|
5527
|
-
"pluginType": "core",
|
|
5528
|
-
"strict": true,
|
|
5529
|
-
"enableJsonFlag": false,
|
|
5530
|
-
"isESM": true,
|
|
5531
|
-
"relativePath": [
|
|
5532
|
-
"dist",
|
|
5533
|
-
"commands",
|
|
5534
|
-
"tenant",
|
|
5535
|
-
"cluster",
|
|
5536
|
-
"create",
|
|
5537
|
-
"index.js"
|
|
5538
|
-
]
|
|
5539
|
-
},
|
|
5540
|
-
"tenant:cluster:delete": {
|
|
5541
|
-
"aliases": [],
|
|
5542
|
-
"args": {
|
|
5543
|
-
"cluster_id": {
|
|
5544
|
-
"description": "Cluster ID to delete",
|
|
5545
|
-
"name": "cluster_id",
|
|
5546
|
-
"required": true
|
|
5547
|
-
}
|
|
5548
|
-
},
|
|
5549
|
-
"description": "Delete a tenant cluster. This action cannot be undone.",
|
|
5550
|
-
"examples": [
|
|
5551
|
-
"$ 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",
|
|
5552
|
-
"$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
|
|
5553
|
-
"$ xano tenant cluster delete 3 -f -o json"
|
|
5554
|
-
],
|
|
5555
|
-
"flags": {
|
|
5556
|
-
"profile": {
|
|
5557
|
-
"char": "p",
|
|
5558
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
5559
|
-
"env": "XANO_PROFILE",
|
|
5560
|
-
"name": "profile",
|
|
5561
|
-
"required": false,
|
|
5577
|
+
"description": "Cluster name",
|
|
5578
|
+
"name": "name",
|
|
5579
|
+
"required": true,
|
|
5562
5580
|
"hasDynamicHelp": false,
|
|
5563
5581
|
"multiple": false,
|
|
5564
5582
|
"type": "option"
|
|
5565
5583
|
},
|
|
5566
|
-
"verbose": {
|
|
5567
|
-
"char": "v",
|
|
5568
|
-
"description": "Show detailed request/response information",
|
|
5569
|
-
"env": "XANO_VERBOSE",
|
|
5570
|
-
"name": "verbose",
|
|
5571
|
-
"required": false,
|
|
5572
|
-
"allowNo": false,
|
|
5573
|
-
"type": "boolean"
|
|
5574
|
-
},
|
|
5575
|
-
"force": {
|
|
5576
|
-
"char": "f",
|
|
5577
|
-
"description": "Skip confirmation prompt",
|
|
5578
|
-
"name": "force",
|
|
5579
|
-
"required": false,
|
|
5580
|
-
"allowNo": false,
|
|
5581
|
-
"type": "boolean"
|
|
5582
|
-
},
|
|
5583
5584
|
"output": {
|
|
5584
5585
|
"char": "o",
|
|
5585
5586
|
"description": "Output format",
|
|
@@ -5593,11 +5594,24 @@
|
|
|
5593
5594
|
"json"
|
|
5594
5595
|
],
|
|
5595
5596
|
"type": "option"
|
|
5597
|
+
},
|
|
5598
|
+
"type": {
|
|
5599
|
+
"description": "Cluster type",
|
|
5600
|
+
"name": "type",
|
|
5601
|
+
"required": false,
|
|
5602
|
+
"default": "standard",
|
|
5603
|
+
"hasDynamicHelp": false,
|
|
5604
|
+
"multiple": false,
|
|
5605
|
+
"options": [
|
|
5606
|
+
"standard",
|
|
5607
|
+
"run"
|
|
5608
|
+
],
|
|
5609
|
+
"type": "option"
|
|
5596
5610
|
}
|
|
5597
5611
|
},
|
|
5598
5612
|
"hasDynamicHelp": false,
|
|
5599
5613
|
"hiddenAliases": [],
|
|
5600
|
-
"id": "tenant:cluster:
|
|
5614
|
+
"id": "tenant:cluster:create",
|
|
5601
5615
|
"pluginAlias": "@xano/cli",
|
|
5602
5616
|
"pluginName": "@xano/cli",
|
|
5603
5617
|
"pluginType": "core",
|
|
@@ -5609,7 +5623,7 @@
|
|
|
5609
5623
|
"commands",
|
|
5610
5624
|
"tenant",
|
|
5611
5625
|
"cluster",
|
|
5612
|
-
"
|
|
5626
|
+
"create",
|
|
5613
5627
|
"index.js"
|
|
5614
5628
|
]
|
|
5615
5629
|
},
|
|
@@ -6119,19 +6133,20 @@
|
|
|
6119
6133
|
"index.js"
|
|
6120
6134
|
]
|
|
6121
6135
|
},
|
|
6122
|
-
"tenant:
|
|
6136
|
+
"tenant:cluster:delete": {
|
|
6123
6137
|
"aliases": [],
|
|
6124
6138
|
"args": {
|
|
6125
|
-
"
|
|
6126
|
-
"description": "
|
|
6127
|
-
"name": "
|
|
6139
|
+
"cluster_id": {
|
|
6140
|
+
"description": "Cluster ID to delete",
|
|
6141
|
+
"name": "cluster_id",
|
|
6128
6142
|
"required": true
|
|
6129
6143
|
}
|
|
6130
6144
|
},
|
|
6131
|
-
"description": "
|
|
6145
|
+
"description": "Delete a tenant cluster. This action cannot be undone.",
|
|
6132
6146
|
"examples": [
|
|
6133
|
-
"$ xano tenant
|
|
6134
|
-
"$ xano tenant
|
|
6147
|
+
"$ 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",
|
|
6148
|
+
"$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
|
|
6149
|
+
"$ xano tenant cluster delete 3 -f -o json"
|
|
6135
6150
|
],
|
|
6136
6151
|
"flags": {
|
|
6137
6152
|
"profile": {
|
|
@@ -6153,6 +6168,14 @@
|
|
|
6153
6168
|
"allowNo": false,
|
|
6154
6169
|
"type": "boolean"
|
|
6155
6170
|
},
|
|
6171
|
+
"force": {
|
|
6172
|
+
"char": "f",
|
|
6173
|
+
"description": "Skip confirmation prompt",
|
|
6174
|
+
"name": "force",
|
|
6175
|
+
"required": false,
|
|
6176
|
+
"allowNo": false,
|
|
6177
|
+
"type": "boolean"
|
|
6178
|
+
},
|
|
6156
6179
|
"output": {
|
|
6157
6180
|
"char": "o",
|
|
6158
6181
|
"description": "Output format",
|
|
@@ -6166,20 +6189,11 @@
|
|
|
6166
6189
|
"json"
|
|
6167
6190
|
],
|
|
6168
6191
|
"type": "option"
|
|
6169
|
-
},
|
|
6170
|
-
"workspace": {
|
|
6171
|
-
"char": "w",
|
|
6172
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6173
|
-
"name": "workspace",
|
|
6174
|
-
"required": false,
|
|
6175
|
-
"hasDynamicHelp": false,
|
|
6176
|
-
"multiple": false,
|
|
6177
|
-
"type": "option"
|
|
6178
6192
|
}
|
|
6179
6193
|
},
|
|
6180
6194
|
"hasDynamicHelp": false,
|
|
6181
6195
|
"hiddenAliases": [],
|
|
6182
|
-
"id": "tenant:
|
|
6196
|
+
"id": "tenant:cluster:delete",
|
|
6183
6197
|
"pluginAlias": "@xano/cli",
|
|
6184
6198
|
"pluginName": "@xano/cli",
|
|
6185
6199
|
"pluginType": "core",
|
|
@@ -6190,12 +6204,12 @@
|
|
|
6190
6204
|
"dist",
|
|
6191
6205
|
"commands",
|
|
6192
6206
|
"tenant",
|
|
6193
|
-
"
|
|
6194
|
-
"
|
|
6207
|
+
"cluster",
|
|
6208
|
+
"delete",
|
|
6195
6209
|
"index.js"
|
|
6196
6210
|
]
|
|
6197
6211
|
},
|
|
6198
|
-
"tenant:env:
|
|
6212
|
+
"tenant:env:list": {
|
|
6199
6213
|
"aliases": [],
|
|
6200
6214
|
"args": {
|
|
6201
6215
|
"tenant_name": {
|
|
@@ -6204,10 +6218,10 @@
|
|
|
6204
6218
|
"required": true
|
|
6205
6219
|
}
|
|
6206
6220
|
},
|
|
6207
|
-
"description": "
|
|
6221
|
+
"description": "List environment variable keys for a tenant",
|
|
6208
6222
|
"examples": [
|
|
6209
|
-
"$ xano tenant env
|
|
6210
|
-
"$ xano tenant env
|
|
6223
|
+
"$ xano tenant env list my-tenant\nEnvironment variables for tenant my-tenant:\n - DATABASE_URL\n - API_KEY\n - SECRET_TOKEN\n",
|
|
6224
|
+
"$ xano tenant env list my-tenant -w 5 -o json"
|
|
6211
6225
|
],
|
|
6212
6226
|
"flags": {
|
|
6213
6227
|
"profile": {
|
|
@@ -6229,15 +6243,6 @@
|
|
|
6229
6243
|
"allowNo": false,
|
|
6230
6244
|
"type": "boolean"
|
|
6231
6245
|
},
|
|
6232
|
-
"name": {
|
|
6233
|
-
"char": "n",
|
|
6234
|
-
"description": "Environment variable name",
|
|
6235
|
-
"name": "name",
|
|
6236
|
-
"required": true,
|
|
6237
|
-
"hasDynamicHelp": false,
|
|
6238
|
-
"multiple": false,
|
|
6239
|
-
"type": "option"
|
|
6240
|
-
},
|
|
6241
6246
|
"output": {
|
|
6242
6247
|
"char": "o",
|
|
6243
6248
|
"description": "Output format",
|
|
@@ -6252,14 +6257,6 @@
|
|
|
6252
6257
|
],
|
|
6253
6258
|
"type": "option"
|
|
6254
6259
|
},
|
|
6255
|
-
"value": {
|
|
6256
|
-
"description": "Environment variable value",
|
|
6257
|
-
"name": "value",
|
|
6258
|
-
"required": true,
|
|
6259
|
-
"hasDynamicHelp": false,
|
|
6260
|
-
"multiple": false,
|
|
6261
|
-
"type": "option"
|
|
6262
|
-
},
|
|
6263
6260
|
"workspace": {
|
|
6264
6261
|
"char": "w",
|
|
6265
6262
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6272,7 +6269,7 @@
|
|
|
6272
6269
|
},
|
|
6273
6270
|
"hasDynamicHelp": false,
|
|
6274
6271
|
"hiddenAliases": [],
|
|
6275
|
-
"id": "tenant:env:
|
|
6272
|
+
"id": "tenant:env:list",
|
|
6276
6273
|
"pluginAlias": "@xano/cli",
|
|
6277
6274
|
"pluginName": "@xano/cli",
|
|
6278
6275
|
"pluginType": "core",
|
|
@@ -6284,7 +6281,7 @@
|
|
|
6284
6281
|
"commands",
|
|
6285
6282
|
"tenant",
|
|
6286
6283
|
"env",
|
|
6287
|
-
"
|
|
6284
|
+
"list",
|
|
6288
6285
|
"index.js"
|
|
6289
6286
|
]
|
|
6290
6287
|
},
|
|
@@ -6381,7 +6378,7 @@
|
|
|
6381
6378
|
"index.js"
|
|
6382
6379
|
]
|
|
6383
6380
|
},
|
|
6384
|
-
"tenant:
|
|
6381
|
+
"tenant:env:set": {
|
|
6385
6382
|
"aliases": [],
|
|
6386
6383
|
"args": {
|
|
6387
6384
|
"tenant_name": {
|
|
@@ -6390,12 +6387,10 @@
|
|
|
6390
6387
|
"required": true
|
|
6391
6388
|
}
|
|
6392
6389
|
},
|
|
6393
|
-
"description": "
|
|
6390
|
+
"description": "Set (create or update) an environment variable for a tenant",
|
|
6394
6391
|
"examples": [
|
|
6395
|
-
"$ xano tenant
|
|
6396
|
-
"$ xano tenant
|
|
6397
|
-
"$ xano tenant license get my-tenant --view",
|
|
6398
|
-
"$ xano tenant license get my-tenant -o json"
|
|
6392
|
+
"$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
|
|
6393
|
+
"$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
|
|
6399
6394
|
],
|
|
6400
6395
|
"flags": {
|
|
6401
6396
|
"profile": {
|
|
@@ -6417,11 +6412,11 @@
|
|
|
6417
6412
|
"allowNo": false,
|
|
6418
6413
|
"type": "boolean"
|
|
6419
6414
|
},
|
|
6420
|
-
"
|
|
6421
|
-
"char": "
|
|
6422
|
-
"description": "
|
|
6423
|
-
"name": "
|
|
6424
|
-
"required":
|
|
6415
|
+
"name": {
|
|
6416
|
+
"char": "n",
|
|
6417
|
+
"description": "Environment variable name",
|
|
6418
|
+
"name": "name",
|
|
6419
|
+
"required": true,
|
|
6425
6420
|
"hasDynamicHelp": false,
|
|
6426
6421
|
"multiple": false,
|
|
6427
6422
|
"type": "option"
|
|
@@ -6440,12 +6435,13 @@
|
|
|
6440
6435
|
],
|
|
6441
6436
|
"type": "option"
|
|
6442
6437
|
},
|
|
6443
|
-
"
|
|
6444
|
-
"description": "
|
|
6445
|
-
"name": "
|
|
6446
|
-
"required":
|
|
6447
|
-
"
|
|
6448
|
-
"
|
|
6438
|
+
"value": {
|
|
6439
|
+
"description": "Environment variable value",
|
|
6440
|
+
"name": "value",
|
|
6441
|
+
"required": true,
|
|
6442
|
+
"hasDynamicHelp": false,
|
|
6443
|
+
"multiple": false,
|
|
6444
|
+
"type": "option"
|
|
6449
6445
|
},
|
|
6450
6446
|
"workspace": {
|
|
6451
6447
|
"char": "w",
|
|
@@ -6459,7 +6455,7 @@
|
|
|
6459
6455
|
},
|
|
6460
6456
|
"hasDynamicHelp": false,
|
|
6461
6457
|
"hiddenAliases": [],
|
|
6462
|
-
"id": "tenant:
|
|
6458
|
+
"id": "tenant:env:set",
|
|
6463
6459
|
"pluginAlias": "@xano/cli",
|
|
6464
6460
|
"pluginName": "@xano/cli",
|
|
6465
6461
|
"pluginType": "core",
|
|
@@ -6470,12 +6466,12 @@
|
|
|
6470
6466
|
"dist",
|
|
6471
6467
|
"commands",
|
|
6472
6468
|
"tenant",
|
|
6473
|
-
"
|
|
6474
|
-
"
|
|
6469
|
+
"env",
|
|
6470
|
+
"set",
|
|
6475
6471
|
"index.js"
|
|
6476
6472
|
]
|
|
6477
6473
|
},
|
|
6478
|
-
"tenant:license:
|
|
6474
|
+
"tenant:license:get": {
|
|
6479
6475
|
"aliases": [],
|
|
6480
6476
|
"args": {
|
|
6481
6477
|
"tenant_name": {
|
|
@@ -6484,12 +6480,12 @@
|
|
|
6484
6480
|
"required": true
|
|
6485
6481
|
}
|
|
6486
6482
|
},
|
|
6487
|
-
"description": "
|
|
6483
|
+
"description": "Get the license for a tenant",
|
|
6488
6484
|
"examples": [
|
|
6489
|
-
"$ xano tenant license
|
|
6490
|
-
"$ xano tenant license
|
|
6491
|
-
"$ xano tenant license
|
|
6492
|
-
"$ xano tenant license
|
|
6485
|
+
"$ xano tenant license get my-tenant\nLicense saved to license_my-tenant.yaml\n",
|
|
6486
|
+
"$ xano tenant license get my-tenant --file ./my-license.yaml\nLicense saved to my-license.yaml\n",
|
|
6487
|
+
"$ xano tenant license get my-tenant --view",
|
|
6488
|
+
"$ xano tenant license get my-tenant -o json"
|
|
6493
6489
|
],
|
|
6494
6490
|
"flags": {
|
|
6495
6491
|
"profile": {
|
|
@@ -6511,22 +6507,9 @@
|
|
|
6511
6507
|
"allowNo": false,
|
|
6512
6508
|
"type": "boolean"
|
|
6513
6509
|
},
|
|
6514
|
-
"clean": {
|
|
6515
|
-
"description": "Remove the source file after successful upload",
|
|
6516
|
-
"exclusive": [
|
|
6517
|
-
"value"
|
|
6518
|
-
],
|
|
6519
|
-
"name": "clean",
|
|
6520
|
-
"required": false,
|
|
6521
|
-
"allowNo": false,
|
|
6522
|
-
"type": "boolean"
|
|
6523
|
-
},
|
|
6524
6510
|
"file": {
|
|
6525
6511
|
"char": "f",
|
|
6526
|
-
"description": "
|
|
6527
|
-
"exclusive": [
|
|
6528
|
-
"value"
|
|
6529
|
-
],
|
|
6512
|
+
"description": "Output file path (default: license_<tenant_name>.yaml)",
|
|
6530
6513
|
"name": "file",
|
|
6531
6514
|
"required": false,
|
|
6532
6515
|
"hasDynamicHelp": false,
|
|
@@ -6547,17 +6530,12 @@
|
|
|
6547
6530
|
],
|
|
6548
6531
|
"type": "option"
|
|
6549
6532
|
},
|
|
6550
|
-
"
|
|
6551
|
-
"description": "
|
|
6552
|
-
"
|
|
6553
|
-
"file",
|
|
6554
|
-
"clean"
|
|
6555
|
-
],
|
|
6556
|
-
"name": "value",
|
|
6533
|
+
"view": {
|
|
6534
|
+
"description": "Print license to stdout instead of saving to file",
|
|
6535
|
+
"name": "view",
|
|
6557
6536
|
"required": false,
|
|
6558
|
-
"
|
|
6559
|
-
"
|
|
6560
|
-
"type": "option"
|
|
6537
|
+
"allowNo": false,
|
|
6538
|
+
"type": "boolean"
|
|
6561
6539
|
},
|
|
6562
6540
|
"workspace": {
|
|
6563
6541
|
"char": "w",
|
|
@@ -6571,7 +6549,7 @@
|
|
|
6571
6549
|
},
|
|
6572
6550
|
"hasDynamicHelp": false,
|
|
6573
6551
|
"hiddenAliases": [],
|
|
6574
|
-
"id": "tenant:license:
|
|
6552
|
+
"id": "tenant:license:get",
|
|
6575
6553
|
"pluginAlias": "@xano/cli",
|
|
6576
6554
|
"pluginName": "@xano/cli",
|
|
6577
6555
|
"pluginType": "core",
|
|
@@ -6583,30 +6561,25 @@
|
|
|
6583
6561
|
"commands",
|
|
6584
6562
|
"tenant",
|
|
6585
6563
|
"license",
|
|
6586
|
-
"
|
|
6564
|
+
"get",
|
|
6587
6565
|
"index.js"
|
|
6588
6566
|
]
|
|
6589
6567
|
},
|
|
6590
|
-
"
|
|
6568
|
+
"tenant:license:set": {
|
|
6591
6569
|
"aliases": [],
|
|
6592
6570
|
"args": {
|
|
6593
|
-
"
|
|
6594
|
-
"description": "
|
|
6595
|
-
"name": "
|
|
6596
|
-
"required": true
|
|
6597
|
-
},
|
|
6598
|
-
"static_host": {
|
|
6599
|
-
"description": "Static Host name",
|
|
6600
|
-
"name": "static_host",
|
|
6571
|
+
"tenant_name": {
|
|
6572
|
+
"description": "Tenant name",
|
|
6573
|
+
"name": "tenant_name",
|
|
6601
6574
|
"required": true
|
|
6602
6575
|
}
|
|
6603
6576
|
},
|
|
6604
|
-
"description": "
|
|
6577
|
+
"description": "Set/update the license for a tenant",
|
|
6605
6578
|
"examples": [
|
|
6606
|
-
"$ xano
|
|
6607
|
-
"$ xano
|
|
6608
|
-
"$ xano
|
|
6609
|
-
"$ xano
|
|
6579
|
+
"$ xano tenant license set my-tenant\nReads from license_my-tenant.yaml\n",
|
|
6580
|
+
"$ xano tenant license set my-tenant --file ./license.yaml",
|
|
6581
|
+
"$ xano tenant license set my-tenant --value 'key: value'",
|
|
6582
|
+
"$ xano tenant license set my-tenant -o json"
|
|
6610
6583
|
],
|
|
6611
6584
|
"flags": {
|
|
6612
6585
|
"profile": {
|
|
@@ -6628,6 +6601,28 @@
|
|
|
6628
6601
|
"allowNo": false,
|
|
6629
6602
|
"type": "boolean"
|
|
6630
6603
|
},
|
|
6604
|
+
"clean": {
|
|
6605
|
+
"description": "Remove the source file after successful upload",
|
|
6606
|
+
"exclusive": [
|
|
6607
|
+
"value"
|
|
6608
|
+
],
|
|
6609
|
+
"name": "clean",
|
|
6610
|
+
"required": false,
|
|
6611
|
+
"allowNo": false,
|
|
6612
|
+
"type": "boolean"
|
|
6613
|
+
},
|
|
6614
|
+
"file": {
|
|
6615
|
+
"char": "f",
|
|
6616
|
+
"description": "Path to license file (default: license_<tenant_name>.yaml)",
|
|
6617
|
+
"exclusive": [
|
|
6618
|
+
"value"
|
|
6619
|
+
],
|
|
6620
|
+
"name": "file",
|
|
6621
|
+
"required": false,
|
|
6622
|
+
"hasDynamicHelp": false,
|
|
6623
|
+
"multiple": false,
|
|
6624
|
+
"type": "option"
|
|
6625
|
+
},
|
|
6631
6626
|
"output": {
|
|
6632
6627
|
"char": "o",
|
|
6633
6628
|
"description": "Output format",
|
|
@@ -6642,9 +6637,21 @@
|
|
|
6642
6637
|
],
|
|
6643
6638
|
"type": "option"
|
|
6644
6639
|
},
|
|
6640
|
+
"value": {
|
|
6641
|
+
"description": "Inline license value",
|
|
6642
|
+
"exclusive": [
|
|
6643
|
+
"file",
|
|
6644
|
+
"clean"
|
|
6645
|
+
],
|
|
6646
|
+
"name": "value",
|
|
6647
|
+
"required": false,
|
|
6648
|
+
"hasDynamicHelp": false,
|
|
6649
|
+
"multiple": false,
|
|
6650
|
+
"type": "option"
|
|
6651
|
+
},
|
|
6645
6652
|
"workspace": {
|
|
6646
6653
|
"char": "w",
|
|
6647
|
-
"description": "Workspace ID (
|
|
6654
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6648
6655
|
"name": "workspace",
|
|
6649
6656
|
"required": false,
|
|
6650
6657
|
"hasDynamicHelp": false,
|
|
@@ -6654,7 +6661,7 @@
|
|
|
6654
6661
|
},
|
|
6655
6662
|
"hasDynamicHelp": false,
|
|
6656
6663
|
"hiddenAliases": [],
|
|
6657
|
-
"id": "
|
|
6664
|
+
"id": "tenant:license:set",
|
|
6658
6665
|
"pluginAlias": "@xano/cli",
|
|
6659
6666
|
"pluginName": "@xano/cli",
|
|
6660
6667
|
"pluginType": "core",
|
|
@@ -6664,9 +6671,9 @@
|
|
|
6664
6671
|
"relativePath": [
|
|
6665
6672
|
"dist",
|
|
6666
6673
|
"commands",
|
|
6667
|
-
"
|
|
6668
|
-
"
|
|
6669
|
-
"
|
|
6674
|
+
"tenant",
|
|
6675
|
+
"license",
|
|
6676
|
+
"set",
|
|
6670
6677
|
"index.js"
|
|
6671
6678
|
]
|
|
6672
6679
|
},
|
|
@@ -6861,5 +6868,5 @@
|
|
|
6861
6868
|
]
|
|
6862
6869
|
}
|
|
6863
6870
|
},
|
|
6864
|
-
"version": "0.0.
|
|
6871
|
+
"version": "0.0.41"
|
|
6865
6872
|
}
|