@xano/cli 0.0.20 → 0.0.21

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.
@@ -444,6 +444,207 @@
444
444
  "index.js"
445
445
  ]
446
446
  },
447
+ "run:exec": {
448
+ "aliases": [],
449
+ "args": {
450
+ "path": {
451
+ "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
452
+ "name": "path",
453
+ "required": false
454
+ }
455
+ },
456
+ "description": "Execute XanoScript code (job or service)",
457
+ "examples": [
458
+ "$ xano run exec script.xs\nExecuted successfully!\n...\n",
459
+ "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
460
+ "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
461
+ "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
462
+ "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
463
+ "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
464
+ "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
465
+ ],
466
+ "flags": {
467
+ "profile": {
468
+ "char": "p",
469
+ "description": "Profile to use for this command",
470
+ "env": "XANO_PROFILE",
471
+ "name": "profile",
472
+ "required": false,
473
+ "hasDynamicHelp": false,
474
+ "multiple": false,
475
+ "type": "option"
476
+ },
477
+ "verbose": {
478
+ "char": "v",
479
+ "description": "Show detailed request/response information",
480
+ "env": "XANO_VERBOSE",
481
+ "name": "verbose",
482
+ "required": false,
483
+ "allowNo": false,
484
+ "type": "boolean"
485
+ },
486
+ "file": {
487
+ "char": "f",
488
+ "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
489
+ "exclusive": [
490
+ "stdin"
491
+ ],
492
+ "name": "file",
493
+ "required": false,
494
+ "hasDynamicHelp": false,
495
+ "multiple": false,
496
+ "type": "option"
497
+ },
498
+ "stdin": {
499
+ "char": "s",
500
+ "description": "Read XanoScript code from stdin",
501
+ "exclusive": [
502
+ "file"
503
+ ],
504
+ "name": "stdin",
505
+ "required": false,
506
+ "allowNo": false,
507
+ "type": "boolean"
508
+ },
509
+ "edit": {
510
+ "char": "e",
511
+ "description": "Open file in editor before running (requires path argument or --file)",
512
+ "name": "edit",
513
+ "required": false,
514
+ "allowNo": false,
515
+ "type": "boolean"
516
+ },
517
+ "output": {
518
+ "char": "o",
519
+ "description": "Output format",
520
+ "name": "output",
521
+ "required": false,
522
+ "default": "summary",
523
+ "hasDynamicHelp": false,
524
+ "multiple": false,
525
+ "options": [
526
+ "summary",
527
+ "json"
528
+ ],
529
+ "type": "option"
530
+ },
531
+ "args": {
532
+ "char": "a",
533
+ "description": "Path or URL to JSON file containing input arguments",
534
+ "name": "args",
535
+ "required": false,
536
+ "hasDynamicHelp": false,
537
+ "multiple": false,
538
+ "type": "option"
539
+ },
540
+ "env": {
541
+ "description": "Environment variable override (key=value)",
542
+ "name": "env",
543
+ "required": false,
544
+ "hasDynamicHelp": false,
545
+ "multiple": true,
546
+ "type": "option"
547
+ }
548
+ },
549
+ "hasDynamicHelp": false,
550
+ "hiddenAliases": [],
551
+ "id": "run:exec",
552
+ "pluginAlias": "@xano/cli",
553
+ "pluginName": "@xano/cli",
554
+ "pluginType": "core",
555
+ "strict": true,
556
+ "isESM": true,
557
+ "relativePath": [
558
+ "dist",
559
+ "commands",
560
+ "run",
561
+ "exec",
562
+ "index.js"
563
+ ]
564
+ },
565
+ "run:info": {
566
+ "aliases": [],
567
+ "args": {},
568
+ "description": "Get information about a XanoScript document (type, inputs, env vars)",
569
+ "examples": [
570
+ "$ 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",
571
+ "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
572
+ "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
573
+ ],
574
+ "flags": {
575
+ "profile": {
576
+ "char": "p",
577
+ "description": "Profile to use for this command",
578
+ "env": "XANO_PROFILE",
579
+ "name": "profile",
580
+ "required": false,
581
+ "hasDynamicHelp": false,
582
+ "multiple": false,
583
+ "type": "option"
584
+ },
585
+ "verbose": {
586
+ "char": "v",
587
+ "description": "Show detailed request/response information",
588
+ "env": "XANO_VERBOSE",
589
+ "name": "verbose",
590
+ "required": false,
591
+ "allowNo": false,
592
+ "type": "boolean"
593
+ },
594
+ "file": {
595
+ "char": "f",
596
+ "description": "Path or URL to file containing XanoScript code",
597
+ "exclusive": [
598
+ "stdin"
599
+ ],
600
+ "name": "file",
601
+ "required": false,
602
+ "hasDynamicHelp": false,
603
+ "multiple": false,
604
+ "type": "option"
605
+ },
606
+ "stdin": {
607
+ "char": "s",
608
+ "description": "Read XanoScript code from stdin",
609
+ "exclusive": [
610
+ "file"
611
+ ],
612
+ "name": "stdin",
613
+ "required": false,
614
+ "allowNo": false,
615
+ "type": "boolean"
616
+ },
617
+ "output": {
618
+ "char": "o",
619
+ "description": "Output format",
620
+ "name": "output",
621
+ "required": false,
622
+ "default": "summary",
623
+ "hasDynamicHelp": false,
624
+ "multiple": false,
625
+ "options": [
626
+ "summary",
627
+ "json"
628
+ ],
629
+ "type": "option"
630
+ }
631
+ },
632
+ "hasDynamicHelp": false,
633
+ "hiddenAliases": [],
634
+ "id": "run:info",
635
+ "pluginAlias": "@xano/cli",
636
+ "pluginName": "@xano/cli",
637
+ "pluginType": "core",
638
+ "strict": true,
639
+ "isESM": true,
640
+ "relativePath": [
641
+ "dist",
642
+ "commands",
643
+ "run",
644
+ "info",
645
+ "index.js"
646
+ ]
647
+ },
447
648
  "profile:create": {
448
649
  "aliases": [],
449
650
  "args": {
@@ -776,32 +977,6 @@
776
977
  "index.js"
777
978
  ]
778
979
  },
779
- "profile:get-default": {
780
- "aliases": [],
781
- "args": {},
782
- "description": "Get the current default profile name",
783
- "examples": [
784
- "$ xano profile:get-default\nproduction\n",
785
- "$ xano profile:get-default\nNo default profile set\n"
786
- ],
787
- "flags": {},
788
- "hasDynamicHelp": false,
789
- "hiddenAliases": [],
790
- "id": "profile:get-default",
791
- "pluginAlias": "@xano/cli",
792
- "pluginName": "@xano/cli",
793
- "pluginType": "core",
794
- "strict": true,
795
- "enableJsonFlag": false,
796
- "isESM": true,
797
- "relativePath": [
798
- "dist",
799
- "commands",
800
- "profile",
801
- "get-default",
802
- "index.js"
803
- ]
804
- },
805
980
  "profile:me": {
806
981
  "aliases": [],
807
982
  "args": {},
@@ -921,32 +1096,6 @@
921
1096
  "index.js"
922
1097
  ]
923
1098
  },
924
- "profile:token": {
925
- "aliases": [],
926
- "args": {},
927
- "description": "Print the access token for the default profile",
928
- "examples": [
929
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
930
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
931
- ],
932
- "flags": {},
933
- "hasDynamicHelp": false,
934
- "hiddenAliases": [],
935
- "id": "profile:token",
936
- "pluginAlias": "@xano/cli",
937
- "pluginName": "@xano/cli",
938
- "pluginType": "core",
939
- "strict": true,
940
- "enableJsonFlag": false,
941
- "isESM": true,
942
- "relativePath": [
943
- "dist",
944
- "commands",
945
- "profile",
946
- "token",
947
- "index.js"
948
- ]
949
- },
950
1099
  "profile:wizard": {
951
1100
  "aliases": [],
952
1101
  "args": {},
@@ -992,15 +1141,66 @@
992
1141
  "index.js"
993
1142
  ]
994
1143
  },
995
- "static_host:list": {
1144
+ "profile:token": {
996
1145
  "aliases": [],
997
1146
  "args": {},
998
- "description": "List all static hosts in a workspace from the Xano Metadata API",
1147
+ "description": "Print the access token for the default profile",
999
1148
  "examples": [
1000
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1001
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1002
- "$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
1003
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1149
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
1150
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1151
+ ],
1152
+ "flags": {},
1153
+ "hasDynamicHelp": false,
1154
+ "hiddenAliases": [],
1155
+ "id": "profile:token",
1156
+ "pluginAlias": "@xano/cli",
1157
+ "pluginName": "@xano/cli",
1158
+ "pluginType": "core",
1159
+ "strict": true,
1160
+ "enableJsonFlag": false,
1161
+ "isESM": true,
1162
+ "relativePath": [
1163
+ "dist",
1164
+ "commands",
1165
+ "profile",
1166
+ "token",
1167
+ "index.js"
1168
+ ]
1169
+ },
1170
+ "profile:get-default": {
1171
+ "aliases": [],
1172
+ "args": {},
1173
+ "description": "Get the current default profile name",
1174
+ "examples": [
1175
+ "$ xano profile:get-default\nproduction\n",
1176
+ "$ xano profile:get-default\nNo default profile set\n"
1177
+ ],
1178
+ "flags": {},
1179
+ "hasDynamicHelp": false,
1180
+ "hiddenAliases": [],
1181
+ "id": "profile:get-default",
1182
+ "pluginAlias": "@xano/cli",
1183
+ "pluginName": "@xano/cli",
1184
+ "pluginType": "core",
1185
+ "strict": true,
1186
+ "enableJsonFlag": false,
1187
+ "isESM": true,
1188
+ "relativePath": [
1189
+ "dist",
1190
+ "commands",
1191
+ "profile",
1192
+ "get-default",
1193
+ "index.js"
1194
+ ]
1195
+ },
1196
+ "workspace:create": {
1197
+ "aliases": [],
1198
+ "args": {},
1199
+ "description": "Create a new workspace via the Xano Metadata API",
1200
+ "examples": [
1201
+ "$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
1202
+ "$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
1203
+ "$ xano workspace create -n \"new-project\" -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
1004
1204
  ],
1005
1205
  "flags": {
1006
1206
  "profile": {
@@ -1022,10 +1222,19 @@
1022
1222
  "allowNo": false,
1023
1223
  "type": "boolean"
1024
1224
  },
1025
- "workspace": {
1026
- "char": "w",
1027
- "description": "Workspace ID (optional if set in profile)",
1028
- "name": "workspace",
1225
+ "name": {
1226
+ "char": "n",
1227
+ "description": "Name of the workspace",
1228
+ "name": "name",
1229
+ "required": true,
1230
+ "hasDynamicHelp": false,
1231
+ "multiple": false,
1232
+ "type": "option"
1233
+ },
1234
+ "description": {
1235
+ "char": "d",
1236
+ "description": "Description for the workspace",
1237
+ "name": "description",
1029
1238
  "required": false,
1030
1239
  "hasDynamicHelp": false,
1031
1240
  "multiple": false,
@@ -1044,29 +1253,11 @@
1044
1253
  "json"
1045
1254
  ],
1046
1255
  "type": "option"
1047
- },
1048
- "page": {
1049
- "description": "Page number for pagination",
1050
- "name": "page",
1051
- "required": false,
1052
- "default": 1,
1053
- "hasDynamicHelp": false,
1054
- "multiple": false,
1055
- "type": "option"
1056
- },
1057
- "per_page": {
1058
- "description": "Number of results per page",
1059
- "name": "per_page",
1060
- "required": false,
1061
- "default": 50,
1062
- "hasDynamicHelp": false,
1063
- "multiple": false,
1064
- "type": "option"
1065
1256
  }
1066
1257
  },
1067
1258
  "hasDynamicHelp": false,
1068
1259
  "hiddenAliases": [],
1069
- "id": "static_host:list",
1260
+ "id": "workspace:create",
1070
1261
  "pluginAlias": "@xano/cli",
1071
1262
  "pluginName": "@xano/cli",
1072
1263
  "pluginType": "core",
@@ -1076,29 +1267,25 @@
1076
1267
  "relativePath": [
1077
1268
  "dist",
1078
1269
  "commands",
1079
- "static_host",
1080
- "list",
1270
+ "workspace",
1271
+ "create",
1081
1272
  "index.js"
1082
1273
  ]
1083
1274
  },
1084
- "run:exec": {
1275
+ "workspace:delete": {
1085
1276
  "aliases": [],
1086
1277
  "args": {
1087
- "path": {
1088
- "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
1089
- "name": "path",
1090
- "required": false
1278
+ "workspace_id": {
1279
+ "description": "Workspace ID to delete",
1280
+ "name": "workspace_id",
1281
+ "required": true
1091
1282
  }
1092
1283
  },
1093
- "description": "Execute XanoScript code (job or service)",
1284
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
1094
1285
  "examples": [
1095
- "$ xano run exec script.xs\nExecuted successfully!\n...\n",
1096
- "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
1097
- "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
1098
- "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
1099
- "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
1100
- "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
1101
- "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
1286
+ "$ 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",
1287
+ "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
1288
+ "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
1102
1289
  ],
1103
1290
  "flags": {
1104
1291
  "profile": {
@@ -1120,33 +1307,10 @@
1120
1307
  "allowNo": false,
1121
1308
  "type": "boolean"
1122
1309
  },
1123
- "file": {
1310
+ "force": {
1124
1311
  "char": "f",
1125
- "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
1126
- "exclusive": [
1127
- "stdin"
1128
- ],
1129
- "name": "file",
1130
- "required": false,
1131
- "hasDynamicHelp": false,
1132
- "multiple": false,
1133
- "type": "option"
1134
- },
1135
- "stdin": {
1136
- "char": "s",
1137
- "description": "Read XanoScript code from stdin",
1138
- "exclusive": [
1139
- "file"
1140
- ],
1141
- "name": "stdin",
1142
- "required": false,
1143
- "allowNo": false,
1144
- "type": "boolean"
1145
- },
1146
- "edit": {
1147
- "char": "e",
1148
- "description": "Open file in editor before running (requires path argument or --file)",
1149
- "name": "edit",
1312
+ "description": "Skip confirmation prompt",
1313
+ "name": "force",
1150
1314
  "required": false,
1151
1315
  "allowNo": false,
1152
1316
  "type": "boolean"
@@ -1164,49 +1328,34 @@
1164
1328
  "json"
1165
1329
  ],
1166
1330
  "type": "option"
1167
- },
1168
- "args": {
1169
- "char": "a",
1170
- "description": "Path or URL to JSON file containing input arguments",
1171
- "name": "args",
1172
- "required": false,
1173
- "hasDynamicHelp": false,
1174
- "multiple": false,
1175
- "type": "option"
1176
- },
1177
- "env": {
1178
- "description": "Environment variable override (key=value)",
1179
- "name": "env",
1180
- "required": false,
1181
- "hasDynamicHelp": false,
1182
- "multiple": true,
1183
- "type": "option"
1184
1331
  }
1185
1332
  },
1186
1333
  "hasDynamicHelp": false,
1187
1334
  "hiddenAliases": [],
1188
- "id": "run:exec",
1335
+ "id": "workspace:delete",
1189
1336
  "pluginAlias": "@xano/cli",
1190
1337
  "pluginName": "@xano/cli",
1191
1338
  "pluginType": "core",
1192
1339
  "strict": true,
1340
+ "enableJsonFlag": false,
1193
1341
  "isESM": true,
1194
1342
  "relativePath": [
1195
1343
  "dist",
1196
1344
  "commands",
1197
- "run",
1198
- "exec",
1345
+ "workspace",
1346
+ "delete",
1199
1347
  "index.js"
1200
1348
  ]
1201
1349
  },
1202
- "run:info": {
1350
+ "static_host:list": {
1203
1351
  "aliases": [],
1204
1352
  "args": {},
1205
- "description": "Get information about a XanoScript document (type, inputs, env vars)",
1353
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
1206
1354
  "examples": [
1207
- "$ 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",
1208
- "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1209
- "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
1355
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1356
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1357
+ "$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
1358
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1210
1359
  ],
1211
1360
  "flags": {
1212
1361
  "profile": {
@@ -1228,29 +1377,15 @@
1228
1377
  "allowNo": false,
1229
1378
  "type": "boolean"
1230
1379
  },
1231
- "file": {
1232
- "char": "f",
1233
- "description": "Path or URL to file containing XanoScript code",
1234
- "exclusive": [
1235
- "stdin"
1236
- ],
1237
- "name": "file",
1380
+ "workspace": {
1381
+ "char": "w",
1382
+ "description": "Workspace ID (optional if set in profile)",
1383
+ "name": "workspace",
1238
1384
  "required": false,
1239
1385
  "hasDynamicHelp": false,
1240
1386
  "multiple": false,
1241
1387
  "type": "option"
1242
1388
  },
1243
- "stdin": {
1244
- "char": "s",
1245
- "description": "Read XanoScript code from stdin",
1246
- "exclusive": [
1247
- "file"
1248
- ],
1249
- "name": "stdin",
1250
- "required": false,
1251
- "allowNo": false,
1252
- "type": "boolean"
1253
- },
1254
1389
  "output": {
1255
1390
  "char": "o",
1256
1391
  "description": "Output format",
@@ -1264,33 +1399,58 @@
1264
1399
  "json"
1265
1400
  ],
1266
1401
  "type": "option"
1402
+ },
1403
+ "page": {
1404
+ "description": "Page number for pagination",
1405
+ "name": "page",
1406
+ "required": false,
1407
+ "default": 1,
1408
+ "hasDynamicHelp": false,
1409
+ "multiple": false,
1410
+ "type": "option"
1411
+ },
1412
+ "per_page": {
1413
+ "description": "Number of results per page",
1414
+ "name": "per_page",
1415
+ "required": false,
1416
+ "default": 50,
1417
+ "hasDynamicHelp": false,
1418
+ "multiple": false,
1419
+ "type": "option"
1267
1420
  }
1268
1421
  },
1269
1422
  "hasDynamicHelp": false,
1270
1423
  "hiddenAliases": [],
1271
- "id": "run:info",
1424
+ "id": "static_host:list",
1272
1425
  "pluginAlias": "@xano/cli",
1273
1426
  "pluginName": "@xano/cli",
1274
1427
  "pluginType": "core",
1275
1428
  "strict": true,
1429
+ "enableJsonFlag": false,
1276
1430
  "isESM": true,
1277
1431
  "relativePath": [
1278
1432
  "dist",
1279
1433
  "commands",
1280
- "run",
1281
- "info",
1434
+ "static_host",
1435
+ "list",
1282
1436
  "index.js"
1283
1437
  ]
1284
1438
  },
1285
- "workspace:list": {
1439
+ "workspace:edit": {
1286
1440
  "aliases": [],
1287
- "args": {},
1288
- "description": "List all workspaces from the Xano Metadata API",
1441
+ "args": {
1442
+ "workspace_id": {
1443
+ "description": "Workspace ID to edit (uses profile workspace if not provided)",
1444
+ "name": "workspace_id",
1445
+ "required": false
1446
+ }
1447
+ },
1448
+ "description": "Edit an existing workspace via the Xano Metadata API",
1289
1449
  "examples": [
1290
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1291
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1292
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1293
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1450
+ "$ xano workspace edit 123 --name \"new-name\"\nUpdated workspace: new-name (ID: 123)\n",
1451
+ "$ xano workspace edit --name \"updated-workspace\" --description \"Updated description\"\nUpdated workspace: updated-workspace (ID: 123)\n Description: Updated description\n",
1452
+ "$ xano workspace edit 123 --swagger --require-token\nUpdated workspace: my-workspace (ID: 123)\n Swagger: enabled\n Require Token: true\n",
1453
+ "$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\n"
1294
1454
  ],
1295
1455
  "flags": {
1296
1456
  "profile": {
@@ -1312,6 +1472,38 @@
1312
1472
  "allowNo": false,
1313
1473
  "type": "boolean"
1314
1474
  },
1475
+ "name": {
1476
+ "char": "n",
1477
+ "description": "New name for the workspace",
1478
+ "name": "name",
1479
+ "required": false,
1480
+ "hasDynamicHelp": false,
1481
+ "multiple": false,
1482
+ "type": "option"
1483
+ },
1484
+ "description": {
1485
+ "char": "d",
1486
+ "description": "New description for the workspace",
1487
+ "name": "description",
1488
+ "required": false,
1489
+ "hasDynamicHelp": false,
1490
+ "multiple": false,
1491
+ "type": "option"
1492
+ },
1493
+ "swagger": {
1494
+ "description": "Enable or disable swagger documentation",
1495
+ "name": "swagger",
1496
+ "required": false,
1497
+ "allowNo": true,
1498
+ "type": "boolean"
1499
+ },
1500
+ "require-token": {
1501
+ "description": "Whether to require a token for documentation access",
1502
+ "name": "require-token",
1503
+ "required": false,
1504
+ "allowNo": true,
1505
+ "type": "boolean"
1506
+ },
1315
1507
  "output": {
1316
1508
  "char": "o",
1317
1509
  "description": "Output format",
@@ -1329,7 +1521,7 @@
1329
1521
  },
1330
1522
  "hasDynamicHelp": false,
1331
1523
  "hiddenAliases": [],
1332
- "id": "workspace:list",
1524
+ "id": "workspace:edit",
1333
1525
  "pluginAlias": "@xano/cli",
1334
1526
  "pluginName": "@xano/cli",
1335
1527
  "pluginType": "core",
@@ -1340,7 +1532,7 @@
1340
1532
  "dist",
1341
1533
  "commands",
1342
1534
  "workspace",
1343
- "list",
1535
+ "edit",
1344
1536
  "index.js"
1345
1537
  ]
1346
1538
  },
@@ -1420,20 +1612,20 @@
1420
1612
  "index.js"
1421
1613
  ]
1422
1614
  },
1423
- "workspace:push": {
1615
+ "workspace:get": {
1424
1616
  "aliases": [],
1425
1617
  "args": {
1426
- "directory": {
1427
- "description": "Directory containing documents to push (as produced by workspace pull)",
1428
- "name": "directory",
1429
- "required": true
1618
+ "workspace_id": {
1619
+ "description": "Workspace ID to get details for (uses profile workspace if not provided)",
1620
+ "name": "workspace_id",
1621
+ "required": false
1430
1622
  }
1431
1623
  },
1432
- "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1624
+ "description": "Get details of a specific workspace from the Xano Metadata API",
1433
1625
  "examples": [
1434
- "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1435
- "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1436
- "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
1626
+ "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
1627
+ "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
1628
+ "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
1437
1629
  ],
1438
1630
  "flags": {
1439
1631
  "profile": {
@@ -1455,19 +1647,24 @@
1455
1647
  "allowNo": false,
1456
1648
  "type": "boolean"
1457
1649
  },
1458
- "workspace": {
1459
- "char": "w",
1460
- "description": "Workspace ID (optional if set in profile)",
1461
- "name": "workspace",
1650
+ "output": {
1651
+ "char": "o",
1652
+ "description": "Output format",
1653
+ "name": "output",
1462
1654
  "required": false,
1655
+ "default": "summary",
1463
1656
  "hasDynamicHelp": false,
1464
1657
  "multiple": false,
1658
+ "options": [
1659
+ "summary",
1660
+ "json"
1661
+ ],
1465
1662
  "type": "option"
1466
1663
  }
1467
1664
  },
1468
1665
  "hasDynamicHelp": false,
1469
1666
  "hiddenAliases": [],
1470
- "id": "workspace:push",
1667
+ "id": "workspace:get",
1471
1668
  "pluginAlias": "@xano/cli",
1472
1669
  "pluginName": "@xano/cli",
1473
1670
  "pluginType": "core",
@@ -1478,24 +1675,19 @@
1478
1675
  "dist",
1479
1676
  "commands",
1480
1677
  "workspace",
1481
- "push",
1678
+ "get",
1482
1679
  "index.js"
1483
1680
  ]
1484
1681
  },
1485
- "static_host:build:create": {
1682
+ "workspace:list": {
1486
1683
  "aliases": [],
1487
- "args": {
1488
- "static_host": {
1489
- "description": "Static Host name",
1490
- "name": "static_host",
1491
- "required": true
1492
- }
1493
- },
1494
- "description": "Create a new build for a static host",
1684
+ "args": {},
1685
+ "description": "List all workspaces from the Xano Metadata API",
1495
1686
  "examples": [
1496
- "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
1497
- "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
1498
- "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
1687
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1688
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1689
+ "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1690
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1499
1691
  ],
1500
1692
  "flags": {
1501
1693
  "profile": {
@@ -1517,42 +1709,6 @@
1517
1709
  "allowNo": false,
1518
1710
  "type": "boolean"
1519
1711
  },
1520
- "workspace": {
1521
- "char": "w",
1522
- "description": "Workspace ID (optional if set in profile)",
1523
- "name": "workspace",
1524
- "required": false,
1525
- "hasDynamicHelp": false,
1526
- "multiple": false,
1527
- "type": "option"
1528
- },
1529
- "file": {
1530
- "char": "f",
1531
- "description": "Path to zip file to upload",
1532
- "name": "file",
1533
- "required": true,
1534
- "hasDynamicHelp": false,
1535
- "multiple": false,
1536
- "type": "option"
1537
- },
1538
- "name": {
1539
- "char": "n",
1540
- "description": "Build name",
1541
- "name": "name",
1542
- "required": true,
1543
- "hasDynamicHelp": false,
1544
- "multiple": false,
1545
- "type": "option"
1546
- },
1547
- "description": {
1548
- "char": "d",
1549
- "description": "Build description",
1550
- "name": "description",
1551
- "required": false,
1552
- "hasDynamicHelp": false,
1553
- "multiple": false,
1554
- "type": "option"
1555
- },
1556
1712
  "output": {
1557
1713
  "char": "o",
1558
1714
  "description": "Output format",
@@ -1570,7 +1726,7 @@
1570
1726
  },
1571
1727
  "hasDynamicHelp": false,
1572
1728
  "hiddenAliases": [],
1573
- "id": "static_host:build:create",
1729
+ "id": "workspace:list",
1574
1730
  "pluginAlias": "@xano/cli",
1575
1731
  "pluginName": "@xano/cli",
1576
1732
  "pluginType": "core",
@@ -1580,32 +1736,25 @@
1580
1736
  "relativePath": [
1581
1737
  "dist",
1582
1738
  "commands",
1583
- "static_host",
1584
- "build",
1585
- "create",
1739
+ "workspace",
1740
+ "list",
1586
1741
  "index.js"
1587
1742
  ]
1588
1743
  },
1589
- "static_host:build:get": {
1744
+ "workspace:push": {
1590
1745
  "aliases": [],
1591
1746
  "args": {
1592
- "static_host": {
1593
- "description": "Static Host name",
1594
- "name": "static_host",
1595
- "required": true
1596
- },
1597
- "build_id": {
1598
- "description": "Build ID",
1599
- "name": "build_id",
1747
+ "directory": {
1748
+ "description": "Directory containing documents to push (as produced by workspace pull)",
1749
+ "name": "directory",
1600
1750
  "required": true
1601
1751
  }
1602
1752
  },
1603
- "description": "Get details of a specific build for a static host",
1753
+ "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1604
1754
  "examples": [
1605
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1606
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1607
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1608
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1755
+ "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1756
+ "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1757
+ "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
1609
1758
  ],
1610
1759
  "flags": {
1611
1760
  "profile": {
@@ -1635,17 +1784,63 @@
1635
1784
  "hasDynamicHelp": false,
1636
1785
  "multiple": false,
1637
1786
  "type": "option"
1787
+ }
1788
+ },
1789
+ "hasDynamicHelp": false,
1790
+ "hiddenAliases": [],
1791
+ "id": "workspace:push",
1792
+ "pluginAlias": "@xano/cli",
1793
+ "pluginName": "@xano/cli",
1794
+ "pluginType": "core",
1795
+ "strict": true,
1796
+ "enableJsonFlag": false,
1797
+ "isESM": true,
1798
+ "relativePath": [
1799
+ "dist",
1800
+ "commands",
1801
+ "workspace",
1802
+ "push",
1803
+ "index.js"
1804
+ ]
1805
+ },
1806
+ "run:env:list": {
1807
+ "aliases": [],
1808
+ "args": {},
1809
+ "description": "List all environment variable keys",
1810
+ "examples": [
1811
+ "$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
1812
+ "$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
1813
+ ],
1814
+ "flags": {
1815
+ "profile": {
1816
+ "char": "p",
1817
+ "description": "Profile to use for this command",
1818
+ "env": "XANO_PROFILE",
1819
+ "name": "profile",
1820
+ "required": false,
1821
+ "hasDynamicHelp": false,
1822
+ "multiple": false,
1823
+ "type": "option"
1824
+ },
1825
+ "verbose": {
1826
+ "char": "v",
1827
+ "description": "Show detailed request/response information",
1828
+ "env": "XANO_VERBOSE",
1829
+ "name": "verbose",
1830
+ "required": false,
1831
+ "allowNo": false,
1832
+ "type": "boolean"
1638
1833
  },
1639
1834
  "output": {
1640
1835
  "char": "o",
1641
1836
  "description": "Output format",
1642
1837
  "name": "output",
1643
1838
  "required": false,
1644
- "default": "summary",
1839
+ "default": "list",
1645
1840
  "hasDynamicHelp": false,
1646
1841
  "multiple": false,
1647
1842
  "options": [
1648
- "summary",
1843
+ "list",
1649
1844
  "json"
1650
1845
  ],
1651
1846
  "type": "option"
@@ -1653,37 +1848,34 @@
1653
1848
  },
1654
1849
  "hasDynamicHelp": false,
1655
1850
  "hiddenAliases": [],
1656
- "id": "static_host:build:get",
1851
+ "id": "run:env:list",
1657
1852
  "pluginAlias": "@xano/cli",
1658
1853
  "pluginName": "@xano/cli",
1659
1854
  "pluginType": "core",
1660
1855
  "strict": true,
1661
- "enableJsonFlag": false,
1662
1856
  "isESM": true,
1663
1857
  "relativePath": [
1664
1858
  "dist",
1665
1859
  "commands",
1666
- "static_host",
1667
- "build",
1668
- "get",
1860
+ "run",
1861
+ "env",
1862
+ "list",
1669
1863
  "index.js"
1670
1864
  ]
1671
1865
  },
1672
- "static_host:build:list": {
1866
+ "run:env:get": {
1673
1867
  "aliases": [],
1674
1868
  "args": {
1675
- "static_host": {
1676
- "description": "Static Host name",
1677
- "name": "static_host",
1869
+ "name": {
1870
+ "description": "Environment variable name",
1871
+ "name": "name",
1678
1872
  "required": true
1679
1873
  }
1680
1874
  },
1681
- "description": "List all builds for a static host",
1875
+ "description": "Get an environment variable value",
1682
1876
  "examples": [
1683
- "$ 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",
1684
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
1685
- "$ 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",
1686
- "$ 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"
1877
+ "$ xano run env get API_KEY\nmy-secret-api-key\n",
1878
+ "$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
1687
1879
  ],
1688
1880
  "flags": {
1689
1881
  "profile": {
@@ -1705,63 +1897,92 @@
1705
1897
  "allowNo": false,
1706
1898
  "type": "boolean"
1707
1899
  },
1708
- "workspace": {
1709
- "char": "w",
1710
- "description": "Workspace ID (optional if set in profile)",
1711
- "name": "workspace",
1712
- "required": false,
1713
- "hasDynamicHelp": false,
1714
- "multiple": false,
1715
- "type": "option"
1716
- },
1717
1900
  "output": {
1718
1901
  "char": "o",
1719
1902
  "description": "Output format",
1720
1903
  "name": "output",
1721
1904
  "required": false,
1722
- "default": "summary",
1905
+ "default": "value",
1723
1906
  "hasDynamicHelp": false,
1724
1907
  "multiple": false,
1725
1908
  "options": [
1726
- "summary",
1909
+ "value",
1727
1910
  "json"
1728
1911
  ],
1729
1912
  "type": "option"
1913
+ }
1914
+ },
1915
+ "hasDynamicHelp": false,
1916
+ "hiddenAliases": [],
1917
+ "id": "run:env:get",
1918
+ "pluginAlias": "@xano/cli",
1919
+ "pluginName": "@xano/cli",
1920
+ "pluginType": "core",
1921
+ "strict": true,
1922
+ "isESM": true,
1923
+ "relativePath": [
1924
+ "dist",
1925
+ "commands",
1926
+ "run",
1927
+ "env",
1928
+ "get",
1929
+ "index.js"
1930
+ ]
1931
+ },
1932
+ "run:env:set": {
1933
+ "aliases": [],
1934
+ "args": {
1935
+ "name": {
1936
+ "description": "Environment variable name",
1937
+ "name": "name",
1938
+ "required": true
1730
1939
  },
1731
- "page": {
1732
- "description": "Page number for pagination",
1733
- "name": "page",
1940
+ "value": {
1941
+ "description": "Environment variable value",
1942
+ "name": "value",
1943
+ "required": true
1944
+ }
1945
+ },
1946
+ "description": "Set an environment variable",
1947
+ "examples": [
1948
+ "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1949
+ "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
1950
+ ],
1951
+ "flags": {
1952
+ "profile": {
1953
+ "char": "p",
1954
+ "description": "Profile to use for this command",
1955
+ "env": "XANO_PROFILE",
1956
+ "name": "profile",
1734
1957
  "required": false,
1735
- "default": 1,
1736
1958
  "hasDynamicHelp": false,
1737
1959
  "multiple": false,
1738
1960
  "type": "option"
1739
1961
  },
1740
- "per_page": {
1741
- "description": "Number of results per page",
1742
- "name": "per_page",
1962
+ "verbose": {
1963
+ "char": "v",
1964
+ "description": "Show detailed request/response information",
1965
+ "env": "XANO_VERBOSE",
1966
+ "name": "verbose",
1743
1967
  "required": false,
1744
- "default": 50,
1745
- "hasDynamicHelp": false,
1746
- "multiple": false,
1747
- "type": "option"
1968
+ "allowNo": false,
1969
+ "type": "boolean"
1748
1970
  }
1749
1971
  },
1750
1972
  "hasDynamicHelp": false,
1751
1973
  "hiddenAliases": [],
1752
- "id": "static_host:build:list",
1974
+ "id": "run:env:set",
1753
1975
  "pluginAlias": "@xano/cli",
1754
1976
  "pluginName": "@xano/cli",
1755
1977
  "pluginType": "core",
1756
1978
  "strict": true,
1757
- "enableJsonFlag": false,
1758
1979
  "isESM": true,
1759
1980
  "relativePath": [
1760
1981
  "dist",
1761
1982
  "commands",
1762
- "static_host",
1763
- "build",
1764
- "list",
1983
+ "run",
1984
+ "env",
1985
+ "set",
1765
1986
  "index.js"
1766
1987
  ]
1767
1988
  },
@@ -1825,19 +2046,73 @@
1825
2046
  "index.js"
1826
2047
  ]
1827
2048
  },
1828
- "run:env:get": {
2049
+ "run:secrets:delete": {
1829
2050
  "aliases": [],
1830
2051
  "args": {
1831
2052
  "name": {
1832
- "description": "Environment variable name",
2053
+ "description": "Secret name",
1833
2054
  "name": "name",
1834
2055
  "required": true
1835
2056
  }
1836
2057
  },
1837
- "description": "Get an environment variable value",
2058
+ "description": "Delete a secret",
2059
+ "examples": [
2060
+ "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
2061
+ "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
2062
+ ],
2063
+ "flags": {
2064
+ "profile": {
2065
+ "char": "p",
2066
+ "description": "Profile to use for this command",
2067
+ "env": "XANO_PROFILE",
2068
+ "name": "profile",
2069
+ "required": false,
2070
+ "hasDynamicHelp": false,
2071
+ "multiple": false,
2072
+ "type": "option"
2073
+ },
2074
+ "verbose": {
2075
+ "char": "v",
2076
+ "description": "Show detailed request/response information",
2077
+ "env": "XANO_VERBOSE",
2078
+ "name": "verbose",
2079
+ "required": false,
2080
+ "allowNo": false,
2081
+ "type": "boolean"
2082
+ },
2083
+ "force": {
2084
+ "char": "f",
2085
+ "description": "Skip confirmation prompt",
2086
+ "name": "force",
2087
+ "required": false,
2088
+ "allowNo": false,
2089
+ "type": "boolean"
2090
+ }
2091
+ },
2092
+ "hasDynamicHelp": false,
2093
+ "hiddenAliases": [],
2094
+ "id": "run:secrets:delete",
2095
+ "pluginAlias": "@xano/cli",
2096
+ "pluginName": "@xano/cli",
2097
+ "pluginType": "core",
2098
+ "strict": true,
2099
+ "isESM": true,
2100
+ "relativePath": [
2101
+ "dist",
2102
+ "commands",
2103
+ "run",
2104
+ "secrets",
2105
+ "delete",
2106
+ "index.js"
2107
+ ]
2108
+ },
2109
+ "run:secrets:list": {
2110
+ "aliases": [],
2111
+ "args": {},
2112
+ "description": "List all secret keys",
1838
2113
  "examples": [
1839
- "$ xano run env get API_KEY\nmy-secret-api-key\n",
1840
- "$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
2114
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2115
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
1841
2116
  ],
1842
2117
  "flags": {
1843
2118
  "profile": {
@@ -1864,11 +2139,11 @@
1864
2139
  "description": "Output format",
1865
2140
  "name": "output",
1866
2141
  "required": false,
1867
- "default": "value",
2142
+ "default": "table",
1868
2143
  "hasDynamicHelp": false,
1869
2144
  "multiple": false,
1870
2145
  "options": [
1871
- "value",
2146
+ "table",
1872
2147
  "json"
1873
2148
  ],
1874
2149
  "type": "option"
@@ -1876,7 +2151,7 @@
1876
2151
  },
1877
2152
  "hasDynamicHelp": false,
1878
2153
  "hiddenAliases": [],
1879
- "id": "run:env:get",
2154
+ "id": "run:secrets:list",
1880
2155
  "pluginAlias": "@xano/cli",
1881
2156
  "pluginName": "@xano/cli",
1882
2157
  "pluginType": "core",
@@ -1886,18 +2161,24 @@
1886
2161
  "dist",
1887
2162
  "commands",
1888
2163
  "run",
1889
- "env",
1890
- "get",
2164
+ "secrets",
2165
+ "list",
1891
2166
  "index.js"
1892
2167
  ]
1893
2168
  },
1894
- "run:env:list": {
2169
+ "run:secrets:set": {
1895
2170
  "aliases": [],
1896
- "args": {},
1897
- "description": "List all environment variable keys",
2171
+ "args": {
2172
+ "name": {
2173
+ "description": "Secret name",
2174
+ "name": "name",
2175
+ "required": true
2176
+ }
2177
+ },
2178
+ "description": "Set a secret",
1898
2179
  "examples": [
1899
- "$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
1900
- "$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
2180
+ "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
2181
+ "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
1901
2182
  ],
1902
2183
  "flags": {
1903
2184
  "profile": {
@@ -1919,24 +2200,41 @@
1919
2200
  "allowNo": false,
1920
2201
  "type": "boolean"
1921
2202
  },
1922
- "output": {
1923
- "char": "o",
1924
- "description": "Output format",
1925
- "name": "output",
1926
- "required": false,
1927
- "default": "list",
2203
+ "type": {
2204
+ "char": "t",
2205
+ "description": "Secret type",
2206
+ "name": "type",
2207
+ "required": true,
1928
2208
  "hasDynamicHelp": false,
1929
2209
  "multiple": false,
1930
2210
  "options": [
1931
- "list",
1932
- "json"
2211
+ "dockerconfigjson",
2212
+ "service-account-token"
1933
2213
  ],
1934
2214
  "type": "option"
2215
+ },
2216
+ "value": {
2217
+ "char": "v",
2218
+ "description": "Secret value",
2219
+ "name": "value",
2220
+ "required": true,
2221
+ "hasDynamicHelp": false,
2222
+ "multiple": false,
2223
+ "type": "option"
2224
+ },
2225
+ "repo": {
2226
+ "char": "r",
2227
+ "description": "Repository (for dockerconfigjson type)",
2228
+ "name": "repo",
2229
+ "required": false,
2230
+ "hasDynamicHelp": false,
2231
+ "multiple": false,
2232
+ "type": "option"
1935
2233
  }
1936
2234
  },
1937
2235
  "hasDynamicHelp": false,
1938
2236
  "hiddenAliases": [],
1939
- "id": "run:env:list",
2237
+ "id": "run:secrets:set",
1940
2238
  "pluginAlias": "@xano/cli",
1941
2239
  "pluginName": "@xano/cli",
1942
2240
  "pluginType": "core",
@@ -1946,29 +2244,24 @@
1946
2244
  "dist",
1947
2245
  "commands",
1948
2246
  "run",
1949
- "env",
1950
- "list",
2247
+ "secrets",
2248
+ "set",
1951
2249
  "index.js"
1952
2250
  ]
1953
2251
  },
1954
- "run:env:set": {
2252
+ "run:secrets:get": {
1955
2253
  "aliases": [],
1956
2254
  "args": {
1957
2255
  "name": {
1958
- "description": "Environment variable name",
2256
+ "description": "Secret name",
1959
2257
  "name": "name",
1960
2258
  "required": true
1961
- },
1962
- "value": {
1963
- "description": "Environment variable value",
1964
- "name": "value",
1965
- "required": true
1966
2259
  }
1967
2260
  },
1968
- "description": "Set an environment variable",
2261
+ "description": "Get a secret value",
1969
2262
  "examples": [
1970
- "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1971
- "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
2263
+ "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
2264
+ "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
1972
2265
  ],
1973
2266
  "flags": {
1974
2267
  "profile": {
@@ -1989,11 +2282,25 @@
1989
2282
  "required": false,
1990
2283
  "allowNo": false,
1991
2284
  "type": "boolean"
2285
+ },
2286
+ "output": {
2287
+ "char": "o",
2288
+ "description": "Output format",
2289
+ "name": "output",
2290
+ "required": false,
2291
+ "default": "value",
2292
+ "hasDynamicHelp": false,
2293
+ "multiple": false,
2294
+ "options": [
2295
+ "value",
2296
+ "json"
2297
+ ],
2298
+ "type": "option"
1992
2299
  }
1993
2300
  },
1994
2301
  "hasDynamicHelp": false,
1995
2302
  "hiddenAliases": [],
1996
- "id": "run:env:set",
2303
+ "id": "run:secrets:get",
1997
2304
  "pluginAlias": "@xano/cli",
1998
2305
  "pluginName": "@xano/cli",
1999
2306
  "pluginType": "core",
@@ -2003,8 +2310,8 @@
2003
2310
  "dist",
2004
2311
  "commands",
2005
2312
  "run",
2006
- "env",
2007
- "set",
2313
+ "secrets",
2314
+ "get",
2008
2315
  "index.js"
2009
2316
  ]
2010
2317
  },
@@ -2088,66 +2395,6 @@
2088
2395
  "index.js"
2089
2396
  ]
2090
2397
  },
2091
- "run:projects:delete": {
2092
- "aliases": [],
2093
- "args": {
2094
- "projectId": {
2095
- "description": "Project ID to delete",
2096
- "name": "projectId",
2097
- "required": true
2098
- }
2099
- },
2100
- "description": "Delete a project",
2101
- "examples": [
2102
- "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2103
- "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2104
- ],
2105
- "flags": {
2106
- "profile": {
2107
- "char": "p",
2108
- "description": "Profile to use for this command",
2109
- "env": "XANO_PROFILE",
2110
- "name": "profile",
2111
- "required": false,
2112
- "hasDynamicHelp": false,
2113
- "multiple": false,
2114
- "type": "option"
2115
- },
2116
- "verbose": {
2117
- "char": "v",
2118
- "description": "Show detailed request/response information",
2119
- "env": "XANO_VERBOSE",
2120
- "name": "verbose",
2121
- "required": false,
2122
- "allowNo": false,
2123
- "type": "boolean"
2124
- },
2125
- "force": {
2126
- "char": "f",
2127
- "description": "Skip confirmation prompt",
2128
- "name": "force",
2129
- "required": false,
2130
- "allowNo": false,
2131
- "type": "boolean"
2132
- }
2133
- },
2134
- "hasDynamicHelp": false,
2135
- "hiddenAliases": [],
2136
- "id": "run:projects:delete",
2137
- "pluginAlias": "@xano/cli",
2138
- "pluginName": "@xano/cli",
2139
- "pluginType": "core",
2140
- "strict": true,
2141
- "isESM": true,
2142
- "relativePath": [
2143
- "dist",
2144
- "commands",
2145
- "run",
2146
- "projects",
2147
- "delete",
2148
- "index.js"
2149
- ]
2150
- },
2151
2398
  "run:projects:list": {
2152
2399
  "aliases": [],
2153
2400
  "args": {},
@@ -2293,19 +2540,19 @@
2293
2540
  "index.js"
2294
2541
  ]
2295
2542
  },
2296
- "run:secrets:delete": {
2543
+ "run:projects:delete": {
2297
2544
  "aliases": [],
2298
2545
  "args": {
2299
- "name": {
2300
- "description": "Secret name",
2301
- "name": "name",
2546
+ "projectId": {
2547
+ "description": "Project ID to delete",
2548
+ "name": "projectId",
2302
2549
  "required": true
2303
2550
  }
2304
2551
  },
2305
- "description": "Delete a secret",
2552
+ "description": "Delete a project",
2306
2553
  "examples": [
2307
- "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
2308
- "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
2554
+ "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2555
+ "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2309
2556
  ],
2310
2557
  "flags": {
2311
2558
  "profile": {
@@ -2338,7 +2585,7 @@
2338
2585
  },
2339
2586
  "hasDynamicHelp": false,
2340
2587
  "hiddenAliases": [],
2341
- "id": "run:secrets:delete",
2588
+ "id": "run:projects:delete",
2342
2589
  "pluginAlias": "@xano/cli",
2343
2590
  "pluginName": "@xano/cli",
2344
2591
  "pluginType": "core",
@@ -2348,24 +2595,24 @@
2348
2595
  "dist",
2349
2596
  "commands",
2350
2597
  "run",
2351
- "secrets",
2598
+ "projects",
2352
2599
  "delete",
2353
2600
  "index.js"
2354
2601
  ]
2355
2602
  },
2356
- "run:secrets:get": {
2603
+ "run:sessions:delete": {
2357
2604
  "aliases": [],
2358
2605
  "args": {
2359
- "name": {
2360
- "description": "Secret name",
2361
- "name": "name",
2606
+ "sessionId": {
2607
+ "description": "Session ID",
2608
+ "name": "sessionId",
2362
2609
  "required": true
2363
2610
  }
2364
2611
  },
2365
- "description": "Get a secret value",
2612
+ "description": "Delete a session",
2366
2613
  "examples": [
2367
- "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
2368
- "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2614
+ "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
2615
+ "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
2369
2616
  ],
2370
2617
  "flags": {
2371
2618
  "profile": {
@@ -2387,24 +2634,18 @@
2387
2634
  "allowNo": false,
2388
2635
  "type": "boolean"
2389
2636
  },
2390
- "output": {
2391
- "char": "o",
2392
- "description": "Output format",
2393
- "name": "output",
2637
+ "force": {
2638
+ "char": "f",
2639
+ "description": "Skip confirmation prompt",
2640
+ "name": "force",
2394
2641
  "required": false,
2395
- "default": "value",
2396
- "hasDynamicHelp": false,
2397
- "multiple": false,
2398
- "options": [
2399
- "value",
2400
- "json"
2401
- ],
2402
- "type": "option"
2642
+ "allowNo": false,
2643
+ "type": "boolean"
2403
2644
  }
2404
2645
  },
2405
2646
  "hasDynamicHelp": false,
2406
2647
  "hiddenAliases": [],
2407
- "id": "run:secrets:get",
2648
+ "id": "run:sessions:delete",
2408
2649
  "pluginAlias": "@xano/cli",
2409
2650
  "pluginName": "@xano/cli",
2410
2651
  "pluginType": "core",
@@ -2414,18 +2655,24 @@
2414
2655
  "dist",
2415
2656
  "commands",
2416
2657
  "run",
2417
- "secrets",
2418
- "get",
2658
+ "sessions",
2659
+ "delete",
2419
2660
  "index.js"
2420
2661
  ]
2421
2662
  },
2422
- "run:secrets:list": {
2663
+ "run:sessions:get": {
2423
2664
  "aliases": [],
2424
- "args": {},
2425
- "description": "List all secret keys",
2665
+ "args": {
2666
+ "sessionId": {
2667
+ "description": "Session ID",
2668
+ "name": "sessionId",
2669
+ "required": true
2670
+ }
2671
+ },
2672
+ "description": "Get session details",
2426
2673
  "examples": [
2427
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2428
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2674
+ "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
2675
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
2429
2676
  ],
2430
2677
  "flags": {
2431
2678
  "profile": {
@@ -2452,11 +2699,11 @@
2452
2699
  "description": "Output format",
2453
2700
  "name": "output",
2454
2701
  "required": false,
2455
- "default": "table",
2702
+ "default": "summary",
2456
2703
  "hasDynamicHelp": false,
2457
2704
  "multiple": false,
2458
2705
  "options": [
2459
- "table",
2706
+ "summary",
2460
2707
  "json"
2461
2708
  ],
2462
2709
  "type": "option"
@@ -2464,7 +2711,7 @@
2464
2711
  },
2465
2712
  "hasDynamicHelp": false,
2466
2713
  "hiddenAliases": [],
2467
- "id": "run:secrets:list",
2714
+ "id": "run:sessions:get",
2468
2715
  "pluginAlias": "@xano/cli",
2469
2716
  "pluginName": "@xano/cli",
2470
2717
  "pluginType": "core",
@@ -2474,12 +2721,12 @@
2474
2721
  "dist",
2475
2722
  "commands",
2476
2723
  "run",
2477
- "secrets",
2478
- "list",
2724
+ "sessions",
2725
+ "get",
2479
2726
  "index.js"
2480
2727
  ]
2481
2728
  },
2482
- "run:sink:get": {
2729
+ "run:sessions:start": {
2483
2730
  "aliases": [],
2484
2731
  "args": {
2485
2732
  "sessionId": {
@@ -2488,10 +2735,10 @@
2488
2735
  "required": true
2489
2736
  }
2490
2737
  },
2491
- "description": "Get sink data for a completed session",
2738
+ "description": "Start a session",
2492
2739
  "examples": [
2493
- "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
2494
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
2740
+ "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2741
+ "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
2495
2742
  ],
2496
2743
  "flags": {
2497
2744
  "profile": {
@@ -2530,7 +2777,7 @@
2530
2777
  },
2531
2778
  "hasDynamicHelp": false,
2532
2779
  "hiddenAliases": [],
2533
- "id": "run:sink:get",
2780
+ "id": "run:sessions:start",
2534
2781
  "pluginAlias": "@xano/cli",
2535
2782
  "pluginName": "@xano/cli",
2536
2783
  "pluginType": "core",
@@ -2540,12 +2787,12 @@
2540
2787
  "dist",
2541
2788
  "commands",
2542
2789
  "run",
2543
- "sink",
2544
- "get",
2790
+ "sessions",
2791
+ "start",
2545
2792
  "index.js"
2546
2793
  ]
2547
2794
  },
2548
- "run:sessions:delete": {
2795
+ "run:sessions:stop": {
2549
2796
  "aliases": [],
2550
2797
  "args": {
2551
2798
  "sessionId": {
@@ -2554,10 +2801,10 @@
2554
2801
  "required": true
2555
2802
  }
2556
2803
  },
2557
- "description": "Delete a session",
2804
+ "description": "Stop a session",
2558
2805
  "examples": [
2559
- "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
2560
- "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
2806
+ "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
2807
+ "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
2561
2808
  ],
2562
2809
  "flags": {
2563
2810
  "profile": {
@@ -2579,18 +2826,24 @@
2579
2826
  "allowNo": false,
2580
2827
  "type": "boolean"
2581
2828
  },
2582
- "force": {
2583
- "char": "f",
2584
- "description": "Skip confirmation prompt",
2585
- "name": "force",
2829
+ "output": {
2830
+ "char": "o",
2831
+ "description": "Output format",
2832
+ "name": "output",
2586
2833
  "required": false,
2587
- "allowNo": false,
2588
- "type": "boolean"
2834
+ "default": "summary",
2835
+ "hasDynamicHelp": false,
2836
+ "multiple": false,
2837
+ "options": [
2838
+ "summary",
2839
+ "json"
2840
+ ],
2841
+ "type": "option"
2589
2842
  }
2590
2843
  },
2591
2844
  "hasDynamicHelp": false,
2592
2845
  "hiddenAliases": [],
2593
- "id": "run:sessions:delete",
2846
+ "id": "run:sessions:stop",
2594
2847
  "pluginAlias": "@xano/cli",
2595
2848
  "pluginName": "@xano/cli",
2596
2849
  "pluginType": "core",
@@ -2601,23 +2854,17 @@
2601
2854
  "commands",
2602
2855
  "run",
2603
2856
  "sessions",
2604
- "delete",
2857
+ "stop",
2605
2858
  "index.js"
2606
2859
  ]
2607
2860
  },
2608
- "run:secrets:set": {
2861
+ "run:sessions:list": {
2609
2862
  "aliases": [],
2610
- "args": {
2611
- "name": {
2612
- "description": "Secret name",
2613
- "name": "name",
2614
- "required": true
2615
- }
2616
- },
2617
- "description": "Set a secret",
2863
+ "args": {},
2864
+ "description": "List all sessions for the project",
2618
2865
  "examples": [
2619
- "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
2620
- "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
2866
+ "$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
2867
+ "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
2621
2868
  ],
2622
2869
  "flags": {
2623
2870
  "profile": {
@@ -2639,41 +2886,24 @@
2639
2886
  "allowNo": false,
2640
2887
  "type": "boolean"
2641
2888
  },
2642
- "type": {
2643
- "char": "t",
2644
- "description": "Secret type",
2645
- "name": "type",
2646
- "required": true,
2889
+ "output": {
2890
+ "char": "o",
2891
+ "description": "Output format",
2892
+ "name": "output",
2893
+ "required": false,
2894
+ "default": "table",
2647
2895
  "hasDynamicHelp": false,
2648
2896
  "multiple": false,
2649
2897
  "options": [
2650
- "dockerconfigjson",
2651
- "service-account-token"
2898
+ "table",
2899
+ "json"
2652
2900
  ],
2653
2901
  "type": "option"
2654
- },
2655
- "value": {
2656
- "char": "v",
2657
- "description": "Secret value",
2658
- "name": "value",
2659
- "required": true,
2660
- "hasDynamicHelp": false,
2661
- "multiple": false,
2662
- "type": "option"
2663
- },
2664
- "repo": {
2665
- "char": "r",
2666
- "description": "Repository (for dockerconfigjson type)",
2667
- "name": "repo",
2668
- "required": false,
2669
- "hasDynamicHelp": false,
2670
- "multiple": false,
2671
- "type": "option"
2672
2902
  }
2673
2903
  },
2674
2904
  "hasDynamicHelp": false,
2675
2905
  "hiddenAliases": [],
2676
- "id": "run:secrets:set",
2906
+ "id": "run:sessions:list",
2677
2907
  "pluginAlias": "@xano/cli",
2678
2908
  "pluginName": "@xano/cli",
2679
2909
  "pluginType": "core",
@@ -2683,12 +2913,12 @@
2683
2913
  "dist",
2684
2914
  "commands",
2685
2915
  "run",
2686
- "secrets",
2687
- "set",
2916
+ "sessions",
2917
+ "list",
2688
2918
  "index.js"
2689
2919
  ]
2690
2920
  },
2691
- "run:sessions:get": {
2921
+ "run:sink:get": {
2692
2922
  "aliases": [],
2693
2923
  "args": {
2694
2924
  "sessionId": {
@@ -2697,10 +2927,10 @@
2697
2927
  "required": true
2698
2928
  }
2699
2929
  },
2700
- "description": "Get session details",
2930
+ "description": "Get sink data for a completed session",
2701
2931
  "examples": [
2702
- "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
2703
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
2932
+ "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
2933
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
2704
2934
  ],
2705
2935
  "flags": {
2706
2936
  "profile": {
@@ -2739,7 +2969,7 @@
2739
2969
  },
2740
2970
  "hasDynamicHelp": false,
2741
2971
  "hiddenAliases": [],
2742
- "id": "run:sessions:get",
2972
+ "id": "run:sink:get",
2743
2973
  "pluginAlias": "@xano/cli",
2744
2974
  "pluginName": "@xano/cli",
2745
2975
  "pluginType": "core",
@@ -2749,18 +2979,26 @@
2749
2979
  "dist",
2750
2980
  "commands",
2751
2981
  "run",
2752
- "sessions",
2982
+ "sink",
2753
2983
  "get",
2754
2984
  "index.js"
2755
2985
  ]
2756
2986
  },
2757
- "run:sessions:list": {
2987
+ "static_host:build:list": {
2758
2988
  "aliases": [],
2759
- "args": {},
2760
- "description": "List all sessions for the project",
2989
+ "args": {
2990
+ "static_host": {
2991
+ "description": "Static Host name",
2992
+ "name": "static_host",
2993
+ "required": true
2994
+ }
2995
+ },
2996
+ "description": "List all builds for a static host",
2761
2997
  "examples": [
2762
- "$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
2763
- "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
2998
+ "$ 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",
2999
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
3000
+ "$ 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",
3001
+ "$ 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"
2764
3002
  ],
2765
3003
  "flags": {
2766
3004
  "profile": {
@@ -2782,51 +3020,86 @@
2782
3020
  "allowNo": false,
2783
3021
  "type": "boolean"
2784
3022
  },
3023
+ "workspace": {
3024
+ "char": "w",
3025
+ "description": "Workspace ID (optional if set in profile)",
3026
+ "name": "workspace",
3027
+ "required": false,
3028
+ "hasDynamicHelp": false,
3029
+ "multiple": false,
3030
+ "type": "option"
3031
+ },
2785
3032
  "output": {
2786
3033
  "char": "o",
2787
3034
  "description": "Output format",
2788
3035
  "name": "output",
2789
3036
  "required": false,
2790
- "default": "table",
3037
+ "default": "summary",
2791
3038
  "hasDynamicHelp": false,
2792
3039
  "multiple": false,
2793
3040
  "options": [
2794
- "table",
3041
+ "summary",
2795
3042
  "json"
2796
3043
  ],
2797
3044
  "type": "option"
3045
+ },
3046
+ "page": {
3047
+ "description": "Page number for pagination",
3048
+ "name": "page",
3049
+ "required": false,
3050
+ "default": 1,
3051
+ "hasDynamicHelp": false,
3052
+ "multiple": false,
3053
+ "type": "option"
3054
+ },
3055
+ "per_page": {
3056
+ "description": "Number of results per page",
3057
+ "name": "per_page",
3058
+ "required": false,
3059
+ "default": 50,
3060
+ "hasDynamicHelp": false,
3061
+ "multiple": false,
3062
+ "type": "option"
2798
3063
  }
2799
3064
  },
2800
3065
  "hasDynamicHelp": false,
2801
3066
  "hiddenAliases": [],
2802
- "id": "run:sessions:list",
3067
+ "id": "static_host:build:list",
2803
3068
  "pluginAlias": "@xano/cli",
2804
3069
  "pluginName": "@xano/cli",
2805
3070
  "pluginType": "core",
2806
3071
  "strict": true,
3072
+ "enableJsonFlag": false,
2807
3073
  "isESM": true,
2808
3074
  "relativePath": [
2809
3075
  "dist",
2810
3076
  "commands",
2811
- "run",
2812
- "sessions",
3077
+ "static_host",
3078
+ "build",
2813
3079
  "list",
2814
3080
  "index.js"
2815
3081
  ]
2816
3082
  },
2817
- "run:sessions:start": {
3083
+ "static_host:build:get": {
2818
3084
  "aliases": [],
2819
3085
  "args": {
2820
- "sessionId": {
2821
- "description": "Session ID",
2822
- "name": "sessionId",
3086
+ "static_host": {
3087
+ "description": "Static Host name",
3088
+ "name": "static_host",
3089
+ "required": true
3090
+ },
3091
+ "build_id": {
3092
+ "description": "Build ID",
3093
+ "name": "build_id",
2823
3094
  "required": true
2824
3095
  }
2825
3096
  },
2826
- "description": "Start a session",
3097
+ "description": "Get details of a specific build for a static host",
2827
3098
  "examples": [
2828
- "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2829
- "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
3099
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3100
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3101
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
3102
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
2830
3103
  ],
2831
3104
  "flags": {
2832
3105
  "profile": {
@@ -2848,6 +3121,15 @@
2848
3121
  "allowNo": false,
2849
3122
  "type": "boolean"
2850
3123
  },
3124
+ "workspace": {
3125
+ "char": "w",
3126
+ "description": "Workspace ID (optional if set in profile)",
3127
+ "name": "workspace",
3128
+ "required": false,
3129
+ "hasDynamicHelp": false,
3130
+ "multiple": false,
3131
+ "type": "option"
3132
+ },
2851
3133
  "output": {
2852
3134
  "char": "o",
2853
3135
  "description": "Output format",
@@ -2865,34 +3147,36 @@
2865
3147
  },
2866
3148
  "hasDynamicHelp": false,
2867
3149
  "hiddenAliases": [],
2868
- "id": "run:sessions:start",
3150
+ "id": "static_host:build:get",
2869
3151
  "pluginAlias": "@xano/cli",
2870
3152
  "pluginName": "@xano/cli",
2871
3153
  "pluginType": "core",
2872
3154
  "strict": true,
3155
+ "enableJsonFlag": false,
2873
3156
  "isESM": true,
2874
3157
  "relativePath": [
2875
3158
  "dist",
2876
3159
  "commands",
2877
- "run",
2878
- "sessions",
2879
- "start",
3160
+ "static_host",
3161
+ "build",
3162
+ "get",
2880
3163
  "index.js"
2881
3164
  ]
2882
3165
  },
2883
- "run:sessions:stop": {
3166
+ "static_host:build:create": {
2884
3167
  "aliases": [],
2885
3168
  "args": {
2886
- "sessionId": {
2887
- "description": "Session ID",
2888
- "name": "sessionId",
3169
+ "static_host": {
3170
+ "description": "Static Host name",
3171
+ "name": "static_host",
2889
3172
  "required": true
2890
3173
  }
2891
3174
  },
2892
- "description": "Stop a session",
3175
+ "description": "Create a new build for a static host",
2893
3176
  "examples": [
2894
- "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
2895
- "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
3177
+ "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
3178
+ "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
3179
+ "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
2896
3180
  ],
2897
3181
  "flags": {
2898
3182
  "profile": {
@@ -2914,6 +3198,42 @@
2914
3198
  "allowNo": false,
2915
3199
  "type": "boolean"
2916
3200
  },
3201
+ "workspace": {
3202
+ "char": "w",
3203
+ "description": "Workspace ID (optional if set in profile)",
3204
+ "name": "workspace",
3205
+ "required": false,
3206
+ "hasDynamicHelp": false,
3207
+ "multiple": false,
3208
+ "type": "option"
3209
+ },
3210
+ "file": {
3211
+ "char": "f",
3212
+ "description": "Path to zip file to upload",
3213
+ "name": "file",
3214
+ "required": true,
3215
+ "hasDynamicHelp": false,
3216
+ "multiple": false,
3217
+ "type": "option"
3218
+ },
3219
+ "name": {
3220
+ "char": "n",
3221
+ "description": "Build name",
3222
+ "name": "name",
3223
+ "required": true,
3224
+ "hasDynamicHelp": false,
3225
+ "multiple": false,
3226
+ "type": "option"
3227
+ },
3228
+ "description": {
3229
+ "char": "d",
3230
+ "description": "Build description",
3231
+ "name": "description",
3232
+ "required": false,
3233
+ "hasDynamicHelp": false,
3234
+ "multiple": false,
3235
+ "type": "option"
3236
+ },
2917
3237
  "output": {
2918
3238
  "char": "o",
2919
3239
  "description": "Output format",
@@ -2931,21 +3251,22 @@
2931
3251
  },
2932
3252
  "hasDynamicHelp": false,
2933
3253
  "hiddenAliases": [],
2934
- "id": "run:sessions:stop",
3254
+ "id": "static_host:build:create",
2935
3255
  "pluginAlias": "@xano/cli",
2936
3256
  "pluginName": "@xano/cli",
2937
3257
  "pluginType": "core",
2938
3258
  "strict": true,
3259
+ "enableJsonFlag": false,
2939
3260
  "isESM": true,
2940
3261
  "relativePath": [
2941
3262
  "dist",
2942
3263
  "commands",
2943
- "run",
2944
- "sessions",
2945
- "stop",
3264
+ "static_host",
3265
+ "build",
3266
+ "create",
2946
3267
  "index.js"
2947
3268
  ]
2948
3269
  }
2949
3270
  },
2950
- "version": "0.0.20"
3271
+ "version": "0.0.21"
2951
3272
  }