@xano/cli 0.0.33 → 0.0.35
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/unit_test/list/index.d.ts +15 -0
- package/dist/commands/unit_test/list/index.js +137 -0
- package/dist/commands/unit_test/run/index.d.ts +16 -0
- package/dist/commands/unit_test/run/index.js +121 -0
- package/dist/commands/unit_test/run_all/index.d.ts +15 -0
- package/dist/commands/unit_test/run_all/index.js +216 -0
- package/dist/commands/workflow_test/delete/index.d.ts +21 -0
- package/dist/commands/workflow_test/delete/index.js +130 -0
- package/dist/commands/workflow_test/get/index.d.ts +20 -0
- package/dist/commands/workflow_test/get/index.js +142 -0
- package/dist/commands/workflow_test/list/index.d.ts +14 -0
- package/dist/commands/workflow_test/list/index.js +129 -0
- package/dist/commands/workflow_test/run/index.d.ts +19 -0
- package/dist/commands/workflow_test/run/index.js +119 -0
- package/dist/commands/workflow_test/run_all/index.d.ts +14 -0
- package/dist/commands/workflow_test/run_all/index.js +204 -0
- package/oclif.manifest.json +1983 -1326
- package/package.json +7 -1
- /package/dist/commands/branch/{set-live → set_live}/index.d.ts +0 -0
- /package/dist/commands/branch/{set-live → set_live}/index.js +0 -0
- /package/dist/commands/profile/{get-default → get_default}/index.d.ts +0 -0
- /package/dist/commands/profile/{get-default → get_default}/index.js +0 -0
- /package/dist/commands/profile/{set-default → set_default}/index.d.ts +0 -0
- /package/dist/commands/profile/{set-default → set_default}/index.js +0 -0
- /package/dist/commands/tenant/{deploy-platform → deploy_platform}/index.d.ts +0 -0
- /package/dist/commands/tenant/{deploy-platform → deploy_platform}/index.js +0 -0
- /package/dist/commands/tenant/{deploy-release → deploy_release}/index.d.ts +0 -0
- /package/dist/commands/tenant/{deploy-release → deploy_release}/index.js +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -226,157 +226,6 @@
|
|
|
226
226
|
"index.js"
|
|
227
227
|
]
|
|
228
228
|
},
|
|
229
|
-
"branch:list": {
|
|
230
|
-
"aliases": [],
|
|
231
|
-
"args": {
|
|
232
|
-
"workspace_id": {
|
|
233
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
234
|
-
"name": "workspace_id",
|
|
235
|
-
"required": false
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
"description": "List all branches in a workspace",
|
|
239
|
-
"examples": [
|
|
240
|
-
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
241
|
-
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
242
|
-
"$ 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"
|
|
243
|
-
],
|
|
244
|
-
"flags": {
|
|
245
|
-
"profile": {
|
|
246
|
-
"char": "p",
|
|
247
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
248
|
-
"env": "XANO_PROFILE",
|
|
249
|
-
"name": "profile",
|
|
250
|
-
"required": false,
|
|
251
|
-
"hasDynamicHelp": false,
|
|
252
|
-
"multiple": false,
|
|
253
|
-
"type": "option"
|
|
254
|
-
},
|
|
255
|
-
"verbose": {
|
|
256
|
-
"char": "v",
|
|
257
|
-
"description": "Show detailed request/response information",
|
|
258
|
-
"env": "XANO_VERBOSE",
|
|
259
|
-
"name": "verbose",
|
|
260
|
-
"required": false,
|
|
261
|
-
"allowNo": false,
|
|
262
|
-
"type": "boolean"
|
|
263
|
-
},
|
|
264
|
-
"output": {
|
|
265
|
-
"char": "o",
|
|
266
|
-
"description": "Output format",
|
|
267
|
-
"name": "output",
|
|
268
|
-
"required": false,
|
|
269
|
-
"default": "summary",
|
|
270
|
-
"hasDynamicHelp": false,
|
|
271
|
-
"multiple": false,
|
|
272
|
-
"options": [
|
|
273
|
-
"summary",
|
|
274
|
-
"json"
|
|
275
|
-
],
|
|
276
|
-
"type": "option"
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
"hasDynamicHelp": false,
|
|
280
|
-
"hiddenAliases": [],
|
|
281
|
-
"id": "branch:list",
|
|
282
|
-
"pluginAlias": "@xano/cli",
|
|
283
|
-
"pluginName": "@xano/cli",
|
|
284
|
-
"pluginType": "core",
|
|
285
|
-
"strict": true,
|
|
286
|
-
"enableJsonFlag": false,
|
|
287
|
-
"isESM": true,
|
|
288
|
-
"relativePath": [
|
|
289
|
-
"dist",
|
|
290
|
-
"commands",
|
|
291
|
-
"branch",
|
|
292
|
-
"list",
|
|
293
|
-
"index.js"
|
|
294
|
-
]
|
|
295
|
-
},
|
|
296
|
-
"branch:set-live": {
|
|
297
|
-
"aliases": [],
|
|
298
|
-
"args": {
|
|
299
|
-
"branch_label": {
|
|
300
|
-
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
301
|
-
"name": "branch_label",
|
|
302
|
-
"required": true
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
"description": "Set a branch as the live (active) branch for API requests",
|
|
306
|
-
"examples": [
|
|
307
|
-
"$ xano branch set-live staging\nAre you sure you want to set 'staging' as the live branch? (y/N) y\nBranch 'staging' is now live\n",
|
|
308
|
-
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
309
|
-
"$ xano branch set-live production -f -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"production\",\n \"backup\": false,\n \"live\": true\n}\n"
|
|
310
|
-
],
|
|
311
|
-
"flags": {
|
|
312
|
-
"profile": {
|
|
313
|
-
"char": "p",
|
|
314
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
315
|
-
"env": "XANO_PROFILE",
|
|
316
|
-
"name": "profile",
|
|
317
|
-
"required": false,
|
|
318
|
-
"hasDynamicHelp": false,
|
|
319
|
-
"multiple": false,
|
|
320
|
-
"type": "option"
|
|
321
|
-
},
|
|
322
|
-
"verbose": {
|
|
323
|
-
"char": "v",
|
|
324
|
-
"description": "Show detailed request/response information",
|
|
325
|
-
"env": "XANO_VERBOSE",
|
|
326
|
-
"name": "verbose",
|
|
327
|
-
"required": false,
|
|
328
|
-
"allowNo": false,
|
|
329
|
-
"type": "boolean"
|
|
330
|
-
},
|
|
331
|
-
"force": {
|
|
332
|
-
"char": "f",
|
|
333
|
-
"description": "Skip confirmation prompt",
|
|
334
|
-
"name": "force",
|
|
335
|
-
"required": false,
|
|
336
|
-
"allowNo": false,
|
|
337
|
-
"type": "boolean"
|
|
338
|
-
},
|
|
339
|
-
"output": {
|
|
340
|
-
"char": "o",
|
|
341
|
-
"description": "Output format",
|
|
342
|
-
"name": "output",
|
|
343
|
-
"required": false,
|
|
344
|
-
"default": "summary",
|
|
345
|
-
"hasDynamicHelp": false,
|
|
346
|
-
"multiple": false,
|
|
347
|
-
"options": [
|
|
348
|
-
"summary",
|
|
349
|
-
"json"
|
|
350
|
-
],
|
|
351
|
-
"type": "option"
|
|
352
|
-
},
|
|
353
|
-
"workspace": {
|
|
354
|
-
"char": "w",
|
|
355
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
356
|
-
"name": "workspace",
|
|
357
|
-
"required": false,
|
|
358
|
-
"hasDynamicHelp": false,
|
|
359
|
-
"multiple": false,
|
|
360
|
-
"type": "option"
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
"hasDynamicHelp": false,
|
|
364
|
-
"hiddenAliases": [],
|
|
365
|
-
"id": "branch:set-live",
|
|
366
|
-
"pluginAlias": "@xano/cli",
|
|
367
|
-
"pluginName": "@xano/cli",
|
|
368
|
-
"pluginType": "core",
|
|
369
|
-
"strict": true,
|
|
370
|
-
"enableJsonFlag": false,
|
|
371
|
-
"isESM": true,
|
|
372
|
-
"relativePath": [
|
|
373
|
-
"dist",
|
|
374
|
-
"commands",
|
|
375
|
-
"branch",
|
|
376
|
-
"set-live",
|
|
377
|
-
"index.js"
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
229
|
"branch:edit": {
|
|
381
230
|
"aliases": [],
|
|
382
231
|
"args": {
|
|
@@ -556,19 +405,20 @@
|
|
|
556
405
|
"index.js"
|
|
557
406
|
]
|
|
558
407
|
},
|
|
559
|
-
"
|
|
408
|
+
"branch:list": {
|
|
560
409
|
"aliases": [],
|
|
561
410
|
"args": {
|
|
562
|
-
"
|
|
563
|
-
"description": "
|
|
564
|
-
"name": "
|
|
565
|
-
"required":
|
|
411
|
+
"workspace_id": {
|
|
412
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
413
|
+
"name": "workspace_id",
|
|
414
|
+
"required": false
|
|
566
415
|
}
|
|
567
416
|
},
|
|
568
|
-
"description": "
|
|
417
|
+
"description": "List all branches in a workspace",
|
|
569
418
|
"examples": [
|
|
570
|
-
"$ xano
|
|
571
|
-
"$ xano
|
|
419
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
420
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
421
|
+
"$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
|
|
572
422
|
],
|
|
573
423
|
"flags": {
|
|
574
424
|
"profile": {
|
|
@@ -607,7 +457,7 @@
|
|
|
607
457
|
},
|
|
608
458
|
"hasDynamicHelp": false,
|
|
609
459
|
"hiddenAliases": [],
|
|
610
|
-
"id": "
|
|
460
|
+
"id": "branch:list",
|
|
611
461
|
"pluginAlias": "@xano/cli",
|
|
612
462
|
"pluginName": "@xano/cli",
|
|
613
463
|
"pluginType": "core",
|
|
@@ -617,18 +467,25 @@
|
|
|
617
467
|
"relativePath": [
|
|
618
468
|
"dist",
|
|
619
469
|
"commands",
|
|
620
|
-
"
|
|
621
|
-
"
|
|
470
|
+
"branch",
|
|
471
|
+
"list",
|
|
622
472
|
"index.js"
|
|
623
473
|
]
|
|
624
474
|
},
|
|
625
|
-
"
|
|
475
|
+
"branch:set_live": {
|
|
626
476
|
"aliases": [],
|
|
627
|
-
"args": {
|
|
628
|
-
|
|
477
|
+
"args": {
|
|
478
|
+
"branch_label": {
|
|
479
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
480
|
+
"name": "branch_label",
|
|
481
|
+
"required": true
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
629
485
|
"examples": [
|
|
630
|
-
"$ xano
|
|
631
|
-
"$ xano
|
|
486
|
+
"$ xano branch set-live staging\nAre you sure you want to set 'staging' as the live branch? (y/N) y\nBranch 'staging' is now live\n",
|
|
487
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
488
|
+
"$ xano branch set-live production -f -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"production\",\n \"backup\": false,\n \"live\": true\n}\n"
|
|
632
489
|
],
|
|
633
490
|
"flags": {
|
|
634
491
|
"profile": {
|
|
@@ -650,6 +507,14 @@
|
|
|
650
507
|
"allowNo": false,
|
|
651
508
|
"type": "boolean"
|
|
652
509
|
},
|
|
510
|
+
"force": {
|
|
511
|
+
"char": "f",
|
|
512
|
+
"description": "Skip confirmation prompt",
|
|
513
|
+
"name": "force",
|
|
514
|
+
"required": false,
|
|
515
|
+
"allowNo": false,
|
|
516
|
+
"type": "boolean"
|
|
517
|
+
},
|
|
653
518
|
"output": {
|
|
654
519
|
"char": "o",
|
|
655
520
|
"description": "Output format",
|
|
@@ -663,11 +528,20 @@
|
|
|
663
528
|
"json"
|
|
664
529
|
],
|
|
665
530
|
"type": "option"
|
|
531
|
+
},
|
|
532
|
+
"workspace": {
|
|
533
|
+
"char": "w",
|
|
534
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
535
|
+
"name": "workspace",
|
|
536
|
+
"required": false,
|
|
537
|
+
"hasDynamicHelp": false,
|
|
538
|
+
"multiple": false,
|
|
539
|
+
"type": "option"
|
|
666
540
|
}
|
|
667
541
|
},
|
|
668
542
|
"hasDynamicHelp": false,
|
|
669
543
|
"hiddenAliases": [],
|
|
670
|
-
"id": "
|
|
544
|
+
"id": "branch:set_live",
|
|
671
545
|
"pluginAlias": "@xano/cli",
|
|
672
546
|
"pluginName": "@xano/cli",
|
|
673
547
|
"pluginType": "core",
|
|
@@ -677,28 +551,21 @@
|
|
|
677
551
|
"relativePath": [
|
|
678
552
|
"dist",
|
|
679
553
|
"commands",
|
|
680
|
-
"
|
|
681
|
-
"
|
|
554
|
+
"branch",
|
|
555
|
+
"set_live",
|
|
682
556
|
"index.js"
|
|
683
557
|
]
|
|
684
558
|
},
|
|
685
|
-
"function:
|
|
559
|
+
"function:create": {
|
|
686
560
|
"aliases": [],
|
|
687
|
-
"args": {
|
|
688
|
-
|
|
689
|
-
"description": "Function ID",
|
|
690
|
-
"name": "function_id",
|
|
691
|
-
"required": false
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
"description": "Get a specific function from a workspace",
|
|
561
|
+
"args": {},
|
|
562
|
+
"description": "Create a new function in a workspace",
|
|
695
563
|
"examples": [
|
|
696
|
-
"$ xano function:
|
|
697
|
-
"$ xano function:
|
|
698
|
-
"$ xano function:
|
|
699
|
-
"$ xano function:
|
|
700
|
-
"$ xano function:
|
|
701
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
564
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
565
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
566
|
+
"$ 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",
|
|
567
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
568
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
702
569
|
],
|
|
703
570
|
"flags": {
|
|
704
571
|
"profile": {
|
|
@@ -720,19 +587,28 @@
|
|
|
720
587
|
"allowNo": false,
|
|
721
588
|
"type": "boolean"
|
|
722
589
|
},
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
"
|
|
590
|
+
"edit": {
|
|
591
|
+
"char": "e",
|
|
592
|
+
"dependsOn": [
|
|
593
|
+
"file"
|
|
594
|
+
],
|
|
595
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
596
|
+
"name": "edit",
|
|
726
597
|
"required": false,
|
|
727
598
|
"allowNo": false,
|
|
728
599
|
"type": "boolean"
|
|
729
600
|
},
|
|
730
|
-
"
|
|
731
|
-
"
|
|
732
|
-
"
|
|
601
|
+
"file": {
|
|
602
|
+
"char": "f",
|
|
603
|
+
"description": "Path to file containing XanoScript code",
|
|
604
|
+
"exclusive": [
|
|
605
|
+
"stdin"
|
|
606
|
+
],
|
|
607
|
+
"name": "file",
|
|
733
608
|
"required": false,
|
|
734
|
-
"
|
|
735
|
-
"
|
|
609
|
+
"hasDynamicHelp": false,
|
|
610
|
+
"multiple": false,
|
|
611
|
+
"type": "option"
|
|
736
612
|
},
|
|
737
613
|
"output": {
|
|
738
614
|
"char": "o",
|
|
@@ -744,11 +620,21 @@
|
|
|
744
620
|
"multiple": false,
|
|
745
621
|
"options": [
|
|
746
622
|
"summary",
|
|
747
|
-
"json"
|
|
748
|
-
"xs"
|
|
623
|
+
"json"
|
|
749
624
|
],
|
|
750
625
|
"type": "option"
|
|
751
626
|
},
|
|
627
|
+
"stdin": {
|
|
628
|
+
"char": "s",
|
|
629
|
+
"description": "Read XanoScript code from stdin",
|
|
630
|
+
"exclusive": [
|
|
631
|
+
"file"
|
|
632
|
+
],
|
|
633
|
+
"name": "stdin",
|
|
634
|
+
"required": false,
|
|
635
|
+
"allowNo": false,
|
|
636
|
+
"type": "boolean"
|
|
637
|
+
},
|
|
752
638
|
"workspace": {
|
|
753
639
|
"char": "w",
|
|
754
640
|
"description": "Workspace ID (optional if set in profile)",
|
|
@@ -761,7 +647,7 @@
|
|
|
761
647
|
},
|
|
762
648
|
"hasDynamicHelp": false,
|
|
763
649
|
"hiddenAliases": [],
|
|
764
|
-
"id": "function:
|
|
650
|
+
"id": "function:create",
|
|
765
651
|
"pluginAlias": "@xano/cli",
|
|
766
652
|
"pluginName": "@xano/cli",
|
|
767
653
|
"pluginType": "core",
|
|
@@ -772,20 +658,29 @@
|
|
|
772
658
|
"dist",
|
|
773
659
|
"commands",
|
|
774
660
|
"function",
|
|
775
|
-
"
|
|
661
|
+
"create",
|
|
776
662
|
"index.js"
|
|
777
663
|
]
|
|
778
664
|
},
|
|
779
|
-
"function:
|
|
665
|
+
"function:edit": {
|
|
780
666
|
"aliases": [],
|
|
781
|
-
"args": {
|
|
782
|
-
|
|
667
|
+
"args": {
|
|
668
|
+
"function_id": {
|
|
669
|
+
"description": "Function ID to edit",
|
|
670
|
+
"name": "function_id",
|
|
671
|
+
"required": false
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"description": "Edit a function in a workspace",
|
|
783
675
|
"examples": [
|
|
784
|
-
"$ xano function:
|
|
785
|
-
"$ xano function:
|
|
786
|
-
"$ xano function:
|
|
787
|
-
"$
|
|
788
|
-
"$ xano function:
|
|
676
|
+
"$ 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",
|
|
677
|
+
"$ 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",
|
|
678
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
679
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
680
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
681
|
+
"$ 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",
|
|
682
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
683
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
789
684
|
],
|
|
790
685
|
"flags": {
|
|
791
686
|
"profile": {
|
|
@@ -809,10 +704,7 @@
|
|
|
809
704
|
},
|
|
810
705
|
"edit": {
|
|
811
706
|
"char": "e",
|
|
812
|
-
"
|
|
813
|
-
"file"
|
|
814
|
-
],
|
|
815
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
707
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
816
708
|
"name": "edit",
|
|
817
709
|
"required": false,
|
|
818
710
|
"allowNo": false,
|
|
@@ -844,6 +736,13 @@
|
|
|
844
736
|
],
|
|
845
737
|
"type": "option"
|
|
846
738
|
},
|
|
739
|
+
"publish": {
|
|
740
|
+
"description": "Publish the function after editing",
|
|
741
|
+
"name": "publish",
|
|
742
|
+
"required": false,
|
|
743
|
+
"allowNo": false,
|
|
744
|
+
"type": "boolean"
|
|
745
|
+
},
|
|
847
746
|
"stdin": {
|
|
848
747
|
"char": "s",
|
|
849
748
|
"description": "Read XanoScript code from stdin",
|
|
@@ -867,7 +766,7 @@
|
|
|
867
766
|
},
|
|
868
767
|
"hasDynamicHelp": false,
|
|
869
768
|
"hiddenAliases": [],
|
|
870
|
-
"id": "function:
|
|
769
|
+
"id": "function:edit",
|
|
871
770
|
"pluginAlias": "@xano/cli",
|
|
872
771
|
"pluginName": "@xano/cli",
|
|
873
772
|
"pluginType": "core",
|
|
@@ -878,19 +777,27 @@
|
|
|
878
777
|
"dist",
|
|
879
778
|
"commands",
|
|
880
779
|
"function",
|
|
881
|
-
"
|
|
780
|
+
"edit",
|
|
882
781
|
"index.js"
|
|
883
782
|
]
|
|
884
783
|
},
|
|
885
|
-
"function:
|
|
784
|
+
"function:get": {
|
|
886
785
|
"aliases": [],
|
|
887
|
-
"args": {
|
|
888
|
-
|
|
786
|
+
"args": {
|
|
787
|
+
"function_id": {
|
|
788
|
+
"description": "Function ID",
|
|
789
|
+
"name": "function_id",
|
|
790
|
+
"required": false
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"description": "Get a specific function from a workspace",
|
|
889
794
|
"examples": [
|
|
890
|
-
"$ xano function:
|
|
891
|
-
"$ xano function:
|
|
892
|
-
"$ xano function:
|
|
893
|
-
"$ xano function:
|
|
795
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
796
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
797
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
798
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
799
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
800
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
894
801
|
],
|
|
895
802
|
"flags": {
|
|
896
803
|
"profile": {
|
|
@@ -913,7 +820,7 @@
|
|
|
913
820
|
"type": "boolean"
|
|
914
821
|
},
|
|
915
822
|
"include_draft": {
|
|
916
|
-
"description": "Include draft
|
|
823
|
+
"description": "Include draft version",
|
|
917
824
|
"name": "include_draft",
|
|
918
825
|
"required": false,
|
|
919
826
|
"allowNo": false,
|
|
@@ -926,19 +833,6 @@
|
|
|
926
833
|
"allowNo": false,
|
|
927
834
|
"type": "boolean"
|
|
928
835
|
},
|
|
929
|
-
"order": {
|
|
930
|
-
"description": "Sort order",
|
|
931
|
-
"name": "order",
|
|
932
|
-
"required": false,
|
|
933
|
-
"default": "desc",
|
|
934
|
-
"hasDynamicHelp": false,
|
|
935
|
-
"multiple": false,
|
|
936
|
-
"options": [
|
|
937
|
-
"asc",
|
|
938
|
-
"desc"
|
|
939
|
-
],
|
|
940
|
-
"type": "option"
|
|
941
|
-
},
|
|
942
836
|
"output": {
|
|
943
837
|
"char": "o",
|
|
944
838
|
"description": "Output format",
|
|
@@ -949,37 +843,11 @@
|
|
|
949
843
|
"multiple": false,
|
|
950
844
|
"options": [
|
|
951
845
|
"summary",
|
|
952
|
-
"json"
|
|
846
|
+
"json",
|
|
847
|
+
"xs"
|
|
953
848
|
],
|
|
954
849
|
"type": "option"
|
|
955
850
|
},
|
|
956
|
-
"page": {
|
|
957
|
-
"description": "Page number for pagination",
|
|
958
|
-
"name": "page",
|
|
959
|
-
"required": false,
|
|
960
|
-
"default": 1,
|
|
961
|
-
"hasDynamicHelp": false,
|
|
962
|
-
"multiple": false,
|
|
963
|
-
"type": "option"
|
|
964
|
-
},
|
|
965
|
-
"per_page": {
|
|
966
|
-
"description": "Number of results per page",
|
|
967
|
-
"name": "per_page",
|
|
968
|
-
"required": false,
|
|
969
|
-
"default": 50,
|
|
970
|
-
"hasDynamicHelp": false,
|
|
971
|
-
"multiple": false,
|
|
972
|
-
"type": "option"
|
|
973
|
-
},
|
|
974
|
-
"sort": {
|
|
975
|
-
"description": "Sort field",
|
|
976
|
-
"name": "sort",
|
|
977
|
-
"required": false,
|
|
978
|
-
"default": "created_at",
|
|
979
|
-
"hasDynamicHelp": false,
|
|
980
|
-
"multiple": false,
|
|
981
|
-
"type": "option"
|
|
982
|
-
},
|
|
983
851
|
"workspace": {
|
|
984
852
|
"char": "w",
|
|
985
853
|
"description": "Workspace ID (optional if set in profile)",
|
|
@@ -992,7 +860,7 @@
|
|
|
992
860
|
},
|
|
993
861
|
"hasDynamicHelp": false,
|
|
994
862
|
"hiddenAliases": [],
|
|
995
|
-
"id": "function:
|
|
863
|
+
"id": "function:get",
|
|
996
864
|
"pluginAlias": "@xano/cli",
|
|
997
865
|
"pluginName": "@xano/cli",
|
|
998
866
|
"pluginType": "core",
|
|
@@ -1003,29 +871,23 @@
|
|
|
1003
871
|
"dist",
|
|
1004
872
|
"commands",
|
|
1005
873
|
"function",
|
|
1006
|
-
"
|
|
874
|
+
"get",
|
|
1007
875
|
"index.js"
|
|
1008
876
|
]
|
|
1009
877
|
},
|
|
1010
|
-
"
|
|
878
|
+
"platform:get": {
|
|
1011
879
|
"aliases": [],
|
|
1012
880
|
"args": {
|
|
1013
|
-
"
|
|
1014
|
-
"description": "
|
|
1015
|
-
"name": "
|
|
1016
|
-
"required":
|
|
881
|
+
"platform_id": {
|
|
882
|
+
"description": "Platform ID to retrieve",
|
|
883
|
+
"name": "platform_id",
|
|
884
|
+
"required": true
|
|
1017
885
|
}
|
|
1018
886
|
},
|
|
1019
|
-
"description": "
|
|
887
|
+
"description": "Get details of a specific platform",
|
|
1020
888
|
"examples": [
|
|
1021
|
-
"$ xano
|
|
1022
|
-
"$ xano
|
|
1023
|
-
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1024
|
-
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1025
|
-
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
1026
|
-
"$ 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",
|
|
1027
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1028
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
889
|
+
"$ 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",
|
|
890
|
+
"$ xano platform get 23629 -o json"
|
|
1029
891
|
],
|
|
1030
892
|
"flags": {
|
|
1031
893
|
"profile": {
|
|
@@ -1047,26 +909,6 @@
|
|
|
1047
909
|
"allowNo": false,
|
|
1048
910
|
"type": "boolean"
|
|
1049
911
|
},
|
|
1050
|
-
"edit": {
|
|
1051
|
-
"char": "e",
|
|
1052
|
-
"description": "Open file in editor before updating function (requires --file)",
|
|
1053
|
-
"name": "edit",
|
|
1054
|
-
"required": false,
|
|
1055
|
-
"allowNo": false,
|
|
1056
|
-
"type": "boolean"
|
|
1057
|
-
},
|
|
1058
|
-
"file": {
|
|
1059
|
-
"char": "f",
|
|
1060
|
-
"description": "Path to file containing XanoScript code",
|
|
1061
|
-
"exclusive": [
|
|
1062
|
-
"stdin"
|
|
1063
|
-
],
|
|
1064
|
-
"name": "file",
|
|
1065
|
-
"required": false,
|
|
1066
|
-
"hasDynamicHelp": false,
|
|
1067
|
-
"multiple": false,
|
|
1068
|
-
"type": "option"
|
|
1069
|
-
},
|
|
1070
912
|
"output": {
|
|
1071
913
|
"char": "o",
|
|
1072
914
|
"description": "Output format",
|
|
@@ -1080,38 +922,11 @@
|
|
|
1080
922
|
"json"
|
|
1081
923
|
],
|
|
1082
924
|
"type": "option"
|
|
1083
|
-
},
|
|
1084
|
-
"publish": {
|
|
1085
|
-
"description": "Publish the function after editing",
|
|
1086
|
-
"name": "publish",
|
|
1087
|
-
"required": false,
|
|
1088
|
-
"allowNo": false,
|
|
1089
|
-
"type": "boolean"
|
|
1090
|
-
},
|
|
1091
|
-
"stdin": {
|
|
1092
|
-
"char": "s",
|
|
1093
|
-
"description": "Read XanoScript code from stdin",
|
|
1094
|
-
"exclusive": [
|
|
1095
|
-
"file"
|
|
1096
|
-
],
|
|
1097
|
-
"name": "stdin",
|
|
1098
|
-
"required": false,
|
|
1099
|
-
"allowNo": false,
|
|
1100
|
-
"type": "boolean"
|
|
1101
|
-
},
|
|
1102
|
-
"workspace": {
|
|
1103
|
-
"char": "w",
|
|
1104
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
1105
|
-
"name": "workspace",
|
|
1106
|
-
"required": false,
|
|
1107
|
-
"hasDynamicHelp": false,
|
|
1108
|
-
"multiple": false,
|
|
1109
|
-
"type": "option"
|
|
1110
925
|
}
|
|
1111
926
|
},
|
|
1112
927
|
"hasDynamicHelp": false,
|
|
1113
928
|
"hiddenAliases": [],
|
|
1114
|
-
"id": "
|
|
929
|
+
"id": "platform:get",
|
|
1115
930
|
"pluginAlias": "@xano/cli",
|
|
1116
931
|
"pluginName": "@xano/cli",
|
|
1117
932
|
"pluginType": "core",
|
|
@@ -1121,55 +936,180 @@
|
|
|
1121
936
|
"relativePath": [
|
|
1122
937
|
"dist",
|
|
1123
938
|
"commands",
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
939
|
+
"platform",
|
|
940
|
+
"get",
|
|
1126
941
|
"index.js"
|
|
1127
942
|
]
|
|
1128
943
|
},
|
|
1129
|
-
"
|
|
944
|
+
"function:list": {
|
|
1130
945
|
"aliases": [],
|
|
1131
|
-
"args": {
|
|
1132
|
-
|
|
1133
|
-
"description": "Profile name",
|
|
1134
|
-
"name": "name",
|
|
1135
|
-
"required": true
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
"description": "Create a new profile configuration",
|
|
946
|
+
"args": {},
|
|
947
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
1139
948
|
"examples": [
|
|
1140
|
-
"$ xano
|
|
1141
|
-
"$ xano
|
|
1142
|
-
"$ xano
|
|
1143
|
-
"$ xano
|
|
1144
|
-
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
|
|
949
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
950
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
951
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
952
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
1145
953
|
],
|
|
1146
954
|
"flags": {
|
|
1147
|
-
"
|
|
1148
|
-
"char": "
|
|
1149
|
-
"description": "
|
|
1150
|
-
"
|
|
1151
|
-
"
|
|
1152
|
-
"hasDynamicHelp": false,
|
|
1153
|
-
"multiple": false,
|
|
1154
|
-
"type": "option"
|
|
1155
|
-
},
|
|
1156
|
-
"account_origin": {
|
|
1157
|
-
"char": "a",
|
|
1158
|
-
"description": "Account origin URL. Optional for self hosted installs.",
|
|
1159
|
-
"name": "account_origin",
|
|
955
|
+
"profile": {
|
|
956
|
+
"char": "p",
|
|
957
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
958
|
+
"env": "XANO_PROFILE",
|
|
959
|
+
"name": "profile",
|
|
1160
960
|
"required": false,
|
|
1161
961
|
"hasDynamicHelp": false,
|
|
1162
962
|
"multiple": false,
|
|
1163
963
|
"type": "option"
|
|
1164
964
|
},
|
|
1165
|
-
"
|
|
1166
|
-
"char": "
|
|
1167
|
-
"description": "
|
|
1168
|
-
"
|
|
965
|
+
"verbose": {
|
|
966
|
+
"char": "v",
|
|
967
|
+
"description": "Show detailed request/response information",
|
|
968
|
+
"env": "XANO_VERBOSE",
|
|
969
|
+
"name": "verbose",
|
|
1169
970
|
"required": false,
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1172
|
-
|
|
971
|
+
"allowNo": false,
|
|
972
|
+
"type": "boolean"
|
|
973
|
+
},
|
|
974
|
+
"include_draft": {
|
|
975
|
+
"description": "Include draft functions",
|
|
976
|
+
"name": "include_draft",
|
|
977
|
+
"required": false,
|
|
978
|
+
"allowNo": false,
|
|
979
|
+
"type": "boolean"
|
|
980
|
+
},
|
|
981
|
+
"include_xanoscript": {
|
|
982
|
+
"description": "Include XanoScript in response",
|
|
983
|
+
"name": "include_xanoscript",
|
|
984
|
+
"required": false,
|
|
985
|
+
"allowNo": false,
|
|
986
|
+
"type": "boolean"
|
|
987
|
+
},
|
|
988
|
+
"order": {
|
|
989
|
+
"description": "Sort order",
|
|
990
|
+
"name": "order",
|
|
991
|
+
"required": false,
|
|
992
|
+
"default": "desc",
|
|
993
|
+
"hasDynamicHelp": false,
|
|
994
|
+
"multiple": false,
|
|
995
|
+
"options": [
|
|
996
|
+
"asc",
|
|
997
|
+
"desc"
|
|
998
|
+
],
|
|
999
|
+
"type": "option"
|
|
1000
|
+
},
|
|
1001
|
+
"output": {
|
|
1002
|
+
"char": "o",
|
|
1003
|
+
"description": "Output format",
|
|
1004
|
+
"name": "output",
|
|
1005
|
+
"required": false,
|
|
1006
|
+
"default": "summary",
|
|
1007
|
+
"hasDynamicHelp": false,
|
|
1008
|
+
"multiple": false,
|
|
1009
|
+
"options": [
|
|
1010
|
+
"summary",
|
|
1011
|
+
"json"
|
|
1012
|
+
],
|
|
1013
|
+
"type": "option"
|
|
1014
|
+
},
|
|
1015
|
+
"page": {
|
|
1016
|
+
"description": "Page number for pagination",
|
|
1017
|
+
"name": "page",
|
|
1018
|
+
"required": false,
|
|
1019
|
+
"default": 1,
|
|
1020
|
+
"hasDynamicHelp": false,
|
|
1021
|
+
"multiple": false,
|
|
1022
|
+
"type": "option"
|
|
1023
|
+
},
|
|
1024
|
+
"per_page": {
|
|
1025
|
+
"description": "Number of results per page",
|
|
1026
|
+
"name": "per_page",
|
|
1027
|
+
"required": false,
|
|
1028
|
+
"default": 50,
|
|
1029
|
+
"hasDynamicHelp": false,
|
|
1030
|
+
"multiple": false,
|
|
1031
|
+
"type": "option"
|
|
1032
|
+
},
|
|
1033
|
+
"sort": {
|
|
1034
|
+
"description": "Sort field",
|
|
1035
|
+
"name": "sort",
|
|
1036
|
+
"required": false,
|
|
1037
|
+
"default": "created_at",
|
|
1038
|
+
"hasDynamicHelp": false,
|
|
1039
|
+
"multiple": false,
|
|
1040
|
+
"type": "option"
|
|
1041
|
+
},
|
|
1042
|
+
"workspace": {
|
|
1043
|
+
"char": "w",
|
|
1044
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1045
|
+
"name": "workspace",
|
|
1046
|
+
"required": false,
|
|
1047
|
+
"hasDynamicHelp": false,
|
|
1048
|
+
"multiple": false,
|
|
1049
|
+
"type": "option"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"hasDynamicHelp": false,
|
|
1053
|
+
"hiddenAliases": [],
|
|
1054
|
+
"id": "function:list",
|
|
1055
|
+
"pluginAlias": "@xano/cli",
|
|
1056
|
+
"pluginName": "@xano/cli",
|
|
1057
|
+
"pluginType": "core",
|
|
1058
|
+
"strict": true,
|
|
1059
|
+
"enableJsonFlag": false,
|
|
1060
|
+
"isESM": true,
|
|
1061
|
+
"relativePath": [
|
|
1062
|
+
"dist",
|
|
1063
|
+
"commands",
|
|
1064
|
+
"function",
|
|
1065
|
+
"list",
|
|
1066
|
+
"index.js"
|
|
1067
|
+
]
|
|
1068
|
+
},
|
|
1069
|
+
"profile:create": {
|
|
1070
|
+
"aliases": [],
|
|
1071
|
+
"args": {
|
|
1072
|
+
"name": {
|
|
1073
|
+
"description": "Profile name",
|
|
1074
|
+
"name": "name",
|
|
1075
|
+
"required": true
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
"description": "Create a new profile configuration",
|
|
1079
|
+
"examples": [
|
|
1080
|
+
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
|
|
1081
|
+
"$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
|
|
1082
|
+
"$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
|
|
1083
|
+
"$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch -j my-project\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
|
|
1084
|
+
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
|
|
1085
|
+
],
|
|
1086
|
+
"flags": {
|
|
1087
|
+
"access_token": {
|
|
1088
|
+
"char": "t",
|
|
1089
|
+
"description": "Access token for the Xano Metadata API",
|
|
1090
|
+
"name": "access_token",
|
|
1091
|
+
"required": true,
|
|
1092
|
+
"hasDynamicHelp": false,
|
|
1093
|
+
"multiple": false,
|
|
1094
|
+
"type": "option"
|
|
1095
|
+
},
|
|
1096
|
+
"account_origin": {
|
|
1097
|
+
"char": "a",
|
|
1098
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
1099
|
+
"name": "account_origin",
|
|
1100
|
+
"required": false,
|
|
1101
|
+
"hasDynamicHelp": false,
|
|
1102
|
+
"multiple": false,
|
|
1103
|
+
"type": "option"
|
|
1104
|
+
},
|
|
1105
|
+
"branch": {
|
|
1106
|
+
"char": "b",
|
|
1107
|
+
"description": "Branch name",
|
|
1108
|
+
"name": "branch",
|
|
1109
|
+
"required": false,
|
|
1110
|
+
"hasDynamicHelp": false,
|
|
1111
|
+
"multiple": false,
|
|
1112
|
+
"type": "option"
|
|
1173
1113
|
},
|
|
1174
1114
|
"default": {
|
|
1175
1115
|
"description": "Set this profile as the default",
|
|
@@ -1422,28 +1362,18 @@
|
|
|
1422
1362
|
"index.js"
|
|
1423
1363
|
]
|
|
1424
1364
|
},
|
|
1425
|
-
"profile:
|
|
1365
|
+
"profile:get_default": {
|
|
1426
1366
|
"aliases": [],
|
|
1427
1367
|
"args": {},
|
|
1428
|
-
"description": "
|
|
1368
|
+
"description": "Get the current default profile name",
|
|
1429
1369
|
"examples": [
|
|
1430
|
-
"$ xano profile:
|
|
1431
|
-
"$ xano profile:
|
|
1432
|
-
"$ 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"
|
|
1370
|
+
"$ xano profile:get-default\nproduction\n",
|
|
1371
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
1433
1372
|
],
|
|
1434
|
-
"flags": {
|
|
1435
|
-
"details": {
|
|
1436
|
-
"char": "d",
|
|
1437
|
-
"description": "Show detailed information for each profile",
|
|
1438
|
-
"name": "details",
|
|
1439
|
-
"required": false,
|
|
1440
|
-
"allowNo": false,
|
|
1441
|
-
"type": "boolean"
|
|
1442
|
-
}
|
|
1443
|
-
},
|
|
1373
|
+
"flags": {},
|
|
1444
1374
|
"hasDynamicHelp": false,
|
|
1445
1375
|
"hiddenAliases": [],
|
|
1446
|
-
"id": "profile:
|
|
1376
|
+
"id": "profile:get_default",
|
|
1447
1377
|
"pluginAlias": "@xano/cli",
|
|
1448
1378
|
"pluginName": "@xano/cli",
|
|
1449
1379
|
"pluginType": "core",
|
|
@@ -1454,7 +1384,7 @@
|
|
|
1454
1384
|
"dist",
|
|
1455
1385
|
"commands",
|
|
1456
1386
|
"profile",
|
|
1457
|
-
"
|
|
1387
|
+
"get_default",
|
|
1458
1388
|
"index.js"
|
|
1459
1389
|
]
|
|
1460
1390
|
},
|
|
@@ -1519,18 +1449,28 @@
|
|
|
1519
1449
|
"index.js"
|
|
1520
1450
|
]
|
|
1521
1451
|
},
|
|
1522
|
-
"profile:
|
|
1452
|
+
"profile:list": {
|
|
1523
1453
|
"aliases": [],
|
|
1524
1454
|
"args": {},
|
|
1525
|
-
"description": "
|
|
1455
|
+
"description": "List all available profile configurations",
|
|
1526
1456
|
"examples": [
|
|
1527
|
-
"$ xano profile:
|
|
1528
|
-
"$ xano profile:
|
|
1457
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
1458
|
+
"$ 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",
|
|
1459
|
+
"$ 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"
|
|
1529
1460
|
],
|
|
1530
|
-
"flags": {
|
|
1461
|
+
"flags": {
|
|
1462
|
+
"details": {
|
|
1463
|
+
"char": "d",
|
|
1464
|
+
"description": "Show detailed information for each profile",
|
|
1465
|
+
"name": "details",
|
|
1466
|
+
"required": false,
|
|
1467
|
+
"allowNo": false,
|
|
1468
|
+
"type": "boolean"
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1531
1471
|
"hasDynamicHelp": false,
|
|
1532
1472
|
"hiddenAliases": [],
|
|
1533
|
-
"id": "profile:
|
|
1473
|
+
"id": "profile:list",
|
|
1534
1474
|
"pluginAlias": "@xano/cli",
|
|
1535
1475
|
"pluginName": "@xano/cli",
|
|
1536
1476
|
"pluginType": "core",
|
|
@@ -1541,7 +1481,7 @@
|
|
|
1541
1481
|
"dist",
|
|
1542
1482
|
"commands",
|
|
1543
1483
|
"profile",
|
|
1544
|
-
"
|
|
1484
|
+
"list",
|
|
1545
1485
|
"index.js"
|
|
1546
1486
|
]
|
|
1547
1487
|
},
|
|
@@ -1571,24 +1511,18 @@
|
|
|
1571
1511
|
"index.js"
|
|
1572
1512
|
]
|
|
1573
1513
|
},
|
|
1574
|
-
"profile:
|
|
1514
|
+
"profile:token": {
|
|
1575
1515
|
"aliases": [],
|
|
1576
|
-
"args": {
|
|
1577
|
-
|
|
1578
|
-
"description": "Profile name to set as default",
|
|
1579
|
-
"name": "name",
|
|
1580
|
-
"required": true
|
|
1581
|
-
}
|
|
1582
|
-
},
|
|
1583
|
-
"description": "Set the default profile",
|
|
1516
|
+
"args": {},
|
|
1517
|
+
"description": "Print the access token for the default profile",
|
|
1584
1518
|
"examples": [
|
|
1585
|
-
"$ xano profile:
|
|
1586
|
-
"$ xano profile:
|
|
1519
|
+
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
1520
|
+
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1587
1521
|
],
|
|
1588
1522
|
"flags": {},
|
|
1589
1523
|
"hasDynamicHelp": false,
|
|
1590
1524
|
"hiddenAliases": [],
|
|
1591
|
-
"id": "profile:
|
|
1525
|
+
"id": "profile:token",
|
|
1592
1526
|
"pluginAlias": "@xano/cli",
|
|
1593
1527
|
"pluginName": "@xano/cli",
|
|
1594
1528
|
"pluginType": "core",
|
|
@@ -1599,22 +1533,41 @@
|
|
|
1599
1533
|
"dist",
|
|
1600
1534
|
"commands",
|
|
1601
1535
|
"profile",
|
|
1602
|
-
"
|
|
1536
|
+
"token",
|
|
1603
1537
|
"index.js"
|
|
1604
1538
|
]
|
|
1605
1539
|
},
|
|
1606
|
-
"profile:
|
|
1540
|
+
"profile:wizard": {
|
|
1607
1541
|
"aliases": [],
|
|
1608
1542
|
"args": {},
|
|
1609
|
-
"description": "
|
|
1543
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
1610
1544
|
"examples": [
|
|
1611
|
-
"$ xano profile:token\
|
|
1612
|
-
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1545
|
+
"$ 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"
|
|
1613
1546
|
],
|
|
1614
|
-
"flags": {
|
|
1547
|
+
"flags": {
|
|
1548
|
+
"name": {
|
|
1549
|
+
"char": "n",
|
|
1550
|
+
"description": "Profile name (skip prompt if provided)",
|
|
1551
|
+
"name": "name",
|
|
1552
|
+
"required": false,
|
|
1553
|
+
"hasDynamicHelp": false,
|
|
1554
|
+
"multiple": false,
|
|
1555
|
+
"type": "option"
|
|
1556
|
+
},
|
|
1557
|
+
"origin": {
|
|
1558
|
+
"char": "o",
|
|
1559
|
+
"description": "Xano instance origin URL",
|
|
1560
|
+
"name": "origin",
|
|
1561
|
+
"required": false,
|
|
1562
|
+
"default": "https://app.xano.com",
|
|
1563
|
+
"hasDynamicHelp": false,
|
|
1564
|
+
"multiple": false,
|
|
1565
|
+
"type": "option"
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1615
1568
|
"hasDynamicHelp": false,
|
|
1616
1569
|
"hiddenAliases": [],
|
|
1617
|
-
"id": "profile:
|
|
1570
|
+
"id": "profile:wizard",
|
|
1618
1571
|
"pluginAlias": "@xano/cli",
|
|
1619
1572
|
"pluginName": "@xano/cli",
|
|
1620
1573
|
"pluginType": "core",
|
|
@@ -1625,33 +1578,58 @@
|
|
|
1625
1578
|
"dist",
|
|
1626
1579
|
"commands",
|
|
1627
1580
|
"profile",
|
|
1628
|
-
"
|
|
1581
|
+
"wizard",
|
|
1629
1582
|
"index.js"
|
|
1630
1583
|
]
|
|
1631
1584
|
},
|
|
1632
|
-
"
|
|
1585
|
+
"profile:set_default": {
|
|
1633
1586
|
"aliases": [],
|
|
1634
1587
|
"args": {
|
|
1635
|
-
"
|
|
1636
|
-
"description": "
|
|
1637
|
-
"name": "
|
|
1588
|
+
"name": {
|
|
1589
|
+
"description": "Profile name to set as default",
|
|
1590
|
+
"name": "name",
|
|
1638
1591
|
"required": true
|
|
1639
1592
|
}
|
|
1640
1593
|
},
|
|
1641
|
-
"description": "
|
|
1594
|
+
"description": "Set the default profile",
|
|
1642
1595
|
"examples": [
|
|
1643
|
-
"$ xano
|
|
1644
|
-
"$ xano
|
|
1645
|
-
"$ xano release delete 10 -f -o json"
|
|
1596
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
1597
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
1646
1598
|
],
|
|
1647
|
-
"flags": {
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1599
|
+
"flags": {},
|
|
1600
|
+
"hasDynamicHelp": false,
|
|
1601
|
+
"hiddenAliases": [],
|
|
1602
|
+
"id": "profile:set_default",
|
|
1603
|
+
"pluginAlias": "@xano/cli",
|
|
1604
|
+
"pluginName": "@xano/cli",
|
|
1605
|
+
"pluginType": "core",
|
|
1606
|
+
"strict": true,
|
|
1607
|
+
"enableJsonFlag": false,
|
|
1608
|
+
"isESM": true,
|
|
1609
|
+
"relativePath": [
|
|
1610
|
+
"dist",
|
|
1611
|
+
"commands",
|
|
1612
|
+
"profile",
|
|
1613
|
+
"set_default",
|
|
1614
|
+
"index.js"
|
|
1615
|
+
]
|
|
1616
|
+
},
|
|
1617
|
+
"platform:list": {
|
|
1618
|
+
"aliases": [],
|
|
1619
|
+
"args": {},
|
|
1620
|
+
"description": "List all platforms",
|
|
1621
|
+
"examples": [
|
|
1622
|
+
"$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
|
|
1623
|
+
"$ xano platform list --output json"
|
|
1624
|
+
],
|
|
1625
|
+
"flags": {
|
|
1626
|
+
"profile": {
|
|
1627
|
+
"char": "p",
|
|
1628
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
1629
|
+
"env": "XANO_PROFILE",
|
|
1630
|
+
"name": "profile",
|
|
1631
|
+
"required": false,
|
|
1632
|
+
"hasDynamicHelp": false,
|
|
1655
1633
|
"multiple": false,
|
|
1656
1634
|
"type": "option"
|
|
1657
1635
|
},
|
|
@@ -1664,14 +1642,6 @@
|
|
|
1664
1642
|
"allowNo": false,
|
|
1665
1643
|
"type": "boolean"
|
|
1666
1644
|
},
|
|
1667
|
-
"force": {
|
|
1668
|
-
"char": "f",
|
|
1669
|
-
"description": "Skip confirmation prompt",
|
|
1670
|
-
"name": "force",
|
|
1671
|
-
"required": false,
|
|
1672
|
-
"allowNo": false,
|
|
1673
|
-
"type": "boolean"
|
|
1674
|
-
},
|
|
1675
1645
|
"output": {
|
|
1676
1646
|
"char": "o",
|
|
1677
1647
|
"description": "Output format",
|
|
@@ -1685,20 +1655,11 @@
|
|
|
1685
1655
|
"json"
|
|
1686
1656
|
],
|
|
1687
1657
|
"type": "option"
|
|
1688
|
-
},
|
|
1689
|
-
"workspace": {
|
|
1690
|
-
"char": "w",
|
|
1691
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1692
|
-
"name": "workspace",
|
|
1693
|
-
"required": false,
|
|
1694
|
-
"hasDynamicHelp": false,
|
|
1695
|
-
"multiple": false,
|
|
1696
|
-
"type": "option"
|
|
1697
1658
|
}
|
|
1698
1659
|
},
|
|
1699
1660
|
"hasDynamicHelp": false,
|
|
1700
1661
|
"hiddenAliases": [],
|
|
1701
|
-
"id": "
|
|
1662
|
+
"id": "platform:list",
|
|
1702
1663
|
"pluginAlias": "@xano/cli",
|
|
1703
1664
|
"pluginName": "@xano/cli",
|
|
1704
1665
|
"pluginType": "core",
|
|
@@ -1708,18 +1669,29 @@
|
|
|
1708
1669
|
"relativePath": [
|
|
1709
1670
|
"dist",
|
|
1710
1671
|
"commands",
|
|
1711
|
-
"
|
|
1712
|
-
"
|
|
1672
|
+
"platform",
|
|
1673
|
+
"list",
|
|
1713
1674
|
"index.js"
|
|
1714
1675
|
]
|
|
1715
1676
|
},
|
|
1716
|
-
"
|
|
1677
|
+
"run:exec": {
|
|
1717
1678
|
"aliases": [],
|
|
1718
|
-
"args": {
|
|
1719
|
-
|
|
1679
|
+
"args": {
|
|
1680
|
+
"path": {
|
|
1681
|
+
"description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
|
|
1682
|
+
"name": "path",
|
|
1683
|
+
"required": false
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
"description": "Execute XanoScript code (job or service)",
|
|
1720
1687
|
"examples": [
|
|
1721
|
-
"$ xano
|
|
1722
|
-
"$ xano
|
|
1688
|
+
"$ xano run exec script.xs\nExecuted successfully!\n...\n",
|
|
1689
|
+
"$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
|
|
1690
|
+
"$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
|
|
1691
|
+
"$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
|
|
1692
|
+
"$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
1693
|
+
"$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
1694
|
+
"$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
1723
1695
|
],
|
|
1724
1696
|
"flags": {
|
|
1725
1697
|
"profile": {
|
|
@@ -1741,36 +1713,39 @@
|
|
|
1741
1713
|
"allowNo": false,
|
|
1742
1714
|
"type": "boolean"
|
|
1743
1715
|
},
|
|
1744
|
-
"
|
|
1745
|
-
"char": "
|
|
1746
|
-
"description": "
|
|
1747
|
-
"name": "
|
|
1748
|
-
"required": true,
|
|
1749
|
-
"hasDynamicHelp": false,
|
|
1750
|
-
"multiple": false,
|
|
1751
|
-
"type": "option"
|
|
1752
|
-
},
|
|
1753
|
-
"description": {
|
|
1754
|
-
"char": "d",
|
|
1755
|
-
"description": "Release description",
|
|
1756
|
-
"name": "description",
|
|
1716
|
+
"args": {
|
|
1717
|
+
"char": "a",
|
|
1718
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
1719
|
+
"name": "args",
|
|
1757
1720
|
"required": false,
|
|
1758
1721
|
"hasDynamicHelp": false,
|
|
1759
1722
|
"multiple": false,
|
|
1760
1723
|
"type": "option"
|
|
1761
1724
|
},
|
|
1762
|
-
"
|
|
1763
|
-
"
|
|
1764
|
-
"
|
|
1725
|
+
"edit": {
|
|
1726
|
+
"char": "e",
|
|
1727
|
+
"description": "Open file in editor before running (requires path argument or --file)",
|
|
1728
|
+
"name": "edit",
|
|
1765
1729
|
"required": false,
|
|
1766
1730
|
"allowNo": false,
|
|
1767
1731
|
"type": "boolean"
|
|
1768
1732
|
},
|
|
1769
|
-
"
|
|
1770
|
-
"
|
|
1771
|
-
"
|
|
1772
|
-
"
|
|
1773
|
-
"
|
|
1733
|
+
"env": {
|
|
1734
|
+
"description": "Environment variable override (key=value)",
|
|
1735
|
+
"name": "env",
|
|
1736
|
+
"required": false,
|
|
1737
|
+
"hasDynamicHelp": false,
|
|
1738
|
+
"multiple": true,
|
|
1739
|
+
"type": "option"
|
|
1740
|
+
},
|
|
1741
|
+
"file": {
|
|
1742
|
+
"char": "f",
|
|
1743
|
+
"description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
|
|
1744
|
+
"exclusive": [
|
|
1745
|
+
"stdin"
|
|
1746
|
+
],
|
|
1747
|
+
"name": "file",
|
|
1748
|
+
"required": false,
|
|
1774
1749
|
"hasDynamicHelp": false,
|
|
1775
1750
|
"multiple": false,
|
|
1776
1751
|
"type": "option"
|
|
@@ -1789,54 +1764,42 @@
|
|
|
1789
1764
|
],
|
|
1790
1765
|
"type": "option"
|
|
1791
1766
|
},
|
|
1792
|
-
"
|
|
1793
|
-
"
|
|
1794
|
-
"
|
|
1795
|
-
"
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
"
|
|
1799
|
-
},
|
|
1800
|
-
"workspace": {
|
|
1801
|
-
"char": "w",
|
|
1802
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1803
|
-
"name": "workspace",
|
|
1767
|
+
"stdin": {
|
|
1768
|
+
"char": "s",
|
|
1769
|
+
"description": "Read XanoScript code from stdin",
|
|
1770
|
+
"exclusive": [
|
|
1771
|
+
"file"
|
|
1772
|
+
],
|
|
1773
|
+
"name": "stdin",
|
|
1804
1774
|
"required": false,
|
|
1805
|
-
"
|
|
1806
|
-
"
|
|
1807
|
-
"type": "option"
|
|
1775
|
+
"allowNo": false,
|
|
1776
|
+
"type": "boolean"
|
|
1808
1777
|
}
|
|
1809
1778
|
},
|
|
1810
1779
|
"hasDynamicHelp": false,
|
|
1811
1780
|
"hiddenAliases": [],
|
|
1812
|
-
"id": "
|
|
1781
|
+
"id": "run:exec",
|
|
1813
1782
|
"pluginAlias": "@xano/cli",
|
|
1814
1783
|
"pluginName": "@xano/cli",
|
|
1815
1784
|
"pluginType": "core",
|
|
1816
1785
|
"strict": true,
|
|
1817
|
-
"enableJsonFlag": false,
|
|
1818
1786
|
"isESM": true,
|
|
1819
1787
|
"relativePath": [
|
|
1820
1788
|
"dist",
|
|
1821
1789
|
"commands",
|
|
1822
|
-
"
|
|
1823
|
-
"
|
|
1790
|
+
"run",
|
|
1791
|
+
"exec",
|
|
1824
1792
|
"index.js"
|
|
1825
1793
|
]
|
|
1826
1794
|
},
|
|
1827
|
-
"
|
|
1795
|
+
"run:info": {
|
|
1828
1796
|
"aliases": [],
|
|
1829
|
-
"args": {
|
|
1830
|
-
|
|
1831
|
-
"description": "Release ID to edit",
|
|
1832
|
-
"name": "release_id",
|
|
1833
|
-
"required": true
|
|
1834
|
-
}
|
|
1835
|
-
},
|
|
1836
|
-
"description": "Edit an existing release",
|
|
1797
|
+
"args": {},
|
|
1798
|
+
"description": "Get information about a XanoScript document (type, inputs, env vars)",
|
|
1837
1799
|
"examples": [
|
|
1838
|
-
"$ xano
|
|
1839
|
-
"$ xano
|
|
1800
|
+
"$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
|
|
1801
|
+
"$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
|
|
1802
|
+
"$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
|
|
1840
1803
|
],
|
|
1841
1804
|
"flags": {
|
|
1842
1805
|
"profile": {
|
|
@@ -1858,19 +1821,13 @@
|
|
|
1858
1821
|
"allowNo": false,
|
|
1859
1822
|
"type": "boolean"
|
|
1860
1823
|
},
|
|
1861
|
-
"
|
|
1862
|
-
"char": "
|
|
1863
|
-
"description": "
|
|
1864
|
-
"
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
"
|
|
1868
|
-
"type": "option"
|
|
1869
|
-
},
|
|
1870
|
-
"name": {
|
|
1871
|
-
"char": "n",
|
|
1872
|
-
"description": "New name for the release",
|
|
1873
|
-
"name": "name",
|
|
1824
|
+
"file": {
|
|
1825
|
+
"char": "f",
|
|
1826
|
+
"description": "Path or URL to file containing XanoScript code",
|
|
1827
|
+
"exclusive": [
|
|
1828
|
+
"stdin"
|
|
1829
|
+
],
|
|
1830
|
+
"name": "file",
|
|
1874
1831
|
"required": false,
|
|
1875
1832
|
"hasDynamicHelp": false,
|
|
1876
1833
|
"multiple": false,
|
|
@@ -1890,47 +1847,48 @@
|
|
|
1890
1847
|
],
|
|
1891
1848
|
"type": "option"
|
|
1892
1849
|
},
|
|
1893
|
-
"
|
|
1894
|
-
"char": "
|
|
1895
|
-
"description": "
|
|
1896
|
-
"
|
|
1850
|
+
"stdin": {
|
|
1851
|
+
"char": "s",
|
|
1852
|
+
"description": "Read XanoScript code from stdin",
|
|
1853
|
+
"exclusive": [
|
|
1854
|
+
"file"
|
|
1855
|
+
],
|
|
1856
|
+
"name": "stdin",
|
|
1897
1857
|
"required": false,
|
|
1898
|
-
"
|
|
1899
|
-
"
|
|
1900
|
-
"type": "option"
|
|
1858
|
+
"allowNo": false,
|
|
1859
|
+
"type": "boolean"
|
|
1901
1860
|
}
|
|
1902
1861
|
},
|
|
1903
1862
|
"hasDynamicHelp": false,
|
|
1904
1863
|
"hiddenAliases": [],
|
|
1905
|
-
"id": "
|
|
1864
|
+
"id": "run:info",
|
|
1906
1865
|
"pluginAlias": "@xano/cli",
|
|
1907
1866
|
"pluginName": "@xano/cli",
|
|
1908
1867
|
"pluginType": "core",
|
|
1909
1868
|
"strict": true,
|
|
1910
|
-
"enableJsonFlag": false,
|
|
1911
1869
|
"isESM": true,
|
|
1912
1870
|
"relativePath": [
|
|
1913
1871
|
"dist",
|
|
1914
1872
|
"commands",
|
|
1915
|
-
"
|
|
1916
|
-
"
|
|
1873
|
+
"run",
|
|
1874
|
+
"info",
|
|
1917
1875
|
"index.js"
|
|
1918
1876
|
]
|
|
1919
1877
|
},
|
|
1920
|
-
"release:
|
|
1878
|
+
"release:delete": {
|
|
1921
1879
|
"aliases": [],
|
|
1922
1880
|
"args": {
|
|
1923
1881
|
"release_id": {
|
|
1924
|
-
"description": "Release ID to
|
|
1882
|
+
"description": "Release ID to delete",
|
|
1925
1883
|
"name": "release_id",
|
|
1926
1884
|
"required": true
|
|
1927
1885
|
}
|
|
1928
1886
|
},
|
|
1929
|
-
"description": "
|
|
1887
|
+
"description": "Delete a release permanently. This action cannot be undone.",
|
|
1930
1888
|
"examples": [
|
|
1931
|
-
"$ xano release
|
|
1932
|
-
"$ xano release
|
|
1933
|
-
"$ xano release
|
|
1889
|
+
"$ xano release delete 10\nAre you sure you want to delete release #10? This action cannot be undone. (y/N) y\nDeleted release #10\n",
|
|
1890
|
+
"$ xano release delete 10 --force\nDeleted release #10\n",
|
|
1891
|
+
"$ xano release delete 10 -f -o json"
|
|
1934
1892
|
],
|
|
1935
1893
|
"flags": {
|
|
1936
1894
|
"profile": {
|
|
@@ -1952,10 +1910,18 @@
|
|
|
1952
1910
|
"allowNo": false,
|
|
1953
1911
|
"type": "boolean"
|
|
1954
1912
|
},
|
|
1955
|
-
"
|
|
1913
|
+
"force": {
|
|
1914
|
+
"char": "f",
|
|
1915
|
+
"description": "Skip confirmation prompt",
|
|
1916
|
+
"name": "force",
|
|
1917
|
+
"required": false,
|
|
1918
|
+
"allowNo": false,
|
|
1919
|
+
"type": "boolean"
|
|
1920
|
+
},
|
|
1921
|
+
"output": {
|
|
1956
1922
|
"char": "o",
|
|
1957
1923
|
"description": "Output format",
|
|
1958
|
-
"name": "
|
|
1924
|
+
"name": "output",
|
|
1959
1925
|
"required": false,
|
|
1960
1926
|
"default": "summary",
|
|
1961
1927
|
"hasDynamicHelp": false,
|
|
@@ -1966,14 +1932,6 @@
|
|
|
1966
1932
|
],
|
|
1967
1933
|
"type": "option"
|
|
1968
1934
|
},
|
|
1969
|
-
"output": {
|
|
1970
|
-
"description": "Output file path (defaults to ./release-{id}.tar.gz)",
|
|
1971
|
-
"name": "output",
|
|
1972
|
-
"required": false,
|
|
1973
|
-
"hasDynamicHelp": false,
|
|
1974
|
-
"multiple": false,
|
|
1975
|
-
"type": "option"
|
|
1976
|
-
},
|
|
1977
1935
|
"workspace": {
|
|
1978
1936
|
"char": "w",
|
|
1979
1937
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -1986,7 +1944,7 @@
|
|
|
1986
1944
|
},
|
|
1987
1945
|
"hasDynamicHelp": false,
|
|
1988
1946
|
"hiddenAliases": [],
|
|
1989
|
-
"id": "release:
|
|
1947
|
+
"id": "release:delete",
|
|
1990
1948
|
"pluginAlias": "@xano/cli",
|
|
1991
1949
|
"pluginName": "@xano/cli",
|
|
1992
1950
|
"pluginType": "core",
|
|
@@ -1997,23 +1955,17 @@
|
|
|
1997
1955
|
"dist",
|
|
1998
1956
|
"commands",
|
|
1999
1957
|
"release",
|
|
2000
|
-
"
|
|
1958
|
+
"delete",
|
|
2001
1959
|
"index.js"
|
|
2002
1960
|
]
|
|
2003
1961
|
},
|
|
2004
|
-
"release:
|
|
1962
|
+
"release:create": {
|
|
2005
1963
|
"aliases": [],
|
|
2006
|
-
"args": {
|
|
2007
|
-
|
|
2008
|
-
"description": "Release ID to retrieve",
|
|
2009
|
-
"name": "release_id",
|
|
2010
|
-
"required": true
|
|
2011
|
-
}
|
|
2012
|
-
},
|
|
2013
|
-
"description": "Get details of a specific release",
|
|
1964
|
+
"args": {},
|
|
1965
|
+
"description": "Create a new release in a workspace",
|
|
2014
1966
|
"examples": [
|
|
2015
|
-
"$ xano release
|
|
2016
|
-
"$ xano release
|
|
1967
|
+
"$ xano release create --name \"v1.0\" --branch main\nCreated release: v1.0 - ID: 10\n",
|
|
1968
|
+
"$ xano release create --name \"v1.1-hotfix\" --branch main --hotfix --description \"Critical fix\" -o json"
|
|
2017
1969
|
],
|
|
2018
1970
|
"flags": {
|
|
2019
1971
|
"profile": {
|
|
@@ -2035,6 +1987,40 @@
|
|
|
2035
1987
|
"allowNo": false,
|
|
2036
1988
|
"type": "boolean"
|
|
2037
1989
|
},
|
|
1990
|
+
"branch": {
|
|
1991
|
+
"char": "b",
|
|
1992
|
+
"description": "Branch to create the release from",
|
|
1993
|
+
"name": "branch",
|
|
1994
|
+
"required": true,
|
|
1995
|
+
"hasDynamicHelp": false,
|
|
1996
|
+
"multiple": false,
|
|
1997
|
+
"type": "option"
|
|
1998
|
+
},
|
|
1999
|
+
"description": {
|
|
2000
|
+
"char": "d",
|
|
2001
|
+
"description": "Release description",
|
|
2002
|
+
"name": "description",
|
|
2003
|
+
"required": false,
|
|
2004
|
+
"hasDynamicHelp": false,
|
|
2005
|
+
"multiple": false,
|
|
2006
|
+
"type": "option"
|
|
2007
|
+
},
|
|
2008
|
+
"hotfix": {
|
|
2009
|
+
"description": "Mark as a hotfix release",
|
|
2010
|
+
"name": "hotfix",
|
|
2011
|
+
"required": false,
|
|
2012
|
+
"allowNo": false,
|
|
2013
|
+
"type": "boolean"
|
|
2014
|
+
},
|
|
2015
|
+
"name": {
|
|
2016
|
+
"char": "n",
|
|
2017
|
+
"description": "Name for the release",
|
|
2018
|
+
"name": "name",
|
|
2019
|
+
"required": true,
|
|
2020
|
+
"hasDynamicHelp": false,
|
|
2021
|
+
"multiple": false,
|
|
2022
|
+
"type": "option"
|
|
2023
|
+
},
|
|
2038
2024
|
"output": {
|
|
2039
2025
|
"char": "o",
|
|
2040
2026
|
"description": "Output format",
|
|
@@ -2049,6 +2035,14 @@
|
|
|
2049
2035
|
],
|
|
2050
2036
|
"type": "option"
|
|
2051
2037
|
},
|
|
2038
|
+
"table-ids": {
|
|
2039
|
+
"description": "Comma-separated table IDs to include",
|
|
2040
|
+
"name": "table-ids",
|
|
2041
|
+
"required": false,
|
|
2042
|
+
"hasDynamicHelp": false,
|
|
2043
|
+
"multiple": false,
|
|
2044
|
+
"type": "option"
|
|
2045
|
+
},
|
|
2052
2046
|
"workspace": {
|
|
2053
2047
|
"char": "w",
|
|
2054
2048
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2061,7 +2055,7 @@
|
|
|
2061
2055
|
},
|
|
2062
2056
|
"hasDynamicHelp": false,
|
|
2063
2057
|
"hiddenAliases": [],
|
|
2064
|
-
"id": "release:
|
|
2058
|
+
"id": "release:create",
|
|
2065
2059
|
"pluginAlias": "@xano/cli",
|
|
2066
2060
|
"pluginName": "@xano/cli",
|
|
2067
2061
|
"pluginType": "core",
|
|
@@ -2072,17 +2066,23 @@
|
|
|
2072
2066
|
"dist",
|
|
2073
2067
|
"commands",
|
|
2074
2068
|
"release",
|
|
2075
|
-
"
|
|
2069
|
+
"create",
|
|
2076
2070
|
"index.js"
|
|
2077
2071
|
]
|
|
2078
2072
|
},
|
|
2079
|
-
"release:
|
|
2073
|
+
"release:edit": {
|
|
2080
2074
|
"aliases": [],
|
|
2081
|
-
"args": {
|
|
2082
|
-
|
|
2075
|
+
"args": {
|
|
2076
|
+
"release_id": {
|
|
2077
|
+
"description": "Release ID to edit",
|
|
2078
|
+
"name": "release_id",
|
|
2079
|
+
"required": true
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"description": "Edit an existing release",
|
|
2083
2083
|
"examples": [
|
|
2084
|
-
"$ xano release
|
|
2085
|
-
"$ xano release
|
|
2084
|
+
"$ xano release edit 10 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
|
|
2085
|
+
"$ xano release edit 10 --description \"New description\" -o json"
|
|
2086
2086
|
],
|
|
2087
2087
|
"flags": {
|
|
2088
2088
|
"profile": {
|
|
@@ -2104,11 +2104,20 @@
|
|
|
2104
2104
|
"allowNo": false,
|
|
2105
2105
|
"type": "boolean"
|
|
2106
2106
|
},
|
|
2107
|
-
"
|
|
2108
|
-
"char": "
|
|
2109
|
-
"description": "
|
|
2110
|
-
"name": "
|
|
2111
|
-
"required":
|
|
2107
|
+
"description": {
|
|
2108
|
+
"char": "d",
|
|
2109
|
+
"description": "New description",
|
|
2110
|
+
"name": "description",
|
|
2111
|
+
"required": false,
|
|
2112
|
+
"hasDynamicHelp": false,
|
|
2113
|
+
"multiple": false,
|
|
2114
|
+
"type": "option"
|
|
2115
|
+
},
|
|
2116
|
+
"name": {
|
|
2117
|
+
"char": "n",
|
|
2118
|
+
"description": "New name for the release",
|
|
2119
|
+
"name": "name",
|
|
2120
|
+
"required": false,
|
|
2112
2121
|
"hasDynamicHelp": false,
|
|
2113
2122
|
"multiple": false,
|
|
2114
2123
|
"type": "option"
|
|
@@ -2139,7 +2148,7 @@
|
|
|
2139
2148
|
},
|
|
2140
2149
|
"hasDynamicHelp": false,
|
|
2141
2150
|
"hiddenAliases": [],
|
|
2142
|
-
"id": "release:
|
|
2151
|
+
"id": "release:edit",
|
|
2143
2152
|
"pluginAlias": "@xano/cli",
|
|
2144
2153
|
"pluginName": "@xano/cli",
|
|
2145
2154
|
"pluginType": "core",
|
|
@@ -2150,33 +2159,66 @@
|
|
|
2150
2159
|
"dist",
|
|
2151
2160
|
"commands",
|
|
2152
2161
|
"release",
|
|
2153
|
-
"
|
|
2162
|
+
"edit",
|
|
2154
2163
|
"index.js"
|
|
2155
2164
|
]
|
|
2156
2165
|
},
|
|
2157
|
-
"
|
|
2166
|
+
"release:import": {
|
|
2158
2167
|
"aliases": [],
|
|
2159
2168
|
"args": {},
|
|
2160
|
-
"description": "
|
|
2169
|
+
"description": "Import a release file into a workspace",
|
|
2161
2170
|
"examples": [
|
|
2162
|
-
"$ xano
|
|
2171
|
+
"$ xano release import --file ./my-release.tar.gz\nImported release as #15\n",
|
|
2172
|
+
"$ xano release import --file ./my-release.tar.gz -o json"
|
|
2163
2173
|
],
|
|
2164
2174
|
"flags": {
|
|
2165
|
-
"
|
|
2166
|
-
"char": "
|
|
2167
|
-
"description": "Profile
|
|
2168
|
-
"
|
|
2175
|
+
"profile": {
|
|
2176
|
+
"char": "p",
|
|
2177
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2178
|
+
"env": "XANO_PROFILE",
|
|
2179
|
+
"name": "profile",
|
|
2169
2180
|
"required": false,
|
|
2170
2181
|
"hasDynamicHelp": false,
|
|
2171
2182
|
"multiple": false,
|
|
2172
2183
|
"type": "option"
|
|
2173
2184
|
},
|
|
2174
|
-
"
|
|
2185
|
+
"verbose": {
|
|
2186
|
+
"char": "v",
|
|
2187
|
+
"description": "Show detailed request/response information",
|
|
2188
|
+
"env": "XANO_VERBOSE",
|
|
2189
|
+
"name": "verbose",
|
|
2190
|
+
"required": false,
|
|
2191
|
+
"allowNo": false,
|
|
2192
|
+
"type": "boolean"
|
|
2193
|
+
},
|
|
2194
|
+
"file": {
|
|
2195
|
+
"char": "f",
|
|
2196
|
+
"description": "Path to the release file (.tar.gz)",
|
|
2197
|
+
"name": "file",
|
|
2198
|
+
"required": true,
|
|
2199
|
+
"hasDynamicHelp": false,
|
|
2200
|
+
"multiple": false,
|
|
2201
|
+
"type": "option"
|
|
2202
|
+
},
|
|
2203
|
+
"output": {
|
|
2175
2204
|
"char": "o",
|
|
2176
|
-
"description": "
|
|
2177
|
-
"name": "
|
|
2205
|
+
"description": "Output format",
|
|
2206
|
+
"name": "output",
|
|
2207
|
+
"required": false,
|
|
2208
|
+
"default": "summary",
|
|
2209
|
+
"hasDynamicHelp": false,
|
|
2210
|
+
"multiple": false,
|
|
2211
|
+
"options": [
|
|
2212
|
+
"summary",
|
|
2213
|
+
"json"
|
|
2214
|
+
],
|
|
2215
|
+
"type": "option"
|
|
2216
|
+
},
|
|
2217
|
+
"workspace": {
|
|
2218
|
+
"char": "w",
|
|
2219
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2220
|
+
"name": "workspace",
|
|
2178
2221
|
"required": false,
|
|
2179
|
-
"default": "https://app.xano.com",
|
|
2180
2222
|
"hasDynamicHelp": false,
|
|
2181
2223
|
"multiple": false,
|
|
2182
2224
|
"type": "option"
|
|
@@ -2184,7 +2226,7 @@
|
|
|
2184
2226
|
},
|
|
2185
2227
|
"hasDynamicHelp": false,
|
|
2186
2228
|
"hiddenAliases": [],
|
|
2187
|
-
"id": "
|
|
2229
|
+
"id": "release:import",
|
|
2188
2230
|
"pluginAlias": "@xano/cli",
|
|
2189
2231
|
"pluginName": "@xano/cli",
|
|
2190
2232
|
"pluginType": "core",
|
|
@@ -2194,18 +2236,25 @@
|
|
|
2194
2236
|
"relativePath": [
|
|
2195
2237
|
"dist",
|
|
2196
2238
|
"commands",
|
|
2197
|
-
"
|
|
2198
|
-
"
|
|
2239
|
+
"release",
|
|
2240
|
+
"import",
|
|
2199
2241
|
"index.js"
|
|
2200
2242
|
]
|
|
2201
2243
|
},
|
|
2202
|
-
"release:
|
|
2244
|
+
"release:export": {
|
|
2203
2245
|
"aliases": [],
|
|
2204
|
-
"args": {
|
|
2205
|
-
|
|
2246
|
+
"args": {
|
|
2247
|
+
"release_id": {
|
|
2248
|
+
"description": "Release ID to export",
|
|
2249
|
+
"name": "release_id",
|
|
2250
|
+
"required": true
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2253
|
+
"description": "Export (download) a release to a local file",
|
|
2206
2254
|
"examples": [
|
|
2207
|
-
"$ xano release
|
|
2208
|
-
"$ xano release
|
|
2255
|
+
"$ xano release export 10\nDownloaded release #10 to ./release-10.tar.gz\n",
|
|
2256
|
+
"$ xano release export 10 --output ./backups/my-release.tar.gz",
|
|
2257
|
+
"$ xano release export 10 -o json"
|
|
2209
2258
|
],
|
|
2210
2259
|
"flags": {
|
|
2211
2260
|
"profile": {
|
|
@@ -2227,10 +2276,10 @@
|
|
|
2227
2276
|
"allowNo": false,
|
|
2228
2277
|
"type": "boolean"
|
|
2229
2278
|
},
|
|
2230
|
-
"
|
|
2279
|
+
"format": {
|
|
2231
2280
|
"char": "o",
|
|
2232
2281
|
"description": "Output format",
|
|
2233
|
-
"name": "
|
|
2282
|
+
"name": "format",
|
|
2234
2283
|
"required": false,
|
|
2235
2284
|
"default": "summary",
|
|
2236
2285
|
"hasDynamicHelp": false,
|
|
@@ -2241,6 +2290,14 @@
|
|
|
2241
2290
|
],
|
|
2242
2291
|
"type": "option"
|
|
2243
2292
|
},
|
|
2293
|
+
"output": {
|
|
2294
|
+
"description": "Output file path (defaults to ./release-{id}.tar.gz)",
|
|
2295
|
+
"name": "output",
|
|
2296
|
+
"required": false,
|
|
2297
|
+
"hasDynamicHelp": false,
|
|
2298
|
+
"multiple": false,
|
|
2299
|
+
"type": "option"
|
|
2300
|
+
},
|
|
2244
2301
|
"workspace": {
|
|
2245
2302
|
"char": "w",
|
|
2246
2303
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2253,7 +2310,7 @@
|
|
|
2253
2310
|
},
|
|
2254
2311
|
"hasDynamicHelp": false,
|
|
2255
2312
|
"hiddenAliases": [],
|
|
2256
|
-
"id": "release:
|
|
2313
|
+
"id": "release:export",
|
|
2257
2314
|
"pluginAlias": "@xano/cli",
|
|
2258
2315
|
"pluginName": "@xano/cli",
|
|
2259
2316
|
"pluginType": "core",
|
|
@@ -2264,28 +2321,23 @@
|
|
|
2264
2321
|
"dist",
|
|
2265
2322
|
"commands",
|
|
2266
2323
|
"release",
|
|
2267
|
-
"
|
|
2324
|
+
"export",
|
|
2268
2325
|
"index.js"
|
|
2269
2326
|
]
|
|
2270
2327
|
},
|
|
2271
|
-
"
|
|
2328
|
+
"release:get": {
|
|
2272
2329
|
"aliases": [],
|
|
2273
2330
|
"args": {
|
|
2274
|
-
"
|
|
2275
|
-
"description": "
|
|
2276
|
-
"name": "
|
|
2277
|
-
"required":
|
|
2331
|
+
"release_id": {
|
|
2332
|
+
"description": "Release ID to retrieve",
|
|
2333
|
+
"name": "release_id",
|
|
2334
|
+
"required": true
|
|
2278
2335
|
}
|
|
2279
2336
|
},
|
|
2280
|
-
"description": "
|
|
2337
|
+
"description": "Get details of a specific release",
|
|
2281
2338
|
"examples": [
|
|
2282
|
-
"$ xano
|
|
2283
|
-
"$ xano
|
|
2284
|
-
"$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
|
|
2285
|
-
"$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
|
|
2286
|
-
"$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
2287
|
-
"$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
2288
|
-
"$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
2339
|
+
"$ xano release get 10\nRelease: v1.0 - ID: 10\n Branch: main\n Description: Initial release\n Hotfix: false\n",
|
|
2340
|
+
"$ xano release get 10 -w 5 -o json"
|
|
2289
2341
|
],
|
|
2290
2342
|
"flags": {
|
|
2291
2343
|
"profile": {
|
|
@@ -2307,43 +2359,6 @@
|
|
|
2307
2359
|
"allowNo": false,
|
|
2308
2360
|
"type": "boolean"
|
|
2309
2361
|
},
|
|
2310
|
-
"args": {
|
|
2311
|
-
"char": "a",
|
|
2312
|
-
"description": "Path or URL to JSON file containing input arguments",
|
|
2313
|
-
"name": "args",
|
|
2314
|
-
"required": false,
|
|
2315
|
-
"hasDynamicHelp": false,
|
|
2316
|
-
"multiple": false,
|
|
2317
|
-
"type": "option"
|
|
2318
|
-
},
|
|
2319
|
-
"edit": {
|
|
2320
|
-
"char": "e",
|
|
2321
|
-
"description": "Open file in editor before running (requires path argument or --file)",
|
|
2322
|
-
"name": "edit",
|
|
2323
|
-
"required": false,
|
|
2324
|
-
"allowNo": false,
|
|
2325
|
-
"type": "boolean"
|
|
2326
|
-
},
|
|
2327
|
-
"env": {
|
|
2328
|
-
"description": "Environment variable override (key=value)",
|
|
2329
|
-
"name": "env",
|
|
2330
|
-
"required": false,
|
|
2331
|
-
"hasDynamicHelp": false,
|
|
2332
|
-
"multiple": true,
|
|
2333
|
-
"type": "option"
|
|
2334
|
-
},
|
|
2335
|
-
"file": {
|
|
2336
|
-
"char": "f",
|
|
2337
|
-
"description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
|
|
2338
|
-
"exclusive": [
|
|
2339
|
-
"stdin"
|
|
2340
|
-
],
|
|
2341
|
-
"name": "file",
|
|
2342
|
-
"required": false,
|
|
2343
|
-
"hasDynamicHelp": false,
|
|
2344
|
-
"multiple": false,
|
|
2345
|
-
"type": "option"
|
|
2346
|
-
},
|
|
2347
2362
|
"output": {
|
|
2348
2363
|
"char": "o",
|
|
2349
2364
|
"description": "Output format",
|
|
@@ -2358,42 +2373,501 @@
|
|
|
2358
2373
|
],
|
|
2359
2374
|
"type": "option"
|
|
2360
2375
|
},
|
|
2361
|
-
"
|
|
2362
|
-
"char": "
|
|
2363
|
-
"description": "
|
|
2364
|
-
"
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
"
|
|
2376
|
+
"workspace": {
|
|
2377
|
+
"char": "w",
|
|
2378
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2379
|
+
"name": "workspace",
|
|
2380
|
+
"required": false,
|
|
2381
|
+
"hasDynamicHelp": false,
|
|
2382
|
+
"multiple": false,
|
|
2383
|
+
"type": "option"
|
|
2384
|
+
}
|
|
2385
|
+
},
|
|
2386
|
+
"hasDynamicHelp": false,
|
|
2387
|
+
"hiddenAliases": [],
|
|
2388
|
+
"id": "release:get",
|
|
2389
|
+
"pluginAlias": "@xano/cli",
|
|
2390
|
+
"pluginName": "@xano/cli",
|
|
2391
|
+
"pluginType": "core",
|
|
2392
|
+
"strict": true,
|
|
2393
|
+
"enableJsonFlag": false,
|
|
2394
|
+
"isESM": true,
|
|
2395
|
+
"relativePath": [
|
|
2396
|
+
"dist",
|
|
2397
|
+
"commands",
|
|
2398
|
+
"release",
|
|
2399
|
+
"get",
|
|
2400
|
+
"index.js"
|
|
2401
|
+
]
|
|
2402
|
+
},
|
|
2403
|
+
"release:list": {
|
|
2404
|
+
"aliases": [],
|
|
2405
|
+
"args": {},
|
|
2406
|
+
"description": "List all releases in a workspace",
|
|
2407
|
+
"examples": [
|
|
2408
|
+
"$ xano release list\nReleases in workspace 5:\n - v1.0 (ID: 10) - main\n - v1.1-hotfix (ID: 11) - main [hotfix]\n",
|
|
2409
|
+
"$ xano release list -w 5 --output json"
|
|
2410
|
+
],
|
|
2411
|
+
"flags": {
|
|
2412
|
+
"profile": {
|
|
2413
|
+
"char": "p",
|
|
2414
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2415
|
+
"env": "XANO_PROFILE",
|
|
2416
|
+
"name": "profile",
|
|
2417
|
+
"required": false,
|
|
2418
|
+
"hasDynamicHelp": false,
|
|
2419
|
+
"multiple": false,
|
|
2420
|
+
"type": "option"
|
|
2421
|
+
},
|
|
2422
|
+
"verbose": {
|
|
2423
|
+
"char": "v",
|
|
2424
|
+
"description": "Show detailed request/response information",
|
|
2425
|
+
"env": "XANO_VERBOSE",
|
|
2426
|
+
"name": "verbose",
|
|
2427
|
+
"required": false,
|
|
2428
|
+
"allowNo": false,
|
|
2429
|
+
"type": "boolean"
|
|
2430
|
+
},
|
|
2431
|
+
"output": {
|
|
2432
|
+
"char": "o",
|
|
2433
|
+
"description": "Output format",
|
|
2434
|
+
"name": "output",
|
|
2435
|
+
"required": false,
|
|
2436
|
+
"default": "summary",
|
|
2437
|
+
"hasDynamicHelp": false,
|
|
2438
|
+
"multiple": false,
|
|
2439
|
+
"options": [
|
|
2440
|
+
"summary",
|
|
2441
|
+
"json"
|
|
2442
|
+
],
|
|
2443
|
+
"type": "option"
|
|
2444
|
+
},
|
|
2445
|
+
"workspace": {
|
|
2446
|
+
"char": "w",
|
|
2447
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2448
|
+
"name": "workspace",
|
|
2449
|
+
"required": false,
|
|
2450
|
+
"hasDynamicHelp": false,
|
|
2451
|
+
"multiple": false,
|
|
2452
|
+
"type": "option"
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"hasDynamicHelp": false,
|
|
2456
|
+
"hiddenAliases": [],
|
|
2457
|
+
"id": "release:list",
|
|
2458
|
+
"pluginAlias": "@xano/cli",
|
|
2459
|
+
"pluginName": "@xano/cli",
|
|
2460
|
+
"pluginType": "core",
|
|
2461
|
+
"strict": true,
|
|
2462
|
+
"enableJsonFlag": false,
|
|
2463
|
+
"isESM": true,
|
|
2464
|
+
"relativePath": [
|
|
2465
|
+
"dist",
|
|
2466
|
+
"commands",
|
|
2467
|
+
"release",
|
|
2468
|
+
"list",
|
|
2469
|
+
"index.js"
|
|
2470
|
+
]
|
|
2471
|
+
},
|
|
2472
|
+
"tenant:delete": {
|
|
2473
|
+
"aliases": [],
|
|
2474
|
+
"args": {
|
|
2475
|
+
"tenant_name": {
|
|
2476
|
+
"description": "Tenant name to delete",
|
|
2477
|
+
"name": "tenant_name",
|
|
2478
|
+
"required": true
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
"description": "Delete a tenant permanently. This destroys all associated infrastructure and cannot be undone.",
|
|
2482
|
+
"examples": [
|
|
2483
|
+
"$ 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",
|
|
2484
|
+
"$ xano tenant delete t1234-abcd-xyz1 --force\nDeleted tenant t1234-abcd-xyz1\n",
|
|
2485
|
+
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
2486
|
+
],
|
|
2487
|
+
"flags": {
|
|
2488
|
+
"profile": {
|
|
2489
|
+
"char": "p",
|
|
2490
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2491
|
+
"env": "XANO_PROFILE",
|
|
2492
|
+
"name": "profile",
|
|
2493
|
+
"required": false,
|
|
2494
|
+
"hasDynamicHelp": false,
|
|
2495
|
+
"multiple": false,
|
|
2496
|
+
"type": "option"
|
|
2497
|
+
},
|
|
2498
|
+
"verbose": {
|
|
2499
|
+
"char": "v",
|
|
2500
|
+
"description": "Show detailed request/response information",
|
|
2501
|
+
"env": "XANO_VERBOSE",
|
|
2502
|
+
"name": "verbose",
|
|
2503
|
+
"required": false,
|
|
2504
|
+
"allowNo": false,
|
|
2505
|
+
"type": "boolean"
|
|
2506
|
+
},
|
|
2507
|
+
"force": {
|
|
2508
|
+
"char": "f",
|
|
2509
|
+
"description": "Skip confirmation prompt",
|
|
2510
|
+
"name": "force",
|
|
2511
|
+
"required": false,
|
|
2512
|
+
"allowNo": false,
|
|
2513
|
+
"type": "boolean"
|
|
2514
|
+
},
|
|
2515
|
+
"output": {
|
|
2516
|
+
"char": "o",
|
|
2517
|
+
"description": "Output format",
|
|
2518
|
+
"name": "output",
|
|
2519
|
+
"required": false,
|
|
2520
|
+
"default": "summary",
|
|
2521
|
+
"hasDynamicHelp": false,
|
|
2522
|
+
"multiple": false,
|
|
2523
|
+
"options": [
|
|
2524
|
+
"summary",
|
|
2525
|
+
"json"
|
|
2526
|
+
],
|
|
2527
|
+
"type": "option"
|
|
2528
|
+
},
|
|
2529
|
+
"workspace": {
|
|
2530
|
+
"char": "w",
|
|
2531
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2532
|
+
"name": "workspace",
|
|
2533
|
+
"required": false,
|
|
2534
|
+
"hasDynamicHelp": false,
|
|
2535
|
+
"multiple": false,
|
|
2536
|
+
"type": "option"
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
"hasDynamicHelp": false,
|
|
2540
|
+
"hiddenAliases": [],
|
|
2541
|
+
"id": "tenant:delete",
|
|
2542
|
+
"pluginAlias": "@xano/cli",
|
|
2543
|
+
"pluginName": "@xano/cli",
|
|
2544
|
+
"pluginType": "core",
|
|
2545
|
+
"strict": true,
|
|
2546
|
+
"enableJsonFlag": false,
|
|
2547
|
+
"isESM": true,
|
|
2548
|
+
"relativePath": [
|
|
2549
|
+
"dist",
|
|
2550
|
+
"commands",
|
|
2551
|
+
"tenant",
|
|
2552
|
+
"delete",
|
|
2553
|
+
"index.js"
|
|
2554
|
+
]
|
|
2555
|
+
},
|
|
2556
|
+
"tenant:deploy_release": {
|
|
2557
|
+
"aliases": [],
|
|
2558
|
+
"args": {
|
|
2559
|
+
"tenant_name": {
|
|
2560
|
+
"description": "Tenant name to deploy to",
|
|
2561
|
+
"name": "tenant_name",
|
|
2562
|
+
"required": true
|
|
2563
|
+
}
|
|
2564
|
+
},
|
|
2565
|
+
"description": "Deploy a release to a tenant",
|
|
2566
|
+
"examples": [
|
|
2567
|
+
"$ xano tenant deploy-release t1234-abcd-xyz1 --release-id 10\nDeployed release 10 to tenant: My Tenant (my-tenant)\n",
|
|
2568
|
+
"$ xano tenant deploy-release t1234-abcd-xyz1 --release-id 10 -o json"
|
|
2569
|
+
],
|
|
2570
|
+
"flags": {
|
|
2571
|
+
"profile": {
|
|
2572
|
+
"char": "p",
|
|
2573
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2574
|
+
"env": "XANO_PROFILE",
|
|
2575
|
+
"name": "profile",
|
|
2576
|
+
"required": false,
|
|
2577
|
+
"hasDynamicHelp": false,
|
|
2578
|
+
"multiple": false,
|
|
2579
|
+
"type": "option"
|
|
2580
|
+
},
|
|
2581
|
+
"verbose": {
|
|
2582
|
+
"char": "v",
|
|
2583
|
+
"description": "Show detailed request/response information",
|
|
2584
|
+
"env": "XANO_VERBOSE",
|
|
2585
|
+
"name": "verbose",
|
|
2586
|
+
"required": false,
|
|
2587
|
+
"allowNo": false,
|
|
2588
|
+
"type": "boolean"
|
|
2589
|
+
},
|
|
2590
|
+
"output": {
|
|
2591
|
+
"char": "o",
|
|
2592
|
+
"description": "Output format",
|
|
2593
|
+
"name": "output",
|
|
2594
|
+
"required": false,
|
|
2595
|
+
"default": "summary",
|
|
2596
|
+
"hasDynamicHelp": false,
|
|
2597
|
+
"multiple": false,
|
|
2598
|
+
"options": [
|
|
2599
|
+
"summary",
|
|
2600
|
+
"json"
|
|
2601
|
+
],
|
|
2602
|
+
"type": "option"
|
|
2603
|
+
},
|
|
2604
|
+
"release-id": {
|
|
2605
|
+
"description": "Release ID to deploy",
|
|
2606
|
+
"name": "release-id",
|
|
2607
|
+
"required": true,
|
|
2608
|
+
"hasDynamicHelp": false,
|
|
2609
|
+
"multiple": false,
|
|
2610
|
+
"type": "option"
|
|
2611
|
+
},
|
|
2612
|
+
"workspace": {
|
|
2613
|
+
"char": "w",
|
|
2614
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2615
|
+
"name": "workspace",
|
|
2616
|
+
"required": false,
|
|
2617
|
+
"hasDynamicHelp": false,
|
|
2618
|
+
"multiple": false,
|
|
2619
|
+
"type": "option"
|
|
2620
|
+
}
|
|
2621
|
+
},
|
|
2622
|
+
"hasDynamicHelp": false,
|
|
2623
|
+
"hiddenAliases": [],
|
|
2624
|
+
"id": "tenant:deploy_release",
|
|
2625
|
+
"pluginAlias": "@xano/cli",
|
|
2626
|
+
"pluginName": "@xano/cli",
|
|
2627
|
+
"pluginType": "core",
|
|
2628
|
+
"strict": true,
|
|
2629
|
+
"enableJsonFlag": false,
|
|
2630
|
+
"isESM": true,
|
|
2631
|
+
"relativePath": [
|
|
2632
|
+
"dist",
|
|
2633
|
+
"commands",
|
|
2634
|
+
"tenant",
|
|
2635
|
+
"deploy_release",
|
|
2636
|
+
"index.js"
|
|
2637
|
+
]
|
|
2638
|
+
},
|
|
2639
|
+
"tenant:create": {
|
|
2640
|
+
"aliases": [],
|
|
2641
|
+
"args": {},
|
|
2642
|
+
"description": "Create a new tenant in a workspace",
|
|
2643
|
+
"examples": [
|
|
2644
|
+
"$ xano tenant create --display \"Production\"\nCreated tenant: Production (production) - ID: 42\n",
|
|
2645
|
+
"$ xano tenant create --display \"Staging\" --description \"Staging env\" --cluster-id 1 --platform-id 1 --license tier2 -o json"
|
|
2646
|
+
],
|
|
2647
|
+
"flags": {
|
|
2648
|
+
"profile": {
|
|
2649
|
+
"char": "p",
|
|
2650
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2651
|
+
"env": "XANO_PROFILE",
|
|
2652
|
+
"name": "profile",
|
|
2653
|
+
"required": false,
|
|
2654
|
+
"hasDynamicHelp": false,
|
|
2655
|
+
"multiple": false,
|
|
2656
|
+
"type": "option"
|
|
2657
|
+
},
|
|
2658
|
+
"verbose": {
|
|
2659
|
+
"char": "v",
|
|
2660
|
+
"description": "Show detailed request/response information",
|
|
2661
|
+
"env": "XANO_VERBOSE",
|
|
2662
|
+
"name": "verbose",
|
|
2663
|
+
"required": false,
|
|
2664
|
+
"allowNo": false,
|
|
2665
|
+
"type": "boolean"
|
|
2666
|
+
},
|
|
2667
|
+
"cluster-id": {
|
|
2668
|
+
"description": "Cluster ID to deploy to (required for tier2/tier3)",
|
|
2669
|
+
"name": "cluster-id",
|
|
2670
|
+
"required": false,
|
|
2671
|
+
"hasDynamicHelp": false,
|
|
2672
|
+
"multiple": false,
|
|
2673
|
+
"type": "option"
|
|
2674
|
+
},
|
|
2675
|
+
"description": {
|
|
2676
|
+
"char": "d",
|
|
2677
|
+
"description": "Tenant description",
|
|
2678
|
+
"name": "description",
|
|
2679
|
+
"required": false,
|
|
2680
|
+
"hasDynamicHelp": false,
|
|
2681
|
+
"multiple": false,
|
|
2682
|
+
"type": "option"
|
|
2683
|
+
},
|
|
2684
|
+
"display": {
|
|
2685
|
+
"description": "Display name for the tenant",
|
|
2686
|
+
"name": "display",
|
|
2687
|
+
"required": true,
|
|
2688
|
+
"hasDynamicHelp": false,
|
|
2689
|
+
"multiple": false,
|
|
2690
|
+
"type": "option"
|
|
2691
|
+
},
|
|
2692
|
+
"domain": {
|
|
2693
|
+
"description": "Custom domain for the tenant",
|
|
2694
|
+
"name": "domain",
|
|
2695
|
+
"required": false,
|
|
2696
|
+
"hasDynamicHelp": false,
|
|
2697
|
+
"multiple": false,
|
|
2698
|
+
"type": "option"
|
|
2699
|
+
},
|
|
2700
|
+
"ingress": {
|
|
2701
|
+
"description": "Enable ingress",
|
|
2702
|
+
"name": "ingress",
|
|
2703
|
+
"allowNo": true,
|
|
2704
|
+
"type": "boolean"
|
|
2705
|
+
},
|
|
2706
|
+
"license": {
|
|
2707
|
+
"description": "License tier",
|
|
2708
|
+
"name": "license",
|
|
2709
|
+
"required": false,
|
|
2710
|
+
"default": "tier1",
|
|
2711
|
+
"hasDynamicHelp": false,
|
|
2712
|
+
"multiple": false,
|
|
2713
|
+
"options": [
|
|
2714
|
+
"tier1",
|
|
2715
|
+
"tier2",
|
|
2716
|
+
"tier3"
|
|
2717
|
+
],
|
|
2718
|
+
"type": "option"
|
|
2719
|
+
},
|
|
2720
|
+
"output": {
|
|
2721
|
+
"char": "o",
|
|
2722
|
+
"description": "Output format",
|
|
2723
|
+
"name": "output",
|
|
2724
|
+
"required": false,
|
|
2725
|
+
"default": "summary",
|
|
2726
|
+
"hasDynamicHelp": false,
|
|
2727
|
+
"multiple": false,
|
|
2728
|
+
"options": [
|
|
2729
|
+
"summary",
|
|
2730
|
+
"json"
|
|
2731
|
+
],
|
|
2732
|
+
"type": "option"
|
|
2733
|
+
},
|
|
2734
|
+
"platform-id": {
|
|
2735
|
+
"description": "Platform ID to use",
|
|
2736
|
+
"name": "platform-id",
|
|
2737
|
+
"required": false,
|
|
2738
|
+
"hasDynamicHelp": false,
|
|
2739
|
+
"multiple": false,
|
|
2740
|
+
"type": "option"
|
|
2741
|
+
},
|
|
2742
|
+
"tasks": {
|
|
2743
|
+
"description": "Enable background tasks",
|
|
2744
|
+
"name": "tasks",
|
|
2745
|
+
"allowNo": true,
|
|
2746
|
+
"type": "boolean"
|
|
2747
|
+
},
|
|
2748
|
+
"workspace": {
|
|
2749
|
+
"char": "w",
|
|
2750
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2751
|
+
"name": "workspace",
|
|
2752
|
+
"required": false,
|
|
2753
|
+
"hasDynamicHelp": false,
|
|
2754
|
+
"multiple": false,
|
|
2755
|
+
"type": "option"
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
"hasDynamicHelp": false,
|
|
2759
|
+
"hiddenAliases": [],
|
|
2760
|
+
"id": "tenant:create",
|
|
2761
|
+
"pluginAlias": "@xano/cli",
|
|
2762
|
+
"pluginName": "@xano/cli",
|
|
2763
|
+
"pluginType": "core",
|
|
2764
|
+
"strict": true,
|
|
2765
|
+
"enableJsonFlag": false,
|
|
2766
|
+
"isESM": true,
|
|
2767
|
+
"relativePath": [
|
|
2768
|
+
"dist",
|
|
2769
|
+
"commands",
|
|
2770
|
+
"tenant",
|
|
2771
|
+
"create",
|
|
2772
|
+
"index.js"
|
|
2773
|
+
]
|
|
2774
|
+
},
|
|
2775
|
+
"tenant:deploy_platform": {
|
|
2776
|
+
"aliases": [],
|
|
2777
|
+
"args": {
|
|
2778
|
+
"tenant_name": {
|
|
2779
|
+
"description": "Tenant name to deploy to",
|
|
2780
|
+
"name": "tenant_name",
|
|
2781
|
+
"required": true
|
|
2782
|
+
}
|
|
2783
|
+
},
|
|
2784
|
+
"description": "Deploy a platform version to a tenant",
|
|
2785
|
+
"examples": [
|
|
2786
|
+
"$ xano tenant deploy-platform t1234-abcd-xyz1 --platform-id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
2787
|
+
"$ xano tenant deploy-platform t1234-abcd-xyz1 --platform-id 5 -o json"
|
|
2788
|
+
],
|
|
2789
|
+
"flags": {
|
|
2790
|
+
"profile": {
|
|
2791
|
+
"char": "p",
|
|
2792
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2793
|
+
"env": "XANO_PROFILE",
|
|
2794
|
+
"name": "profile",
|
|
2795
|
+
"required": false,
|
|
2796
|
+
"hasDynamicHelp": false,
|
|
2797
|
+
"multiple": false,
|
|
2798
|
+
"type": "option"
|
|
2799
|
+
},
|
|
2800
|
+
"verbose": {
|
|
2801
|
+
"char": "v",
|
|
2802
|
+
"description": "Show detailed request/response information",
|
|
2803
|
+
"env": "XANO_VERBOSE",
|
|
2804
|
+
"name": "verbose",
|
|
2368
2805
|
"required": false,
|
|
2369
2806
|
"allowNo": false,
|
|
2370
2807
|
"type": "boolean"
|
|
2808
|
+
},
|
|
2809
|
+
"output": {
|
|
2810
|
+
"char": "o",
|
|
2811
|
+
"description": "Output format",
|
|
2812
|
+
"name": "output",
|
|
2813
|
+
"required": false,
|
|
2814
|
+
"default": "summary",
|
|
2815
|
+
"hasDynamicHelp": false,
|
|
2816
|
+
"multiple": false,
|
|
2817
|
+
"options": [
|
|
2818
|
+
"summary",
|
|
2819
|
+
"json"
|
|
2820
|
+
],
|
|
2821
|
+
"type": "option"
|
|
2822
|
+
},
|
|
2823
|
+
"platform-id": {
|
|
2824
|
+
"description": "Platform ID to deploy",
|
|
2825
|
+
"name": "platform-id",
|
|
2826
|
+
"required": true,
|
|
2827
|
+
"hasDynamicHelp": false,
|
|
2828
|
+
"multiple": false,
|
|
2829
|
+
"type": "option"
|
|
2830
|
+
},
|
|
2831
|
+
"workspace": {
|
|
2832
|
+
"char": "w",
|
|
2833
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2834
|
+
"name": "workspace",
|
|
2835
|
+
"required": false,
|
|
2836
|
+
"hasDynamicHelp": false,
|
|
2837
|
+
"multiple": false,
|
|
2838
|
+
"type": "option"
|
|
2371
2839
|
}
|
|
2372
2840
|
},
|
|
2373
2841
|
"hasDynamicHelp": false,
|
|
2374
2842
|
"hiddenAliases": [],
|
|
2375
|
-
"id": "
|
|
2843
|
+
"id": "tenant:deploy_platform",
|
|
2376
2844
|
"pluginAlias": "@xano/cli",
|
|
2377
2845
|
"pluginName": "@xano/cli",
|
|
2378
2846
|
"pluginType": "core",
|
|
2379
2847
|
"strict": true,
|
|
2848
|
+
"enableJsonFlag": false,
|
|
2380
2849
|
"isESM": true,
|
|
2381
2850
|
"relativePath": [
|
|
2382
2851
|
"dist",
|
|
2383
2852
|
"commands",
|
|
2384
|
-
"
|
|
2385
|
-
"
|
|
2853
|
+
"tenant",
|
|
2854
|
+
"deploy_platform",
|
|
2386
2855
|
"index.js"
|
|
2387
2856
|
]
|
|
2388
2857
|
},
|
|
2389
|
-
"
|
|
2858
|
+
"tenant:edit": {
|
|
2390
2859
|
"aliases": [],
|
|
2391
|
-
"args": {
|
|
2392
|
-
|
|
2860
|
+
"args": {
|
|
2861
|
+
"tenant_name": {
|
|
2862
|
+
"description": "Tenant name to edit",
|
|
2863
|
+
"name": "tenant_name",
|
|
2864
|
+
"required": true
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
"description": "Edit an existing tenant",
|
|
2393
2868
|
"examples": [
|
|
2394
|
-
"$ xano
|
|
2395
|
-
"$
|
|
2396
|
-
"$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
|
|
2869
|
+
"$ xano tenant edit t1234-abcd-xyz1 --display \"New Name\" --description \"Updated description\"\nUpdated tenant: New Name (my-tenant) - ID: 42\n",
|
|
2870
|
+
"$ xano tenant edit t1234-abcd-xyz1 --no-tasks --no-ingress -o json"
|
|
2397
2871
|
],
|
|
2398
2872
|
"flags": {
|
|
2399
2873
|
"profile": {
|
|
@@ -2415,18 +2889,38 @@
|
|
|
2415
2889
|
"allowNo": false,
|
|
2416
2890
|
"type": "boolean"
|
|
2417
2891
|
},
|
|
2418
|
-
"
|
|
2419
|
-
"char": "
|
|
2420
|
-
"description": "
|
|
2421
|
-
"
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
"
|
|
2892
|
+
"description": {
|
|
2893
|
+
"char": "d",
|
|
2894
|
+
"description": "New description",
|
|
2895
|
+
"name": "description",
|
|
2896
|
+
"required": false,
|
|
2897
|
+
"hasDynamicHelp": false,
|
|
2898
|
+
"multiple": false,
|
|
2899
|
+
"type": "option"
|
|
2900
|
+
},
|
|
2901
|
+
"display": {
|
|
2902
|
+
"description": "New display name",
|
|
2903
|
+
"name": "display",
|
|
2904
|
+
"required": false,
|
|
2905
|
+
"hasDynamicHelp": false,
|
|
2906
|
+
"multiple": false,
|
|
2907
|
+
"type": "option"
|
|
2908
|
+
},
|
|
2909
|
+
"domain": {
|
|
2910
|
+
"description": "Custom domain",
|
|
2911
|
+
"name": "domain",
|
|
2425
2912
|
"required": false,
|
|
2426
2913
|
"hasDynamicHelp": false,
|
|
2427
2914
|
"multiple": false,
|
|
2428
2915
|
"type": "option"
|
|
2429
2916
|
},
|
|
2917
|
+
"ingress": {
|
|
2918
|
+
"description": "Enable/disable ingress",
|
|
2919
|
+
"name": "ingress",
|
|
2920
|
+
"required": false,
|
|
2921
|
+
"allowNo": true,
|
|
2922
|
+
"type": "boolean"
|
|
2923
|
+
},
|
|
2430
2924
|
"output": {
|
|
2431
2925
|
"char": "o",
|
|
2432
2926
|
"description": "Output format",
|
|
@@ -2441,43 +2935,137 @@
|
|
|
2441
2935
|
],
|
|
2442
2936
|
"type": "option"
|
|
2443
2937
|
},
|
|
2444
|
-
"
|
|
2445
|
-
"
|
|
2446
|
-
"
|
|
2447
|
-
"
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
"
|
|
2938
|
+
"proxy": {
|
|
2939
|
+
"description": "Proxy URL",
|
|
2940
|
+
"name": "proxy",
|
|
2941
|
+
"required": false,
|
|
2942
|
+
"hasDynamicHelp": false,
|
|
2943
|
+
"multiple": false,
|
|
2944
|
+
"type": "option"
|
|
2945
|
+
},
|
|
2946
|
+
"rbac": {
|
|
2947
|
+
"description": "Enable/disable RBAC",
|
|
2948
|
+
"name": "rbac",
|
|
2949
|
+
"required": false,
|
|
2950
|
+
"allowNo": true,
|
|
2951
|
+
"type": "boolean"
|
|
2952
|
+
},
|
|
2953
|
+
"tasks": {
|
|
2954
|
+
"description": "Enable/disable background tasks",
|
|
2955
|
+
"name": "tasks",
|
|
2956
|
+
"required": false,
|
|
2957
|
+
"allowNo": true,
|
|
2958
|
+
"type": "boolean"
|
|
2959
|
+
},
|
|
2960
|
+
"workspace": {
|
|
2961
|
+
"char": "w",
|
|
2962
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2963
|
+
"name": "workspace",
|
|
2964
|
+
"required": false,
|
|
2965
|
+
"hasDynamicHelp": false,
|
|
2966
|
+
"multiple": false,
|
|
2967
|
+
"type": "option"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
"hasDynamicHelp": false,
|
|
2971
|
+
"hiddenAliases": [],
|
|
2972
|
+
"id": "tenant:edit",
|
|
2973
|
+
"pluginAlias": "@xano/cli",
|
|
2974
|
+
"pluginName": "@xano/cli",
|
|
2975
|
+
"pluginType": "core",
|
|
2976
|
+
"strict": true,
|
|
2977
|
+
"enableJsonFlag": false,
|
|
2978
|
+
"isESM": true,
|
|
2979
|
+
"relativePath": [
|
|
2980
|
+
"dist",
|
|
2981
|
+
"commands",
|
|
2982
|
+
"tenant",
|
|
2983
|
+
"edit",
|
|
2984
|
+
"index.js"
|
|
2985
|
+
]
|
|
2986
|
+
},
|
|
2987
|
+
"tenant:get": {
|
|
2988
|
+
"aliases": [],
|
|
2989
|
+
"args": {
|
|
2990
|
+
"tenant_name": {
|
|
2991
|
+
"description": "Tenant name to retrieve",
|
|
2992
|
+
"name": "tenant_name",
|
|
2993
|
+
"required": true
|
|
2994
|
+
}
|
|
2995
|
+
},
|
|
2996
|
+
"description": "Get details of a specific tenant",
|
|
2997
|
+
"examples": [
|
|
2998
|
+
"$ 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",
|
|
2999
|
+
"$ xano tenant get t1234-abcd-xyz1 -w 5 -o json"
|
|
3000
|
+
],
|
|
3001
|
+
"flags": {
|
|
3002
|
+
"profile": {
|
|
3003
|
+
"char": "p",
|
|
3004
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
3005
|
+
"env": "XANO_PROFILE",
|
|
3006
|
+
"name": "profile",
|
|
3007
|
+
"required": false,
|
|
3008
|
+
"hasDynamicHelp": false,
|
|
3009
|
+
"multiple": false,
|
|
3010
|
+
"type": "option"
|
|
3011
|
+
},
|
|
3012
|
+
"verbose": {
|
|
3013
|
+
"char": "v",
|
|
3014
|
+
"description": "Show detailed request/response information",
|
|
3015
|
+
"env": "XANO_VERBOSE",
|
|
3016
|
+
"name": "verbose",
|
|
2451
3017
|
"required": false,
|
|
2452
3018
|
"allowNo": false,
|
|
2453
3019
|
"type": "boolean"
|
|
3020
|
+
},
|
|
3021
|
+
"output": {
|
|
3022
|
+
"char": "o",
|
|
3023
|
+
"description": "Output format",
|
|
3024
|
+
"name": "output",
|
|
3025
|
+
"required": false,
|
|
3026
|
+
"default": "summary",
|
|
3027
|
+
"hasDynamicHelp": false,
|
|
3028
|
+
"multiple": false,
|
|
3029
|
+
"options": [
|
|
3030
|
+
"summary",
|
|
3031
|
+
"json"
|
|
3032
|
+
],
|
|
3033
|
+
"type": "option"
|
|
3034
|
+
},
|
|
3035
|
+
"workspace": {
|
|
3036
|
+
"char": "w",
|
|
3037
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
3038
|
+
"name": "workspace",
|
|
3039
|
+
"required": false,
|
|
3040
|
+
"hasDynamicHelp": false,
|
|
3041
|
+
"multiple": false,
|
|
3042
|
+
"type": "option"
|
|
2454
3043
|
}
|
|
2455
3044
|
},
|
|
2456
3045
|
"hasDynamicHelp": false,
|
|
2457
3046
|
"hiddenAliases": [],
|
|
2458
|
-
"id": "
|
|
3047
|
+
"id": "tenant:get",
|
|
2459
3048
|
"pluginAlias": "@xano/cli",
|
|
2460
3049
|
"pluginName": "@xano/cli",
|
|
2461
3050
|
"pluginType": "core",
|
|
2462
3051
|
"strict": true,
|
|
3052
|
+
"enableJsonFlag": false,
|
|
2463
3053
|
"isESM": true,
|
|
2464
3054
|
"relativePath": [
|
|
2465
3055
|
"dist",
|
|
2466
3056
|
"commands",
|
|
2467
|
-
"
|
|
2468
|
-
"
|
|
3057
|
+
"tenant",
|
|
3058
|
+
"get",
|
|
2469
3059
|
"index.js"
|
|
2470
3060
|
]
|
|
2471
3061
|
},
|
|
2472
|
-
"
|
|
3062
|
+
"tenant:list": {
|
|
2473
3063
|
"aliases": [],
|
|
2474
3064
|
"args": {},
|
|
2475
|
-
"description": "List all
|
|
3065
|
+
"description": "List all tenants in a workspace",
|
|
2476
3066
|
"examples": [
|
|
2477
|
-
"$ xano
|
|
2478
|
-
"$ xano
|
|
2479
|
-
"$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
|
|
2480
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
3067
|
+
"$ xano tenant list\nTenants in workspace 5:\n - My Tenant (my-tenant) [ok] - tier1\n - Staging (staging) [ok] - tier1\n",
|
|
3068
|
+
"$ xano tenant list -w 5 --output json"
|
|
2481
3069
|
],
|
|
2482
3070
|
"flags": {
|
|
2483
3071
|
"profile": {
|
|
@@ -2513,27 +3101,9 @@
|
|
|
2513
3101
|
],
|
|
2514
3102
|
"type": "option"
|
|
2515
3103
|
},
|
|
2516
|
-
"page": {
|
|
2517
|
-
"description": "Page number for pagination",
|
|
2518
|
-
"name": "page",
|
|
2519
|
-
"required": false,
|
|
2520
|
-
"default": 1,
|
|
2521
|
-
"hasDynamicHelp": false,
|
|
2522
|
-
"multiple": false,
|
|
2523
|
-
"type": "option"
|
|
2524
|
-
},
|
|
2525
|
-
"per_page": {
|
|
2526
|
-
"description": "Number of results per page",
|
|
2527
|
-
"name": "per_page",
|
|
2528
|
-
"required": false,
|
|
2529
|
-
"default": 50,
|
|
2530
|
-
"hasDynamicHelp": false,
|
|
2531
|
-
"multiple": false,
|
|
2532
|
-
"type": "option"
|
|
2533
|
-
},
|
|
2534
3104
|
"workspace": {
|
|
2535
3105
|
"char": "w",
|
|
2536
|
-
"description": "Workspace ID (
|
|
3106
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2537
3107
|
"name": "workspace",
|
|
2538
3108
|
"required": false,
|
|
2539
3109
|
"hasDynamicHelp": false,
|
|
@@ -2543,7 +3113,7 @@
|
|
|
2543
3113
|
},
|
|
2544
3114
|
"hasDynamicHelp": false,
|
|
2545
3115
|
"hiddenAliases": [],
|
|
2546
|
-
"id": "
|
|
3116
|
+
"id": "tenant:list",
|
|
2547
3117
|
"pluginAlias": "@xano/cli",
|
|
2548
3118
|
"pluginName": "@xano/cli",
|
|
2549
3119
|
"pluginType": "core",
|
|
@@ -2553,24 +3123,20 @@
|
|
|
2553
3123
|
"relativePath": [
|
|
2554
3124
|
"dist",
|
|
2555
3125
|
"commands",
|
|
2556
|
-
"
|
|
3126
|
+
"tenant",
|
|
2557
3127
|
"list",
|
|
2558
3128
|
"index.js"
|
|
2559
3129
|
]
|
|
2560
3130
|
},
|
|
2561
|
-
"
|
|
3131
|
+
"static_host:list": {
|
|
2562
3132
|
"aliases": [],
|
|
2563
|
-
"args": {
|
|
2564
|
-
|
|
2565
|
-
"description": "Tenant name to deploy to",
|
|
2566
|
-
"name": "tenant_name",
|
|
2567
|
-
"required": true
|
|
2568
|
-
}
|
|
2569
|
-
},
|
|
2570
|
-
"description": "Deploy a platform version to a tenant",
|
|
3133
|
+
"args": {},
|
|
3134
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
2571
3135
|
"examples": [
|
|
2572
|
-
"$ xano
|
|
2573
|
-
"$ xano
|
|
3136
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
3137
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
3138
|
+
"$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
|
|
3139
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
2574
3140
|
],
|
|
2575
3141
|
"flags": {
|
|
2576
3142
|
"profile": {
|
|
@@ -2606,17 +3172,27 @@
|
|
|
2606
3172
|
],
|
|
2607
3173
|
"type": "option"
|
|
2608
3174
|
},
|
|
2609
|
-
"
|
|
2610
|
-
"description": "
|
|
2611
|
-
"name": "
|
|
2612
|
-
"required":
|
|
3175
|
+
"page": {
|
|
3176
|
+
"description": "Page number for pagination",
|
|
3177
|
+
"name": "page",
|
|
3178
|
+
"required": false,
|
|
3179
|
+
"default": 1,
|
|
3180
|
+
"hasDynamicHelp": false,
|
|
3181
|
+
"multiple": false,
|
|
3182
|
+
"type": "option"
|
|
3183
|
+
},
|
|
3184
|
+
"per_page": {
|
|
3185
|
+
"description": "Number of results per page",
|
|
3186
|
+
"name": "per_page",
|
|
3187
|
+
"required": false,
|
|
3188
|
+
"default": 50,
|
|
2613
3189
|
"hasDynamicHelp": false,
|
|
2614
3190
|
"multiple": false,
|
|
2615
3191
|
"type": "option"
|
|
2616
3192
|
},
|
|
2617
3193
|
"workspace": {
|
|
2618
3194
|
"char": "w",
|
|
2619
|
-
"description": "Workspace ID (
|
|
3195
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2620
3196
|
"name": "workspace",
|
|
2621
3197
|
"required": false,
|
|
2622
3198
|
"hasDynamicHelp": false,
|
|
@@ -2626,7 +3202,7 @@
|
|
|
2626
3202
|
},
|
|
2627
3203
|
"hasDynamicHelp": false,
|
|
2628
3204
|
"hiddenAliases": [],
|
|
2629
|
-
"id": "
|
|
3205
|
+
"id": "static_host:list",
|
|
2630
3206
|
"pluginAlias": "@xano/cli",
|
|
2631
3207
|
"pluginName": "@xano/cli",
|
|
2632
3208
|
"pluginType": "core",
|
|
@@ -2636,25 +3212,24 @@
|
|
|
2636
3212
|
"relativePath": [
|
|
2637
3213
|
"dist",
|
|
2638
3214
|
"commands",
|
|
2639
|
-
"
|
|
2640
|
-
"
|
|
3215
|
+
"static_host",
|
|
3216
|
+
"list",
|
|
2641
3217
|
"index.js"
|
|
2642
3218
|
]
|
|
2643
3219
|
},
|
|
2644
|
-
"
|
|
3220
|
+
"workflow_test:delete": {
|
|
2645
3221
|
"aliases": [],
|
|
2646
3222
|
"args": {
|
|
2647
|
-
"
|
|
2648
|
-
"description": "
|
|
2649
|
-
"name": "
|
|
3223
|
+
"workflow_test_id": {
|
|
3224
|
+
"description": "ID of the workflow test to delete",
|
|
3225
|
+
"name": "workflow_test_id",
|
|
2650
3226
|
"required": true
|
|
2651
3227
|
}
|
|
2652
3228
|
},
|
|
2653
|
-
"description": "Delete a
|
|
3229
|
+
"description": "Delete a workflow test",
|
|
2654
3230
|
"examples": [
|
|
2655
|
-
"$ xano
|
|
2656
|
-
"$ xano
|
|
2657
|
-
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
3231
|
+
"$ xano workflow-test delete 1\nAre you sure you want to delete workflow test 1? (y/N) y\nDeleted workflow test 1\n",
|
|
3232
|
+
"$ xano workflow-test delete 1 --force"
|
|
2658
3233
|
],
|
|
2659
3234
|
"flags": {
|
|
2660
3235
|
"profile": {
|
|
@@ -2710,7 +3285,7 @@
|
|
|
2710
3285
|
},
|
|
2711
3286
|
"hasDynamicHelp": false,
|
|
2712
3287
|
"hiddenAliases": [],
|
|
2713
|
-
"id": "
|
|
3288
|
+
"id": "workflow_test:delete",
|
|
2714
3289
|
"pluginAlias": "@xano/cli",
|
|
2715
3290
|
"pluginName": "@xano/cli",
|
|
2716
3291
|
"pluginType": "core",
|
|
@@ -2720,24 +3295,25 @@
|
|
|
2720
3295
|
"relativePath": [
|
|
2721
3296
|
"dist",
|
|
2722
3297
|
"commands",
|
|
2723
|
-
"
|
|
3298
|
+
"workflow_test",
|
|
2724
3299
|
"delete",
|
|
2725
3300
|
"index.js"
|
|
2726
3301
|
]
|
|
2727
3302
|
},
|
|
2728
|
-
"
|
|
3303
|
+
"workflow_test:get": {
|
|
2729
3304
|
"aliases": [],
|
|
2730
3305
|
"args": {
|
|
2731
|
-
"
|
|
2732
|
-
"description": "
|
|
2733
|
-
"name": "
|
|
3306
|
+
"workflow_test_id": {
|
|
3307
|
+
"description": "ID of the workflow test",
|
|
3308
|
+
"name": "workflow_test_id",
|
|
2734
3309
|
"required": true
|
|
2735
3310
|
}
|
|
2736
3311
|
},
|
|
2737
|
-
"description": "
|
|
3312
|
+
"description": "Get a specific workflow test",
|
|
2738
3313
|
"examples": [
|
|
2739
|
-
"$ xano
|
|
2740
|
-
"$ xano
|
|
3314
|
+
"$ xano workflow-test get 1\nWorkflow Test: my-test (ID: 1)\n Description: Validates auth endpoints\n Branch: main\n",
|
|
3315
|
+
"$ xano workflow-test get 1 -o xs",
|
|
3316
|
+
"$ xano workflow-test get 1 -o json"
|
|
2741
3317
|
],
|
|
2742
3318
|
"flags": {
|
|
2743
3319
|
"profile": {
|
|
@@ -2759,6 +3335,13 @@
|
|
|
2759
3335
|
"allowNo": false,
|
|
2760
3336
|
"type": "boolean"
|
|
2761
3337
|
},
|
|
3338
|
+
"include-draft": {
|
|
3339
|
+
"description": "Include draft version",
|
|
3340
|
+
"name": "include-draft",
|
|
3341
|
+
"required": false,
|
|
3342
|
+
"allowNo": false,
|
|
3343
|
+
"type": "boolean"
|
|
3344
|
+
},
|
|
2762
3345
|
"output": {
|
|
2763
3346
|
"char": "o",
|
|
2764
3347
|
"description": "Output format",
|
|
@@ -2769,18 +3352,11 @@
|
|
|
2769
3352
|
"multiple": false,
|
|
2770
3353
|
"options": [
|
|
2771
3354
|
"summary",
|
|
2772
|
-
"json"
|
|
3355
|
+
"json",
|
|
3356
|
+
"xs"
|
|
2773
3357
|
],
|
|
2774
3358
|
"type": "option"
|
|
2775
3359
|
},
|
|
2776
|
-
"release-id": {
|
|
2777
|
-
"description": "Release ID to deploy",
|
|
2778
|
-
"name": "release-id",
|
|
2779
|
-
"required": true,
|
|
2780
|
-
"hasDynamicHelp": false,
|
|
2781
|
-
"multiple": false,
|
|
2782
|
-
"type": "option"
|
|
2783
|
-
},
|
|
2784
3360
|
"workspace": {
|
|
2785
3361
|
"char": "w",
|
|
2786
3362
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2793,7 +3369,7 @@
|
|
|
2793
3369
|
},
|
|
2794
3370
|
"hasDynamicHelp": false,
|
|
2795
3371
|
"hiddenAliases": [],
|
|
2796
|
-
"id": "
|
|
3372
|
+
"id": "workflow_test:get",
|
|
2797
3373
|
"pluginAlias": "@xano/cli",
|
|
2798
3374
|
"pluginName": "@xano/cli",
|
|
2799
3375
|
"pluginType": "core",
|
|
@@ -2803,18 +3379,19 @@
|
|
|
2803
3379
|
"relativePath": [
|
|
2804
3380
|
"dist",
|
|
2805
3381
|
"commands",
|
|
2806
|
-
"
|
|
2807
|
-
"
|
|
3382
|
+
"workflow_test",
|
|
3383
|
+
"get",
|
|
2808
3384
|
"index.js"
|
|
2809
3385
|
]
|
|
2810
3386
|
},
|
|
2811
|
-
"
|
|
3387
|
+
"workflow_test:list": {
|
|
2812
3388
|
"aliases": [],
|
|
2813
3389
|
"args": {},
|
|
2814
|
-
"description": "
|
|
3390
|
+
"description": "List all workflow tests in a workspace",
|
|
2815
3391
|
"examples": [
|
|
2816
|
-
"$ xano
|
|
2817
|
-
"$ xano
|
|
3392
|
+
"$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
|
|
3393
|
+
"$ xano workflow-test list -w 5 --output json",
|
|
3394
|
+
"$ xano workflow-test list --branch main"
|
|
2818
3395
|
],
|
|
2819
3396
|
"flags": {
|
|
2820
3397
|
"profile": {
|
|
@@ -2836,57 +3413,13 @@
|
|
|
2836
3413
|
"allowNo": false,
|
|
2837
3414
|
"type": "boolean"
|
|
2838
3415
|
},
|
|
2839
|
-
"
|
|
2840
|
-
"
|
|
2841
|
-
"
|
|
2842
|
-
"
|
|
2843
|
-
"hasDynamicHelp": false,
|
|
2844
|
-
"multiple": false,
|
|
2845
|
-
"type": "option"
|
|
2846
|
-
},
|
|
2847
|
-
"description": {
|
|
2848
|
-
"char": "d",
|
|
2849
|
-
"description": "Tenant description",
|
|
2850
|
-
"name": "description",
|
|
2851
|
-
"required": false,
|
|
2852
|
-
"hasDynamicHelp": false,
|
|
2853
|
-
"multiple": false,
|
|
2854
|
-
"type": "option"
|
|
2855
|
-
},
|
|
2856
|
-
"display": {
|
|
2857
|
-
"description": "Display name for the tenant",
|
|
2858
|
-
"name": "display",
|
|
2859
|
-
"required": true,
|
|
2860
|
-
"hasDynamicHelp": false,
|
|
2861
|
-
"multiple": false,
|
|
2862
|
-
"type": "option"
|
|
2863
|
-
},
|
|
2864
|
-
"domain": {
|
|
2865
|
-
"description": "Custom domain for the tenant",
|
|
2866
|
-
"name": "domain",
|
|
2867
|
-
"required": false,
|
|
2868
|
-
"hasDynamicHelp": false,
|
|
2869
|
-
"multiple": false,
|
|
2870
|
-
"type": "option"
|
|
2871
|
-
},
|
|
2872
|
-
"ingress": {
|
|
2873
|
-
"description": "Enable ingress",
|
|
2874
|
-
"name": "ingress",
|
|
2875
|
-
"allowNo": true,
|
|
2876
|
-
"type": "boolean"
|
|
2877
|
-
},
|
|
2878
|
-
"license": {
|
|
2879
|
-
"description": "License tier",
|
|
2880
|
-
"name": "license",
|
|
3416
|
+
"branch": {
|
|
3417
|
+
"char": "b",
|
|
3418
|
+
"description": "Filter by branch name",
|
|
3419
|
+
"name": "branch",
|
|
2881
3420
|
"required": false,
|
|
2882
|
-
"default": "tier1",
|
|
2883
3421
|
"hasDynamicHelp": false,
|
|
2884
3422
|
"multiple": false,
|
|
2885
|
-
"options": [
|
|
2886
|
-
"tier1",
|
|
2887
|
-
"tier2",
|
|
2888
|
-
"tier3"
|
|
2889
|
-
],
|
|
2890
3423
|
"type": "option"
|
|
2891
3424
|
},
|
|
2892
3425
|
"output": {
|
|
@@ -2903,20 +3436,6 @@
|
|
|
2903
3436
|
],
|
|
2904
3437
|
"type": "option"
|
|
2905
3438
|
},
|
|
2906
|
-
"platform-id": {
|
|
2907
|
-
"description": "Platform ID to use",
|
|
2908
|
-
"name": "platform-id",
|
|
2909
|
-
"required": false,
|
|
2910
|
-
"hasDynamicHelp": false,
|
|
2911
|
-
"multiple": false,
|
|
2912
|
-
"type": "option"
|
|
2913
|
-
},
|
|
2914
|
-
"tasks": {
|
|
2915
|
-
"description": "Enable background tasks",
|
|
2916
|
-
"name": "tasks",
|
|
2917
|
-
"allowNo": true,
|
|
2918
|
-
"type": "boolean"
|
|
2919
|
-
},
|
|
2920
3439
|
"workspace": {
|
|
2921
3440
|
"char": "w",
|
|
2922
3441
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2929,7 +3448,7 @@
|
|
|
2929
3448
|
},
|
|
2930
3449
|
"hasDynamicHelp": false,
|
|
2931
3450
|
"hiddenAliases": [],
|
|
2932
|
-
"id": "
|
|
3451
|
+
"id": "workflow_test:list",
|
|
2933
3452
|
"pluginAlias": "@xano/cli",
|
|
2934
3453
|
"pluginName": "@xano/cli",
|
|
2935
3454
|
"pluginType": "core",
|
|
@@ -2939,24 +3458,24 @@
|
|
|
2939
3458
|
"relativePath": [
|
|
2940
3459
|
"dist",
|
|
2941
3460
|
"commands",
|
|
2942
|
-
"
|
|
2943
|
-
"
|
|
3461
|
+
"workflow_test",
|
|
3462
|
+
"list",
|
|
2944
3463
|
"index.js"
|
|
2945
3464
|
]
|
|
2946
3465
|
},
|
|
2947
|
-
"
|
|
3466
|
+
"workflow_test:run": {
|
|
2948
3467
|
"aliases": [],
|
|
2949
3468
|
"args": {
|
|
2950
|
-
"
|
|
2951
|
-
"description": "
|
|
2952
|
-
"name": "
|
|
3469
|
+
"workflow_test_id": {
|
|
3470
|
+
"description": "ID of the workflow test to run",
|
|
3471
|
+
"name": "workflow_test_id",
|
|
2953
3472
|
"required": true
|
|
2954
3473
|
}
|
|
2955
3474
|
},
|
|
2956
|
-
"description": "
|
|
3475
|
+
"description": "Run a workflow test",
|
|
2957
3476
|
"examples": [
|
|
2958
|
-
"$ xano
|
|
2959
|
-
"$ xano
|
|
3477
|
+
"$ xano workflow-test run 1\nRunning workflow test 1...\nResult: PASS (1.234s)\n",
|
|
3478
|
+
"$ xano workflow-test run 1 -o json"
|
|
2960
3479
|
],
|
|
2961
3480
|
"flags": {
|
|
2962
3481
|
"profile": {
|
|
@@ -3004,7 +3523,7 @@
|
|
|
3004
3523
|
},
|
|
3005
3524
|
"hasDynamicHelp": false,
|
|
3006
3525
|
"hiddenAliases": [],
|
|
3007
|
-
"id": "
|
|
3526
|
+
"id": "workflow_test:run",
|
|
3008
3527
|
"pluginAlias": "@xano/cli",
|
|
3009
3528
|
"pluginName": "@xano/cli",
|
|
3010
3529
|
"pluginType": "core",
|
|
@@ -3014,24 +3533,25 @@
|
|
|
3014
3533
|
"relativePath": [
|
|
3015
3534
|
"dist",
|
|
3016
3535
|
"commands",
|
|
3017
|
-
"
|
|
3018
|
-
"
|
|
3536
|
+
"workflow_test",
|
|
3537
|
+
"run",
|
|
3019
3538
|
"index.js"
|
|
3020
3539
|
]
|
|
3021
3540
|
},
|
|
3022
|
-
"
|
|
3541
|
+
"workspace:create": {
|
|
3023
3542
|
"aliases": [],
|
|
3024
3543
|
"args": {
|
|
3025
|
-
"
|
|
3026
|
-
"description": "
|
|
3027
|
-
"name": "
|
|
3544
|
+
"name": {
|
|
3545
|
+
"description": "Name of the workspace",
|
|
3546
|
+
"name": "name",
|
|
3028
3547
|
"required": true
|
|
3029
3548
|
}
|
|
3030
3549
|
},
|
|
3031
|
-
"description": "
|
|
3550
|
+
"description": "Create a new workspace via the Xano Metadata API",
|
|
3032
3551
|
"examples": [
|
|
3033
|
-
"$ xano
|
|
3034
|
-
"$ xano
|
|
3552
|
+
"$ xano workspace create my-workspace\nCreated workspace: my-workspace (ID: 123)\n",
|
|
3553
|
+
"$ xano workspace create my-app --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
|
|
3554
|
+
"$ xano workspace create new-project -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
|
|
3035
3555
|
],
|
|
3036
3556
|
"flags": {
|
|
3037
3557
|
"profile": {
|
|
@@ -3055,36 +3575,13 @@
|
|
|
3055
3575
|
},
|
|
3056
3576
|
"description": {
|
|
3057
3577
|
"char": "d",
|
|
3058
|
-
"description": "
|
|
3578
|
+
"description": "Description for the workspace",
|
|
3059
3579
|
"name": "description",
|
|
3060
3580
|
"required": false,
|
|
3061
3581
|
"hasDynamicHelp": false,
|
|
3062
3582
|
"multiple": false,
|
|
3063
3583
|
"type": "option"
|
|
3064
3584
|
},
|
|
3065
|
-
"display": {
|
|
3066
|
-
"description": "New display name",
|
|
3067
|
-
"name": "display",
|
|
3068
|
-
"required": false,
|
|
3069
|
-
"hasDynamicHelp": false,
|
|
3070
|
-
"multiple": false,
|
|
3071
|
-
"type": "option"
|
|
3072
|
-
},
|
|
3073
|
-
"domain": {
|
|
3074
|
-
"description": "Custom domain",
|
|
3075
|
-
"name": "domain",
|
|
3076
|
-
"required": false,
|
|
3077
|
-
"hasDynamicHelp": false,
|
|
3078
|
-
"multiple": false,
|
|
3079
|
-
"type": "option"
|
|
3080
|
-
},
|
|
3081
|
-
"ingress": {
|
|
3082
|
-
"description": "Enable/disable ingress",
|
|
3083
|
-
"name": "ingress",
|
|
3084
|
-
"required": false,
|
|
3085
|
-
"allowNo": true,
|
|
3086
|
-
"type": "boolean"
|
|
3087
|
-
},
|
|
3088
3585
|
"output": {
|
|
3089
3586
|
"char": "o",
|
|
3090
3587
|
"description": "Output format",
|
|
@@ -3098,42 +3595,11 @@
|
|
|
3098
3595
|
"json"
|
|
3099
3596
|
],
|
|
3100
3597
|
"type": "option"
|
|
3101
|
-
},
|
|
3102
|
-
"proxy": {
|
|
3103
|
-
"description": "Proxy URL",
|
|
3104
|
-
"name": "proxy",
|
|
3105
|
-
"required": false,
|
|
3106
|
-
"hasDynamicHelp": false,
|
|
3107
|
-
"multiple": false,
|
|
3108
|
-
"type": "option"
|
|
3109
|
-
},
|
|
3110
|
-
"rbac": {
|
|
3111
|
-
"description": "Enable/disable RBAC",
|
|
3112
|
-
"name": "rbac",
|
|
3113
|
-
"required": false,
|
|
3114
|
-
"allowNo": true,
|
|
3115
|
-
"type": "boolean"
|
|
3116
|
-
},
|
|
3117
|
-
"tasks": {
|
|
3118
|
-
"description": "Enable/disable background tasks",
|
|
3119
|
-
"name": "tasks",
|
|
3120
|
-
"required": false,
|
|
3121
|
-
"allowNo": true,
|
|
3122
|
-
"type": "boolean"
|
|
3123
|
-
},
|
|
3124
|
-
"workspace": {
|
|
3125
|
-
"char": "w",
|
|
3126
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
3127
|
-
"name": "workspace",
|
|
3128
|
-
"required": false,
|
|
3129
|
-
"hasDynamicHelp": false,
|
|
3130
|
-
"multiple": false,
|
|
3131
|
-
"type": "option"
|
|
3132
3598
|
}
|
|
3133
3599
|
},
|
|
3134
3600
|
"hasDynamicHelp": false,
|
|
3135
3601
|
"hiddenAliases": [],
|
|
3136
|
-
"id": "
|
|
3602
|
+
"id": "workspace:create",
|
|
3137
3603
|
"pluginAlias": "@xano/cli",
|
|
3138
3604
|
"pluginName": "@xano/cli",
|
|
3139
3605
|
"pluginType": "core",
|
|
@@ -3143,18 +3609,18 @@
|
|
|
3143
3609
|
"relativePath": [
|
|
3144
3610
|
"dist",
|
|
3145
3611
|
"commands",
|
|
3146
|
-
"
|
|
3147
|
-
"
|
|
3612
|
+
"workspace",
|
|
3613
|
+
"create",
|
|
3148
3614
|
"index.js"
|
|
3149
3615
|
]
|
|
3150
3616
|
},
|
|
3151
|
-
"
|
|
3617
|
+
"workflow_test:run_all": {
|
|
3152
3618
|
"aliases": [],
|
|
3153
3619
|
"args": {},
|
|
3154
|
-
"description": "
|
|
3620
|
+
"description": "Run all workflow tests in a workspace",
|
|
3155
3621
|
"examples": [
|
|
3156
|
-
"$ xano
|
|
3157
|
-
"$ xano
|
|
3622
|
+
"$ xano workflow-test run-all\nRunning 3 workflow tests...\n\nPASS my-test (1.234s)\nPASS auth-flow (0.567s)\nFAIL data-validation (0.890s)\n Error: assertion failed at step 3\n\nResults: 2 passed, 1 failed (2.691s total)\n",
|
|
3623
|
+
"$ xano workflow-test run-all --branch main -o json"
|
|
3158
3624
|
],
|
|
3159
3625
|
"flags": {
|
|
3160
3626
|
"profile": {
|
|
@@ -3176,6 +3642,15 @@
|
|
|
3176
3642
|
"allowNo": false,
|
|
3177
3643
|
"type": "boolean"
|
|
3178
3644
|
},
|
|
3645
|
+
"branch": {
|
|
3646
|
+
"char": "b",
|
|
3647
|
+
"description": "Filter by branch name",
|
|
3648
|
+
"name": "branch",
|
|
3649
|
+
"required": false,
|
|
3650
|
+
"hasDynamicHelp": false,
|
|
3651
|
+
"multiple": false,
|
|
3652
|
+
"type": "option"
|
|
3653
|
+
},
|
|
3179
3654
|
"output": {
|
|
3180
3655
|
"char": "o",
|
|
3181
3656
|
"description": "Output format",
|
|
@@ -3202,7 +3677,7 @@
|
|
|
3202
3677
|
},
|
|
3203
3678
|
"hasDynamicHelp": false,
|
|
3204
3679
|
"hiddenAliases": [],
|
|
3205
|
-
"id": "
|
|
3680
|
+
"id": "workflow_test:run_all",
|
|
3206
3681
|
"pluginAlias": "@xano/cli",
|
|
3207
3682
|
"pluginName": "@xano/cli",
|
|
3208
3683
|
"pluginType": "core",
|
|
@@ -3212,8 +3687,8 @@
|
|
|
3212
3687
|
"relativePath": [
|
|
3213
3688
|
"dist",
|
|
3214
3689
|
"commands",
|
|
3215
|
-
"
|
|
3216
|
-
"
|
|
3690
|
+
"workflow_test",
|
|
3691
|
+
"run_all",
|
|
3217
3692
|
"index.js"
|
|
3218
3693
|
]
|
|
3219
3694
|
},
|
|
@@ -3292,73 +3767,6 @@
|
|
|
3292
3767
|
"index.js"
|
|
3293
3768
|
]
|
|
3294
3769
|
},
|
|
3295
|
-
"workspace:get": {
|
|
3296
|
-
"aliases": [],
|
|
3297
|
-
"args": {
|
|
3298
|
-
"workspace_id": {
|
|
3299
|
-
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
3300
|
-
"name": "workspace_id",
|
|
3301
|
-
"required": false
|
|
3302
|
-
}
|
|
3303
|
-
},
|
|
3304
|
-
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
3305
|
-
"examples": [
|
|
3306
|
-
"$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
|
|
3307
|
-
"$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
|
|
3308
|
-
"$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
|
|
3309
|
-
],
|
|
3310
|
-
"flags": {
|
|
3311
|
-
"profile": {
|
|
3312
|
-
"char": "p",
|
|
3313
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
3314
|
-
"env": "XANO_PROFILE",
|
|
3315
|
-
"name": "profile",
|
|
3316
|
-
"required": false,
|
|
3317
|
-
"hasDynamicHelp": false,
|
|
3318
|
-
"multiple": false,
|
|
3319
|
-
"type": "option"
|
|
3320
|
-
},
|
|
3321
|
-
"verbose": {
|
|
3322
|
-
"char": "v",
|
|
3323
|
-
"description": "Show detailed request/response information",
|
|
3324
|
-
"env": "XANO_VERBOSE",
|
|
3325
|
-
"name": "verbose",
|
|
3326
|
-
"required": false,
|
|
3327
|
-
"allowNo": false,
|
|
3328
|
-
"type": "boolean"
|
|
3329
|
-
},
|
|
3330
|
-
"output": {
|
|
3331
|
-
"char": "o",
|
|
3332
|
-
"description": "Output format",
|
|
3333
|
-
"name": "output",
|
|
3334
|
-
"required": false,
|
|
3335
|
-
"default": "summary",
|
|
3336
|
-
"hasDynamicHelp": false,
|
|
3337
|
-
"multiple": false,
|
|
3338
|
-
"options": [
|
|
3339
|
-
"summary",
|
|
3340
|
-
"json"
|
|
3341
|
-
],
|
|
3342
|
-
"type": "option"
|
|
3343
|
-
}
|
|
3344
|
-
},
|
|
3345
|
-
"hasDynamicHelp": false,
|
|
3346
|
-
"hiddenAliases": [],
|
|
3347
|
-
"id": "workspace:get",
|
|
3348
|
-
"pluginAlias": "@xano/cli",
|
|
3349
|
-
"pluginName": "@xano/cli",
|
|
3350
|
-
"pluginType": "core",
|
|
3351
|
-
"strict": true,
|
|
3352
|
-
"enableJsonFlag": false,
|
|
3353
|
-
"isESM": true,
|
|
3354
|
-
"relativePath": [
|
|
3355
|
-
"dist",
|
|
3356
|
-
"commands",
|
|
3357
|
-
"workspace",
|
|
3358
|
-
"get",
|
|
3359
|
-
"index.js"
|
|
3360
|
-
]
|
|
3361
|
-
},
|
|
3362
3770
|
"workspace:edit": {
|
|
3363
3771
|
"aliases": [],
|
|
3364
3772
|
"args": {
|
|
@@ -3459,15 +3867,20 @@
|
|
|
3459
3867
|
"index.js"
|
|
3460
3868
|
]
|
|
3461
3869
|
},
|
|
3462
|
-
"workspace:
|
|
3870
|
+
"workspace:get": {
|
|
3463
3871
|
"aliases": [],
|
|
3464
|
-
"args": {
|
|
3465
|
-
|
|
3872
|
+
"args": {
|
|
3873
|
+
"workspace_id": {
|
|
3874
|
+
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
3875
|
+
"name": "workspace_id",
|
|
3876
|
+
"required": false
|
|
3877
|
+
}
|
|
3878
|
+
},
|
|
3879
|
+
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
3466
3880
|
"examples": [
|
|
3467
|
-
"$ xano workspace:
|
|
3468
|
-
"$ xano workspace
|
|
3469
|
-
"$ xano workspace
|
|
3470
|
-
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
3881
|
+
"$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
|
|
3882
|
+
"$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
|
|
3883
|
+
"$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
|
|
3471
3884
|
],
|
|
3472
3885
|
"flags": {
|
|
3473
3886
|
"profile": {
|
|
@@ -3506,7 +3919,7 @@
|
|
|
3506
3919
|
},
|
|
3507
3920
|
"hasDynamicHelp": false,
|
|
3508
3921
|
"hiddenAliases": [],
|
|
3509
|
-
"id": "workspace:
|
|
3922
|
+
"id": "workspace:get",
|
|
3510
3923
|
"pluginAlias": "@xano/cli",
|
|
3511
3924
|
"pluginName": "@xano/cli",
|
|
3512
3925
|
"pluginType": "core",
|
|
@@ -3517,24 +3930,19 @@
|
|
|
3517
3930
|
"dist",
|
|
3518
3931
|
"commands",
|
|
3519
3932
|
"workspace",
|
|
3520
|
-
"
|
|
3933
|
+
"get",
|
|
3521
3934
|
"index.js"
|
|
3522
3935
|
]
|
|
3523
3936
|
},
|
|
3524
|
-
"workspace:
|
|
3937
|
+
"workspace:list": {
|
|
3525
3938
|
"aliases": [],
|
|
3526
|
-
"args": {
|
|
3527
|
-
|
|
3528
|
-
"description": "Name of the workspace",
|
|
3529
|
-
"name": "name",
|
|
3530
|
-
"required": true
|
|
3531
|
-
}
|
|
3532
|
-
},
|
|
3533
|
-
"description": "Create a new workspace via the Xano Metadata API",
|
|
3939
|
+
"args": {},
|
|
3940
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
3534
3941
|
"examples": [
|
|
3535
|
-
"$ xano workspace
|
|
3536
|
-
"$ xano workspace
|
|
3537
|
-
"$ xano workspace
|
|
3942
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
3943
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
3944
|
+
"$ 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",
|
|
3945
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
3538
3946
|
],
|
|
3539
3947
|
"flags": {
|
|
3540
3948
|
"profile": {
|
|
@@ -3556,15 +3964,6 @@
|
|
|
3556
3964
|
"allowNo": false,
|
|
3557
3965
|
"type": "boolean"
|
|
3558
3966
|
},
|
|
3559
|
-
"description": {
|
|
3560
|
-
"char": "d",
|
|
3561
|
-
"description": "Description for the workspace",
|
|
3562
|
-
"name": "description",
|
|
3563
|
-
"required": false,
|
|
3564
|
-
"hasDynamicHelp": false,
|
|
3565
|
-
"multiple": false,
|
|
3566
|
-
"type": "option"
|
|
3567
|
-
},
|
|
3568
3967
|
"output": {
|
|
3569
3968
|
"char": "o",
|
|
3570
3969
|
"description": "Output format",
|
|
@@ -3582,7 +3981,7 @@
|
|
|
3582
3981
|
},
|
|
3583
3982
|
"hasDynamicHelp": false,
|
|
3584
3983
|
"hiddenAliases": [],
|
|
3585
|
-
"id": "workspace:
|
|
3984
|
+
"id": "workspace:list",
|
|
3586
3985
|
"pluginAlias": "@xano/cli",
|
|
3587
3986
|
"pluginName": "@xano/cli",
|
|
3588
3987
|
"pluginType": "core",
|
|
@@ -3593,7 +3992,7 @@
|
|
|
3593
3992
|
"dist",
|
|
3594
3993
|
"commands",
|
|
3595
3994
|
"workspace",
|
|
3596
|
-
"
|
|
3995
|
+
"list",
|
|
3597
3996
|
"index.js"
|
|
3598
3997
|
]
|
|
3599
3998
|
},
|
|
@@ -3789,19 +4188,14 @@
|
|
|
3789
4188
|
"index.js"
|
|
3790
4189
|
]
|
|
3791
4190
|
},
|
|
3792
|
-
"
|
|
4191
|
+
"unit_test:list": {
|
|
3793
4192
|
"aliases": [],
|
|
3794
|
-
"args": {
|
|
3795
|
-
|
|
3796
|
-
"description": "Environment variable name",
|
|
3797
|
-
"name": "name",
|
|
3798
|
-
"required": true
|
|
3799
|
-
}
|
|
3800
|
-
},
|
|
3801
|
-
"description": "Delete an environment variable",
|
|
4193
|
+
"args": {},
|
|
4194
|
+
"description": "List all unit tests in a workspace",
|
|
3802
4195
|
"examples": [
|
|
3803
|
-
"$ xano
|
|
3804
|
-
"$ xano
|
|
4196
|
+
"$ xano unit-test list\nUnit tests in workspace 5:\n - my-test (ID: abc-123) [function: math]\n - auth-check (ID: def-456) [query: /user/login]\n",
|
|
4197
|
+
"$ xano unit-test list -w 5 --output json",
|
|
4198
|
+
"$ xano unit-test list --obj-type function"
|
|
3805
4199
|
],
|
|
3806
4200
|
"flags": {
|
|
3807
4201
|
"profile": {
|
|
@@ -3823,40 +4217,82 @@
|
|
|
3823
4217
|
"allowNo": false,
|
|
3824
4218
|
"type": "boolean"
|
|
3825
4219
|
},
|
|
3826
|
-
"
|
|
3827
|
-
"char": "
|
|
3828
|
-
"description": "
|
|
3829
|
-
"name": "
|
|
4220
|
+
"branch": {
|
|
4221
|
+
"char": "b",
|
|
4222
|
+
"description": "Filter by branch name",
|
|
4223
|
+
"name": "branch",
|
|
3830
4224
|
"required": false,
|
|
3831
|
-
"
|
|
3832
|
-
"
|
|
4225
|
+
"hasDynamicHelp": false,
|
|
4226
|
+
"multiple": false,
|
|
4227
|
+
"type": "option"
|
|
4228
|
+
},
|
|
4229
|
+
"obj-type": {
|
|
4230
|
+
"description": "Filter by object type",
|
|
4231
|
+
"name": "obj-type",
|
|
4232
|
+
"required": false,
|
|
4233
|
+
"hasDynamicHelp": false,
|
|
4234
|
+
"multiple": false,
|
|
4235
|
+
"options": [
|
|
4236
|
+
"function",
|
|
4237
|
+
"query",
|
|
4238
|
+
"middleware"
|
|
4239
|
+
],
|
|
4240
|
+
"type": "option"
|
|
4241
|
+
},
|
|
4242
|
+
"output": {
|
|
4243
|
+
"char": "o",
|
|
4244
|
+
"description": "Output format",
|
|
4245
|
+
"name": "output",
|
|
4246
|
+
"required": false,
|
|
4247
|
+
"default": "summary",
|
|
4248
|
+
"hasDynamicHelp": false,
|
|
4249
|
+
"multiple": false,
|
|
4250
|
+
"options": [
|
|
4251
|
+
"summary",
|
|
4252
|
+
"json"
|
|
4253
|
+
],
|
|
4254
|
+
"type": "option"
|
|
4255
|
+
},
|
|
4256
|
+
"workspace": {
|
|
4257
|
+
"char": "w",
|
|
4258
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4259
|
+
"name": "workspace",
|
|
4260
|
+
"required": false,
|
|
4261
|
+
"hasDynamicHelp": false,
|
|
4262
|
+
"multiple": false,
|
|
4263
|
+
"type": "option"
|
|
3833
4264
|
}
|
|
3834
4265
|
},
|
|
3835
4266
|
"hasDynamicHelp": false,
|
|
3836
4267
|
"hiddenAliases": [],
|
|
3837
|
-
"id": "
|
|
4268
|
+
"id": "unit_test:list",
|
|
3838
4269
|
"pluginAlias": "@xano/cli",
|
|
3839
4270
|
"pluginName": "@xano/cli",
|
|
3840
4271
|
"pluginType": "core",
|
|
3841
4272
|
"strict": true,
|
|
4273
|
+
"enableJsonFlag": false,
|
|
3842
4274
|
"isESM": true,
|
|
3843
4275
|
"relativePath": [
|
|
3844
4276
|
"dist",
|
|
3845
4277
|
"commands",
|
|
3846
|
-
"
|
|
3847
|
-
"
|
|
3848
|
-
"delete",
|
|
4278
|
+
"unit_test",
|
|
4279
|
+
"list",
|
|
3849
4280
|
"index.js"
|
|
3850
4281
|
]
|
|
3851
4282
|
},
|
|
3852
|
-
"run
|
|
4283
|
+
"unit_test:run": {
|
|
3853
4284
|
"aliases": [],
|
|
3854
|
-
"args": {
|
|
3855
|
-
|
|
4285
|
+
"args": {
|
|
4286
|
+
"unit_test_id": {
|
|
4287
|
+
"description": "ID of the unit test to run",
|
|
4288
|
+
"name": "unit_test_id",
|
|
4289
|
+
"required": true
|
|
4290
|
+
}
|
|
4291
|
+
},
|
|
4292
|
+
"description": "Run a unit test",
|
|
3856
4293
|
"examples": [
|
|
3857
|
-
"$ xano run
|
|
3858
|
-
"$ xano
|
|
3859
|
-
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
4294
|
+
"$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
|
|
4295
|
+
"$ xano unit-test run abc-123 -o json"
|
|
3860
4296
|
],
|
|
3861
4297
|
"flags": {
|
|
3862
4298
|
"profile": {
|
|
@@ -3878,25 +4314,6 @@
|
|
|
3878
4314
|
"allowNo": false,
|
|
3879
4315
|
"type": "boolean"
|
|
3880
4316
|
},
|
|
3881
|
-
"description": {
|
|
3882
|
-
"char": "d",
|
|
3883
|
-
"description": "Project description",
|
|
3884
|
-
"name": "description",
|
|
3885
|
-
"required": false,
|
|
3886
|
-
"default": "",
|
|
3887
|
-
"hasDynamicHelp": false,
|
|
3888
|
-
"multiple": false,
|
|
3889
|
-
"type": "option"
|
|
3890
|
-
},
|
|
3891
|
-
"name": {
|
|
3892
|
-
"char": "n",
|
|
3893
|
-
"description": "Project name",
|
|
3894
|
-
"name": "name",
|
|
3895
|
-
"required": true,
|
|
3896
|
-
"hasDynamicHelp": false,
|
|
3897
|
-
"multiple": false,
|
|
3898
|
-
"type": "option"
|
|
3899
|
-
},
|
|
3900
4317
|
"output": {
|
|
3901
4318
|
"char": "o",
|
|
3902
4319
|
"description": "Output format",
|
|
@@ -3910,32 +4327,41 @@
|
|
|
3910
4327
|
"json"
|
|
3911
4328
|
],
|
|
3912
4329
|
"type": "option"
|
|
4330
|
+
},
|
|
4331
|
+
"workspace": {
|
|
4332
|
+
"char": "w",
|
|
4333
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4334
|
+
"name": "workspace",
|
|
4335
|
+
"required": false,
|
|
4336
|
+
"hasDynamicHelp": false,
|
|
4337
|
+
"multiple": false,
|
|
4338
|
+
"type": "option"
|
|
3913
4339
|
}
|
|
3914
4340
|
},
|
|
3915
4341
|
"hasDynamicHelp": false,
|
|
3916
4342
|
"hiddenAliases": [],
|
|
3917
|
-
"id": "run
|
|
4343
|
+
"id": "unit_test:run",
|
|
3918
4344
|
"pluginAlias": "@xano/cli",
|
|
3919
4345
|
"pluginName": "@xano/cli",
|
|
3920
4346
|
"pluginType": "core",
|
|
3921
4347
|
"strict": true,
|
|
4348
|
+
"enableJsonFlag": false,
|
|
3922
4349
|
"isESM": true,
|
|
3923
4350
|
"relativePath": [
|
|
3924
4351
|
"dist",
|
|
3925
4352
|
"commands",
|
|
4353
|
+
"unit_test",
|
|
3926
4354
|
"run",
|
|
3927
|
-
"projects",
|
|
3928
|
-
"create",
|
|
3929
4355
|
"index.js"
|
|
3930
4356
|
]
|
|
3931
4357
|
},
|
|
3932
|
-
"
|
|
4358
|
+
"unit_test:run_all": {
|
|
3933
4359
|
"aliases": [],
|
|
3934
4360
|
"args": {},
|
|
3935
|
-
"description": "
|
|
4361
|
+
"description": "Run all unit tests in a workspace",
|
|
3936
4362
|
"examples": [
|
|
3937
|
-
"$ xano run
|
|
3938
|
-
"$ xano run
|
|
4363
|
+
"$ 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",
|
|
4364
|
+
"$ xano unit-test run-all --obj-type function -o json"
|
|
3939
4365
|
],
|
|
3940
4366
|
"flags": {
|
|
3941
4367
|
"profile": {
|
|
@@ -3957,56 +4383,82 @@
|
|
|
3957
4383
|
"allowNo": false,
|
|
3958
4384
|
"type": "boolean"
|
|
3959
4385
|
},
|
|
4386
|
+
"branch": {
|
|
4387
|
+
"char": "b",
|
|
4388
|
+
"description": "Filter by branch name",
|
|
4389
|
+
"name": "branch",
|
|
4390
|
+
"required": false,
|
|
4391
|
+
"hasDynamicHelp": false,
|
|
4392
|
+
"multiple": false,
|
|
4393
|
+
"type": "option"
|
|
4394
|
+
},
|
|
4395
|
+
"obj-type": {
|
|
4396
|
+
"description": "Filter by object type",
|
|
4397
|
+
"name": "obj-type",
|
|
4398
|
+
"required": false,
|
|
4399
|
+
"hasDynamicHelp": false,
|
|
4400
|
+
"multiple": false,
|
|
4401
|
+
"options": [
|
|
4402
|
+
"function",
|
|
4403
|
+
"query",
|
|
4404
|
+
"middleware"
|
|
4405
|
+
],
|
|
4406
|
+
"type": "option"
|
|
4407
|
+
},
|
|
3960
4408
|
"output": {
|
|
3961
4409
|
"char": "o",
|
|
3962
4410
|
"description": "Output format",
|
|
3963
4411
|
"name": "output",
|
|
3964
4412
|
"required": false,
|
|
3965
|
-
"default": "
|
|
4413
|
+
"default": "summary",
|
|
3966
4414
|
"hasDynamicHelp": false,
|
|
3967
4415
|
"multiple": false,
|
|
3968
4416
|
"options": [
|
|
3969
|
-
"
|
|
4417
|
+
"summary",
|
|
3970
4418
|
"json"
|
|
3971
4419
|
],
|
|
3972
4420
|
"type": "option"
|
|
4421
|
+
},
|
|
4422
|
+
"workspace": {
|
|
4423
|
+
"char": "w",
|
|
4424
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4425
|
+
"name": "workspace",
|
|
4426
|
+
"required": false,
|
|
4427
|
+
"hasDynamicHelp": false,
|
|
4428
|
+
"multiple": false,
|
|
4429
|
+
"type": "option"
|
|
3973
4430
|
}
|
|
3974
4431
|
},
|
|
3975
4432
|
"hasDynamicHelp": false,
|
|
3976
4433
|
"hiddenAliases": [],
|
|
3977
|
-
"id": "
|
|
4434
|
+
"id": "unit_test:run_all",
|
|
3978
4435
|
"pluginAlias": "@xano/cli",
|
|
3979
4436
|
"pluginName": "@xano/cli",
|
|
3980
4437
|
"pluginType": "core",
|
|
3981
4438
|
"strict": true,
|
|
4439
|
+
"enableJsonFlag": false,
|
|
3982
4440
|
"isESM": true,
|
|
3983
4441
|
"relativePath": [
|
|
3984
4442
|
"dist",
|
|
3985
4443
|
"commands",
|
|
3986
|
-
"
|
|
3987
|
-
"
|
|
3988
|
-
"list",
|
|
4444
|
+
"unit_test",
|
|
4445
|
+
"run_all",
|
|
3989
4446
|
"index.js"
|
|
3990
4447
|
]
|
|
3991
4448
|
},
|
|
3992
|
-
"run:env:
|
|
4449
|
+
"run:env:delete": {
|
|
3993
4450
|
"aliases": [],
|
|
3994
4451
|
"args": {
|
|
3995
4452
|
"name": {
|
|
3996
4453
|
"description": "Environment variable name",
|
|
3997
4454
|
"name": "name",
|
|
3998
4455
|
"required": true
|
|
3999
|
-
},
|
|
4000
|
-
"value": {
|
|
4001
|
-
"description": "Environment variable value",
|
|
4002
|
-
"name": "value",
|
|
4003
|
-
"required": true
|
|
4004
4456
|
}
|
|
4005
4457
|
},
|
|
4006
|
-
"description": "
|
|
4458
|
+
"description": "Delete an environment variable",
|
|
4007
4459
|
"examples": [
|
|
4008
|
-
"$ xano run env
|
|
4009
|
-
"$ xano run env
|
|
4460
|
+
"$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
|
|
4461
|
+
"$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
|
|
4010
4462
|
],
|
|
4011
4463
|
"flags": {
|
|
4012
4464
|
"profile": {
|
|
@@ -4027,11 +4479,19 @@
|
|
|
4027
4479
|
"required": false,
|
|
4028
4480
|
"allowNo": false,
|
|
4029
4481
|
"type": "boolean"
|
|
4482
|
+
},
|
|
4483
|
+
"force": {
|
|
4484
|
+
"char": "f",
|
|
4485
|
+
"description": "Skip confirmation prompt",
|
|
4486
|
+
"name": "force",
|
|
4487
|
+
"required": false,
|
|
4488
|
+
"allowNo": false,
|
|
4489
|
+
"type": "boolean"
|
|
4030
4490
|
}
|
|
4031
4491
|
},
|
|
4032
4492
|
"hasDynamicHelp": false,
|
|
4033
4493
|
"hiddenAliases": [],
|
|
4034
|
-
"id": "run:env:
|
|
4494
|
+
"id": "run:env:delete",
|
|
4035
4495
|
"pluginAlias": "@xano/cli",
|
|
4036
4496
|
"pluginName": "@xano/cli",
|
|
4037
4497
|
"pluginType": "core",
|
|
@@ -4042,23 +4502,23 @@
|
|
|
4042
4502
|
"commands",
|
|
4043
4503
|
"run",
|
|
4044
4504
|
"env",
|
|
4045
|
-
"
|
|
4505
|
+
"delete",
|
|
4046
4506
|
"index.js"
|
|
4047
4507
|
]
|
|
4048
4508
|
},
|
|
4049
|
-
"run:
|
|
4509
|
+
"run:env:get": {
|
|
4050
4510
|
"aliases": [],
|
|
4051
4511
|
"args": {
|
|
4052
|
-
"
|
|
4053
|
-
"description": "
|
|
4054
|
-
"name": "
|
|
4512
|
+
"name": {
|
|
4513
|
+
"description": "Environment variable name",
|
|
4514
|
+
"name": "name",
|
|
4055
4515
|
"required": true
|
|
4056
4516
|
}
|
|
4057
4517
|
},
|
|
4058
|
-
"description": "
|
|
4518
|
+
"description": "Get an environment variable value",
|
|
4059
4519
|
"examples": [
|
|
4060
|
-
"$ xano run
|
|
4061
|
-
"$ xano run
|
|
4520
|
+
"$ xano run env get API_KEY\nmy-secret-api-key\n",
|
|
4521
|
+
"$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
|
|
4062
4522
|
],
|
|
4063
4523
|
"flags": {
|
|
4064
4524
|
"profile": {
|
|
@@ -4080,18 +4540,24 @@
|
|
|
4080
4540
|
"allowNo": false,
|
|
4081
4541
|
"type": "boolean"
|
|
4082
4542
|
},
|
|
4083
|
-
"
|
|
4084
|
-
"char": "
|
|
4085
|
-
"description": "
|
|
4086
|
-
"name": "
|
|
4543
|
+
"output": {
|
|
4544
|
+
"char": "o",
|
|
4545
|
+
"description": "Output format",
|
|
4546
|
+
"name": "output",
|
|
4087
4547
|
"required": false,
|
|
4088
|
-
"
|
|
4089
|
-
"
|
|
4548
|
+
"default": "value",
|
|
4549
|
+
"hasDynamicHelp": false,
|
|
4550
|
+
"multiple": false,
|
|
4551
|
+
"options": [
|
|
4552
|
+
"value",
|
|
4553
|
+
"json"
|
|
4554
|
+
],
|
|
4555
|
+
"type": "option"
|
|
4090
4556
|
}
|
|
4091
4557
|
},
|
|
4092
4558
|
"hasDynamicHelp": false,
|
|
4093
4559
|
"hiddenAliases": [],
|
|
4094
|
-
"id": "run:
|
|
4560
|
+
"id": "run:env:get",
|
|
4095
4561
|
"pluginAlias": "@xano/cli",
|
|
4096
4562
|
"pluginName": "@xano/cli",
|
|
4097
4563
|
"pluginType": "core",
|
|
@@ -4101,18 +4567,18 @@
|
|
|
4101
4567
|
"dist",
|
|
4102
4568
|
"commands",
|
|
4103
4569
|
"run",
|
|
4104
|
-
"
|
|
4105
|
-
"
|
|
4570
|
+
"env",
|
|
4571
|
+
"get",
|
|
4106
4572
|
"index.js"
|
|
4107
4573
|
]
|
|
4108
4574
|
},
|
|
4109
|
-
"run:
|
|
4575
|
+
"run:env:list": {
|
|
4110
4576
|
"aliases": [],
|
|
4111
4577
|
"args": {},
|
|
4112
|
-
"description": "List all
|
|
4578
|
+
"description": "List all environment variable keys",
|
|
4113
4579
|
"examples": [
|
|
4114
|
-
"$ xano run
|
|
4115
|
-
"$ xano run
|
|
4580
|
+
"$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
|
|
4581
|
+
"$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
|
|
4116
4582
|
],
|
|
4117
4583
|
"flags": {
|
|
4118
4584
|
"profile": {
|
|
@@ -4139,11 +4605,11 @@
|
|
|
4139
4605
|
"description": "Output format",
|
|
4140
4606
|
"name": "output",
|
|
4141
4607
|
"required": false,
|
|
4142
|
-
"default": "
|
|
4608
|
+
"default": "list",
|
|
4143
4609
|
"hasDynamicHelp": false,
|
|
4144
4610
|
"multiple": false,
|
|
4145
4611
|
"options": [
|
|
4146
|
-
"
|
|
4612
|
+
"list",
|
|
4147
4613
|
"json"
|
|
4148
4614
|
],
|
|
4149
4615
|
"type": "option"
|
|
@@ -4151,7 +4617,7 @@
|
|
|
4151
4617
|
},
|
|
4152
4618
|
"hasDynamicHelp": false,
|
|
4153
4619
|
"hiddenAliases": [],
|
|
4154
|
-
"id": "run:
|
|
4620
|
+
"id": "run:env:list",
|
|
4155
4621
|
"pluginAlias": "@xano/cli",
|
|
4156
4622
|
"pluginName": "@xano/cli",
|
|
4157
4623
|
"pluginType": "core",
|
|
@@ -4161,25 +4627,29 @@
|
|
|
4161
4627
|
"dist",
|
|
4162
4628
|
"commands",
|
|
4163
4629
|
"run",
|
|
4164
|
-
"
|
|
4630
|
+
"env",
|
|
4165
4631
|
"list",
|
|
4166
4632
|
"index.js"
|
|
4167
4633
|
]
|
|
4168
4634
|
},
|
|
4169
|
-
"run:
|
|
4635
|
+
"run:env:set": {
|
|
4170
4636
|
"aliases": [],
|
|
4171
4637
|
"args": {
|
|
4172
|
-
"
|
|
4173
|
-
"description": "
|
|
4174
|
-
"name": "
|
|
4638
|
+
"name": {
|
|
4639
|
+
"description": "Environment variable name",
|
|
4640
|
+
"name": "name",
|
|
4641
|
+
"required": true
|
|
4642
|
+
},
|
|
4643
|
+
"value": {
|
|
4644
|
+
"description": "Environment variable value",
|
|
4645
|
+
"name": "value",
|
|
4175
4646
|
"required": true
|
|
4176
4647
|
}
|
|
4177
4648
|
},
|
|
4178
|
-
"description": "
|
|
4649
|
+
"description": "Set an environment variable",
|
|
4179
4650
|
"examples": [
|
|
4180
|
-
"$ xano run
|
|
4181
|
-
"$ xano run
|
|
4182
|
-
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
4651
|
+
"$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
|
|
4652
|
+
"$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
|
|
4183
4653
|
],
|
|
4184
4654
|
"flags": {
|
|
4185
4655
|
"profile": {
|
|
@@ -4200,43 +4670,11 @@
|
|
|
4200
4670
|
"required": false,
|
|
4201
4671
|
"allowNo": false,
|
|
4202
4672
|
"type": "boolean"
|
|
4203
|
-
},
|
|
4204
|
-
"description": {
|
|
4205
|
-
"char": "d",
|
|
4206
|
-
"description": "New project description",
|
|
4207
|
-
"name": "description",
|
|
4208
|
-
"required": false,
|
|
4209
|
-
"hasDynamicHelp": false,
|
|
4210
|
-
"multiple": false,
|
|
4211
|
-
"type": "option"
|
|
4212
|
-
},
|
|
4213
|
-
"name": {
|
|
4214
|
-
"char": "n",
|
|
4215
|
-
"description": "New project name",
|
|
4216
|
-
"name": "name",
|
|
4217
|
-
"required": false,
|
|
4218
|
-
"hasDynamicHelp": false,
|
|
4219
|
-
"multiple": false,
|
|
4220
|
-
"type": "option"
|
|
4221
|
-
},
|
|
4222
|
-
"output": {
|
|
4223
|
-
"char": "o",
|
|
4224
|
-
"description": "Output format",
|
|
4225
|
-
"name": "output",
|
|
4226
|
-
"required": false,
|
|
4227
|
-
"default": "summary",
|
|
4228
|
-
"hasDynamicHelp": false,
|
|
4229
|
-
"multiple": false,
|
|
4230
|
-
"options": [
|
|
4231
|
-
"summary",
|
|
4232
|
-
"json"
|
|
4233
|
-
],
|
|
4234
|
-
"type": "option"
|
|
4235
4673
|
}
|
|
4236
4674
|
},
|
|
4237
4675
|
"hasDynamicHelp": false,
|
|
4238
4676
|
"hiddenAliases": [],
|
|
4239
|
-
"id": "run:
|
|
4677
|
+
"id": "run:env:set",
|
|
4240
4678
|
"pluginAlias": "@xano/cli",
|
|
4241
4679
|
"pluginName": "@xano/cli",
|
|
4242
4680
|
"pluginType": "core",
|
|
@@ -4246,8 +4684,8 @@
|
|
|
4246
4684
|
"dist",
|
|
4247
4685
|
"commands",
|
|
4248
4686
|
"run",
|
|
4249
|
-
"
|
|
4250
|
-
"
|
|
4687
|
+
"env",
|
|
4688
|
+
"set",
|
|
4251
4689
|
"index.js"
|
|
4252
4690
|
]
|
|
4253
4691
|
},
|
|
@@ -4520,19 +4958,99 @@
|
|
|
4520
4958
|
"index.js"
|
|
4521
4959
|
]
|
|
4522
4960
|
},
|
|
4523
|
-
"run:
|
|
4961
|
+
"run:projects:create": {
|
|
4962
|
+
"aliases": [],
|
|
4963
|
+
"args": {},
|
|
4964
|
+
"description": "Create a new project",
|
|
4965
|
+
"examples": [
|
|
4966
|
+
"$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
4967
|
+
"$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
4968
|
+
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
4969
|
+
],
|
|
4970
|
+
"flags": {
|
|
4971
|
+
"profile": {
|
|
4972
|
+
"char": "p",
|
|
4973
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
4974
|
+
"env": "XANO_PROFILE",
|
|
4975
|
+
"name": "profile",
|
|
4976
|
+
"required": false,
|
|
4977
|
+
"hasDynamicHelp": false,
|
|
4978
|
+
"multiple": false,
|
|
4979
|
+
"type": "option"
|
|
4980
|
+
},
|
|
4981
|
+
"verbose": {
|
|
4982
|
+
"char": "v",
|
|
4983
|
+
"description": "Show detailed request/response information",
|
|
4984
|
+
"env": "XANO_VERBOSE",
|
|
4985
|
+
"name": "verbose",
|
|
4986
|
+
"required": false,
|
|
4987
|
+
"allowNo": false,
|
|
4988
|
+
"type": "boolean"
|
|
4989
|
+
},
|
|
4990
|
+
"description": {
|
|
4991
|
+
"char": "d",
|
|
4992
|
+
"description": "Project description",
|
|
4993
|
+
"name": "description",
|
|
4994
|
+
"required": false,
|
|
4995
|
+
"default": "",
|
|
4996
|
+
"hasDynamicHelp": false,
|
|
4997
|
+
"multiple": false,
|
|
4998
|
+
"type": "option"
|
|
4999
|
+
},
|
|
5000
|
+
"name": {
|
|
5001
|
+
"char": "n",
|
|
5002
|
+
"description": "Project name",
|
|
5003
|
+
"name": "name",
|
|
5004
|
+
"required": true,
|
|
5005
|
+
"hasDynamicHelp": false,
|
|
5006
|
+
"multiple": false,
|
|
5007
|
+
"type": "option"
|
|
5008
|
+
},
|
|
5009
|
+
"output": {
|
|
5010
|
+
"char": "o",
|
|
5011
|
+
"description": "Output format",
|
|
5012
|
+
"name": "output",
|
|
5013
|
+
"required": false,
|
|
5014
|
+
"default": "summary",
|
|
5015
|
+
"hasDynamicHelp": false,
|
|
5016
|
+
"multiple": false,
|
|
5017
|
+
"options": [
|
|
5018
|
+
"summary",
|
|
5019
|
+
"json"
|
|
5020
|
+
],
|
|
5021
|
+
"type": "option"
|
|
5022
|
+
}
|
|
5023
|
+
},
|
|
5024
|
+
"hasDynamicHelp": false,
|
|
5025
|
+
"hiddenAliases": [],
|
|
5026
|
+
"id": "run:projects:create",
|
|
5027
|
+
"pluginAlias": "@xano/cli",
|
|
5028
|
+
"pluginName": "@xano/cli",
|
|
5029
|
+
"pluginType": "core",
|
|
5030
|
+
"strict": true,
|
|
5031
|
+
"isESM": true,
|
|
5032
|
+
"relativePath": [
|
|
5033
|
+
"dist",
|
|
5034
|
+
"commands",
|
|
5035
|
+
"run",
|
|
5036
|
+
"projects",
|
|
5037
|
+
"create",
|
|
5038
|
+
"index.js"
|
|
5039
|
+
]
|
|
5040
|
+
},
|
|
5041
|
+
"run:projects:delete": {
|
|
4524
5042
|
"aliases": [],
|
|
4525
5043
|
"args": {
|
|
4526
|
-
"
|
|
4527
|
-
"description": "
|
|
4528
|
-
"name": "
|
|
5044
|
+
"projectId": {
|
|
5045
|
+
"description": "Project ID to delete",
|
|
5046
|
+
"name": "projectId",
|
|
4529
5047
|
"required": true
|
|
4530
5048
|
}
|
|
4531
5049
|
},
|
|
4532
|
-
"description": "Delete a
|
|
5050
|
+
"description": "Delete a project",
|
|
4533
5051
|
"examples": [
|
|
4534
|
-
"$ xano run
|
|
4535
|
-
"$ xano run
|
|
5052
|
+
"$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
|
|
5053
|
+
"$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
|
|
4536
5054
|
],
|
|
4537
5055
|
"flags": {
|
|
4538
5056
|
"profile": {
|
|
@@ -4565,7 +5083,7 @@
|
|
|
4565
5083
|
},
|
|
4566
5084
|
"hasDynamicHelp": false,
|
|
4567
5085
|
"hiddenAliases": [],
|
|
4568
|
-
"id": "run:
|
|
5086
|
+
"id": "run:projects:delete",
|
|
4569
5087
|
"pluginAlias": "@xano/cli",
|
|
4570
5088
|
"pluginName": "@xano/cli",
|
|
4571
5089
|
"pluginType": "core",
|
|
@@ -4575,24 +5093,18 @@
|
|
|
4575
5093
|
"dist",
|
|
4576
5094
|
"commands",
|
|
4577
5095
|
"run",
|
|
4578
|
-
"
|
|
5096
|
+
"projects",
|
|
4579
5097
|
"delete",
|
|
4580
5098
|
"index.js"
|
|
4581
5099
|
]
|
|
4582
5100
|
},
|
|
4583
|
-
"run:
|
|
5101
|
+
"run:projects:list": {
|
|
4584
5102
|
"aliases": [],
|
|
4585
|
-
"args": {
|
|
4586
|
-
|
|
4587
|
-
"description": "Session ID",
|
|
4588
|
-
"name": "sessionId",
|
|
4589
|
-
"required": true
|
|
4590
|
-
}
|
|
4591
|
-
},
|
|
4592
|
-
"description": "Get session details",
|
|
5103
|
+
"args": {},
|
|
5104
|
+
"description": "List all projects",
|
|
4593
5105
|
"examples": [
|
|
4594
|
-
"$ xano run
|
|
4595
|
-
"$ xano run
|
|
5106
|
+
"$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
|
|
5107
|
+
"$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
|
|
4596
5108
|
],
|
|
4597
5109
|
"flags": {
|
|
4598
5110
|
"profile": {
|
|
@@ -4619,11 +5131,11 @@
|
|
|
4619
5131
|
"description": "Output format",
|
|
4620
5132
|
"name": "output",
|
|
4621
5133
|
"required": false,
|
|
4622
|
-
"default": "
|
|
5134
|
+
"default": "table",
|
|
4623
5135
|
"hasDynamicHelp": false,
|
|
4624
5136
|
"multiple": false,
|
|
4625
5137
|
"options": [
|
|
4626
|
-
"
|
|
5138
|
+
"table",
|
|
4627
5139
|
"json"
|
|
4628
5140
|
],
|
|
4629
5141
|
"type": "option"
|
|
@@ -4631,7 +5143,7 @@
|
|
|
4631
5143
|
},
|
|
4632
5144
|
"hasDynamicHelp": false,
|
|
4633
5145
|
"hiddenAliases": [],
|
|
4634
|
-
"id": "run:
|
|
5146
|
+
"id": "run:projects:list",
|
|
4635
5147
|
"pluginAlias": "@xano/cli",
|
|
4636
5148
|
"pluginName": "@xano/cli",
|
|
4637
5149
|
"pluginType": "core",
|
|
@@ -4641,18 +5153,25 @@
|
|
|
4641
5153
|
"dist",
|
|
4642
5154
|
"commands",
|
|
4643
5155
|
"run",
|
|
4644
|
-
"
|
|
4645
|
-
"
|
|
5156
|
+
"projects",
|
|
5157
|
+
"list",
|
|
4646
5158
|
"index.js"
|
|
4647
5159
|
]
|
|
4648
5160
|
},
|
|
4649
|
-
"run:
|
|
5161
|
+
"run:projects:update": {
|
|
4650
5162
|
"aliases": [],
|
|
4651
|
-
"args": {
|
|
4652
|
-
|
|
5163
|
+
"args": {
|
|
5164
|
+
"projectId": {
|
|
5165
|
+
"description": "Project ID to update",
|
|
5166
|
+
"name": "projectId",
|
|
5167
|
+
"required": true
|
|
5168
|
+
}
|
|
5169
|
+
},
|
|
5170
|
+
"description": "Update a project",
|
|
4653
5171
|
"examples": [
|
|
4654
|
-
"$ xano run
|
|
4655
|
-
"$ xano run
|
|
5172
|
+
"$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
|
|
5173
|
+
"$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
|
|
5174
|
+
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
4656
5175
|
],
|
|
4657
5176
|
"flags": {
|
|
4658
5177
|
"profile": {
|
|
@@ -4674,16 +5193,34 @@
|
|
|
4674
5193
|
"allowNo": false,
|
|
4675
5194
|
"type": "boolean"
|
|
4676
5195
|
},
|
|
5196
|
+
"description": {
|
|
5197
|
+
"char": "d",
|
|
5198
|
+
"description": "New project description",
|
|
5199
|
+
"name": "description",
|
|
5200
|
+
"required": false,
|
|
5201
|
+
"hasDynamicHelp": false,
|
|
5202
|
+
"multiple": false,
|
|
5203
|
+
"type": "option"
|
|
5204
|
+
},
|
|
5205
|
+
"name": {
|
|
5206
|
+
"char": "n",
|
|
5207
|
+
"description": "New project name",
|
|
5208
|
+
"name": "name",
|
|
5209
|
+
"required": false,
|
|
5210
|
+
"hasDynamicHelp": false,
|
|
5211
|
+
"multiple": false,
|
|
5212
|
+
"type": "option"
|
|
5213
|
+
},
|
|
4677
5214
|
"output": {
|
|
4678
5215
|
"char": "o",
|
|
4679
5216
|
"description": "Output format",
|
|
4680
5217
|
"name": "output",
|
|
4681
5218
|
"required": false,
|
|
4682
|
-
"default": "
|
|
5219
|
+
"default": "summary",
|
|
4683
5220
|
"hasDynamicHelp": false,
|
|
4684
5221
|
"multiple": false,
|
|
4685
5222
|
"options": [
|
|
4686
|
-
"
|
|
5223
|
+
"summary",
|
|
4687
5224
|
"json"
|
|
4688
5225
|
],
|
|
4689
5226
|
"type": "option"
|
|
@@ -4691,7 +5228,7 @@
|
|
|
4691
5228
|
},
|
|
4692
5229
|
"hasDynamicHelp": false,
|
|
4693
5230
|
"hiddenAliases": [],
|
|
4694
|
-
"id": "run:
|
|
5231
|
+
"id": "run:projects:update",
|
|
4695
5232
|
"pluginAlias": "@xano/cli",
|
|
4696
5233
|
"pluginName": "@xano/cli",
|
|
4697
5234
|
"pluginType": "core",
|
|
@@ -4701,12 +5238,12 @@
|
|
|
4701
5238
|
"dist",
|
|
4702
5239
|
"commands",
|
|
4703
5240
|
"run",
|
|
4704
|
-
"
|
|
4705
|
-
"
|
|
5241
|
+
"projects",
|
|
5242
|
+
"update",
|
|
4706
5243
|
"index.js"
|
|
4707
5244
|
]
|
|
4708
5245
|
},
|
|
4709
|
-
"run:
|
|
5246
|
+
"run:sink:get": {
|
|
4710
5247
|
"aliases": [],
|
|
4711
5248
|
"args": {
|
|
4712
5249
|
"sessionId": {
|
|
@@ -4715,10 +5252,10 @@
|
|
|
4715
5252
|
"required": true
|
|
4716
5253
|
}
|
|
4717
5254
|
},
|
|
4718
|
-
"description": "
|
|
5255
|
+
"description": "Get sink data for a completed session",
|
|
4719
5256
|
"examples": [
|
|
4720
|
-
"$ xano run
|
|
4721
|
-
"$ xano run
|
|
5257
|
+
"$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
|
|
5258
|
+
"$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
|
|
4722
5259
|
],
|
|
4723
5260
|
"flags": {
|
|
4724
5261
|
"profile": {
|
|
@@ -4757,7 +5294,7 @@
|
|
|
4757
5294
|
},
|
|
4758
5295
|
"hasDynamicHelp": false,
|
|
4759
5296
|
"hiddenAliases": [],
|
|
4760
|
-
"id": "run:
|
|
5297
|
+
"id": "run:sink:get",
|
|
4761
5298
|
"pluginAlias": "@xano/cli",
|
|
4762
5299
|
"pluginName": "@xano/cli",
|
|
4763
5300
|
"pluginType": "core",
|
|
@@ -4767,12 +5304,12 @@
|
|
|
4767
5304
|
"dist",
|
|
4768
5305
|
"commands",
|
|
4769
5306
|
"run",
|
|
4770
|
-
"
|
|
4771
|
-
"
|
|
5307
|
+
"sink",
|
|
5308
|
+
"get",
|
|
4772
5309
|
"index.js"
|
|
4773
5310
|
]
|
|
4774
5311
|
},
|
|
4775
|
-
"run:
|
|
5312
|
+
"run:sessions:delete": {
|
|
4776
5313
|
"aliases": [],
|
|
4777
5314
|
"args": {
|
|
4778
5315
|
"sessionId": {
|
|
@@ -4781,10 +5318,10 @@
|
|
|
4781
5318
|
"required": true
|
|
4782
5319
|
}
|
|
4783
5320
|
},
|
|
4784
|
-
"description": "
|
|
5321
|
+
"description": "Delete a session",
|
|
4785
5322
|
"examples": [
|
|
4786
|
-
"$ xano run
|
|
4787
|
-
"$ xano run
|
|
5323
|
+
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
5324
|
+
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
4788
5325
|
],
|
|
4789
5326
|
"flags": {
|
|
4790
5327
|
"profile": {
|
|
@@ -4806,24 +5343,18 @@
|
|
|
4806
5343
|
"allowNo": false,
|
|
4807
5344
|
"type": "boolean"
|
|
4808
5345
|
},
|
|
4809
|
-
"
|
|
4810
|
-
"char": "
|
|
4811
|
-
"description": "
|
|
4812
|
-
"name": "
|
|
5346
|
+
"force": {
|
|
5347
|
+
"char": "f",
|
|
5348
|
+
"description": "Skip confirmation prompt",
|
|
5349
|
+
"name": "force",
|
|
4813
5350
|
"required": false,
|
|
4814
|
-
"
|
|
4815
|
-
"
|
|
4816
|
-
"multiple": false,
|
|
4817
|
-
"options": [
|
|
4818
|
-
"summary",
|
|
4819
|
-
"json"
|
|
4820
|
-
],
|
|
4821
|
-
"type": "option"
|
|
5351
|
+
"allowNo": false,
|
|
5352
|
+
"type": "boolean"
|
|
4822
5353
|
}
|
|
4823
5354
|
},
|
|
4824
5355
|
"hasDynamicHelp": false,
|
|
4825
5356
|
"hiddenAliases": [],
|
|
4826
|
-
"id": "run:
|
|
5357
|
+
"id": "run:sessions:delete",
|
|
4827
5358
|
"pluginAlias": "@xano/cli",
|
|
4828
5359
|
"pluginName": "@xano/cli",
|
|
4829
5360
|
"pluginType": "core",
|
|
@@ -4833,12 +5364,12 @@
|
|
|
4833
5364
|
"dist",
|
|
4834
5365
|
"commands",
|
|
4835
5366
|
"run",
|
|
4836
|
-
"
|
|
4837
|
-
"
|
|
5367
|
+
"sessions",
|
|
5368
|
+
"delete",
|
|
4838
5369
|
"index.js"
|
|
4839
5370
|
]
|
|
4840
5371
|
},
|
|
4841
|
-
"run:sessions:
|
|
5372
|
+
"run:sessions:get": {
|
|
4842
5373
|
"aliases": [],
|
|
4843
5374
|
"args": {
|
|
4844
5375
|
"sessionId": {
|
|
@@ -4847,10 +5378,10 @@
|
|
|
4847
5378
|
"required": true
|
|
4848
5379
|
}
|
|
4849
5380
|
},
|
|
4850
|
-
"description": "
|
|
5381
|
+
"description": "Get session details",
|
|
4851
5382
|
"examples": [
|
|
4852
|
-
"$ xano run sessions
|
|
4853
|
-
"$ xano run sessions
|
|
5383
|
+
"$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
|
|
5384
|
+
"$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
|
|
4854
5385
|
],
|
|
4855
5386
|
"flags": {
|
|
4856
5387
|
"profile": {
|
|
@@ -4889,7 +5420,7 @@
|
|
|
4889
5420
|
},
|
|
4890
5421
|
"hasDynamicHelp": false,
|
|
4891
5422
|
"hiddenAliases": [],
|
|
4892
|
-
"id": "run:sessions:
|
|
5423
|
+
"id": "run:sessions:get",
|
|
4893
5424
|
"pluginAlias": "@xano/cli",
|
|
4894
5425
|
"pluginName": "@xano/cli",
|
|
4895
5426
|
"pluginType": "core",
|
|
@@ -4900,23 +5431,17 @@
|
|
|
4900
5431
|
"commands",
|
|
4901
5432
|
"run",
|
|
4902
5433
|
"sessions",
|
|
4903
|
-
"
|
|
5434
|
+
"get",
|
|
4904
5435
|
"index.js"
|
|
4905
5436
|
]
|
|
4906
5437
|
},
|
|
4907
|
-
"run:
|
|
5438
|
+
"run:sessions:list": {
|
|
4908
5439
|
"aliases": [],
|
|
4909
|
-
"args": {
|
|
4910
|
-
|
|
4911
|
-
"description": "Environment variable name",
|
|
4912
|
-
"name": "name",
|
|
4913
|
-
"required": true
|
|
4914
|
-
}
|
|
4915
|
-
},
|
|
4916
|
-
"description": "Get an environment variable value",
|
|
5440
|
+
"args": {},
|
|
5441
|
+
"description": "List all sessions for the project",
|
|
4917
5442
|
"examples": [
|
|
4918
|
-
"$ xano run
|
|
4919
|
-
"$ xano run
|
|
5443
|
+
"$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
|
|
5444
|
+
"$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
|
|
4920
5445
|
],
|
|
4921
5446
|
"flags": {
|
|
4922
5447
|
"profile": {
|
|
@@ -4943,11 +5468,11 @@
|
|
|
4943
5468
|
"description": "Output format",
|
|
4944
5469
|
"name": "output",
|
|
4945
5470
|
"required": false,
|
|
4946
|
-
"default": "
|
|
5471
|
+
"default": "table",
|
|
4947
5472
|
"hasDynamicHelp": false,
|
|
4948
5473
|
"multiple": false,
|
|
4949
5474
|
"options": [
|
|
4950
|
-
"
|
|
5475
|
+
"table",
|
|
4951
5476
|
"json"
|
|
4952
5477
|
],
|
|
4953
5478
|
"type": "option"
|
|
@@ -4955,7 +5480,7 @@
|
|
|
4955
5480
|
},
|
|
4956
5481
|
"hasDynamicHelp": false,
|
|
4957
5482
|
"hiddenAliases": [],
|
|
4958
|
-
"id": "run:
|
|
5483
|
+
"id": "run:sessions:list",
|
|
4959
5484
|
"pluginAlias": "@xano/cli",
|
|
4960
5485
|
"pluginName": "@xano/cli",
|
|
4961
5486
|
"pluginType": "core",
|
|
@@ -4965,25 +5490,24 @@
|
|
|
4965
5490
|
"dist",
|
|
4966
5491
|
"commands",
|
|
4967
5492
|
"run",
|
|
4968
|
-
"
|
|
4969
|
-
"
|
|
5493
|
+
"sessions",
|
|
5494
|
+
"list",
|
|
4970
5495
|
"index.js"
|
|
4971
5496
|
]
|
|
4972
5497
|
},
|
|
4973
|
-
"
|
|
5498
|
+
"run:sessions:start": {
|
|
4974
5499
|
"aliases": [],
|
|
4975
5500
|
"args": {
|
|
4976
|
-
"
|
|
4977
|
-
"description": "
|
|
4978
|
-
"name": "
|
|
5501
|
+
"sessionId": {
|
|
5502
|
+
"description": "Session ID",
|
|
5503
|
+
"name": "sessionId",
|
|
4979
5504
|
"required": true
|
|
4980
5505
|
}
|
|
4981
5506
|
},
|
|
4982
|
-
"description": "
|
|
5507
|
+
"description": "Start a session",
|
|
4983
5508
|
"examples": [
|
|
4984
|
-
"$ xano
|
|
4985
|
-
"$ xano
|
|
4986
|
-
"$ 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"
|
|
5509
|
+
"$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
|
|
5510
|
+
"$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
|
|
4987
5511
|
],
|
|
4988
5512
|
"flags": {
|
|
4989
5513
|
"profile": {
|
|
@@ -5005,33 +5529,6 @@
|
|
|
5005
5529
|
"allowNo": false,
|
|
5006
5530
|
"type": "boolean"
|
|
5007
5531
|
},
|
|
5008
|
-
"description": {
|
|
5009
|
-
"char": "d",
|
|
5010
|
-
"description": "Build description",
|
|
5011
|
-
"name": "description",
|
|
5012
|
-
"required": false,
|
|
5013
|
-
"hasDynamicHelp": false,
|
|
5014
|
-
"multiple": false,
|
|
5015
|
-
"type": "option"
|
|
5016
|
-
},
|
|
5017
|
-
"file": {
|
|
5018
|
-
"char": "f",
|
|
5019
|
-
"description": "Path to zip file to upload",
|
|
5020
|
-
"name": "file",
|
|
5021
|
-
"required": true,
|
|
5022
|
-
"hasDynamicHelp": false,
|
|
5023
|
-
"multiple": false,
|
|
5024
|
-
"type": "option"
|
|
5025
|
-
},
|
|
5026
|
-
"name": {
|
|
5027
|
-
"char": "n",
|
|
5028
|
-
"description": "Build name",
|
|
5029
|
-
"name": "name",
|
|
5030
|
-
"required": true,
|
|
5031
|
-
"hasDynamicHelp": false,
|
|
5032
|
-
"multiple": false,
|
|
5033
|
-
"type": "option"
|
|
5034
|
-
},
|
|
5035
5532
|
"output": {
|
|
5036
5533
|
"char": "o",
|
|
5037
5534
|
"description": "Output format",
|
|
@@ -5045,55 +5542,38 @@
|
|
|
5045
5542
|
"json"
|
|
5046
5543
|
],
|
|
5047
5544
|
"type": "option"
|
|
5048
|
-
},
|
|
5049
|
-
"workspace": {
|
|
5050
|
-
"char": "w",
|
|
5051
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
5052
|
-
"name": "workspace",
|
|
5053
|
-
"required": false,
|
|
5054
|
-
"hasDynamicHelp": false,
|
|
5055
|
-
"multiple": false,
|
|
5056
|
-
"type": "option"
|
|
5057
5545
|
}
|
|
5058
5546
|
},
|
|
5059
5547
|
"hasDynamicHelp": false,
|
|
5060
5548
|
"hiddenAliases": [],
|
|
5061
|
-
"id": "
|
|
5549
|
+
"id": "run:sessions:start",
|
|
5062
5550
|
"pluginAlias": "@xano/cli",
|
|
5063
5551
|
"pluginName": "@xano/cli",
|
|
5064
5552
|
"pluginType": "core",
|
|
5065
5553
|
"strict": true,
|
|
5066
|
-
"enableJsonFlag": false,
|
|
5067
5554
|
"isESM": true,
|
|
5068
5555
|
"relativePath": [
|
|
5069
5556
|
"dist",
|
|
5070
5557
|
"commands",
|
|
5071
|
-
"
|
|
5072
|
-
"
|
|
5073
|
-
"
|
|
5558
|
+
"run",
|
|
5559
|
+
"sessions",
|
|
5560
|
+
"start",
|
|
5074
5561
|
"index.js"
|
|
5075
5562
|
]
|
|
5076
5563
|
},
|
|
5077
|
-
"
|
|
5564
|
+
"run:sessions:stop": {
|
|
5078
5565
|
"aliases": [],
|
|
5079
5566
|
"args": {
|
|
5080
|
-
"
|
|
5081
|
-
"description": "
|
|
5082
|
-
"name": "
|
|
5083
|
-
"required": true
|
|
5084
|
-
},
|
|
5085
|
-
"static_host": {
|
|
5086
|
-
"description": "Static Host name",
|
|
5087
|
-
"name": "static_host",
|
|
5567
|
+
"sessionId": {
|
|
5568
|
+
"description": "Session ID",
|
|
5569
|
+
"name": "sessionId",
|
|
5088
5570
|
"required": true
|
|
5089
5571
|
}
|
|
5090
5572
|
},
|
|
5091
|
-
"description": "
|
|
5573
|
+
"description": "Stop a session",
|
|
5092
5574
|
"examples": [
|
|
5093
|
-
"$ xano
|
|
5094
|
-
"$ xano
|
|
5095
|
-
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
5096
|
-
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
5575
|
+
"$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
|
|
5576
|
+
"$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
|
|
5097
5577
|
],
|
|
5098
5578
|
"flags": {
|
|
5099
5579
|
"profile": {
|
|
@@ -5128,32 +5608,22 @@
|
|
|
5128
5608
|
"json"
|
|
5129
5609
|
],
|
|
5130
5610
|
"type": "option"
|
|
5131
|
-
},
|
|
5132
|
-
"workspace": {
|
|
5133
|
-
"char": "w",
|
|
5134
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
5135
|
-
"name": "workspace",
|
|
5136
|
-
"required": false,
|
|
5137
|
-
"hasDynamicHelp": false,
|
|
5138
|
-
"multiple": false,
|
|
5139
|
-
"type": "option"
|
|
5140
5611
|
}
|
|
5141
5612
|
},
|
|
5142
5613
|
"hasDynamicHelp": false,
|
|
5143
5614
|
"hiddenAliases": [],
|
|
5144
|
-
"id": "
|
|
5615
|
+
"id": "run:sessions:stop",
|
|
5145
5616
|
"pluginAlias": "@xano/cli",
|
|
5146
5617
|
"pluginName": "@xano/cli",
|
|
5147
5618
|
"pluginType": "core",
|
|
5148
5619
|
"strict": true,
|
|
5149
|
-
"enableJsonFlag": false,
|
|
5150
5620
|
"isESM": true,
|
|
5151
5621
|
"relativePath": [
|
|
5152
5622
|
"dist",
|
|
5153
5623
|
"commands",
|
|
5154
|
-
"
|
|
5155
|
-
"
|
|
5156
|
-
"
|
|
5624
|
+
"run",
|
|
5625
|
+
"sessions",
|
|
5626
|
+
"stop",
|
|
5157
5627
|
"index.js"
|
|
5158
5628
|
]
|
|
5159
5629
|
},
|
|
@@ -5431,20 +5901,19 @@
|
|
|
5431
5901
|
"index.js"
|
|
5432
5902
|
]
|
|
5433
5903
|
},
|
|
5434
|
-
"tenant:backup:
|
|
5904
|
+
"tenant:backup:list": {
|
|
5435
5905
|
"aliases": [],
|
|
5436
5906
|
"args": {
|
|
5437
5907
|
"tenant_name": {
|
|
5438
|
-
"description": "Tenant name to
|
|
5908
|
+
"description": "Tenant name to list backups for",
|
|
5439
5909
|
"name": "tenant_name",
|
|
5440
5910
|
"required": true
|
|
5441
5911
|
}
|
|
5442
5912
|
},
|
|
5443
|
-
"description": "
|
|
5913
|
+
"description": "List backups for a tenant",
|
|
5444
5914
|
"examples": [
|
|
5445
|
-
"$ xano tenant backup
|
|
5446
|
-
"$ xano tenant backup
|
|
5447
|
-
"$ xano tenant backup export t1234-abcd-xyz1 --backup-id 10 -o json"
|
|
5915
|
+
"$ 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",
|
|
5916
|
+
"$ xano tenant backup list t1234-abcd-xyz1 -o json"
|
|
5448
5917
|
],
|
|
5449
5918
|
"flags": {
|
|
5450
5919
|
"profile": {
|
|
@@ -5466,18 +5935,10 @@
|
|
|
5466
5935
|
"allowNo": false,
|
|
5467
5936
|
"type": "boolean"
|
|
5468
5937
|
},
|
|
5469
|
-
"
|
|
5470
|
-
"description": "Backup ID to export",
|
|
5471
|
-
"name": "backup-id",
|
|
5472
|
-
"required": true,
|
|
5473
|
-
"hasDynamicHelp": false,
|
|
5474
|
-
"multiple": false,
|
|
5475
|
-
"type": "option"
|
|
5476
|
-
},
|
|
5477
|
-
"format": {
|
|
5938
|
+
"output": {
|
|
5478
5939
|
"char": "o",
|
|
5479
5940
|
"description": "Output format",
|
|
5480
|
-
"name": "
|
|
5941
|
+
"name": "output",
|
|
5481
5942
|
"required": false,
|
|
5482
5943
|
"default": "summary",
|
|
5483
5944
|
"hasDynamicHelp": false,
|
|
@@ -5488,10 +5949,11 @@
|
|
|
5488
5949
|
],
|
|
5489
5950
|
"type": "option"
|
|
5490
5951
|
},
|
|
5491
|
-
"
|
|
5492
|
-
"description": "
|
|
5493
|
-
"name": "
|
|
5952
|
+
"page": {
|
|
5953
|
+
"description": "Page number for pagination",
|
|
5954
|
+
"name": "page",
|
|
5494
5955
|
"required": false,
|
|
5956
|
+
"default": 1,
|
|
5495
5957
|
"hasDynamicHelp": false,
|
|
5496
5958
|
"multiple": false,
|
|
5497
5959
|
"type": "option"
|
|
@@ -5508,7 +5970,7 @@
|
|
|
5508
5970
|
},
|
|
5509
5971
|
"hasDynamicHelp": false,
|
|
5510
5972
|
"hiddenAliases": [],
|
|
5511
|
-
"id": "tenant:backup:
|
|
5973
|
+
"id": "tenant:backup:list",
|
|
5512
5974
|
"pluginAlias": "@xano/cli",
|
|
5513
5975
|
"pluginName": "@xano/cli",
|
|
5514
5976
|
"pluginType": "core",
|
|
@@ -5520,23 +5982,24 @@
|
|
|
5520
5982
|
"commands",
|
|
5521
5983
|
"tenant",
|
|
5522
5984
|
"backup",
|
|
5523
|
-
"
|
|
5985
|
+
"list",
|
|
5524
5986
|
"index.js"
|
|
5525
5987
|
]
|
|
5526
5988
|
},
|
|
5527
|
-
"tenant:backup:
|
|
5989
|
+
"tenant:backup:export": {
|
|
5528
5990
|
"aliases": [],
|
|
5529
5991
|
"args": {
|
|
5530
5992
|
"tenant_name": {
|
|
5531
|
-
"description": "Tenant name to
|
|
5993
|
+
"description": "Tenant name to export backup from",
|
|
5532
5994
|
"name": "tenant_name",
|
|
5533
5995
|
"required": true
|
|
5534
5996
|
}
|
|
5535
5997
|
},
|
|
5536
|
-
"description": "
|
|
5998
|
+
"description": "Export (download) a tenant backup to a local file",
|
|
5537
5999
|
"examples": [
|
|
5538
|
-
"$ xano tenant backup
|
|
5539
|
-
"$ xano tenant backup
|
|
6000
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup-id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
|
|
6001
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup-id 10 --output ./backups/my-backup.tar.gz",
|
|
6002
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup-id 10 -o json"
|
|
5540
6003
|
],
|
|
5541
6004
|
"flags": {
|
|
5542
6005
|
"profile": {
|
|
@@ -5558,10 +6021,18 @@
|
|
|
5558
6021
|
"allowNo": false,
|
|
5559
6022
|
"type": "boolean"
|
|
5560
6023
|
},
|
|
5561
|
-
"
|
|
6024
|
+
"backup-id": {
|
|
6025
|
+
"description": "Backup ID to export",
|
|
6026
|
+
"name": "backup-id",
|
|
6027
|
+
"required": true,
|
|
6028
|
+
"hasDynamicHelp": false,
|
|
6029
|
+
"multiple": false,
|
|
6030
|
+
"type": "option"
|
|
6031
|
+
},
|
|
6032
|
+
"format": {
|
|
5562
6033
|
"char": "o",
|
|
5563
6034
|
"description": "Output format",
|
|
5564
|
-
"name": "
|
|
6035
|
+
"name": "format",
|
|
5565
6036
|
"required": false,
|
|
5566
6037
|
"default": "summary",
|
|
5567
6038
|
"hasDynamicHelp": false,
|
|
@@ -5572,11 +6043,10 @@
|
|
|
5572
6043
|
],
|
|
5573
6044
|
"type": "option"
|
|
5574
6045
|
},
|
|
5575
|
-
"
|
|
5576
|
-
"description": "
|
|
5577
|
-
"name": "
|
|
6046
|
+
"output": {
|
|
6047
|
+
"description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
|
|
6048
|
+
"name": "output",
|
|
5578
6049
|
"required": false,
|
|
5579
|
-
"default": 1,
|
|
5580
6050
|
"hasDynamicHelp": false,
|
|
5581
6051
|
"multiple": false,
|
|
5582
6052
|
"type": "option"
|
|
@@ -5593,7 +6063,7 @@
|
|
|
5593
6063
|
},
|
|
5594
6064
|
"hasDynamicHelp": false,
|
|
5595
6065
|
"hiddenAliases": [],
|
|
5596
|
-
"id": "tenant:backup:
|
|
6066
|
+
"id": "tenant:backup:export",
|
|
5597
6067
|
"pluginAlias": "@xano/cli",
|
|
5598
6068
|
"pluginName": "@xano/cli",
|
|
5599
6069
|
"pluginType": "core",
|
|
@@ -5605,7 +6075,7 @@
|
|
|
5605
6075
|
"commands",
|
|
5606
6076
|
"tenant",
|
|
5607
6077
|
"backup",
|
|
5608
|
-
"
|
|
6078
|
+
"export",
|
|
5609
6079
|
"index.js"
|
|
5610
6080
|
]
|
|
5611
6081
|
},
|
|
@@ -5701,6 +6171,193 @@
|
|
|
5701
6171
|
"index.js"
|
|
5702
6172
|
]
|
|
5703
6173
|
},
|
|
6174
|
+
"static_host:build:get": {
|
|
6175
|
+
"aliases": [],
|
|
6176
|
+
"args": {
|
|
6177
|
+
"build_id": {
|
|
6178
|
+
"description": "Build ID",
|
|
6179
|
+
"name": "build_id",
|
|
6180
|
+
"required": true
|
|
6181
|
+
},
|
|
6182
|
+
"static_host": {
|
|
6183
|
+
"description": "Static Host name",
|
|
6184
|
+
"name": "static_host",
|
|
6185
|
+
"required": true
|
|
6186
|
+
}
|
|
6187
|
+
},
|
|
6188
|
+
"description": "Get details of a specific build for a static host",
|
|
6189
|
+
"examples": [
|
|
6190
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
6191
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
6192
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
6193
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
6194
|
+
],
|
|
6195
|
+
"flags": {
|
|
6196
|
+
"profile": {
|
|
6197
|
+
"char": "p",
|
|
6198
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
6199
|
+
"env": "XANO_PROFILE",
|
|
6200
|
+
"name": "profile",
|
|
6201
|
+
"required": false,
|
|
6202
|
+
"hasDynamicHelp": false,
|
|
6203
|
+
"multiple": false,
|
|
6204
|
+
"type": "option"
|
|
6205
|
+
},
|
|
6206
|
+
"verbose": {
|
|
6207
|
+
"char": "v",
|
|
6208
|
+
"description": "Show detailed request/response information",
|
|
6209
|
+
"env": "XANO_VERBOSE",
|
|
6210
|
+
"name": "verbose",
|
|
6211
|
+
"required": false,
|
|
6212
|
+
"allowNo": false,
|
|
6213
|
+
"type": "boolean"
|
|
6214
|
+
},
|
|
6215
|
+
"output": {
|
|
6216
|
+
"char": "o",
|
|
6217
|
+
"description": "Output format",
|
|
6218
|
+
"name": "output",
|
|
6219
|
+
"required": false,
|
|
6220
|
+
"default": "summary",
|
|
6221
|
+
"hasDynamicHelp": false,
|
|
6222
|
+
"multiple": false,
|
|
6223
|
+
"options": [
|
|
6224
|
+
"summary",
|
|
6225
|
+
"json"
|
|
6226
|
+
],
|
|
6227
|
+
"type": "option"
|
|
6228
|
+
},
|
|
6229
|
+
"workspace": {
|
|
6230
|
+
"char": "w",
|
|
6231
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
6232
|
+
"name": "workspace",
|
|
6233
|
+
"required": false,
|
|
6234
|
+
"hasDynamicHelp": false,
|
|
6235
|
+
"multiple": false,
|
|
6236
|
+
"type": "option"
|
|
6237
|
+
}
|
|
6238
|
+
},
|
|
6239
|
+
"hasDynamicHelp": false,
|
|
6240
|
+
"hiddenAliases": [],
|
|
6241
|
+
"id": "static_host:build:get",
|
|
6242
|
+
"pluginAlias": "@xano/cli",
|
|
6243
|
+
"pluginName": "@xano/cli",
|
|
6244
|
+
"pluginType": "core",
|
|
6245
|
+
"strict": true,
|
|
6246
|
+
"enableJsonFlag": false,
|
|
6247
|
+
"isESM": true,
|
|
6248
|
+
"relativePath": [
|
|
6249
|
+
"dist",
|
|
6250
|
+
"commands",
|
|
6251
|
+
"static_host",
|
|
6252
|
+
"build",
|
|
6253
|
+
"get",
|
|
6254
|
+
"index.js"
|
|
6255
|
+
]
|
|
6256
|
+
},
|
|
6257
|
+
"static_host:build:create": {
|
|
6258
|
+
"aliases": [],
|
|
6259
|
+
"args": {
|
|
6260
|
+
"static_host": {
|
|
6261
|
+
"description": "Static Host name",
|
|
6262
|
+
"name": "static_host",
|
|
6263
|
+
"required": true
|
|
6264
|
+
}
|
|
6265
|
+
},
|
|
6266
|
+
"description": "Create a new build for a static host",
|
|
6267
|
+
"examples": [
|
|
6268
|
+
"$ 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",
|
|
6269
|
+
"$ 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",
|
|
6270
|
+
"$ 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"
|
|
6271
|
+
],
|
|
6272
|
+
"flags": {
|
|
6273
|
+
"profile": {
|
|
6274
|
+
"char": "p",
|
|
6275
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
6276
|
+
"env": "XANO_PROFILE",
|
|
6277
|
+
"name": "profile",
|
|
6278
|
+
"required": false,
|
|
6279
|
+
"hasDynamicHelp": false,
|
|
6280
|
+
"multiple": false,
|
|
6281
|
+
"type": "option"
|
|
6282
|
+
},
|
|
6283
|
+
"verbose": {
|
|
6284
|
+
"char": "v",
|
|
6285
|
+
"description": "Show detailed request/response information",
|
|
6286
|
+
"env": "XANO_VERBOSE",
|
|
6287
|
+
"name": "verbose",
|
|
6288
|
+
"required": false,
|
|
6289
|
+
"allowNo": false,
|
|
6290
|
+
"type": "boolean"
|
|
6291
|
+
},
|
|
6292
|
+
"description": {
|
|
6293
|
+
"char": "d",
|
|
6294
|
+
"description": "Build description",
|
|
6295
|
+
"name": "description",
|
|
6296
|
+
"required": false,
|
|
6297
|
+
"hasDynamicHelp": false,
|
|
6298
|
+
"multiple": false,
|
|
6299
|
+
"type": "option"
|
|
6300
|
+
},
|
|
6301
|
+
"file": {
|
|
6302
|
+
"char": "f",
|
|
6303
|
+
"description": "Path to zip file to upload",
|
|
6304
|
+
"name": "file",
|
|
6305
|
+
"required": true,
|
|
6306
|
+
"hasDynamicHelp": false,
|
|
6307
|
+
"multiple": false,
|
|
6308
|
+
"type": "option"
|
|
6309
|
+
},
|
|
6310
|
+
"name": {
|
|
6311
|
+
"char": "n",
|
|
6312
|
+
"description": "Build name",
|
|
6313
|
+
"name": "name",
|
|
6314
|
+
"required": true,
|
|
6315
|
+
"hasDynamicHelp": false,
|
|
6316
|
+
"multiple": false,
|
|
6317
|
+
"type": "option"
|
|
6318
|
+
},
|
|
6319
|
+
"output": {
|
|
6320
|
+
"char": "o",
|
|
6321
|
+
"description": "Output format",
|
|
6322
|
+
"name": "output",
|
|
6323
|
+
"required": false,
|
|
6324
|
+
"default": "summary",
|
|
6325
|
+
"hasDynamicHelp": false,
|
|
6326
|
+
"multiple": false,
|
|
6327
|
+
"options": [
|
|
6328
|
+
"summary",
|
|
6329
|
+
"json"
|
|
6330
|
+
],
|
|
6331
|
+
"type": "option"
|
|
6332
|
+
},
|
|
6333
|
+
"workspace": {
|
|
6334
|
+
"char": "w",
|
|
6335
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
6336
|
+
"name": "workspace",
|
|
6337
|
+
"required": false,
|
|
6338
|
+
"hasDynamicHelp": false,
|
|
6339
|
+
"multiple": false,
|
|
6340
|
+
"type": "option"
|
|
6341
|
+
}
|
|
6342
|
+
},
|
|
6343
|
+
"hasDynamicHelp": false,
|
|
6344
|
+
"hiddenAliases": [],
|
|
6345
|
+
"id": "static_host:build:create",
|
|
6346
|
+
"pluginAlias": "@xano/cli",
|
|
6347
|
+
"pluginName": "@xano/cli",
|
|
6348
|
+
"pluginType": "core",
|
|
6349
|
+
"strict": true,
|
|
6350
|
+
"enableJsonFlag": false,
|
|
6351
|
+
"isESM": true,
|
|
6352
|
+
"relativePath": [
|
|
6353
|
+
"dist",
|
|
6354
|
+
"commands",
|
|
6355
|
+
"static_host",
|
|
6356
|
+
"build",
|
|
6357
|
+
"create",
|
|
6358
|
+
"index.js"
|
|
6359
|
+
]
|
|
6360
|
+
},
|
|
5704
6361
|
"static_host:build:list": {
|
|
5705
6362
|
"aliases": [],
|
|
5706
6363
|
"args": {
|
|
@@ -5798,5 +6455,5 @@
|
|
|
5798
6455
|
]
|
|
5799
6456
|
}
|
|
5800
6457
|
},
|
|
5801
|
-
"version": "0.0.
|
|
6458
|
+
"version": "0.0.35"
|
|
5802
6459
|
}
|