@xano/cli 0.0.56 → 0.0.58

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.
Files changed (2) hide show
  1. package/oclif.manifest.json +1190 -1190
  2. package/package.json +1 -1
@@ -523,16 +523,20 @@
523
523
  "index.js"
524
524
  ]
525
525
  },
526
- "function:create": {
526
+ "branch:set_live": {
527
527
  "aliases": [],
528
- "args": {},
529
- "description": "Create a new function in a workspace",
528
+ "args": {
529
+ "branch_label": {
530
+ "description": "Branch label to set as live (use \"v1\" for default branch)",
531
+ "name": "branch_label",
532
+ "required": true
533
+ }
534
+ },
535
+ "description": "Set a branch as the live (active) branch for API requests",
530
536
  "examples": [
531
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
532
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
533
- "$ 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",
534
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
535
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
537
+ "$ 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",
538
+ "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
539
+ "$ 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"
536
540
  ],
537
541
  "flags": {
538
542
  "profile": {
@@ -554,29 +558,14 @@
554
558
  "allowNo": false,
555
559
  "type": "boolean"
556
560
  },
557
- "edit": {
558
- "char": "e",
559
- "dependsOn": [
560
- "file"
561
- ],
562
- "description": "Open file in editor before creating function (requires --file)",
563
- "name": "edit",
561
+ "force": {
562
+ "char": "f",
563
+ "description": "Skip confirmation prompt",
564
+ "name": "force",
564
565
  "required": false,
565
566
  "allowNo": false,
566
567
  "type": "boolean"
567
568
  },
568
- "file": {
569
- "char": "f",
570
- "description": "Path to file containing XanoScript code",
571
- "exclusive": [
572
- "stdin"
573
- ],
574
- "name": "file",
575
- "required": false,
576
- "hasDynamicHelp": false,
577
- "multiple": false,
578
- "type": "option"
579
- },
580
569
  "output": {
581
570
  "char": "o",
582
571
  "description": "Output format",
@@ -591,20 +580,9 @@
591
580
  ],
592
581
  "type": "option"
593
582
  },
594
- "stdin": {
595
- "char": "s",
596
- "description": "Read XanoScript code from stdin",
597
- "exclusive": [
598
- "file"
599
- ],
600
- "name": "stdin",
601
- "required": false,
602
- "allowNo": false,
603
- "type": "boolean"
604
- },
605
583
  "workspace": {
606
584
  "char": "w",
607
- "description": "Workspace ID (optional if set in profile)",
585
+ "description": "Workspace ID (uses profile workspace if not provided)",
608
586
  "name": "workspace",
609
587
  "required": false,
610
588
  "hasDynamicHelp": false,
@@ -614,7 +592,7 @@
614
592
  },
615
593
  "hasDynamicHelp": false,
616
594
  "hiddenAliases": [],
617
- "id": "function:create",
595
+ "id": "branch:set_live",
618
596
  "pluginAlias": "@xano/cli",
619
597
  "pluginName": "@xano/cli",
620
598
  "pluginType": "core",
@@ -624,25 +602,24 @@
624
602
  "relativePath": [
625
603
  "dist",
626
604
  "commands",
627
- "function",
628
- "create",
605
+ "branch",
606
+ "set_live",
629
607
  "index.js"
630
608
  ]
631
609
  },
632
- "branch:set_live": {
610
+ "platform:get": {
633
611
  "aliases": [],
634
612
  "args": {
635
- "branch_label": {
636
- "description": "Branch label to set as live (use \"v1\" for default branch)",
637
- "name": "branch_label",
613
+ "platform_id": {
614
+ "description": "Platform ID to retrieve",
615
+ "name": "platform_id",
638
616
  "required": true
639
617
  }
640
618
  },
641
- "description": "Set a branch as the live (active) branch for API requests",
619
+ "description": "Get details of a specific platform",
642
620
  "examples": [
643
- "$ 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",
644
- "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
645
- "$ 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"
621
+ "$ xano platform get 23629\nPlatform ID: 23629\n Created: 2025-11-28\n Helm: 0.1.356\n Images:\n backend 0.0.2985\n frontend 0.1.3427\n database 0.1.6\n node 0.1.192\n deno 0.0.212\n redis 0.1.34\n realtime 0.1.149\n standalone 0.0.2456\n playwright 0.0.992\n static 0.0.10\n static-build 0.0.4\n backend-encoded 0.0.1396\n",
622
+ "$ xano platform get 23629 -o json"
646
623
  ],
647
624
  "flags": {
648
625
  "profile": {
@@ -664,14 +641,6 @@
664
641
  "allowNo": false,
665
642
  "type": "boolean"
666
643
  },
667
- "force": {
668
- "char": "f",
669
- "description": "Skip confirmation prompt",
670
- "name": "force",
671
- "required": false,
672
- "allowNo": false,
673
- "type": "boolean"
674
- },
675
644
  "output": {
676
645
  "char": "o",
677
646
  "description": "Output format",
@@ -685,20 +654,11 @@
685
654
  "json"
686
655
  ],
687
656
  "type": "option"
688
- },
689
- "workspace": {
690
- "char": "w",
691
- "description": "Workspace ID (uses profile workspace if not provided)",
692
- "name": "workspace",
693
- "required": false,
694
- "hasDynamicHelp": false,
695
- "multiple": false,
696
- "type": "option"
697
657
  }
698
658
  },
699
659
  "hasDynamicHelp": false,
700
660
  "hiddenAliases": [],
701
- "id": "branch:set_live",
661
+ "id": "platform:get",
702
662
  "pluginAlias": "@xano/cli",
703
663
  "pluginName": "@xano/cli",
704
664
  "pluginType": "core",
@@ -708,28 +668,18 @@
708
668
  "relativePath": [
709
669
  "dist",
710
670
  "commands",
711
- "branch",
712
- "set_live",
671
+ "platform",
672
+ "get",
713
673
  "index.js"
714
674
  ]
715
675
  },
716
- "function:get": {
676
+ "platform:list": {
717
677
  "aliases": [],
718
- "args": {
719
- "function_id": {
720
- "description": "Function ID",
721
- "name": "function_id",
722
- "required": false
723
- }
724
- },
725
- "description": "Get a specific function from a workspace",
678
+ "args": {},
679
+ "description": "List all platforms",
726
680
  "examples": [
727
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
728
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
729
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
730
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
731
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
732
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
681
+ "$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
682
+ "$ xano platform list --output json"
733
683
  ],
734
684
  "flags": {
735
685
  "profile": {
@@ -751,20 +701,6 @@
751
701
  "allowNo": false,
752
702
  "type": "boolean"
753
703
  },
754
- "include_draft": {
755
- "description": "Include draft version",
756
- "name": "include_draft",
757
- "required": false,
758
- "allowNo": false,
759
- "type": "boolean"
760
- },
761
- "include_xanoscript": {
762
- "description": "Include XanoScript in response",
763
- "name": "include_xanoscript",
764
- "required": false,
765
- "allowNo": false,
766
- "type": "boolean"
767
- },
768
704
  "output": {
769
705
  "char": "o",
770
706
  "description": "Output format",
@@ -775,24 +711,14 @@
775
711
  "multiple": false,
776
712
  "options": [
777
713
  "summary",
778
- "json",
779
- "xs"
714
+ "json"
780
715
  ],
781
716
  "type": "option"
782
- },
783
- "workspace": {
784
- "char": "w",
785
- "description": "Workspace ID (optional if set in profile)",
786
- "name": "workspace",
787
- "required": false,
788
- "hasDynamicHelp": false,
789
- "multiple": false,
790
- "type": "option"
791
717
  }
792
718
  },
793
719
  "hasDynamicHelp": false,
794
720
  "hiddenAliases": [],
795
- "id": "function:get",
721
+ "id": "platform:list",
796
722
  "pluginAlias": "@xano/cli",
797
723
  "pluginName": "@xano/cli",
798
724
  "pluginType": "core",
@@ -802,24 +728,21 @@
802
728
  "relativePath": [
803
729
  "dist",
804
730
  "commands",
805
- "function",
806
- "get",
731
+ "platform",
732
+ "list",
807
733
  "index.js"
808
734
  ]
809
735
  },
810
- "platform:get": {
736
+ "function:create": {
811
737
  "aliases": [],
812
- "args": {
813
- "platform_id": {
814
- "description": "Platform ID to retrieve",
815
- "name": "platform_id",
816
- "required": true
817
- }
818
- },
819
- "description": "Get details of a specific platform",
738
+ "args": {},
739
+ "description": "Create a new function in a workspace",
820
740
  "examples": [
821
- "$ xano platform get 23629\nPlatform ID: 23629\n Created: 2025-11-28\n Helm: 0.1.356\n Images:\n backend 0.0.2985\n frontend 0.1.3427\n database 0.1.6\n node 0.1.192\n deno 0.0.212\n redis 0.1.34\n realtime 0.1.149\n standalone 0.0.2456\n playwright 0.0.992\n static 0.0.10\n static-build 0.0.4\n backend-encoded 0.0.1396\n",
822
- "$ xano platform get 23629 -o json"
741
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
742
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
743
+ "$ 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",
744
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
745
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
823
746
  ],
824
747
  "flags": {
825
748
  "profile": {
@@ -841,6 +764,29 @@
841
764
  "allowNo": false,
842
765
  "type": "boolean"
843
766
  },
767
+ "edit": {
768
+ "char": "e",
769
+ "dependsOn": [
770
+ "file"
771
+ ],
772
+ "description": "Open file in editor before creating function (requires --file)",
773
+ "name": "edit",
774
+ "required": false,
775
+ "allowNo": false,
776
+ "type": "boolean"
777
+ },
778
+ "file": {
779
+ "char": "f",
780
+ "description": "Path to file containing XanoScript code",
781
+ "exclusive": [
782
+ "stdin"
783
+ ],
784
+ "name": "file",
785
+ "required": false,
786
+ "hasDynamicHelp": false,
787
+ "multiple": false,
788
+ "type": "option"
789
+ },
844
790
  "output": {
845
791
  "char": "o",
846
792
  "description": "Output format",
@@ -854,11 +800,31 @@
854
800
  "json"
855
801
  ],
856
802
  "type": "option"
803
+ },
804
+ "stdin": {
805
+ "char": "s",
806
+ "description": "Read XanoScript code from stdin",
807
+ "exclusive": [
808
+ "file"
809
+ ],
810
+ "name": "stdin",
811
+ "required": false,
812
+ "allowNo": false,
813
+ "type": "boolean"
814
+ },
815
+ "workspace": {
816
+ "char": "w",
817
+ "description": "Workspace ID (optional if set in profile)",
818
+ "name": "workspace",
819
+ "required": false,
820
+ "hasDynamicHelp": false,
821
+ "multiple": false,
822
+ "type": "option"
857
823
  }
858
824
  },
859
825
  "hasDynamicHelp": false,
860
826
  "hiddenAliases": [],
861
- "id": "platform:get",
827
+ "id": "function:create",
862
828
  "pluginAlias": "@xano/cli",
863
829
  "pluginName": "@xano/cli",
864
830
  "pluginType": "core",
@@ -868,8 +834,8 @@
868
834
  "relativePath": [
869
835
  "dist",
870
836
  "commands",
871
- "platform",
872
- "get",
837
+ "function",
838
+ "create",
873
839
  "index.js"
874
840
  ]
875
841
  },
@@ -943,28 +909,122 @@
943
909
  "multiple": false,
944
910
  "options": [
945
911
  "summary",
946
- "json"
912
+ "json"
913
+ ],
914
+ "type": "option"
915
+ },
916
+ "publish": {
917
+ "description": "Publish the function after editing",
918
+ "name": "publish",
919
+ "required": false,
920
+ "allowNo": false,
921
+ "type": "boolean"
922
+ },
923
+ "stdin": {
924
+ "char": "s",
925
+ "description": "Read XanoScript code from stdin",
926
+ "exclusive": [
927
+ "file"
928
+ ],
929
+ "name": "stdin",
930
+ "required": false,
931
+ "allowNo": false,
932
+ "type": "boolean"
933
+ },
934
+ "workspace": {
935
+ "char": "w",
936
+ "description": "Workspace ID (optional if set in profile)",
937
+ "name": "workspace",
938
+ "required": false,
939
+ "hasDynamicHelp": false,
940
+ "multiple": false,
941
+ "type": "option"
942
+ }
943
+ },
944
+ "hasDynamicHelp": false,
945
+ "hiddenAliases": [],
946
+ "id": "function:edit",
947
+ "pluginAlias": "@xano/cli",
948
+ "pluginName": "@xano/cli",
949
+ "pluginType": "core",
950
+ "strict": true,
951
+ "enableJsonFlag": false,
952
+ "isESM": true,
953
+ "relativePath": [
954
+ "dist",
955
+ "commands",
956
+ "function",
957
+ "edit",
958
+ "index.js"
959
+ ]
960
+ },
961
+ "function:get": {
962
+ "aliases": [],
963
+ "args": {
964
+ "function_id": {
965
+ "description": "Function ID",
966
+ "name": "function_id",
967
+ "required": false
968
+ }
969
+ },
970
+ "description": "Get a specific function from a workspace",
971
+ "examples": [
972
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
973
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
974
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
975
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
976
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
977
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
978
+ ],
979
+ "flags": {
980
+ "profile": {
981
+ "char": "p",
982
+ "description": "Profile to use (uses default profile if not specified)",
983
+ "env": "XANO_PROFILE",
984
+ "name": "profile",
985
+ "required": false,
986
+ "hasDynamicHelp": false,
987
+ "multiple": false,
988
+ "type": "option"
989
+ },
990
+ "verbose": {
991
+ "char": "v",
992
+ "description": "Show detailed request/response information",
993
+ "env": "XANO_VERBOSE",
994
+ "name": "verbose",
995
+ "required": false,
996
+ "allowNo": false,
997
+ "type": "boolean"
998
+ },
999
+ "include_draft": {
1000
+ "description": "Include draft version",
1001
+ "name": "include_draft",
1002
+ "required": false,
1003
+ "allowNo": false,
1004
+ "type": "boolean"
1005
+ },
1006
+ "include_xanoscript": {
1007
+ "description": "Include XanoScript in response",
1008
+ "name": "include_xanoscript",
1009
+ "required": false,
1010
+ "allowNo": false,
1011
+ "type": "boolean"
1012
+ },
1013
+ "output": {
1014
+ "char": "o",
1015
+ "description": "Output format",
1016
+ "name": "output",
1017
+ "required": false,
1018
+ "default": "summary",
1019
+ "hasDynamicHelp": false,
1020
+ "multiple": false,
1021
+ "options": [
1022
+ "summary",
1023
+ "json",
1024
+ "xs"
947
1025
  ],
948
1026
  "type": "option"
949
1027
  },
950
- "publish": {
951
- "description": "Publish the function after editing",
952
- "name": "publish",
953
- "required": false,
954
- "allowNo": false,
955
- "type": "boolean"
956
- },
957
- "stdin": {
958
- "char": "s",
959
- "description": "Read XanoScript code from stdin",
960
- "exclusive": [
961
- "file"
962
- ],
963
- "name": "stdin",
964
- "required": false,
965
- "allowNo": false,
966
- "type": "boolean"
967
- },
968
1028
  "workspace": {
969
1029
  "char": "w",
970
1030
  "description": "Workspace ID (optional if set in profile)",
@@ -977,7 +1037,7 @@
977
1037
  },
978
1038
  "hasDynamicHelp": false,
979
1039
  "hiddenAliases": [],
980
- "id": "function:edit",
1040
+ "id": "function:get",
981
1041
  "pluginAlias": "@xano/cli",
982
1042
  "pluginName": "@xano/cli",
983
1043
  "pluginType": "core",
@@ -988,17 +1048,19 @@
988
1048
  "dist",
989
1049
  "commands",
990
1050
  "function",
991
- "edit",
1051
+ "get",
992
1052
  "index.js"
993
1053
  ]
994
1054
  },
995
- "platform:list": {
1055
+ "function:list": {
996
1056
  "aliases": [],
997
1057
  "args": {},
998
- "description": "List all platforms",
1058
+ "description": "List all functions in a workspace from the Xano Metadata API",
999
1059
  "examples": [
1000
- "$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
1001
- "$ xano platform list --output json"
1060
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
1061
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
1062
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
1063
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
1002
1064
  ],
1003
1065
  "flags": {
1004
1066
  "profile": {
@@ -1020,6 +1082,33 @@
1020
1082
  "allowNo": false,
1021
1083
  "type": "boolean"
1022
1084
  },
1085
+ "include_draft": {
1086
+ "description": "Include draft functions",
1087
+ "name": "include_draft",
1088
+ "required": false,
1089
+ "allowNo": false,
1090
+ "type": "boolean"
1091
+ },
1092
+ "include_xanoscript": {
1093
+ "description": "Include XanoScript in response",
1094
+ "name": "include_xanoscript",
1095
+ "required": false,
1096
+ "allowNo": false,
1097
+ "type": "boolean"
1098
+ },
1099
+ "order": {
1100
+ "description": "Sort order",
1101
+ "name": "order",
1102
+ "required": false,
1103
+ "default": "desc",
1104
+ "hasDynamicHelp": false,
1105
+ "multiple": false,
1106
+ "options": [
1107
+ "asc",
1108
+ "desc"
1109
+ ],
1110
+ "type": "option"
1111
+ },
1023
1112
  "output": {
1024
1113
  "char": "o",
1025
1114
  "description": "Output format",
@@ -1033,11 +1122,47 @@
1033
1122
  "json"
1034
1123
  ],
1035
1124
  "type": "option"
1125
+ },
1126
+ "page": {
1127
+ "description": "Page number for pagination",
1128
+ "name": "page",
1129
+ "required": false,
1130
+ "default": 1,
1131
+ "hasDynamicHelp": false,
1132
+ "multiple": false,
1133
+ "type": "option"
1134
+ },
1135
+ "per_page": {
1136
+ "description": "Number of results per page",
1137
+ "name": "per_page",
1138
+ "required": false,
1139
+ "default": 50,
1140
+ "hasDynamicHelp": false,
1141
+ "multiple": false,
1142
+ "type": "option"
1143
+ },
1144
+ "sort": {
1145
+ "description": "Sort field",
1146
+ "name": "sort",
1147
+ "required": false,
1148
+ "default": "created_at",
1149
+ "hasDynamicHelp": false,
1150
+ "multiple": false,
1151
+ "type": "option"
1152
+ },
1153
+ "workspace": {
1154
+ "char": "w",
1155
+ "description": "Workspace ID (optional if set in profile)",
1156
+ "name": "workspace",
1157
+ "required": false,
1158
+ "hasDynamicHelp": false,
1159
+ "multiple": false,
1160
+ "type": "option"
1036
1161
  }
1037
1162
  },
1038
1163
  "hasDynamicHelp": false,
1039
1164
  "hiddenAliases": [],
1040
- "id": "platform:list",
1165
+ "id": "function:list",
1041
1166
  "pluginAlias": "@xano/cli",
1042
1167
  "pluginName": "@xano/cli",
1043
1168
  "pluginType": "core",
@@ -1047,7 +1172,7 @@
1047
1172
  "relativePath": [
1048
1173
  "dist",
1049
1174
  "commands",
1050
- "platform",
1175
+ "function",
1051
1176
  "list",
1052
1177
  "index.js"
1053
1178
  ]
@@ -1295,28 +1420,17 @@
1295
1420
  "index.js"
1296
1421
  ]
1297
1422
  },
1298
- "profile:list": {
1423
+ "profile:get": {
1299
1424
  "aliases": [],
1300
1425
  "args": {},
1301
- "description": "List all available profile configurations",
1426
+ "description": "Get the current default profile name",
1302
1427
  "examples": [
1303
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1304
- "$ 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",
1305
- "$ 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"
1428
+ "$ xano profile get\nproduction\n"
1306
1429
  ],
1307
- "flags": {
1308
- "details": {
1309
- "char": "d",
1310
- "description": "Show detailed information for each profile",
1311
- "name": "details",
1312
- "required": false,
1313
- "allowNo": false,
1314
- "type": "boolean"
1315
- }
1316
- },
1430
+ "flags": {},
1317
1431
  "hasDynamicHelp": false,
1318
1432
  "hiddenAliases": [],
1319
- "id": "profile:list",
1433
+ "id": "profile:get",
1320
1434
  "pluginAlias": "@xano/cli",
1321
1435
  "pluginName": "@xano/cli",
1322
1436
  "pluginType": "core",
@@ -1327,57 +1441,32 @@
1327
1441
  "dist",
1328
1442
  "commands",
1329
1443
  "profile",
1330
- "list",
1444
+ "get",
1331
1445
  "index.js"
1332
1446
  ]
1333
1447
  },
1334
- "profile:me": {
1448
+ "profile:list": {
1335
1449
  "aliases": [],
1336
1450
  "args": {},
1337
- "description": "Get information about the currently authenticated user",
1451
+ "description": "List all available profile configurations",
1338
1452
  "examples": [
1339
- "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1340
- "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1341
- "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
1453
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1454
+ "$ 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",
1455
+ "$ 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"
1342
1456
  ],
1343
1457
  "flags": {
1344
- "profile": {
1345
- "char": "p",
1346
- "description": "Profile to use (uses default profile if not specified)",
1347
- "env": "XANO_PROFILE",
1348
- "name": "profile",
1349
- "required": false,
1350
- "hasDynamicHelp": false,
1351
- "multiple": false,
1352
- "type": "option"
1353
- },
1354
- "verbose": {
1355
- "char": "v",
1356
- "description": "Show detailed request/response information",
1357
- "env": "XANO_VERBOSE",
1358
- "name": "verbose",
1458
+ "details": {
1459
+ "char": "d",
1460
+ "description": "Show detailed information for each profile",
1461
+ "name": "details",
1359
1462
  "required": false,
1360
1463
  "allowNo": false,
1361
1464
  "type": "boolean"
1362
- },
1363
- "output": {
1364
- "char": "o",
1365
- "description": "Output format",
1366
- "name": "output",
1367
- "required": false,
1368
- "default": "summary",
1369
- "hasDynamicHelp": false,
1370
- "multiple": false,
1371
- "options": [
1372
- "summary",
1373
- "json"
1374
- ],
1375
- "type": "option"
1376
1465
  }
1377
1466
  },
1378
1467
  "hasDynamicHelp": false,
1379
1468
  "hiddenAliases": [],
1380
- "id": "profile:me",
1469
+ "id": "profile:list",
1381
1470
  "pluginAlias": "@xano/cli",
1382
1471
  "pluginName": "@xano/cli",
1383
1472
  "pluginType": "core",
@@ -1388,19 +1477,18 @@
1388
1477
  "dist",
1389
1478
  "commands",
1390
1479
  "profile",
1391
- "me",
1480
+ "list",
1392
1481
  "index.js"
1393
1482
  ]
1394
1483
  },
1395
- "function:list": {
1484
+ "profile:me": {
1396
1485
  "aliases": [],
1397
1486
  "args": {},
1398
- "description": "List all functions in a workspace from the Xano Metadata API",
1487
+ "description": "Get information about the currently authenticated user",
1399
1488
  "examples": [
1400
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
1401
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
1402
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
1403
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
1489
+ "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1490
+ "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1491
+ "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
1404
1492
  ],
1405
1493
  "flags": {
1406
1494
  "profile": {
@@ -1422,87 +1510,24 @@
1422
1510
  "allowNo": false,
1423
1511
  "type": "boolean"
1424
1512
  },
1425
- "include_draft": {
1426
- "description": "Include draft functions",
1427
- "name": "include_draft",
1428
- "required": false,
1429
- "allowNo": false,
1430
- "type": "boolean"
1431
- },
1432
- "include_xanoscript": {
1433
- "description": "Include XanoScript in response",
1434
- "name": "include_xanoscript",
1435
- "required": false,
1436
- "allowNo": false,
1437
- "type": "boolean"
1438
- },
1439
- "order": {
1440
- "description": "Sort order",
1441
- "name": "order",
1442
- "required": false,
1443
- "default": "desc",
1444
- "hasDynamicHelp": false,
1445
- "multiple": false,
1446
- "options": [
1447
- "asc",
1448
- "desc"
1449
- ],
1450
- "type": "option"
1451
- },
1452
- "output": {
1453
- "char": "o",
1454
- "description": "Output format",
1455
- "name": "output",
1456
- "required": false,
1457
- "default": "summary",
1458
- "hasDynamicHelp": false,
1459
- "multiple": false,
1460
- "options": [
1461
- "summary",
1462
- "json"
1463
- ],
1464
- "type": "option"
1465
- },
1466
- "page": {
1467
- "description": "Page number for pagination",
1468
- "name": "page",
1469
- "required": false,
1470
- "default": 1,
1471
- "hasDynamicHelp": false,
1472
- "multiple": false,
1473
- "type": "option"
1474
- },
1475
- "per_page": {
1476
- "description": "Number of results per page",
1477
- "name": "per_page",
1478
- "required": false,
1479
- "default": 50,
1480
- "hasDynamicHelp": false,
1481
- "multiple": false,
1482
- "type": "option"
1483
- },
1484
- "sort": {
1485
- "description": "Sort field",
1486
- "name": "sort",
1487
- "required": false,
1488
- "default": "created_at",
1489
- "hasDynamicHelp": false,
1490
- "multiple": false,
1491
- "type": "option"
1492
- },
1493
- "workspace": {
1494
- "char": "w",
1495
- "description": "Workspace ID (optional if set in profile)",
1496
- "name": "workspace",
1513
+ "output": {
1514
+ "char": "o",
1515
+ "description": "Output format",
1516
+ "name": "output",
1497
1517
  "required": false,
1518
+ "default": "summary",
1498
1519
  "hasDynamicHelp": false,
1499
1520
  "multiple": false,
1521
+ "options": [
1522
+ "summary",
1523
+ "json"
1524
+ ],
1500
1525
  "type": "option"
1501
1526
  }
1502
1527
  },
1503
1528
  "hasDynamicHelp": false,
1504
1529
  "hiddenAliases": [],
1505
- "id": "function:list",
1530
+ "id": "profile:me",
1506
1531
  "pluginAlias": "@xano/cli",
1507
1532
  "pluginName": "@xano/cli",
1508
1533
  "pluginType": "core",
@@ -1512,22 +1537,28 @@
1512
1537
  "relativePath": [
1513
1538
  "dist",
1514
1539
  "commands",
1515
- "function",
1516
- "list",
1540
+ "profile",
1541
+ "me",
1517
1542
  "index.js"
1518
1543
  ]
1519
1544
  },
1520
- "profile:get": {
1545
+ "profile:set": {
1521
1546
  "aliases": [],
1522
- "args": {},
1523
- "description": "Get the current default profile name",
1547
+ "args": {
1548
+ "name": {
1549
+ "description": "Profile name to set as default",
1550
+ "name": "name",
1551
+ "required": true
1552
+ }
1553
+ },
1554
+ "description": "Set the default profile",
1524
1555
  "examples": [
1525
- "$ xano profile get\nproduction\n"
1556
+ "$ xano profile set production\nDefault profile set to 'production'\n"
1526
1557
  ],
1527
1558
  "flags": {},
1528
1559
  "hasDynamicHelp": false,
1529
1560
  "hiddenAliases": [],
1530
- "id": "profile:get",
1561
+ "id": "profile:set",
1531
1562
  "pluginAlias": "@xano/cli",
1532
1563
  "pluginName": "@xano/cli",
1533
1564
  "pluginType": "core",
@@ -1538,7 +1569,7 @@
1538
1569
  "dist",
1539
1570
  "commands",
1540
1571
  "profile",
1541
- "get",
1572
+ "set",
1542
1573
  "index.js"
1543
1574
  ]
1544
1575
  },
@@ -1568,37 +1599,6 @@
1568
1599
  "index.js"
1569
1600
  ]
1570
1601
  },
1571
- "profile:set": {
1572
- "aliases": [],
1573
- "args": {
1574
- "name": {
1575
- "description": "Profile name to set as default",
1576
- "name": "name",
1577
- "required": true
1578
- }
1579
- },
1580
- "description": "Set the default profile",
1581
- "examples": [
1582
- "$ xano profile set production\nDefault profile set to 'production'\n"
1583
- ],
1584
- "flags": {},
1585
- "hasDynamicHelp": false,
1586
- "hiddenAliases": [],
1587
- "id": "profile:set",
1588
- "pluginAlias": "@xano/cli",
1589
- "pluginName": "@xano/cli",
1590
- "pluginType": "core",
1591
- "strict": true,
1592
- "enableJsonFlag": false,
1593
- "isESM": true,
1594
- "relativePath": [
1595
- "dist",
1596
- "commands",
1597
- "profile",
1598
- "set",
1599
- "index.js"
1600
- ]
1601
- },
1602
1602
  "profile:wizard": {
1603
1603
  "aliases": [],
1604
1604
  "args": {},
@@ -2264,22 +2264,20 @@
2264
2264
  "index.js"
2265
2265
  ]
2266
2266
  },
2267
- "release:push": {
2267
+ "release:pull": {
2268
2268
  "aliases": [],
2269
2269
  "args": {
2270
2270
  "directory": {
2271
- "description": "Directory containing .xs documents to create the release from",
2271
+ "description": "Output directory for pulled documents",
2272
2272
  "name": "directory",
2273
2273
  "required": true
2274
2274
  }
2275
2275
  },
2276
- "description": "Create a new release from local XanoScript files via the multidoc endpoint",
2276
+ "description": "Pull a release multidoc from the Xano Metadata API and split into individual files",
2277
2277
  "examples": [
2278
- "$ xano release push ./my-release -n \"v1.0\"\nCreated release: v1.0 - ID: 10\n",
2279
- "$ xano release push ./output -n \"v2.0\" -w 40 -d \"Major update\"\nCreated release: v2.0 - ID: 15\n",
2280
- "$ xano release push ./backup -n \"v1.1-hotfix\" --hotfix --profile production\nCreated release: v1.1-hotfix - ID: 20\n",
2281
- "$ xano release push ./my-release -n \"v1.0\" --no-records --no-env\nCreate release from schema only, skip records and environment variables\n",
2282
- "$ xano release push ./my-release -n \"v1.0\" -o json\nOutput release details as JSON\n"
2278
+ "$ xano release pull ./my-release -r v1.0\nPulled 42 documents from release 'v1.0' to ./my-release\n",
2279
+ "$ xano release pull ./output -r v1.0 -w 40\nPulled 15 documents from release 'v1.0' to ./output\n",
2280
+ "$ xano release pull ./backup -r v1.0 --profile production --env --records\nPulled 58 documents from release 'v1.0' to ./backup\n"
2283
2281
  ],
2284
2282
  "flags": {
2285
2283
  "profile": {
@@ -2301,60 +2299,29 @@
2301
2299
  "allowNo": false,
2302
2300
  "type": "boolean"
2303
2301
  },
2304
- "description": {
2305
- "char": "d",
2306
- "description": "Release description",
2307
- "name": "description",
2308
- "required": false,
2309
- "default": "",
2310
- "hasDynamicHelp": false,
2311
- "multiple": false,
2312
- "type": "option"
2313
- },
2314
2302
  "env": {
2315
- "description": "Include environment variables (default: true, use --no-env to exclude)",
2303
+ "description": "Include environment variables",
2316
2304
  "name": "env",
2317
2305
  "required": false,
2318
- "allowNo": true,
2306
+ "allowNo": false,
2319
2307
  "type": "boolean"
2320
2308
  },
2321
- "hotfix": {
2322
- "description": "Mark as a hotfix release",
2323
- "name": "hotfix",
2309
+ "records": {
2310
+ "description": "Include records",
2311
+ "name": "records",
2324
2312
  "required": false,
2325
2313
  "allowNo": false,
2326
2314
  "type": "boolean"
2327
2315
  },
2328
- "name": {
2329
- "char": "n",
2330
- "description": "Name for the release",
2331
- "name": "name",
2316
+ "release": {
2317
+ "char": "r",
2318
+ "description": "Release name to pull from",
2319
+ "name": "release",
2332
2320
  "required": true,
2333
2321
  "hasDynamicHelp": false,
2334
2322
  "multiple": false,
2335
2323
  "type": "option"
2336
2324
  },
2337
- "output": {
2338
- "char": "o",
2339
- "description": "Output format",
2340
- "name": "output",
2341
- "required": false,
2342
- "default": "summary",
2343
- "hasDynamicHelp": false,
2344
- "multiple": false,
2345
- "options": [
2346
- "summary",
2347
- "json"
2348
- ],
2349
- "type": "option"
2350
- },
2351
- "records": {
2352
- "description": "Include records (default: true, use --no-records to exclude)",
2353
- "name": "records",
2354
- "required": false,
2355
- "allowNo": true,
2356
- "type": "boolean"
2357
- },
2358
2325
  "workspace": {
2359
2326
  "char": "w",
2360
2327
  "description": "Workspace ID (optional if set in profile)",
@@ -2367,7 +2334,7 @@
2367
2334
  },
2368
2335
  "hasDynamicHelp": false,
2369
2336
  "hiddenAliases": [],
2370
- "id": "release:push",
2337
+ "id": "release:pull",
2371
2338
  "pluginAlias": "@xano/cli",
2372
2339
  "pluginName": "@xano/cli",
2373
2340
  "pluginType": "core",
@@ -2378,24 +2345,26 @@
2378
2345
  "dist",
2379
2346
  "commands",
2380
2347
  "release",
2381
- "push",
2348
+ "pull",
2382
2349
  "index.js"
2383
2350
  ]
2384
2351
  },
2385
- "release:pull": {
2352
+ "release:push": {
2386
2353
  "aliases": [],
2387
2354
  "args": {
2388
2355
  "directory": {
2389
- "description": "Output directory for pulled documents",
2356
+ "description": "Directory containing .xs documents to create the release from",
2390
2357
  "name": "directory",
2391
2358
  "required": true
2392
2359
  }
2393
2360
  },
2394
- "description": "Pull a release multidoc from the Xano Metadata API and split into individual files",
2361
+ "description": "Create a new release from local XanoScript files via the multidoc endpoint",
2395
2362
  "examples": [
2396
- "$ xano release pull ./my-release -r v1.0\nPulled 42 documents from release 'v1.0' to ./my-release\n",
2397
- "$ xano release pull ./output -r v1.0 -w 40\nPulled 15 documents from release 'v1.0' to ./output\n",
2398
- "$ xano release pull ./backup -r v1.0 --profile production --env --records\nPulled 58 documents from release 'v1.0' to ./backup\n"
2363
+ "$ xano release push ./my-release -n \"v1.0\"\nCreated release: v1.0 - ID: 10\n",
2364
+ "$ xano release push ./output -n \"v2.0\" -w 40 -d \"Major update\"\nCreated release: v2.0 - ID: 15\n",
2365
+ "$ xano release push ./backup -n \"v1.1-hotfix\" --hotfix --profile production\nCreated release: v1.1-hotfix - ID: 20\n",
2366
+ "$ xano release push ./my-release -n \"v1.0\" --no-records --no-env\nCreate release from schema only, skip records and environment variables\n",
2367
+ "$ xano release push ./my-release -n \"v1.0\" -o json\nOutput release details as JSON\n"
2399
2368
  ],
2400
2369
  "flags": {
2401
2370
  "profile": {
@@ -2417,86 +2386,39 @@
2417
2386
  "allowNo": false,
2418
2387
  "type": "boolean"
2419
2388
  },
2389
+ "description": {
2390
+ "char": "d",
2391
+ "description": "Release description",
2392
+ "name": "description",
2393
+ "required": false,
2394
+ "default": "",
2395
+ "hasDynamicHelp": false,
2396
+ "multiple": false,
2397
+ "type": "option"
2398
+ },
2420
2399
  "env": {
2421
- "description": "Include environment variables",
2400
+ "description": "Include environment variables (default: true, use --no-env to exclude)",
2422
2401
  "name": "env",
2423
2402
  "required": false,
2424
- "allowNo": false,
2403
+ "allowNo": true,
2425
2404
  "type": "boolean"
2426
2405
  },
2427
- "records": {
2428
- "description": "Include records",
2429
- "name": "records",
2406
+ "hotfix": {
2407
+ "description": "Mark as a hotfix release",
2408
+ "name": "hotfix",
2430
2409
  "required": false,
2431
2410
  "allowNo": false,
2432
2411
  "type": "boolean"
2433
2412
  },
2434
- "release": {
2435
- "char": "r",
2436
- "description": "Release name to pull from",
2437
- "name": "release",
2413
+ "name": {
2414
+ "char": "n",
2415
+ "description": "Name for the release",
2416
+ "name": "name",
2438
2417
  "required": true,
2439
2418
  "hasDynamicHelp": false,
2440
2419
  "multiple": false,
2441
2420
  "type": "option"
2442
2421
  },
2443
- "workspace": {
2444
- "char": "w",
2445
- "description": "Workspace ID (optional if set in profile)",
2446
- "name": "workspace",
2447
- "required": false,
2448
- "hasDynamicHelp": false,
2449
- "multiple": false,
2450
- "type": "option"
2451
- }
2452
- },
2453
- "hasDynamicHelp": false,
2454
- "hiddenAliases": [],
2455
- "id": "release:pull",
2456
- "pluginAlias": "@xano/cli",
2457
- "pluginName": "@xano/cli",
2458
- "pluginType": "core",
2459
- "strict": true,
2460
- "enableJsonFlag": false,
2461
- "isESM": true,
2462
- "relativePath": [
2463
- "dist",
2464
- "commands",
2465
- "release",
2466
- "pull",
2467
- "index.js"
2468
- ]
2469
- },
2470
- "static_host:list": {
2471
- "aliases": [],
2472
- "args": {},
2473
- "description": "List all static hosts in a workspace from the Xano Metadata API",
2474
- "examples": [
2475
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
2476
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
2477
- "$ 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",
2478
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
2479
- ],
2480
- "flags": {
2481
- "profile": {
2482
- "char": "p",
2483
- "description": "Profile to use (uses default profile if not specified)",
2484
- "env": "XANO_PROFILE",
2485
- "name": "profile",
2486
- "required": false,
2487
- "hasDynamicHelp": false,
2488
- "multiple": false,
2489
- "type": "option"
2490
- },
2491
- "verbose": {
2492
- "char": "v",
2493
- "description": "Show detailed request/response information",
2494
- "env": "XANO_VERBOSE",
2495
- "name": "verbose",
2496
- "required": false,
2497
- "allowNo": false,
2498
- "type": "boolean"
2499
- },
2500
2422
  "output": {
2501
2423
  "char": "o",
2502
2424
  "description": "Output format",
@@ -2511,23 +2433,12 @@
2511
2433
  ],
2512
2434
  "type": "option"
2513
2435
  },
2514
- "page": {
2515
- "description": "Page number for pagination",
2516
- "name": "page",
2517
- "required": false,
2518
- "default": 1,
2519
- "hasDynamicHelp": false,
2520
- "multiple": false,
2521
- "type": "option"
2522
- },
2523
- "per_page": {
2524
- "description": "Number of results per page",
2525
- "name": "per_page",
2436
+ "records": {
2437
+ "description": "Include records (default: true, use --no-records to exclude)",
2438
+ "name": "records",
2526
2439
  "required": false,
2527
- "default": 50,
2528
- "hasDynamicHelp": false,
2529
- "multiple": false,
2530
- "type": "option"
2440
+ "allowNo": true,
2441
+ "type": "boolean"
2531
2442
  },
2532
2443
  "workspace": {
2533
2444
  "char": "w",
@@ -2541,7 +2452,7 @@
2541
2452
  },
2542
2453
  "hasDynamicHelp": false,
2543
2454
  "hiddenAliases": [],
2544
- "id": "static_host:list",
2455
+ "id": "release:push",
2545
2456
  "pluginAlias": "@xano/cli",
2546
2457
  "pluginName": "@xano/cli",
2547
2458
  "pluginType": "core",
@@ -2550,26 +2461,21 @@
2550
2461
  "isESM": true,
2551
2462
  "relativePath": [
2552
2463
  "dist",
2553
- "commands",
2554
- "static_host",
2555
- "list",
2464
+ "commands",
2465
+ "release",
2466
+ "push",
2556
2467
  "index.js"
2557
2468
  ]
2558
2469
  },
2559
- "tenant:delete": {
2470
+ "static_host:list": {
2560
2471
  "aliases": [],
2561
- "args": {
2562
- "tenant_name": {
2563
- "description": "Tenant name to delete",
2564
- "name": "tenant_name",
2565
- "required": true
2566
- }
2567
- },
2568
- "description": "Delete a tenant permanently. This destroys all associated infrastructure and cannot be undone.",
2472
+ "args": {},
2473
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
2569
2474
  "examples": [
2570
- "$ xano tenant delete t1234-abcd-xyz1\nAre you sure you want to delete tenant t1234-abcd-xyz1? This action cannot be undone. (y/N) y\nDeleted tenant t1234-abcd-xyz1\n",
2571
- "$ xano tenant delete t1234-abcd-xyz1 --force\nDeleted tenant t1234-abcd-xyz1\n",
2572
- "$ xano tenant delete t1234-abcd-xyz1 -f -o json"
2475
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
2476
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
2477
+ "$ 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",
2478
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
2573
2479
  ],
2574
2480
  "flags": {
2575
2481
  "profile": {
@@ -2591,14 +2497,6 @@
2591
2497
  "allowNo": false,
2592
2498
  "type": "boolean"
2593
2499
  },
2594
- "force": {
2595
- "char": "f",
2596
- "description": "Skip confirmation prompt",
2597
- "name": "force",
2598
- "required": false,
2599
- "allowNo": false,
2600
- "type": "boolean"
2601
- },
2602
2500
  "output": {
2603
2501
  "char": "o",
2604
2502
  "description": "Output format",
@@ -2613,9 +2511,27 @@
2613
2511
  ],
2614
2512
  "type": "option"
2615
2513
  },
2514
+ "page": {
2515
+ "description": "Page number for pagination",
2516
+ "name": "page",
2517
+ "required": false,
2518
+ "default": 1,
2519
+ "hasDynamicHelp": false,
2520
+ "multiple": false,
2521
+ "type": "option"
2522
+ },
2523
+ "per_page": {
2524
+ "description": "Number of results per page",
2525
+ "name": "per_page",
2526
+ "required": false,
2527
+ "default": 50,
2528
+ "hasDynamicHelp": false,
2529
+ "multiple": false,
2530
+ "type": "option"
2531
+ },
2616
2532
  "workspace": {
2617
2533
  "char": "w",
2618
- "description": "Workspace ID (uses profile workspace if not provided)",
2534
+ "description": "Workspace ID (optional if set in profile)",
2619
2535
  "name": "workspace",
2620
2536
  "required": false,
2621
2537
  "hasDynamicHelp": false,
@@ -2625,7 +2541,7 @@
2625
2541
  },
2626
2542
  "hasDynamicHelp": false,
2627
2543
  "hiddenAliases": [],
2628
- "id": "tenant:delete",
2544
+ "id": "static_host:list",
2629
2545
  "pluginAlias": "@xano/cli",
2630
2546
  "pluginName": "@xano/cli",
2631
2547
  "pluginType": "core",
@@ -2635,8 +2551,8 @@
2635
2551
  "relativePath": [
2636
2552
  "dist",
2637
2553
  "commands",
2638
- "tenant",
2639
- "delete",
2554
+ "static_host",
2555
+ "list",
2640
2556
  "index.js"
2641
2557
  ]
2642
2558
  },
@@ -2780,19 +2696,20 @@
2780
2696
  "index.js"
2781
2697
  ]
2782
2698
  },
2783
- "tenant:deploy_platform": {
2699
+ "tenant:delete": {
2784
2700
  "aliases": [],
2785
2701
  "args": {
2786
2702
  "tenant_name": {
2787
- "description": "Tenant name to deploy to",
2703
+ "description": "Tenant name to delete",
2788
2704
  "name": "tenant_name",
2789
2705
  "required": true
2790
2706
  }
2791
2707
  },
2792
- "description": "Deploy a platform version to a tenant",
2708
+ "description": "Delete a tenant permanently. This destroys all associated infrastructure and cannot be undone.",
2793
2709
  "examples": [
2794
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
2795
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
2710
+ "$ xano tenant delete t1234-abcd-xyz1\nAre you sure you want to delete tenant t1234-abcd-xyz1? This action cannot be undone. (y/N) y\nDeleted tenant t1234-abcd-xyz1\n",
2711
+ "$ xano tenant delete t1234-abcd-xyz1 --force\nDeleted tenant t1234-abcd-xyz1\n",
2712
+ "$ xano tenant delete t1234-abcd-xyz1 -f -o json"
2796
2713
  ],
2797
2714
  "flags": {
2798
2715
  "profile": {
@@ -2814,6 +2731,14 @@
2814
2731
  "allowNo": false,
2815
2732
  "type": "boolean"
2816
2733
  },
2734
+ "force": {
2735
+ "char": "f",
2736
+ "description": "Skip confirmation prompt",
2737
+ "name": "force",
2738
+ "required": false,
2739
+ "allowNo": false,
2740
+ "type": "boolean"
2741
+ },
2817
2742
  "output": {
2818
2743
  "char": "o",
2819
2744
  "description": "Output format",
@@ -2828,14 +2753,6 @@
2828
2753
  ],
2829
2754
  "type": "option"
2830
2755
  },
2831
- "platform_id": {
2832
- "description": "Platform ID to deploy",
2833
- "name": "platform_id",
2834
- "required": true,
2835
- "hasDynamicHelp": false,
2836
- "multiple": false,
2837
- "type": "option"
2838
- },
2839
2756
  "workspace": {
2840
2757
  "char": "w",
2841
2758
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -2848,7 +2765,7 @@
2848
2765
  },
2849
2766
  "hasDynamicHelp": false,
2850
2767
  "hiddenAliases": [],
2851
- "id": "tenant:deploy_platform",
2768
+ "id": "tenant:delete",
2852
2769
  "pluginAlias": "@xano/cli",
2853
2770
  "pluginName": "@xano/cli",
2854
2771
  "pluginType": "core",
@@ -2859,23 +2776,23 @@
2859
2776
  "dist",
2860
2777
  "commands",
2861
2778
  "tenant",
2862
- "deploy_platform",
2779
+ "delete",
2863
2780
  "index.js"
2864
2781
  ]
2865
2782
  },
2866
- "tenant:edit": {
2783
+ "tenant:deploy_platform": {
2867
2784
  "aliases": [],
2868
2785
  "args": {
2869
2786
  "tenant_name": {
2870
- "description": "Tenant name to edit",
2787
+ "description": "Tenant name to deploy to",
2871
2788
  "name": "tenant_name",
2872
2789
  "required": true
2873
2790
  }
2874
2791
  },
2875
- "description": "Edit an existing tenant",
2792
+ "description": "Deploy a platform version to a tenant",
2876
2793
  "examples": [
2877
- "$ xano tenant edit t1234-abcd-xyz1 --display \"New Name\" --description \"Updated description\"\nUpdated tenant: New Name (my-tenant) - ID: 42\n",
2878
- "$ xano tenant edit t1234-abcd-xyz1 --no-tasks --no-ingress -o json"
2794
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
2795
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
2879
2796
  ],
2880
2797
  "flags": {
2881
2798
  "profile": {
@@ -2897,36 +2814,87 @@
2897
2814
  "allowNo": false,
2898
2815
  "type": "boolean"
2899
2816
  },
2900
- "description": {
2901
- "char": "d",
2902
- "description": "New description",
2903
- "name": "description",
2817
+ "output": {
2818
+ "char": "o",
2819
+ "description": "Output format",
2820
+ "name": "output",
2904
2821
  "required": false,
2822
+ "default": "summary",
2905
2823
  "hasDynamicHelp": false,
2906
2824
  "multiple": false,
2825
+ "options": [
2826
+ "summary",
2827
+ "json"
2828
+ ],
2907
2829
  "type": "option"
2908
2830
  },
2909
- "display": {
2910
- "description": "New display name",
2911
- "name": "display",
2912
- "required": false,
2831
+ "platform_id": {
2832
+ "description": "Platform ID to deploy",
2833
+ "name": "platform_id",
2834
+ "required": true,
2913
2835
  "hasDynamicHelp": false,
2914
2836
  "multiple": false,
2915
2837
  "type": "option"
2916
2838
  },
2917
- "domain": {
2918
- "description": "Custom domain",
2919
- "name": "domain",
2839
+ "workspace": {
2840
+ "char": "w",
2841
+ "description": "Workspace ID (uses profile workspace if not provided)",
2842
+ "name": "workspace",
2843
+ "required": false,
2844
+ "hasDynamicHelp": false,
2845
+ "multiple": false,
2846
+ "type": "option"
2847
+ }
2848
+ },
2849
+ "hasDynamicHelp": false,
2850
+ "hiddenAliases": [],
2851
+ "id": "tenant:deploy_platform",
2852
+ "pluginAlias": "@xano/cli",
2853
+ "pluginName": "@xano/cli",
2854
+ "pluginType": "core",
2855
+ "strict": true,
2856
+ "enableJsonFlag": false,
2857
+ "isESM": true,
2858
+ "relativePath": [
2859
+ "dist",
2860
+ "commands",
2861
+ "tenant",
2862
+ "deploy_platform",
2863
+ "index.js"
2864
+ ]
2865
+ },
2866
+ "tenant:deploy_release": {
2867
+ "aliases": [],
2868
+ "args": {
2869
+ "tenant_name": {
2870
+ "description": "Tenant name to deploy to",
2871
+ "name": "tenant_name",
2872
+ "required": true
2873
+ }
2874
+ },
2875
+ "description": "Deploy a release to a tenant",
2876
+ "examples": [
2877
+ "$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0\nDeployed release \"v1.0\" to tenant: My Tenant (my-tenant)\n",
2878
+ "$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 -o json"
2879
+ ],
2880
+ "flags": {
2881
+ "profile": {
2882
+ "char": "p",
2883
+ "description": "Profile to use (uses default profile if not specified)",
2884
+ "env": "XANO_PROFILE",
2885
+ "name": "profile",
2920
2886
  "required": false,
2921
2887
  "hasDynamicHelp": false,
2922
2888
  "multiple": false,
2923
2889
  "type": "option"
2924
2890
  },
2925
- "ingress": {
2926
- "description": "Enable/disable ingress",
2927
- "name": "ingress",
2891
+ "verbose": {
2892
+ "char": "v",
2893
+ "description": "Show detailed request/response information",
2894
+ "env": "XANO_VERBOSE",
2895
+ "name": "verbose",
2928
2896
  "required": false,
2929
- "allowNo": true,
2897
+ "allowNo": false,
2930
2898
  "type": "boolean"
2931
2899
  },
2932
2900
  "output": {
@@ -2943,28 +2911,15 @@
2943
2911
  ],
2944
2912
  "type": "option"
2945
2913
  },
2946
- "proxy": {
2947
- "description": "Proxy URL",
2948
- "name": "proxy",
2949
- "required": false,
2914
+ "release": {
2915
+ "char": "r",
2916
+ "description": "Release name to deploy",
2917
+ "name": "release",
2918
+ "required": true,
2950
2919
  "hasDynamicHelp": false,
2951
2920
  "multiple": false,
2952
2921
  "type": "option"
2953
2922
  },
2954
- "rbac": {
2955
- "description": "Enable/disable RBAC",
2956
- "name": "rbac",
2957
- "required": false,
2958
- "allowNo": true,
2959
- "type": "boolean"
2960
- },
2961
- "tasks": {
2962
- "description": "Enable/disable background tasks",
2963
- "name": "tasks",
2964
- "required": false,
2965
- "allowNo": true,
2966
- "type": "boolean"
2967
- },
2968
2923
  "workspace": {
2969
2924
  "char": "w",
2970
2925
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -2977,7 +2932,7 @@
2977
2932
  },
2978
2933
  "hasDynamicHelp": false,
2979
2934
  "hiddenAliases": [],
2980
- "id": "tenant:edit",
2935
+ "id": "tenant:deploy_release",
2981
2936
  "pluginAlias": "@xano/cli",
2982
2937
  "pluginName": "@xano/cli",
2983
2938
  "pluginType": "core",
@@ -2988,23 +2943,23 @@
2988
2943
  "dist",
2989
2944
  "commands",
2990
2945
  "tenant",
2991
- "edit",
2946
+ "deploy_release",
2992
2947
  "index.js"
2993
2948
  ]
2994
2949
  },
2995
- "tenant:deploy_release": {
2950
+ "tenant:edit": {
2996
2951
  "aliases": [],
2997
2952
  "args": {
2998
2953
  "tenant_name": {
2999
- "description": "Tenant name to deploy to",
2954
+ "description": "Tenant name to edit",
3000
2955
  "name": "tenant_name",
3001
2956
  "required": true
3002
2957
  }
3003
2958
  },
3004
- "description": "Deploy a release to a tenant",
2959
+ "description": "Edit an existing tenant",
3005
2960
  "examples": [
3006
- "$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0\nDeployed release \"v1.0\" to tenant: My Tenant (my-tenant)\n",
3007
- "$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 -o json"
2961
+ "$ xano tenant edit t1234-abcd-xyz1 --display \"New Name\" --description \"Updated description\"\nUpdated tenant: New Name (my-tenant) - ID: 42\n",
2962
+ "$ xano tenant edit t1234-abcd-xyz1 --no-tasks --no-ingress -o json"
3008
2963
  ],
3009
2964
  "flags": {
3010
2965
  "profile": {
@@ -3026,6 +2981,38 @@
3026
2981
  "allowNo": false,
3027
2982
  "type": "boolean"
3028
2983
  },
2984
+ "description": {
2985
+ "char": "d",
2986
+ "description": "New description",
2987
+ "name": "description",
2988
+ "required": false,
2989
+ "hasDynamicHelp": false,
2990
+ "multiple": false,
2991
+ "type": "option"
2992
+ },
2993
+ "display": {
2994
+ "description": "New display name",
2995
+ "name": "display",
2996
+ "required": false,
2997
+ "hasDynamicHelp": false,
2998
+ "multiple": false,
2999
+ "type": "option"
3000
+ },
3001
+ "domain": {
3002
+ "description": "Custom domain",
3003
+ "name": "domain",
3004
+ "required": false,
3005
+ "hasDynamicHelp": false,
3006
+ "multiple": false,
3007
+ "type": "option"
3008
+ },
3009
+ "ingress": {
3010
+ "description": "Enable/disable ingress",
3011
+ "name": "ingress",
3012
+ "required": false,
3013
+ "allowNo": true,
3014
+ "type": "boolean"
3015
+ },
3029
3016
  "output": {
3030
3017
  "char": "o",
3031
3018
  "description": "Output format",
@@ -3036,19 +3023,32 @@
3036
3023
  "multiple": false,
3037
3024
  "options": [
3038
3025
  "summary",
3039
- "json"
3040
- ],
3041
- "type": "option"
3042
- },
3043
- "release": {
3044
- "char": "r",
3045
- "description": "Release name to deploy",
3046
- "name": "release",
3047
- "required": true,
3026
+ "json"
3027
+ ],
3028
+ "type": "option"
3029
+ },
3030
+ "proxy": {
3031
+ "description": "Proxy URL",
3032
+ "name": "proxy",
3033
+ "required": false,
3048
3034
  "hasDynamicHelp": false,
3049
3035
  "multiple": false,
3050
3036
  "type": "option"
3051
3037
  },
3038
+ "rbac": {
3039
+ "description": "Enable/disable RBAC",
3040
+ "name": "rbac",
3041
+ "required": false,
3042
+ "allowNo": true,
3043
+ "type": "boolean"
3044
+ },
3045
+ "tasks": {
3046
+ "description": "Enable/disable background tasks",
3047
+ "name": "tasks",
3048
+ "required": false,
3049
+ "allowNo": true,
3050
+ "type": "boolean"
3051
+ },
3052
3052
  "workspace": {
3053
3053
  "char": "w",
3054
3054
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -3061,7 +3061,7 @@
3061
3061
  },
3062
3062
  "hasDynamicHelp": false,
3063
3063
  "hiddenAliases": [],
3064
- "id": "tenant:deploy_release",
3064
+ "id": "tenant:edit",
3065
3065
  "pluginAlias": "@xano/cli",
3066
3066
  "pluginName": "@xano/cli",
3067
3067
  "pluginType": "core",
@@ -3072,7 +3072,7 @@
3072
3072
  "dist",
3073
3073
  "commands",
3074
3074
  "tenant",
3075
- "deploy_release",
3075
+ "edit",
3076
3076
  "index.js"
3077
3077
  ]
3078
3078
  },
@@ -3303,23 +3303,21 @@
3303
3303
  "index.js"
3304
3304
  ]
3305
3305
  },
3306
- "tenant:push": {
3306
+ "tenant:pull": {
3307
3307
  "aliases": [],
3308
3308
  "args": {
3309
3309
  "directory": {
3310
- "description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
3310
+ "description": "Output directory for pulled documents",
3311
3311
  "name": "directory",
3312
3312
  "required": true
3313
3313
  }
3314
3314
  },
3315
- "description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
3315
+ "description": "Pull a tenant multidoc from the Xano Metadata API and split into individual files",
3316
3316
  "examples": [
3317
- "$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
3318
- "$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
3319
- "$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
3320
- "$ xano tenant push ./my-workspace -t my-tenant --no-records\nPush schema only, skip importing table records\n",
3321
- "$ xano tenant push ./my-workspace -t my-tenant --no-env\nPush without overwriting environment variables\n",
3322
- "$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
3317
+ "$ xano tenant pull ./my-tenant -t my-tenant\nPulled 42 documents from tenant my-tenant to ./my-tenant\n",
3318
+ "$ xano tenant pull ./output -t my-tenant -w 40\nPulled 15 documents from tenant my-tenant to ./output\n",
3319
+ "$ xano tenant pull ./backup -t my-tenant --profile production --env --records\nPulled 58 documents from tenant my-tenant to ./backup\n",
3320
+ "$ xano tenant pull ./my-tenant -t my-tenant --draft\nPulled 42 documents from tenant my-tenant to ./my-tenant\n"
3323
3321
  ],
3324
3322
  "flags": {
3325
3323
  "profile": {
@@ -3341,36 +3339,36 @@
3341
3339
  "allowNo": false,
3342
3340
  "type": "boolean"
3343
3341
  },
3342
+ "draft": {
3343
+ "description": "Include draft versions",
3344
+ "name": "draft",
3345
+ "required": false,
3346
+ "allowNo": false,
3347
+ "type": "boolean"
3348
+ },
3344
3349
  "env": {
3345
- "description": "Include environment variables in import (default: true, use --no-env to exclude)",
3350
+ "description": "Include environment variables",
3346
3351
  "name": "env",
3347
3352
  "required": false,
3348
- "allowNo": true,
3353
+ "allowNo": false,
3349
3354
  "type": "boolean"
3350
3355
  },
3351
3356
  "records": {
3352
- "description": "Include records in import (default: true, use --no-records to exclude)",
3357
+ "description": "Include records",
3353
3358
  "name": "records",
3354
3359
  "required": false,
3355
- "allowNo": true,
3360
+ "allowNo": false,
3356
3361
  "type": "boolean"
3357
3362
  },
3358
3363
  "tenant": {
3359
3364
  "char": "t",
3360
- "description": "Tenant name to push to",
3365
+ "description": "Tenant name to pull from",
3361
3366
  "name": "tenant",
3362
3367
  "required": true,
3363
3368
  "hasDynamicHelp": false,
3364
3369
  "multiple": false,
3365
3370
  "type": "option"
3366
3371
  },
3367
- "truncate": {
3368
- "description": "Truncate all table records before importing",
3369
- "name": "truncate",
3370
- "required": false,
3371
- "allowNo": false,
3372
- "type": "boolean"
3373
- },
3374
3372
  "workspace": {
3375
3373
  "char": "w",
3376
3374
  "description": "Workspace ID (optional if set in profile)",
@@ -3383,7 +3381,7 @@
3383
3381
  },
3384
3382
  "hasDynamicHelp": false,
3385
3383
  "hiddenAliases": [],
3386
- "id": "tenant:push",
3384
+ "id": "tenant:pull",
3387
3385
  "pluginAlias": "@xano/cli",
3388
3386
  "pluginName": "@xano/cli",
3389
3387
  "pluginType": "core",
@@ -3394,25 +3392,18 @@
3394
3392
  "dist",
3395
3393
  "commands",
3396
3394
  "tenant",
3397
- "push",
3395
+ "pull",
3398
3396
  "index.js"
3399
3397
  ]
3400
3398
  },
3401
- "tenant:pull": {
3399
+ "unit_test:list": {
3402
3400
  "aliases": [],
3403
- "args": {
3404
- "directory": {
3405
- "description": "Output directory for pulled documents",
3406
- "name": "directory",
3407
- "required": true
3408
- }
3409
- },
3410
- "description": "Pull a tenant multidoc from the Xano Metadata API and split into individual files",
3401
+ "args": {},
3402
+ "description": "List all unit tests in a workspace",
3411
3403
  "examples": [
3412
- "$ xano tenant pull ./my-tenant -t my-tenant\nPulled 42 documents from tenant my-tenant to ./my-tenant\n",
3413
- "$ xano tenant pull ./output -t my-tenant -w 40\nPulled 15 documents from tenant my-tenant to ./output\n",
3414
- "$ xano tenant pull ./backup -t my-tenant --profile production --env --records\nPulled 58 documents from tenant my-tenant to ./backup\n",
3415
- "$ xano tenant pull ./my-tenant -t my-tenant --draft\nPulled 42 documents from tenant my-tenant to ./my-tenant\n"
3404
+ "$ xano unit-test list\nUnit tests in workspace 5:\n - my-test (ID: abc-123) [function: math]\n - auth-check (ID: def-456) [query: /user/login]\n",
3405
+ "$ xano unit-test list -w 5 --output json",
3406
+ "$ xano unit-test list --obj-type function"
3416
3407
  ],
3417
3408
  "flags": {
3418
3409
  "profile": {
@@ -3434,39 +3425,45 @@
3434
3425
  "allowNo": false,
3435
3426
  "type": "boolean"
3436
3427
  },
3437
- "draft": {
3438
- "description": "Include draft versions",
3439
- "name": "draft",
3428
+ "branch": {
3429
+ "char": "b",
3430
+ "description": "Filter by branch name",
3431
+ "name": "branch",
3440
3432
  "required": false,
3441
- "allowNo": false,
3442
- "type": "boolean"
3433
+ "hasDynamicHelp": false,
3434
+ "multiple": false,
3435
+ "type": "option"
3443
3436
  },
3444
- "env": {
3445
- "description": "Include environment variables",
3446
- "name": "env",
3437
+ "obj-type": {
3438
+ "description": "Filter by object type",
3439
+ "name": "obj-type",
3447
3440
  "required": false,
3448
- "allowNo": false,
3449
- "type": "boolean"
3441
+ "hasDynamicHelp": false,
3442
+ "multiple": false,
3443
+ "options": [
3444
+ "function",
3445
+ "query",
3446
+ "middleware"
3447
+ ],
3448
+ "type": "option"
3450
3449
  },
3451
- "records": {
3452
- "description": "Include records",
3453
- "name": "records",
3450
+ "output": {
3451
+ "char": "o",
3452
+ "description": "Output format",
3453
+ "name": "output",
3454
3454
  "required": false,
3455
- "allowNo": false,
3456
- "type": "boolean"
3457
- },
3458
- "tenant": {
3459
- "char": "t",
3460
- "description": "Tenant name to pull from",
3461
- "name": "tenant",
3462
- "required": true,
3455
+ "default": "summary",
3463
3456
  "hasDynamicHelp": false,
3464
3457
  "multiple": false,
3458
+ "options": [
3459
+ "summary",
3460
+ "json"
3461
+ ],
3465
3462
  "type": "option"
3466
3463
  },
3467
3464
  "workspace": {
3468
3465
  "char": "w",
3469
- "description": "Workspace ID (optional if set in profile)",
3466
+ "description": "Workspace ID (uses profile workspace if not provided)",
3470
3467
  "name": "workspace",
3471
3468
  "required": false,
3472
3469
  "hasDynamicHelp": false,
@@ -3476,7 +3473,7 @@
3476
3473
  },
3477
3474
  "hasDynamicHelp": false,
3478
3475
  "hiddenAliases": [],
3479
- "id": "tenant:pull",
3476
+ "id": "unit_test:list",
3480
3477
  "pluginAlias": "@xano/cli",
3481
3478
  "pluginName": "@xano/cli",
3482
3479
  "pluginType": "core",
@@ -3486,24 +3483,28 @@
3486
3483
  "relativePath": [
3487
3484
  "dist",
3488
3485
  "commands",
3489
- "tenant",
3490
- "pull",
3486
+ "unit_test",
3487
+ "list",
3491
3488
  "index.js"
3492
3489
  ]
3493
3490
  },
3494
- "unit_test:run": {
3491
+ "tenant:push": {
3495
3492
  "aliases": [],
3496
3493
  "args": {
3497
- "unit_test_id": {
3498
- "description": "ID of the unit test to run",
3499
- "name": "unit_test_id",
3494
+ "directory": {
3495
+ "description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
3496
+ "name": "directory",
3500
3497
  "required": true
3501
3498
  }
3502
3499
  },
3503
- "description": "Run a unit test",
3500
+ "description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
3504
3501
  "examples": [
3505
- "$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
3506
- "$ xano unit-test run abc-123 -o json"
3502
+ "$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
3503
+ "$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
3504
+ "$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
3505
+ "$ xano tenant push ./my-workspace -t my-tenant --no-records\nPush schema only, skip importing table records\n",
3506
+ "$ xano tenant push ./my-workspace -t my-tenant --no-env\nPush without overwriting environment variables\n",
3507
+ "$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
3507
3508
  ],
3508
3509
  "flags": {
3509
3510
  "profile": {
@@ -3525,23 +3526,39 @@
3525
3526
  "allowNo": false,
3526
3527
  "type": "boolean"
3527
3528
  },
3528
- "output": {
3529
- "char": "o",
3530
- "description": "Output format",
3531
- "name": "output",
3529
+ "env": {
3530
+ "description": "Include environment variables in import (default: true, use --no-env to exclude)",
3531
+ "name": "env",
3532
3532
  "required": false,
3533
- "default": "summary",
3533
+ "allowNo": true,
3534
+ "type": "boolean"
3535
+ },
3536
+ "records": {
3537
+ "description": "Include records in import (default: true, use --no-records to exclude)",
3538
+ "name": "records",
3539
+ "required": false,
3540
+ "allowNo": true,
3541
+ "type": "boolean"
3542
+ },
3543
+ "tenant": {
3544
+ "char": "t",
3545
+ "description": "Tenant name to push to",
3546
+ "name": "tenant",
3547
+ "required": true,
3534
3548
  "hasDynamicHelp": false,
3535
3549
  "multiple": false,
3536
- "options": [
3537
- "summary",
3538
- "json"
3539
- ],
3540
3550
  "type": "option"
3541
3551
  },
3552
+ "truncate": {
3553
+ "description": "Truncate all table records before importing",
3554
+ "name": "truncate",
3555
+ "required": false,
3556
+ "allowNo": false,
3557
+ "type": "boolean"
3558
+ },
3542
3559
  "workspace": {
3543
3560
  "char": "w",
3544
- "description": "Workspace ID (uses profile workspace if not provided)",
3561
+ "description": "Workspace ID (optional if set in profile)",
3545
3562
  "name": "workspace",
3546
3563
  "required": false,
3547
3564
  "hasDynamicHelp": false,
@@ -3551,7 +3568,7 @@
3551
3568
  },
3552
3569
  "hasDynamicHelp": false,
3553
3570
  "hiddenAliases": [],
3554
- "id": "unit_test:run",
3571
+ "id": "tenant:push",
3555
3572
  "pluginAlias": "@xano/cli",
3556
3573
  "pluginName": "@xano/cli",
3557
3574
  "pluginType": "core",
@@ -3561,19 +3578,18 @@
3561
3578
  "relativePath": [
3562
3579
  "dist",
3563
3580
  "commands",
3564
- "unit_test",
3565
- "run",
3581
+ "tenant",
3582
+ "push",
3566
3583
  "index.js"
3567
3584
  ]
3568
3585
  },
3569
- "unit_test:list": {
3586
+ "unit_test:run_all": {
3570
3587
  "aliases": [],
3571
3588
  "args": {},
3572
- "description": "List all unit tests in a workspace",
3589
+ "description": "Run all unit tests in a workspace",
3573
3590
  "examples": [
3574
- "$ xano unit-test list\nUnit tests in workspace 5:\n - my-test (ID: abc-123) [function: math]\n - auth-check (ID: def-456) [query: /user/login]\n",
3575
- "$ xano unit-test list -w 5 --output json",
3576
- "$ xano unit-test list --obj-type function"
3591
+ "$ xano unit-test run-all\nRunning 5 unit tests...\n\nPASS my-test [function: math]\nPASS auth-check [query: /user/login]\nFAIL data-validation [function: validate]\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
3592
+ "$ xano unit-test run-all --obj-type function -o json"
3577
3593
  ],
3578
3594
  "flags": {
3579
3595
  "profile": {
@@ -3643,7 +3659,7 @@
3643
3659
  },
3644
3660
  "hasDynamicHelp": false,
3645
3661
  "hiddenAliases": [],
3646
- "id": "unit_test:list",
3662
+ "id": "unit_test:run_all",
3647
3663
  "pluginAlias": "@xano/cli",
3648
3664
  "pluginName": "@xano/cli",
3649
3665
  "pluginType": "core",
@@ -3654,17 +3670,23 @@
3654
3670
  "dist",
3655
3671
  "commands",
3656
3672
  "unit_test",
3657
- "list",
3673
+ "run_all",
3658
3674
  "index.js"
3659
3675
  ]
3660
3676
  },
3661
- "unit_test:run_all": {
3677
+ "unit_test:run": {
3662
3678
  "aliases": [],
3663
- "args": {},
3664
- "description": "Run all unit tests in a workspace",
3679
+ "args": {
3680
+ "unit_test_id": {
3681
+ "description": "ID of the unit test to run",
3682
+ "name": "unit_test_id",
3683
+ "required": true
3684
+ }
3685
+ },
3686
+ "description": "Run a unit test",
3665
3687
  "examples": [
3666
- "$ xano unit-test run-all\nRunning 5 unit tests...\n\nPASS my-test [function: math]\nPASS auth-check [query: /user/login]\nFAIL data-validation [function: validate]\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
3667
- "$ xano unit-test run-all --obj-type function -o json"
3688
+ "$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
3689
+ "$ xano unit-test run abc-123 -o json"
3668
3690
  ],
3669
3691
  "flags": {
3670
3692
  "profile": {
@@ -3686,28 +3708,6 @@
3686
3708
  "allowNo": false,
3687
3709
  "type": "boolean"
3688
3710
  },
3689
- "branch": {
3690
- "char": "b",
3691
- "description": "Filter by branch name",
3692
- "name": "branch",
3693
- "required": false,
3694
- "hasDynamicHelp": false,
3695
- "multiple": false,
3696
- "type": "option"
3697
- },
3698
- "obj-type": {
3699
- "description": "Filter by object type",
3700
- "name": "obj-type",
3701
- "required": false,
3702
- "hasDynamicHelp": false,
3703
- "multiple": false,
3704
- "options": [
3705
- "function",
3706
- "query",
3707
- "middleware"
3708
- ],
3709
- "type": "option"
3710
- },
3711
3711
  "output": {
3712
3712
  "char": "o",
3713
3713
  "description": "Output format",
@@ -3734,7 +3734,7 @@
3734
3734
  },
3735
3735
  "hasDynamicHelp": false,
3736
3736
  "hiddenAliases": [],
3737
- "id": "unit_test:run_all",
3737
+ "id": "unit_test:run",
3738
3738
  "pluginAlias": "@xano/cli",
3739
3739
  "pluginName": "@xano/cli",
3740
3740
  "pluginType": "core",
@@ -3745,7 +3745,7 @@
3745
3745
  "dist",
3746
3746
  "commands",
3747
3747
  "unit_test",
3748
- "run_all",
3748
+ "run",
3749
3749
  "index.js"
3750
3750
  ]
3751
3751
  },
@@ -3916,19 +3916,14 @@
3916
3916
  "index.js"
3917
3917
  ]
3918
3918
  },
3919
- "workflow_test:run": {
3919
+ "workflow_test:list": {
3920
3920
  "aliases": [],
3921
- "args": {
3922
- "workflow_test_id": {
3923
- "description": "ID of the workflow test to run",
3924
- "name": "workflow_test_id",
3925
- "required": true
3926
- }
3927
- },
3928
- "description": "Run a workflow test",
3921
+ "args": {},
3922
+ "description": "List all workflow tests in a workspace",
3929
3923
  "examples": [
3930
- "$ xano workflow-test run 1\nRunning workflow test 1...\nResult: PASS (1.234s)\n",
3931
- "$ xano workflow-test run 1 -o json"
3924
+ "$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
3925
+ "$ xano workflow-test list -w 5 --output json",
3926
+ "$ xano workflow-test list --branch main"
3932
3927
  ],
3933
3928
  "flags": {
3934
3929
  "profile": {
@@ -3950,6 +3945,15 @@
3950
3945
  "allowNo": false,
3951
3946
  "type": "boolean"
3952
3947
  },
3948
+ "branch": {
3949
+ "char": "b",
3950
+ "description": "Filter by branch name",
3951
+ "name": "branch",
3952
+ "required": false,
3953
+ "hasDynamicHelp": false,
3954
+ "multiple": false,
3955
+ "type": "option"
3956
+ },
3953
3957
  "output": {
3954
3958
  "char": "o",
3955
3959
  "description": "Output format",
@@ -3976,7 +3980,7 @@
3976
3980
  },
3977
3981
  "hasDynamicHelp": false,
3978
3982
  "hiddenAliases": [],
3979
- "id": "workflow_test:run",
3983
+ "id": "workflow_test:list",
3980
3984
  "pluginAlias": "@xano/cli",
3981
3985
  "pluginName": "@xano/cli",
3982
3986
  "pluginType": "core",
@@ -3987,18 +3991,23 @@
3987
3991
  "dist",
3988
3992
  "commands",
3989
3993
  "workflow_test",
3990
- "run",
3994
+ "list",
3991
3995
  "index.js"
3992
3996
  ]
3993
3997
  },
3994
- "workflow_test:list": {
3998
+ "workflow_test:run": {
3995
3999
  "aliases": [],
3996
- "args": {},
3997
- "description": "List all workflow tests in a workspace",
4000
+ "args": {
4001
+ "workflow_test_id": {
4002
+ "description": "ID of the workflow test to run",
4003
+ "name": "workflow_test_id",
4004
+ "required": true
4005
+ }
4006
+ },
4007
+ "description": "Run a workflow test",
3998
4008
  "examples": [
3999
- "$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
4000
- "$ xano workflow-test list -w 5 --output json",
4001
- "$ xano workflow-test list --branch main"
4009
+ "$ xano workflow-test run 1\nRunning workflow test 1...\nResult: PASS (1.234s)\n",
4010
+ "$ xano workflow-test run 1 -o json"
4002
4011
  ],
4003
4012
  "flags": {
4004
4013
  "profile": {
@@ -4020,15 +4029,6 @@
4020
4029
  "allowNo": false,
4021
4030
  "type": "boolean"
4022
4031
  },
4023
- "branch": {
4024
- "char": "b",
4025
- "description": "Filter by branch name",
4026
- "name": "branch",
4027
- "required": false,
4028
- "hasDynamicHelp": false,
4029
- "multiple": false,
4030
- "type": "option"
4031
- },
4032
4032
  "output": {
4033
4033
  "char": "o",
4034
4034
  "description": "Output format",
@@ -4055,7 +4055,7 @@
4055
4055
  },
4056
4056
  "hasDynamicHelp": false,
4057
4057
  "hiddenAliases": [],
4058
- "id": "workflow_test:list",
4058
+ "id": "workflow_test:run",
4059
4059
  "pluginAlias": "@xano/cli",
4060
4060
  "pluginName": "@xano/cli",
4061
4061
  "pluginType": "core",
@@ -4066,7 +4066,7 @@
4066
4066
  "dist",
4067
4067
  "commands",
4068
4068
  "workflow_test",
4069
- "list",
4069
+ "run",
4070
4070
  "index.js"
4071
4071
  ]
4072
4072
  },
@@ -4148,81 +4148,6 @@
4148
4148
  "index.js"
4149
4149
  ]
4150
4150
  },
4151
- "workspace:delete": {
4152
- "aliases": [],
4153
- "args": {
4154
- "workspace_id": {
4155
- "description": "Workspace ID to delete",
4156
- "name": "workspace_id",
4157
- "required": true
4158
- }
4159
- },
4160
- "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
4161
- "examples": [
4162
- "$ 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",
4163
- "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
4164
- "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
4165
- ],
4166
- "flags": {
4167
- "profile": {
4168
- "char": "p",
4169
- "description": "Profile to use (uses default profile if not specified)",
4170
- "env": "XANO_PROFILE",
4171
- "name": "profile",
4172
- "required": false,
4173
- "hasDynamicHelp": false,
4174
- "multiple": false,
4175
- "type": "option"
4176
- },
4177
- "verbose": {
4178
- "char": "v",
4179
- "description": "Show detailed request/response information",
4180
- "env": "XANO_VERBOSE",
4181
- "name": "verbose",
4182
- "required": false,
4183
- "allowNo": false,
4184
- "type": "boolean"
4185
- },
4186
- "force": {
4187
- "char": "f",
4188
- "description": "Skip confirmation prompt",
4189
- "name": "force",
4190
- "required": false,
4191
- "allowNo": false,
4192
- "type": "boolean"
4193
- },
4194
- "output": {
4195
- "char": "o",
4196
- "description": "Output format",
4197
- "name": "output",
4198
- "required": false,
4199
- "default": "summary",
4200
- "hasDynamicHelp": false,
4201
- "multiple": false,
4202
- "options": [
4203
- "summary",
4204
- "json"
4205
- ],
4206
- "type": "option"
4207
- }
4208
- },
4209
- "hasDynamicHelp": false,
4210
- "hiddenAliases": [],
4211
- "id": "workspace:delete",
4212
- "pluginAlias": "@xano/cli",
4213
- "pluginName": "@xano/cli",
4214
- "pluginType": "core",
4215
- "strict": true,
4216
- "enableJsonFlag": false,
4217
- "isESM": true,
4218
- "relativePath": [
4219
- "dist",
4220
- "commands",
4221
- "workspace",
4222
- "delete",
4223
- "index.js"
4224
- ]
4225
- },
4226
4151
  "workspace:create": {
4227
4152
  "aliases": [],
4228
4153
  "args": {
@@ -4299,20 +4224,20 @@
4299
4224
  "index.js"
4300
4225
  ]
4301
4226
  },
4302
- "workspace:get": {
4227
+ "workspace:delete": {
4303
4228
  "aliases": [],
4304
4229
  "args": {
4305
4230
  "workspace_id": {
4306
- "description": "Workspace ID to get details for (uses profile workspace if not provided)",
4231
+ "description": "Workspace ID to delete",
4307
4232
  "name": "workspace_id",
4308
- "required": false
4233
+ "required": true
4309
4234
  }
4310
4235
  },
4311
- "description": "Get details of a specific workspace from the Xano Metadata API",
4236
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
4312
4237
  "examples": [
4313
- "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
4314
- "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
4315
- "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
4238
+ "$ 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",
4239
+ "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
4240
+ "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
4316
4241
  ],
4317
4242
  "flags": {
4318
4243
  "profile": {
@@ -4334,6 +4259,14 @@
4334
4259
  "allowNo": false,
4335
4260
  "type": "boolean"
4336
4261
  },
4262
+ "force": {
4263
+ "char": "f",
4264
+ "description": "Skip confirmation prompt",
4265
+ "name": "force",
4266
+ "required": false,
4267
+ "allowNo": false,
4268
+ "type": "boolean"
4269
+ },
4337
4270
  "output": {
4338
4271
  "char": "o",
4339
4272
  "description": "Output format",
@@ -4351,7 +4284,7 @@
4351
4284
  },
4352
4285
  "hasDynamicHelp": false,
4353
4286
  "hiddenAliases": [],
4354
- "id": "workspace:get",
4287
+ "id": "workspace:delete",
4355
4288
  "pluginAlias": "@xano/cli",
4356
4289
  "pluginName": "@xano/cli",
4357
4290
  "pluginType": "core",
@@ -4362,7 +4295,7 @@
4362
4295
  "dist",
4363
4296
  "commands",
4364
4297
  "workspace",
4365
- "get",
4298
+ "delete",
4366
4299
  "index.js"
4367
4300
  ]
4368
4301
  },
@@ -4560,28 +4493,20 @@
4560
4493
  "index.js"
4561
4494
  ]
4562
4495
  },
4563
- "workspace:push": {
4496
+ "workspace:get": {
4564
4497
  "aliases": [],
4565
4498
  "args": {
4566
- "directory": {
4567
- "description": "Directory containing documents to push (as produced by workspace pull)",
4568
- "name": "directory",
4569
- "required": true
4499
+ "workspace_id": {
4500
+ "description": "Workspace ID to get details for (uses profile workspace if not provided)",
4501
+ "name": "workspace_id",
4502
+ "required": false
4570
4503
  }
4571
4504
  },
4572
- "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
4505
+ "description": "Get details of a specific workspace from the Xano Metadata API",
4573
4506
  "examples": [
4574
- "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
4575
- "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
4576
- "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n",
4577
- "$ xano workspace push ./my-workspace -b dev\nPushed 42 documents from ./my-workspace\n",
4578
- "$ xano workspace push ./my-functions --partial\nPush some files without a workspace block (implies --no-delete)\n",
4579
- "$ xano workspace push ./my-workspace --no-delete\nPatch files without deleting existing workspace objects\n",
4580
- "$ xano workspace push ./my-workspace --no-records\nPush schema only, skip importing table records\n",
4581
- "$ xano workspace push ./my-workspace --no-env\nPush without overwriting environment variables\n",
4582
- "$ xano workspace push ./my-workspace --truncate\nTruncate all table records before importing\n",
4583
- "$ xano workspace push ./my-workspace --truncate --no-records\nTruncate all table records without importing new ones\n",
4584
- "$ xano workspace push ./my-workspace --no-records --no-env\nPush schema only, skip records and environment variables\n"
4507
+ "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
4508
+ "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
4509
+ "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
4585
4510
  ],
4586
4511
  "flags": {
4587
4512
  "profile": {
@@ -4603,70 +4528,24 @@
4603
4528
  "allowNo": false,
4604
4529
  "type": "boolean"
4605
4530
  },
4606
- "branch": {
4607
- "char": "b",
4608
- "description": "Branch name (optional if set in profile, defaults to live)",
4609
- "name": "branch",
4610
- "required": false,
4611
- "hasDynamicHelp": false,
4612
- "multiple": false,
4613
- "type": "option"
4614
- },
4615
- "delete": {
4616
- "description": "Delete workspace objects not included in the push (default: false)",
4617
- "name": "delete",
4618
- "required": false,
4619
- "allowNo": true,
4620
- "type": "boolean"
4621
- },
4622
- "env": {
4623
- "description": "Include environment variables in import (default: true, use --no-env to exclude)",
4624
- "name": "env",
4625
- "required": false,
4626
- "allowNo": true,
4627
- "type": "boolean"
4628
- },
4629
- "partial": {
4630
- "description": "Partial push — workspace block is not required, existing objects are kept (implies --no-delete)",
4631
- "name": "partial",
4632
- "required": false,
4633
- "allowNo": false,
4634
- "type": "boolean"
4635
- },
4636
- "records": {
4637
- "description": "Include records in import (default: true, use --no-records to exclude)",
4638
- "name": "records",
4639
- "required": false,
4640
- "allowNo": true,
4641
- "type": "boolean"
4642
- },
4643
- "sync-guids": {
4644
- "description": "Write server-assigned GUIDs back to local files (use --no-sync-guids to skip)",
4645
- "name": "sync-guids",
4646
- "required": false,
4647
- "allowNo": true,
4648
- "type": "boolean"
4649
- },
4650
- "truncate": {
4651
- "description": "Truncate all table records before importing",
4652
- "name": "truncate",
4653
- "required": false,
4654
- "allowNo": false,
4655
- "type": "boolean"
4656
- },
4657
- "workspace": {
4658
- "char": "w",
4659
- "description": "Workspace ID (optional if set in profile)",
4660
- "name": "workspace",
4531
+ "output": {
4532
+ "char": "o",
4533
+ "description": "Output format",
4534
+ "name": "output",
4661
4535
  "required": false,
4536
+ "default": "summary",
4662
4537
  "hasDynamicHelp": false,
4663
4538
  "multiple": false,
4539
+ "options": [
4540
+ "summary",
4541
+ "json"
4542
+ ],
4664
4543
  "type": "option"
4665
4544
  }
4666
4545
  },
4667
4546
  "hasDynamicHelp": false,
4668
4547
  "hiddenAliases": [],
4669
- "id": "workspace:push",
4548
+ "id": "workspace:get",
4670
4549
  "pluginAlias": "@xano/cli",
4671
4550
  "pluginName": "@xano/cli",
4672
4551
  "pluginType": "core",
@@ -4677,7 +4556,7 @@
4677
4556
  "dist",
4678
4557
  "commands",
4679
4558
  "workspace",
4680
- "push",
4559
+ "get",
4681
4560
  "index.js"
4682
4561
  ]
4683
4562
  },
@@ -4847,6 +4726,127 @@
4847
4726
  "index.js"
4848
4727
  ]
4849
4728
  },
4729
+ "workspace:push": {
4730
+ "aliases": [],
4731
+ "args": {
4732
+ "directory": {
4733
+ "description": "Directory containing documents to push (as produced by workspace pull)",
4734
+ "name": "directory",
4735
+ "required": true
4736
+ }
4737
+ },
4738
+ "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
4739
+ "examples": [
4740
+ "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
4741
+ "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
4742
+ "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n",
4743
+ "$ xano workspace push ./my-workspace -b dev\nPushed 42 documents from ./my-workspace\n",
4744
+ "$ xano workspace push ./my-functions --partial\nPush some files without a workspace block (implies --no-delete)\n",
4745
+ "$ xano workspace push ./my-workspace --no-delete\nPatch files without deleting existing workspace objects\n",
4746
+ "$ xano workspace push ./my-workspace --no-records\nPush schema only, skip importing table records\n",
4747
+ "$ xano workspace push ./my-workspace --no-env\nPush without overwriting environment variables\n",
4748
+ "$ xano workspace push ./my-workspace --truncate\nTruncate all table records before importing\n",
4749
+ "$ xano workspace push ./my-workspace --truncate --no-records\nTruncate all table records without importing new ones\n",
4750
+ "$ xano workspace push ./my-workspace --no-records --no-env\nPush schema only, skip records and environment variables\n"
4751
+ ],
4752
+ "flags": {
4753
+ "profile": {
4754
+ "char": "p",
4755
+ "description": "Profile to use (uses default profile if not specified)",
4756
+ "env": "XANO_PROFILE",
4757
+ "name": "profile",
4758
+ "required": false,
4759
+ "hasDynamicHelp": false,
4760
+ "multiple": false,
4761
+ "type": "option"
4762
+ },
4763
+ "verbose": {
4764
+ "char": "v",
4765
+ "description": "Show detailed request/response information",
4766
+ "env": "XANO_VERBOSE",
4767
+ "name": "verbose",
4768
+ "required": false,
4769
+ "allowNo": false,
4770
+ "type": "boolean"
4771
+ },
4772
+ "branch": {
4773
+ "char": "b",
4774
+ "description": "Branch name (optional if set in profile, defaults to live)",
4775
+ "name": "branch",
4776
+ "required": false,
4777
+ "hasDynamicHelp": false,
4778
+ "multiple": false,
4779
+ "type": "option"
4780
+ },
4781
+ "delete": {
4782
+ "description": "Delete workspace objects not included in the push (default: false)",
4783
+ "name": "delete",
4784
+ "required": false,
4785
+ "allowNo": true,
4786
+ "type": "boolean"
4787
+ },
4788
+ "env": {
4789
+ "description": "Include environment variables in import (default: true, use --no-env to exclude)",
4790
+ "name": "env",
4791
+ "required": false,
4792
+ "allowNo": true,
4793
+ "type": "boolean"
4794
+ },
4795
+ "partial": {
4796
+ "description": "Partial push — workspace block is not required, existing objects are kept (implies --no-delete)",
4797
+ "name": "partial",
4798
+ "required": false,
4799
+ "allowNo": false,
4800
+ "type": "boolean"
4801
+ },
4802
+ "records": {
4803
+ "description": "Include records in import (default: true, use --no-records to exclude)",
4804
+ "name": "records",
4805
+ "required": false,
4806
+ "allowNo": true,
4807
+ "type": "boolean"
4808
+ },
4809
+ "sync-guids": {
4810
+ "description": "Write server-assigned GUIDs back to local files (use --no-sync-guids to skip)",
4811
+ "name": "sync-guids",
4812
+ "required": false,
4813
+ "allowNo": true,
4814
+ "type": "boolean"
4815
+ },
4816
+ "truncate": {
4817
+ "description": "Truncate all table records before importing",
4818
+ "name": "truncate",
4819
+ "required": false,
4820
+ "allowNo": false,
4821
+ "type": "boolean"
4822
+ },
4823
+ "workspace": {
4824
+ "char": "w",
4825
+ "description": "Workspace ID (optional if set in profile)",
4826
+ "name": "workspace",
4827
+ "required": false,
4828
+ "hasDynamicHelp": false,
4829
+ "multiple": false,
4830
+ "type": "option"
4831
+ }
4832
+ },
4833
+ "hasDynamicHelp": false,
4834
+ "hiddenAliases": [],
4835
+ "id": "workspace:push",
4836
+ "pluginAlias": "@xano/cli",
4837
+ "pluginName": "@xano/cli",
4838
+ "pluginType": "core",
4839
+ "strict": true,
4840
+ "enableJsonFlag": false,
4841
+ "isESM": true,
4842
+ "relativePath": [
4843
+ "dist",
4844
+ "commands",
4845
+ "workspace",
4846
+ "push",
4847
+ "index.js"
4848
+ ]
4849
+ },
4850
4850
  "static_host:build:get": {
4851
4851
  "aliases": [],
4852
4852
  "args": {
@@ -4930,21 +4930,19 @@
4930
4930
  "index.js"
4931
4931
  ]
4932
4932
  },
4933
- "static_host:build:list": {
4933
+ "tenant:backup:create": {
4934
4934
  "aliases": [],
4935
4935
  "args": {
4936
- "static_host": {
4937
- "description": "Static Host name",
4938
- "name": "static_host",
4936
+ "tenant_name": {
4937
+ "description": "Tenant name to back up",
4938
+ "name": "tenant_name",
4939
4939
  "required": true
4940
4940
  }
4941
4941
  },
4942
- "description": "List all builds for a static host",
4942
+ "description": "Create a backup for a tenant",
4943
4943
  "examples": [
4944
- "$ 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",
4945
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
4946
- "$ 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",
4947
- "$ 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"
4944
+ "$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
4945
+ "$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
4948
4946
  ],
4949
4947
  "flags": {
4950
4948
  "profile": {
@@ -4966,6 +4964,16 @@
4966
4964
  "allowNo": false,
4967
4965
  "type": "boolean"
4968
4966
  },
4967
+ "description": {
4968
+ "char": "d",
4969
+ "description": "Backup description",
4970
+ "name": "description",
4971
+ "required": false,
4972
+ "default": "",
4973
+ "hasDynamicHelp": false,
4974
+ "multiple": false,
4975
+ "type": "option"
4976
+ },
4969
4977
  "output": {
4970
4978
  "char": "o",
4971
4979
  "description": "Output format",
@@ -4980,27 +4988,9 @@
4980
4988
  ],
4981
4989
  "type": "option"
4982
4990
  },
4983
- "page": {
4984
- "description": "Page number for pagination",
4985
- "name": "page",
4986
- "required": false,
4987
- "default": 1,
4988
- "hasDynamicHelp": false,
4989
- "multiple": false,
4990
- "type": "option"
4991
- },
4992
- "per_page": {
4993
- "description": "Number of results per page",
4994
- "name": "per_page",
4995
- "required": false,
4996
- "default": 50,
4997
- "hasDynamicHelp": false,
4998
- "multiple": false,
4999
- "type": "option"
5000
- },
5001
4991
  "workspace": {
5002
4992
  "char": "w",
5003
- "description": "Workspace ID (optional if set in profile)",
4993
+ "description": "Workspace ID (uses profile workspace if not provided)",
5004
4994
  "name": "workspace",
5005
4995
  "required": false,
5006
4996
  "hasDynamicHelp": false,
@@ -5010,7 +5000,7 @@
5010
5000
  },
5011
5001
  "hasDynamicHelp": false,
5012
5002
  "hiddenAliases": [],
5013
- "id": "static_host:build:list",
5003
+ "id": "tenant:backup:create",
5014
5004
  "pluginAlias": "@xano/cli",
5015
5005
  "pluginName": "@xano/cli",
5016
5006
  "pluginType": "core",
@@ -5020,26 +5010,27 @@
5020
5010
  "relativePath": [
5021
5011
  "dist",
5022
5012
  "commands",
5023
- "static_host",
5024
- "build",
5025
- "list",
5013
+ "tenant",
5014
+ "backup",
5015
+ "create",
5026
5016
  "index.js"
5027
5017
  ]
5028
5018
  },
5029
- "tenant:backup:delete": {
5019
+ "static_host:build:list": {
5030
5020
  "aliases": [],
5031
5021
  "args": {
5032
- "tenant_name": {
5033
- "description": "Tenant name that owns the backup",
5034
- "name": "tenant_name",
5022
+ "static_host": {
5023
+ "description": "Static Host name",
5024
+ "name": "static_host",
5035
5025
  "required": true
5036
5026
  }
5037
5027
  },
5038
- "description": "Delete a tenant backup permanently. This action cannot be undone.",
5028
+ "description": "List all builds for a static host",
5039
5029
  "examples": [
5040
- "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to delete backup #10? This action cannot be undone. (y/N) y\nDeleted backup #10\n",
5041
- "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
5042
- "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
5030
+ "$ 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",
5031
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
5032
+ "$ 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",
5033
+ "$ 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"
5043
5034
  ],
5044
5035
  "flags": {
5045
5036
  "profile": {
@@ -5061,22 +5052,6 @@
5061
5052
  "allowNo": false,
5062
5053
  "type": "boolean"
5063
5054
  },
5064
- "backup_id": {
5065
- "description": "Backup ID to delete",
5066
- "name": "backup_id",
5067
- "required": true,
5068
- "hasDynamicHelp": false,
5069
- "multiple": false,
5070
- "type": "option"
5071
- },
5072
- "force": {
5073
- "char": "f",
5074
- "description": "Skip confirmation prompt",
5075
- "name": "force",
5076
- "required": false,
5077
- "allowNo": false,
5078
- "type": "boolean"
5079
- },
5080
5055
  "output": {
5081
5056
  "char": "o",
5082
5057
  "description": "Output format",
@@ -5091,9 +5066,27 @@
5091
5066
  ],
5092
5067
  "type": "option"
5093
5068
  },
5069
+ "page": {
5070
+ "description": "Page number for pagination",
5071
+ "name": "page",
5072
+ "required": false,
5073
+ "default": 1,
5074
+ "hasDynamicHelp": false,
5075
+ "multiple": false,
5076
+ "type": "option"
5077
+ },
5078
+ "per_page": {
5079
+ "description": "Number of results per page",
5080
+ "name": "per_page",
5081
+ "required": false,
5082
+ "default": 50,
5083
+ "hasDynamicHelp": false,
5084
+ "multiple": false,
5085
+ "type": "option"
5086
+ },
5094
5087
  "workspace": {
5095
5088
  "char": "w",
5096
- "description": "Workspace ID (uses profile workspace if not provided)",
5089
+ "description": "Workspace ID (optional if set in profile)",
5097
5090
  "name": "workspace",
5098
5091
  "required": false,
5099
5092
  "hasDynamicHelp": false,
@@ -5103,7 +5096,7 @@
5103
5096
  },
5104
5097
  "hasDynamicHelp": false,
5105
5098
  "hiddenAliases": [],
5106
- "id": "tenant:backup:delete",
5099
+ "id": "static_host:build:list",
5107
5100
  "pluginAlias": "@xano/cli",
5108
5101
  "pluginName": "@xano/cli",
5109
5102
  "pluginType": "core",
@@ -5113,25 +5106,26 @@
5113
5106
  "relativePath": [
5114
5107
  "dist",
5115
5108
  "commands",
5116
- "tenant",
5117
- "backup",
5118
- "delete",
5109
+ "static_host",
5110
+ "build",
5111
+ "list",
5119
5112
  "index.js"
5120
5113
  ]
5121
5114
  },
5122
- "tenant:backup:create": {
5115
+ "tenant:backup:delete": {
5123
5116
  "aliases": [],
5124
5117
  "args": {
5125
5118
  "tenant_name": {
5126
- "description": "Tenant name to back up",
5119
+ "description": "Tenant name that owns the backup",
5127
5120
  "name": "tenant_name",
5128
5121
  "required": true
5129
5122
  }
5130
5123
  },
5131
- "description": "Create a backup for a tenant",
5124
+ "description": "Delete a tenant backup permanently. This action cannot be undone.",
5132
5125
  "examples": [
5133
- "$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
5134
- "$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
5126
+ "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to delete backup #10? This action cannot be undone. (y/N) y\nDeleted backup #10\n",
5127
+ "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
5128
+ "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
5135
5129
  ],
5136
5130
  "flags": {
5137
5131
  "profile": {
@@ -5153,16 +5147,22 @@
5153
5147
  "allowNo": false,
5154
5148
  "type": "boolean"
5155
5149
  },
5156
- "description": {
5157
- "char": "d",
5158
- "description": "Backup description",
5159
- "name": "description",
5160
- "required": false,
5161
- "default": "",
5150
+ "backup_id": {
5151
+ "description": "Backup ID to delete",
5152
+ "name": "backup_id",
5153
+ "required": true,
5162
5154
  "hasDynamicHelp": false,
5163
5155
  "multiple": false,
5164
5156
  "type": "option"
5165
5157
  },
5158
+ "force": {
5159
+ "char": "f",
5160
+ "description": "Skip confirmation prompt",
5161
+ "name": "force",
5162
+ "required": false,
5163
+ "allowNo": false,
5164
+ "type": "boolean"
5165
+ },
5166
5166
  "output": {
5167
5167
  "char": "o",
5168
5168
  "description": "Output format",
@@ -5189,7 +5189,7 @@
5189
5189
  },
5190
5190
  "hasDynamicHelp": false,
5191
5191
  "hiddenAliases": [],
5192
- "id": "tenant:backup:create",
5192
+ "id": "tenant:backup:delete",
5193
5193
  "pluginAlias": "@xano/cli",
5194
5194
  "pluginName": "@xano/cli",
5195
5195
  "pluginType": "core",
@@ -5201,7 +5201,7 @@
5201
5201
  "commands",
5202
5202
  "tenant",
5203
5203
  "backup",
5204
- "create",
5204
+ "delete",
5205
5205
  "index.js"
5206
5206
  ]
5207
5207
  },
@@ -5298,19 +5298,19 @@
5298
5298
  "index.js"
5299
5299
  ]
5300
5300
  },
5301
- "tenant:backup:list": {
5301
+ "tenant:backup:import": {
5302
5302
  "aliases": [],
5303
5303
  "args": {
5304
5304
  "tenant_name": {
5305
- "description": "Tenant name to list backups for",
5305
+ "description": "Tenant name to import backup into",
5306
5306
  "name": "tenant_name",
5307
5307
  "required": true
5308
5308
  }
5309
5309
  },
5310
- "description": "List backups for a tenant",
5310
+ "description": "Import a backup file into a tenant",
5311
5311
  "examples": [
5312
- "$ xano tenant backup list t1234-abcd-xyz1\nBackups for tenant t1234-abcd-xyz1:\n - #1 - Pre-deploy backup (2024-01-15)\n - #2 - Daily backup (2024-01-16)\n",
5313
- "$ xano tenant backup list t1234-abcd-xyz1 -o json"
5312
+ "$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz\nImported backup as #15 for tenant t1234-abcd-xyz1\n",
5313
+ "$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz --description \"Restored from production\" -o json"
5314
5314
  ],
5315
5315
  "flags": {
5316
5316
  "profile": {
@@ -5332,6 +5332,25 @@
5332
5332
  "allowNo": false,
5333
5333
  "type": "boolean"
5334
5334
  },
5335
+ "description": {
5336
+ "char": "d",
5337
+ "description": "Backup description",
5338
+ "name": "description",
5339
+ "required": false,
5340
+ "default": "",
5341
+ "hasDynamicHelp": false,
5342
+ "multiple": false,
5343
+ "type": "option"
5344
+ },
5345
+ "file": {
5346
+ "char": "f",
5347
+ "description": "Path to the backup file (.tar.gz)",
5348
+ "name": "file",
5349
+ "required": true,
5350
+ "hasDynamicHelp": false,
5351
+ "multiple": false,
5352
+ "type": "option"
5353
+ },
5335
5354
  "output": {
5336
5355
  "char": "o",
5337
5356
  "description": "Output format",
@@ -5346,15 +5365,6 @@
5346
5365
  ],
5347
5366
  "type": "option"
5348
5367
  },
5349
- "page": {
5350
- "description": "Page number for pagination",
5351
- "name": "page",
5352
- "required": false,
5353
- "default": 1,
5354
- "hasDynamicHelp": false,
5355
- "multiple": false,
5356
- "type": "option"
5357
- },
5358
5368
  "workspace": {
5359
5369
  "char": "w",
5360
5370
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -5367,7 +5377,7 @@
5367
5377
  },
5368
5378
  "hasDynamicHelp": false,
5369
5379
  "hiddenAliases": [],
5370
- "id": "tenant:backup:list",
5380
+ "id": "tenant:backup:import",
5371
5381
  "pluginAlias": "@xano/cli",
5372
5382
  "pluginName": "@xano/cli",
5373
5383
  "pluginType": "core",
@@ -5379,23 +5389,23 @@
5379
5389
  "commands",
5380
5390
  "tenant",
5381
5391
  "backup",
5382
- "list",
5392
+ "import",
5383
5393
  "index.js"
5384
5394
  ]
5385
5395
  },
5386
- "tenant:backup:import": {
5396
+ "tenant:backup:list": {
5387
5397
  "aliases": [],
5388
5398
  "args": {
5389
5399
  "tenant_name": {
5390
- "description": "Tenant name to import backup into",
5400
+ "description": "Tenant name to list backups for",
5391
5401
  "name": "tenant_name",
5392
5402
  "required": true
5393
5403
  }
5394
5404
  },
5395
- "description": "Import a backup file into a tenant",
5405
+ "description": "List backups for a tenant",
5396
5406
  "examples": [
5397
- "$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz\nImported backup as #15 for tenant t1234-abcd-xyz1\n",
5398
- "$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz --description \"Restored from production\" -o json"
5407
+ "$ xano tenant backup list t1234-abcd-xyz1\nBackups for tenant t1234-abcd-xyz1:\n - #1 - Pre-deploy backup (2024-01-15)\n - #2 - Daily backup (2024-01-16)\n",
5408
+ "$ xano tenant backup list t1234-abcd-xyz1 -o json"
5399
5409
  ],
5400
5410
  "flags": {
5401
5411
  "profile": {
@@ -5417,25 +5427,6 @@
5417
5427
  "allowNo": false,
5418
5428
  "type": "boolean"
5419
5429
  },
5420
- "description": {
5421
- "char": "d",
5422
- "description": "Backup description",
5423
- "name": "description",
5424
- "required": false,
5425
- "default": "",
5426
- "hasDynamicHelp": false,
5427
- "multiple": false,
5428
- "type": "option"
5429
- },
5430
- "file": {
5431
- "char": "f",
5432
- "description": "Path to the backup file (.tar.gz)",
5433
- "name": "file",
5434
- "required": true,
5435
- "hasDynamicHelp": false,
5436
- "multiple": false,
5437
- "type": "option"
5438
- },
5439
5430
  "output": {
5440
5431
  "char": "o",
5441
5432
  "description": "Output format",
@@ -5450,6 +5441,15 @@
5450
5441
  ],
5451
5442
  "type": "option"
5452
5443
  },
5444
+ "page": {
5445
+ "description": "Page number for pagination",
5446
+ "name": "page",
5447
+ "required": false,
5448
+ "default": 1,
5449
+ "hasDynamicHelp": false,
5450
+ "multiple": false,
5451
+ "type": "option"
5452
+ },
5453
5453
  "workspace": {
5454
5454
  "char": "w",
5455
5455
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -5462,7 +5462,7 @@
5462
5462
  },
5463
5463
  "hasDynamicHelp": false,
5464
5464
  "hiddenAliases": [],
5465
- "id": "tenant:backup:import",
5465
+ "id": "tenant:backup:list",
5466
5466
  "pluginAlias": "@xano/cli",
5467
5467
  "pluginName": "@xano/cli",
5468
5468
  "pluginType": "core",
@@ -5474,7 +5474,7 @@
5474
5474
  "commands",
5475
5475
  "tenant",
5476
5476
  "backup",
5477
- "import",
5477
+ "list",
5478
5478
  "index.js"
5479
5479
  ]
5480
5480
  },
@@ -5692,19 +5692,20 @@
5692
5692
  "index.js"
5693
5693
  ]
5694
5694
  },
5695
- "tenant:cluster:edit": {
5695
+ "tenant:cluster:delete": {
5696
5696
  "aliases": [],
5697
5697
  "args": {
5698
5698
  "cluster_id": {
5699
- "description": "Cluster ID to edit",
5699
+ "description": "Cluster ID to delete",
5700
5700
  "name": "cluster_id",
5701
5701
  "required": true
5702
5702
  }
5703
5703
  },
5704
- "description": "Update an existing tenant cluster",
5704
+ "description": "Delete a tenant cluster. This action cannot be undone.",
5705
5705
  "examples": [
5706
- "$ xano tenant cluster edit 1 --name \"us-east-1-updated\" --description \"Updated cluster\" --domain \"us-east.xano.io\" --type standard\nUpdated tenant cluster: us-east-1-updated (standard) - ID: 1\n",
5707
- "$ xano tenant cluster edit 1 --name \"eu-west\" --description \"\" --domain \"\" --type run -o json"
5706
+ "$ xano tenant cluster delete 3\nAre you sure you want to delete tenant cluster 3? This action cannot be undone. (y/N) y\nTenant cluster 3 deleted successfully\n",
5707
+ "$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
5708
+ "$ xano tenant cluster delete 3 -f -o json"
5708
5709
  ],
5709
5710
  "flags": {
5710
5711
  "profile": {
@@ -5726,31 +5727,13 @@
5726
5727
  "allowNo": false,
5727
5728
  "type": "boolean"
5728
5729
  },
5729
- "description": {
5730
- "char": "d",
5731
- "description": "Cluster description",
5732
- "name": "description",
5733
- "required": true,
5734
- "hasDynamicHelp": false,
5735
- "multiple": false,
5736
- "type": "option"
5737
- },
5738
- "domain": {
5739
- "description": "Custom domain for the cluster",
5740
- "name": "domain",
5741
- "required": true,
5742
- "hasDynamicHelp": false,
5743
- "multiple": false,
5744
- "type": "option"
5745
- },
5746
- "name": {
5747
- "char": "n",
5748
- "description": "Cluster name",
5749
- "name": "name",
5750
- "required": true,
5751
- "hasDynamicHelp": false,
5752
- "multiple": false,
5753
- "type": "option"
5730
+ "force": {
5731
+ "char": "f",
5732
+ "description": "Skip confirmation prompt",
5733
+ "name": "force",
5734
+ "required": false,
5735
+ "allowNo": false,
5736
+ "type": "boolean"
5754
5737
  },
5755
5738
  "output": {
5756
5739
  "char": "o",
@@ -5765,23 +5748,11 @@
5765
5748
  "json"
5766
5749
  ],
5767
5750
  "type": "option"
5768
- },
5769
- "type": {
5770
- "description": "Cluster type",
5771
- "name": "type",
5772
- "required": true,
5773
- "hasDynamicHelp": false,
5774
- "multiple": false,
5775
- "options": [
5776
- "standard",
5777
- "run"
5778
- ],
5779
- "type": "option"
5780
5751
  }
5781
5752
  },
5782
5753
  "hasDynamicHelp": false,
5783
5754
  "hiddenAliases": [],
5784
- "id": "tenant:cluster:edit",
5755
+ "id": "tenant:cluster:delete",
5785
5756
  "pluginAlias": "@xano/cli",
5786
5757
  "pluginName": "@xano/cli",
5787
5758
  "pluginType": "core",
@@ -5793,24 +5764,23 @@
5793
5764
  "commands",
5794
5765
  "tenant",
5795
5766
  "cluster",
5796
- "edit",
5767
+ "delete",
5797
5768
  "index.js"
5798
5769
  ]
5799
5770
  },
5800
- "tenant:cluster:delete": {
5771
+ "tenant:cluster:edit": {
5801
5772
  "aliases": [],
5802
5773
  "args": {
5803
5774
  "cluster_id": {
5804
- "description": "Cluster ID to delete",
5775
+ "description": "Cluster ID to edit",
5805
5776
  "name": "cluster_id",
5806
5777
  "required": true
5807
5778
  }
5808
5779
  },
5809
- "description": "Delete a tenant cluster. This action cannot be undone.",
5780
+ "description": "Update an existing tenant cluster",
5810
5781
  "examples": [
5811
- "$ xano tenant cluster delete 3\nAre you sure you want to delete tenant cluster 3? This action cannot be undone. (y/N) y\nTenant cluster 3 deleted successfully\n",
5812
- "$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
5813
- "$ xano tenant cluster delete 3 -f -o json"
5782
+ "$ xano tenant cluster edit 1 --name \"us-east-1-updated\" --description \"Updated cluster\" --domain \"us-east.xano.io\" --type standard\nUpdated tenant cluster: us-east-1-updated (standard) - ID: 1\n",
5783
+ "$ xano tenant cluster edit 1 --name \"eu-west\" --description \"\" --domain \"\" --type run -o json"
5814
5784
  ],
5815
5785
  "flags": {
5816
5786
  "profile": {
@@ -5832,13 +5802,31 @@
5832
5802
  "allowNo": false,
5833
5803
  "type": "boolean"
5834
5804
  },
5835
- "force": {
5836
- "char": "f",
5837
- "description": "Skip confirmation prompt",
5838
- "name": "force",
5839
- "required": false,
5840
- "allowNo": false,
5841
- "type": "boolean"
5805
+ "description": {
5806
+ "char": "d",
5807
+ "description": "Cluster description",
5808
+ "name": "description",
5809
+ "required": true,
5810
+ "hasDynamicHelp": false,
5811
+ "multiple": false,
5812
+ "type": "option"
5813
+ },
5814
+ "domain": {
5815
+ "description": "Custom domain for the cluster",
5816
+ "name": "domain",
5817
+ "required": true,
5818
+ "hasDynamicHelp": false,
5819
+ "multiple": false,
5820
+ "type": "option"
5821
+ },
5822
+ "name": {
5823
+ "char": "n",
5824
+ "description": "Cluster name",
5825
+ "name": "name",
5826
+ "required": true,
5827
+ "hasDynamicHelp": false,
5828
+ "multiple": false,
5829
+ "type": "option"
5842
5830
  },
5843
5831
  "output": {
5844
5832
  "char": "o",
@@ -5853,11 +5841,23 @@
5853
5841
  "json"
5854
5842
  ],
5855
5843
  "type": "option"
5844
+ },
5845
+ "type": {
5846
+ "description": "Cluster type",
5847
+ "name": "type",
5848
+ "required": true,
5849
+ "hasDynamicHelp": false,
5850
+ "multiple": false,
5851
+ "options": [
5852
+ "standard",
5853
+ "run"
5854
+ ],
5855
+ "type": "option"
5856
5856
  }
5857
5857
  },
5858
5858
  "hasDynamicHelp": false,
5859
5859
  "hiddenAliases": [],
5860
- "id": "tenant:cluster:delete",
5860
+ "id": "tenant:cluster:edit",
5861
5861
  "pluginAlias": "@xano/cli",
5862
5862
  "pluginName": "@xano/cli",
5863
5863
  "pluginType": "core",
@@ -5869,7 +5869,7 @@
5869
5869
  "commands",
5870
5870
  "tenant",
5871
5871
  "cluster",
5872
- "delete",
5872
+ "edit",
5873
5873
  "index.js"
5874
5874
  ]
5875
5875
  },
@@ -6001,7 +6001,7 @@
6001
6001
  "index.js"
6002
6002
  ]
6003
6003
  },
6004
- "tenant:env:delete": {
6004
+ "tenant:env:get": {
6005
6005
  "aliases": [],
6006
6006
  "args": {
6007
6007
  "tenant_name": {
@@ -6010,11 +6010,10 @@
6010
6010
  "required": true
6011
6011
  }
6012
6012
  },
6013
- "description": "Delete an environment variable from a tenant",
6013
+ "description": "Get a single environment variable for a tenant",
6014
6014
  "examples": [
6015
- "$ xano tenant env delete my-tenant --name DATABASE_URL\nAre you sure you want to delete environment variable 'DATABASE_URL' from tenant my-tenant? (y/N) y\nEnvironment variable 'DATABASE_URL' deleted from tenant my-tenant\n",
6016
- "$ xano tenant env delete my-tenant --name DATABASE_URL --force\nEnvironment variable 'DATABASE_URL' deleted from tenant my-tenant\n",
6017
- "$ xano tenant env delete my-tenant --name DATABASE_URL -f -w 5 -o json"
6015
+ "$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
6016
+ "$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
6018
6017
  ],
6019
6018
  "flags": {
6020
6019
  "profile": {
@@ -6036,14 +6035,6 @@
6036
6035
  "allowNo": false,
6037
6036
  "type": "boolean"
6038
6037
  },
6039
- "force": {
6040
- "char": "f",
6041
- "description": "Skip confirmation prompt",
6042
- "name": "force",
6043
- "required": false,
6044
- "allowNo": false,
6045
- "type": "boolean"
6046
- },
6047
6038
  "name": {
6048
6039
  "char": "n",
6049
6040
  "description": "Environment variable name",
@@ -6079,7 +6070,7 @@
6079
6070
  },
6080
6071
  "hasDynamicHelp": false,
6081
6072
  "hiddenAliases": [],
6082
- "id": "tenant:env:delete",
6073
+ "id": "tenant:env:get",
6083
6074
  "pluginAlias": "@xano/cli",
6084
6075
  "pluginName": "@xano/cli",
6085
6076
  "pluginType": "core",
@@ -6091,11 +6082,11 @@
6091
6082
  "commands",
6092
6083
  "tenant",
6093
6084
  "env",
6094
- "delete",
6085
+ "get",
6095
6086
  "index.js"
6096
6087
  ]
6097
6088
  },
6098
- "tenant:env:get": {
6089
+ "tenant:env:get_all": {
6099
6090
  "aliases": [],
6100
6091
  "args": {
6101
6092
  "tenant_name": {
@@ -6104,10 +6095,12 @@
6104
6095
  "required": true
6105
6096
  }
6106
6097
  },
6107
- "description": "Get a single environment variable for a tenant",
6098
+ "description": "Get all environment variables for a tenant and save to a YAML file",
6108
6099
  "examples": [
6109
- "$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
6110
- "$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
6100
+ "$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
6101
+ "$ xano tenant env get_all my-tenant --file ./my-env.yaml",
6102
+ "$ xano tenant env get_all my-tenant --view",
6103
+ "$ xano tenant env get_all my-tenant -o json"
6111
6104
  ],
6112
6105
  "flags": {
6113
6106
  "profile": {
@@ -6127,13 +6120,13 @@
6127
6120
  "name": "verbose",
6128
6121
  "required": false,
6129
6122
  "allowNo": false,
6130
- "type": "boolean"
6131
- },
6132
- "name": {
6133
- "char": "n",
6134
- "description": "Environment variable name",
6135
- "name": "name",
6136
- "required": true,
6123
+ "type": "boolean"
6124
+ },
6125
+ "file": {
6126
+ "char": "f",
6127
+ "description": "Output file path (default: env_<tenant_name>.yaml)",
6128
+ "name": "file",
6129
+ "required": false,
6137
6130
  "hasDynamicHelp": false,
6138
6131
  "multiple": false,
6139
6132
  "type": "option"
@@ -6152,6 +6145,13 @@
6152
6145
  ],
6153
6146
  "type": "option"
6154
6147
  },
6148
+ "view": {
6149
+ "description": "Print environment variables to stdout instead of saving to file",
6150
+ "name": "view",
6151
+ "required": false,
6152
+ "allowNo": false,
6153
+ "type": "boolean"
6154
+ },
6155
6155
  "workspace": {
6156
6156
  "char": "w",
6157
6157
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -6164,7 +6164,7 @@
6164
6164
  },
6165
6165
  "hasDynamicHelp": false,
6166
6166
  "hiddenAliases": [],
6167
- "id": "tenant:env:get",
6167
+ "id": "tenant:env:get_all",
6168
6168
  "pluginAlias": "@xano/cli",
6169
6169
  "pluginName": "@xano/cli",
6170
6170
  "pluginType": "core",
@@ -6176,7 +6176,7 @@
6176
6176
  "commands",
6177
6177
  "tenant",
6178
6178
  "env",
6179
- "get",
6179
+ "get_all",
6180
6180
  "index.js"
6181
6181
  ]
6182
6182
  },
@@ -6256,7 +6256,7 @@
6256
6256
  "index.js"
6257
6257
  ]
6258
6258
  },
6259
- "tenant:env:get_all": {
6259
+ "tenant:env:delete": {
6260
6260
  "aliases": [],
6261
6261
  "args": {
6262
6262
  "tenant_name": {
@@ -6265,12 +6265,11 @@
6265
6265
  "required": true
6266
6266
  }
6267
6267
  },
6268
- "description": "Get all environment variables for a tenant and save to a YAML file",
6268
+ "description": "Delete an environment variable from a tenant",
6269
6269
  "examples": [
6270
- "$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
6271
- "$ xano tenant env get_all my-tenant --file ./my-env.yaml",
6272
- "$ xano tenant env get_all my-tenant --view",
6273
- "$ xano tenant env get_all my-tenant -o json"
6270
+ "$ xano tenant env delete my-tenant --name DATABASE_URL\nAre you sure you want to delete environment variable 'DATABASE_URL' from tenant my-tenant? (y/N) y\nEnvironment variable 'DATABASE_URL' deleted from tenant my-tenant\n",
6271
+ "$ xano tenant env delete my-tenant --name DATABASE_URL --force\nEnvironment variable 'DATABASE_URL' deleted from tenant my-tenant\n",
6272
+ "$ xano tenant env delete my-tenant --name DATABASE_URL -f -w 5 -o json"
6274
6273
  ],
6275
6274
  "flags": {
6276
6275
  "profile": {
@@ -6292,11 +6291,19 @@
6292
6291
  "allowNo": false,
6293
6292
  "type": "boolean"
6294
6293
  },
6295
- "file": {
6294
+ "force": {
6296
6295
  "char": "f",
6297
- "description": "Output file path (default: env_<tenant_name>.yaml)",
6298
- "name": "file",
6296
+ "description": "Skip confirmation prompt",
6297
+ "name": "force",
6299
6298
  "required": false,
6299
+ "allowNo": false,
6300
+ "type": "boolean"
6301
+ },
6302
+ "name": {
6303
+ "char": "n",
6304
+ "description": "Environment variable name",
6305
+ "name": "name",
6306
+ "required": true,
6300
6307
  "hasDynamicHelp": false,
6301
6308
  "multiple": false,
6302
6309
  "type": "option"
@@ -6315,13 +6322,6 @@
6315
6322
  ],
6316
6323
  "type": "option"
6317
6324
  },
6318
- "view": {
6319
- "description": "Print environment variables to stdout instead of saving to file",
6320
- "name": "view",
6321
- "required": false,
6322
- "allowNo": false,
6323
- "type": "boolean"
6324
- },
6325
6325
  "workspace": {
6326
6326
  "char": "w",
6327
6327
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -6334,7 +6334,7 @@
6334
6334
  },
6335
6335
  "hasDynamicHelp": false,
6336
6336
  "hiddenAliases": [],
6337
- "id": "tenant:env:get_all",
6337
+ "id": "tenant:env:delete",
6338
6338
  "pluginAlias": "@xano/cli",
6339
6339
  "pluginName": "@xano/cli",
6340
6340
  "pluginType": "core",
@@ -6346,11 +6346,11 @@
6346
6346
  "commands",
6347
6347
  "tenant",
6348
6348
  "env",
6349
- "get_all",
6349
+ "delete",
6350
6350
  "index.js"
6351
6351
  ]
6352
6352
  },
6353
- "tenant:env:set": {
6353
+ "tenant:env:set_all": {
6354
6354
  "aliases": [],
6355
6355
  "args": {
6356
6356
  "tenant_name": {
@@ -6359,10 +6359,11 @@
6359
6359
  "required": true
6360
6360
  }
6361
6361
  },
6362
- "description": "Set (create or update) an environment variable for a tenant",
6362
+ "description": "Set all environment variables for a tenant from a YAML file (replaces all existing)",
6363
6363
  "examples": [
6364
- "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
6365
- "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
6364
+ "$ xano tenant env set_all my-tenant\nReads from env_my-tenant.yaml\n",
6365
+ "$ xano tenant env set_all my-tenant --file ./my-env.yaml",
6366
+ "$ xano tenant env set_all my-tenant -o json"
6366
6367
  ],
6367
6368
  "flags": {
6368
6369
  "profile": {
@@ -6384,11 +6385,18 @@
6384
6385
  "allowNo": false,
6385
6386
  "type": "boolean"
6386
6387
  },
6387
- "name": {
6388
- "char": "n",
6389
- "description": "Environment variable name",
6390
- "name": "name",
6391
- "required": true,
6388
+ "clean": {
6389
+ "description": "Remove the source file after successful upload",
6390
+ "name": "clean",
6391
+ "required": false,
6392
+ "allowNo": false,
6393
+ "type": "boolean"
6394
+ },
6395
+ "file": {
6396
+ "char": "f",
6397
+ "description": "Path to env file (default: env_<tenant_name>.yaml)",
6398
+ "name": "file",
6399
+ "required": false,
6392
6400
  "hasDynamicHelp": false,
6393
6401
  "multiple": false,
6394
6402
  "type": "option"
@@ -6407,14 +6415,6 @@
6407
6415
  ],
6408
6416
  "type": "option"
6409
6417
  },
6410
- "value": {
6411
- "description": "Environment variable value",
6412
- "name": "value",
6413
- "required": true,
6414
- "hasDynamicHelp": false,
6415
- "multiple": false,
6416
- "type": "option"
6417
- },
6418
6418
  "workspace": {
6419
6419
  "char": "w",
6420
6420
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -6427,7 +6427,7 @@
6427
6427
  },
6428
6428
  "hasDynamicHelp": false,
6429
6429
  "hiddenAliases": [],
6430
- "id": "tenant:env:set",
6430
+ "id": "tenant:env:set_all",
6431
6431
  "pluginAlias": "@xano/cli",
6432
6432
  "pluginName": "@xano/cli",
6433
6433
  "pluginType": "core",
@@ -6439,11 +6439,11 @@
6439
6439
  "commands",
6440
6440
  "tenant",
6441
6441
  "env",
6442
- "set",
6442
+ "set_all",
6443
6443
  "index.js"
6444
6444
  ]
6445
6445
  },
6446
- "tenant:env:set_all": {
6446
+ "tenant:license:get": {
6447
6447
  "aliases": [],
6448
6448
  "args": {
6449
6449
  "tenant_name": {
@@ -6452,11 +6452,12 @@
6452
6452
  "required": true
6453
6453
  }
6454
6454
  },
6455
- "description": "Set all environment variables for a tenant from a YAML file (replaces all existing)",
6455
+ "description": "Get the license for a tenant",
6456
6456
  "examples": [
6457
- "$ xano tenant env set_all my-tenant\nReads from env_my-tenant.yaml\n",
6458
- "$ xano tenant env set_all my-tenant --file ./my-env.yaml",
6459
- "$ xano tenant env set_all my-tenant -o json"
6457
+ "$ xano tenant license get my-tenant\nLicense saved to license_my-tenant.yaml\n",
6458
+ "$ xano tenant license get my-tenant --file ./my-license.yaml\nLicense saved to my-license.yaml\n",
6459
+ "$ xano tenant license get my-tenant --view",
6460
+ "$ xano tenant license get my-tenant -o json"
6460
6461
  ],
6461
6462
  "flags": {
6462
6463
  "profile": {
@@ -6478,16 +6479,9 @@
6478
6479
  "allowNo": false,
6479
6480
  "type": "boolean"
6480
6481
  },
6481
- "clean": {
6482
- "description": "Remove the source file after successful upload",
6483
- "name": "clean",
6484
- "required": false,
6485
- "allowNo": false,
6486
- "type": "boolean"
6487
- },
6488
6482
  "file": {
6489
6483
  "char": "f",
6490
- "description": "Path to env file (default: env_<tenant_name>.yaml)",
6484
+ "description": "Output file path (default: license_<tenant_name>.yaml)",
6491
6485
  "name": "file",
6492
6486
  "required": false,
6493
6487
  "hasDynamicHelp": false,
@@ -6508,6 +6502,13 @@
6508
6502
  ],
6509
6503
  "type": "option"
6510
6504
  },
6505
+ "view": {
6506
+ "description": "Print license to stdout instead of saving to file",
6507
+ "name": "view",
6508
+ "required": false,
6509
+ "allowNo": false,
6510
+ "type": "boolean"
6511
+ },
6511
6512
  "workspace": {
6512
6513
  "char": "w",
6513
6514
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -6520,7 +6521,7 @@
6520
6521
  },
6521
6522
  "hasDynamicHelp": false,
6522
6523
  "hiddenAliases": [],
6523
- "id": "tenant:env:set_all",
6524
+ "id": "tenant:license:get",
6524
6525
  "pluginAlias": "@xano/cli",
6525
6526
  "pluginName": "@xano/cli",
6526
6527
  "pluginType": "core",
@@ -6531,12 +6532,12 @@
6531
6532
  "dist",
6532
6533
  "commands",
6533
6534
  "tenant",
6534
- "env",
6535
- "set_all",
6535
+ "license",
6536
+ "get",
6536
6537
  "index.js"
6537
6538
  ]
6538
6539
  },
6539
- "tenant:license:get": {
6540
+ "tenant:env:set": {
6540
6541
  "aliases": [],
6541
6542
  "args": {
6542
6543
  "tenant_name": {
@@ -6545,12 +6546,10 @@
6545
6546
  "required": true
6546
6547
  }
6547
6548
  },
6548
- "description": "Get the license for a tenant",
6549
+ "description": "Set (create or update) an environment variable for a tenant",
6549
6550
  "examples": [
6550
- "$ xano tenant license get my-tenant\nLicense saved to license_my-tenant.yaml\n",
6551
- "$ xano tenant license get my-tenant --file ./my-license.yaml\nLicense saved to my-license.yaml\n",
6552
- "$ xano tenant license get my-tenant --view",
6553
- "$ xano tenant license get my-tenant -o json"
6551
+ "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
6552
+ "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
6554
6553
  ],
6555
6554
  "flags": {
6556
6555
  "profile": {
@@ -6572,11 +6571,11 @@
6572
6571
  "allowNo": false,
6573
6572
  "type": "boolean"
6574
6573
  },
6575
- "file": {
6576
- "char": "f",
6577
- "description": "Output file path (default: license_<tenant_name>.yaml)",
6578
- "name": "file",
6579
- "required": false,
6574
+ "name": {
6575
+ "char": "n",
6576
+ "description": "Environment variable name",
6577
+ "name": "name",
6578
+ "required": true,
6580
6579
  "hasDynamicHelp": false,
6581
6580
  "multiple": false,
6582
6581
  "type": "option"
@@ -6595,12 +6594,13 @@
6595
6594
  ],
6596
6595
  "type": "option"
6597
6596
  },
6598
- "view": {
6599
- "description": "Print license to stdout instead of saving to file",
6600
- "name": "view",
6601
- "required": false,
6602
- "allowNo": false,
6603
- "type": "boolean"
6597
+ "value": {
6598
+ "description": "Environment variable value",
6599
+ "name": "value",
6600
+ "required": true,
6601
+ "hasDynamicHelp": false,
6602
+ "multiple": false,
6603
+ "type": "option"
6604
6604
  },
6605
6605
  "workspace": {
6606
6606
  "char": "w",
@@ -6614,7 +6614,7 @@
6614
6614
  },
6615
6615
  "hasDynamicHelp": false,
6616
6616
  "hiddenAliases": [],
6617
- "id": "tenant:license:get",
6617
+ "id": "tenant:env:set",
6618
6618
  "pluginAlias": "@xano/cli",
6619
6619
  "pluginName": "@xano/cli",
6620
6620
  "pluginType": "core",
@@ -6625,8 +6625,8 @@
6625
6625
  "dist",
6626
6626
  "commands",
6627
6627
  "tenant",
6628
- "license",
6629
- "get",
6628
+ "env",
6629
+ "set",
6630
6630
  "index.js"
6631
6631
  ]
6632
6632
  },
@@ -6836,7 +6836,7 @@
6836
6836
  "index.js"
6837
6837
  ]
6838
6838
  },
6839
- "tenant:cluster:license:get": {
6839
+ "tenant:cluster:license:set": {
6840
6840
  "aliases": [],
6841
6841
  "args": {
6842
6842
  "cluster_id": {
@@ -6845,12 +6845,12 @@
6845
6845
  "required": true
6846
6846
  }
6847
6847
  },
6848
- "description": "Get the license (kubeconfig) for a tenant cluster",
6848
+ "description": "Set/update the license (kubeconfig) for a tenant cluster",
6849
6849
  "examples": [
6850
- "$ xano tenant cluster license get 1\nLicense saved to kubeconfig-1.yaml\n",
6851
- "$ xano tenant cluster license get 1 --file ./my-kubeconfig.yaml\nLicense saved to my-kubeconfig.yaml\n",
6852
- "$ xano tenant cluster license get 1 --view",
6853
- "$ xano tenant cluster license get 1 -o json"
6850
+ "$ xano tenant cluster license set 1\nReads from kubeconfig-1.yaml\n",
6851
+ "$ xano tenant cluster license set 1 --file ./kubeconfig.yaml",
6852
+ "$ xano tenant cluster license set 1 --value 'apiVersion: v1...'",
6853
+ "$ xano tenant cluster license set 1 -o json"
6854
6854
  ],
6855
6855
  "flags": {
6856
6856
  "profile": {
@@ -6872,9 +6872,22 @@
6872
6872
  "allowNo": false,
6873
6873
  "type": "boolean"
6874
6874
  },
6875
+ "clean": {
6876
+ "description": "Remove the source file after successful upload",
6877
+ "exclusive": [
6878
+ "value"
6879
+ ],
6880
+ "name": "clean",
6881
+ "required": false,
6882
+ "allowNo": false,
6883
+ "type": "boolean"
6884
+ },
6875
6885
  "file": {
6876
6886
  "char": "f",
6877
- "description": "Output file path (default: kubeconfig_<cluster_id>.yaml)",
6887
+ "description": "Path to kubeconfig file (default: kubeconfig_<cluster_id>.yaml)",
6888
+ "exclusive": [
6889
+ "value"
6890
+ ],
6878
6891
  "name": "file",
6879
6892
  "required": false,
6880
6893
  "hasDynamicHelp": false,
@@ -6895,17 +6908,22 @@
6895
6908
  ],
6896
6909
  "type": "option"
6897
6910
  },
6898
- "view": {
6899
- "description": "Print license to stdout instead of saving to file",
6900
- "name": "view",
6911
+ "value": {
6912
+ "description": "Inline kubeconfig YAML value",
6913
+ "exclusive": [
6914
+ "file",
6915
+ "clean"
6916
+ ],
6917
+ "name": "value",
6901
6918
  "required": false,
6902
- "allowNo": false,
6903
- "type": "boolean"
6919
+ "hasDynamicHelp": false,
6920
+ "multiple": false,
6921
+ "type": "option"
6904
6922
  }
6905
6923
  },
6906
6924
  "hasDynamicHelp": false,
6907
6925
  "hiddenAliases": [],
6908
- "id": "tenant:cluster:license:get",
6926
+ "id": "tenant:cluster:license:set",
6909
6927
  "pluginAlias": "@xano/cli",
6910
6928
  "pluginName": "@xano/cli",
6911
6929
  "pluginType": "core",
@@ -6918,11 +6936,11 @@
6918
6936
  "tenant",
6919
6937
  "cluster",
6920
6938
  "license",
6921
- "get",
6939
+ "set",
6922
6940
  "index.js"
6923
6941
  ]
6924
6942
  },
6925
- "tenant:cluster:license:set": {
6943
+ "tenant:cluster:license:get": {
6926
6944
  "aliases": [],
6927
6945
  "args": {
6928
6946
  "cluster_id": {
@@ -6931,12 +6949,12 @@
6931
6949
  "required": true
6932
6950
  }
6933
6951
  },
6934
- "description": "Set/update the license (kubeconfig) for a tenant cluster",
6952
+ "description": "Get the license (kubeconfig) for a tenant cluster",
6935
6953
  "examples": [
6936
- "$ xano tenant cluster license set 1\nReads from kubeconfig-1.yaml\n",
6937
- "$ xano tenant cluster license set 1 --file ./kubeconfig.yaml",
6938
- "$ xano tenant cluster license set 1 --value 'apiVersion: v1...'",
6939
- "$ xano tenant cluster license set 1 -o json"
6954
+ "$ xano tenant cluster license get 1\nLicense saved to kubeconfig-1.yaml\n",
6955
+ "$ xano tenant cluster license get 1 --file ./my-kubeconfig.yaml\nLicense saved to my-kubeconfig.yaml\n",
6956
+ "$ xano tenant cluster license get 1 --view",
6957
+ "$ xano tenant cluster license get 1 -o json"
6940
6958
  ],
6941
6959
  "flags": {
6942
6960
  "profile": {
@@ -6958,22 +6976,9 @@
6958
6976
  "allowNo": false,
6959
6977
  "type": "boolean"
6960
6978
  },
6961
- "clean": {
6962
- "description": "Remove the source file after successful upload",
6963
- "exclusive": [
6964
- "value"
6965
- ],
6966
- "name": "clean",
6967
- "required": false,
6968
- "allowNo": false,
6969
- "type": "boolean"
6970
- },
6971
6979
  "file": {
6972
6980
  "char": "f",
6973
- "description": "Path to kubeconfig file (default: kubeconfig_<cluster_id>.yaml)",
6974
- "exclusive": [
6975
- "value"
6976
- ],
6981
+ "description": "Output file path (default: kubeconfig_<cluster_id>.yaml)",
6977
6982
  "name": "file",
6978
6983
  "required": false,
6979
6984
  "hasDynamicHelp": false,
@@ -6994,22 +6999,17 @@
6994
6999
  ],
6995
7000
  "type": "option"
6996
7001
  },
6997
- "value": {
6998
- "description": "Inline kubeconfig YAML value",
6999
- "exclusive": [
7000
- "file",
7001
- "clean"
7002
- ],
7003
- "name": "value",
7002
+ "view": {
7003
+ "description": "Print license to stdout instead of saving to file",
7004
+ "name": "view",
7004
7005
  "required": false,
7005
- "hasDynamicHelp": false,
7006
- "multiple": false,
7007
- "type": "option"
7006
+ "allowNo": false,
7007
+ "type": "boolean"
7008
7008
  }
7009
7009
  },
7010
7010
  "hasDynamicHelp": false,
7011
7011
  "hiddenAliases": [],
7012
- "id": "tenant:cluster:license:set",
7012
+ "id": "tenant:cluster:license:get",
7013
7013
  "pluginAlias": "@xano/cli",
7014
7014
  "pluginName": "@xano/cli",
7015
7015
  "pluginType": "core",
@@ -7022,10 +7022,10 @@
7022
7022
  "tenant",
7023
7023
  "cluster",
7024
7024
  "license",
7025
- "set",
7025
+ "get",
7026
7026
  "index.js"
7027
7027
  ]
7028
7028
  }
7029
7029
  },
7030
- "version": "0.0.56"
7030
+ "version": "0.0.58"
7031
7031
  }