@xano/cli 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/oclif.manifest.json
CHANGED
|
@@ -294,20 +294,20 @@
|
|
|
294
294
|
"index.js"
|
|
295
295
|
]
|
|
296
296
|
},
|
|
297
|
-
"branch:
|
|
297
|
+
"branch:set-live": {
|
|
298
298
|
"aliases": [],
|
|
299
299
|
"args": {
|
|
300
300
|
"branch_label": {
|
|
301
|
-
"description": "Branch label (
|
|
301
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
302
302
|
"name": "branch_label",
|
|
303
303
|
"required": true
|
|
304
304
|
}
|
|
305
305
|
},
|
|
306
|
-
"description": "
|
|
306
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
307
307
|
"examples": [
|
|
308
|
-
"$ xano branch
|
|
309
|
-
"$ xano branch
|
|
310
|
-
"$ xano branch
|
|
308
|
+
"$ 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",
|
|
309
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
310
|
+
"$ 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"
|
|
311
311
|
],
|
|
312
312
|
"flags": {
|
|
313
313
|
"profile": {
|
|
@@ -329,6 +329,14 @@
|
|
|
329
329
|
"allowNo": false,
|
|
330
330
|
"type": "boolean"
|
|
331
331
|
},
|
|
332
|
+
"force": {
|
|
333
|
+
"char": "f",
|
|
334
|
+
"description": "Skip confirmation prompt",
|
|
335
|
+
"name": "force",
|
|
336
|
+
"required": false,
|
|
337
|
+
"allowNo": false,
|
|
338
|
+
"type": "boolean"
|
|
339
|
+
},
|
|
332
340
|
"output": {
|
|
333
341
|
"char": "o",
|
|
334
342
|
"description": "Output format",
|
|
@@ -355,7 +363,7 @@
|
|
|
355
363
|
},
|
|
356
364
|
"hasDynamicHelp": false,
|
|
357
365
|
"hiddenAliases": [],
|
|
358
|
-
"id": "branch:
|
|
366
|
+
"id": "branch:set-live",
|
|
359
367
|
"pluginAlias": "@xano/cli",
|
|
360
368
|
"pluginName": "@xano/cli",
|
|
361
369
|
"pluginType": "core",
|
|
@@ -366,24 +374,24 @@
|
|
|
366
374
|
"dist",
|
|
367
375
|
"commands",
|
|
368
376
|
"branch",
|
|
369
|
-
"
|
|
377
|
+
"set-live",
|
|
370
378
|
"index.js"
|
|
371
379
|
]
|
|
372
380
|
},
|
|
373
|
-
"branch:
|
|
381
|
+
"branch:get": {
|
|
374
382
|
"aliases": [],
|
|
375
383
|
"args": {
|
|
376
384
|
"branch_label": {
|
|
377
|
-
"description": "Branch label
|
|
385
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
378
386
|
"name": "branch_label",
|
|
379
387
|
"required": true
|
|
380
388
|
}
|
|
381
389
|
},
|
|
382
|
-
"description": "
|
|
390
|
+
"description": "Get details for a specific branch",
|
|
383
391
|
"examples": [
|
|
384
|
-
"$ xano branch
|
|
385
|
-
"$ xano branch
|
|
386
|
-
"$ xano branch
|
|
392
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
393
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
394
|
+
"$ xano branch get staging --output json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
|
|
387
395
|
],
|
|
388
396
|
"flags": {
|
|
389
397
|
"profile": {
|
|
@@ -405,14 +413,6 @@
|
|
|
405
413
|
"allowNo": false,
|
|
406
414
|
"type": "boolean"
|
|
407
415
|
},
|
|
408
|
-
"force": {
|
|
409
|
-
"char": "f",
|
|
410
|
-
"description": "Skip confirmation prompt",
|
|
411
|
-
"name": "force",
|
|
412
|
-
"required": false,
|
|
413
|
-
"allowNo": false,
|
|
414
|
-
"type": "boolean"
|
|
415
|
-
},
|
|
416
416
|
"output": {
|
|
417
417
|
"char": "o",
|
|
418
418
|
"description": "Output format",
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
},
|
|
440
440
|
"hasDynamicHelp": false,
|
|
441
441
|
"hiddenAliases": [],
|
|
442
|
-
"id": "branch:
|
|
442
|
+
"id": "branch:get",
|
|
443
443
|
"pluginAlias": "@xano/cli",
|
|
444
444
|
"pluginName": "@xano/cli",
|
|
445
445
|
"pluginType": "core",
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
"dist",
|
|
451
451
|
"commands",
|
|
452
452
|
"branch",
|
|
453
|
-
"
|
|
453
|
+
"get",
|
|
454
454
|
"index.js"
|
|
455
455
|
]
|
|
456
456
|
},
|
|
@@ -521,88 +521,88 @@
|
|
|
521
521
|
"index.js"
|
|
522
522
|
]
|
|
523
523
|
},
|
|
524
|
-
"
|
|
524
|
+
"profile:create": {
|
|
525
525
|
"aliases": [],
|
|
526
|
-
"args": {
|
|
527
|
-
|
|
526
|
+
"args": {
|
|
527
|
+
"name": {
|
|
528
|
+
"description": "Profile name",
|
|
529
|
+
"name": "name",
|
|
530
|
+
"required": true
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"description": "Create a new profile configuration",
|
|
528
534
|
"examples": [
|
|
529
|
-
"$ xano
|
|
530
|
-
"$ xano
|
|
531
|
-
"$ xano
|
|
532
|
-
"$
|
|
533
|
-
"$ xano
|
|
535
|
+
"$ 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",
|
|
536
|
+
"$ 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",
|
|
537
|
+
"$ 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",
|
|
538
|
+
"$ 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",
|
|
539
|
+
"$ 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"
|
|
534
540
|
],
|
|
535
541
|
"flags": {
|
|
536
|
-
"
|
|
537
|
-
"char": "
|
|
538
|
-
"description": "
|
|
539
|
-
"
|
|
540
|
-
"
|
|
542
|
+
"access_token": {
|
|
543
|
+
"char": "t",
|
|
544
|
+
"description": "Access token for the Xano Metadata API",
|
|
545
|
+
"name": "access_token",
|
|
546
|
+
"required": true,
|
|
547
|
+
"hasDynamicHelp": false,
|
|
548
|
+
"multiple": false,
|
|
549
|
+
"type": "option"
|
|
550
|
+
},
|
|
551
|
+
"account_origin": {
|
|
552
|
+
"char": "a",
|
|
553
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
554
|
+
"name": "account_origin",
|
|
541
555
|
"required": false,
|
|
542
556
|
"hasDynamicHelp": false,
|
|
543
557
|
"multiple": false,
|
|
544
558
|
"type": "option"
|
|
545
559
|
},
|
|
546
|
-
"
|
|
547
|
-
"char": "
|
|
548
|
-
"description": "
|
|
549
|
-
"
|
|
550
|
-
"name": "verbose",
|
|
560
|
+
"branch": {
|
|
561
|
+
"char": "b",
|
|
562
|
+
"description": "Branch name",
|
|
563
|
+
"name": "branch",
|
|
551
564
|
"required": false,
|
|
552
|
-
"
|
|
553
|
-
"
|
|
565
|
+
"hasDynamicHelp": false,
|
|
566
|
+
"multiple": false,
|
|
567
|
+
"type": "option"
|
|
554
568
|
},
|
|
555
|
-
"
|
|
556
|
-
"
|
|
557
|
-
"
|
|
558
|
-
"file"
|
|
559
|
-
],
|
|
560
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
561
|
-
"name": "edit",
|
|
569
|
+
"default": {
|
|
570
|
+
"description": "Set this profile as the default",
|
|
571
|
+
"name": "default",
|
|
562
572
|
"required": false,
|
|
563
573
|
"allowNo": false,
|
|
564
574
|
"type": "boolean"
|
|
565
575
|
},
|
|
566
|
-
"
|
|
567
|
-
"char": "
|
|
568
|
-
"description": "
|
|
569
|
-
"
|
|
570
|
-
|
|
571
|
-
],
|
|
572
|
-
"name": "file",
|
|
573
|
-
"required": false,
|
|
576
|
+
"instance_origin": {
|
|
577
|
+
"char": "i",
|
|
578
|
+
"description": "Instance origin URL",
|
|
579
|
+
"name": "instance_origin",
|
|
580
|
+
"required": true,
|
|
574
581
|
"hasDynamicHelp": false,
|
|
575
582
|
"multiple": false,
|
|
576
583
|
"type": "option"
|
|
577
584
|
},
|
|
578
|
-
"
|
|
579
|
-
"char": "
|
|
580
|
-
"description": "
|
|
581
|
-
"name": "
|
|
585
|
+
"project": {
|
|
586
|
+
"char": "j",
|
|
587
|
+
"description": "Project name",
|
|
588
|
+
"name": "project",
|
|
582
589
|
"required": false,
|
|
583
|
-
"default": "summary",
|
|
584
590
|
"hasDynamicHelp": false,
|
|
585
591
|
"multiple": false,
|
|
586
|
-
"options": [
|
|
587
|
-
"summary",
|
|
588
|
-
"json"
|
|
589
|
-
],
|
|
590
592
|
"type": "option"
|
|
591
593
|
},
|
|
592
|
-
"
|
|
593
|
-
"char": "
|
|
594
|
-
"description": "
|
|
595
|
-
"
|
|
596
|
-
"file"
|
|
597
|
-
],
|
|
598
|
-
"name": "stdin",
|
|
594
|
+
"run_base_url": {
|
|
595
|
+
"char": "r",
|
|
596
|
+
"description": "Xano Run API base URL (default: https://app.xano.com/)",
|
|
597
|
+
"name": "run_base_url",
|
|
599
598
|
"required": false,
|
|
600
|
-
"
|
|
601
|
-
"
|
|
599
|
+
"hasDynamicHelp": false,
|
|
600
|
+
"multiple": false,
|
|
601
|
+
"type": "option"
|
|
602
602
|
},
|
|
603
603
|
"workspace": {
|
|
604
604
|
"char": "w",
|
|
605
|
-
"description": "Workspace
|
|
605
|
+
"description": "Workspace name",
|
|
606
606
|
"name": "workspace",
|
|
607
607
|
"required": false,
|
|
608
608
|
"hasDynamicHelp": false,
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
"hasDynamicHelp": false,
|
|
614
614
|
"hiddenAliases": [],
|
|
615
|
-
"id": "
|
|
615
|
+
"id": "profile:create",
|
|
616
616
|
"pluginAlias": "@xano/cli",
|
|
617
617
|
"pluginName": "@xano/cli",
|
|
618
618
|
"pluginType": "core",
|
|
@@ -622,30 +622,29 @@
|
|
|
622
622
|
"relativePath": [
|
|
623
623
|
"dist",
|
|
624
624
|
"commands",
|
|
625
|
-
"
|
|
625
|
+
"profile",
|
|
626
626
|
"create",
|
|
627
627
|
"index.js"
|
|
628
628
|
]
|
|
629
629
|
},
|
|
630
|
-
"
|
|
630
|
+
"profile:edit": {
|
|
631
631
|
"aliases": [],
|
|
632
632
|
"args": {
|
|
633
|
-
"
|
|
634
|
-
"description": "
|
|
635
|
-
"name": "
|
|
633
|
+
"name": {
|
|
634
|
+
"description": "Profile name to edit (uses default profile if not specified)",
|
|
635
|
+
"name": "name",
|
|
636
636
|
"required": false
|
|
637
637
|
}
|
|
638
638
|
},
|
|
639
|
-
"description": "Edit
|
|
639
|
+
"description": "Edit an existing profile configuration",
|
|
640
640
|
"examples": [
|
|
641
|
-
"$ xano
|
|
642
|
-
"$ xano
|
|
643
|
-
"$ xano
|
|
644
|
-
"$ xano
|
|
645
|
-
"$ xano
|
|
646
|
-
"$ xano
|
|
647
|
-
"$
|
|
648
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
641
|
+
"$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
642
|
+
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
643
|
+
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
644
|
+
"$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
645
|
+
"$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
646
|
+
"$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
647
|
+
"$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
649
648
|
],
|
|
650
649
|
"flags": {
|
|
651
650
|
"profile": {
|
|
@@ -667,61 +666,91 @@
|
|
|
667
666
|
"allowNo": false,
|
|
668
667
|
"type": "boolean"
|
|
669
668
|
},
|
|
670
|
-
"
|
|
671
|
-
"char": "
|
|
672
|
-
"description": "
|
|
673
|
-
"name": "
|
|
669
|
+
"access_token": {
|
|
670
|
+
"char": "t",
|
|
671
|
+
"description": "Update access token for the Xano Metadata API",
|
|
672
|
+
"name": "access_token",
|
|
674
673
|
"required": false,
|
|
675
|
-
"
|
|
676
|
-
"
|
|
674
|
+
"hasDynamicHelp": false,
|
|
675
|
+
"multiple": false,
|
|
676
|
+
"type": "option"
|
|
677
677
|
},
|
|
678
|
-
"
|
|
679
|
-
"char": "
|
|
680
|
-
"description": "
|
|
681
|
-
"
|
|
682
|
-
"stdin"
|
|
683
|
-
],
|
|
684
|
-
"name": "file",
|
|
678
|
+
"account_origin": {
|
|
679
|
+
"char": "a",
|
|
680
|
+
"description": "Update account origin URL",
|
|
681
|
+
"name": "account_origin",
|
|
685
682
|
"required": false,
|
|
686
683
|
"hasDynamicHelp": false,
|
|
687
684
|
"multiple": false,
|
|
688
685
|
"type": "option"
|
|
689
686
|
},
|
|
690
|
-
"
|
|
691
|
-
"char": "
|
|
692
|
-
"description": "
|
|
693
|
-
"name": "
|
|
687
|
+
"branch": {
|
|
688
|
+
"char": "b",
|
|
689
|
+
"description": "Update branch name",
|
|
690
|
+
"name": "branch",
|
|
694
691
|
"required": false,
|
|
695
|
-
"default": "summary",
|
|
696
692
|
"hasDynamicHelp": false,
|
|
697
693
|
"multiple": false,
|
|
698
|
-
"options": [
|
|
699
|
-
"summary",
|
|
700
|
-
"json"
|
|
701
|
-
],
|
|
702
694
|
"type": "option"
|
|
703
695
|
},
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
"
|
|
696
|
+
"instance_origin": {
|
|
697
|
+
"char": "i",
|
|
698
|
+
"description": "Update instance origin URL",
|
|
699
|
+
"name": "instance_origin",
|
|
700
|
+
"required": false,
|
|
701
|
+
"hasDynamicHelp": false,
|
|
702
|
+
"multiple": false,
|
|
703
|
+
"type": "option"
|
|
704
|
+
},
|
|
705
|
+
"project": {
|
|
706
|
+
"char": "j",
|
|
707
|
+
"description": "Update project ID",
|
|
708
|
+
"name": "project",
|
|
709
|
+
"required": false,
|
|
710
|
+
"hasDynamicHelp": false,
|
|
711
|
+
"multiple": false,
|
|
712
|
+
"type": "option"
|
|
713
|
+
},
|
|
714
|
+
"remove-branch": {
|
|
715
|
+
"description": "Remove branch from profile",
|
|
716
|
+
"name": "remove-branch",
|
|
707
717
|
"required": false,
|
|
708
718
|
"allowNo": false,
|
|
709
719
|
"type": "boolean"
|
|
710
720
|
},
|
|
711
|
-
"
|
|
712
|
-
"
|
|
713
|
-
"
|
|
714
|
-
"exclusive": [
|
|
715
|
-
"file"
|
|
716
|
-
],
|
|
717
|
-
"name": "stdin",
|
|
721
|
+
"remove-project": {
|
|
722
|
+
"description": "Remove project from profile",
|
|
723
|
+
"name": "remove-project",
|
|
718
724
|
"required": false,
|
|
719
725
|
"allowNo": false,
|
|
720
726
|
"type": "boolean"
|
|
721
727
|
},
|
|
728
|
+
"remove-run-base-url": {
|
|
729
|
+
"description": "Remove run_base_url from profile (use default)",
|
|
730
|
+
"name": "remove-run-base-url",
|
|
731
|
+
"required": false,
|
|
732
|
+
"allowNo": false,
|
|
733
|
+
"type": "boolean"
|
|
734
|
+
},
|
|
735
|
+
"remove-workspace": {
|
|
736
|
+
"description": "Remove workspace from profile",
|
|
737
|
+
"name": "remove-workspace",
|
|
738
|
+
"required": false,
|
|
739
|
+
"allowNo": false,
|
|
740
|
+
"type": "boolean"
|
|
741
|
+
},
|
|
742
|
+
"run_base_url": {
|
|
743
|
+
"char": "r",
|
|
744
|
+
"description": "Update Xano Run API base URL",
|
|
745
|
+
"name": "run_base_url",
|
|
746
|
+
"required": false,
|
|
747
|
+
"hasDynamicHelp": false,
|
|
748
|
+
"multiple": false,
|
|
749
|
+
"type": "option"
|
|
750
|
+
},
|
|
722
751
|
"workspace": {
|
|
723
752
|
"char": "w",
|
|
724
|
-
"description": "
|
|
753
|
+
"description": "Update workspace name",
|
|
725
754
|
"name": "workspace",
|
|
726
755
|
"required": false,
|
|
727
756
|
"hasDynamicHelp": false,
|
|
@@ -731,7 +760,7 @@
|
|
|
731
760
|
},
|
|
732
761
|
"hasDynamicHelp": false,
|
|
733
762
|
"hiddenAliases": [],
|
|
734
|
-
"id": "
|
|
763
|
+
"id": "profile:edit",
|
|
735
764
|
"pluginAlias": "@xano/cli",
|
|
736
765
|
"pluginName": "@xano/cli",
|
|
737
766
|
"pluginType": "core",
|
|
@@ -741,91 +770,39 @@
|
|
|
741
770
|
"relativePath": [
|
|
742
771
|
"dist",
|
|
743
772
|
"commands",
|
|
744
|
-
"
|
|
773
|
+
"profile",
|
|
745
774
|
"edit",
|
|
746
775
|
"index.js"
|
|
747
776
|
]
|
|
748
777
|
},
|
|
749
|
-
"
|
|
778
|
+
"profile:delete": {
|
|
750
779
|
"aliases": [],
|
|
751
780
|
"args": {
|
|
752
|
-
"
|
|
753
|
-
"description": "
|
|
754
|
-
"name": "
|
|
755
|
-
"required":
|
|
781
|
+
"name": {
|
|
782
|
+
"description": "Profile name to delete",
|
|
783
|
+
"name": "name",
|
|
784
|
+
"required": true
|
|
756
785
|
}
|
|
757
786
|
},
|
|
758
|
-
"description": "
|
|
787
|
+
"description": "Delete a profile configuration",
|
|
759
788
|
"examples": [
|
|
760
|
-
"$ xano
|
|
761
|
-
"$ xano
|
|
762
|
-
"$ xano
|
|
763
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
764
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
765
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
789
|
+
"$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
790
|
+
"$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
791
|
+
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
766
792
|
],
|
|
767
793
|
"flags": {
|
|
768
|
-
"
|
|
769
|
-
"char": "
|
|
770
|
-
"description": "
|
|
771
|
-
"
|
|
772
|
-
"name": "profile",
|
|
773
|
-
"required": false,
|
|
774
|
-
"hasDynamicHelp": false,
|
|
775
|
-
"multiple": false,
|
|
776
|
-
"type": "option"
|
|
777
|
-
},
|
|
778
|
-
"verbose": {
|
|
779
|
-
"char": "v",
|
|
780
|
-
"description": "Show detailed request/response information",
|
|
781
|
-
"env": "XANO_VERBOSE",
|
|
782
|
-
"name": "verbose",
|
|
783
|
-
"required": false,
|
|
784
|
-
"allowNo": false,
|
|
785
|
-
"type": "boolean"
|
|
786
|
-
},
|
|
787
|
-
"include_draft": {
|
|
788
|
-
"description": "Include draft version",
|
|
789
|
-
"name": "include_draft",
|
|
790
|
-
"required": false,
|
|
791
|
-
"allowNo": false,
|
|
792
|
-
"type": "boolean"
|
|
793
|
-
},
|
|
794
|
-
"include_xanoscript": {
|
|
795
|
-
"description": "Include XanoScript in response",
|
|
796
|
-
"name": "include_xanoscript",
|
|
794
|
+
"force": {
|
|
795
|
+
"char": "f",
|
|
796
|
+
"description": "Skip confirmation prompt",
|
|
797
|
+
"name": "force",
|
|
797
798
|
"required": false,
|
|
798
799
|
"allowNo": false,
|
|
799
800
|
"type": "boolean"
|
|
800
|
-
},
|
|
801
|
-
"output": {
|
|
802
|
-
"char": "o",
|
|
803
|
-
"description": "Output format",
|
|
804
|
-
"name": "output",
|
|
805
|
-
"required": false,
|
|
806
|
-
"default": "summary",
|
|
807
|
-
"hasDynamicHelp": false,
|
|
808
|
-
"multiple": false,
|
|
809
|
-
"options": [
|
|
810
|
-
"summary",
|
|
811
|
-
"json",
|
|
812
|
-
"xs"
|
|
813
|
-
],
|
|
814
|
-
"type": "option"
|
|
815
|
-
},
|
|
816
|
-
"workspace": {
|
|
817
|
-
"char": "w",
|
|
818
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
819
|
-
"name": "workspace",
|
|
820
|
-
"required": false,
|
|
821
|
-
"hasDynamicHelp": false,
|
|
822
|
-
"multiple": false,
|
|
823
|
-
"type": "option"
|
|
824
801
|
}
|
|
825
802
|
},
|
|
826
803
|
"hasDynamicHelp": false,
|
|
827
804
|
"hiddenAliases": [],
|
|
828
|
-
"id": "
|
|
805
|
+
"id": "profile:delete",
|
|
829
806
|
"pluginAlias": "@xano/cli",
|
|
830
807
|
"pluginName": "@xano/cli",
|
|
831
808
|
"pluginType": "core",
|
|
@@ -835,20 +812,45 @@
|
|
|
835
812
|
"relativePath": [
|
|
836
813
|
"dist",
|
|
837
814
|
"commands",
|
|
838
|
-
"
|
|
839
|
-
"
|
|
815
|
+
"profile",
|
|
816
|
+
"delete",
|
|
840
817
|
"index.js"
|
|
841
818
|
]
|
|
842
819
|
},
|
|
843
|
-
"
|
|
820
|
+
"profile:get-default": {
|
|
844
821
|
"aliases": [],
|
|
845
822
|
"args": {},
|
|
846
|
-
"description": "
|
|
823
|
+
"description": "Get the current default profile name",
|
|
847
824
|
"examples": [
|
|
848
|
-
"$ xano
|
|
849
|
-
"$ xano
|
|
850
|
-
|
|
851
|
-
|
|
825
|
+
"$ xano profile:get-default\nproduction\n",
|
|
826
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
827
|
+
],
|
|
828
|
+
"flags": {},
|
|
829
|
+
"hasDynamicHelp": false,
|
|
830
|
+
"hiddenAliases": [],
|
|
831
|
+
"id": "profile:get-default",
|
|
832
|
+
"pluginAlias": "@xano/cli",
|
|
833
|
+
"pluginName": "@xano/cli",
|
|
834
|
+
"pluginType": "core",
|
|
835
|
+
"strict": true,
|
|
836
|
+
"enableJsonFlag": false,
|
|
837
|
+
"isESM": true,
|
|
838
|
+
"relativePath": [
|
|
839
|
+
"dist",
|
|
840
|
+
"commands",
|
|
841
|
+
"profile",
|
|
842
|
+
"get-default",
|
|
843
|
+
"index.js"
|
|
844
|
+
]
|
|
845
|
+
},
|
|
846
|
+
"profile:me": {
|
|
847
|
+
"aliases": [],
|
|
848
|
+
"args": {},
|
|
849
|
+
"description": "Get information about the currently authenticated user",
|
|
850
|
+
"examples": [
|
|
851
|
+
"$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
|
|
852
|
+
"$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
|
|
853
|
+
"$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
|
|
852
854
|
],
|
|
853
855
|
"flags": {
|
|
854
856
|
"profile": {
|
|
@@ -870,33 +872,6 @@
|
|
|
870
872
|
"allowNo": false,
|
|
871
873
|
"type": "boolean"
|
|
872
874
|
},
|
|
873
|
-
"include_draft": {
|
|
874
|
-
"description": "Include draft functions",
|
|
875
|
-
"name": "include_draft",
|
|
876
|
-
"required": false,
|
|
877
|
-
"allowNo": false,
|
|
878
|
-
"type": "boolean"
|
|
879
|
-
},
|
|
880
|
-
"include_xanoscript": {
|
|
881
|
-
"description": "Include XanoScript in response",
|
|
882
|
-
"name": "include_xanoscript",
|
|
883
|
-
"required": false,
|
|
884
|
-
"allowNo": false,
|
|
885
|
-
"type": "boolean"
|
|
886
|
-
},
|
|
887
|
-
"order": {
|
|
888
|
-
"description": "Sort order",
|
|
889
|
-
"name": "order",
|
|
890
|
-
"required": false,
|
|
891
|
-
"default": "desc",
|
|
892
|
-
"hasDynamicHelp": false,
|
|
893
|
-
"multiple": false,
|
|
894
|
-
"options": [
|
|
895
|
-
"asc",
|
|
896
|
-
"desc"
|
|
897
|
-
],
|
|
898
|
-
"type": "option"
|
|
899
|
-
},
|
|
900
875
|
"output": {
|
|
901
876
|
"char": "o",
|
|
902
877
|
"description": "Output format",
|
|
@@ -910,47 +885,11 @@
|
|
|
910
885
|
"json"
|
|
911
886
|
],
|
|
912
887
|
"type": "option"
|
|
913
|
-
},
|
|
914
|
-
"page": {
|
|
915
|
-
"description": "Page number for pagination",
|
|
916
|
-
"name": "page",
|
|
917
|
-
"required": false,
|
|
918
|
-
"default": 1,
|
|
919
|
-
"hasDynamicHelp": false,
|
|
920
|
-
"multiple": false,
|
|
921
|
-
"type": "option"
|
|
922
|
-
},
|
|
923
|
-
"per_page": {
|
|
924
|
-
"description": "Number of results per page",
|
|
925
|
-
"name": "per_page",
|
|
926
|
-
"required": false,
|
|
927
|
-
"default": 50,
|
|
928
|
-
"hasDynamicHelp": false,
|
|
929
|
-
"multiple": false,
|
|
930
|
-
"type": "option"
|
|
931
|
-
},
|
|
932
|
-
"sort": {
|
|
933
|
-
"description": "Sort field",
|
|
934
|
-
"name": "sort",
|
|
935
|
-
"required": false,
|
|
936
|
-
"default": "created_at",
|
|
937
|
-
"hasDynamicHelp": false,
|
|
938
|
-
"multiple": false,
|
|
939
|
-
"type": "option"
|
|
940
|
-
},
|
|
941
|
-
"workspace": {
|
|
942
|
-
"char": "w",
|
|
943
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
944
|
-
"name": "workspace",
|
|
945
|
-
"required": false,
|
|
946
|
-
"hasDynamicHelp": false,
|
|
947
|
-
"multiple": false,
|
|
948
|
-
"type": "option"
|
|
949
888
|
}
|
|
950
889
|
},
|
|
951
890
|
"hasDynamicHelp": false,
|
|
952
891
|
"hiddenAliases": [],
|
|
953
|
-
"id": "
|
|
892
|
+
"id": "profile:me",
|
|
954
893
|
"pluginAlias": "@xano/cli",
|
|
955
894
|
"pluginName": "@xano/cli",
|
|
956
895
|
"pluginType": "core",
|
|
@@ -960,78 +899,189 @@
|
|
|
960
899
|
"relativePath": [
|
|
961
900
|
"dist",
|
|
962
901
|
"commands",
|
|
963
|
-
"
|
|
964
|
-
"
|
|
902
|
+
"profile",
|
|
903
|
+
"me",
|
|
965
904
|
"index.js"
|
|
966
905
|
]
|
|
967
906
|
},
|
|
968
|
-
"
|
|
907
|
+
"profile:project": {
|
|
969
908
|
"aliases": [],
|
|
970
|
-
"args": {
|
|
971
|
-
|
|
972
|
-
"description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
|
|
973
|
-
"name": "path",
|
|
974
|
-
"required": false
|
|
975
|
-
}
|
|
976
|
-
},
|
|
977
|
-
"description": "Execute XanoScript code (job or service)",
|
|
909
|
+
"args": {},
|
|
910
|
+
"description": "Print the project for the default profile",
|
|
978
911
|
"examples": [
|
|
979
|
-
"$ xano
|
|
980
|
-
"$ xano
|
|
981
|
-
"$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
|
|
982
|
-
"$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
|
|
983
|
-
"$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
984
|
-
"$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
985
|
-
"$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
912
|
+
"$ xano profile:project\nmy-project-id\n",
|
|
913
|
+
"$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
|
|
986
914
|
],
|
|
987
|
-
"flags": {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
"
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
915
|
+
"flags": {},
|
|
916
|
+
"hasDynamicHelp": false,
|
|
917
|
+
"hiddenAliases": [],
|
|
918
|
+
"id": "profile:project",
|
|
919
|
+
"pluginAlias": "@xano/cli",
|
|
920
|
+
"pluginName": "@xano/cli",
|
|
921
|
+
"pluginType": "core",
|
|
922
|
+
"strict": true,
|
|
923
|
+
"enableJsonFlag": false,
|
|
924
|
+
"isESM": true,
|
|
925
|
+
"relativePath": [
|
|
926
|
+
"dist",
|
|
927
|
+
"commands",
|
|
928
|
+
"profile",
|
|
929
|
+
"project",
|
|
930
|
+
"index.js"
|
|
931
|
+
]
|
|
932
|
+
},
|
|
933
|
+
"profile:token": {
|
|
934
|
+
"aliases": [],
|
|
935
|
+
"args": {},
|
|
936
|
+
"description": "Print the access token for the default profile",
|
|
937
|
+
"examples": [
|
|
938
|
+
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
939
|
+
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
940
|
+
],
|
|
941
|
+
"flags": {},
|
|
942
|
+
"hasDynamicHelp": false,
|
|
943
|
+
"hiddenAliases": [],
|
|
944
|
+
"id": "profile:token",
|
|
945
|
+
"pluginAlias": "@xano/cli",
|
|
946
|
+
"pluginName": "@xano/cli",
|
|
947
|
+
"pluginType": "core",
|
|
948
|
+
"strict": true,
|
|
949
|
+
"enableJsonFlag": false,
|
|
950
|
+
"isESM": true,
|
|
951
|
+
"relativePath": [
|
|
952
|
+
"dist",
|
|
953
|
+
"commands",
|
|
954
|
+
"profile",
|
|
955
|
+
"token",
|
|
956
|
+
"index.js"
|
|
957
|
+
]
|
|
958
|
+
},
|
|
959
|
+
"profile:list": {
|
|
960
|
+
"aliases": [],
|
|
961
|
+
"args": {},
|
|
962
|
+
"description": "List all available profile configurations",
|
|
963
|
+
"examples": [
|
|
964
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
965
|
+
"$ 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",
|
|
966
|
+
"$ 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"
|
|
967
|
+
],
|
|
968
|
+
"flags": {
|
|
969
|
+
"details": {
|
|
970
|
+
"char": "d",
|
|
971
|
+
"description": "Show detailed information for each profile",
|
|
972
|
+
"name": "details",
|
|
1003
973
|
"required": false,
|
|
1004
974
|
"allowNo": false,
|
|
1005
975
|
"type": "boolean"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
"hasDynamicHelp": false,
|
|
979
|
+
"hiddenAliases": [],
|
|
980
|
+
"id": "profile:list",
|
|
981
|
+
"pluginAlias": "@xano/cli",
|
|
982
|
+
"pluginName": "@xano/cli",
|
|
983
|
+
"pluginType": "core",
|
|
984
|
+
"strict": true,
|
|
985
|
+
"enableJsonFlag": false,
|
|
986
|
+
"isESM": true,
|
|
987
|
+
"relativePath": [
|
|
988
|
+
"dist",
|
|
989
|
+
"commands",
|
|
990
|
+
"profile",
|
|
991
|
+
"list",
|
|
992
|
+
"index.js"
|
|
993
|
+
]
|
|
994
|
+
},
|
|
995
|
+
"profile:wizard": {
|
|
996
|
+
"aliases": [],
|
|
997
|
+
"args": {},
|
|
998
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
999
|
+
"examples": [
|
|
1000
|
+
"$ 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"
|
|
1001
|
+
],
|
|
1002
|
+
"flags": {
|
|
1003
|
+
"name": {
|
|
1004
|
+
"char": "n",
|
|
1005
|
+
"description": "Profile name (skip prompt if provided)",
|
|
1006
|
+
"name": "name",
|
|
1007
|
+
"required": false,
|
|
1008
|
+
"hasDynamicHelp": false,
|
|
1009
|
+
"multiple": false,
|
|
1010
|
+
"type": "option"
|
|
1006
1011
|
},
|
|
1007
|
-
"
|
|
1008
|
-
"char": "
|
|
1009
|
-
"description": "
|
|
1010
|
-
"name": "
|
|
1012
|
+
"origin": {
|
|
1013
|
+
"char": "o",
|
|
1014
|
+
"description": "Xano instance origin URL",
|
|
1015
|
+
"name": "origin",
|
|
1016
|
+
"required": false,
|
|
1017
|
+
"default": "https://app.xano.com",
|
|
1018
|
+
"hasDynamicHelp": false,
|
|
1019
|
+
"multiple": false,
|
|
1020
|
+
"type": "option"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"hasDynamicHelp": false,
|
|
1024
|
+
"hiddenAliases": [],
|
|
1025
|
+
"id": "profile:wizard",
|
|
1026
|
+
"pluginAlias": "@xano/cli",
|
|
1027
|
+
"pluginName": "@xano/cli",
|
|
1028
|
+
"pluginType": "core",
|
|
1029
|
+
"strict": true,
|
|
1030
|
+
"enableJsonFlag": false,
|
|
1031
|
+
"isESM": true,
|
|
1032
|
+
"relativePath": [
|
|
1033
|
+
"dist",
|
|
1034
|
+
"commands",
|
|
1035
|
+
"profile",
|
|
1036
|
+
"wizard",
|
|
1037
|
+
"index.js"
|
|
1038
|
+
]
|
|
1039
|
+
},
|
|
1040
|
+
"function:create": {
|
|
1041
|
+
"aliases": [],
|
|
1042
|
+
"args": {},
|
|
1043
|
+
"description": "Create a new function in a workspace",
|
|
1044
|
+
"examples": [
|
|
1045
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1046
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1047
|
+
"$ 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",
|
|
1048
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1049
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
1050
|
+
],
|
|
1051
|
+
"flags": {
|
|
1052
|
+
"profile": {
|
|
1053
|
+
"char": "p",
|
|
1054
|
+
"description": "Profile to use for this command",
|
|
1055
|
+
"env": "XANO_PROFILE",
|
|
1056
|
+
"name": "profile",
|
|
1011
1057
|
"required": false,
|
|
1012
1058
|
"hasDynamicHelp": false,
|
|
1013
1059
|
"multiple": false,
|
|
1014
1060
|
"type": "option"
|
|
1015
1061
|
},
|
|
1062
|
+
"verbose": {
|
|
1063
|
+
"char": "v",
|
|
1064
|
+
"description": "Show detailed request/response information",
|
|
1065
|
+
"env": "XANO_VERBOSE",
|
|
1066
|
+
"name": "verbose",
|
|
1067
|
+
"required": false,
|
|
1068
|
+
"allowNo": false,
|
|
1069
|
+
"type": "boolean"
|
|
1070
|
+
},
|
|
1016
1071
|
"edit": {
|
|
1017
1072
|
"char": "e",
|
|
1018
|
-
"
|
|
1073
|
+
"dependsOn": [
|
|
1074
|
+
"file"
|
|
1075
|
+
],
|
|
1076
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
1019
1077
|
"name": "edit",
|
|
1020
1078
|
"required": false,
|
|
1021
1079
|
"allowNo": false,
|
|
1022
1080
|
"type": "boolean"
|
|
1023
1081
|
},
|
|
1024
|
-
"env": {
|
|
1025
|
-
"description": "Environment variable override (key=value)",
|
|
1026
|
-
"name": "env",
|
|
1027
|
-
"required": false,
|
|
1028
|
-
"hasDynamicHelp": false,
|
|
1029
|
-
"multiple": true,
|
|
1030
|
-
"type": "option"
|
|
1031
|
-
},
|
|
1032
1082
|
"file": {
|
|
1033
1083
|
"char": "f",
|
|
1034
|
-
"description": "Path
|
|
1084
|
+
"description": "Path to file containing XanoScript code",
|
|
1035
1085
|
"exclusive": [
|
|
1036
1086
|
"stdin"
|
|
1037
1087
|
],
|
|
@@ -1065,32 +1115,43 @@
|
|
|
1065
1115
|
"required": false,
|
|
1066
1116
|
"allowNo": false,
|
|
1067
1117
|
"type": "boolean"
|
|
1118
|
+
},
|
|
1119
|
+
"workspace": {
|
|
1120
|
+
"char": "w",
|
|
1121
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1122
|
+
"name": "workspace",
|
|
1123
|
+
"required": false,
|
|
1124
|
+
"hasDynamicHelp": false,
|
|
1125
|
+
"multiple": false,
|
|
1126
|
+
"type": "option"
|
|
1068
1127
|
}
|
|
1069
1128
|
},
|
|
1070
1129
|
"hasDynamicHelp": false,
|
|
1071
1130
|
"hiddenAliases": [],
|
|
1072
|
-
"id": "
|
|
1131
|
+
"id": "function:create",
|
|
1073
1132
|
"pluginAlias": "@xano/cli",
|
|
1074
1133
|
"pluginName": "@xano/cli",
|
|
1075
1134
|
"pluginType": "core",
|
|
1076
1135
|
"strict": true,
|
|
1136
|
+
"enableJsonFlag": false,
|
|
1077
1137
|
"isESM": true,
|
|
1078
1138
|
"relativePath": [
|
|
1079
1139
|
"dist",
|
|
1080
1140
|
"commands",
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1141
|
+
"function",
|
|
1142
|
+
"create",
|
|
1083
1143
|
"index.js"
|
|
1084
1144
|
]
|
|
1085
1145
|
},
|
|
1086
|
-
"
|
|
1146
|
+
"static_host:list": {
|
|
1087
1147
|
"aliases": [],
|
|
1088
1148
|
"args": {},
|
|
1089
|
-
"description": "
|
|
1149
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
1090
1150
|
"examples": [
|
|
1091
|
-
"$ xano
|
|
1092
|
-
"$
|
|
1093
|
-
"$ xano
|
|
1151
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1152
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1153
|
+
"$ 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",
|
|
1154
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
1094
1155
|
],
|
|
1095
1156
|
"flags": {
|
|
1096
1157
|
"profile": {
|
|
@@ -1112,18 +1173,6 @@
|
|
|
1112
1173
|
"allowNo": false,
|
|
1113
1174
|
"type": "boolean"
|
|
1114
1175
|
},
|
|
1115
|
-
"file": {
|
|
1116
|
-
"char": "f",
|
|
1117
|
-
"description": "Path or URL to file containing XanoScript code",
|
|
1118
|
-
"exclusive": [
|
|
1119
|
-
"stdin"
|
|
1120
|
-
],
|
|
1121
|
-
"name": "file",
|
|
1122
|
-
"required": false,
|
|
1123
|
-
"hasDynamicHelp": false,
|
|
1124
|
-
"multiple": false,
|
|
1125
|
-
"type": "option"
|
|
1126
|
-
},
|
|
1127
1176
|
"output": {
|
|
1128
1177
|
"char": "o",
|
|
1129
1178
|
"description": "Output format",
|
|
@@ -1138,116 +1187,146 @@
|
|
|
1138
1187
|
],
|
|
1139
1188
|
"type": "option"
|
|
1140
1189
|
},
|
|
1141
|
-
"
|
|
1142
|
-
"
|
|
1143
|
-
"
|
|
1144
|
-
"exclusive": [
|
|
1145
|
-
"file"
|
|
1146
|
-
],
|
|
1147
|
-
"name": "stdin",
|
|
1190
|
+
"page": {
|
|
1191
|
+
"description": "Page number for pagination",
|
|
1192
|
+
"name": "page",
|
|
1148
1193
|
"required": false,
|
|
1149
|
-
"
|
|
1150
|
-
"
|
|
1194
|
+
"default": 1,
|
|
1195
|
+
"hasDynamicHelp": false,
|
|
1196
|
+
"multiple": false,
|
|
1197
|
+
"type": "option"
|
|
1198
|
+
},
|
|
1199
|
+
"per_page": {
|
|
1200
|
+
"description": "Number of results per page",
|
|
1201
|
+
"name": "per_page",
|
|
1202
|
+
"required": false,
|
|
1203
|
+
"default": 50,
|
|
1204
|
+
"hasDynamicHelp": false,
|
|
1205
|
+
"multiple": false,
|
|
1206
|
+
"type": "option"
|
|
1207
|
+
},
|
|
1208
|
+
"workspace": {
|
|
1209
|
+
"char": "w",
|
|
1210
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1211
|
+
"name": "workspace",
|
|
1212
|
+
"required": false,
|
|
1213
|
+
"hasDynamicHelp": false,
|
|
1214
|
+
"multiple": false,
|
|
1215
|
+
"type": "option"
|
|
1151
1216
|
}
|
|
1152
1217
|
},
|
|
1153
1218
|
"hasDynamicHelp": false,
|
|
1154
1219
|
"hiddenAliases": [],
|
|
1155
|
-
"id": "
|
|
1220
|
+
"id": "static_host:list",
|
|
1156
1221
|
"pluginAlias": "@xano/cli",
|
|
1157
1222
|
"pluginName": "@xano/cli",
|
|
1158
1223
|
"pluginType": "core",
|
|
1159
1224
|
"strict": true,
|
|
1225
|
+
"enableJsonFlag": false,
|
|
1160
1226
|
"isESM": true,
|
|
1161
1227
|
"relativePath": [
|
|
1162
1228
|
"dist",
|
|
1163
1229
|
"commands",
|
|
1164
|
-
"
|
|
1165
|
-
"
|
|
1230
|
+
"static_host",
|
|
1231
|
+
"list",
|
|
1166
1232
|
"index.js"
|
|
1167
1233
|
]
|
|
1168
1234
|
},
|
|
1169
|
-
"
|
|
1235
|
+
"function:edit": {
|
|
1170
1236
|
"aliases": [],
|
|
1171
1237
|
"args": {
|
|
1172
|
-
"
|
|
1173
|
-
"description": "
|
|
1174
|
-
"name": "
|
|
1175
|
-
"required":
|
|
1238
|
+
"function_id": {
|
|
1239
|
+
"description": "Function ID to edit",
|
|
1240
|
+
"name": "function_id",
|
|
1241
|
+
"required": false
|
|
1176
1242
|
}
|
|
1177
1243
|
},
|
|
1178
|
-
"description": "
|
|
1244
|
+
"description": "Edit a function in a workspace",
|
|
1179
1245
|
"examples": [
|
|
1180
|
-
"$ xano
|
|
1181
|
-
"$ xano
|
|
1182
|
-
"$ xano
|
|
1183
|
-
"$ xano
|
|
1184
|
-
"$ xano
|
|
1246
|
+
"$ 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",
|
|
1247
|
+
"$ 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",
|
|
1248
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1249
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1250
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
1251
|
+
"$ 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",
|
|
1252
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1253
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
1185
1254
|
],
|
|
1186
1255
|
"flags": {
|
|
1187
|
-
"
|
|
1188
|
-
"char": "
|
|
1189
|
-
"description": "
|
|
1190
|
-
"
|
|
1191
|
-
"
|
|
1192
|
-
"hasDynamicHelp": false,
|
|
1193
|
-
"multiple": false,
|
|
1194
|
-
"type": "option"
|
|
1195
|
-
},
|
|
1196
|
-
"account_origin": {
|
|
1197
|
-
"char": "a",
|
|
1198
|
-
"description": "Account origin URL. Optional for self hosted installs.",
|
|
1199
|
-
"name": "account_origin",
|
|
1256
|
+
"profile": {
|
|
1257
|
+
"char": "p",
|
|
1258
|
+
"description": "Profile to use for this command",
|
|
1259
|
+
"env": "XANO_PROFILE",
|
|
1260
|
+
"name": "profile",
|
|
1200
1261
|
"required": false,
|
|
1201
1262
|
"hasDynamicHelp": false,
|
|
1202
1263
|
"multiple": false,
|
|
1203
1264
|
"type": "option"
|
|
1204
1265
|
},
|
|
1205
|
-
"
|
|
1206
|
-
"char": "
|
|
1207
|
-
"description": "
|
|
1208
|
-
"
|
|
1266
|
+
"verbose": {
|
|
1267
|
+
"char": "v",
|
|
1268
|
+
"description": "Show detailed request/response information",
|
|
1269
|
+
"env": "XANO_VERBOSE",
|
|
1270
|
+
"name": "verbose",
|
|
1209
1271
|
"required": false,
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1212
|
-
"type": "option"
|
|
1272
|
+
"allowNo": false,
|
|
1273
|
+
"type": "boolean"
|
|
1213
1274
|
},
|
|
1214
|
-
"
|
|
1215
|
-
"
|
|
1216
|
-
"
|
|
1275
|
+
"edit": {
|
|
1276
|
+
"char": "e",
|
|
1277
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
1278
|
+
"name": "edit",
|
|
1217
1279
|
"required": false,
|
|
1218
1280
|
"allowNo": false,
|
|
1219
1281
|
"type": "boolean"
|
|
1220
1282
|
},
|
|
1221
|
-
"
|
|
1222
|
-
"char": "
|
|
1223
|
-
"description": "
|
|
1224
|
-
"
|
|
1225
|
-
|
|
1283
|
+
"file": {
|
|
1284
|
+
"char": "f",
|
|
1285
|
+
"description": "Path to file containing XanoScript code",
|
|
1286
|
+
"exclusive": [
|
|
1287
|
+
"stdin"
|
|
1288
|
+
],
|
|
1289
|
+
"name": "file",
|
|
1290
|
+
"required": false,
|
|
1226
1291
|
"hasDynamicHelp": false,
|
|
1227
1292
|
"multiple": false,
|
|
1228
1293
|
"type": "option"
|
|
1229
1294
|
},
|
|
1230
|
-
"
|
|
1231
|
-
"char": "
|
|
1232
|
-
"description": "
|
|
1233
|
-
"name": "
|
|
1295
|
+
"output": {
|
|
1296
|
+
"char": "o",
|
|
1297
|
+
"description": "Output format",
|
|
1298
|
+
"name": "output",
|
|
1234
1299
|
"required": false,
|
|
1300
|
+
"default": "summary",
|
|
1235
1301
|
"hasDynamicHelp": false,
|
|
1236
1302
|
"multiple": false,
|
|
1303
|
+
"options": [
|
|
1304
|
+
"summary",
|
|
1305
|
+
"json"
|
|
1306
|
+
],
|
|
1237
1307
|
"type": "option"
|
|
1238
1308
|
},
|
|
1239
|
-
"
|
|
1240
|
-
"
|
|
1241
|
-
"
|
|
1242
|
-
"name": "run_base_url",
|
|
1309
|
+
"publish": {
|
|
1310
|
+
"description": "Publish the function after editing",
|
|
1311
|
+
"name": "publish",
|
|
1243
1312
|
"required": false,
|
|
1244
|
-
"
|
|
1245
|
-
"
|
|
1246
|
-
|
|
1313
|
+
"allowNo": false,
|
|
1314
|
+
"type": "boolean"
|
|
1315
|
+
},
|
|
1316
|
+
"stdin": {
|
|
1317
|
+
"char": "s",
|
|
1318
|
+
"description": "Read XanoScript code from stdin",
|
|
1319
|
+
"exclusive": [
|
|
1320
|
+
"file"
|
|
1321
|
+
],
|
|
1322
|
+
"name": "stdin",
|
|
1323
|
+
"required": false,
|
|
1324
|
+
"allowNo": false,
|
|
1325
|
+
"type": "boolean"
|
|
1247
1326
|
},
|
|
1248
1327
|
"workspace": {
|
|
1249
1328
|
"char": "w",
|
|
1250
|
-
"description": "Workspace
|
|
1329
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1251
1330
|
"name": "workspace",
|
|
1252
1331
|
"required": false,
|
|
1253
1332
|
"hasDynamicHelp": false,
|
|
@@ -1257,7 +1336,7 @@
|
|
|
1257
1336
|
},
|
|
1258
1337
|
"hasDynamicHelp": false,
|
|
1259
1338
|
"hiddenAliases": [],
|
|
1260
|
-
"id": "
|
|
1339
|
+
"id": "function:edit",
|
|
1261
1340
|
"pluginAlias": "@xano/cli",
|
|
1262
1341
|
"pluginName": "@xano/cli",
|
|
1263
1342
|
"pluginType": "core",
|
|
@@ -1267,39 +1346,29 @@
|
|
|
1267
1346
|
"relativePath": [
|
|
1268
1347
|
"dist",
|
|
1269
1348
|
"commands",
|
|
1270
|
-
"
|
|
1271
|
-
"
|
|
1349
|
+
"function",
|
|
1350
|
+
"edit",
|
|
1272
1351
|
"index.js"
|
|
1273
1352
|
]
|
|
1274
1353
|
},
|
|
1275
|
-
"profile:
|
|
1354
|
+
"profile:set-default": {
|
|
1276
1355
|
"aliases": [],
|
|
1277
1356
|
"args": {
|
|
1278
1357
|
"name": {
|
|
1279
|
-
"description": "Profile name to
|
|
1358
|
+
"description": "Profile name to set as default",
|
|
1280
1359
|
"name": "name",
|
|
1281
1360
|
"required": true
|
|
1282
1361
|
}
|
|
1283
1362
|
},
|
|
1284
|
-
"description": "
|
|
1363
|
+
"description": "Set the default profile",
|
|
1285
1364
|
"examples": [
|
|
1286
|
-
"$ xano profile:
|
|
1287
|
-
"$ xano profile:
|
|
1288
|
-
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
1365
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
1366
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
1289
1367
|
],
|
|
1290
|
-
"flags": {
|
|
1291
|
-
"force": {
|
|
1292
|
-
"char": "f",
|
|
1293
|
-
"description": "Skip confirmation prompt",
|
|
1294
|
-
"name": "force",
|
|
1295
|
-
"required": false,
|
|
1296
|
-
"allowNo": false,
|
|
1297
|
-
"type": "boolean"
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1368
|
+
"flags": {},
|
|
1300
1369
|
"hasDynamicHelp": false,
|
|
1301
1370
|
"hiddenAliases": [],
|
|
1302
|
-
"id": "profile:
|
|
1371
|
+
"id": "profile:set-default",
|
|
1303
1372
|
"pluginAlias": "@xano/cli",
|
|
1304
1373
|
"pluginName": "@xano/cli",
|
|
1305
1374
|
"pluginType": "core",
|
|
@@ -1310,28 +1379,27 @@
|
|
|
1310
1379
|
"dist",
|
|
1311
1380
|
"commands",
|
|
1312
1381
|
"profile",
|
|
1313
|
-
"
|
|
1382
|
+
"set-default",
|
|
1314
1383
|
"index.js"
|
|
1315
1384
|
]
|
|
1316
1385
|
},
|
|
1317
|
-
"
|
|
1386
|
+
"function:get": {
|
|
1318
1387
|
"aliases": [],
|
|
1319
1388
|
"args": {
|
|
1320
|
-
"
|
|
1321
|
-
"description": "
|
|
1322
|
-
"name": "
|
|
1389
|
+
"function_id": {
|
|
1390
|
+
"description": "Function ID",
|
|
1391
|
+
"name": "function_id",
|
|
1323
1392
|
"required": false
|
|
1324
1393
|
}
|
|
1325
1394
|
},
|
|
1326
|
-
"description": "
|
|
1395
|
+
"description": "Get a specific function from a workspace",
|
|
1327
1396
|
"examples": [
|
|
1328
|
-
"$ xano
|
|
1329
|
-
"$ xano
|
|
1330
|
-
"$ xano
|
|
1331
|
-
"$ xano
|
|
1332
|
-
"$ xano
|
|
1333
|
-
"$ xano
|
|
1334
|
-
"$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
1397
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
1398
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
1399
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
1400
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
1401
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
1402
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
1335
1403
|
],
|
|
1336
1404
|
"flags": {
|
|
1337
1405
|
"profile": {
|
|
@@ -1353,91 +1421,38 @@
|
|
|
1353
1421
|
"allowNo": false,
|
|
1354
1422
|
"type": "boolean"
|
|
1355
1423
|
},
|
|
1356
|
-
"
|
|
1357
|
-
"
|
|
1358
|
-
"
|
|
1359
|
-
"name": "access_token",
|
|
1360
|
-
"required": false,
|
|
1361
|
-
"hasDynamicHelp": false,
|
|
1362
|
-
"multiple": false,
|
|
1363
|
-
"type": "option"
|
|
1364
|
-
},
|
|
1365
|
-
"account_origin": {
|
|
1366
|
-
"char": "a",
|
|
1367
|
-
"description": "Update account origin URL",
|
|
1368
|
-
"name": "account_origin",
|
|
1369
|
-
"required": false,
|
|
1370
|
-
"hasDynamicHelp": false,
|
|
1371
|
-
"multiple": false,
|
|
1372
|
-
"type": "option"
|
|
1373
|
-
},
|
|
1374
|
-
"branch": {
|
|
1375
|
-
"char": "b",
|
|
1376
|
-
"description": "Update branch name",
|
|
1377
|
-
"name": "branch",
|
|
1378
|
-
"required": false,
|
|
1379
|
-
"hasDynamicHelp": false,
|
|
1380
|
-
"multiple": false,
|
|
1381
|
-
"type": "option"
|
|
1382
|
-
},
|
|
1383
|
-
"instance_origin": {
|
|
1384
|
-
"char": "i",
|
|
1385
|
-
"description": "Update instance origin URL",
|
|
1386
|
-
"name": "instance_origin",
|
|
1387
|
-
"required": false,
|
|
1388
|
-
"hasDynamicHelp": false,
|
|
1389
|
-
"multiple": false,
|
|
1390
|
-
"type": "option"
|
|
1391
|
-
},
|
|
1392
|
-
"project": {
|
|
1393
|
-
"char": "j",
|
|
1394
|
-
"description": "Update project ID",
|
|
1395
|
-
"name": "project",
|
|
1396
|
-
"required": false,
|
|
1397
|
-
"hasDynamicHelp": false,
|
|
1398
|
-
"multiple": false,
|
|
1399
|
-
"type": "option"
|
|
1400
|
-
},
|
|
1401
|
-
"remove-branch": {
|
|
1402
|
-
"description": "Remove branch from profile",
|
|
1403
|
-
"name": "remove-branch",
|
|
1404
|
-
"required": false,
|
|
1405
|
-
"allowNo": false,
|
|
1406
|
-
"type": "boolean"
|
|
1407
|
-
},
|
|
1408
|
-
"remove-project": {
|
|
1409
|
-
"description": "Remove project from profile",
|
|
1410
|
-
"name": "remove-project",
|
|
1411
|
-
"required": false,
|
|
1412
|
-
"allowNo": false,
|
|
1413
|
-
"type": "boolean"
|
|
1414
|
-
},
|
|
1415
|
-
"remove-run-base-url": {
|
|
1416
|
-
"description": "Remove run_base_url from profile (use default)",
|
|
1417
|
-
"name": "remove-run-base-url",
|
|
1424
|
+
"include_draft": {
|
|
1425
|
+
"description": "Include draft version",
|
|
1426
|
+
"name": "include_draft",
|
|
1418
1427
|
"required": false,
|
|
1419
1428
|
"allowNo": false,
|
|
1420
1429
|
"type": "boolean"
|
|
1421
1430
|
},
|
|
1422
|
-
"
|
|
1423
|
-
"description": "
|
|
1424
|
-
"name": "
|
|
1431
|
+
"include_xanoscript": {
|
|
1432
|
+
"description": "Include XanoScript in response",
|
|
1433
|
+
"name": "include_xanoscript",
|
|
1425
1434
|
"required": false,
|
|
1426
1435
|
"allowNo": false,
|
|
1427
1436
|
"type": "boolean"
|
|
1428
1437
|
},
|
|
1429
|
-
"
|
|
1430
|
-
"char": "
|
|
1431
|
-
"description": "
|
|
1432
|
-
"name": "
|
|
1438
|
+
"output": {
|
|
1439
|
+
"char": "o",
|
|
1440
|
+
"description": "Output format",
|
|
1441
|
+
"name": "output",
|
|
1433
1442
|
"required": false,
|
|
1443
|
+
"default": "summary",
|
|
1434
1444
|
"hasDynamicHelp": false,
|
|
1435
1445
|
"multiple": false,
|
|
1446
|
+
"options": [
|
|
1447
|
+
"summary",
|
|
1448
|
+
"json",
|
|
1449
|
+
"xs"
|
|
1450
|
+
],
|
|
1436
1451
|
"type": "option"
|
|
1437
1452
|
},
|
|
1438
1453
|
"workspace": {
|
|
1439
1454
|
"char": "w",
|
|
1440
|
-
"description": "
|
|
1455
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1441
1456
|
"name": "workspace",
|
|
1442
1457
|
"required": false,
|
|
1443
1458
|
"hasDynamicHelp": false,
|
|
@@ -1447,7 +1462,7 @@
|
|
|
1447
1462
|
},
|
|
1448
1463
|
"hasDynamicHelp": false,
|
|
1449
1464
|
"hiddenAliases": [],
|
|
1450
|
-
"id": "
|
|
1465
|
+
"id": "function:get",
|
|
1451
1466
|
"pluginAlias": "@xano/cli",
|
|
1452
1467
|
"pluginName": "@xano/cli",
|
|
1453
1468
|
"pluginType": "core",
|
|
@@ -1457,23 +1472,122 @@
|
|
|
1457
1472
|
"relativePath": [
|
|
1458
1473
|
"dist",
|
|
1459
1474
|
"commands",
|
|
1460
|
-
"
|
|
1461
|
-
"
|
|
1475
|
+
"function",
|
|
1476
|
+
"get",
|
|
1462
1477
|
"index.js"
|
|
1463
1478
|
]
|
|
1464
1479
|
},
|
|
1465
|
-
"
|
|
1480
|
+
"function:list": {
|
|
1466
1481
|
"aliases": [],
|
|
1467
1482
|
"args": {},
|
|
1468
|
-
"description": "
|
|
1483
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
1469
1484
|
"examples": [
|
|
1470
|
-
"$ xano
|
|
1471
|
-
"$ xano profile:
|
|
1485
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
1486
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
1487
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
1488
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
1472
1489
|
],
|
|
1473
|
-
"flags": {
|
|
1490
|
+
"flags": {
|
|
1491
|
+
"profile": {
|
|
1492
|
+
"char": "p",
|
|
1493
|
+
"description": "Profile to use for this command",
|
|
1494
|
+
"env": "XANO_PROFILE",
|
|
1495
|
+
"name": "profile",
|
|
1496
|
+
"required": false,
|
|
1497
|
+
"hasDynamicHelp": false,
|
|
1498
|
+
"multiple": false,
|
|
1499
|
+
"type": "option"
|
|
1500
|
+
},
|
|
1501
|
+
"verbose": {
|
|
1502
|
+
"char": "v",
|
|
1503
|
+
"description": "Show detailed request/response information",
|
|
1504
|
+
"env": "XANO_VERBOSE",
|
|
1505
|
+
"name": "verbose",
|
|
1506
|
+
"required": false,
|
|
1507
|
+
"allowNo": false,
|
|
1508
|
+
"type": "boolean"
|
|
1509
|
+
},
|
|
1510
|
+
"include_draft": {
|
|
1511
|
+
"description": "Include draft functions",
|
|
1512
|
+
"name": "include_draft",
|
|
1513
|
+
"required": false,
|
|
1514
|
+
"allowNo": false,
|
|
1515
|
+
"type": "boolean"
|
|
1516
|
+
},
|
|
1517
|
+
"include_xanoscript": {
|
|
1518
|
+
"description": "Include XanoScript in response",
|
|
1519
|
+
"name": "include_xanoscript",
|
|
1520
|
+
"required": false,
|
|
1521
|
+
"allowNo": false,
|
|
1522
|
+
"type": "boolean"
|
|
1523
|
+
},
|
|
1524
|
+
"order": {
|
|
1525
|
+
"description": "Sort order",
|
|
1526
|
+
"name": "order",
|
|
1527
|
+
"required": false,
|
|
1528
|
+
"default": "desc",
|
|
1529
|
+
"hasDynamicHelp": false,
|
|
1530
|
+
"multiple": false,
|
|
1531
|
+
"options": [
|
|
1532
|
+
"asc",
|
|
1533
|
+
"desc"
|
|
1534
|
+
],
|
|
1535
|
+
"type": "option"
|
|
1536
|
+
},
|
|
1537
|
+
"output": {
|
|
1538
|
+
"char": "o",
|
|
1539
|
+
"description": "Output format",
|
|
1540
|
+
"name": "output",
|
|
1541
|
+
"required": false,
|
|
1542
|
+
"default": "summary",
|
|
1543
|
+
"hasDynamicHelp": false,
|
|
1544
|
+
"multiple": false,
|
|
1545
|
+
"options": [
|
|
1546
|
+
"summary",
|
|
1547
|
+
"json"
|
|
1548
|
+
],
|
|
1549
|
+
"type": "option"
|
|
1550
|
+
},
|
|
1551
|
+
"page": {
|
|
1552
|
+
"description": "Page number for pagination",
|
|
1553
|
+
"name": "page",
|
|
1554
|
+
"required": false,
|
|
1555
|
+
"default": 1,
|
|
1556
|
+
"hasDynamicHelp": false,
|
|
1557
|
+
"multiple": false,
|
|
1558
|
+
"type": "option"
|
|
1559
|
+
},
|
|
1560
|
+
"per_page": {
|
|
1561
|
+
"description": "Number of results per page",
|
|
1562
|
+
"name": "per_page",
|
|
1563
|
+
"required": false,
|
|
1564
|
+
"default": 50,
|
|
1565
|
+
"hasDynamicHelp": false,
|
|
1566
|
+
"multiple": false,
|
|
1567
|
+
"type": "option"
|
|
1568
|
+
},
|
|
1569
|
+
"sort": {
|
|
1570
|
+
"description": "Sort field",
|
|
1571
|
+
"name": "sort",
|
|
1572
|
+
"required": false,
|
|
1573
|
+
"default": "created_at",
|
|
1574
|
+
"hasDynamicHelp": false,
|
|
1575
|
+
"multiple": false,
|
|
1576
|
+
"type": "option"
|
|
1577
|
+
},
|
|
1578
|
+
"workspace": {
|
|
1579
|
+
"char": "w",
|
|
1580
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1581
|
+
"name": "workspace",
|
|
1582
|
+
"required": false,
|
|
1583
|
+
"hasDynamicHelp": false,
|
|
1584
|
+
"multiple": false,
|
|
1585
|
+
"type": "option"
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1474
1588
|
"hasDynamicHelp": false,
|
|
1475
1589
|
"hiddenAliases": [],
|
|
1476
|
-
"id": "
|
|
1590
|
+
"id": "function:list",
|
|
1477
1591
|
"pluginAlias": "@xano/cli",
|
|
1478
1592
|
"pluginName": "@xano/cli",
|
|
1479
1593
|
"pluginType": "core",
|
|
@@ -1483,25 +1597,73 @@
|
|
|
1483
1597
|
"relativePath": [
|
|
1484
1598
|
"dist",
|
|
1485
1599
|
"commands",
|
|
1486
|
-
"
|
|
1487
|
-
"
|
|
1600
|
+
"function",
|
|
1601
|
+
"list",
|
|
1488
1602
|
"index.js"
|
|
1489
1603
|
]
|
|
1490
1604
|
},
|
|
1491
|
-
"
|
|
1605
|
+
"run:info": {
|
|
1492
1606
|
"aliases": [],
|
|
1493
1607
|
"args": {},
|
|
1494
|
-
"description": "
|
|
1608
|
+
"description": "Get information about a XanoScript document (type, inputs, env vars)",
|
|
1495
1609
|
"examples": [
|
|
1496
|
-
"$ xano
|
|
1497
|
-
"$
|
|
1498
|
-
"$ xano
|
|
1610
|
+
"$ 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",
|
|
1611
|
+
"$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
|
|
1612
|
+
"$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
|
|
1499
1613
|
],
|
|
1500
1614
|
"flags": {
|
|
1501
|
-
"
|
|
1502
|
-
"char": "
|
|
1503
|
-
"description": "
|
|
1504
|
-
"
|
|
1615
|
+
"profile": {
|
|
1616
|
+
"char": "p",
|
|
1617
|
+
"description": "Profile to use for this command",
|
|
1618
|
+
"env": "XANO_PROFILE",
|
|
1619
|
+
"name": "profile",
|
|
1620
|
+
"required": false,
|
|
1621
|
+
"hasDynamicHelp": false,
|
|
1622
|
+
"multiple": false,
|
|
1623
|
+
"type": "option"
|
|
1624
|
+
},
|
|
1625
|
+
"verbose": {
|
|
1626
|
+
"char": "v",
|
|
1627
|
+
"description": "Show detailed request/response information",
|
|
1628
|
+
"env": "XANO_VERBOSE",
|
|
1629
|
+
"name": "verbose",
|
|
1630
|
+
"required": false,
|
|
1631
|
+
"allowNo": false,
|
|
1632
|
+
"type": "boolean"
|
|
1633
|
+
},
|
|
1634
|
+
"file": {
|
|
1635
|
+
"char": "f",
|
|
1636
|
+
"description": "Path or URL to file containing XanoScript code",
|
|
1637
|
+
"exclusive": [
|
|
1638
|
+
"stdin"
|
|
1639
|
+
],
|
|
1640
|
+
"name": "file",
|
|
1641
|
+
"required": false,
|
|
1642
|
+
"hasDynamicHelp": false,
|
|
1643
|
+
"multiple": false,
|
|
1644
|
+
"type": "option"
|
|
1645
|
+
},
|
|
1646
|
+
"output": {
|
|
1647
|
+
"char": "o",
|
|
1648
|
+
"description": "Output format",
|
|
1649
|
+
"name": "output",
|
|
1650
|
+
"required": false,
|
|
1651
|
+
"default": "summary",
|
|
1652
|
+
"hasDynamicHelp": false,
|
|
1653
|
+
"multiple": false,
|
|
1654
|
+
"options": [
|
|
1655
|
+
"summary",
|
|
1656
|
+
"json"
|
|
1657
|
+
],
|
|
1658
|
+
"type": "option"
|
|
1659
|
+
},
|
|
1660
|
+
"stdin": {
|
|
1661
|
+
"char": "s",
|
|
1662
|
+
"description": "Read XanoScript code from stdin",
|
|
1663
|
+
"exclusive": [
|
|
1664
|
+
"file"
|
|
1665
|
+
],
|
|
1666
|
+
"name": "stdin",
|
|
1505
1667
|
"required": false,
|
|
1506
1668
|
"allowNo": false,
|
|
1507
1669
|
"type": "boolean"
|
|
@@ -1509,29 +1671,146 @@
|
|
|
1509
1671
|
},
|
|
1510
1672
|
"hasDynamicHelp": false,
|
|
1511
1673
|
"hiddenAliases": [],
|
|
1512
|
-
"id": "
|
|
1674
|
+
"id": "run:info",
|
|
1513
1675
|
"pluginAlias": "@xano/cli",
|
|
1514
1676
|
"pluginName": "@xano/cli",
|
|
1515
1677
|
"pluginType": "core",
|
|
1516
1678
|
"strict": true,
|
|
1517
|
-
"enableJsonFlag": false,
|
|
1518
1679
|
"isESM": true,
|
|
1519
1680
|
"relativePath": [
|
|
1520
1681
|
"dist",
|
|
1521
1682
|
"commands",
|
|
1522
|
-
"
|
|
1523
|
-
"
|
|
1683
|
+
"run",
|
|
1684
|
+
"info",
|
|
1524
1685
|
"index.js"
|
|
1525
1686
|
]
|
|
1526
1687
|
},
|
|
1527
|
-
"
|
|
1688
|
+
"run:exec": {
|
|
1689
|
+
"aliases": [],
|
|
1690
|
+
"args": {
|
|
1691
|
+
"path": {
|
|
1692
|
+
"description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
|
|
1693
|
+
"name": "path",
|
|
1694
|
+
"required": false
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
"description": "Execute XanoScript code (job or service)",
|
|
1698
|
+
"examples": [
|
|
1699
|
+
"$ xano run exec script.xs\nExecuted successfully!\n...\n",
|
|
1700
|
+
"$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
|
|
1701
|
+
"$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
|
|
1702
|
+
"$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
|
|
1703
|
+
"$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
|
|
1704
|
+
"$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
|
|
1705
|
+
"$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
|
|
1706
|
+
],
|
|
1707
|
+
"flags": {
|
|
1708
|
+
"profile": {
|
|
1709
|
+
"char": "p",
|
|
1710
|
+
"description": "Profile to use for this command",
|
|
1711
|
+
"env": "XANO_PROFILE",
|
|
1712
|
+
"name": "profile",
|
|
1713
|
+
"required": false,
|
|
1714
|
+
"hasDynamicHelp": false,
|
|
1715
|
+
"multiple": false,
|
|
1716
|
+
"type": "option"
|
|
1717
|
+
},
|
|
1718
|
+
"verbose": {
|
|
1719
|
+
"char": "v",
|
|
1720
|
+
"description": "Show detailed request/response information",
|
|
1721
|
+
"env": "XANO_VERBOSE",
|
|
1722
|
+
"name": "verbose",
|
|
1723
|
+
"required": false,
|
|
1724
|
+
"allowNo": false,
|
|
1725
|
+
"type": "boolean"
|
|
1726
|
+
},
|
|
1727
|
+
"args": {
|
|
1728
|
+
"char": "a",
|
|
1729
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
1730
|
+
"name": "args",
|
|
1731
|
+
"required": false,
|
|
1732
|
+
"hasDynamicHelp": false,
|
|
1733
|
+
"multiple": false,
|
|
1734
|
+
"type": "option"
|
|
1735
|
+
},
|
|
1736
|
+
"edit": {
|
|
1737
|
+
"char": "e",
|
|
1738
|
+
"description": "Open file in editor before running (requires path argument or --file)",
|
|
1739
|
+
"name": "edit",
|
|
1740
|
+
"required": false,
|
|
1741
|
+
"allowNo": false,
|
|
1742
|
+
"type": "boolean"
|
|
1743
|
+
},
|
|
1744
|
+
"env": {
|
|
1745
|
+
"description": "Environment variable override (key=value)",
|
|
1746
|
+
"name": "env",
|
|
1747
|
+
"required": false,
|
|
1748
|
+
"hasDynamicHelp": false,
|
|
1749
|
+
"multiple": true,
|
|
1750
|
+
"type": "option"
|
|
1751
|
+
},
|
|
1752
|
+
"file": {
|
|
1753
|
+
"char": "f",
|
|
1754
|
+
"description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
|
|
1755
|
+
"exclusive": [
|
|
1756
|
+
"stdin"
|
|
1757
|
+
],
|
|
1758
|
+
"name": "file",
|
|
1759
|
+
"required": false,
|
|
1760
|
+
"hasDynamicHelp": false,
|
|
1761
|
+
"multiple": false,
|
|
1762
|
+
"type": "option"
|
|
1763
|
+
},
|
|
1764
|
+
"output": {
|
|
1765
|
+
"char": "o",
|
|
1766
|
+
"description": "Output format",
|
|
1767
|
+
"name": "output",
|
|
1768
|
+
"required": false,
|
|
1769
|
+
"default": "summary",
|
|
1770
|
+
"hasDynamicHelp": false,
|
|
1771
|
+
"multiple": false,
|
|
1772
|
+
"options": [
|
|
1773
|
+
"summary",
|
|
1774
|
+
"json"
|
|
1775
|
+
],
|
|
1776
|
+
"type": "option"
|
|
1777
|
+
},
|
|
1778
|
+
"stdin": {
|
|
1779
|
+
"char": "s",
|
|
1780
|
+
"description": "Read XanoScript code from stdin",
|
|
1781
|
+
"exclusive": [
|
|
1782
|
+
"file"
|
|
1783
|
+
],
|
|
1784
|
+
"name": "stdin",
|
|
1785
|
+
"required": false,
|
|
1786
|
+
"allowNo": false,
|
|
1787
|
+
"type": "boolean"
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"hasDynamicHelp": false,
|
|
1791
|
+
"hiddenAliases": [],
|
|
1792
|
+
"id": "run:exec",
|
|
1793
|
+
"pluginAlias": "@xano/cli",
|
|
1794
|
+
"pluginName": "@xano/cli",
|
|
1795
|
+
"pluginType": "core",
|
|
1796
|
+
"strict": true,
|
|
1797
|
+
"isESM": true,
|
|
1798
|
+
"relativePath": [
|
|
1799
|
+
"dist",
|
|
1800
|
+
"commands",
|
|
1801
|
+
"run",
|
|
1802
|
+
"exec",
|
|
1803
|
+
"index.js"
|
|
1804
|
+
]
|
|
1805
|
+
},
|
|
1806
|
+
"workspace:create": {
|
|
1528
1807
|
"aliases": [],
|
|
1529
1808
|
"args": {},
|
|
1530
|
-
"description": "
|
|
1809
|
+
"description": "Create a new workspace via the Xano Metadata API",
|
|
1531
1810
|
"examples": [
|
|
1532
|
-
"$ xano
|
|
1533
|
-
"$ xano
|
|
1534
|
-
"$ xano
|
|
1811
|
+
"$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
|
|
1812
|
+
"$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
|
|
1813
|
+
"$ xano workspace create -n \"new-project\" -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
|
|
1535
1814
|
],
|
|
1536
1815
|
"flags": {
|
|
1537
1816
|
"profile": {
|
|
@@ -1553,6 +1832,24 @@
|
|
|
1553
1832
|
"allowNo": false,
|
|
1554
1833
|
"type": "boolean"
|
|
1555
1834
|
},
|
|
1835
|
+
"description": {
|
|
1836
|
+
"char": "d",
|
|
1837
|
+
"description": "Description for the workspace",
|
|
1838
|
+
"name": "description",
|
|
1839
|
+
"required": false,
|
|
1840
|
+
"hasDynamicHelp": false,
|
|
1841
|
+
"multiple": false,
|
|
1842
|
+
"type": "option"
|
|
1843
|
+
},
|
|
1844
|
+
"name": {
|
|
1845
|
+
"char": "n",
|
|
1846
|
+
"description": "Name of the workspace",
|
|
1847
|
+
"name": "name",
|
|
1848
|
+
"required": true,
|
|
1849
|
+
"hasDynamicHelp": false,
|
|
1850
|
+
"multiple": false,
|
|
1851
|
+
"type": "option"
|
|
1852
|
+
},
|
|
1556
1853
|
"output": {
|
|
1557
1854
|
"char": "o",
|
|
1558
1855
|
"description": "Output format",
|
|
@@ -1570,33 +1867,7 @@
|
|
|
1570
1867
|
},
|
|
1571
1868
|
"hasDynamicHelp": false,
|
|
1572
1869
|
"hiddenAliases": [],
|
|
1573
|
-
"id": "
|
|
1574
|
-
"pluginAlias": "@xano/cli",
|
|
1575
|
-
"pluginName": "@xano/cli",
|
|
1576
|
-
"pluginType": "core",
|
|
1577
|
-
"strict": true,
|
|
1578
|
-
"enableJsonFlag": false,
|
|
1579
|
-
"isESM": true,
|
|
1580
|
-
"relativePath": [
|
|
1581
|
-
"dist",
|
|
1582
|
-
"commands",
|
|
1583
|
-
"profile",
|
|
1584
|
-
"me",
|
|
1585
|
-
"index.js"
|
|
1586
|
-
]
|
|
1587
|
-
},
|
|
1588
|
-
"profile:project": {
|
|
1589
|
-
"aliases": [],
|
|
1590
|
-
"args": {},
|
|
1591
|
-
"description": "Print the project for the default profile",
|
|
1592
|
-
"examples": [
|
|
1593
|
-
"$ xano profile:project\nmy-project-id\n",
|
|
1594
|
-
"$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
|
|
1595
|
-
],
|
|
1596
|
-
"flags": {},
|
|
1597
|
-
"hasDynamicHelp": false,
|
|
1598
|
-
"hiddenAliases": [],
|
|
1599
|
-
"id": "profile:project",
|
|
1870
|
+
"id": "workspace:create",
|
|
1600
1871
|
"pluginAlias": "@xano/cli",
|
|
1601
1872
|
"pluginName": "@xano/cli",
|
|
1602
1873
|
"pluginType": "core",
|
|
@@ -1606,100 +1877,72 @@
|
|
|
1606
1877
|
"relativePath": [
|
|
1607
1878
|
"dist",
|
|
1608
1879
|
"commands",
|
|
1609
|
-
"
|
|
1610
|
-
"
|
|
1880
|
+
"workspace",
|
|
1881
|
+
"create",
|
|
1611
1882
|
"index.js"
|
|
1612
1883
|
]
|
|
1613
1884
|
},
|
|
1614
|
-
"
|
|
1885
|
+
"workspace:delete": {
|
|
1615
1886
|
"aliases": [],
|
|
1616
1887
|
"args": {
|
|
1617
|
-
"
|
|
1618
|
-
"description": "
|
|
1619
|
-
"name": "
|
|
1888
|
+
"workspace_id": {
|
|
1889
|
+
"description": "Workspace ID to delete",
|
|
1890
|
+
"name": "workspace_id",
|
|
1620
1891
|
"required": true
|
|
1621
1892
|
}
|
|
1622
1893
|
},
|
|
1623
|
-
"description": "
|
|
1624
|
-
"examples": [
|
|
1625
|
-
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
1626
|
-
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
1627
|
-
],
|
|
1628
|
-
"flags": {},
|
|
1629
|
-
"hasDynamicHelp": false,
|
|
1630
|
-
"hiddenAliases": [],
|
|
1631
|
-
"id": "profile:set-default",
|
|
1632
|
-
"pluginAlias": "@xano/cli",
|
|
1633
|
-
"pluginName": "@xano/cli",
|
|
1634
|
-
"pluginType": "core",
|
|
1635
|
-
"strict": true,
|
|
1636
|
-
"enableJsonFlag": false,
|
|
1637
|
-
"isESM": true,
|
|
1638
|
-
"relativePath": [
|
|
1639
|
-
"dist",
|
|
1640
|
-
"commands",
|
|
1641
|
-
"profile",
|
|
1642
|
-
"set-default",
|
|
1643
|
-
"index.js"
|
|
1644
|
-
]
|
|
1645
|
-
},
|
|
1646
|
-
"profile:token": {
|
|
1647
|
-
"aliases": [],
|
|
1648
|
-
"args": {},
|
|
1649
|
-
"description": "Print the access token for the default profile",
|
|
1650
|
-
"examples": [
|
|
1651
|
-
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
1652
|
-
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1653
|
-
],
|
|
1654
|
-
"flags": {},
|
|
1655
|
-
"hasDynamicHelp": false,
|
|
1656
|
-
"hiddenAliases": [],
|
|
1657
|
-
"id": "profile:token",
|
|
1658
|
-
"pluginAlias": "@xano/cli",
|
|
1659
|
-
"pluginName": "@xano/cli",
|
|
1660
|
-
"pluginType": "core",
|
|
1661
|
-
"strict": true,
|
|
1662
|
-
"enableJsonFlag": false,
|
|
1663
|
-
"isESM": true,
|
|
1664
|
-
"relativePath": [
|
|
1665
|
-
"dist",
|
|
1666
|
-
"commands",
|
|
1667
|
-
"profile",
|
|
1668
|
-
"token",
|
|
1669
|
-
"index.js"
|
|
1670
|
-
]
|
|
1671
|
-
},
|
|
1672
|
-
"profile:wizard": {
|
|
1673
|
-
"aliases": [],
|
|
1674
|
-
"args": {},
|
|
1675
|
-
"description": "Create a new profile configuration using an interactive wizard",
|
|
1894
|
+
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
1676
1895
|
"examples": [
|
|
1677
|
-
"$ xano
|
|
1896
|
+
"$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
|
|
1897
|
+
"$ xano workspace delete 123 --force\nDeleted workspace 123\n",
|
|
1898
|
+
"$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
|
|
1678
1899
|
],
|
|
1679
1900
|
"flags": {
|
|
1680
|
-
"
|
|
1681
|
-
"char": "
|
|
1682
|
-
"description": "Profile
|
|
1683
|
-
"
|
|
1901
|
+
"profile": {
|
|
1902
|
+
"char": "p",
|
|
1903
|
+
"description": "Profile to use for this command",
|
|
1904
|
+
"env": "XANO_PROFILE",
|
|
1905
|
+
"name": "profile",
|
|
1684
1906
|
"required": false,
|
|
1685
1907
|
"hasDynamicHelp": false,
|
|
1686
1908
|
"multiple": false,
|
|
1687
1909
|
"type": "option"
|
|
1688
1910
|
},
|
|
1689
|
-
"
|
|
1911
|
+
"verbose": {
|
|
1912
|
+
"char": "v",
|
|
1913
|
+
"description": "Show detailed request/response information",
|
|
1914
|
+
"env": "XANO_VERBOSE",
|
|
1915
|
+
"name": "verbose",
|
|
1916
|
+
"required": false,
|
|
1917
|
+
"allowNo": false,
|
|
1918
|
+
"type": "boolean"
|
|
1919
|
+
},
|
|
1920
|
+
"force": {
|
|
1921
|
+
"char": "f",
|
|
1922
|
+
"description": "Skip confirmation prompt",
|
|
1923
|
+
"name": "force",
|
|
1924
|
+
"required": false,
|
|
1925
|
+
"allowNo": false,
|
|
1926
|
+
"type": "boolean"
|
|
1927
|
+
},
|
|
1928
|
+
"output": {
|
|
1690
1929
|
"char": "o",
|
|
1691
|
-
"description": "
|
|
1692
|
-
"name": "
|
|
1930
|
+
"description": "Output format",
|
|
1931
|
+
"name": "output",
|
|
1693
1932
|
"required": false,
|
|
1694
|
-
"default": "
|
|
1933
|
+
"default": "summary",
|
|
1695
1934
|
"hasDynamicHelp": false,
|
|
1696
1935
|
"multiple": false,
|
|
1936
|
+
"options": [
|
|
1937
|
+
"summary",
|
|
1938
|
+
"json"
|
|
1939
|
+
],
|
|
1697
1940
|
"type": "option"
|
|
1698
1941
|
}
|
|
1699
1942
|
},
|
|
1700
1943
|
"hasDynamicHelp": false,
|
|
1701
1944
|
"hiddenAliases": [],
|
|
1702
|
-
"id": "
|
|
1945
|
+
"id": "workspace:delete",
|
|
1703
1946
|
"pluginAlias": "@xano/cli",
|
|
1704
1947
|
"pluginName": "@xano/cli",
|
|
1705
1948
|
"pluginType": "core",
|
|
@@ -1709,20 +1952,25 @@
|
|
|
1709
1952
|
"relativePath": [
|
|
1710
1953
|
"dist",
|
|
1711
1954
|
"commands",
|
|
1712
|
-
"
|
|
1713
|
-
"
|
|
1955
|
+
"workspace",
|
|
1956
|
+
"delete",
|
|
1714
1957
|
"index.js"
|
|
1715
1958
|
]
|
|
1716
1959
|
},
|
|
1717
|
-
"
|
|
1960
|
+
"workspace:get": {
|
|
1718
1961
|
"aliases": [],
|
|
1719
|
-
"args": {
|
|
1720
|
-
|
|
1962
|
+
"args": {
|
|
1963
|
+
"workspace_id": {
|
|
1964
|
+
"description": "Workspace ID to get details for (uses profile workspace if not provided)",
|
|
1965
|
+
"name": "workspace_id",
|
|
1966
|
+
"required": false
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
"description": "Get details of a specific workspace from the Xano Metadata API",
|
|
1721
1970
|
"examples": [
|
|
1722
|
-
"$ xano
|
|
1723
|
-
"$ xano
|
|
1724
|
-
"$ xano
|
|
1725
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
1971
|
+
"$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
|
|
1972
|
+
"$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
|
|
1973
|
+
"$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
|
|
1726
1974
|
],
|
|
1727
1975
|
"flags": {
|
|
1728
1976
|
"profile": {
|
|
@@ -1757,38 +2005,11 @@
|
|
|
1757
2005
|
"json"
|
|
1758
2006
|
],
|
|
1759
2007
|
"type": "option"
|
|
1760
|
-
},
|
|
1761
|
-
"page": {
|
|
1762
|
-
"description": "Page number for pagination",
|
|
1763
|
-
"name": "page",
|
|
1764
|
-
"required": false,
|
|
1765
|
-
"default": 1,
|
|
1766
|
-
"hasDynamicHelp": false,
|
|
1767
|
-
"multiple": false,
|
|
1768
|
-
"type": "option"
|
|
1769
|
-
},
|
|
1770
|
-
"per_page": {
|
|
1771
|
-
"description": "Number of results per page",
|
|
1772
|
-
"name": "per_page",
|
|
1773
|
-
"required": false,
|
|
1774
|
-
"default": 50,
|
|
1775
|
-
"hasDynamicHelp": false,
|
|
1776
|
-
"multiple": false,
|
|
1777
|
-
"type": "option"
|
|
1778
|
-
},
|
|
1779
|
-
"workspace": {
|
|
1780
|
-
"char": "w",
|
|
1781
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
1782
|
-
"name": "workspace",
|
|
1783
|
-
"required": false,
|
|
1784
|
-
"hasDynamicHelp": false,
|
|
1785
|
-
"multiple": false,
|
|
1786
|
-
"type": "option"
|
|
1787
2008
|
}
|
|
1788
2009
|
},
|
|
1789
2010
|
"hasDynamicHelp": false,
|
|
1790
2011
|
"hiddenAliases": [],
|
|
1791
|
-
"id": "
|
|
2012
|
+
"id": "workspace:get",
|
|
1792
2013
|
"pluginAlias": "@xano/cli",
|
|
1793
2014
|
"pluginName": "@xano/cli",
|
|
1794
2015
|
"pluginType": "core",
|
|
@@ -1798,19 +2019,25 @@
|
|
|
1798
2019
|
"relativePath": [
|
|
1799
2020
|
"dist",
|
|
1800
2021
|
"commands",
|
|
1801
|
-
"
|
|
1802
|
-
"
|
|
2022
|
+
"workspace",
|
|
2023
|
+
"get",
|
|
1803
2024
|
"index.js"
|
|
1804
2025
|
]
|
|
1805
2026
|
},
|
|
1806
|
-
"workspace:
|
|
2027
|
+
"workspace:pull": {
|
|
1807
2028
|
"aliases": [],
|
|
1808
|
-
"args": {
|
|
1809
|
-
|
|
2029
|
+
"args": {
|
|
2030
|
+
"directory": {
|
|
2031
|
+
"description": "Output directory for pulled documents",
|
|
2032
|
+
"name": "directory",
|
|
2033
|
+
"required": true
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
1810
2037
|
"examples": [
|
|
1811
|
-
"$ xano workspace
|
|
1812
|
-
"$ xano workspace
|
|
1813
|
-
"$ xano workspace
|
|
2038
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
2039
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
2040
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
|
|
1814
2041
|
],
|
|
1815
2042
|
"flags": {
|
|
1816
2043
|
"profile": {
|
|
@@ -1832,42 +2059,33 @@
|
|
|
1832
2059
|
"allowNo": false,
|
|
1833
2060
|
"type": "boolean"
|
|
1834
2061
|
},
|
|
1835
|
-
"
|
|
1836
|
-
"
|
|
1837
|
-
"
|
|
1838
|
-
"name": "description",
|
|
2062
|
+
"env": {
|
|
2063
|
+
"description": "Include environment variables",
|
|
2064
|
+
"name": "env",
|
|
1839
2065
|
"required": false,
|
|
1840
|
-
"
|
|
1841
|
-
"
|
|
1842
|
-
"type": "option"
|
|
1843
|
-
},
|
|
1844
|
-
"name": {
|
|
1845
|
-
"char": "n",
|
|
1846
|
-
"description": "Name of the workspace",
|
|
1847
|
-
"name": "name",
|
|
1848
|
-
"required": true,
|
|
1849
|
-
"hasDynamicHelp": false,
|
|
1850
|
-
"multiple": false,
|
|
1851
|
-
"type": "option"
|
|
2066
|
+
"allowNo": false,
|
|
2067
|
+
"type": "boolean"
|
|
1852
2068
|
},
|
|
1853
|
-
"
|
|
1854
|
-
"
|
|
1855
|
-
"
|
|
1856
|
-
"
|
|
2069
|
+
"records": {
|
|
2070
|
+
"description": "Include records",
|
|
2071
|
+
"name": "records",
|
|
2072
|
+
"required": false,
|
|
2073
|
+
"allowNo": false,
|
|
2074
|
+
"type": "boolean"
|
|
2075
|
+
},
|
|
2076
|
+
"workspace": {
|
|
2077
|
+
"char": "w",
|
|
2078
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2079
|
+
"name": "workspace",
|
|
1857
2080
|
"required": false,
|
|
1858
|
-
"default": "summary",
|
|
1859
2081
|
"hasDynamicHelp": false,
|
|
1860
2082
|
"multiple": false,
|
|
1861
|
-
"options": [
|
|
1862
|
-
"summary",
|
|
1863
|
-
"json"
|
|
1864
|
-
],
|
|
1865
2083
|
"type": "option"
|
|
1866
2084
|
}
|
|
1867
2085
|
},
|
|
1868
2086
|
"hasDynamicHelp": false,
|
|
1869
2087
|
"hiddenAliases": [],
|
|
1870
|
-
"id": "workspace:
|
|
2088
|
+
"id": "workspace:pull",
|
|
1871
2089
|
"pluginAlias": "@xano/cli",
|
|
1872
2090
|
"pluginName": "@xano/cli",
|
|
1873
2091
|
"pluginType": "core",
|
|
@@ -1878,24 +2096,19 @@
|
|
|
1878
2096
|
"dist",
|
|
1879
2097
|
"commands",
|
|
1880
2098
|
"workspace",
|
|
1881
|
-
"
|
|
2099
|
+
"pull",
|
|
1882
2100
|
"index.js"
|
|
1883
2101
|
]
|
|
1884
2102
|
},
|
|
1885
|
-
"workspace:
|
|
2103
|
+
"workspace:list": {
|
|
1886
2104
|
"aliases": [],
|
|
1887
|
-
"args": {
|
|
1888
|
-
|
|
1889
|
-
"description": "Workspace ID to delete",
|
|
1890
|
-
"name": "workspace_id",
|
|
1891
|
-
"required": true
|
|
1892
|
-
}
|
|
1893
|
-
},
|
|
1894
|
-
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
2105
|
+
"args": {},
|
|
2106
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
1895
2107
|
"examples": [
|
|
1896
|
-
"$ xano workspace
|
|
1897
|
-
"$ xano workspace
|
|
1898
|
-
"$ xano workspace
|
|
2108
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
2109
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
2110
|
+
"$ 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",
|
|
2111
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
1899
2112
|
],
|
|
1900
2113
|
"flags": {
|
|
1901
2114
|
"profile": {
|
|
@@ -1917,14 +2130,6 @@
|
|
|
1917
2130
|
"allowNo": false,
|
|
1918
2131
|
"type": "boolean"
|
|
1919
2132
|
},
|
|
1920
|
-
"force": {
|
|
1921
|
-
"char": "f",
|
|
1922
|
-
"description": "Skip confirmation prompt",
|
|
1923
|
-
"name": "force",
|
|
1924
|
-
"required": false,
|
|
1925
|
-
"allowNo": false,
|
|
1926
|
-
"type": "boolean"
|
|
1927
|
-
},
|
|
1928
2133
|
"output": {
|
|
1929
2134
|
"char": "o",
|
|
1930
2135
|
"description": "Output format",
|
|
@@ -1942,7 +2147,7 @@
|
|
|
1942
2147
|
},
|
|
1943
2148
|
"hasDynamicHelp": false,
|
|
1944
2149
|
"hiddenAliases": [],
|
|
1945
|
-
"id": "workspace:
|
|
2150
|
+
"id": "workspace:list",
|
|
1946
2151
|
"pluginAlias": "@xano/cli",
|
|
1947
2152
|
"pluginName": "@xano/cli",
|
|
1948
2153
|
"pluginType": "core",
|
|
@@ -1953,7 +2158,7 @@
|
|
|
1953
2158
|
"dist",
|
|
1954
2159
|
"commands",
|
|
1955
2160
|
"workspace",
|
|
1956
|
-
"
|
|
2161
|
+
"list",
|
|
1957
2162
|
"index.js"
|
|
1958
2163
|
]
|
|
1959
2164
|
},
|
|
@@ -2057,20 +2262,20 @@
|
|
|
2057
2262
|
"index.js"
|
|
2058
2263
|
]
|
|
2059
2264
|
},
|
|
2060
|
-
"workspace:
|
|
2265
|
+
"workspace:push": {
|
|
2061
2266
|
"aliases": [],
|
|
2062
2267
|
"args": {
|
|
2063
|
-
"
|
|
2064
|
-
"description": "
|
|
2065
|
-
"name": "
|
|
2066
|
-
"required":
|
|
2268
|
+
"directory": {
|
|
2269
|
+
"description": "Directory containing documents to push (as produced by workspace pull)",
|
|
2270
|
+
"name": "directory",
|
|
2271
|
+
"required": true
|
|
2067
2272
|
}
|
|
2068
2273
|
},
|
|
2069
|
-
"description": "
|
|
2274
|
+
"description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
|
|
2070
2275
|
"examples": [
|
|
2071
|
-
"$ xano workspace
|
|
2072
|
-
"$ xano workspace
|
|
2073
|
-
"$ xano workspace
|
|
2276
|
+
"$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
|
|
2277
|
+
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
2278
|
+
"$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
|
|
2074
2279
|
],
|
|
2075
2280
|
"flags": {
|
|
2076
2281
|
"profile": {
|
|
@@ -2092,24 +2297,19 @@
|
|
|
2092
2297
|
"allowNo": false,
|
|
2093
2298
|
"type": "boolean"
|
|
2094
2299
|
},
|
|
2095
|
-
"
|
|
2096
|
-
"char": "
|
|
2097
|
-
"description": "
|
|
2098
|
-
"name": "
|
|
2300
|
+
"workspace": {
|
|
2301
|
+
"char": "w",
|
|
2302
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2303
|
+
"name": "workspace",
|
|
2099
2304
|
"required": false,
|
|
2100
|
-
"default": "summary",
|
|
2101
2305
|
"hasDynamicHelp": false,
|
|
2102
2306
|
"multiple": false,
|
|
2103
|
-
"options": [
|
|
2104
|
-
"summary",
|
|
2105
|
-
"json"
|
|
2106
|
-
],
|
|
2107
2307
|
"type": "option"
|
|
2108
2308
|
}
|
|
2109
2309
|
},
|
|
2110
2310
|
"hasDynamicHelp": false,
|
|
2111
2311
|
"hiddenAliases": [],
|
|
2112
|
-
"id": "workspace:
|
|
2312
|
+
"id": "workspace:push",
|
|
2113
2313
|
"pluginAlias": "@xano/cli",
|
|
2114
2314
|
"pluginName": "@xano/cli",
|
|
2115
2315
|
"pluginType": "core",
|
|
@@ -2120,19 +2320,24 @@
|
|
|
2120
2320
|
"dist",
|
|
2121
2321
|
"commands",
|
|
2122
2322
|
"workspace",
|
|
2123
|
-
"
|
|
2323
|
+
"push",
|
|
2124
2324
|
"index.js"
|
|
2125
2325
|
]
|
|
2126
2326
|
},
|
|
2127
|
-
"
|
|
2327
|
+
"static_host:build:create": {
|
|
2128
2328
|
"aliases": [],
|
|
2129
|
-
"args": {
|
|
2130
|
-
|
|
2329
|
+
"args": {
|
|
2330
|
+
"static_host": {
|
|
2331
|
+
"description": "Static Host name",
|
|
2332
|
+
"name": "static_host",
|
|
2333
|
+
"required": true
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
"description": "Create a new build for a static host",
|
|
2131
2337
|
"examples": [
|
|
2132
|
-
"$ xano
|
|
2133
|
-
"$ xano
|
|
2134
|
-
"$ xano
|
|
2135
|
-
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
2338
|
+
"$ 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",
|
|
2339
|
+
"$ 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",
|
|
2340
|
+
"$ 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"
|
|
2136
2341
|
],
|
|
2137
2342
|
"flags": {
|
|
2138
2343
|
"profile": {
|
|
@@ -2154,6 +2359,33 @@
|
|
|
2154
2359
|
"allowNo": false,
|
|
2155
2360
|
"type": "boolean"
|
|
2156
2361
|
},
|
|
2362
|
+
"description": {
|
|
2363
|
+
"char": "d",
|
|
2364
|
+
"description": "Build description",
|
|
2365
|
+
"name": "description",
|
|
2366
|
+
"required": false,
|
|
2367
|
+
"hasDynamicHelp": false,
|
|
2368
|
+
"multiple": false,
|
|
2369
|
+
"type": "option"
|
|
2370
|
+
},
|
|
2371
|
+
"file": {
|
|
2372
|
+
"char": "f",
|
|
2373
|
+
"description": "Path to zip file to upload",
|
|
2374
|
+
"name": "file",
|
|
2375
|
+
"required": true,
|
|
2376
|
+
"hasDynamicHelp": false,
|
|
2377
|
+
"multiple": false,
|
|
2378
|
+
"type": "option"
|
|
2379
|
+
},
|
|
2380
|
+
"name": {
|
|
2381
|
+
"char": "n",
|
|
2382
|
+
"description": "Build name",
|
|
2383
|
+
"name": "name",
|
|
2384
|
+
"required": true,
|
|
2385
|
+
"hasDynamicHelp": false,
|
|
2386
|
+
"multiple": false,
|
|
2387
|
+
"type": "option"
|
|
2388
|
+
},
|
|
2157
2389
|
"output": {
|
|
2158
2390
|
"char": "o",
|
|
2159
2391
|
"description": "Output format",
|
|
@@ -2167,11 +2399,20 @@
|
|
|
2167
2399
|
"json"
|
|
2168
2400
|
],
|
|
2169
2401
|
"type": "option"
|
|
2402
|
+
},
|
|
2403
|
+
"workspace": {
|
|
2404
|
+
"char": "w",
|
|
2405
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2406
|
+
"name": "workspace",
|
|
2407
|
+
"required": false,
|
|
2408
|
+
"hasDynamicHelp": false,
|
|
2409
|
+
"multiple": false,
|
|
2410
|
+
"type": "option"
|
|
2170
2411
|
}
|
|
2171
2412
|
},
|
|
2172
2413
|
"hasDynamicHelp": false,
|
|
2173
2414
|
"hiddenAliases": [],
|
|
2174
|
-
"id": "
|
|
2415
|
+
"id": "static_host:build:create",
|
|
2175
2416
|
"pluginAlias": "@xano/cli",
|
|
2176
2417
|
"pluginName": "@xano/cli",
|
|
2177
2418
|
"pluginType": "core",
|
|
@@ -2181,25 +2422,32 @@
|
|
|
2181
2422
|
"relativePath": [
|
|
2182
2423
|
"dist",
|
|
2183
2424
|
"commands",
|
|
2184
|
-
"
|
|
2185
|
-
"
|
|
2425
|
+
"static_host",
|
|
2426
|
+
"build",
|
|
2427
|
+
"create",
|
|
2186
2428
|
"index.js"
|
|
2187
2429
|
]
|
|
2188
2430
|
},
|
|
2189
|
-
"
|
|
2431
|
+
"static_host:build:get": {
|
|
2190
2432
|
"aliases": [],
|
|
2191
2433
|
"args": {
|
|
2192
|
-
"
|
|
2193
|
-
"description": "
|
|
2194
|
-
"name": "
|
|
2434
|
+
"build_id": {
|
|
2435
|
+
"description": "Build ID",
|
|
2436
|
+
"name": "build_id",
|
|
2437
|
+
"required": true
|
|
2438
|
+
},
|
|
2439
|
+
"static_host": {
|
|
2440
|
+
"description": "Static Host name",
|
|
2441
|
+
"name": "static_host",
|
|
2195
2442
|
"required": true
|
|
2196
2443
|
}
|
|
2197
2444
|
},
|
|
2198
|
-
"description": "
|
|
2445
|
+
"description": "Get details of a specific build for a static host",
|
|
2199
2446
|
"examples": [
|
|
2200
|
-
"$ xano
|
|
2201
|
-
"$ xano
|
|
2202
|
-
"$ xano
|
|
2447
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
2448
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
2449
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
2450
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
2203
2451
|
],
|
|
2204
2452
|
"flags": {
|
|
2205
2453
|
"profile": {
|
|
@@ -2221,19 +2469,19 @@
|
|
|
2221
2469
|
"allowNo": false,
|
|
2222
2470
|
"type": "boolean"
|
|
2223
2471
|
},
|
|
2224
|
-
"
|
|
2225
|
-
"
|
|
2226
|
-
"
|
|
2227
|
-
"
|
|
2228
|
-
"allowNo": false,
|
|
2229
|
-
"type": "boolean"
|
|
2230
|
-
},
|
|
2231
|
-
"records": {
|
|
2232
|
-
"description": "Include records",
|
|
2233
|
-
"name": "records",
|
|
2472
|
+
"output": {
|
|
2473
|
+
"char": "o",
|
|
2474
|
+
"description": "Output format",
|
|
2475
|
+
"name": "output",
|
|
2234
2476
|
"required": false,
|
|
2235
|
-
"
|
|
2236
|
-
"
|
|
2477
|
+
"default": "summary",
|
|
2478
|
+
"hasDynamicHelp": false,
|
|
2479
|
+
"multiple": false,
|
|
2480
|
+
"options": [
|
|
2481
|
+
"summary",
|
|
2482
|
+
"json"
|
|
2483
|
+
],
|
|
2484
|
+
"type": "option"
|
|
2237
2485
|
},
|
|
2238
2486
|
"workspace": {
|
|
2239
2487
|
"char": "w",
|
|
@@ -2247,7 +2495,7 @@
|
|
|
2247
2495
|
},
|
|
2248
2496
|
"hasDynamicHelp": false,
|
|
2249
2497
|
"hiddenAliases": [],
|
|
2250
|
-
"id": "
|
|
2498
|
+
"id": "static_host:build:get",
|
|
2251
2499
|
"pluginAlias": "@xano/cli",
|
|
2252
2500
|
"pluginName": "@xano/cli",
|
|
2253
2501
|
"pluginType": "core",
|
|
@@ -2257,25 +2505,27 @@
|
|
|
2257
2505
|
"relativePath": [
|
|
2258
2506
|
"dist",
|
|
2259
2507
|
"commands",
|
|
2260
|
-
"
|
|
2261
|
-
"
|
|
2508
|
+
"static_host",
|
|
2509
|
+
"build",
|
|
2510
|
+
"get",
|
|
2262
2511
|
"index.js"
|
|
2263
2512
|
]
|
|
2264
2513
|
},
|
|
2265
|
-
"
|
|
2514
|
+
"static_host:build:list": {
|
|
2266
2515
|
"aliases": [],
|
|
2267
2516
|
"args": {
|
|
2268
|
-
"
|
|
2269
|
-
"description": "
|
|
2270
|
-
"name": "
|
|
2517
|
+
"static_host": {
|
|
2518
|
+
"description": "Static Host name",
|
|
2519
|
+
"name": "static_host",
|
|
2271
2520
|
"required": true
|
|
2272
2521
|
}
|
|
2273
2522
|
},
|
|
2274
|
-
"description": "
|
|
2523
|
+
"description": "List all builds for a static host",
|
|
2275
2524
|
"examples": [
|
|
2276
|
-
"$ xano
|
|
2277
|
-
"$ xano
|
|
2278
|
-
"$ xano
|
|
2525
|
+
"$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
|
|
2526
|
+
"$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
|
|
2527
|
+
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
2528
|
+
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
2279
2529
|
],
|
|
2280
2530
|
"flags": {
|
|
2281
2531
|
"profile": {
|
|
@@ -2288,14 +2538,46 @@
|
|
|
2288
2538
|
"multiple": false,
|
|
2289
2539
|
"type": "option"
|
|
2290
2540
|
},
|
|
2291
|
-
"verbose": {
|
|
2292
|
-
"char": "v",
|
|
2293
|
-
"description": "Show detailed request/response information",
|
|
2294
|
-
"env": "XANO_VERBOSE",
|
|
2295
|
-
"name": "verbose",
|
|
2541
|
+
"verbose": {
|
|
2542
|
+
"char": "v",
|
|
2543
|
+
"description": "Show detailed request/response information",
|
|
2544
|
+
"env": "XANO_VERBOSE",
|
|
2545
|
+
"name": "verbose",
|
|
2546
|
+
"required": false,
|
|
2547
|
+
"allowNo": false,
|
|
2548
|
+
"type": "boolean"
|
|
2549
|
+
},
|
|
2550
|
+
"output": {
|
|
2551
|
+
"char": "o",
|
|
2552
|
+
"description": "Output format",
|
|
2553
|
+
"name": "output",
|
|
2554
|
+
"required": false,
|
|
2555
|
+
"default": "summary",
|
|
2556
|
+
"hasDynamicHelp": false,
|
|
2557
|
+
"multiple": false,
|
|
2558
|
+
"options": [
|
|
2559
|
+
"summary",
|
|
2560
|
+
"json"
|
|
2561
|
+
],
|
|
2562
|
+
"type": "option"
|
|
2563
|
+
},
|
|
2564
|
+
"page": {
|
|
2565
|
+
"description": "Page number for pagination",
|
|
2566
|
+
"name": "page",
|
|
2567
|
+
"required": false,
|
|
2568
|
+
"default": 1,
|
|
2569
|
+
"hasDynamicHelp": false,
|
|
2570
|
+
"multiple": false,
|
|
2571
|
+
"type": "option"
|
|
2572
|
+
},
|
|
2573
|
+
"per_page": {
|
|
2574
|
+
"description": "Number of results per page",
|
|
2575
|
+
"name": "per_page",
|
|
2296
2576
|
"required": false,
|
|
2297
|
-
"
|
|
2298
|
-
"
|
|
2577
|
+
"default": 50,
|
|
2578
|
+
"hasDynamicHelp": false,
|
|
2579
|
+
"multiple": false,
|
|
2580
|
+
"type": "option"
|
|
2299
2581
|
},
|
|
2300
2582
|
"workspace": {
|
|
2301
2583
|
"char": "w",
|
|
@@ -2309,7 +2591,7 @@
|
|
|
2309
2591
|
},
|
|
2310
2592
|
"hasDynamicHelp": false,
|
|
2311
2593
|
"hiddenAliases": [],
|
|
2312
|
-
"id": "
|
|
2594
|
+
"id": "static_host:build:list",
|
|
2313
2595
|
"pluginAlias": "@xano/cli",
|
|
2314
2596
|
"pluginName": "@xano/cli",
|
|
2315
2597
|
"pluginType": "core",
|
|
@@ -2319,8 +2601,9 @@
|
|
|
2319
2601
|
"relativePath": [
|
|
2320
2602
|
"dist",
|
|
2321
2603
|
"commands",
|
|
2322
|
-
"
|
|
2323
|
-
"
|
|
2604
|
+
"static_host",
|
|
2605
|
+
"build",
|
|
2606
|
+
"list",
|
|
2324
2607
|
"index.js"
|
|
2325
2608
|
]
|
|
2326
2609
|
},
|
|
@@ -2852,73 +3135,19 @@
|
|
|
2852
3135
|
"index.js"
|
|
2853
3136
|
]
|
|
2854
3137
|
},
|
|
2855
|
-
"run:
|
|
3138
|
+
"run:sink:get": {
|
|
2856
3139
|
"aliases": [],
|
|
2857
3140
|
"args": {
|
|
2858
|
-
"
|
|
2859
|
-
"description": "
|
|
2860
|
-
"name": "
|
|
3141
|
+
"sessionId": {
|
|
3142
|
+
"description": "Session ID",
|
|
3143
|
+
"name": "sessionId",
|
|
2861
3144
|
"required": true
|
|
2862
3145
|
}
|
|
2863
3146
|
},
|
|
2864
|
-
"description": "
|
|
2865
|
-
"examples": [
|
|
2866
|
-
"$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
|
|
2867
|
-
"$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
|
|
2868
|
-
],
|
|
2869
|
-
"flags": {
|
|
2870
|
-
"profile": {
|
|
2871
|
-
"char": "p",
|
|
2872
|
-
"description": "Profile to use for this command",
|
|
2873
|
-
"env": "XANO_PROFILE",
|
|
2874
|
-
"name": "profile",
|
|
2875
|
-
"required": false,
|
|
2876
|
-
"hasDynamicHelp": false,
|
|
2877
|
-
"multiple": false,
|
|
2878
|
-
"type": "option"
|
|
2879
|
-
},
|
|
2880
|
-
"verbose": {
|
|
2881
|
-
"char": "v",
|
|
2882
|
-
"description": "Show detailed request/response information",
|
|
2883
|
-
"env": "XANO_VERBOSE",
|
|
2884
|
-
"name": "verbose",
|
|
2885
|
-
"required": false,
|
|
2886
|
-
"allowNo": false,
|
|
2887
|
-
"type": "boolean"
|
|
2888
|
-
},
|
|
2889
|
-
"force": {
|
|
2890
|
-
"char": "f",
|
|
2891
|
-
"description": "Skip confirmation prompt",
|
|
2892
|
-
"name": "force",
|
|
2893
|
-
"required": false,
|
|
2894
|
-
"allowNo": false,
|
|
2895
|
-
"type": "boolean"
|
|
2896
|
-
}
|
|
2897
|
-
},
|
|
2898
|
-
"hasDynamicHelp": false,
|
|
2899
|
-
"hiddenAliases": [],
|
|
2900
|
-
"id": "run:secrets:delete",
|
|
2901
|
-
"pluginAlias": "@xano/cli",
|
|
2902
|
-
"pluginName": "@xano/cli",
|
|
2903
|
-
"pluginType": "core",
|
|
2904
|
-
"strict": true,
|
|
2905
|
-
"isESM": true,
|
|
2906
|
-
"relativePath": [
|
|
2907
|
-
"dist",
|
|
2908
|
-
"commands",
|
|
2909
|
-
"run",
|
|
2910
|
-
"secrets",
|
|
2911
|
-
"delete",
|
|
2912
|
-
"index.js"
|
|
2913
|
-
]
|
|
2914
|
-
},
|
|
2915
|
-
"run:secrets:list": {
|
|
2916
|
-
"aliases": [],
|
|
2917
|
-
"args": {},
|
|
2918
|
-
"description": "List all secret keys",
|
|
3147
|
+
"description": "Get sink data for a completed session",
|
|
2919
3148
|
"examples": [
|
|
2920
|
-
"$ xano run
|
|
2921
|
-
"$ xano run
|
|
3149
|
+
"$ 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",
|
|
3150
|
+
"$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
|
|
2922
3151
|
],
|
|
2923
3152
|
"flags": {
|
|
2924
3153
|
"profile": {
|
|
@@ -2945,11 +3174,11 @@
|
|
|
2945
3174
|
"description": "Output format",
|
|
2946
3175
|
"name": "output",
|
|
2947
3176
|
"required": false,
|
|
2948
|
-
"default": "
|
|
3177
|
+
"default": "summary",
|
|
2949
3178
|
"hasDynamicHelp": false,
|
|
2950
3179
|
"multiple": false,
|
|
2951
3180
|
"options": [
|
|
2952
|
-
"
|
|
3181
|
+
"summary",
|
|
2953
3182
|
"json"
|
|
2954
3183
|
],
|
|
2955
3184
|
"type": "option"
|
|
@@ -2957,7 +3186,7 @@
|
|
|
2957
3186
|
},
|
|
2958
3187
|
"hasDynamicHelp": false,
|
|
2959
3188
|
"hiddenAliases": [],
|
|
2960
|
-
"id": "run:
|
|
3189
|
+
"id": "run:sink:get",
|
|
2961
3190
|
"pluginAlias": "@xano/cli",
|
|
2962
3191
|
"pluginName": "@xano/cli",
|
|
2963
3192
|
"pluginType": "core",
|
|
@@ -2967,12 +3196,12 @@
|
|
|
2967
3196
|
"dist",
|
|
2968
3197
|
"commands",
|
|
2969
3198
|
"run",
|
|
2970
|
-
"
|
|
2971
|
-
"
|
|
3199
|
+
"sink",
|
|
3200
|
+
"get",
|
|
2972
3201
|
"index.js"
|
|
2973
3202
|
]
|
|
2974
3203
|
},
|
|
2975
|
-
"run:secrets:
|
|
3204
|
+
"run:secrets:delete": {
|
|
2976
3205
|
"aliases": [],
|
|
2977
3206
|
"args": {
|
|
2978
3207
|
"name": {
|
|
@@ -2981,10 +3210,10 @@
|
|
|
2981
3210
|
"required": true
|
|
2982
3211
|
}
|
|
2983
3212
|
},
|
|
2984
|
-
"description": "
|
|
3213
|
+
"description": "Delete a secret",
|
|
2985
3214
|
"examples": [
|
|
2986
|
-
"$ xano run secrets
|
|
2987
|
-
"$ xano run secrets
|
|
3215
|
+
"$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
|
|
3216
|
+
"$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
|
|
2988
3217
|
],
|
|
2989
3218
|
"flags": {
|
|
2990
3219
|
"profile": {
|
|
@@ -3006,24 +3235,18 @@
|
|
|
3006
3235
|
"allowNo": false,
|
|
3007
3236
|
"type": "boolean"
|
|
3008
3237
|
},
|
|
3009
|
-
"
|
|
3010
|
-
"char": "
|
|
3011
|
-
"description": "
|
|
3012
|
-
"name": "
|
|
3238
|
+
"force": {
|
|
3239
|
+
"char": "f",
|
|
3240
|
+
"description": "Skip confirmation prompt",
|
|
3241
|
+
"name": "force",
|
|
3013
3242
|
"required": false,
|
|
3014
|
-
"
|
|
3015
|
-
"
|
|
3016
|
-
"multiple": false,
|
|
3017
|
-
"options": [
|
|
3018
|
-
"value",
|
|
3019
|
-
"json"
|
|
3020
|
-
],
|
|
3021
|
-
"type": "option"
|
|
3243
|
+
"allowNo": false,
|
|
3244
|
+
"type": "boolean"
|
|
3022
3245
|
}
|
|
3023
3246
|
},
|
|
3024
3247
|
"hasDynamicHelp": false,
|
|
3025
3248
|
"hiddenAliases": [],
|
|
3026
|
-
"id": "run:secrets:
|
|
3249
|
+
"id": "run:secrets:delete",
|
|
3027
3250
|
"pluginAlias": "@xano/cli",
|
|
3028
3251
|
"pluginName": "@xano/cli",
|
|
3029
3252
|
"pluginType": "core",
|
|
@@ -3034,7 +3257,7 @@
|
|
|
3034
3257
|
"commands",
|
|
3035
3258
|
"run",
|
|
3036
3259
|
"secrets",
|
|
3037
|
-
"
|
|
3260
|
+
"delete",
|
|
3038
3261
|
"index.js"
|
|
3039
3262
|
]
|
|
3040
3263
|
},
|
|
@@ -3106,133 +3329,7 @@
|
|
|
3106
3329
|
},
|
|
3107
3330
|
"hasDynamicHelp": false,
|
|
3108
3331
|
"hiddenAliases": [],
|
|
3109
|
-
"id": "run:secrets:set",
|
|
3110
|
-
"pluginAlias": "@xano/cli",
|
|
3111
|
-
"pluginName": "@xano/cli",
|
|
3112
|
-
"pluginType": "core",
|
|
3113
|
-
"strict": true,
|
|
3114
|
-
"isESM": true,
|
|
3115
|
-
"relativePath": [
|
|
3116
|
-
"dist",
|
|
3117
|
-
"commands",
|
|
3118
|
-
"run",
|
|
3119
|
-
"secrets",
|
|
3120
|
-
"set",
|
|
3121
|
-
"index.js"
|
|
3122
|
-
]
|
|
3123
|
-
},
|
|
3124
|
-
"run:sessions:delete": {
|
|
3125
|
-
"aliases": [],
|
|
3126
|
-
"args": {
|
|
3127
|
-
"sessionId": {
|
|
3128
|
-
"description": "Session ID",
|
|
3129
|
-
"name": "sessionId",
|
|
3130
|
-
"required": true
|
|
3131
|
-
}
|
|
3132
|
-
},
|
|
3133
|
-
"description": "Delete a session",
|
|
3134
|
-
"examples": [
|
|
3135
|
-
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
3136
|
-
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
3137
|
-
],
|
|
3138
|
-
"flags": {
|
|
3139
|
-
"profile": {
|
|
3140
|
-
"char": "p",
|
|
3141
|
-
"description": "Profile to use for this command",
|
|
3142
|
-
"env": "XANO_PROFILE",
|
|
3143
|
-
"name": "profile",
|
|
3144
|
-
"required": false,
|
|
3145
|
-
"hasDynamicHelp": false,
|
|
3146
|
-
"multiple": false,
|
|
3147
|
-
"type": "option"
|
|
3148
|
-
},
|
|
3149
|
-
"verbose": {
|
|
3150
|
-
"char": "v",
|
|
3151
|
-
"description": "Show detailed request/response information",
|
|
3152
|
-
"env": "XANO_VERBOSE",
|
|
3153
|
-
"name": "verbose",
|
|
3154
|
-
"required": false,
|
|
3155
|
-
"allowNo": false,
|
|
3156
|
-
"type": "boolean"
|
|
3157
|
-
},
|
|
3158
|
-
"force": {
|
|
3159
|
-
"char": "f",
|
|
3160
|
-
"description": "Skip confirmation prompt",
|
|
3161
|
-
"name": "force",
|
|
3162
|
-
"required": false,
|
|
3163
|
-
"allowNo": false,
|
|
3164
|
-
"type": "boolean"
|
|
3165
|
-
}
|
|
3166
|
-
},
|
|
3167
|
-
"hasDynamicHelp": false,
|
|
3168
|
-
"hiddenAliases": [],
|
|
3169
|
-
"id": "run:sessions:delete",
|
|
3170
|
-
"pluginAlias": "@xano/cli",
|
|
3171
|
-
"pluginName": "@xano/cli",
|
|
3172
|
-
"pluginType": "core",
|
|
3173
|
-
"strict": true,
|
|
3174
|
-
"isESM": true,
|
|
3175
|
-
"relativePath": [
|
|
3176
|
-
"dist",
|
|
3177
|
-
"commands",
|
|
3178
|
-
"run",
|
|
3179
|
-
"sessions",
|
|
3180
|
-
"delete",
|
|
3181
|
-
"index.js"
|
|
3182
|
-
]
|
|
3183
|
-
},
|
|
3184
|
-
"run:sessions:get": {
|
|
3185
|
-
"aliases": [],
|
|
3186
|
-
"args": {
|
|
3187
|
-
"sessionId": {
|
|
3188
|
-
"description": "Session ID",
|
|
3189
|
-
"name": "sessionId",
|
|
3190
|
-
"required": true
|
|
3191
|
-
}
|
|
3192
|
-
},
|
|
3193
|
-
"description": "Get session details",
|
|
3194
|
-
"examples": [
|
|
3195
|
-
"$ 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",
|
|
3196
|
-
"$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
|
|
3197
|
-
],
|
|
3198
|
-
"flags": {
|
|
3199
|
-
"profile": {
|
|
3200
|
-
"char": "p",
|
|
3201
|
-
"description": "Profile to use for this command",
|
|
3202
|
-
"env": "XANO_PROFILE",
|
|
3203
|
-
"name": "profile",
|
|
3204
|
-
"required": false,
|
|
3205
|
-
"hasDynamicHelp": false,
|
|
3206
|
-
"multiple": false,
|
|
3207
|
-
"type": "option"
|
|
3208
|
-
},
|
|
3209
|
-
"verbose": {
|
|
3210
|
-
"char": "v",
|
|
3211
|
-
"description": "Show detailed request/response information",
|
|
3212
|
-
"env": "XANO_VERBOSE",
|
|
3213
|
-
"name": "verbose",
|
|
3214
|
-
"required": false,
|
|
3215
|
-
"allowNo": false,
|
|
3216
|
-
"type": "boolean"
|
|
3217
|
-
},
|
|
3218
|
-
"output": {
|
|
3219
|
-
"char": "o",
|
|
3220
|
-
"description": "Output format",
|
|
3221
|
-
"name": "output",
|
|
3222
|
-
"required": false,
|
|
3223
|
-
"default": "summary",
|
|
3224
|
-
"hasDynamicHelp": false,
|
|
3225
|
-
"multiple": false,
|
|
3226
|
-
"options": [
|
|
3227
|
-
"summary",
|
|
3228
|
-
"json"
|
|
3229
|
-
],
|
|
3230
|
-
"type": "option"
|
|
3231
|
-
}
|
|
3232
|
-
},
|
|
3233
|
-
"hasDynamicHelp": false,
|
|
3234
|
-
"hiddenAliases": [],
|
|
3235
|
-
"id": "run:sessions:get",
|
|
3332
|
+
"id": "run:secrets:set",
|
|
3236
3333
|
"pluginAlias": "@xano/cli",
|
|
3237
3334
|
"pluginName": "@xano/cli",
|
|
3238
3335
|
"pluginType": "core",
|
|
@@ -3242,18 +3339,24 @@
|
|
|
3242
3339
|
"dist",
|
|
3243
3340
|
"commands",
|
|
3244
3341
|
"run",
|
|
3245
|
-
"
|
|
3246
|
-
"
|
|
3342
|
+
"secrets",
|
|
3343
|
+
"set",
|
|
3247
3344
|
"index.js"
|
|
3248
3345
|
]
|
|
3249
3346
|
},
|
|
3250
|
-
"run:
|
|
3347
|
+
"run:secrets:get": {
|
|
3251
3348
|
"aliases": [],
|
|
3252
|
-
"args": {
|
|
3253
|
-
|
|
3349
|
+
"args": {
|
|
3350
|
+
"name": {
|
|
3351
|
+
"description": "Secret name",
|
|
3352
|
+
"name": "name",
|
|
3353
|
+
"required": true
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
3356
|
+
"description": "Get a secret value",
|
|
3254
3357
|
"examples": [
|
|
3255
|
-
"$ xano run
|
|
3256
|
-
"$ xano run
|
|
3358
|
+
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
3359
|
+
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
3257
3360
|
],
|
|
3258
3361
|
"flags": {
|
|
3259
3362
|
"profile": {
|
|
@@ -3280,11 +3383,11 @@
|
|
|
3280
3383
|
"description": "Output format",
|
|
3281
3384
|
"name": "output",
|
|
3282
3385
|
"required": false,
|
|
3283
|
-
"default": "
|
|
3386
|
+
"default": "value",
|
|
3284
3387
|
"hasDynamicHelp": false,
|
|
3285
3388
|
"multiple": false,
|
|
3286
3389
|
"options": [
|
|
3287
|
-
"
|
|
3390
|
+
"value",
|
|
3288
3391
|
"json"
|
|
3289
3392
|
],
|
|
3290
3393
|
"type": "option"
|
|
@@ -3292,7 +3395,7 @@
|
|
|
3292
3395
|
},
|
|
3293
3396
|
"hasDynamicHelp": false,
|
|
3294
3397
|
"hiddenAliases": [],
|
|
3295
|
-
"id": "run:
|
|
3398
|
+
"id": "run:secrets:get",
|
|
3296
3399
|
"pluginAlias": "@xano/cli",
|
|
3297
3400
|
"pluginName": "@xano/cli",
|
|
3298
3401
|
"pluginType": "core",
|
|
@@ -3302,24 +3405,18 @@
|
|
|
3302
3405
|
"dist",
|
|
3303
3406
|
"commands",
|
|
3304
3407
|
"run",
|
|
3305
|
-
"
|
|
3306
|
-
"
|
|
3408
|
+
"secrets",
|
|
3409
|
+
"get",
|
|
3307
3410
|
"index.js"
|
|
3308
3411
|
]
|
|
3309
3412
|
},
|
|
3310
|
-
"run:
|
|
3413
|
+
"run:secrets:list": {
|
|
3311
3414
|
"aliases": [],
|
|
3312
|
-
"args": {
|
|
3313
|
-
|
|
3314
|
-
"description": "Session ID",
|
|
3315
|
-
"name": "sessionId",
|
|
3316
|
-
"required": true
|
|
3317
|
-
}
|
|
3318
|
-
},
|
|
3319
|
-
"description": "Stop a session",
|
|
3415
|
+
"args": {},
|
|
3416
|
+
"description": "List all secret keys",
|
|
3320
3417
|
"examples": [
|
|
3321
|
-
"$ xano run
|
|
3322
|
-
"$ xano run
|
|
3418
|
+
"$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
|
|
3419
|
+
"$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
|
|
3323
3420
|
],
|
|
3324
3421
|
"flags": {
|
|
3325
3422
|
"profile": {
|
|
@@ -3346,11 +3443,11 @@
|
|
|
3346
3443
|
"description": "Output format",
|
|
3347
3444
|
"name": "output",
|
|
3348
3445
|
"required": false,
|
|
3349
|
-
"default": "
|
|
3446
|
+
"default": "table",
|
|
3350
3447
|
"hasDynamicHelp": false,
|
|
3351
3448
|
"multiple": false,
|
|
3352
3449
|
"options": [
|
|
3353
|
-
"
|
|
3450
|
+
"table",
|
|
3354
3451
|
"json"
|
|
3355
3452
|
],
|
|
3356
3453
|
"type": "option"
|
|
@@ -3358,7 +3455,7 @@
|
|
|
3358
3455
|
},
|
|
3359
3456
|
"hasDynamicHelp": false,
|
|
3360
3457
|
"hiddenAliases": [],
|
|
3361
|
-
"id": "run:
|
|
3458
|
+
"id": "run:secrets:list",
|
|
3362
3459
|
"pluginAlias": "@xano/cli",
|
|
3363
3460
|
"pluginName": "@xano/cli",
|
|
3364
3461
|
"pluginType": "core",
|
|
@@ -3368,12 +3465,12 @@
|
|
|
3368
3465
|
"dist",
|
|
3369
3466
|
"commands",
|
|
3370
3467
|
"run",
|
|
3371
|
-
"
|
|
3372
|
-
"
|
|
3468
|
+
"secrets",
|
|
3469
|
+
"list",
|
|
3373
3470
|
"index.js"
|
|
3374
3471
|
]
|
|
3375
3472
|
},
|
|
3376
|
-
"run:sessions:
|
|
3473
|
+
"run:sessions:delete": {
|
|
3377
3474
|
"aliases": [],
|
|
3378
3475
|
"args": {
|
|
3379
3476
|
"sessionId": {
|
|
@@ -3382,10 +3479,10 @@
|
|
|
3382
3479
|
"required": true
|
|
3383
3480
|
}
|
|
3384
3481
|
},
|
|
3385
|
-
"description": "
|
|
3482
|
+
"description": "Delete a session",
|
|
3386
3483
|
"examples": [
|
|
3387
|
-
"$ xano run sessions
|
|
3388
|
-
"$ xano run sessions
|
|
3484
|
+
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
3485
|
+
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
3389
3486
|
],
|
|
3390
3487
|
"flags": {
|
|
3391
3488
|
"profile": {
|
|
@@ -3407,24 +3504,18 @@
|
|
|
3407
3504
|
"allowNo": false,
|
|
3408
3505
|
"type": "boolean"
|
|
3409
3506
|
},
|
|
3410
|
-
"
|
|
3411
|
-
"char": "
|
|
3412
|
-
"description": "
|
|
3413
|
-
"name": "
|
|
3507
|
+
"force": {
|
|
3508
|
+
"char": "f",
|
|
3509
|
+
"description": "Skip confirmation prompt",
|
|
3510
|
+
"name": "force",
|
|
3414
3511
|
"required": false,
|
|
3415
|
-
"
|
|
3416
|
-
"
|
|
3417
|
-
"multiple": false,
|
|
3418
|
-
"options": [
|
|
3419
|
-
"summary",
|
|
3420
|
-
"json"
|
|
3421
|
-
],
|
|
3422
|
-
"type": "option"
|
|
3512
|
+
"allowNo": false,
|
|
3513
|
+
"type": "boolean"
|
|
3423
3514
|
}
|
|
3424
3515
|
},
|
|
3425
3516
|
"hasDynamicHelp": false,
|
|
3426
3517
|
"hiddenAliases": [],
|
|
3427
|
-
"id": "run:sessions:
|
|
3518
|
+
"id": "run:sessions:delete",
|
|
3428
3519
|
"pluginAlias": "@xano/cli",
|
|
3429
3520
|
"pluginName": "@xano/cli",
|
|
3430
3521
|
"pluginType": "core",
|
|
@@ -3435,11 +3526,11 @@
|
|
|
3435
3526
|
"commands",
|
|
3436
3527
|
"run",
|
|
3437
3528
|
"sessions",
|
|
3438
|
-
"
|
|
3529
|
+
"delete",
|
|
3439
3530
|
"index.js"
|
|
3440
3531
|
]
|
|
3441
3532
|
},
|
|
3442
|
-
"run:
|
|
3533
|
+
"run:sessions:start": {
|
|
3443
3534
|
"aliases": [],
|
|
3444
3535
|
"args": {
|
|
3445
3536
|
"sessionId": {
|
|
@@ -3448,10 +3539,10 @@
|
|
|
3448
3539
|
"required": true
|
|
3449
3540
|
}
|
|
3450
3541
|
},
|
|
3451
|
-
"description": "
|
|
3542
|
+
"description": "Start a session",
|
|
3452
3543
|
"examples": [
|
|
3453
|
-
"$ xano run
|
|
3454
|
-
"$ xano run
|
|
3544
|
+
"$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
|
|
3545
|
+
"$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
|
|
3455
3546
|
],
|
|
3456
3547
|
"flags": {
|
|
3457
3548
|
"profile": {
|
|
@@ -3490,7 +3581,7 @@
|
|
|
3490
3581
|
},
|
|
3491
3582
|
"hasDynamicHelp": false,
|
|
3492
3583
|
"hiddenAliases": [],
|
|
3493
|
-
"id": "run:
|
|
3584
|
+
"id": "run:sessions:start",
|
|
3494
3585
|
"pluginAlias": "@xano/cli",
|
|
3495
3586
|
"pluginName": "@xano/cli",
|
|
3496
3587
|
"pluginType": "core",
|
|
@@ -3500,25 +3591,18 @@
|
|
|
3500
3591
|
"dist",
|
|
3501
3592
|
"commands",
|
|
3502
3593
|
"run",
|
|
3503
|
-
"
|
|
3504
|
-
"
|
|
3594
|
+
"sessions",
|
|
3595
|
+
"start",
|
|
3505
3596
|
"index.js"
|
|
3506
3597
|
]
|
|
3507
3598
|
},
|
|
3508
|
-
"
|
|
3599
|
+
"run:sessions:list": {
|
|
3509
3600
|
"aliases": [],
|
|
3510
|
-
"args": {
|
|
3511
|
-
|
|
3512
|
-
"description": "Static Host name",
|
|
3513
|
-
"name": "static_host",
|
|
3514
|
-
"required": true
|
|
3515
|
-
}
|
|
3516
|
-
},
|
|
3517
|
-
"description": "Create a new build for a static host",
|
|
3601
|
+
"args": {},
|
|
3602
|
+
"description": "List all sessions for the project",
|
|
3518
3603
|
"examples": [
|
|
3519
|
-
"$ xano
|
|
3520
|
-
"$ xano
|
|
3521
|
-
"$ 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"
|
|
3604
|
+
"$ 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",
|
|
3605
|
+
"$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
|
|
3522
3606
|
],
|
|
3523
3607
|
"flags": {
|
|
3524
3608
|
"profile": {
|
|
@@ -3540,95 +3624,51 @@
|
|
|
3540
3624
|
"allowNo": false,
|
|
3541
3625
|
"type": "boolean"
|
|
3542
3626
|
},
|
|
3543
|
-
"description": {
|
|
3544
|
-
"char": "d",
|
|
3545
|
-
"description": "Build description",
|
|
3546
|
-
"name": "description",
|
|
3547
|
-
"required": false,
|
|
3548
|
-
"hasDynamicHelp": false,
|
|
3549
|
-
"multiple": false,
|
|
3550
|
-
"type": "option"
|
|
3551
|
-
},
|
|
3552
|
-
"file": {
|
|
3553
|
-
"char": "f",
|
|
3554
|
-
"description": "Path to zip file to upload",
|
|
3555
|
-
"name": "file",
|
|
3556
|
-
"required": true,
|
|
3557
|
-
"hasDynamicHelp": false,
|
|
3558
|
-
"multiple": false,
|
|
3559
|
-
"type": "option"
|
|
3560
|
-
},
|
|
3561
|
-
"name": {
|
|
3562
|
-
"char": "n",
|
|
3563
|
-
"description": "Build name",
|
|
3564
|
-
"name": "name",
|
|
3565
|
-
"required": true,
|
|
3566
|
-
"hasDynamicHelp": false,
|
|
3567
|
-
"multiple": false,
|
|
3568
|
-
"type": "option"
|
|
3569
|
-
},
|
|
3570
3627
|
"output": {
|
|
3571
3628
|
"char": "o",
|
|
3572
3629
|
"description": "Output format",
|
|
3573
3630
|
"name": "output",
|
|
3574
3631
|
"required": false,
|
|
3575
|
-
"default": "
|
|
3632
|
+
"default": "table",
|
|
3576
3633
|
"hasDynamicHelp": false,
|
|
3577
3634
|
"multiple": false,
|
|
3578
3635
|
"options": [
|
|
3579
|
-
"
|
|
3636
|
+
"table",
|
|
3580
3637
|
"json"
|
|
3581
3638
|
],
|
|
3582
3639
|
"type": "option"
|
|
3583
|
-
},
|
|
3584
|
-
"workspace": {
|
|
3585
|
-
"char": "w",
|
|
3586
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
3587
|
-
"name": "workspace",
|
|
3588
|
-
"required": false,
|
|
3589
|
-
"hasDynamicHelp": false,
|
|
3590
|
-
"multiple": false,
|
|
3591
|
-
"type": "option"
|
|
3592
3640
|
}
|
|
3593
3641
|
},
|
|
3594
3642
|
"hasDynamicHelp": false,
|
|
3595
3643
|
"hiddenAliases": [],
|
|
3596
|
-
"id": "
|
|
3644
|
+
"id": "run:sessions:list",
|
|
3597
3645
|
"pluginAlias": "@xano/cli",
|
|
3598
3646
|
"pluginName": "@xano/cli",
|
|
3599
3647
|
"pluginType": "core",
|
|
3600
3648
|
"strict": true,
|
|
3601
|
-
"enableJsonFlag": false,
|
|
3602
3649
|
"isESM": true,
|
|
3603
3650
|
"relativePath": [
|
|
3604
3651
|
"dist",
|
|
3605
3652
|
"commands",
|
|
3606
|
-
"
|
|
3607
|
-
"
|
|
3608
|
-
"
|
|
3653
|
+
"run",
|
|
3654
|
+
"sessions",
|
|
3655
|
+
"list",
|
|
3609
3656
|
"index.js"
|
|
3610
3657
|
]
|
|
3611
3658
|
},
|
|
3612
|
-
"
|
|
3659
|
+
"run:sessions:get": {
|
|
3613
3660
|
"aliases": [],
|
|
3614
3661
|
"args": {
|
|
3615
|
-
"
|
|
3616
|
-
"description": "
|
|
3617
|
-
"name": "
|
|
3618
|
-
"required": true
|
|
3619
|
-
},
|
|
3620
|
-
"static_host": {
|
|
3621
|
-
"description": "Static Host name",
|
|
3622
|
-
"name": "static_host",
|
|
3662
|
+
"sessionId": {
|
|
3663
|
+
"description": "Session ID",
|
|
3664
|
+
"name": "sessionId",
|
|
3623
3665
|
"required": true
|
|
3624
3666
|
}
|
|
3625
3667
|
},
|
|
3626
|
-
"description": "Get details
|
|
3668
|
+
"description": "Get session details",
|
|
3627
3669
|
"examples": [
|
|
3628
|
-
"$ xano
|
|
3629
|
-
"$ xano
|
|
3630
|
-
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
3631
|
-
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
3670
|
+
"$ 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",
|
|
3671
|
+
"$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
|
|
3632
3672
|
],
|
|
3633
3673
|
"flags": {
|
|
3634
3674
|
"profile": {
|
|
@@ -3663,50 +3703,38 @@
|
|
|
3663
3703
|
"json"
|
|
3664
3704
|
],
|
|
3665
3705
|
"type": "option"
|
|
3666
|
-
},
|
|
3667
|
-
"workspace": {
|
|
3668
|
-
"char": "w",
|
|
3669
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
3670
|
-
"name": "workspace",
|
|
3671
|
-
"required": false,
|
|
3672
|
-
"hasDynamicHelp": false,
|
|
3673
|
-
"multiple": false,
|
|
3674
|
-
"type": "option"
|
|
3675
3706
|
}
|
|
3676
3707
|
},
|
|
3677
3708
|
"hasDynamicHelp": false,
|
|
3678
3709
|
"hiddenAliases": [],
|
|
3679
|
-
"id": "
|
|
3710
|
+
"id": "run:sessions:get",
|
|
3680
3711
|
"pluginAlias": "@xano/cli",
|
|
3681
3712
|
"pluginName": "@xano/cli",
|
|
3682
3713
|
"pluginType": "core",
|
|
3683
3714
|
"strict": true,
|
|
3684
|
-
"enableJsonFlag": false,
|
|
3685
3715
|
"isESM": true,
|
|
3686
3716
|
"relativePath": [
|
|
3687
3717
|
"dist",
|
|
3688
3718
|
"commands",
|
|
3689
|
-
"
|
|
3690
|
-
"
|
|
3719
|
+
"run",
|
|
3720
|
+
"sessions",
|
|
3691
3721
|
"get",
|
|
3692
3722
|
"index.js"
|
|
3693
3723
|
]
|
|
3694
3724
|
},
|
|
3695
|
-
"
|
|
3725
|
+
"run:sessions:stop": {
|
|
3696
3726
|
"aliases": [],
|
|
3697
3727
|
"args": {
|
|
3698
|
-
"
|
|
3699
|
-
"description": "
|
|
3700
|
-
"name": "
|
|
3728
|
+
"sessionId": {
|
|
3729
|
+
"description": "Session ID",
|
|
3730
|
+
"name": "sessionId",
|
|
3701
3731
|
"required": true
|
|
3702
3732
|
}
|
|
3703
3733
|
},
|
|
3704
|
-
"description": "
|
|
3734
|
+
"description": "Stop a session",
|
|
3705
3735
|
"examples": [
|
|
3706
|
-
"$ xano
|
|
3707
|
-
"$ xano
|
|
3708
|
-
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
3709
|
-
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
3736
|
+
"$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
|
|
3737
|
+
"$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
|
|
3710
3738
|
],
|
|
3711
3739
|
"flags": {
|
|
3712
3740
|
"profile": {
|
|
@@ -3741,53 +3769,25 @@
|
|
|
3741
3769
|
"json"
|
|
3742
3770
|
],
|
|
3743
3771
|
"type": "option"
|
|
3744
|
-
},
|
|
3745
|
-
"page": {
|
|
3746
|
-
"description": "Page number for pagination",
|
|
3747
|
-
"name": "page",
|
|
3748
|
-
"required": false,
|
|
3749
|
-
"default": 1,
|
|
3750
|
-
"hasDynamicHelp": false,
|
|
3751
|
-
"multiple": false,
|
|
3752
|
-
"type": "option"
|
|
3753
|
-
},
|
|
3754
|
-
"per_page": {
|
|
3755
|
-
"description": "Number of results per page",
|
|
3756
|
-
"name": "per_page",
|
|
3757
|
-
"required": false,
|
|
3758
|
-
"default": 50,
|
|
3759
|
-
"hasDynamicHelp": false,
|
|
3760
|
-
"multiple": false,
|
|
3761
|
-
"type": "option"
|
|
3762
|
-
},
|
|
3763
|
-
"workspace": {
|
|
3764
|
-
"char": "w",
|
|
3765
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
3766
|
-
"name": "workspace",
|
|
3767
|
-
"required": false,
|
|
3768
|
-
"hasDynamicHelp": false,
|
|
3769
|
-
"multiple": false,
|
|
3770
|
-
"type": "option"
|
|
3771
3772
|
}
|
|
3772
3773
|
},
|
|
3773
3774
|
"hasDynamicHelp": false,
|
|
3774
3775
|
"hiddenAliases": [],
|
|
3775
|
-
"id": "
|
|
3776
|
+
"id": "run:sessions:stop",
|
|
3776
3777
|
"pluginAlias": "@xano/cli",
|
|
3777
3778
|
"pluginName": "@xano/cli",
|
|
3778
3779
|
"pluginType": "core",
|
|
3779
3780
|
"strict": true,
|
|
3780
|
-
"enableJsonFlag": false,
|
|
3781
3781
|
"isESM": true,
|
|
3782
3782
|
"relativePath": [
|
|
3783
3783
|
"dist",
|
|
3784
3784
|
"commands",
|
|
3785
|
-
"
|
|
3786
|
-
"
|
|
3787
|
-
"
|
|
3785
|
+
"run",
|
|
3786
|
+
"sessions",
|
|
3787
|
+
"stop",
|
|
3788
3788
|
"index.js"
|
|
3789
3789
|
]
|
|
3790
3790
|
}
|
|
3791
3791
|
},
|
|
3792
|
-
"version": "0.0.
|
|
3792
|
+
"version": "0.0.24"
|
|
3793
3793
|
}
|