@xano/cli 0.0.95-beta.10 → 0.0.95-beta.12

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 (32) hide show
  1. package/dist/base-command.d.ts +5 -0
  2. package/dist/base-command.js +26 -2
  3. package/dist/commands/sandbox/delete/index.d.ts +12 -0
  4. package/dist/commands/sandbox/delete/index.js +71 -0
  5. package/dist/commands/sandbox/env/delete/index.js +4 -2
  6. package/dist/commands/sandbox/env/get/index.js +4 -2
  7. package/dist/commands/sandbox/env/get_all/index.js +4 -2
  8. package/dist/commands/sandbox/env/list/index.js +4 -2
  9. package/dist/commands/sandbox/env/set/index.js +4 -2
  10. package/dist/commands/sandbox/env/set_all/index.js +4 -2
  11. package/dist/commands/sandbox/get/index.js +2 -0
  12. package/dist/commands/sandbox/license/get/index.js +4 -2
  13. package/dist/commands/sandbox/license/set/index.js +4 -2
  14. package/dist/commands/sandbox/pull/index.js +4 -2
  15. package/dist/commands/sandbox/push/index.d.ts +1 -0
  16. package/dist/commands/sandbox/push/index.js +28 -3
  17. package/dist/commands/sandbox/reset/index.js +4 -2
  18. package/dist/commands/sandbox/review/index.js +4 -2
  19. package/dist/commands/sandbox/unit_test/list/index.js +4 -2
  20. package/dist/commands/sandbox/unit_test/run/index.js +4 -2
  21. package/dist/commands/sandbox/unit_test/run_all/index.js +4 -0
  22. package/dist/commands/sandbox/workflow_test/delete/index.js +4 -2
  23. package/dist/commands/sandbox/workflow_test/get/index.js +4 -2
  24. package/dist/commands/sandbox/workflow_test/list/index.js +4 -2
  25. package/dist/commands/sandbox/workflow_test/run/index.js +4 -2
  26. package/dist/commands/sandbox/workflow_test/run_all/index.js +4 -0
  27. package/dist/commands/workspace/push/index.d.ts +1 -0
  28. package/dist/commands/workspace/push/index.js +30 -4
  29. package/dist/utils/reference-checker.d.ts +45 -0
  30. package/dist/utils/reference-checker.js +145 -0
  31. package/oclif.manifest.json +708 -654
  32. package/package.json +1 -1
@@ -470,73 +470,6 @@
470
470
  "index.js"
471
471
  ]
472
472
  },
473
- "branch:list": {
474
- "aliases": [],
475
- "args": {
476
- "workspace_id": {
477
- "description": "Workspace ID (uses profile workspace if not provided)",
478
- "name": "workspace_id",
479
- "required": false
480
- }
481
- },
482
- "description": "List all branches in a workspace",
483
- "examples": [
484
- "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
485
- "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
486
- "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
487
- ],
488
- "flags": {
489
- "profile": {
490
- "char": "p",
491
- "description": "Profile to use (uses default profile if not specified)",
492
- "env": "XANO_PROFILE",
493
- "name": "profile",
494
- "required": false,
495
- "hasDynamicHelp": false,
496
- "multiple": false,
497
- "type": "option"
498
- },
499
- "verbose": {
500
- "char": "v",
501
- "description": "Show detailed request/response information",
502
- "env": "XANO_VERBOSE",
503
- "name": "verbose",
504
- "required": false,
505
- "allowNo": false,
506
- "type": "boolean"
507
- },
508
- "output": {
509
- "char": "o",
510
- "description": "Output format",
511
- "name": "output",
512
- "required": false,
513
- "default": "summary",
514
- "hasDynamicHelp": false,
515
- "multiple": false,
516
- "options": [
517
- "summary",
518
- "json"
519
- ],
520
- "type": "option"
521
- }
522
- },
523
- "hasDynamicHelp": false,
524
- "hiddenAliases": [],
525
- "id": "branch:list",
526
- "pluginAlias": "@xano/cli",
527
- "pluginName": "@xano/cli",
528
- "pluginType": "core",
529
- "strict": true,
530
- "enableJsonFlag": false,
531
- "isESM": true,
532
- "relativePath": [
533
- "dist",
534
- "commands",
535
- "branch",
536
- "list",
537
- "index.js"
538
- ]
539
- },
540
473
  "branch:set_live": {
541
474
  "aliases": [],
542
475
  "args": {
@@ -621,25 +554,16 @@
621
554
  "index.js"
622
555
  ]
623
556
  },
624
- "function:edit": {
557
+ "function:create": {
625
558
  "aliases": [],
626
- "args": {
627
- "function_id": {
628
- "description": "Function ID to edit",
629
- "name": "function_id",
630
- "required": false
631
- }
632
- },
633
- "description": "Edit a function in a workspace",
559
+ "args": {},
560
+ "description": "Create a new function in a workspace",
634
561
  "examples": [
635
- "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
636
- "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
637
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
638
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
639
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
640
- "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
641
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
642
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
562
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
563
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
564
+ "$ 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",
565
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
566
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
643
567
  ],
644
568
  "flags": {
645
569
  "profile": {
@@ -663,7 +587,10 @@
663
587
  },
664
588
  "edit": {
665
589
  "char": "e",
666
- "description": "Open file in editor before updating function (requires --file)",
590
+ "dependsOn": [
591
+ "file"
592
+ ],
593
+ "description": "Open file in editor before creating function (requires --file)",
667
594
  "name": "edit",
668
595
  "required": false,
669
596
  "allowNo": false,
@@ -695,13 +622,6 @@
695
622
  ],
696
623
  "type": "option"
697
624
  },
698
- "publish": {
699
- "description": "Publish the function after editing",
700
- "name": "publish",
701
- "required": false,
702
- "allowNo": false,
703
- "type": "boolean"
704
- },
705
625
  "stdin": {
706
626
  "char": "s",
707
627
  "description": "Read XanoScript code from stdin",
@@ -725,7 +645,7 @@
725
645
  },
726
646
  "hasDynamicHelp": false,
727
647
  "hiddenAliases": [],
728
- "id": "function:edit",
648
+ "id": "function:create",
729
649
  "pluginAlias": "@xano/cli",
730
650
  "pluginName": "@xano/cli",
731
651
  "pluginType": "core",
@@ -736,20 +656,29 @@
736
656
  "dist",
737
657
  "commands",
738
658
  "function",
739
- "edit",
659
+ "create",
740
660
  "index.js"
741
661
  ]
742
662
  },
743
- "function:create": {
663
+ "function:edit": {
744
664
  "aliases": [],
745
- "args": {},
746
- "description": "Create a new function in a workspace",
665
+ "args": {
666
+ "function_id": {
667
+ "description": "Function ID to edit",
668
+ "name": "function_id",
669
+ "required": false
670
+ }
671
+ },
672
+ "description": "Edit a function in a workspace",
747
673
  "examples": [
748
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
749
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
750
- "$ 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",
751
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
752
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
674
+ "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
675
+ "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
676
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
677
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
678
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
679
+ "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
680
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
681
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
753
682
  ],
754
683
  "flags": {
755
684
  "profile": {
@@ -773,10 +702,7 @@
773
702
  },
774
703
  "edit": {
775
704
  "char": "e",
776
- "dependsOn": [
777
- "file"
778
- ],
779
- "description": "Open file in editor before creating function (requires --file)",
705
+ "description": "Open file in editor before updating function (requires --file)",
780
706
  "name": "edit",
781
707
  "required": false,
782
708
  "allowNo": false,
@@ -808,6 +734,13 @@
808
734
  ],
809
735
  "type": "option"
810
736
  },
737
+ "publish": {
738
+ "description": "Publish the function after editing",
739
+ "name": "publish",
740
+ "required": false,
741
+ "allowNo": false,
742
+ "type": "boolean"
743
+ },
811
744
  "stdin": {
812
745
  "char": "s",
813
746
  "description": "Read XanoScript code from stdin",
@@ -831,7 +764,7 @@
831
764
  },
832
765
  "hasDynamicHelp": false,
833
766
  "hiddenAliases": [],
834
- "id": "function:create",
767
+ "id": "function:edit",
835
768
  "pluginAlias": "@xano/cli",
836
769
  "pluginName": "@xano/cli",
837
770
  "pluginType": "core",
@@ -842,7 +775,7 @@
842
775
  "dist",
843
776
  "commands",
844
777
  "function",
845
- "create",
778
+ "edit",
846
779
  "index.js"
847
780
  ]
848
781
  },
@@ -1691,32 +1624,6 @@
1691
1624
  "index.js"
1692
1625
  ]
1693
1626
  },
1694
- "profile:workspace": {
1695
- "aliases": [],
1696
- "args": {},
1697
- "description": "Print the workspace ID for the default profile",
1698
- "examples": [
1699
- "$ xano profile:workspace\nabc123-workspace-id\n",
1700
- "$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
1701
- ],
1702
- "flags": {},
1703
- "hasDynamicHelp": false,
1704
- "hiddenAliases": [],
1705
- "id": "profile:workspace",
1706
- "pluginAlias": "@xano/cli",
1707
- "pluginName": "@xano/cli",
1708
- "pluginType": "core",
1709
- "strict": true,
1710
- "enableJsonFlag": false,
1711
- "isESM": true,
1712
- "relativePath": [
1713
- "dist",
1714
- "commands",
1715
- "profile",
1716
- "workspace",
1717
- "index.js"
1718
- ]
1719
- },
1720
1627
  "release:create": {
1721
1628
  "aliases": [],
1722
1629
  "args": {},
@@ -1828,6 +1735,32 @@
1828
1735
  "index.js"
1829
1736
  ]
1830
1737
  },
1738
+ "profile:workspace": {
1739
+ "aliases": [],
1740
+ "args": {},
1741
+ "description": "Print the workspace ID for the default profile",
1742
+ "examples": [
1743
+ "$ xano profile:workspace\nabc123-workspace-id\n",
1744
+ "$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
1745
+ ],
1746
+ "flags": {},
1747
+ "hasDynamicHelp": false,
1748
+ "hiddenAliases": [],
1749
+ "id": "profile:workspace",
1750
+ "pluginAlias": "@xano/cli",
1751
+ "pluginName": "@xano/cli",
1752
+ "pluginType": "core",
1753
+ "strict": true,
1754
+ "enableJsonFlag": false,
1755
+ "isESM": true,
1756
+ "relativePath": [
1757
+ "dist",
1758
+ "commands",
1759
+ "profile",
1760
+ "workspace",
1761
+ "index.js"
1762
+ ]
1763
+ },
1831
1764
  "release:delete": {
1832
1765
  "aliases": [],
1833
1766
  "args": {
@@ -1912,19 +1845,20 @@
1912
1845
  "index.js"
1913
1846
  ]
1914
1847
  },
1915
- "release:edit": {
1848
+ "release:deploy": {
1916
1849
  "aliases": [],
1917
1850
  "args": {
1918
1851
  "release_name": {
1919
- "description": "Release name to edit",
1852
+ "description": "Name of the release to deploy",
1920
1853
  "name": "release_name",
1921
1854
  "required": true
1922
1855
  }
1923
1856
  },
1924
- "description": "Edit an existing release",
1857
+ "description": "Deploy a release to its workspace as a new branch",
1925
1858
  "examples": [
1926
- "$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
1927
- "$ xano release edit v1.0 --description \"New description\" -o json"
1859
+ "$ xano release deploy \"v1.0\"\nDeployed release \"v1.0\" to workspace 40 (branch: v1.0, set live)\n",
1860
+ "$ xano release deploy \"v1.0\" --branch \"restore-v1\" --no-set_live",
1861
+ "$ xano release deploy \"v1.0\" -w 40 -o json"
1928
1862
  ],
1929
1863
  "flags": {
1930
1864
  "profile": {
@@ -1946,19 +1880,10 @@
1946
1880
  "allowNo": false,
1947
1881
  "type": "boolean"
1948
1882
  },
1949
- "description": {
1950
- "char": "d",
1951
- "description": "New description",
1952
- "name": "description",
1953
- "required": false,
1954
- "hasDynamicHelp": false,
1955
- "multiple": false,
1956
- "type": "option"
1957
- },
1958
- "name": {
1959
- "char": "n",
1960
- "description": "New name for the release",
1961
- "name": "name",
1883
+ "branch": {
1884
+ "char": "b",
1885
+ "description": "Branch label for the new branch (defaults to release branch name)",
1886
+ "name": "branch",
1962
1887
  "required": false,
1963
1888
  "hasDynamicHelp": false,
1964
1889
  "multiple": false,
@@ -1978,6 +1903,13 @@
1978
1903
  ],
1979
1904
  "type": "option"
1980
1905
  },
1906
+ "set_live": {
1907
+ "description": "Set the new branch as live",
1908
+ "name": "set_live",
1909
+ "required": false,
1910
+ "allowNo": false,
1911
+ "type": "boolean"
1912
+ },
1981
1913
  "workspace": {
1982
1914
  "char": "w",
1983
1915
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -1990,7 +1922,7 @@
1990
1922
  },
1991
1923
  "hasDynamicHelp": false,
1992
1924
  "hiddenAliases": [],
1993
- "id": "release:edit",
1925
+ "id": "release:deploy",
1994
1926
  "pluginAlias": "@xano/cli",
1995
1927
  "pluginName": "@xano/cli",
1996
1928
  "pluginType": "core",
@@ -2001,24 +1933,23 @@
2001
1933
  "dist",
2002
1934
  "commands",
2003
1935
  "release",
2004
- "edit",
1936
+ "deploy",
2005
1937
  "index.js"
2006
1938
  ]
2007
1939
  },
2008
- "release:deploy": {
1940
+ "release:edit": {
2009
1941
  "aliases": [],
2010
1942
  "args": {
2011
1943
  "release_name": {
2012
- "description": "Name of the release to deploy",
1944
+ "description": "Release name to edit",
2013
1945
  "name": "release_name",
2014
1946
  "required": true
2015
1947
  }
2016
1948
  },
2017
- "description": "Deploy a release to its workspace as a new branch",
1949
+ "description": "Edit an existing release",
2018
1950
  "examples": [
2019
- "$ xano release deploy \"v1.0\"\nDeployed release \"v1.0\" to workspace 40 (branch: v1.0, set live)\n",
2020
- "$ xano release deploy \"v1.0\" --branch \"restore-v1\" --no-set_live",
2021
- "$ xano release deploy \"v1.0\" -w 40 -o json"
1951
+ "$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
1952
+ "$ xano release edit v1.0 --description \"New description\" -o json"
2022
1953
  ],
2023
1954
  "flags": {
2024
1955
  "profile": {
@@ -2040,11 +1971,20 @@
2040
1971
  "allowNo": false,
2041
1972
  "type": "boolean"
2042
1973
  },
2043
- "branch": {
2044
- "char": "b",
2045
- "description": "Branch label for the new branch (defaults to release branch name)",
2046
- "name": "branch",
2047
- "required": false,
1974
+ "description": {
1975
+ "char": "d",
1976
+ "description": "New description",
1977
+ "name": "description",
1978
+ "required": false,
1979
+ "hasDynamicHelp": false,
1980
+ "multiple": false,
1981
+ "type": "option"
1982
+ },
1983
+ "name": {
1984
+ "char": "n",
1985
+ "description": "New name for the release",
1986
+ "name": "name",
1987
+ "required": false,
2048
1988
  "hasDynamicHelp": false,
2049
1989
  "multiple": false,
2050
1990
  "type": "option"
@@ -2063,13 +2003,6 @@
2063
2003
  ],
2064
2004
  "type": "option"
2065
2005
  },
2066
- "set_live": {
2067
- "description": "Set the new branch as live",
2068
- "name": "set_live",
2069
- "required": false,
2070
- "allowNo": false,
2071
- "type": "boolean"
2072
- },
2073
2006
  "workspace": {
2074
2007
  "char": "w",
2075
2008
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -2082,7 +2015,7 @@
2082
2015
  },
2083
2016
  "hasDynamicHelp": false,
2084
2017
  "hiddenAliases": [],
2085
- "id": "release:deploy",
2018
+ "id": "release:edit",
2086
2019
  "pluginAlias": "@xano/cli",
2087
2020
  "pluginName": "@xano/cli",
2088
2021
  "pluginType": "core",
@@ -2093,7 +2026,7 @@
2093
2026
  "dist",
2094
2027
  "commands",
2095
2028
  "release",
2096
- "deploy",
2029
+ "edit",
2097
2030
  "index.js"
2098
2031
  ]
2099
2032
  },
@@ -2606,6 +2539,60 @@
2606
2539
  "index.js"
2607
2540
  ]
2608
2541
  },
2542
+ "sandbox:delete": {
2543
+ "aliases": [],
2544
+ "args": {},
2545
+ "description": "Delete your sandbox environment completely (debugging only — it will be re-created on next access)",
2546
+ "examples": [
2547
+ "$ xano sandbox delete\nAre you sure you want to DELETE your sandbox environment? This destroys all data. (y/N) y\nSandbox environment deleted.\n",
2548
+ "$ xano sandbox delete --force"
2549
+ ],
2550
+ "flags": {
2551
+ "profile": {
2552
+ "char": "p",
2553
+ "description": "Profile to use (uses default profile if not specified)",
2554
+ "env": "XANO_PROFILE",
2555
+ "name": "profile",
2556
+ "required": false,
2557
+ "hasDynamicHelp": false,
2558
+ "multiple": false,
2559
+ "type": "option"
2560
+ },
2561
+ "verbose": {
2562
+ "char": "v",
2563
+ "description": "Show detailed request/response information",
2564
+ "env": "XANO_VERBOSE",
2565
+ "name": "verbose",
2566
+ "required": false,
2567
+ "allowNo": false,
2568
+ "type": "boolean"
2569
+ },
2570
+ "force": {
2571
+ "char": "f",
2572
+ "description": "Skip confirmation prompt",
2573
+ "name": "force",
2574
+ "required": false,
2575
+ "allowNo": false,
2576
+ "type": "boolean"
2577
+ }
2578
+ },
2579
+ "hasDynamicHelp": false,
2580
+ "hiddenAliases": [],
2581
+ "id": "sandbox:delete",
2582
+ "pluginAlias": "@xano/cli",
2583
+ "pluginName": "@xano/cli",
2584
+ "pluginType": "core",
2585
+ "strict": true,
2586
+ "enableJsonFlag": false,
2587
+ "isESM": true,
2588
+ "relativePath": [
2589
+ "dist",
2590
+ "commands",
2591
+ "sandbox",
2592
+ "delete",
2593
+ "index.js"
2594
+ ]
2595
+ },
2609
2596
  "sandbox:get": {
2610
2597
  "aliases": [],
2611
2598
  "args": {},
@@ -3246,6 +3233,99 @@
3246
3233
  "index.js"
3247
3234
  ]
3248
3235
  },
3236
+ "tenant:deploy_platform": {
3237
+ "aliases": [],
3238
+ "args": {
3239
+ "tenant_name": {
3240
+ "description": "Tenant name to deploy to",
3241
+ "name": "tenant_name",
3242
+ "required": true
3243
+ }
3244
+ },
3245
+ "description": "Deploy a platform version to a tenant",
3246
+ "examples": [
3247
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
3248
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json",
3249
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 --license ./license.yaml"
3250
+ ],
3251
+ "flags": {
3252
+ "profile": {
3253
+ "char": "p",
3254
+ "description": "Profile to use (uses default profile if not specified)",
3255
+ "env": "XANO_PROFILE",
3256
+ "name": "profile",
3257
+ "required": false,
3258
+ "hasDynamicHelp": false,
3259
+ "multiple": false,
3260
+ "type": "option"
3261
+ },
3262
+ "verbose": {
3263
+ "char": "v",
3264
+ "description": "Show detailed request/response information",
3265
+ "env": "XANO_VERBOSE",
3266
+ "name": "verbose",
3267
+ "required": false,
3268
+ "allowNo": false,
3269
+ "type": "boolean"
3270
+ },
3271
+ "license": {
3272
+ "char": "l",
3273
+ "description": "Path to a license override file to apply after deploy",
3274
+ "name": "license",
3275
+ "required": false,
3276
+ "hasDynamicHelp": false,
3277
+ "multiple": false,
3278
+ "type": "option"
3279
+ },
3280
+ "output": {
3281
+ "char": "o",
3282
+ "description": "Output format",
3283
+ "name": "output",
3284
+ "required": false,
3285
+ "default": "summary",
3286
+ "hasDynamicHelp": false,
3287
+ "multiple": false,
3288
+ "options": [
3289
+ "summary",
3290
+ "json"
3291
+ ],
3292
+ "type": "option"
3293
+ },
3294
+ "platform_id": {
3295
+ "description": "Platform ID to deploy",
3296
+ "name": "platform_id",
3297
+ "required": true,
3298
+ "hasDynamicHelp": false,
3299
+ "multiple": false,
3300
+ "type": "option"
3301
+ },
3302
+ "workspace": {
3303
+ "char": "w",
3304
+ "description": "Workspace ID (uses profile workspace if not provided)",
3305
+ "name": "workspace",
3306
+ "required": false,
3307
+ "hasDynamicHelp": false,
3308
+ "multiple": false,
3309
+ "type": "option"
3310
+ }
3311
+ },
3312
+ "hasDynamicHelp": false,
3313
+ "hiddenAliases": [],
3314
+ "id": "tenant:deploy_platform",
3315
+ "pluginAlias": "@xano/cli",
3316
+ "pluginName": "@xano/cli",
3317
+ "pluginType": "core",
3318
+ "strict": true,
3319
+ "enableJsonFlag": false,
3320
+ "isESM": true,
3321
+ "relativePath": [
3322
+ "dist",
3323
+ "commands",
3324
+ "tenant",
3325
+ "deploy_platform",
3326
+ "index.js"
3327
+ ]
3328
+ },
3249
3329
  "tenant:delete": {
3250
3330
  "aliases": [],
3251
3331
  "args": {
@@ -3543,20 +3623,19 @@
3543
3623
  "index.js"
3544
3624
  ]
3545
3625
  },
3546
- "tenant:deploy_platform": {
3626
+ "tenant:get": {
3547
3627
  "aliases": [],
3548
3628
  "args": {
3549
3629
  "tenant_name": {
3550
- "description": "Tenant name to deploy to",
3630
+ "description": "Tenant name to retrieve",
3551
3631
  "name": "tenant_name",
3552
3632
  "required": true
3553
3633
  }
3554
3634
  },
3555
- "description": "Deploy a platform version to a tenant",
3635
+ "description": "Get details of a specific tenant",
3556
3636
  "examples": [
3557
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
3558
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json",
3559
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 --license ./license.yaml"
3637
+ "$ xano tenant get t1234-abcd-xyz1\nTenant: My Tenant (my-tenant)\n State: ok\n License: tier1\n Domain: my-tenant.xano.io\n Cluster: default\n Release: v1.0\n",
3638
+ "$ xano tenant get t1234-abcd-xyz1 -w 5 -o json"
3560
3639
  ],
3561
3640
  "flags": {
3562
3641
  "profile": {
@@ -3578,15 +3657,6 @@
3578
3657
  "allowNo": false,
3579
3658
  "type": "boolean"
3580
3659
  },
3581
- "license": {
3582
- "char": "l",
3583
- "description": "Path to a license override file to apply after deploy",
3584
- "name": "license",
3585
- "required": false,
3586
- "hasDynamicHelp": false,
3587
- "multiple": false,
3588
- "type": "option"
3589
- },
3590
3660
  "output": {
3591
3661
  "char": "o",
3592
3662
  "description": "Output format",
@@ -3601,14 +3671,6 @@
3601
3671
  ],
3602
3672
  "type": "option"
3603
3673
  },
3604
- "platform_id": {
3605
- "description": "Platform ID to deploy",
3606
- "name": "platform_id",
3607
- "required": true,
3608
- "hasDynamicHelp": false,
3609
- "multiple": false,
3610
- "type": "option"
3611
- },
3612
3674
  "workspace": {
3613
3675
  "char": "w",
3614
3676
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -3621,7 +3683,7 @@
3621
3683
  },
3622
3684
  "hasDynamicHelp": false,
3623
3685
  "hiddenAliases": [],
3624
- "id": "tenant:deploy_platform",
3686
+ "id": "tenant:get",
3625
3687
  "pluginAlias": "@xano/cli",
3626
3688
  "pluginName": "@xano/cli",
3627
3689
  "pluginType": "core",
@@ -3632,7 +3694,7 @@
3632
3694
  "dist",
3633
3695
  "commands",
3634
3696
  "tenant",
3635
- "deploy_platform",
3697
+ "get",
3636
3698
  "index.js"
3637
3699
  ]
3638
3700
  },
@@ -3719,19 +3781,20 @@
3719
3781
  "index.js"
3720
3782
  ]
3721
3783
  },
3722
- "tenant:get": {
3784
+ "branch:list": {
3723
3785
  "aliases": [],
3724
3786
  "args": {
3725
- "tenant_name": {
3726
- "description": "Tenant name to retrieve",
3727
- "name": "tenant_name",
3728
- "required": true
3787
+ "workspace_id": {
3788
+ "description": "Workspace ID (uses profile workspace if not provided)",
3789
+ "name": "workspace_id",
3790
+ "required": false
3729
3791
  }
3730
3792
  },
3731
- "description": "Get details of a specific tenant",
3793
+ "description": "List all branches in a workspace",
3732
3794
  "examples": [
3733
- "$ xano tenant get t1234-abcd-xyz1\nTenant: My Tenant (my-tenant)\n State: ok\n License: tier1\n Domain: my-tenant.xano.io\n Cluster: default\n Release: v1.0\n",
3734
- "$ xano tenant get t1234-abcd-xyz1 -w 5 -o json"
3795
+ "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
3796
+ "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
3797
+ "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
3735
3798
  ],
3736
3799
  "flags": {
3737
3800
  "profile": {
@@ -3766,20 +3829,11 @@
3766
3829
  "json"
3767
3830
  ],
3768
3831
  "type": "option"
3769
- },
3770
- "workspace": {
3771
- "char": "w",
3772
- "description": "Workspace ID (uses profile workspace if not provided)",
3773
- "name": "workspace",
3774
- "required": false,
3775
- "hasDynamicHelp": false,
3776
- "multiple": false,
3777
- "type": "option"
3778
3832
  }
3779
3833
  },
3780
3834
  "hasDynamicHelp": false,
3781
3835
  "hiddenAliases": [],
3782
- "id": "tenant:get",
3836
+ "id": "branch:list",
3783
3837
  "pluginAlias": "@xano/cli",
3784
3838
  "pluginName": "@xano/cli",
3785
3839
  "pluginType": "core",
@@ -3789,8 +3843,8 @@
3789
3843
  "relativePath": [
3790
3844
  "dist",
3791
3845
  "commands",
3792
- "tenant",
3793
- "get",
3846
+ "branch",
3847
+ "list",
3794
3848
  "index.js"
3795
3849
  ]
3796
3850
  },
@@ -3956,23 +4010,14 @@
3956
4010
  "index.js"
3957
4011
  ]
3958
4012
  },
3959
- "tenant:push": {
4013
+ "unit_test:list": {
3960
4014
  "aliases": [],
3961
- "args": {
3962
- "directory": {
3963
- "description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
3964
- "name": "directory",
3965
- "required": true
3966
- }
3967
- },
3968
- "description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
4015
+ "args": {},
4016
+ "description": "List all unit tests in a workspace",
3969
4017
  "examples": [
3970
- "$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
3971
- "$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
3972
- "$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
3973
- "$ xano tenant push ./my-workspace -t my-tenant --records\nInclude table records in import\n",
3974
- "$ xano tenant push ./my-workspace -t my-tenant --env\nInclude environment variables in import\n",
3975
- "$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
4018
+ "$ 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",
4019
+ "$ xano unit-test list -w 5 --output json",
4020
+ "$ xano unit-test list --obj-type function"
3976
4021
  ],
3977
4022
  "flags": {
3978
4023
  "profile": {
@@ -3994,46 +4039,45 @@
3994
4039
  "allowNo": false,
3995
4040
  "type": "boolean"
3996
4041
  },
3997
- "env": {
3998
- "description": "Include environment variables in import",
3999
- "name": "env",
4000
- "required": false,
4001
- "allowNo": false,
4002
- "type": "boolean"
4003
- },
4004
- "records": {
4005
- "description": "Include records in import",
4006
- "name": "records",
4042
+ "branch": {
4043
+ "char": "b",
4044
+ "description": "Filter by branch name",
4045
+ "name": "branch",
4007
4046
  "required": false,
4008
- "allowNo": false,
4009
- "type": "boolean"
4010
- },
4011
- "tenant": {
4012
- "char": "t",
4013
- "description": "Tenant name to push to",
4014
- "name": "tenant",
4015
- "required": true,
4016
4047
  "hasDynamicHelp": false,
4017
4048
  "multiple": false,
4018
4049
  "type": "option"
4019
4050
  },
4020
- "transaction": {
4021
- "description": "Wrap import in a database transaction (use --no-transaction for debugging purposes)",
4022
- "name": "transaction",
4051
+ "obj-type": {
4052
+ "description": "Filter by object type",
4053
+ "name": "obj-type",
4023
4054
  "required": false,
4024
- "allowNo": true,
4025
- "type": "boolean"
4055
+ "hasDynamicHelp": false,
4056
+ "multiple": false,
4057
+ "options": [
4058
+ "function",
4059
+ "query",
4060
+ "middleware"
4061
+ ],
4062
+ "type": "option"
4026
4063
  },
4027
- "truncate": {
4028
- "description": "Truncate all table records before importing",
4029
- "name": "truncate",
4064
+ "output": {
4065
+ "char": "o",
4066
+ "description": "Output format",
4067
+ "name": "output",
4030
4068
  "required": false,
4031
- "allowNo": false,
4032
- "type": "boolean"
4069
+ "default": "summary",
4070
+ "hasDynamicHelp": false,
4071
+ "multiple": false,
4072
+ "options": [
4073
+ "summary",
4074
+ "json"
4075
+ ],
4076
+ "type": "option"
4033
4077
  },
4034
4078
  "workspace": {
4035
4079
  "char": "w",
4036
- "description": "Workspace ID (optional if set in profile)",
4080
+ "description": "Workspace ID (uses profile workspace if not provided)",
4037
4081
  "name": "workspace",
4038
4082
  "required": false,
4039
4083
  "hasDynamicHelp": false,
@@ -4043,7 +4087,7 @@
4043
4087
  },
4044
4088
  "hasDynamicHelp": false,
4045
4089
  "hiddenAliases": [],
4046
- "id": "tenant:push",
4090
+ "id": "unit_test:list",
4047
4091
  "pluginAlias": "@xano/cli",
4048
4092
  "pluginName": "@xano/cli",
4049
4093
  "pluginType": "core",
@@ -4053,19 +4097,18 @@
4053
4097
  "relativePath": [
4054
4098
  "dist",
4055
4099
  "commands",
4056
- "tenant",
4057
- "push",
4100
+ "unit_test",
4101
+ "list",
4058
4102
  "index.js"
4059
4103
  ]
4060
4104
  },
4061
- "unit_test:list": {
4105
+ "unit_test:run_all": {
4062
4106
  "aliases": [],
4063
4107
  "args": {},
4064
- "description": "List all unit tests in a workspace",
4108
+ "description": "Run all unit tests in a workspace",
4065
4109
  "examples": [
4066
- "$ 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",
4067
- "$ xano unit-test list -w 5 --output json",
4068
- "$ xano unit-test list --obj-type function"
4110
+ "$ 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",
4111
+ "$ xano unit-test run-all --obj-type function -o json"
4069
4112
  ],
4070
4113
  "flags": {
4071
4114
  "profile": {
@@ -4135,7 +4178,7 @@
4135
4178
  },
4136
4179
  "hasDynamicHelp": false,
4137
4180
  "hiddenAliases": [],
4138
- "id": "unit_test:list",
4181
+ "id": "unit_test:run_all",
4139
4182
  "pluginAlias": "@xano/cli",
4140
4183
  "pluginName": "@xano/cli",
4141
4184
  "pluginType": "core",
@@ -4146,7 +4189,7 @@
4146
4189
  "dist",
4147
4190
  "commands",
4148
4191
  "unit_test",
4149
- "list",
4192
+ "run_all",
4150
4193
  "index.js"
4151
4194
  ]
4152
4195
  },
@@ -4225,13 +4268,19 @@
4225
4268
  "index.js"
4226
4269
  ]
4227
4270
  },
4228
- "unit_test:run_all": {
4271
+ "workflow_test:delete": {
4229
4272
  "aliases": [],
4230
- "args": {},
4231
- "description": "Run all unit tests in a workspace",
4273
+ "args": {
4274
+ "workflow_test_id": {
4275
+ "description": "ID of the workflow test to delete",
4276
+ "name": "workflow_test_id",
4277
+ "required": true
4278
+ }
4279
+ },
4280
+ "description": "Delete a workflow test",
4232
4281
  "examples": [
4233
- "$ 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",
4234
- "$ xano unit-test run-all --obj-type function -o json"
4282
+ "$ xano workflow-test delete 1\nAre you sure you want to delete workflow test 1? (y/N) y\nDeleted workflow test 1\n",
4283
+ "$ xano workflow-test delete 1 --force"
4235
4284
  ],
4236
4285
  "flags": {
4237
4286
  "profile": {
@@ -4253,27 +4302,13 @@
4253
4302
  "allowNo": false,
4254
4303
  "type": "boolean"
4255
4304
  },
4256
- "branch": {
4257
- "char": "b",
4258
- "description": "Filter by branch name",
4259
- "name": "branch",
4260
- "required": false,
4261
- "hasDynamicHelp": false,
4262
- "multiple": false,
4263
- "type": "option"
4264
- },
4265
- "obj-type": {
4266
- "description": "Filter by object type",
4267
- "name": "obj-type",
4305
+ "force": {
4306
+ "char": "f",
4307
+ "description": "Skip confirmation prompt",
4308
+ "name": "force",
4268
4309
  "required": false,
4269
- "hasDynamicHelp": false,
4270
- "multiple": false,
4271
- "options": [
4272
- "function",
4273
- "query",
4274
- "middleware"
4275
- ],
4276
- "type": "option"
4310
+ "allowNo": false,
4311
+ "type": "boolean"
4277
4312
  },
4278
4313
  "output": {
4279
4314
  "char": "o",
@@ -4301,7 +4336,7 @@
4301
4336
  },
4302
4337
  "hasDynamicHelp": false,
4303
4338
  "hiddenAliases": [],
4304
- "id": "unit_test:run_all",
4339
+ "id": "workflow_test:delete",
4305
4340
  "pluginAlias": "@xano/cli",
4306
4341
  "pluginName": "@xano/cli",
4307
4342
  "pluginType": "core",
@@ -4311,24 +4346,19 @@
4311
4346
  "relativePath": [
4312
4347
  "dist",
4313
4348
  "commands",
4314
- "unit_test",
4315
- "run_all",
4349
+ "workflow_test",
4350
+ "delete",
4316
4351
  "index.js"
4317
4352
  ]
4318
4353
  },
4319
- "workflow_test:delete": {
4354
+ "workflow_test:list": {
4320
4355
  "aliases": [],
4321
- "args": {
4322
- "workflow_test_id": {
4323
- "description": "ID of the workflow test to delete",
4324
- "name": "workflow_test_id",
4325
- "required": true
4326
- }
4327
- },
4328
- "description": "Delete a workflow test",
4356
+ "args": {},
4357
+ "description": "List all workflow tests in a workspace",
4329
4358
  "examples": [
4330
- "$ xano workflow-test delete 1\nAre you sure you want to delete workflow test 1? (y/N) y\nDeleted workflow test 1\n",
4331
- "$ xano workflow-test delete 1 --force"
4359
+ "$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
4360
+ "$ xano workflow-test list -w 5 --output json",
4361
+ "$ xano workflow-test list --branch main"
4332
4362
  ],
4333
4363
  "flags": {
4334
4364
  "profile": {
@@ -4350,13 +4380,14 @@
4350
4380
  "allowNo": false,
4351
4381
  "type": "boolean"
4352
4382
  },
4353
- "force": {
4354
- "char": "f",
4355
- "description": "Skip confirmation prompt",
4356
- "name": "force",
4383
+ "branch": {
4384
+ "char": "b",
4385
+ "description": "Filter by branch name",
4386
+ "name": "branch",
4357
4387
  "required": false,
4358
- "allowNo": false,
4359
- "type": "boolean"
4388
+ "hasDynamicHelp": false,
4389
+ "multiple": false,
4390
+ "type": "option"
4360
4391
  },
4361
4392
  "output": {
4362
4393
  "char": "o",
@@ -4384,7 +4415,7 @@
4384
4415
  },
4385
4416
  "hasDynamicHelp": false,
4386
4417
  "hiddenAliases": [],
4387
- "id": "workflow_test:delete",
4418
+ "id": "workflow_test:list",
4388
4419
  "pluginAlias": "@xano/cli",
4389
4420
  "pluginName": "@xano/cli",
4390
4421
  "pluginType": "core",
@@ -4395,7 +4426,7 @@
4395
4426
  "dist",
4396
4427
  "commands",
4397
4428
  "workflow_test",
4398
- "delete",
4429
+ "list",
4399
4430
  "index.js"
4400
4431
  ]
4401
4432
  },
@@ -4483,85 +4514,6 @@
4483
4514
  "index.js"
4484
4515
  ]
4485
4516
  },
4486
- "workflow_test:list": {
4487
- "aliases": [],
4488
- "args": {},
4489
- "description": "List all workflow tests in a workspace",
4490
- "examples": [
4491
- "$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
4492
- "$ xano workflow-test list -w 5 --output json",
4493
- "$ xano workflow-test list --branch main"
4494
- ],
4495
- "flags": {
4496
- "profile": {
4497
- "char": "p",
4498
- "description": "Profile to use (uses default profile if not specified)",
4499
- "env": "XANO_PROFILE",
4500
- "name": "profile",
4501
- "required": false,
4502
- "hasDynamicHelp": false,
4503
- "multiple": false,
4504
- "type": "option"
4505
- },
4506
- "verbose": {
4507
- "char": "v",
4508
- "description": "Show detailed request/response information",
4509
- "env": "XANO_VERBOSE",
4510
- "name": "verbose",
4511
- "required": false,
4512
- "allowNo": false,
4513
- "type": "boolean"
4514
- },
4515
- "branch": {
4516
- "char": "b",
4517
- "description": "Filter by branch name",
4518
- "name": "branch",
4519
- "required": false,
4520
- "hasDynamicHelp": false,
4521
- "multiple": false,
4522
- "type": "option"
4523
- },
4524
- "output": {
4525
- "char": "o",
4526
- "description": "Output format",
4527
- "name": "output",
4528
- "required": false,
4529
- "default": "summary",
4530
- "hasDynamicHelp": false,
4531
- "multiple": false,
4532
- "options": [
4533
- "summary",
4534
- "json"
4535
- ],
4536
- "type": "option"
4537
- },
4538
- "workspace": {
4539
- "char": "w",
4540
- "description": "Workspace ID (uses profile workspace if not provided)",
4541
- "name": "workspace",
4542
- "required": false,
4543
- "hasDynamicHelp": false,
4544
- "multiple": false,
4545
- "type": "option"
4546
- }
4547
- },
4548
- "hasDynamicHelp": false,
4549
- "hiddenAliases": [],
4550
- "id": "workflow_test:list",
4551
- "pluginAlias": "@xano/cli",
4552
- "pluginName": "@xano/cli",
4553
- "pluginType": "core",
4554
- "strict": true,
4555
- "enableJsonFlag": false,
4556
- "isESM": true,
4557
- "relativePath": [
4558
- "dist",
4559
- "commands",
4560
- "workflow_test",
4561
- "list",
4562
- "index.js"
4563
- ]
4564
- },
4565
4517
  "workflow_test:run": {
4566
4518
  "aliases": [],
4567
4519
  "args": {
@@ -5108,110 +5060,16 @@
5108
5060
  "index.js"
5109
5061
  ]
5110
5062
  },
5111
- "workspace:pull": {
5063
+ "workspace:push": {
5112
5064
  "aliases": [],
5113
5065
  "args": {
5114
5066
  "directory": {
5115
- "description": "Output directory for pulled documents",
5067
+ "description": "Directory containing documents to push (as produced by workspace pull)",
5116
5068
  "name": "directory",
5117
5069
  "required": true
5118
5070
  }
5119
5071
  },
5120
- "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
5121
- "examples": [
5122
- "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
5123
- "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
5124
- "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n",
5125
- "$ xano workspace pull ./my-workspace --draft\nPulled 42 documents to ./my-workspace\n",
5126
- "$ xano workspace pull ./my-workspace -b dev\nPulled 42 documents to ./my-workspace\n"
5127
- ],
5128
- "flags": {
5129
- "profile": {
5130
- "char": "p",
5131
- "description": "Profile to use (uses default profile if not specified)",
5132
- "env": "XANO_PROFILE",
5133
- "name": "profile",
5134
- "required": false,
5135
- "hasDynamicHelp": false,
5136
- "multiple": false,
5137
- "type": "option"
5138
- },
5139
- "verbose": {
5140
- "char": "v",
5141
- "description": "Show detailed request/response information",
5142
- "env": "XANO_VERBOSE",
5143
- "name": "verbose",
5144
- "required": false,
5145
- "allowNo": false,
5146
- "type": "boolean"
5147
- },
5148
- "branch": {
5149
- "char": "b",
5150
- "description": "Branch name (optional if set in profile, defaults to live)",
5151
- "name": "branch",
5152
- "required": false,
5153
- "hasDynamicHelp": false,
5154
- "multiple": false,
5155
- "type": "option"
5156
- },
5157
- "env": {
5158
- "description": "Include environment variables",
5159
- "name": "env",
5160
- "required": false,
5161
- "allowNo": false,
5162
- "type": "boolean"
5163
- },
5164
- "draft": {
5165
- "description": "Include draft versions",
5166
- "name": "draft",
5167
- "required": false,
5168
- "allowNo": false,
5169
- "type": "boolean"
5170
- },
5171
- "records": {
5172
- "description": "Include records",
5173
- "name": "records",
5174
- "required": false,
5175
- "allowNo": false,
5176
- "type": "boolean"
5177
- },
5178
- "workspace": {
5179
- "char": "w",
5180
- "description": "Workspace ID (optional if set in profile)",
5181
- "name": "workspace",
5182
- "required": false,
5183
- "hasDynamicHelp": false,
5184
- "multiple": false,
5185
- "type": "option"
5186
- }
5187
- },
5188
- "hasDynamicHelp": false,
5189
- "hiddenAliases": [],
5190
- "id": "workspace:pull",
5191
- "pluginAlias": "@xano/cli",
5192
- "pluginName": "@xano/cli",
5193
- "pluginType": "core",
5194
- "strict": true,
5195
- "enableJsonFlag": false,
5196
- "isESM": true,
5197
- "relativePath": [
5198
- "dist",
5199
- "commands",
5200
- "workspace",
5201
- "pull",
5202
- "index.js"
5203
- ]
5204
- },
5205
- "workspace:push": {
5206
- "aliases": [],
5207
- "args": {
5208
- "directory": {
5209
- "description": "Directory containing documents to push (as produced by workspace pull)",
5210
- "name": "directory",
5211
- "required": true
5212
- }
5213
- },
5214
- "description": "Push local documents to a workspace. By default, only changed files are pushed (partial mode). Use --sync to push all files. Shows a preview of changes before pushing unless --force is specified. Use --dry-run to preview only.",
5072
+ "description": "Push local documents to a workspace. By default, only changed files are pushed (partial mode). Use --sync to push all files. Shows a preview of changes before pushing unless --force is specified. Use --dry-run to preview only.",
5215
5073
  "examples": [
5216
5074
  "$ xano workspace push ./my-workspace\nPush only changed files (default partial mode)\n",
5217
5075
  "$ xano workspace push ./my-workspace --sync\nPush all files to the workspace\n",
@@ -5366,6 +5224,100 @@
5366
5224
  "index.js"
5367
5225
  ]
5368
5226
  },
5227
+ "workspace:pull": {
5228
+ "aliases": [],
5229
+ "args": {
5230
+ "directory": {
5231
+ "description": "Output directory for pulled documents",
5232
+ "name": "directory",
5233
+ "required": true
5234
+ }
5235
+ },
5236
+ "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
5237
+ "examples": [
5238
+ "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
5239
+ "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
5240
+ "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n",
5241
+ "$ xano workspace pull ./my-workspace --draft\nPulled 42 documents to ./my-workspace\n",
5242
+ "$ xano workspace pull ./my-workspace -b dev\nPulled 42 documents to ./my-workspace\n"
5243
+ ],
5244
+ "flags": {
5245
+ "profile": {
5246
+ "char": "p",
5247
+ "description": "Profile to use (uses default profile if not specified)",
5248
+ "env": "XANO_PROFILE",
5249
+ "name": "profile",
5250
+ "required": false,
5251
+ "hasDynamicHelp": false,
5252
+ "multiple": false,
5253
+ "type": "option"
5254
+ },
5255
+ "verbose": {
5256
+ "char": "v",
5257
+ "description": "Show detailed request/response information",
5258
+ "env": "XANO_VERBOSE",
5259
+ "name": "verbose",
5260
+ "required": false,
5261
+ "allowNo": false,
5262
+ "type": "boolean"
5263
+ },
5264
+ "branch": {
5265
+ "char": "b",
5266
+ "description": "Branch name (optional if set in profile, defaults to live)",
5267
+ "name": "branch",
5268
+ "required": false,
5269
+ "hasDynamicHelp": false,
5270
+ "multiple": false,
5271
+ "type": "option"
5272
+ },
5273
+ "env": {
5274
+ "description": "Include environment variables",
5275
+ "name": "env",
5276
+ "required": false,
5277
+ "allowNo": false,
5278
+ "type": "boolean"
5279
+ },
5280
+ "draft": {
5281
+ "description": "Include draft versions",
5282
+ "name": "draft",
5283
+ "required": false,
5284
+ "allowNo": false,
5285
+ "type": "boolean"
5286
+ },
5287
+ "records": {
5288
+ "description": "Include records",
5289
+ "name": "records",
5290
+ "required": false,
5291
+ "allowNo": false,
5292
+ "type": "boolean"
5293
+ },
5294
+ "workspace": {
5295
+ "char": "w",
5296
+ "description": "Workspace ID (optional if set in profile)",
5297
+ "name": "workspace",
5298
+ "required": false,
5299
+ "hasDynamicHelp": false,
5300
+ "multiple": false,
5301
+ "type": "option"
5302
+ }
5303
+ },
5304
+ "hasDynamicHelp": false,
5305
+ "hiddenAliases": [],
5306
+ "id": "workspace:pull",
5307
+ "pluginAlias": "@xano/cli",
5308
+ "pluginName": "@xano/cli",
5309
+ "pluginType": "core",
5310
+ "strict": true,
5311
+ "enableJsonFlag": false,
5312
+ "isESM": true,
5313
+ "relativePath": [
5314
+ "dist",
5315
+ "commands",
5316
+ "workspace",
5317
+ "pull",
5318
+ "index.js"
5319
+ ]
5320
+ },
5369
5321
  "profile:workspace:set": {
5370
5322
  "aliases": [],
5371
5323
  "args": {},
@@ -6538,76 +6490,6 @@
6538
6490
  "index.js"
6539
6491
  ]
6540
6492
  },
6541
- "sandbox:workflow_test:run_all": {
6542
- "aliases": [],
6543
- "args": {},
6544
- "description": "Run all workflow tests for a sandbox environment",
6545
- "examples": [
6546
- "$ xano sandbox workflow-test run-all\nRunning 3 workflow tests...\n\nPASS my-test (0.25s)\nFAIL data-check (0.10s)\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
6547
- "$ xano sandbox workflow-test run-all -o json"
6548
- ],
6549
- "flags": {
6550
- "profile": {
6551
- "char": "p",
6552
- "description": "Profile to use (uses default profile if not specified)",
6553
- "env": "XANO_PROFILE",
6554
- "name": "profile",
6555
- "required": false,
6556
- "hasDynamicHelp": false,
6557
- "multiple": false,
6558
- "type": "option"
6559
- },
6560
- "verbose": {
6561
- "char": "v",
6562
- "description": "Show detailed request/response information",
6563
- "env": "XANO_VERBOSE",
6564
- "name": "verbose",
6565
- "required": false,
6566
- "allowNo": false,
6567
- "type": "boolean"
6568
- },
6569
- "branch": {
6570
- "char": "b",
6571
- "description": "Filter by branch name",
6572
- "name": "branch",
6573
- "required": false,
6574
- "hasDynamicHelp": false,
6575
- "multiple": false,
6576
- "type": "option"
6577
- },
6578
- "output": {
6579
- "char": "o",
6580
- "description": "Output format",
6581
- "name": "output",
6582
- "required": false,
6583
- "default": "summary",
6584
- "hasDynamicHelp": false,
6585
- "multiple": false,
6586
- "options": [
6587
- "summary",
6588
- "json"
6589
- ],
6590
- "type": "option"
6591
- }
6592
- },
6593
- "hasDynamicHelp": false,
6594
- "hiddenAliases": [],
6595
- "id": "sandbox:workflow_test:run_all",
6596
- "pluginAlias": "@xano/cli",
6597
- "pluginName": "@xano/cli",
6598
- "pluginType": "core",
6599
- "strict": true,
6600
- "enableJsonFlag": false,
6601
- "isESM": true,
6602
- "relativePath": [
6603
- "dist",
6604
- "commands",
6605
- "sandbox",
6606
- "workflow_test",
6607
- "run_all",
6608
- "index.js"
6609
- ]
6610
- },
6611
6493
  "static_host:build:create": {
6612
6494
  "aliases": [],
6613
6495
  "args": {
@@ -6712,21 +6594,91 @@
6712
6594
  "index.js"
6713
6595
  ]
6714
6596
  },
6715
- "static_host:build:get": {
6597
+ "sandbox:workflow_test:run_all": {
6716
6598
  "aliases": [],
6717
- "args": {
6718
- "build_id": {
6719
- "description": "Build ID",
6720
- "name": "build_id",
6721
- "required": true
6722
- },
6723
- "static_host": {
6724
- "description": "Static Host name",
6725
- "name": "static_host",
6726
- "required": true
6727
- }
6728
- },
6729
- "description": "Get details of a specific build for a static host",
6599
+ "args": {},
6600
+ "description": "Run all workflow tests for a sandbox environment",
6601
+ "examples": [
6602
+ "$ xano sandbox workflow-test run-all\nRunning 3 workflow tests...\n\nPASS my-test (0.25s)\nFAIL data-check (0.10s)\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
6603
+ "$ xano sandbox workflow-test run-all -o json"
6604
+ ],
6605
+ "flags": {
6606
+ "profile": {
6607
+ "char": "p",
6608
+ "description": "Profile to use (uses default profile if not specified)",
6609
+ "env": "XANO_PROFILE",
6610
+ "name": "profile",
6611
+ "required": false,
6612
+ "hasDynamicHelp": false,
6613
+ "multiple": false,
6614
+ "type": "option"
6615
+ },
6616
+ "verbose": {
6617
+ "char": "v",
6618
+ "description": "Show detailed request/response information",
6619
+ "env": "XANO_VERBOSE",
6620
+ "name": "verbose",
6621
+ "required": false,
6622
+ "allowNo": false,
6623
+ "type": "boolean"
6624
+ },
6625
+ "branch": {
6626
+ "char": "b",
6627
+ "description": "Filter by branch name",
6628
+ "name": "branch",
6629
+ "required": false,
6630
+ "hasDynamicHelp": false,
6631
+ "multiple": false,
6632
+ "type": "option"
6633
+ },
6634
+ "output": {
6635
+ "char": "o",
6636
+ "description": "Output format",
6637
+ "name": "output",
6638
+ "required": false,
6639
+ "default": "summary",
6640
+ "hasDynamicHelp": false,
6641
+ "multiple": false,
6642
+ "options": [
6643
+ "summary",
6644
+ "json"
6645
+ ],
6646
+ "type": "option"
6647
+ }
6648
+ },
6649
+ "hasDynamicHelp": false,
6650
+ "hiddenAliases": [],
6651
+ "id": "sandbox:workflow_test:run_all",
6652
+ "pluginAlias": "@xano/cli",
6653
+ "pluginName": "@xano/cli",
6654
+ "pluginType": "core",
6655
+ "strict": true,
6656
+ "enableJsonFlag": false,
6657
+ "isESM": true,
6658
+ "relativePath": [
6659
+ "dist",
6660
+ "commands",
6661
+ "sandbox",
6662
+ "workflow_test",
6663
+ "run_all",
6664
+ "index.js"
6665
+ ]
6666
+ },
6667
+ "static_host:build:get": {
6668
+ "aliases": [],
6669
+ "args": {
6670
+ "build_id": {
6671
+ "description": "Build ID",
6672
+ "name": "build_id",
6673
+ "required": true
6674
+ },
6675
+ "static_host": {
6676
+ "description": "Static Host name",
6677
+ "name": "static_host",
6678
+ "required": true
6679
+ }
6680
+ },
6681
+ "description": "Get details of a specific build for a static host",
6730
6682
  "examples": [
6731
6683
  "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
6732
6684
  "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
@@ -6795,19 +6747,21 @@
6795
6747
  "index.js"
6796
6748
  ]
6797
6749
  },
6798
- "tenant:backup:create": {
6750
+ "static_host:build:list": {
6799
6751
  "aliases": [],
6800
6752
  "args": {
6801
- "tenant_name": {
6802
- "description": "Tenant name to back up",
6803
- "name": "tenant_name",
6753
+ "static_host": {
6754
+ "description": "Static Host name",
6755
+ "name": "static_host",
6804
6756
  "required": true
6805
6757
  }
6806
6758
  },
6807
- "description": "Create a backup for a tenant",
6759
+ "description": "List all builds for a static host",
6808
6760
  "examples": [
6809
- "$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
6810
- "$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
6761
+ "$ 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",
6762
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
6763
+ "$ 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",
6764
+ "$ 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"
6811
6765
  ],
6812
6766
  "flags": {
6813
6767
  "profile": {
@@ -6829,16 +6783,6 @@
6829
6783
  "allowNo": false,
6830
6784
  "type": "boolean"
6831
6785
  },
6832
- "description": {
6833
- "char": "d",
6834
- "description": "Backup description",
6835
- "name": "description",
6836
- "required": false,
6837
- "default": "",
6838
- "hasDynamicHelp": false,
6839
- "multiple": false,
6840
- "type": "option"
6841
- },
6842
6786
  "output": {
6843
6787
  "char": "o",
6844
6788
  "description": "Output format",
@@ -6853,9 +6797,27 @@
6853
6797
  ],
6854
6798
  "type": "option"
6855
6799
  },
6800
+ "page": {
6801
+ "description": "Page number for pagination",
6802
+ "name": "page",
6803
+ "required": false,
6804
+ "default": 1,
6805
+ "hasDynamicHelp": false,
6806
+ "multiple": false,
6807
+ "type": "option"
6808
+ },
6809
+ "per_page": {
6810
+ "description": "Number of results per page",
6811
+ "name": "per_page",
6812
+ "required": false,
6813
+ "default": 50,
6814
+ "hasDynamicHelp": false,
6815
+ "multiple": false,
6816
+ "type": "option"
6817
+ },
6856
6818
  "workspace": {
6857
6819
  "char": "w",
6858
- "description": "Workspace ID (uses profile workspace if not provided)",
6820
+ "description": "Workspace ID (optional if set in profile)",
6859
6821
  "name": "workspace",
6860
6822
  "required": false,
6861
6823
  "hasDynamicHelp": false,
@@ -6865,7 +6827,7 @@
6865
6827
  },
6866
6828
  "hasDynamicHelp": false,
6867
6829
  "hiddenAliases": [],
6868
- "id": "tenant:backup:create",
6830
+ "id": "static_host:build:list",
6869
6831
  "pluginAlias": "@xano/cli",
6870
6832
  "pluginName": "@xano/cli",
6871
6833
  "pluginType": "core",
@@ -6875,9 +6837,9 @@
6875
6837
  "relativePath": [
6876
6838
  "dist",
6877
6839
  "commands",
6878
- "tenant",
6879
- "backup",
6880
- "create",
6840
+ "static_host",
6841
+ "build",
6842
+ "list",
6881
6843
  "index.js"
6882
6844
  ]
6883
6845
  },
@@ -6974,20 +6936,19 @@
6974
6936
  "index.js"
6975
6937
  ]
6976
6938
  },
6977
- "tenant:backup:export": {
6939
+ "tenant:backup:create": {
6978
6940
  "aliases": [],
6979
6941
  "args": {
6980
6942
  "tenant_name": {
6981
- "description": "Tenant name to export backup from",
6943
+ "description": "Tenant name to back up",
6982
6944
  "name": "tenant_name",
6983
6945
  "required": true
6984
6946
  }
6985
6947
  },
6986
- "description": "Export (download) a tenant backup to a local file",
6948
+ "description": "Create a backup for a tenant",
6987
6949
  "examples": [
6988
- "$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
6989
- "$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
6990
- "$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
6950
+ "$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
6951
+ "$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
6991
6952
  ],
6992
6953
  "flags": {
6993
6954
  "profile": {
@@ -7009,18 +6970,20 @@
7009
6970
  "allowNo": false,
7010
6971
  "type": "boolean"
7011
6972
  },
7012
- "backup_id": {
7013
- "description": "Backup ID to export",
7014
- "name": "backup_id",
7015
- "required": true,
6973
+ "description": {
6974
+ "char": "d",
6975
+ "description": "Backup description",
6976
+ "name": "description",
6977
+ "required": false,
6978
+ "default": "",
7016
6979
  "hasDynamicHelp": false,
7017
6980
  "multiple": false,
7018
6981
  "type": "option"
7019
6982
  },
7020
- "format": {
6983
+ "output": {
7021
6984
  "char": "o",
7022
6985
  "description": "Output format",
7023
- "name": "format",
6986
+ "name": "output",
7024
6987
  "required": false,
7025
6988
  "default": "summary",
7026
6989
  "hasDynamicHelp": false,
@@ -7031,14 +6994,6 @@
7031
6994
  ],
7032
6995
  "type": "option"
7033
6996
  },
7034
- "output": {
7035
- "description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
7036
- "name": "output",
7037
- "required": false,
7038
- "hasDynamicHelp": false,
7039
- "multiple": false,
7040
- "type": "option"
7041
- },
7042
6997
  "workspace": {
7043
6998
  "char": "w",
7044
6999
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -7051,7 +7006,7 @@
7051
7006
  },
7052
7007
  "hasDynamicHelp": false,
7053
7008
  "hiddenAliases": [],
7054
- "id": "tenant:backup:export",
7009
+ "id": "tenant:backup:create",
7055
7010
  "pluginAlias": "@xano/cli",
7056
7011
  "pluginName": "@xano/cli",
7057
7012
  "pluginType": "core",
@@ -7063,25 +7018,24 @@
7063
7018
  "commands",
7064
7019
  "tenant",
7065
7020
  "backup",
7066
- "export",
7021
+ "create",
7067
7022
  "index.js"
7068
7023
  ]
7069
7024
  },
7070
- "static_host:build:list": {
7025
+ "tenant:backup:export": {
7071
7026
  "aliases": [],
7072
7027
  "args": {
7073
- "static_host": {
7074
- "description": "Static Host name",
7075
- "name": "static_host",
7028
+ "tenant_name": {
7029
+ "description": "Tenant name to export backup from",
7030
+ "name": "tenant_name",
7076
7031
  "required": true
7077
7032
  }
7078
7033
  },
7079
- "description": "List all builds for a static host",
7034
+ "description": "Export (download) a tenant backup to a local file",
7080
7035
  "examples": [
7081
- "$ 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",
7082
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
7083
- "$ 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",
7084
- "$ 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"
7036
+ "$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
7037
+ "$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
7038
+ "$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
7085
7039
  ],
7086
7040
  "flags": {
7087
7041
  "profile": {
@@ -7103,10 +7057,18 @@
7103
7057
  "allowNo": false,
7104
7058
  "type": "boolean"
7105
7059
  },
7106
- "output": {
7060
+ "backup_id": {
7061
+ "description": "Backup ID to export",
7062
+ "name": "backup_id",
7063
+ "required": true,
7064
+ "hasDynamicHelp": false,
7065
+ "multiple": false,
7066
+ "type": "option"
7067
+ },
7068
+ "format": {
7107
7069
  "char": "o",
7108
7070
  "description": "Output format",
7109
- "name": "output",
7071
+ "name": "format",
7110
7072
  "required": false,
7111
7073
  "default": "summary",
7112
7074
  "hasDynamicHelp": false,
@@ -7117,27 +7079,17 @@
7117
7079
  ],
7118
7080
  "type": "option"
7119
7081
  },
7120
- "page": {
7121
- "description": "Page number for pagination",
7122
- "name": "page",
7123
- "required": false,
7124
- "default": 1,
7125
- "hasDynamicHelp": false,
7126
- "multiple": false,
7127
- "type": "option"
7128
- },
7129
- "per_page": {
7130
- "description": "Number of results per page",
7131
- "name": "per_page",
7082
+ "output": {
7083
+ "description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
7084
+ "name": "output",
7132
7085
  "required": false,
7133
- "default": 50,
7134
7086
  "hasDynamicHelp": false,
7135
7087
  "multiple": false,
7136
7088
  "type": "option"
7137
7089
  },
7138
7090
  "workspace": {
7139
7091
  "char": "w",
7140
- "description": "Workspace ID (optional if set in profile)",
7092
+ "description": "Workspace ID (uses profile workspace if not provided)",
7141
7093
  "name": "workspace",
7142
7094
  "required": false,
7143
7095
  "hasDynamicHelp": false,
@@ -7147,7 +7099,7 @@
7147
7099
  },
7148
7100
  "hasDynamicHelp": false,
7149
7101
  "hiddenAliases": [],
7150
- "id": "static_host:build:list",
7102
+ "id": "tenant:backup:export",
7151
7103
  "pluginAlias": "@xano/cli",
7152
7104
  "pluginName": "@xano/cli",
7153
7105
  "pluginType": "core",
@@ -7157,9 +7109,9 @@
7157
7109
  "relativePath": [
7158
7110
  "dist",
7159
7111
  "commands",
7160
- "static_host",
7161
- "build",
7162
- "list",
7112
+ "tenant",
7113
+ "backup",
7114
+ "export",
7163
7115
  "index.js"
7164
7116
  ]
7165
7117
  },
@@ -7633,6 +7585,108 @@
7633
7585
  "index.js"
7634
7586
  ]
7635
7587
  },
7588
+ "tenant:push": {
7589
+ "aliases": [],
7590
+ "args": {
7591
+ "directory": {
7592
+ "description": "Directory containing documents to push (as produced by tenant pull or workspace pull)",
7593
+ "name": "directory",
7594
+ "required": true
7595
+ }
7596
+ },
7597
+ "description": "Push local documents to a tenant via the Xano Metadata API multidoc endpoint",
7598
+ "examples": [
7599
+ "$ xano tenant push ./my-workspace -t my-tenant\nPushed 42 documents to tenant my-tenant from ./my-workspace\n",
7600
+ "$ xano tenant push ./output -t my-tenant -w 40\nPushed 15 documents to tenant my-tenant from ./output\n",
7601
+ "$ xano tenant push ./backup -t my-tenant --profile production\nPushed 58 documents to tenant my-tenant from ./backup\n",
7602
+ "$ xano tenant push ./my-workspace -t my-tenant --records\nInclude table records in import\n",
7603
+ "$ xano tenant push ./my-workspace -t my-tenant --env\nInclude environment variables in import\n",
7604
+ "$ xano tenant push ./my-workspace -t my-tenant --truncate\nTruncate all table records before importing\n"
7605
+ ],
7606
+ "flags": {
7607
+ "profile": {
7608
+ "char": "p",
7609
+ "description": "Profile to use (uses default profile if not specified)",
7610
+ "env": "XANO_PROFILE",
7611
+ "name": "profile",
7612
+ "required": false,
7613
+ "hasDynamicHelp": false,
7614
+ "multiple": false,
7615
+ "type": "option"
7616
+ },
7617
+ "verbose": {
7618
+ "char": "v",
7619
+ "description": "Show detailed request/response information",
7620
+ "env": "XANO_VERBOSE",
7621
+ "name": "verbose",
7622
+ "required": false,
7623
+ "allowNo": false,
7624
+ "type": "boolean"
7625
+ },
7626
+ "env": {
7627
+ "description": "Include environment variables in import",
7628
+ "name": "env",
7629
+ "required": false,
7630
+ "allowNo": false,
7631
+ "type": "boolean"
7632
+ },
7633
+ "records": {
7634
+ "description": "Include records in import",
7635
+ "name": "records",
7636
+ "required": false,
7637
+ "allowNo": false,
7638
+ "type": "boolean"
7639
+ },
7640
+ "tenant": {
7641
+ "char": "t",
7642
+ "description": "Tenant name to push to",
7643
+ "name": "tenant",
7644
+ "required": true,
7645
+ "hasDynamicHelp": false,
7646
+ "multiple": false,
7647
+ "type": "option"
7648
+ },
7649
+ "transaction": {
7650
+ "description": "Wrap import in a database transaction (use --no-transaction for debugging purposes)",
7651
+ "name": "transaction",
7652
+ "required": false,
7653
+ "allowNo": true,
7654
+ "type": "boolean"
7655
+ },
7656
+ "truncate": {
7657
+ "description": "Truncate all table records before importing",
7658
+ "name": "truncate",
7659
+ "required": false,
7660
+ "allowNo": false,
7661
+ "type": "boolean"
7662
+ },
7663
+ "workspace": {
7664
+ "char": "w",
7665
+ "description": "Workspace ID (optional if set in profile)",
7666
+ "name": "workspace",
7667
+ "required": false,
7668
+ "hasDynamicHelp": false,
7669
+ "multiple": false,
7670
+ "type": "option"
7671
+ }
7672
+ },
7673
+ "hasDynamicHelp": false,
7674
+ "hiddenAliases": [],
7675
+ "id": "tenant:push",
7676
+ "pluginAlias": "@xano/cli",
7677
+ "pluginName": "@xano/cli",
7678
+ "pluginType": "core",
7679
+ "strict": true,
7680
+ "enableJsonFlag": false,
7681
+ "isESM": true,
7682
+ "relativePath": [
7683
+ "dist",
7684
+ "commands",
7685
+ "tenant",
7686
+ "push",
7687
+ "index.js"
7688
+ ]
7689
+ },
7636
7690
  "tenant:cluster:edit": {
7637
7691
  "aliases": [],
7638
7692
  "args": {
@@ -9610,5 +9664,5 @@
9610
9664
  ]
9611
9665
  }
9612
9666
  },
9613
- "version": "0.0.95-beta.10"
9667
+ "version": "0.0.95-beta.12"
9614
9668
  }