@xano/cli 0.0.22 → 0.0.23

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 +348 -348
  2. package/package.json +1 -1
@@ -370,20 +370,20 @@
370
370
  "index.js"
371
371
  ]
372
372
  },
373
- "branch:set-live": {
373
+ "branch:list": {
374
374
  "aliases": [],
375
375
  "args": {
376
- "branch_label": {
377
- "description": "Branch label to set as live (use \"v1\" for default branch)",
378
- "name": "branch_label",
379
- "required": true
376
+ "workspace_id": {
377
+ "description": "Workspace ID (uses profile workspace if not provided)",
378
+ "name": "workspace_id",
379
+ "required": false
380
380
  }
381
381
  },
382
- "description": "Set a branch as the live (active) branch for API requests",
382
+ "description": "List all branches in a workspace",
383
383
  "examples": [
384
- "$ 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",
385
- "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
386
- "$ 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"
384
+ "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
385
+ "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
386
+ "$ 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"
387
387
  ],
388
388
  "flags": {
389
389
  "profile": {
@@ -405,14 +405,6 @@
405
405
  "allowNo": false,
406
406
  "type": "boolean"
407
407
  },
408
- "force": {
409
- "char": "f",
410
- "description": "Skip confirmation prompt",
411
- "name": "force",
412
- "required": false,
413
- "allowNo": false,
414
- "type": "boolean"
415
- },
416
408
  "output": {
417
409
  "char": "o",
418
410
  "description": "Output format",
@@ -426,20 +418,11 @@
426
418
  "json"
427
419
  ],
428
420
  "type": "option"
429
- },
430
- "workspace": {
431
- "char": "w",
432
- "description": "Workspace ID (uses profile workspace if not provided)",
433
- "name": "workspace",
434
- "required": false,
435
- "hasDynamicHelp": false,
436
- "multiple": false,
437
- "type": "option"
438
421
  }
439
422
  },
440
423
  "hasDynamicHelp": false,
441
424
  "hiddenAliases": [],
442
- "id": "branch:set-live",
425
+ "id": "branch:list",
443
426
  "pluginAlias": "@xano/cli",
444
427
  "pluginName": "@xano/cli",
445
428
  "pluginType": "core",
@@ -450,24 +433,24 @@
450
433
  "dist",
451
434
  "commands",
452
435
  "branch",
453
- "set-live",
436
+ "list",
454
437
  "index.js"
455
438
  ]
456
439
  },
457
- "branch:list": {
440
+ "branch:set-live": {
458
441
  "aliases": [],
459
442
  "args": {
460
- "workspace_id": {
461
- "description": "Workspace ID (uses profile workspace if not provided)",
462
- "name": "workspace_id",
463
- "required": false
443
+ "branch_label": {
444
+ "description": "Branch label to set as live (use \"v1\" for default branch)",
445
+ "name": "branch_label",
446
+ "required": true
464
447
  }
465
448
  },
466
- "description": "List all branches in a workspace",
449
+ "description": "Set a branch as the live (active) branch for API requests",
467
450
  "examples": [
468
- "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
469
- "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
470
- "$ 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"
451
+ "$ 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",
452
+ "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
453
+ "$ 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"
471
454
  ],
472
455
  "flags": {
473
456
  "profile": {
@@ -489,6 +472,14 @@
489
472
  "allowNo": false,
490
473
  "type": "boolean"
491
474
  },
475
+ "force": {
476
+ "char": "f",
477
+ "description": "Skip confirmation prompt",
478
+ "name": "force",
479
+ "required": false,
480
+ "allowNo": false,
481
+ "type": "boolean"
482
+ },
492
483
  "output": {
493
484
  "char": "o",
494
485
  "description": "Output format",
@@ -502,11 +493,20 @@
502
493
  "json"
503
494
  ],
504
495
  "type": "option"
496
+ },
497
+ "workspace": {
498
+ "char": "w",
499
+ "description": "Workspace ID (uses profile workspace if not provided)",
500
+ "name": "workspace",
501
+ "required": false,
502
+ "hasDynamicHelp": false,
503
+ "multiple": false,
504
+ "type": "option"
505
505
  }
506
506
  },
507
507
  "hasDynamicHelp": false,
508
508
  "hiddenAliases": [],
509
- "id": "branch:list",
509
+ "id": "branch:set-live",
510
510
  "pluginAlias": "@xano/cli",
511
511
  "pluginName": "@xano/cli",
512
512
  "pluginType": "core",
@@ -517,7 +517,7 @@
517
517
  "dist",
518
518
  "commands",
519
519
  "branch",
520
- "list",
520
+ "set-live",
521
521
  "index.js"
522
522
  ]
523
523
  },
@@ -965,207 +965,6 @@
965
965
  "index.js"
966
966
  ]
967
967
  },
968
- "run:exec": {
969
- "aliases": [],
970
- "args": {
971
- "path": {
972
- "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
973
- "name": "path",
974
- "required": false
975
- }
976
- },
977
- "description": "Execute XanoScript code (job or service)",
978
- "examples": [
979
- "$ xano run exec script.xs\nExecuted successfully!\n...\n",
980
- "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
981
- "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
982
- "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
983
- "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
984
- "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
985
- "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
986
- ],
987
- "flags": {
988
- "profile": {
989
- "char": "p",
990
- "description": "Profile to use for this command",
991
- "env": "XANO_PROFILE",
992
- "name": "profile",
993
- "required": false,
994
- "hasDynamicHelp": false,
995
- "multiple": false,
996
- "type": "option"
997
- },
998
- "verbose": {
999
- "char": "v",
1000
- "description": "Show detailed request/response information",
1001
- "env": "XANO_VERBOSE",
1002
- "name": "verbose",
1003
- "required": false,
1004
- "allowNo": false,
1005
- "type": "boolean"
1006
- },
1007
- "args": {
1008
- "char": "a",
1009
- "description": "Path or URL to JSON file containing input arguments",
1010
- "name": "args",
1011
- "required": false,
1012
- "hasDynamicHelp": false,
1013
- "multiple": false,
1014
- "type": "option"
1015
- },
1016
- "edit": {
1017
- "char": "e",
1018
- "description": "Open file in editor before running (requires path argument or --file)",
1019
- "name": "edit",
1020
- "required": false,
1021
- "allowNo": false,
1022
- "type": "boolean"
1023
- },
1024
- "env": {
1025
- "description": "Environment variable override (key=value)",
1026
- "name": "env",
1027
- "required": false,
1028
- "hasDynamicHelp": false,
1029
- "multiple": true,
1030
- "type": "option"
1031
- },
1032
- "file": {
1033
- "char": "f",
1034
- "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
1035
- "exclusive": [
1036
- "stdin"
1037
- ],
1038
- "name": "file",
1039
- "required": false,
1040
- "hasDynamicHelp": false,
1041
- "multiple": false,
1042
- "type": "option"
1043
- },
1044
- "output": {
1045
- "char": "o",
1046
- "description": "Output format",
1047
- "name": "output",
1048
- "required": false,
1049
- "default": "summary",
1050
- "hasDynamicHelp": false,
1051
- "multiple": false,
1052
- "options": [
1053
- "summary",
1054
- "json"
1055
- ],
1056
- "type": "option"
1057
- },
1058
- "stdin": {
1059
- "char": "s",
1060
- "description": "Read XanoScript code from stdin",
1061
- "exclusive": [
1062
- "file"
1063
- ],
1064
- "name": "stdin",
1065
- "required": false,
1066
- "allowNo": false,
1067
- "type": "boolean"
1068
- }
1069
- },
1070
- "hasDynamicHelp": false,
1071
- "hiddenAliases": [],
1072
- "id": "run:exec",
1073
- "pluginAlias": "@xano/cli",
1074
- "pluginName": "@xano/cli",
1075
- "pluginType": "core",
1076
- "strict": true,
1077
- "isESM": true,
1078
- "relativePath": [
1079
- "dist",
1080
- "commands",
1081
- "run",
1082
- "exec",
1083
- "index.js"
1084
- ]
1085
- },
1086
- "run:info": {
1087
- "aliases": [],
1088
- "args": {},
1089
- "description": "Get information about a XanoScript document (type, inputs, env vars)",
1090
- "examples": [
1091
- "$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
1092
- "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1093
- "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
1094
- ],
1095
- "flags": {
1096
- "profile": {
1097
- "char": "p",
1098
- "description": "Profile to use for this command",
1099
- "env": "XANO_PROFILE",
1100
- "name": "profile",
1101
- "required": false,
1102
- "hasDynamicHelp": false,
1103
- "multiple": false,
1104
- "type": "option"
1105
- },
1106
- "verbose": {
1107
- "char": "v",
1108
- "description": "Show detailed request/response information",
1109
- "env": "XANO_VERBOSE",
1110
- "name": "verbose",
1111
- "required": false,
1112
- "allowNo": false,
1113
- "type": "boolean"
1114
- },
1115
- "file": {
1116
- "char": "f",
1117
- "description": "Path or URL to file containing XanoScript code",
1118
- "exclusive": [
1119
- "stdin"
1120
- ],
1121
- "name": "file",
1122
- "required": false,
1123
- "hasDynamicHelp": false,
1124
- "multiple": false,
1125
- "type": "option"
1126
- },
1127
- "output": {
1128
- "char": "o",
1129
- "description": "Output format",
1130
- "name": "output",
1131
- "required": false,
1132
- "default": "summary",
1133
- "hasDynamicHelp": false,
1134
- "multiple": false,
1135
- "options": [
1136
- "summary",
1137
- "json"
1138
- ],
1139
- "type": "option"
1140
- },
1141
- "stdin": {
1142
- "char": "s",
1143
- "description": "Read XanoScript code from stdin",
1144
- "exclusive": [
1145
- "file"
1146
- ],
1147
- "name": "stdin",
1148
- "required": false,
1149
- "allowNo": false,
1150
- "type": "boolean"
1151
- }
1152
- },
1153
- "hasDynamicHelp": false,
1154
- "hiddenAliases": [],
1155
- "id": "run:info",
1156
- "pluginAlias": "@xano/cli",
1157
- "pluginName": "@xano/cli",
1158
- "pluginType": "core",
1159
- "strict": true,
1160
- "isESM": true,
1161
- "relativePath": [
1162
- "dist",
1163
- "commands",
1164
- "run",
1165
- "info",
1166
- "index.js"
1167
- ]
1168
- },
1169
968
  "profile:create": {
1170
969
  "aliases": [],
1171
970
  "args": {
@@ -1686,31 +1485,232 @@
1686
1485
  "multiple": false,
1687
1486
  "type": "option"
1688
1487
  },
1689
- "origin": {
1488
+ "origin": {
1489
+ "char": "o",
1490
+ "description": "Xano instance origin URL",
1491
+ "name": "origin",
1492
+ "required": false,
1493
+ "default": "https://app.xano.com",
1494
+ "hasDynamicHelp": false,
1495
+ "multiple": false,
1496
+ "type": "option"
1497
+ }
1498
+ },
1499
+ "hasDynamicHelp": false,
1500
+ "hiddenAliases": [],
1501
+ "id": "profile:wizard",
1502
+ "pluginAlias": "@xano/cli",
1503
+ "pluginName": "@xano/cli",
1504
+ "pluginType": "core",
1505
+ "strict": true,
1506
+ "enableJsonFlag": false,
1507
+ "isESM": true,
1508
+ "relativePath": [
1509
+ "dist",
1510
+ "commands",
1511
+ "profile",
1512
+ "wizard",
1513
+ "index.js"
1514
+ ]
1515
+ },
1516
+ "run:info": {
1517
+ "aliases": [],
1518
+ "args": {},
1519
+ "description": "Get information about a XanoScript document (type, inputs, env vars)",
1520
+ "examples": [
1521
+ "$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
1522
+ "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1523
+ "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
1524
+ ],
1525
+ "flags": {
1526
+ "profile": {
1527
+ "char": "p",
1528
+ "description": "Profile to use for this command",
1529
+ "env": "XANO_PROFILE",
1530
+ "name": "profile",
1531
+ "required": false,
1532
+ "hasDynamicHelp": false,
1533
+ "multiple": false,
1534
+ "type": "option"
1535
+ },
1536
+ "verbose": {
1537
+ "char": "v",
1538
+ "description": "Show detailed request/response information",
1539
+ "env": "XANO_VERBOSE",
1540
+ "name": "verbose",
1541
+ "required": false,
1542
+ "allowNo": false,
1543
+ "type": "boolean"
1544
+ },
1545
+ "file": {
1546
+ "char": "f",
1547
+ "description": "Path or URL to file containing XanoScript code",
1548
+ "exclusive": [
1549
+ "stdin"
1550
+ ],
1551
+ "name": "file",
1552
+ "required": false,
1553
+ "hasDynamicHelp": false,
1554
+ "multiple": false,
1555
+ "type": "option"
1556
+ },
1557
+ "output": {
1558
+ "char": "o",
1559
+ "description": "Output format",
1560
+ "name": "output",
1561
+ "required": false,
1562
+ "default": "summary",
1563
+ "hasDynamicHelp": false,
1564
+ "multiple": false,
1565
+ "options": [
1566
+ "summary",
1567
+ "json"
1568
+ ],
1569
+ "type": "option"
1570
+ },
1571
+ "stdin": {
1572
+ "char": "s",
1573
+ "description": "Read XanoScript code from stdin",
1574
+ "exclusive": [
1575
+ "file"
1576
+ ],
1577
+ "name": "stdin",
1578
+ "required": false,
1579
+ "allowNo": false,
1580
+ "type": "boolean"
1581
+ }
1582
+ },
1583
+ "hasDynamicHelp": false,
1584
+ "hiddenAliases": [],
1585
+ "id": "run:info",
1586
+ "pluginAlias": "@xano/cli",
1587
+ "pluginName": "@xano/cli",
1588
+ "pluginType": "core",
1589
+ "strict": true,
1590
+ "isESM": true,
1591
+ "relativePath": [
1592
+ "dist",
1593
+ "commands",
1594
+ "run",
1595
+ "info",
1596
+ "index.js"
1597
+ ]
1598
+ },
1599
+ "run:exec": {
1600
+ "aliases": [],
1601
+ "args": {
1602
+ "path": {
1603
+ "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
1604
+ "name": "path",
1605
+ "required": false
1606
+ }
1607
+ },
1608
+ "description": "Execute XanoScript code (job or service)",
1609
+ "examples": [
1610
+ "$ xano run exec script.xs\nExecuted successfully!\n...\n",
1611
+ "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
1612
+ "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
1613
+ "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
1614
+ "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
1615
+ "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
1616
+ "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
1617
+ ],
1618
+ "flags": {
1619
+ "profile": {
1620
+ "char": "p",
1621
+ "description": "Profile to use for this command",
1622
+ "env": "XANO_PROFILE",
1623
+ "name": "profile",
1624
+ "required": false,
1625
+ "hasDynamicHelp": false,
1626
+ "multiple": false,
1627
+ "type": "option"
1628
+ },
1629
+ "verbose": {
1630
+ "char": "v",
1631
+ "description": "Show detailed request/response information",
1632
+ "env": "XANO_VERBOSE",
1633
+ "name": "verbose",
1634
+ "required": false,
1635
+ "allowNo": false,
1636
+ "type": "boolean"
1637
+ },
1638
+ "args": {
1639
+ "char": "a",
1640
+ "description": "Path or URL to JSON file containing input arguments",
1641
+ "name": "args",
1642
+ "required": false,
1643
+ "hasDynamicHelp": false,
1644
+ "multiple": false,
1645
+ "type": "option"
1646
+ },
1647
+ "edit": {
1648
+ "char": "e",
1649
+ "description": "Open file in editor before running (requires path argument or --file)",
1650
+ "name": "edit",
1651
+ "required": false,
1652
+ "allowNo": false,
1653
+ "type": "boolean"
1654
+ },
1655
+ "env": {
1656
+ "description": "Environment variable override (key=value)",
1657
+ "name": "env",
1658
+ "required": false,
1659
+ "hasDynamicHelp": false,
1660
+ "multiple": true,
1661
+ "type": "option"
1662
+ },
1663
+ "file": {
1664
+ "char": "f",
1665
+ "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
1666
+ "exclusive": [
1667
+ "stdin"
1668
+ ],
1669
+ "name": "file",
1670
+ "required": false,
1671
+ "hasDynamicHelp": false,
1672
+ "multiple": false,
1673
+ "type": "option"
1674
+ },
1675
+ "output": {
1690
1676
  "char": "o",
1691
- "description": "Xano instance origin URL",
1692
- "name": "origin",
1677
+ "description": "Output format",
1678
+ "name": "output",
1693
1679
  "required": false,
1694
- "default": "https://app.xano.com",
1680
+ "default": "summary",
1695
1681
  "hasDynamicHelp": false,
1696
1682
  "multiple": false,
1683
+ "options": [
1684
+ "summary",
1685
+ "json"
1686
+ ],
1697
1687
  "type": "option"
1688
+ },
1689
+ "stdin": {
1690
+ "char": "s",
1691
+ "description": "Read XanoScript code from stdin",
1692
+ "exclusive": [
1693
+ "file"
1694
+ ],
1695
+ "name": "stdin",
1696
+ "required": false,
1697
+ "allowNo": false,
1698
+ "type": "boolean"
1698
1699
  }
1699
1700
  },
1700
1701
  "hasDynamicHelp": false,
1701
1702
  "hiddenAliases": [],
1702
- "id": "profile:wizard",
1703
+ "id": "run:exec",
1703
1704
  "pluginAlias": "@xano/cli",
1704
1705
  "pluginName": "@xano/cli",
1705
1706
  "pluginType": "core",
1706
1707
  "strict": true,
1707
- "enableJsonFlag": false,
1708
1708
  "isESM": true,
1709
1709
  "relativePath": [
1710
1710
  "dist",
1711
1711
  "commands",
1712
- "profile",
1713
- "wizard",
1712
+ "run",
1713
+ "exec",
1714
1714
  "index.js"
1715
1715
  ]
1716
1716
  },
@@ -1882,81 +1882,6 @@
1882
1882
  "index.js"
1883
1883
  ]
1884
1884
  },
1885
- "workspace:delete": {
1886
- "aliases": [],
1887
- "args": {
1888
- "workspace_id": {
1889
- "description": "Workspace ID to delete",
1890
- "name": "workspace_id",
1891
- "required": true
1892
- }
1893
- },
1894
- "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
1895
- "examples": [
1896
- "$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
1897
- "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
1898
- "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
1899
- ],
1900
- "flags": {
1901
- "profile": {
1902
- "char": "p",
1903
- "description": "Profile to use for this command",
1904
- "env": "XANO_PROFILE",
1905
- "name": "profile",
1906
- "required": false,
1907
- "hasDynamicHelp": false,
1908
- "multiple": false,
1909
- "type": "option"
1910
- },
1911
- "verbose": {
1912
- "char": "v",
1913
- "description": "Show detailed request/response information",
1914
- "env": "XANO_VERBOSE",
1915
- "name": "verbose",
1916
- "required": false,
1917
- "allowNo": false,
1918
- "type": "boolean"
1919
- },
1920
- "force": {
1921
- "char": "f",
1922
- "description": "Skip confirmation prompt",
1923
- "name": "force",
1924
- "required": false,
1925
- "allowNo": false,
1926
- "type": "boolean"
1927
- },
1928
- "output": {
1929
- "char": "o",
1930
- "description": "Output format",
1931
- "name": "output",
1932
- "required": false,
1933
- "default": "summary",
1934
- "hasDynamicHelp": false,
1935
- "multiple": false,
1936
- "options": [
1937
- "summary",
1938
- "json"
1939
- ],
1940
- "type": "option"
1941
- }
1942
- },
1943
- "hasDynamicHelp": false,
1944
- "hiddenAliases": [],
1945
- "id": "workspace:delete",
1946
- "pluginAlias": "@xano/cli",
1947
- "pluginName": "@xano/cli",
1948
- "pluginType": "core",
1949
- "strict": true,
1950
- "enableJsonFlag": false,
1951
- "isESM": true,
1952
- "relativePath": [
1953
- "dist",
1954
- "commands",
1955
- "workspace",
1956
- "delete",
1957
- "index.js"
1958
- ]
1959
- },
1960
1885
  "workspace:edit": {
1961
1886
  "aliases": [],
1962
1887
  "args": {
@@ -2567,6 +2492,81 @@
2567
2492
  "index.js"
2568
2493
  ]
2569
2494
  },
2495
+ "workspace:delete": {
2496
+ "aliases": [],
2497
+ "args": {
2498
+ "workspace_id": {
2499
+ "description": "Workspace ID to delete",
2500
+ "name": "workspace_id",
2501
+ "required": true
2502
+ }
2503
+ },
2504
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
2505
+ "examples": [
2506
+ "$ 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",
2507
+ "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
2508
+ "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
2509
+ ],
2510
+ "flags": {
2511
+ "profile": {
2512
+ "char": "p",
2513
+ "description": "Profile to use for this command",
2514
+ "env": "XANO_PROFILE",
2515
+ "name": "profile",
2516
+ "required": false,
2517
+ "hasDynamicHelp": false,
2518
+ "multiple": false,
2519
+ "type": "option"
2520
+ },
2521
+ "verbose": {
2522
+ "char": "v",
2523
+ "description": "Show detailed request/response information",
2524
+ "env": "XANO_VERBOSE",
2525
+ "name": "verbose",
2526
+ "required": false,
2527
+ "allowNo": false,
2528
+ "type": "boolean"
2529
+ },
2530
+ "force": {
2531
+ "char": "f",
2532
+ "description": "Skip confirmation prompt",
2533
+ "name": "force",
2534
+ "required": false,
2535
+ "allowNo": false,
2536
+ "type": "boolean"
2537
+ },
2538
+ "output": {
2539
+ "char": "o",
2540
+ "description": "Output format",
2541
+ "name": "output",
2542
+ "required": false,
2543
+ "default": "summary",
2544
+ "hasDynamicHelp": false,
2545
+ "multiple": false,
2546
+ "options": [
2547
+ "summary",
2548
+ "json"
2549
+ ],
2550
+ "type": "option"
2551
+ }
2552
+ },
2553
+ "hasDynamicHelp": false,
2554
+ "hiddenAliases": [],
2555
+ "id": "workspace:delete",
2556
+ "pluginAlias": "@xano/cli",
2557
+ "pluginName": "@xano/cli",
2558
+ "pluginType": "core",
2559
+ "strict": true,
2560
+ "enableJsonFlag": false,
2561
+ "isESM": true,
2562
+ "relativePath": [
2563
+ "dist",
2564
+ "commands",
2565
+ "workspace",
2566
+ "delete",
2567
+ "index.js"
2568
+ ]
2569
+ },
2570
2570
  "run:projects:create": {
2571
2571
  "aliases": [],
2572
2572
  "args": {},
@@ -2912,13 +2912,19 @@
2912
2912
  "index.js"
2913
2913
  ]
2914
2914
  },
2915
- "run:secrets:list": {
2915
+ "run:secrets:get": {
2916
2916
  "aliases": [],
2917
- "args": {},
2918
- "description": "List all secret keys",
2917
+ "args": {
2918
+ "name": {
2919
+ "description": "Secret name",
2920
+ "name": "name",
2921
+ "required": true
2922
+ }
2923
+ },
2924
+ "description": "Get a secret value",
2919
2925
  "examples": [
2920
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2921
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2926
+ "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
2927
+ "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2922
2928
  ],
2923
2929
  "flags": {
2924
2930
  "profile": {
@@ -2945,11 +2951,11 @@
2945
2951
  "description": "Output format",
2946
2952
  "name": "output",
2947
2953
  "required": false,
2948
- "default": "table",
2954
+ "default": "value",
2949
2955
  "hasDynamicHelp": false,
2950
2956
  "multiple": false,
2951
2957
  "options": [
2952
- "table",
2958
+ "value",
2953
2959
  "json"
2954
2960
  ],
2955
2961
  "type": "option"
@@ -2957,7 +2963,7 @@
2957
2963
  },
2958
2964
  "hasDynamicHelp": false,
2959
2965
  "hiddenAliases": [],
2960
- "id": "run:secrets:list",
2966
+ "id": "run:secrets:get",
2961
2967
  "pluginAlias": "@xano/cli",
2962
2968
  "pluginName": "@xano/cli",
2963
2969
  "pluginType": "core",
@@ -2968,23 +2974,17 @@
2968
2974
  "commands",
2969
2975
  "run",
2970
2976
  "secrets",
2971
- "list",
2977
+ "get",
2972
2978
  "index.js"
2973
2979
  ]
2974
2980
  },
2975
- "run:secrets:get": {
2981
+ "run:secrets:list": {
2976
2982
  "aliases": [],
2977
- "args": {
2978
- "name": {
2979
- "description": "Secret name",
2980
- "name": "name",
2981
- "required": true
2982
- }
2983
- },
2984
- "description": "Get a secret value",
2983
+ "args": {},
2984
+ "description": "List all secret keys",
2985
2985
  "examples": [
2986
- "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
2987
- "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2986
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2987
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2988
2988
  ],
2989
2989
  "flags": {
2990
2990
  "profile": {
@@ -3011,11 +3011,11 @@
3011
3011
  "description": "Output format",
3012
3012
  "name": "output",
3013
3013
  "required": false,
3014
- "default": "value",
3014
+ "default": "table",
3015
3015
  "hasDynamicHelp": false,
3016
3016
  "multiple": false,
3017
3017
  "options": [
3018
- "value",
3018
+ "table",
3019
3019
  "json"
3020
3020
  ],
3021
3021
  "type": "option"
@@ -3023,7 +3023,7 @@
3023
3023
  },
3024
3024
  "hasDynamicHelp": false,
3025
3025
  "hiddenAliases": [],
3026
- "id": "run:secrets:get",
3026
+ "id": "run:secrets:list",
3027
3027
  "pluginAlias": "@xano/cli",
3028
3028
  "pluginName": "@xano/cli",
3029
3029
  "pluginType": "core",
@@ -3034,7 +3034,7 @@
3034
3034
  "commands",
3035
3035
  "run",
3036
3036
  "secrets",
3037
- "get",
3037
+ "list",
3038
3038
  "index.js"
3039
3039
  ]
3040
3040
  },
@@ -3789,5 +3789,5 @@
3789
3789
  ]
3790
3790
  }
3791
3791
  },
3792
- "version": "0.0.22"
3792
+ "version": "0.0.23"
3793
3793
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xano/cli",
3
3
  "description": "CLI for Xano's Metadata API",
4
- "version": "0.0.22",
4
+ "version": "0.0.23",
5
5
  "author": "Sean Montgomery",
6
6
  "bin": {
7
7
  "xano": "./bin/run.js"