@xano/cli 0.0.26 → 0.0.27

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 (110) hide show
  1. package/dist/base-command.d.ts +3 -1
  2. package/dist/base-command.js +12 -5
  3. package/dist/commands/auth/index.d.ts +21 -0
  4. package/dist/commands/auth/index.js +533 -0
  5. package/dist/commands/branch/create/index.d.ts +17 -0
  6. package/dist/commands/branch/create/index.js +164 -0
  7. package/dist/commands/branch/delete/index.d.ts +18 -0
  8. package/dist/commands/branch/delete/index.js +156 -0
  9. package/dist/commands/branch/edit/index.d.ts +19 -0
  10. package/dist/commands/branch/edit/index.js +166 -0
  11. package/dist/commands/branch/get/index.d.ts +16 -0
  12. package/dist/commands/branch/get/index.js +135 -0
  13. package/dist/commands/branch/list/index.d.ts +18 -0
  14. package/dist/commands/branch/list/index.js +138 -0
  15. package/dist/commands/branch/set-live/index.d.ts +18 -0
  16. package/dist/commands/branch/set-live/index.js +155 -0
  17. package/dist/commands/function/create/index.d.ts +7 -6
  18. package/dist/commands/function/create/index.js +55 -55
  19. package/dist/commands/function/edit/index.d.ts +11 -10
  20. package/dist/commands/function/edit/index.js +155 -162
  21. package/dist/commands/function/get/index.d.ts +6 -5
  22. package/dist/commands/function/get/index.js +55 -60
  23. package/dist/commands/function/list/index.d.ts +6 -5
  24. package/dist/commands/function/list/index.js +52 -52
  25. package/dist/commands/profile/create/index.d.ts +6 -6
  26. package/dist/commands/profile/create/index.js +37 -37
  27. package/dist/commands/profile/delete/index.d.ts +2 -2
  28. package/dist/commands/profile/delete/index.js +9 -9
  29. package/dist/commands/profile/edit/index.d.ts +8 -7
  30. package/dist/commands/profile/edit/index.js +48 -48
  31. package/dist/commands/profile/get-default/index.js +1 -1
  32. package/dist/commands/profile/list/index.d.ts +2 -2
  33. package/dist/commands/profile/list/index.js +9 -9
  34. package/dist/commands/profile/me/index.d.ts +4 -3
  35. package/dist/commands/profile/me/index.js +21 -21
  36. package/dist/commands/profile/project/index.js +1 -1
  37. package/dist/commands/profile/set-default/index.js +1 -1
  38. package/dist/commands/profile/token/index.js +1 -1
  39. package/dist/commands/profile/wizard/index.d.ts +5 -4
  40. package/dist/commands/profile/wizard/index.js +142 -108
  41. package/dist/commands/run/env/delete/index.d.ts +3 -2
  42. package/dist/commands/run/env/delete/index.js +10 -10
  43. package/dist/commands/run/env/get/index.d.ts +3 -2
  44. package/dist/commands/run/env/get/index.js +11 -11
  45. package/dist/commands/run/env/list/index.d.ts +3 -2
  46. package/dist/commands/run/env/list/index.js +17 -19
  47. package/dist/commands/run/env/set/index.d.ts +3 -2
  48. package/dist/commands/run/env/set/index.js +5 -5
  49. package/dist/commands/run/exec/index.d.ts +19 -8
  50. package/dist/commands/run/exec/index.js +186 -108
  51. package/dist/commands/run/info/index.d.ts +5 -4
  52. package/dist/commands/run/info/index.js +27 -27
  53. package/dist/commands/run/projects/create/index.d.ts +4 -3
  54. package/dist/commands/run/projects/create/index.js +23 -23
  55. package/dist/commands/run/projects/delete/index.d.ts +3 -2
  56. package/dist/commands/run/projects/delete/index.js +10 -10
  57. package/dist/commands/run/projects/list/index.d.ts +3 -2
  58. package/dist/commands/run/projects/list/index.js +12 -12
  59. package/dist/commands/run/projects/update/index.d.ts +4 -3
  60. package/dist/commands/run/projects/update/index.js +21 -21
  61. package/dist/commands/run/secrets/delete/index.d.ts +3 -2
  62. package/dist/commands/run/secrets/delete/index.js +10 -10
  63. package/dist/commands/run/secrets/get/index.d.ts +3 -2
  64. package/dist/commands/run/secrets/get/index.js +11 -11
  65. package/dist/commands/run/secrets/list/index.d.ts +3 -2
  66. package/dist/commands/run/secrets/list/index.js +22 -24
  67. package/dist/commands/run/secrets/set/index.d.ts +4 -3
  68. package/dist/commands/run/secrets/set/index.js +16 -16
  69. package/dist/commands/run/sessions/delete/index.d.ts +3 -2
  70. package/dist/commands/run/sessions/delete/index.js +10 -10
  71. package/dist/commands/run/sessions/get/index.d.ts +3 -2
  72. package/dist/commands/run/sessions/get/index.js +11 -11
  73. package/dist/commands/run/sessions/list/index.d.ts +3 -2
  74. package/dist/commands/run/sessions/list/index.js +11 -11
  75. package/dist/commands/run/sessions/start/index.d.ts +3 -2
  76. package/dist/commands/run/sessions/start/index.js +11 -11
  77. package/dist/commands/run/sessions/stop/index.d.ts +3 -2
  78. package/dist/commands/run/sessions/stop/index.js +11 -11
  79. package/dist/commands/run/sink/get/index.d.ts +3 -2
  80. package/dist/commands/run/sink/get/index.js +11 -11
  81. package/dist/commands/static_host/build/create/index.d.ts +5 -4
  82. package/dist/commands/static_host/build/create/index.js +33 -33
  83. package/dist/commands/static_host/build/get/index.d.ts +5 -4
  84. package/dist/commands/static_host/build/get/index.js +20 -20
  85. package/dist/commands/static_host/build/list/index.d.ts +4 -3
  86. package/dist/commands/static_host/build/list/index.js +31 -31
  87. package/dist/commands/static_host/list/index.d.ts +4 -3
  88. package/dist/commands/static_host/list/index.js +31 -31
  89. package/dist/commands/workspace/create/index.d.ts +14 -0
  90. package/dist/commands/workspace/create/index.js +131 -0
  91. package/dist/commands/workspace/delete/index.d.ts +20 -0
  92. package/dist/commands/workspace/delete/index.js +141 -0
  93. package/dist/commands/workspace/edit/index.d.ts +22 -0
  94. package/dist/commands/workspace/edit/index.js +176 -0
  95. package/dist/commands/workspace/get/index.d.ts +18 -0
  96. package/dist/commands/workspace/get/index.js +136 -0
  97. package/dist/commands/workspace/list/index.d.ts +3 -2
  98. package/dist/commands/workspace/list/index.js +15 -15
  99. package/dist/commands/workspace/pull/index.d.ts +5 -4
  100. package/dist/commands/workspace/pull/index.js +113 -64
  101. package/dist/commands/workspace/push/index.d.ts +1 -0
  102. package/dist/commands/workspace/push/index.js +5 -5
  103. package/dist/help.d.ts +1 -1
  104. package/dist/lib/base-run-command.d.ts +6 -6
  105. package/dist/lib/base-run-command.js +8 -6
  106. package/dist/lib/run-http-client.d.ts +24 -18
  107. package/dist/lib/run-http-client.js +96 -61
  108. package/dist/lib/run-types.d.ts +80 -80
  109. package/oclif.manifest.json +1963 -785
  110. package/package.json +1 -1
@@ -1,5 +1,40 @@
1
1
  {
2
2
  "commands": {
3
+ "auth": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Authenticate with Xano via browser login",
7
+ "examples": [
8
+ "$ xano auth\nOpening browser for Xano login...\nWaiting for authentication...\nAuthenticated as John Doe (john@example.com)\n? Select an instance: US-1 (Production)\n? Profile name: default\nProfile 'default' created successfully!",
9
+ "$ xano auth --origin https://custom.xano.com\nOpening browser for Xano login at https://custom.xano.com..."
10
+ ],
11
+ "flags": {
12
+ "origin": {
13
+ "char": "o",
14
+ "description": "Xano account origin URL",
15
+ "name": "origin",
16
+ "default": "https://app.xano.com",
17
+ "hasDynamicHelp": false,
18
+ "multiple": false,
19
+ "type": "option"
20
+ }
21
+ },
22
+ "hasDynamicHelp": false,
23
+ "hiddenAliases": [],
24
+ "id": "auth",
25
+ "pluginAlias": "@xano/cli",
26
+ "pluginName": "@xano/cli",
27
+ "pluginType": "core",
28
+ "strict": true,
29
+ "enableJsonFlag": false,
30
+ "isESM": true,
31
+ "relativePath": [
32
+ "dist",
33
+ "commands",
34
+ "auth",
35
+ "index.js"
36
+ ]
37
+ },
3
38
  "function:create": {
4
39
  "aliases": [],
5
40
  "args": {},
@@ -22,14 +57,25 @@
22
57
  "multiple": false,
23
58
  "type": "option"
24
59
  },
25
- "workspace": {
26
- "char": "w",
27
- "description": "Workspace ID (optional if set in profile)",
28
- "name": "workspace",
60
+ "verbose": {
61
+ "char": "v",
62
+ "description": "Show detailed request/response information",
63
+ "env": "XANO_VERBOSE",
64
+ "name": "verbose",
29
65
  "required": false,
30
- "hasDynamicHelp": false,
31
- "multiple": false,
32
- "type": "option"
66
+ "allowNo": false,
67
+ "type": "boolean"
68
+ },
69
+ "edit": {
70
+ "char": "e",
71
+ "dependsOn": [
72
+ "file"
73
+ ],
74
+ "description": "Open file in editor before creating function (requires --file)",
75
+ "name": "edit",
76
+ "required": false,
77
+ "allowNo": false,
78
+ "type": "boolean"
33
79
  },
34
80
  "file": {
35
81
  "char": "f",
@@ -43,6 +89,20 @@
43
89
  "multiple": false,
44
90
  "type": "option"
45
91
  },
92
+ "output": {
93
+ "char": "o",
94
+ "description": "Output format",
95
+ "name": "output",
96
+ "required": false,
97
+ "default": "summary",
98
+ "hasDynamicHelp": false,
99
+ "multiple": false,
100
+ "options": [
101
+ "summary",
102
+ "json"
103
+ ],
104
+ "type": "option"
105
+ },
46
106
  "stdin": {
47
107
  "char": "s",
48
108
  "description": "Read XanoScript code from stdin",
@@ -54,29 +114,13 @@
54
114
  "allowNo": false,
55
115
  "type": "boolean"
56
116
  },
57
- "edit": {
58
- "char": "e",
59
- "dependsOn": [
60
- "file"
61
- ],
62
- "description": "Open file in editor before creating function (requires --file)",
63
- "name": "edit",
64
- "required": false,
65
- "allowNo": false,
66
- "type": "boolean"
67
- },
68
- "output": {
69
- "char": "o",
70
- "description": "Output format",
71
- "name": "output",
117
+ "workspace": {
118
+ "char": "w",
119
+ "description": "Workspace ID (optional if set in profile)",
120
+ "name": "workspace",
72
121
  "required": false,
73
- "default": "summary",
74
122
  "hasDynamicHelp": false,
75
123
  "multiple": false,
76
- "options": [
77
- "summary",
78
- "json"
79
- ],
80
124
  "type": "option"
81
125
  }
82
126
  },
@@ -128,14 +172,22 @@
128
172
  "multiple": false,
129
173
  "type": "option"
130
174
  },
131
- "workspace": {
132
- "char": "w",
133
- "description": "Workspace ID (optional if set in profile)",
134
- "name": "workspace",
175
+ "verbose": {
176
+ "char": "v",
177
+ "description": "Show detailed request/response information",
178
+ "env": "XANO_VERBOSE",
179
+ "name": "verbose",
135
180
  "required": false,
136
- "hasDynamicHelp": false,
137
- "multiple": false,
138
- "type": "option"
181
+ "allowNo": false,
182
+ "type": "boolean"
183
+ },
184
+ "edit": {
185
+ "char": "e",
186
+ "description": "Open file in editor before updating function (requires --file)",
187
+ "name": "edit",
188
+ "required": false,
189
+ "allowNo": false,
190
+ "type": "boolean"
139
191
  },
140
192
  "file": {
141
193
  "char": "f",
@@ -149,6 +201,27 @@
149
201
  "multiple": false,
150
202
  "type": "option"
151
203
  },
204
+ "output": {
205
+ "char": "o",
206
+ "description": "Output format",
207
+ "name": "output",
208
+ "required": false,
209
+ "default": "summary",
210
+ "hasDynamicHelp": false,
211
+ "multiple": false,
212
+ "options": [
213
+ "summary",
214
+ "json"
215
+ ],
216
+ "type": "option"
217
+ },
218
+ "publish": {
219
+ "description": "Publish the function after editing",
220
+ "name": "publish",
221
+ "required": false,
222
+ "allowNo": false,
223
+ "type": "boolean"
224
+ },
152
225
  "stdin": {
153
226
  "char": "s",
154
227
  "description": "Read XanoScript code from stdin",
@@ -160,33 +233,13 @@
160
233
  "allowNo": false,
161
234
  "type": "boolean"
162
235
  },
163
- "edit": {
164
- "char": "e",
165
- "description": "Open file in editor before updating function (requires --file)",
166
- "name": "edit",
167
- "required": false,
168
- "allowNo": false,
169
- "type": "boolean"
170
- },
171
- "publish": {
172
- "description": "Publish the function after editing",
173
- "name": "publish",
174
- "required": false,
175
- "allowNo": false,
176
- "type": "boolean"
177
- },
178
- "output": {
179
- "char": "o",
180
- "description": "Output format",
181
- "name": "output",
236
+ "workspace": {
237
+ "char": "w",
238
+ "description": "Workspace ID (optional if set in profile)",
239
+ "name": "workspace",
182
240
  "required": false,
183
- "default": "summary",
184
241
  "hasDynamicHelp": false,
185
242
  "multiple": false,
186
- "options": [
187
- "summary",
188
- "json"
189
- ],
190
243
  "type": "option"
191
244
  }
192
245
  },
@@ -236,14 +289,28 @@
236
289
  "multiple": false,
237
290
  "type": "option"
238
291
  },
239
- "workspace": {
240
- "char": "w",
241
- "description": "Workspace ID (optional if set in profile)",
242
- "name": "workspace",
292
+ "verbose": {
293
+ "char": "v",
294
+ "description": "Show detailed request/response information",
295
+ "env": "XANO_VERBOSE",
296
+ "name": "verbose",
243
297
  "required": false,
244
- "hasDynamicHelp": false,
245
- "multiple": false,
246
- "type": "option"
298
+ "allowNo": false,
299
+ "type": "boolean"
300
+ },
301
+ "include_draft": {
302
+ "description": "Include draft version",
303
+ "name": "include_draft",
304
+ "required": false,
305
+ "allowNo": false,
306
+ "type": "boolean"
307
+ },
308
+ "include_xanoscript": {
309
+ "description": "Include XanoScript in response",
310
+ "name": "include_xanoscript",
311
+ "required": false,
312
+ "allowNo": false,
313
+ "type": "boolean"
247
314
  },
248
315
  "output": {
249
316
  "char": "o",
@@ -260,19 +327,14 @@
260
327
  ],
261
328
  "type": "option"
262
329
  },
263
- "include_draft": {
264
- "description": "Include draft version",
265
- "name": "include_draft",
266
- "required": false,
267
- "allowNo": false,
268
- "type": "boolean"
269
- },
270
- "include_xanoscript": {
271
- "description": "Include XanoScript in response",
272
- "name": "include_xanoscript",
330
+ "workspace": {
331
+ "char": "w",
332
+ "description": "Workspace ID (optional if set in profile)",
333
+ "name": "workspace",
273
334
  "required": false,
274
- "allowNo": false,
275
- "type": "boolean"
335
+ "hasDynamicHelp": false,
336
+ "multiple": false,
337
+ "type": "option"
276
338
  }
277
339
  },
278
340
  "hasDynamicHelp": false,
@@ -313,13 +375,40 @@
313
375
  "multiple": false,
314
376
  "type": "option"
315
377
  },
316
- "workspace": {
317
- "char": "w",
318
- "description": "Workspace ID (optional if set in profile)",
319
- "name": "workspace",
378
+ "verbose": {
379
+ "char": "v",
380
+ "description": "Show detailed request/response information",
381
+ "env": "XANO_VERBOSE",
382
+ "name": "verbose",
383
+ "required": false,
384
+ "allowNo": false,
385
+ "type": "boolean"
386
+ },
387
+ "include_draft": {
388
+ "description": "Include draft functions",
389
+ "name": "include_draft",
390
+ "required": false,
391
+ "allowNo": false,
392
+ "type": "boolean"
393
+ },
394
+ "include_xanoscript": {
395
+ "description": "Include XanoScript in response",
396
+ "name": "include_xanoscript",
320
397
  "required": false,
398
+ "allowNo": false,
399
+ "type": "boolean"
400
+ },
401
+ "order": {
402
+ "description": "Sort order",
403
+ "name": "order",
404
+ "required": false,
405
+ "default": "desc",
321
406
  "hasDynamicHelp": false,
322
407
  "multiple": false,
408
+ "options": [
409
+ "asc",
410
+ "desc"
411
+ ],
323
412
  "type": "option"
324
413
  },
325
414
  "output": {
@@ -336,20 +425,6 @@
336
425
  ],
337
426
  "type": "option"
338
427
  },
339
- "include_draft": {
340
- "description": "Include draft functions",
341
- "name": "include_draft",
342
- "required": false,
343
- "allowNo": false,
344
- "type": "boolean"
345
- },
346
- "include_xanoscript": {
347
- "description": "Include XanoScript in response",
348
- "name": "include_xanoscript",
349
- "required": false,
350
- "allowNo": false,
351
- "type": "boolean"
352
- },
353
428
  "page": {
354
429
  "description": "Page number for pagination",
355
430
  "name": "page",
@@ -377,17 +452,13 @@
377
452
  "multiple": false,
378
453
  "type": "option"
379
454
  },
380
- "order": {
381
- "description": "Sort order",
382
- "name": "order",
455
+ "workspace": {
456
+ "char": "w",
457
+ "description": "Workspace ID (optional if set in profile)",
458
+ "name": "workspace",
383
459
  "required": false,
384
- "default": "desc",
385
460
  "hasDynamicHelp": false,
386
461
  "multiple": false,
387
- "options": [
388
- "asc",
389
- "desc"
390
- ],
391
462
  "type": "option"
392
463
  }
393
464
  },
@@ -408,98 +479,76 @@
408
479
  "index.js"
409
480
  ]
410
481
  },
411
- "profile:create": {
482
+ "branch:delete": {
412
483
  "aliases": [],
413
484
  "args": {
414
- "name": {
415
- "description": "Profile name",
416
- "name": "name",
485
+ "branch_label": {
486
+ "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
487
+ "name": "branch_label",
417
488
  "required": true
418
489
  }
419
490
  },
420
- "description": "Create a new profile configuration",
491
+ "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
421
492
  "examples": [
422
- "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
423
- "$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
424
- "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
425
- "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch -j my-project\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
426
- "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
493
+ "$ xano branch delete feature-old\nAre you sure you want to delete branch 'feature-old'? This action cannot be undone. (y/N) y\nDeleted branch: feature-old\n",
494
+ "$ xano branch delete dev --force\nDeleted branch: dev\n",
495
+ "$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
427
496
  ],
428
497
  "flags": {
429
- "account_origin": {
430
- "char": "a",
431
- "description": "Account origin URL. Optional for self hosted installs.",
432
- "name": "account_origin",
498
+ "profile": {
499
+ "char": "p",
500
+ "description": "Profile to use for this command",
501
+ "env": "XANO_PROFILE",
502
+ "name": "profile",
433
503
  "required": false,
434
504
  "hasDynamicHelp": false,
435
505
  "multiple": false,
436
506
  "type": "option"
437
507
  },
438
- "instance_origin": {
439
- "char": "i",
440
- "description": "Instance origin URL",
441
- "name": "instance_origin",
442
- "required": true,
443
- "hasDynamicHelp": false,
444
- "multiple": false,
445
- "type": "option"
446
- },
447
- "access_token": {
448
- "char": "t",
449
- "description": "Access token for the Xano Metadata API",
450
- "name": "access_token",
451
- "required": true,
452
- "hasDynamicHelp": false,
453
- "multiple": false,
454
- "type": "option"
455
- },
456
- "workspace": {
457
- "char": "w",
458
- "description": "Workspace name",
459
- "name": "workspace",
508
+ "verbose": {
509
+ "char": "v",
510
+ "description": "Show detailed request/response information",
511
+ "env": "XANO_VERBOSE",
512
+ "name": "verbose",
460
513
  "required": false,
461
- "hasDynamicHelp": false,
462
- "multiple": false,
463
- "type": "option"
514
+ "allowNo": false,
515
+ "type": "boolean"
464
516
  },
465
- "branch": {
466
- "char": "b",
467
- "description": "Branch name",
468
- "name": "branch",
517
+ "force": {
518
+ "char": "f",
519
+ "description": "Skip confirmation prompt",
520
+ "name": "force",
469
521
  "required": false,
470
- "hasDynamicHelp": false,
471
- "multiple": false,
472
- "type": "option"
522
+ "allowNo": false,
523
+ "type": "boolean"
473
524
  },
474
- "project": {
475
- "char": "j",
476
- "description": "Project name",
477
- "name": "project",
525
+ "output": {
526
+ "char": "o",
527
+ "description": "Output format",
528
+ "name": "output",
478
529
  "required": false,
530
+ "default": "summary",
479
531
  "hasDynamicHelp": false,
480
532
  "multiple": false,
533
+ "options": [
534
+ "summary",
535
+ "json"
536
+ ],
481
537
  "type": "option"
482
538
  },
483
- "run_base_url": {
484
- "char": "r",
485
- "description": "Xano Run API base URL (default: https://app.xano.com/)",
486
- "name": "run_base_url",
539
+ "workspace": {
540
+ "char": "w",
541
+ "description": "Workspace ID (uses profile workspace if not provided)",
542
+ "name": "workspace",
487
543
  "required": false,
488
544
  "hasDynamicHelp": false,
489
545
  "multiple": false,
490
546
  "type": "option"
491
- },
492
- "default": {
493
- "description": "Set this profile as the default",
494
- "name": "default",
495
- "required": false,
496
- "allowNo": false,
497
- "type": "boolean"
498
547
  }
499
548
  },
500
549
  "hasDynamicHelp": false,
501
550
  "hiddenAliases": [],
502
- "id": "profile:create",
551
+ "id": "branch:delete",
503
552
  "pluginAlias": "@xano/cli",
504
553
  "pluginName": "@xano/cli",
505
554
  "pluginType": "core",
@@ -509,39 +558,100 @@
509
558
  "relativePath": [
510
559
  "dist",
511
560
  "commands",
512
- "profile",
513
- "create",
561
+ "branch",
562
+ "delete",
514
563
  "index.js"
515
564
  ]
516
565
  },
517
- "profile:delete": {
566
+ "branch:edit": {
518
567
  "aliases": [],
519
568
  "args": {
520
- "name": {
521
- "description": "Profile name to delete",
522
- "name": "name",
569
+ "branch_label": {
570
+ "description": "Branch label to edit (cannot edit \"v1\" label)",
571
+ "name": "branch_label",
523
572
  "required": true
524
573
  }
525
574
  },
526
- "description": "Delete a profile configuration",
575
+ "description": "Update an existing branch (cannot update \"v1\" label)",
527
576
  "examples": [
528
- "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
529
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
530
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
577
+ "$ xano branch edit dev --label development\nUpdated branch: development\n",
578
+ "$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
579
+ "$ xano branch edit staging --description \"Staging environment\" -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false\n}\n"
531
580
  ],
532
581
  "flags": {
533
- "force": {
534
- "char": "f",
535
- "description": "Skip confirmation prompt",
536
- "name": "force",
582
+ "profile": {
583
+ "char": "p",
584
+ "description": "Profile to use for this command",
585
+ "env": "XANO_PROFILE",
586
+ "name": "profile",
587
+ "required": false,
588
+ "hasDynamicHelp": false,
589
+ "multiple": false,
590
+ "type": "option"
591
+ },
592
+ "verbose": {
593
+ "char": "v",
594
+ "description": "Show detailed request/response information",
595
+ "env": "XANO_VERBOSE",
596
+ "name": "verbose",
537
597
  "required": false,
538
598
  "allowNo": false,
539
599
  "type": "boolean"
600
+ },
601
+ "color": {
602
+ "char": "c",
603
+ "description": "New color hex code for the branch (e.g., \"#ff5733\")",
604
+ "name": "color",
605
+ "required": false,
606
+ "hasDynamicHelp": false,
607
+ "multiple": false,
608
+ "type": "option"
609
+ },
610
+ "description": {
611
+ "char": "d",
612
+ "description": "New description for the branch",
613
+ "name": "description",
614
+ "required": false,
615
+ "hasDynamicHelp": false,
616
+ "multiple": false,
617
+ "type": "option"
618
+ },
619
+ "label": {
620
+ "char": "l",
621
+ "description": "New label for the branch",
622
+ "name": "label",
623
+ "required": false,
624
+ "hasDynamicHelp": false,
625
+ "multiple": false,
626
+ "type": "option"
627
+ },
628
+ "output": {
629
+ "char": "o",
630
+ "description": "Output format",
631
+ "name": "output",
632
+ "required": false,
633
+ "default": "summary",
634
+ "hasDynamicHelp": false,
635
+ "multiple": false,
636
+ "options": [
637
+ "summary",
638
+ "json"
639
+ ],
640
+ "type": "option"
641
+ },
642
+ "workspace": {
643
+ "char": "w",
644
+ "description": "Workspace ID (uses profile workspace if not provided)",
645
+ "name": "workspace",
646
+ "required": false,
647
+ "hasDynamicHelp": false,
648
+ "multiple": false,
649
+ "type": "option"
540
650
  }
541
651
  },
542
652
  "hasDynamicHelp": false,
543
653
  "hiddenAliases": [],
544
- "id": "profile:delete",
654
+ "id": "branch:edit",
545
655
  "pluginAlias": "@xano/cli",
546
656
  "pluginName": "@xano/cli",
547
657
  "pluginType": "core",
@@ -551,23 +661,73 @@
551
661
  "relativePath": [
552
662
  "dist",
553
663
  "commands",
554
- "profile",
555
- "delete",
664
+ "branch",
665
+ "edit",
556
666
  "index.js"
557
667
  ]
558
668
  },
559
- "profile:get-default": {
669
+ "branch:get": {
560
670
  "aliases": [],
561
- "args": {},
562
- "description": "Get the current default profile name",
671
+ "args": {
672
+ "branch_label": {
673
+ "description": "Branch label (e.g., \"v1\", \"dev\")",
674
+ "name": "branch_label",
675
+ "required": true
676
+ }
677
+ },
678
+ "description": "Get details for a specific branch",
563
679
  "examples": [
564
- "$ xano profile:get-default\nproduction\n",
565
- "$ xano profile:get-default\nNo default profile set\n"
680
+ "$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
681
+ "$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
682
+ "$ xano branch get staging --output json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
566
683
  ],
567
- "flags": {},
684
+ "flags": {
685
+ "profile": {
686
+ "char": "p",
687
+ "description": "Profile to use for this command",
688
+ "env": "XANO_PROFILE",
689
+ "name": "profile",
690
+ "required": false,
691
+ "hasDynamicHelp": false,
692
+ "multiple": false,
693
+ "type": "option"
694
+ },
695
+ "verbose": {
696
+ "char": "v",
697
+ "description": "Show detailed request/response information",
698
+ "env": "XANO_VERBOSE",
699
+ "name": "verbose",
700
+ "required": false,
701
+ "allowNo": false,
702
+ "type": "boolean"
703
+ },
704
+ "output": {
705
+ "char": "o",
706
+ "description": "Output format",
707
+ "name": "output",
708
+ "required": false,
709
+ "default": "summary",
710
+ "hasDynamicHelp": false,
711
+ "multiple": false,
712
+ "options": [
713
+ "summary",
714
+ "json"
715
+ ],
716
+ "type": "option"
717
+ },
718
+ "workspace": {
719
+ "char": "w",
720
+ "description": "Workspace ID (uses profile workspace if not provided)",
721
+ "name": "workspace",
722
+ "required": false,
723
+ "hasDynamicHelp": false,
724
+ "multiple": false,
725
+ "type": "option"
726
+ }
727
+ },
568
728
  "hasDynamicHelp": false,
569
729
  "hiddenAliases": [],
570
- "id": "profile:get-default",
730
+ "id": "branch:get",
571
731
  "pluginAlias": "@xano/cli",
572
732
  "pluginName": "@xano/cli",
573
733
  "pluginType": "core",
@@ -577,29 +737,19 @@
577
737
  "relativePath": [
578
738
  "dist",
579
739
  "commands",
580
- "profile",
581
- "get-default",
740
+ "branch",
741
+ "get",
582
742
  "index.js"
583
743
  ]
584
744
  },
585
- "profile:edit": {
745
+ "branch:create": {
586
746
  "aliases": [],
587
- "args": {
588
- "name": {
589
- "description": "Profile name to edit (uses default profile if not specified)",
590
- "name": "name",
591
- "required": false
592
- }
593
- },
594
- "description": "Edit an existing profile configuration",
747
+ "args": {},
748
+ "description": "Create a new branch by cloning from an existing branch",
595
749
  "examples": [
596
- "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
597
- "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
598
- "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
599
- "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
600
- "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
601
- "$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
602
- "$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
750
+ "$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
751
+ "$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
752
+ "$ xano branch create --label staging --color \"#ebc346\" --output json\n{\n \"created_at\": \"2024-02-11T10:00:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
603
753
  ],
604
754
  "flags": {
605
755
  "profile": {
@@ -612,101 +762,79 @@
612
762
  "multiple": false,
613
763
  "type": "option"
614
764
  },
615
- "account_origin": {
616
- "char": "a",
617
- "description": "Update account origin URL",
618
- "name": "account_origin",
765
+ "verbose": {
766
+ "char": "v",
767
+ "description": "Show detailed request/response information",
768
+ "env": "XANO_VERBOSE",
769
+ "name": "verbose",
619
770
  "required": false,
620
- "hasDynamicHelp": false,
621
- "multiple": false,
622
- "type": "option"
771
+ "allowNo": false,
772
+ "type": "boolean"
623
773
  },
624
- "instance_origin": {
625
- "char": "i",
626
- "description": "Update instance origin URL",
627
- "name": "instance_origin",
774
+ "color": {
775
+ "char": "c",
776
+ "description": "Color hex code for the branch (e.g., \"#ebc346\")",
777
+ "name": "color",
628
778
  "required": false,
629
779
  "hasDynamicHelp": false,
630
780
  "multiple": false,
631
781
  "type": "option"
632
782
  },
633
- "access_token": {
634
- "char": "t",
635
- "description": "Update access token for the Xano Metadata API",
636
- "name": "access_token",
783
+ "description": {
784
+ "char": "d",
785
+ "description": "Description for the new branch",
786
+ "name": "description",
637
787
  "required": false,
638
788
  "hasDynamicHelp": false,
639
789
  "multiple": false,
640
790
  "type": "option"
641
791
  },
642
- "workspace": {
643
- "char": "w",
644
- "description": "Update workspace name",
645
- "name": "workspace",
646
- "required": false,
792
+ "label": {
793
+ "char": "l",
794
+ "description": "Label for the new branch",
795
+ "name": "label",
796
+ "required": true,
647
797
  "hasDynamicHelp": false,
648
798
  "multiple": false,
649
799
  "type": "option"
650
800
  },
651
- "branch": {
652
- "char": "b",
653
- "description": "Update branch name",
654
- "name": "branch",
801
+ "output": {
802
+ "char": "o",
803
+ "description": "Output format",
804
+ "name": "output",
655
805
  "required": false,
806
+ "default": "summary",
656
807
  "hasDynamicHelp": false,
657
808
  "multiple": false,
809
+ "options": [
810
+ "summary",
811
+ "json"
812
+ ],
658
813
  "type": "option"
659
814
  },
660
- "project": {
661
- "char": "j",
662
- "description": "Update project name",
663
- "name": "project",
815
+ "source": {
816
+ "char": "s",
817
+ "description": "Source branch to clone from (defaults to \"v1\")",
818
+ "name": "source",
664
819
  "required": false,
820
+ "default": "v1",
665
821
  "hasDynamicHelp": false,
666
822
  "multiple": false,
667
823
  "type": "option"
668
824
  },
669
- "remove-workspace": {
670
- "description": "Remove workspace from profile",
671
- "name": "remove-workspace",
672
- "required": false,
673
- "allowNo": false,
674
- "type": "boolean"
675
- },
676
- "remove-branch": {
677
- "description": "Remove branch from profile",
678
- "name": "remove-branch",
679
- "required": false,
680
- "allowNo": false,
681
- "type": "boolean"
682
- },
683
- "remove-project": {
684
- "description": "Remove project from profile",
685
- "name": "remove-project",
686
- "required": false,
687
- "allowNo": false,
688
- "type": "boolean"
689
- },
690
- "run_base_url": {
691
- "char": "r",
692
- "description": "Update Xano Run API base URL",
693
- "name": "run_base_url",
825
+ "workspace": {
826
+ "char": "w",
827
+ "description": "Workspace ID (uses profile workspace if not provided)",
828
+ "name": "workspace",
694
829
  "required": false,
695
830
  "hasDynamicHelp": false,
696
831
  "multiple": false,
697
832
  "type": "option"
698
- },
699
- "remove-run-base-url": {
700
- "description": "Remove run_base_url from profile (use default)",
701
- "name": "remove-run-base-url",
702
- "required": false,
703
- "allowNo": false,
704
- "type": "boolean"
705
833
  }
706
834
  },
707
835
  "hasDynamicHelp": false,
708
836
  "hiddenAliases": [],
709
- "id": "profile:edit",
837
+ "id": "branch:create",
710
838
  "pluginAlias": "@xano/cli",
711
839
  "pluginName": "@xano/cli",
712
840
  "pluginType": "core",
@@ -716,19 +844,25 @@
716
844
  "relativePath": [
717
845
  "dist",
718
846
  "commands",
719
- "profile",
720
- "edit",
847
+ "branch",
848
+ "create",
721
849
  "index.js"
722
850
  ]
723
851
  },
724
- "profile:me": {
852
+ "branch:list": {
725
853
  "aliases": [],
726
- "args": {},
727
- "description": "Get information about the currently authenticated user",
854
+ "args": {
855
+ "workspace_id": {
856
+ "description": "Workspace ID (uses profile workspace if not provided)",
857
+ "name": "workspace_id",
858
+ "required": false
859
+ }
860
+ },
861
+ "description": "List all branches in a workspace",
728
862
  "examples": [
729
- "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
730
- "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
731
- "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
863
+ "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
864
+ "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
865
+ "$ 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"
732
866
  ],
733
867
  "flags": {
734
868
  "profile": {
@@ -741,6 +875,15 @@
741
875
  "multiple": false,
742
876
  "type": "option"
743
877
  },
878
+ "verbose": {
879
+ "char": "v",
880
+ "description": "Show detailed request/response information",
881
+ "env": "XANO_VERBOSE",
882
+ "name": "verbose",
883
+ "required": false,
884
+ "allowNo": false,
885
+ "type": "boolean"
886
+ },
744
887
  "output": {
745
888
  "char": "o",
746
889
  "description": "Output format",
@@ -758,7 +901,7 @@
758
901
  },
759
902
  "hasDynamicHelp": false,
760
903
  "hiddenAliases": [],
761
- "id": "profile:me",
904
+ "id": "branch:list",
762
905
  "pluginAlias": "@xano/cli",
763
906
  "pluginName": "@xano/cli",
764
907
  "pluginType": "core",
@@ -768,29 +911,103 @@
768
911
  "relativePath": [
769
912
  "dist",
770
913
  "commands",
771
- "profile",
772
- "me",
914
+ "branch",
915
+ "list",
773
916
  "index.js"
774
917
  ]
775
918
  },
776
- "profile:set-default": {
919
+ "profile:create": {
777
920
  "aliases": [],
778
921
  "args": {
779
922
  "name": {
780
- "description": "Profile name to set as default",
923
+ "description": "Profile name",
781
924
  "name": "name",
782
925
  "required": true
783
926
  }
784
927
  },
785
- "description": "Set the default profile",
928
+ "description": "Create a new profile configuration",
786
929
  "examples": [
787
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
788
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
930
+ "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
931
+ "$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
932
+ "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
933
+ "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch -j my-project\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
934
+ "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
789
935
  ],
790
- "flags": {},
936
+ "flags": {
937
+ "access_token": {
938
+ "char": "t",
939
+ "description": "Access token for the Xano Metadata API",
940
+ "name": "access_token",
941
+ "required": true,
942
+ "hasDynamicHelp": false,
943
+ "multiple": false,
944
+ "type": "option"
945
+ },
946
+ "account_origin": {
947
+ "char": "a",
948
+ "description": "Account origin URL. Optional for self hosted installs.",
949
+ "name": "account_origin",
950
+ "required": false,
951
+ "hasDynamicHelp": false,
952
+ "multiple": false,
953
+ "type": "option"
954
+ },
955
+ "branch": {
956
+ "char": "b",
957
+ "description": "Branch name",
958
+ "name": "branch",
959
+ "required": false,
960
+ "hasDynamicHelp": false,
961
+ "multiple": false,
962
+ "type": "option"
963
+ },
964
+ "default": {
965
+ "description": "Set this profile as the default",
966
+ "name": "default",
967
+ "required": false,
968
+ "allowNo": false,
969
+ "type": "boolean"
970
+ },
971
+ "instance_origin": {
972
+ "char": "i",
973
+ "description": "Instance origin URL",
974
+ "name": "instance_origin",
975
+ "required": true,
976
+ "hasDynamicHelp": false,
977
+ "multiple": false,
978
+ "type": "option"
979
+ },
980
+ "project": {
981
+ "char": "j",
982
+ "description": "Project name",
983
+ "name": "project",
984
+ "required": false,
985
+ "hasDynamicHelp": false,
986
+ "multiple": false,
987
+ "type": "option"
988
+ },
989
+ "run_base_url": {
990
+ "char": "r",
991
+ "description": "Xano Run API base URL (default: https://app.xano.com/)",
992
+ "name": "run_base_url",
993
+ "required": false,
994
+ "hasDynamicHelp": false,
995
+ "multiple": false,
996
+ "type": "option"
997
+ },
998
+ "workspace": {
999
+ "char": "w",
1000
+ "description": "Workspace name",
1001
+ "name": "workspace",
1002
+ "required": false,
1003
+ "hasDynamicHelp": false,
1004
+ "multiple": false,
1005
+ "type": "option"
1006
+ }
1007
+ },
791
1008
  "hasDynamicHelp": false,
792
1009
  "hiddenAliases": [],
793
- "id": "profile:set-default",
1010
+ "id": "profile:create",
794
1011
  "pluginAlias": "@xano/cli",
795
1012
  "pluginName": "@xano/cli",
796
1013
  "pluginType": "core",
@@ -801,22 +1018,80 @@
801
1018
  "dist",
802
1019
  "commands",
803
1020
  "profile",
804
- "set-default",
1021
+ "create",
805
1022
  "index.js"
806
1023
  ]
807
1024
  },
808
- "profile:project": {
1025
+ "branch:set-live": {
809
1026
  "aliases": [],
810
- "args": {},
811
- "description": "Print the project for the default profile",
1027
+ "args": {
1028
+ "branch_label": {
1029
+ "description": "Branch label to set as live (use \"v1\" for default branch)",
1030
+ "name": "branch_label",
1031
+ "required": true
1032
+ }
1033
+ },
1034
+ "description": "Set a branch as the live (active) branch for API requests",
812
1035
  "examples": [
813
- "$ xano profile:project\nmy-project-id\n",
814
- "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
1036
+ "$ 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",
1037
+ "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
1038
+ "$ 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"
815
1039
  ],
816
- "flags": {},
1040
+ "flags": {
1041
+ "profile": {
1042
+ "char": "p",
1043
+ "description": "Profile to use for this command",
1044
+ "env": "XANO_PROFILE",
1045
+ "name": "profile",
1046
+ "required": false,
1047
+ "hasDynamicHelp": false,
1048
+ "multiple": false,
1049
+ "type": "option"
1050
+ },
1051
+ "verbose": {
1052
+ "char": "v",
1053
+ "description": "Show detailed request/response information",
1054
+ "env": "XANO_VERBOSE",
1055
+ "name": "verbose",
1056
+ "required": false,
1057
+ "allowNo": false,
1058
+ "type": "boolean"
1059
+ },
1060
+ "force": {
1061
+ "char": "f",
1062
+ "description": "Skip confirmation prompt",
1063
+ "name": "force",
1064
+ "required": false,
1065
+ "allowNo": false,
1066
+ "type": "boolean"
1067
+ },
1068
+ "output": {
1069
+ "char": "o",
1070
+ "description": "Output format",
1071
+ "name": "output",
1072
+ "required": false,
1073
+ "default": "summary",
1074
+ "hasDynamicHelp": false,
1075
+ "multiple": false,
1076
+ "options": [
1077
+ "summary",
1078
+ "json"
1079
+ ],
1080
+ "type": "option"
1081
+ },
1082
+ "workspace": {
1083
+ "char": "w",
1084
+ "description": "Workspace ID (uses profile workspace if not provided)",
1085
+ "name": "workspace",
1086
+ "required": false,
1087
+ "hasDynamicHelp": false,
1088
+ "multiple": false,
1089
+ "type": "option"
1090
+ }
1091
+ },
817
1092
  "hasDynamicHelp": false,
818
1093
  "hiddenAliases": [],
819
- "id": "profile:project",
1094
+ "id": "branch:set-live",
820
1095
  "pluginAlias": "@xano/cli",
821
1096
  "pluginName": "@xano/cli",
822
1097
  "pluginType": "core",
@@ -826,23 +1101,39 @@
826
1101
  "relativePath": [
827
1102
  "dist",
828
1103
  "commands",
829
- "profile",
830
- "project",
1104
+ "branch",
1105
+ "set-live",
831
1106
  "index.js"
832
1107
  ]
833
1108
  },
834
- "profile:token": {
1109
+ "profile:delete": {
835
1110
  "aliases": [],
836
- "args": {},
837
- "description": "Print the access token for the default profile",
1111
+ "args": {
1112
+ "name": {
1113
+ "description": "Profile name to delete",
1114
+ "name": "name",
1115
+ "required": true
1116
+ }
1117
+ },
1118
+ "description": "Delete a profile configuration",
838
1119
  "examples": [
839
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
840
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1120
+ "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
1121
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
1122
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
841
1123
  ],
842
- "flags": {},
1124
+ "flags": {
1125
+ "force": {
1126
+ "char": "f",
1127
+ "description": "Skip confirmation prompt",
1128
+ "name": "force",
1129
+ "required": false,
1130
+ "allowNo": false,
1131
+ "type": "boolean"
1132
+ }
1133
+ },
843
1134
  "hasDynamicHelp": false,
844
1135
  "hiddenAliases": [],
845
- "id": "profile:token",
1136
+ "id": "profile:delete",
846
1137
  "pluginAlias": "@xano/cli",
847
1138
  "pluginName": "@xano/cli",
848
1139
  "pluginType": "core",
@@ -853,33 +1144,678 @@
853
1144
  "dist",
854
1145
  "commands",
855
1146
  "profile",
856
- "token",
1147
+ "delete",
857
1148
  "index.js"
858
1149
  ]
859
1150
  },
860
- "profile:wizard": {
1151
+ "profile:edit": {
1152
+ "aliases": [],
1153
+ "args": {
1154
+ "name": {
1155
+ "description": "Profile name to edit (uses default profile if not specified)",
1156
+ "name": "name",
1157
+ "required": false
1158
+ }
1159
+ },
1160
+ "description": "Edit an existing profile configuration",
1161
+ "examples": [
1162
+ "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1163
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
1164
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
1165
+ "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1166
+ "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1167
+ "$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1168
+ "$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
1169
+ ],
1170
+ "flags": {
1171
+ "profile": {
1172
+ "char": "p",
1173
+ "description": "Profile to use for this command",
1174
+ "env": "XANO_PROFILE",
1175
+ "name": "profile",
1176
+ "required": false,
1177
+ "hasDynamicHelp": false,
1178
+ "multiple": false,
1179
+ "type": "option"
1180
+ },
1181
+ "verbose": {
1182
+ "char": "v",
1183
+ "description": "Show detailed request/response information",
1184
+ "env": "XANO_VERBOSE",
1185
+ "name": "verbose",
1186
+ "required": false,
1187
+ "allowNo": false,
1188
+ "type": "boolean"
1189
+ },
1190
+ "access_token": {
1191
+ "char": "t",
1192
+ "description": "Update access token for the Xano Metadata API",
1193
+ "name": "access_token",
1194
+ "required": false,
1195
+ "hasDynamicHelp": false,
1196
+ "multiple": false,
1197
+ "type": "option"
1198
+ },
1199
+ "account_origin": {
1200
+ "char": "a",
1201
+ "description": "Update account origin URL",
1202
+ "name": "account_origin",
1203
+ "required": false,
1204
+ "hasDynamicHelp": false,
1205
+ "multiple": false,
1206
+ "type": "option"
1207
+ },
1208
+ "branch": {
1209
+ "char": "b",
1210
+ "description": "Update branch name",
1211
+ "name": "branch",
1212
+ "required": false,
1213
+ "hasDynamicHelp": false,
1214
+ "multiple": false,
1215
+ "type": "option"
1216
+ },
1217
+ "instance_origin": {
1218
+ "char": "i",
1219
+ "description": "Update instance origin URL",
1220
+ "name": "instance_origin",
1221
+ "required": false,
1222
+ "hasDynamicHelp": false,
1223
+ "multiple": false,
1224
+ "type": "option"
1225
+ },
1226
+ "project": {
1227
+ "char": "j",
1228
+ "description": "Update project ID",
1229
+ "name": "project",
1230
+ "required": false,
1231
+ "hasDynamicHelp": false,
1232
+ "multiple": false,
1233
+ "type": "option"
1234
+ },
1235
+ "remove-branch": {
1236
+ "description": "Remove branch from profile",
1237
+ "name": "remove-branch",
1238
+ "required": false,
1239
+ "allowNo": false,
1240
+ "type": "boolean"
1241
+ },
1242
+ "remove-project": {
1243
+ "description": "Remove project from profile",
1244
+ "name": "remove-project",
1245
+ "required": false,
1246
+ "allowNo": false,
1247
+ "type": "boolean"
1248
+ },
1249
+ "remove-run-base-url": {
1250
+ "description": "Remove run_base_url from profile (use default)",
1251
+ "name": "remove-run-base-url",
1252
+ "required": false,
1253
+ "allowNo": false,
1254
+ "type": "boolean"
1255
+ },
1256
+ "remove-workspace": {
1257
+ "description": "Remove workspace from profile",
1258
+ "name": "remove-workspace",
1259
+ "required": false,
1260
+ "allowNo": false,
1261
+ "type": "boolean"
1262
+ },
1263
+ "run_base_url": {
1264
+ "char": "r",
1265
+ "description": "Update Xano Run API base URL",
1266
+ "name": "run_base_url",
1267
+ "required": false,
1268
+ "hasDynamicHelp": false,
1269
+ "multiple": false,
1270
+ "type": "option"
1271
+ },
1272
+ "workspace": {
1273
+ "char": "w",
1274
+ "description": "Update workspace name",
1275
+ "name": "workspace",
1276
+ "required": false,
1277
+ "hasDynamicHelp": false,
1278
+ "multiple": false,
1279
+ "type": "option"
1280
+ }
1281
+ },
1282
+ "hasDynamicHelp": false,
1283
+ "hiddenAliases": [],
1284
+ "id": "profile:edit",
1285
+ "pluginAlias": "@xano/cli",
1286
+ "pluginName": "@xano/cli",
1287
+ "pluginType": "core",
1288
+ "strict": true,
1289
+ "enableJsonFlag": false,
1290
+ "isESM": true,
1291
+ "relativePath": [
1292
+ "dist",
1293
+ "commands",
1294
+ "profile",
1295
+ "edit",
1296
+ "index.js"
1297
+ ]
1298
+ },
1299
+ "profile:get-default": {
1300
+ "aliases": [],
1301
+ "args": {},
1302
+ "description": "Get the current default profile name",
1303
+ "examples": [
1304
+ "$ xano profile:get-default\nproduction\n",
1305
+ "$ xano profile:get-default\nNo default profile set\n"
1306
+ ],
1307
+ "flags": {},
1308
+ "hasDynamicHelp": false,
1309
+ "hiddenAliases": [],
1310
+ "id": "profile:get-default",
1311
+ "pluginAlias": "@xano/cli",
1312
+ "pluginName": "@xano/cli",
1313
+ "pluginType": "core",
1314
+ "strict": true,
1315
+ "enableJsonFlag": false,
1316
+ "isESM": true,
1317
+ "relativePath": [
1318
+ "dist",
1319
+ "commands",
1320
+ "profile",
1321
+ "get-default",
1322
+ "index.js"
1323
+ ]
1324
+ },
1325
+ "profile:list": {
1326
+ "aliases": [],
1327
+ "args": {},
1328
+ "description": "List all available profile configurations",
1329
+ "examples": [
1330
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1331
+ "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1332
+ "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
1333
+ ],
1334
+ "flags": {
1335
+ "details": {
1336
+ "char": "d",
1337
+ "description": "Show detailed information for each profile",
1338
+ "name": "details",
1339
+ "required": false,
1340
+ "allowNo": false,
1341
+ "type": "boolean"
1342
+ }
1343
+ },
1344
+ "hasDynamicHelp": false,
1345
+ "hiddenAliases": [],
1346
+ "id": "profile:list",
1347
+ "pluginAlias": "@xano/cli",
1348
+ "pluginName": "@xano/cli",
1349
+ "pluginType": "core",
1350
+ "strict": true,
1351
+ "enableJsonFlag": false,
1352
+ "isESM": true,
1353
+ "relativePath": [
1354
+ "dist",
1355
+ "commands",
1356
+ "profile",
1357
+ "list",
1358
+ "index.js"
1359
+ ]
1360
+ },
1361
+ "profile:project": {
1362
+ "aliases": [],
1363
+ "args": {},
1364
+ "description": "Print the project for the default profile",
1365
+ "examples": [
1366
+ "$ xano profile:project\nmy-project-id\n",
1367
+ "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
1368
+ ],
1369
+ "flags": {},
1370
+ "hasDynamicHelp": false,
1371
+ "hiddenAliases": [],
1372
+ "id": "profile:project",
1373
+ "pluginAlias": "@xano/cli",
1374
+ "pluginName": "@xano/cli",
1375
+ "pluginType": "core",
1376
+ "strict": true,
1377
+ "enableJsonFlag": false,
1378
+ "isESM": true,
1379
+ "relativePath": [
1380
+ "dist",
1381
+ "commands",
1382
+ "profile",
1383
+ "project",
1384
+ "index.js"
1385
+ ]
1386
+ },
1387
+ "profile:me": {
1388
+ "aliases": [],
1389
+ "args": {},
1390
+ "description": "Get information about the currently authenticated user",
1391
+ "examples": [
1392
+ "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1393
+ "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1394
+ "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
1395
+ ],
1396
+ "flags": {
1397
+ "profile": {
1398
+ "char": "p",
1399
+ "description": "Profile to use for this command",
1400
+ "env": "XANO_PROFILE",
1401
+ "name": "profile",
1402
+ "required": false,
1403
+ "hasDynamicHelp": false,
1404
+ "multiple": false,
1405
+ "type": "option"
1406
+ },
1407
+ "verbose": {
1408
+ "char": "v",
1409
+ "description": "Show detailed request/response information",
1410
+ "env": "XANO_VERBOSE",
1411
+ "name": "verbose",
1412
+ "required": false,
1413
+ "allowNo": false,
1414
+ "type": "boolean"
1415
+ },
1416
+ "output": {
1417
+ "char": "o",
1418
+ "description": "Output format",
1419
+ "name": "output",
1420
+ "required": false,
1421
+ "default": "summary",
1422
+ "hasDynamicHelp": false,
1423
+ "multiple": false,
1424
+ "options": [
1425
+ "summary",
1426
+ "json"
1427
+ ],
1428
+ "type": "option"
1429
+ }
1430
+ },
1431
+ "hasDynamicHelp": false,
1432
+ "hiddenAliases": [],
1433
+ "id": "profile:me",
1434
+ "pluginAlias": "@xano/cli",
1435
+ "pluginName": "@xano/cli",
1436
+ "pluginType": "core",
1437
+ "strict": true,
1438
+ "enableJsonFlag": false,
1439
+ "isESM": true,
1440
+ "relativePath": [
1441
+ "dist",
1442
+ "commands",
1443
+ "profile",
1444
+ "me",
1445
+ "index.js"
1446
+ ]
1447
+ },
1448
+ "profile:set-default": {
1449
+ "aliases": [],
1450
+ "args": {
1451
+ "name": {
1452
+ "description": "Profile name to set as default",
1453
+ "name": "name",
1454
+ "required": true
1455
+ }
1456
+ },
1457
+ "description": "Set the default profile",
1458
+ "examples": [
1459
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
1460
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
1461
+ ],
1462
+ "flags": {},
1463
+ "hasDynamicHelp": false,
1464
+ "hiddenAliases": [],
1465
+ "id": "profile:set-default",
1466
+ "pluginAlias": "@xano/cli",
1467
+ "pluginName": "@xano/cli",
1468
+ "pluginType": "core",
1469
+ "strict": true,
1470
+ "enableJsonFlag": false,
1471
+ "isESM": true,
1472
+ "relativePath": [
1473
+ "dist",
1474
+ "commands",
1475
+ "profile",
1476
+ "set-default",
1477
+ "index.js"
1478
+ ]
1479
+ },
1480
+ "profile:token": {
1481
+ "aliases": [],
1482
+ "args": {},
1483
+ "description": "Print the access token for the default profile",
1484
+ "examples": [
1485
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
1486
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1487
+ ],
1488
+ "flags": {},
1489
+ "hasDynamicHelp": false,
1490
+ "hiddenAliases": [],
1491
+ "id": "profile:token",
1492
+ "pluginAlias": "@xano/cli",
1493
+ "pluginName": "@xano/cli",
1494
+ "pluginType": "core",
1495
+ "strict": true,
1496
+ "enableJsonFlag": false,
1497
+ "isESM": true,
1498
+ "relativePath": [
1499
+ "dist",
1500
+ "commands",
1501
+ "profile",
1502
+ "token",
1503
+ "index.js"
1504
+ ]
1505
+ },
1506
+ "profile:wizard": {
1507
+ "aliases": [],
1508
+ "args": {},
1509
+ "description": "Create a new profile configuration using an interactive wizard",
1510
+ "examples": [
1511
+ "$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
1512
+ ],
1513
+ "flags": {
1514
+ "name": {
1515
+ "char": "n",
1516
+ "description": "Profile name (skip prompt if provided)",
1517
+ "name": "name",
1518
+ "required": false,
1519
+ "hasDynamicHelp": false,
1520
+ "multiple": false,
1521
+ "type": "option"
1522
+ },
1523
+ "origin": {
1524
+ "char": "o",
1525
+ "description": "Xano instance origin URL",
1526
+ "name": "origin",
1527
+ "required": false,
1528
+ "default": "https://app.xano.com",
1529
+ "hasDynamicHelp": false,
1530
+ "multiple": false,
1531
+ "type": "option"
1532
+ }
1533
+ },
1534
+ "hasDynamicHelp": false,
1535
+ "hiddenAliases": [],
1536
+ "id": "profile:wizard",
1537
+ "pluginAlias": "@xano/cli",
1538
+ "pluginName": "@xano/cli",
1539
+ "pluginType": "core",
1540
+ "strict": true,
1541
+ "enableJsonFlag": false,
1542
+ "isESM": true,
1543
+ "relativePath": [
1544
+ "dist",
1545
+ "commands",
1546
+ "profile",
1547
+ "wizard",
1548
+ "index.js"
1549
+ ]
1550
+ },
1551
+ "run:exec": {
1552
+ "aliases": [],
1553
+ "args": {
1554
+ "path": {
1555
+ "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
1556
+ "name": "path",
1557
+ "required": false
1558
+ }
1559
+ },
1560
+ "description": "Execute XanoScript code (job or service)",
1561
+ "examples": [
1562
+ "$ xano run exec script.xs\nExecuted successfully!\n...\n",
1563
+ "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
1564
+ "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
1565
+ "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
1566
+ "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
1567
+ "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
1568
+ "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
1569
+ ],
1570
+ "flags": {
1571
+ "profile": {
1572
+ "char": "p",
1573
+ "description": "Profile to use for this command",
1574
+ "env": "XANO_PROFILE",
1575
+ "name": "profile",
1576
+ "required": false,
1577
+ "hasDynamicHelp": false,
1578
+ "multiple": false,
1579
+ "type": "option"
1580
+ },
1581
+ "verbose": {
1582
+ "char": "v",
1583
+ "description": "Show detailed request/response information",
1584
+ "env": "XANO_VERBOSE",
1585
+ "name": "verbose",
1586
+ "required": false,
1587
+ "allowNo": false,
1588
+ "type": "boolean"
1589
+ },
1590
+ "args": {
1591
+ "char": "a",
1592
+ "description": "Path or URL to JSON file containing input arguments",
1593
+ "name": "args",
1594
+ "required": false,
1595
+ "hasDynamicHelp": false,
1596
+ "multiple": false,
1597
+ "type": "option"
1598
+ },
1599
+ "edit": {
1600
+ "char": "e",
1601
+ "description": "Open file in editor before running (requires path argument or --file)",
1602
+ "name": "edit",
1603
+ "required": false,
1604
+ "allowNo": false,
1605
+ "type": "boolean"
1606
+ },
1607
+ "env": {
1608
+ "description": "Environment variable override (key=value)",
1609
+ "name": "env",
1610
+ "required": false,
1611
+ "hasDynamicHelp": false,
1612
+ "multiple": true,
1613
+ "type": "option"
1614
+ },
1615
+ "file": {
1616
+ "char": "f",
1617
+ "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
1618
+ "exclusive": [
1619
+ "stdin"
1620
+ ],
1621
+ "name": "file",
1622
+ "required": false,
1623
+ "hasDynamicHelp": false,
1624
+ "multiple": false,
1625
+ "type": "option"
1626
+ },
1627
+ "output": {
1628
+ "char": "o",
1629
+ "description": "Output format",
1630
+ "name": "output",
1631
+ "required": false,
1632
+ "default": "summary",
1633
+ "hasDynamicHelp": false,
1634
+ "multiple": false,
1635
+ "options": [
1636
+ "summary",
1637
+ "json"
1638
+ ],
1639
+ "type": "option"
1640
+ },
1641
+ "stdin": {
1642
+ "char": "s",
1643
+ "description": "Read XanoScript code from stdin",
1644
+ "exclusive": [
1645
+ "file"
1646
+ ],
1647
+ "name": "stdin",
1648
+ "required": false,
1649
+ "allowNo": false,
1650
+ "type": "boolean"
1651
+ }
1652
+ },
1653
+ "hasDynamicHelp": false,
1654
+ "hiddenAliases": [],
1655
+ "id": "run:exec",
1656
+ "pluginAlias": "@xano/cli",
1657
+ "pluginName": "@xano/cli",
1658
+ "pluginType": "core",
1659
+ "strict": true,
1660
+ "isESM": true,
1661
+ "relativePath": [
1662
+ "dist",
1663
+ "commands",
1664
+ "run",
1665
+ "exec",
1666
+ "index.js"
1667
+ ]
1668
+ },
1669
+ "run:info": {
861
1670
  "aliases": [],
862
1671
  "args": {},
863
- "description": "Create a new profile configuration using an interactive wizard",
1672
+ "description": "Get information about a XanoScript document (type, inputs, env vars)",
864
1673
  "examples": [
865
- "$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
1674
+ "$ 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",
1675
+ "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1676
+ "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
866
1677
  ],
867
1678
  "flags": {
868
- "name": {
869
- "char": "n",
870
- "description": "Profile name (skip prompt if provided)",
871
- "name": "name",
1679
+ "profile": {
1680
+ "char": "p",
1681
+ "description": "Profile to use for this command",
1682
+ "env": "XANO_PROFILE",
1683
+ "name": "profile",
872
1684
  "required": false,
873
1685
  "hasDynamicHelp": false,
874
1686
  "multiple": false,
875
1687
  "type": "option"
876
1688
  },
877
- "origin": {
1689
+ "verbose": {
1690
+ "char": "v",
1691
+ "description": "Show detailed request/response information",
1692
+ "env": "XANO_VERBOSE",
1693
+ "name": "verbose",
1694
+ "required": false,
1695
+ "allowNo": false,
1696
+ "type": "boolean"
1697
+ },
1698
+ "file": {
1699
+ "char": "f",
1700
+ "description": "Path or URL to file containing XanoScript code",
1701
+ "exclusive": [
1702
+ "stdin"
1703
+ ],
1704
+ "name": "file",
1705
+ "required": false,
1706
+ "hasDynamicHelp": false,
1707
+ "multiple": false,
1708
+ "type": "option"
1709
+ },
1710
+ "output": {
878
1711
  "char": "o",
879
- "description": "Xano instance origin URL",
880
- "name": "origin",
1712
+ "description": "Output format",
1713
+ "name": "output",
1714
+ "required": false,
1715
+ "default": "summary",
1716
+ "hasDynamicHelp": false,
1717
+ "multiple": false,
1718
+ "options": [
1719
+ "summary",
1720
+ "json"
1721
+ ],
1722
+ "type": "option"
1723
+ },
1724
+ "stdin": {
1725
+ "char": "s",
1726
+ "description": "Read XanoScript code from stdin",
1727
+ "exclusive": [
1728
+ "file"
1729
+ ],
1730
+ "name": "stdin",
1731
+ "required": false,
1732
+ "allowNo": false,
1733
+ "type": "boolean"
1734
+ }
1735
+ },
1736
+ "hasDynamicHelp": false,
1737
+ "hiddenAliases": [],
1738
+ "id": "run:info",
1739
+ "pluginAlias": "@xano/cli",
1740
+ "pluginName": "@xano/cli",
1741
+ "pluginType": "core",
1742
+ "strict": true,
1743
+ "isESM": true,
1744
+ "relativePath": [
1745
+ "dist",
1746
+ "commands",
1747
+ "run",
1748
+ "info",
1749
+ "index.js"
1750
+ ]
1751
+ },
1752
+ "static_host:list": {
1753
+ "aliases": [],
1754
+ "args": {},
1755
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
1756
+ "examples": [
1757
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1758
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1759
+ "$ 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",
1760
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1761
+ ],
1762
+ "flags": {
1763
+ "profile": {
1764
+ "char": "p",
1765
+ "description": "Profile to use for this command",
1766
+ "env": "XANO_PROFILE",
1767
+ "name": "profile",
1768
+ "required": false,
1769
+ "hasDynamicHelp": false,
1770
+ "multiple": false,
1771
+ "type": "option"
1772
+ },
1773
+ "verbose": {
1774
+ "char": "v",
1775
+ "description": "Show detailed request/response information",
1776
+ "env": "XANO_VERBOSE",
1777
+ "name": "verbose",
1778
+ "required": false,
1779
+ "allowNo": false,
1780
+ "type": "boolean"
1781
+ },
1782
+ "output": {
1783
+ "char": "o",
1784
+ "description": "Output format",
1785
+ "name": "output",
1786
+ "required": false,
1787
+ "default": "summary",
1788
+ "hasDynamicHelp": false,
1789
+ "multiple": false,
1790
+ "options": [
1791
+ "summary",
1792
+ "json"
1793
+ ],
1794
+ "type": "option"
1795
+ },
1796
+ "page": {
1797
+ "description": "Page number for pagination",
1798
+ "name": "page",
1799
+ "required": false,
1800
+ "default": 1,
1801
+ "hasDynamicHelp": false,
1802
+ "multiple": false,
1803
+ "type": "option"
1804
+ },
1805
+ "per_page": {
1806
+ "description": "Number of results per page",
1807
+ "name": "per_page",
1808
+ "required": false,
1809
+ "default": 50,
1810
+ "hasDynamicHelp": false,
1811
+ "multiple": false,
1812
+ "type": "option"
1813
+ },
1814
+ "workspace": {
1815
+ "char": "w",
1816
+ "description": "Workspace ID (optional if set in profile)",
1817
+ "name": "workspace",
881
1818
  "required": false,
882
- "default": "https://app.xano.com",
883
1819
  "hasDynamicHelp": false,
884
1820
  "multiple": false,
885
1821
  "type": "option"
@@ -887,7 +1823,7 @@
887
1823
  },
888
1824
  "hasDynamicHelp": false,
889
1825
  "hiddenAliases": [],
890
- "id": "profile:wizard",
1826
+ "id": "static_host:list",
891
1827
  "pluginAlias": "@xano/cli",
892
1828
  "pluginName": "@xano/cli",
893
1829
  "pluginType": "core",
@@ -897,22 +1833,19 @@
897
1833
  "relativePath": [
898
1834
  "dist",
899
1835
  "commands",
900
- "profile",
901
- "wizard",
1836
+ "static_host",
1837
+ "list",
902
1838
  "index.js"
903
1839
  ]
904
1840
  },
905
- "run:exec": {
1841
+ "workspace:create": {
906
1842
  "aliases": [],
907
1843
  "args": {},
908
- "description": "Execute XanoScript code (job or service)",
1844
+ "description": "Create a new workspace via the Xano Metadata API",
909
1845
  "examples": [
910
- "$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
911
- "$ xano run exec -f script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
912
- "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
913
- "$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
914
- "$ xano run exec -f script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
915
- "$ xano run exec -f script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
1846
+ "$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
1847
+ "$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
1848
+ "$ 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"
916
1849
  ],
917
1850
  "flags": {
918
1851
  "profile": {
@@ -925,39 +1858,32 @@
925
1858
  "multiple": false,
926
1859
  "type": "option"
927
1860
  },
928
- "file": {
929
- "char": "f",
930
- "description": "Path or URL to file containing XanoScript code",
931
- "exclusive": [
932
- "stdin"
933
- ],
934
- "name": "file",
935
- "required": false,
936
- "hasDynamicHelp": false,
937
- "multiple": false,
938
- "type": "option"
939
- },
940
- "stdin": {
941
- "char": "s",
942
- "description": "Read XanoScript code from stdin",
943
- "exclusive": [
944
- "file"
945
- ],
946
- "name": "stdin",
1861
+ "verbose": {
1862
+ "char": "v",
1863
+ "description": "Show detailed request/response information",
1864
+ "env": "XANO_VERBOSE",
1865
+ "name": "verbose",
947
1866
  "required": false,
948
1867
  "allowNo": false,
949
1868
  "type": "boolean"
950
1869
  },
951
- "edit": {
952
- "char": "e",
953
- "dependsOn": [
954
- "file"
955
- ],
956
- "description": "Open file in editor before running (requires --file)",
957
- "name": "edit",
1870
+ "description": {
1871
+ "char": "d",
1872
+ "description": "Description for the workspace",
1873
+ "name": "description",
958
1874
  "required": false,
959
- "allowNo": false,
960
- "type": "boolean"
1875
+ "hasDynamicHelp": false,
1876
+ "multiple": false,
1877
+ "type": "option"
1878
+ },
1879
+ "name": {
1880
+ "char": "n",
1881
+ "description": "Name of the workspace",
1882
+ "name": "name",
1883
+ "required": true,
1884
+ "hasDynamicHelp": false,
1885
+ "multiple": false,
1886
+ "type": "option"
961
1887
  },
962
1888
  "output": {
963
1889
  "char": "o",
@@ -972,63 +1898,86 @@
972
1898
  "json"
973
1899
  ],
974
1900
  "type": "option"
975
- },
976
- "args": {
977
- "char": "a",
978
- "description": "Path or URL to JSON file containing input arguments",
979
- "name": "args",
980
- "required": false,
981
- "hasDynamicHelp": false,
982
- "multiple": false,
983
- "type": "option"
984
- },
985
- "env": {
986
- "description": "Environment variable override (key=value)",
987
- "name": "env",
988
- "required": false,
989
- "hasDynamicHelp": false,
990
- "multiple": true,
991
- "type": "option"
992
1901
  }
993
1902
  },
994
1903
  "hasDynamicHelp": false,
995
1904
  "hiddenAliases": [],
996
- "id": "run:exec",
1905
+ "id": "workspace:create",
997
1906
  "pluginAlias": "@xano/cli",
998
1907
  "pluginName": "@xano/cli",
999
1908
  "pluginType": "core",
1000
1909
  "strict": true,
1910
+ "enableJsonFlag": false,
1001
1911
  "isESM": true,
1002
1912
  "relativePath": [
1003
1913
  "dist",
1004
1914
  "commands",
1005
- "run",
1006
- "exec",
1915
+ "workspace",
1916
+ "create",
1007
1917
  "index.js"
1008
1918
  ]
1009
1919
  },
1010
- "profile:list": {
1920
+ "workspace:delete": {
1011
1921
  "aliases": [],
1012
- "args": {},
1013
- "description": "List all available profile configurations",
1922
+ "args": {
1923
+ "workspace_id": {
1924
+ "description": "Workspace ID to delete",
1925
+ "name": "workspace_id",
1926
+ "required": true
1927
+ }
1928
+ },
1929
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
1014
1930
  "examples": [
1015
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1016
- "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1017
- "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
1931
+ "$ 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",
1932
+ "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
1933
+ "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
1018
1934
  ],
1019
1935
  "flags": {
1020
- "details": {
1021
- "char": "d",
1022
- "description": "Show detailed information for each profile",
1023
- "name": "details",
1936
+ "profile": {
1937
+ "char": "p",
1938
+ "description": "Profile to use for this command",
1939
+ "env": "XANO_PROFILE",
1940
+ "name": "profile",
1941
+ "required": false,
1942
+ "hasDynamicHelp": false,
1943
+ "multiple": false,
1944
+ "type": "option"
1945
+ },
1946
+ "verbose": {
1947
+ "char": "v",
1948
+ "description": "Show detailed request/response information",
1949
+ "env": "XANO_VERBOSE",
1950
+ "name": "verbose",
1951
+ "required": false,
1952
+ "allowNo": false,
1953
+ "type": "boolean"
1954
+ },
1955
+ "force": {
1956
+ "char": "f",
1957
+ "description": "Skip confirmation prompt",
1958
+ "name": "force",
1024
1959
  "required": false,
1025
1960
  "allowNo": false,
1026
1961
  "type": "boolean"
1962
+ },
1963
+ "output": {
1964
+ "char": "o",
1965
+ "description": "Output format",
1966
+ "name": "output",
1967
+ "required": false,
1968
+ "default": "summary",
1969
+ "hasDynamicHelp": false,
1970
+ "multiple": false,
1971
+ "options": [
1972
+ "summary",
1973
+ "json"
1974
+ ],
1975
+ "type": "option"
1027
1976
  }
1028
1977
  },
1029
1978
  "hasDynamicHelp": false,
1030
1979
  "hiddenAliases": [],
1031
- "id": "profile:list",
1980
+ "id": "workspace:delete",
1032
1981
  "pluginAlias": "@xano/cli",
1033
1982
  "pluginName": "@xano/cli",
1034
1983
  "pluginType": "core",
@@ -1038,19 +1987,26 @@
1038
1987
  "relativePath": [
1039
1988
  "dist",
1040
1989
  "commands",
1041
- "profile",
1042
- "list",
1990
+ "workspace",
1991
+ "delete",
1043
1992
  "index.js"
1044
1993
  ]
1045
1994
  },
1046
- "run:info": {
1995
+ "workspace:edit": {
1047
1996
  "aliases": [],
1048
- "args": {},
1049
- "description": "Get information about a XanoScript document (type, inputs, env vars)",
1997
+ "args": {
1998
+ "workspace_id": {
1999
+ "description": "Workspace ID to edit (uses profile workspace if not provided)",
2000
+ "name": "workspace_id",
2001
+ "required": false
2002
+ }
2003
+ },
2004
+ "description": "Edit an existing workspace via the Xano Metadata API",
1050
2005
  "examples": [
1051
- "$ 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",
1052
- "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1053
- "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
2006
+ "$ xano workspace edit 123 --name \"new-name\"\nUpdated workspace: new-name (ID: 123)\n",
2007
+ "$ xano workspace edit --name \"updated-workspace\" --description \"Updated description\"\nUpdated workspace: updated-workspace (ID: 123)\n Description: Updated description\n",
2008
+ "$ xano workspace edit 123 --swagger --require-token\nUpdated workspace: my-workspace (ID: 123)\n Swagger: enabled\n Require Token: true\n",
2009
+ "$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\n"
1054
2010
  ],
1055
2011
  "flags": {
1056
2012
  "profile": {
@@ -1063,28 +2019,32 @@
1063
2019
  "multiple": false,
1064
2020
  "type": "option"
1065
2021
  },
1066
- "file": {
1067
- "char": "f",
1068
- "description": "Path or URL to file containing XanoScript code",
1069
- "exclusive": [
1070
- "stdin"
1071
- ],
1072
- "name": "file",
2022
+ "verbose": {
2023
+ "char": "v",
2024
+ "description": "Show detailed request/response information",
2025
+ "env": "XANO_VERBOSE",
2026
+ "name": "verbose",
2027
+ "required": false,
2028
+ "allowNo": false,
2029
+ "type": "boolean"
2030
+ },
2031
+ "description": {
2032
+ "char": "d",
2033
+ "description": "New description for the workspace",
2034
+ "name": "description",
1073
2035
  "required": false,
1074
2036
  "hasDynamicHelp": false,
1075
2037
  "multiple": false,
1076
2038
  "type": "option"
1077
2039
  },
1078
- "stdin": {
1079
- "char": "s",
1080
- "description": "Read XanoScript code from stdin",
1081
- "exclusive": [
1082
- "file"
1083
- ],
1084
- "name": "stdin",
2040
+ "name": {
2041
+ "char": "n",
2042
+ "description": "New name for the workspace",
2043
+ "name": "name",
1085
2044
  "required": false,
1086
- "allowNo": false,
1087
- "type": "boolean"
2045
+ "hasDynamicHelp": false,
2046
+ "multiple": false,
2047
+ "type": "option"
1088
2048
  },
1089
2049
  "output": {
1090
2050
  "char": "o",
@@ -1099,33 +2059,53 @@
1099
2059
  "json"
1100
2060
  ],
1101
2061
  "type": "option"
2062
+ },
2063
+ "require-token": {
2064
+ "description": "Whether to require a token for documentation access",
2065
+ "name": "require-token",
2066
+ "required": false,
2067
+ "allowNo": true,
2068
+ "type": "boolean"
2069
+ },
2070
+ "swagger": {
2071
+ "description": "Enable or disable swagger documentation",
2072
+ "name": "swagger",
2073
+ "required": false,
2074
+ "allowNo": true,
2075
+ "type": "boolean"
1102
2076
  }
1103
2077
  },
1104
2078
  "hasDynamicHelp": false,
1105
2079
  "hiddenAliases": [],
1106
- "id": "run:info",
2080
+ "id": "workspace:edit",
1107
2081
  "pluginAlias": "@xano/cli",
1108
2082
  "pluginName": "@xano/cli",
1109
2083
  "pluginType": "core",
1110
2084
  "strict": true,
2085
+ "enableJsonFlag": false,
1111
2086
  "isESM": true,
1112
2087
  "relativePath": [
1113
2088
  "dist",
1114
2089
  "commands",
1115
- "run",
1116
- "info",
2090
+ "workspace",
2091
+ "edit",
1117
2092
  "index.js"
1118
2093
  ]
1119
2094
  },
1120
- "static_host:list": {
2095
+ "workspace:get": {
1121
2096
  "aliases": [],
1122
- "args": {},
1123
- "description": "List all static hosts in a workspace from the Xano Metadata API",
2097
+ "args": {
2098
+ "workspace_id": {
2099
+ "description": "Workspace ID to get details for (uses profile workspace if not provided)",
2100
+ "name": "workspace_id",
2101
+ "required": false
2102
+ }
2103
+ },
2104
+ "description": "Get details of a specific workspace from the Xano Metadata API",
1124
2105
  "examples": [
1125
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1126
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1127
- "$ 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",
1128
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
2106
+ "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
2107
+ "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
2108
+ "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
1129
2109
  ],
1130
2110
  "flags": {
1131
2111
  "profile": {
@@ -1138,14 +2118,14 @@
1138
2118
  "multiple": false,
1139
2119
  "type": "option"
1140
2120
  },
1141
- "workspace": {
1142
- "char": "w",
1143
- "description": "Workspace ID (optional if set in profile)",
1144
- "name": "workspace",
2121
+ "verbose": {
2122
+ "char": "v",
2123
+ "description": "Show detailed request/response information",
2124
+ "env": "XANO_VERBOSE",
2125
+ "name": "verbose",
1145
2126
  "required": false,
1146
- "hasDynamicHelp": false,
1147
- "multiple": false,
1148
- "type": "option"
2127
+ "allowNo": false,
2128
+ "type": "boolean"
1149
2129
  },
1150
2130
  "output": {
1151
2131
  "char": "o",
@@ -1160,29 +2140,11 @@
1160
2140
  "json"
1161
2141
  ],
1162
2142
  "type": "option"
1163
- },
1164
- "page": {
1165
- "description": "Page number for pagination",
1166
- "name": "page",
1167
- "required": false,
1168
- "default": 1,
1169
- "hasDynamicHelp": false,
1170
- "multiple": false,
1171
- "type": "option"
1172
- },
1173
- "per_page": {
1174
- "description": "Number of results per page",
1175
- "name": "per_page",
1176
- "required": false,
1177
- "default": 50,
1178
- "hasDynamicHelp": false,
1179
- "multiple": false,
1180
- "type": "option"
1181
2143
  }
1182
2144
  },
1183
2145
  "hasDynamicHelp": false,
1184
2146
  "hiddenAliases": [],
1185
- "id": "static_host:list",
2147
+ "id": "workspace:get",
1186
2148
  "pluginAlias": "@xano/cli",
1187
2149
  "pluginName": "@xano/cli",
1188
2150
  "pluginType": "core",
@@ -1192,8 +2154,8 @@
1192
2154
  "relativePath": [
1193
2155
  "dist",
1194
2156
  "commands",
1195
- "static_host",
1196
- "list",
2157
+ "workspace",
2158
+ "get",
1197
2159
  "index.js"
1198
2160
  ]
1199
2161
  },
@@ -1218,6 +2180,15 @@
1218
2180
  "multiple": false,
1219
2181
  "type": "option"
1220
2182
  },
2183
+ "verbose": {
2184
+ "char": "v",
2185
+ "description": "Show detailed request/response information",
2186
+ "env": "XANO_VERBOSE",
2187
+ "name": "verbose",
2188
+ "required": false,
2189
+ "allowNo": false,
2190
+ "type": "boolean"
2191
+ },
1221
2192
  "output": {
1222
2193
  "char": "o",
1223
2194
  "description": "Output format",
@@ -1250,20 +2221,20 @@
1250
2221
  "index.js"
1251
2222
  ]
1252
2223
  },
1253
- "workspace:pull": {
2224
+ "workspace:push": {
1254
2225
  "aliases": [],
1255
2226
  "args": {
1256
2227
  "directory": {
1257
- "description": "Output directory for pulled documents",
2228
+ "description": "Directory containing documents to push (as produced by workspace pull)",
1258
2229
  "name": "directory",
1259
2230
  "required": true
1260
2231
  }
1261
2232
  },
1262
- "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
2233
+ "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
1263
2234
  "examples": [
1264
- "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
1265
- "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
1266
- "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
2235
+ "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
2236
+ "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
2237
+ "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
1267
2238
  ],
1268
2239
  "flags": {
1269
2240
  "profile": {
@@ -1276,33 +2247,28 @@
1276
2247
  "multiple": false,
1277
2248
  "type": "option"
1278
2249
  },
1279
- "workspace": {
1280
- "char": "w",
1281
- "description": "Workspace ID (optional if set in profile)",
1282
- "name": "workspace",
1283
- "required": false,
1284
- "hasDynamicHelp": false,
1285
- "multiple": false,
1286
- "type": "option"
1287
- },
1288
- "env": {
1289
- "description": "Include environment variables",
1290
- "name": "env",
2250
+ "verbose": {
2251
+ "char": "v",
2252
+ "description": "Show detailed request/response information",
2253
+ "env": "XANO_VERBOSE",
2254
+ "name": "verbose",
1291
2255
  "required": false,
1292
2256
  "allowNo": false,
1293
2257
  "type": "boolean"
1294
2258
  },
1295
- "records": {
1296
- "description": "Include records",
1297
- "name": "records",
2259
+ "workspace": {
2260
+ "char": "w",
2261
+ "description": "Workspace ID (optional if set in profile)",
2262
+ "name": "workspace",
1298
2263
  "required": false,
1299
- "allowNo": false,
1300
- "type": "boolean"
2264
+ "hasDynamicHelp": false,
2265
+ "multiple": false,
2266
+ "type": "option"
1301
2267
  }
1302
2268
  },
1303
2269
  "hasDynamicHelp": false,
1304
2270
  "hiddenAliases": [],
1305
- "id": "workspace:pull",
2271
+ "id": "workspace:push",
1306
2272
  "pluginAlias": "@xano/cli",
1307
2273
  "pluginName": "@xano/cli",
1308
2274
  "pluginType": "core",
@@ -1313,24 +2279,24 @@
1313
2279
  "dist",
1314
2280
  "commands",
1315
2281
  "workspace",
1316
- "pull",
2282
+ "push",
1317
2283
  "index.js"
1318
2284
  ]
1319
2285
  },
1320
- "workspace:push": {
2286
+ "workspace:pull": {
1321
2287
  "aliases": [],
1322
2288
  "args": {
1323
2289
  "directory": {
1324
- "description": "Directory containing documents to push (as produced by workspace pull)",
2290
+ "description": "Output directory for pulled documents",
1325
2291
  "name": "directory",
1326
2292
  "required": true
1327
2293
  }
1328
2294
  },
1329
- "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
2295
+ "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
1330
2296
  "examples": [
1331
- "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1332
- "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1333
- "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
2297
+ "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
2298
+ "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
2299
+ "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
1334
2300
  ],
1335
2301
  "flags": {
1336
2302
  "profile": {
@@ -1343,6 +2309,29 @@
1343
2309
  "multiple": false,
1344
2310
  "type": "option"
1345
2311
  },
2312
+ "verbose": {
2313
+ "char": "v",
2314
+ "description": "Show detailed request/response information",
2315
+ "env": "XANO_VERBOSE",
2316
+ "name": "verbose",
2317
+ "required": false,
2318
+ "allowNo": false,
2319
+ "type": "boolean"
2320
+ },
2321
+ "env": {
2322
+ "description": "Include environment variables",
2323
+ "name": "env",
2324
+ "required": false,
2325
+ "allowNo": false,
2326
+ "type": "boolean"
2327
+ },
2328
+ "records": {
2329
+ "description": "Include records",
2330
+ "name": "records",
2331
+ "required": false,
2332
+ "allowNo": false,
2333
+ "type": "boolean"
2334
+ },
1346
2335
  "workspace": {
1347
2336
  "char": "w",
1348
2337
  "description": "Workspace ID (optional if set in profile)",
@@ -1355,7 +2344,7 @@
1355
2344
  },
1356
2345
  "hasDynamicHelp": false,
1357
2346
  "hiddenAliases": [],
1358
- "id": "workspace:push",
2347
+ "id": "workspace:pull",
1359
2348
  "pluginAlias": "@xano/cli",
1360
2349
  "pluginName": "@xano/cli",
1361
2350
  "pluginType": "core",
@@ -1366,7 +2355,7 @@
1366
2355
  "dist",
1367
2356
  "commands",
1368
2357
  "workspace",
1369
- "push",
2358
+ "pull",
1370
2359
  "index.js"
1371
2360
  ]
1372
2361
  },
@@ -1395,6 +2384,15 @@
1395
2384
  "multiple": false,
1396
2385
  "type": "option"
1397
2386
  },
2387
+ "verbose": {
2388
+ "char": "v",
2389
+ "description": "Show detailed request/response information",
2390
+ "env": "XANO_VERBOSE",
2391
+ "name": "verbose",
2392
+ "required": false,
2393
+ "allowNo": false,
2394
+ "type": "boolean"
2395
+ },
1398
2396
  "force": {
1399
2397
  "char": "f",
1400
2398
  "description": "Skip confirmation prompt",
@@ -1446,6 +2444,15 @@
1446
2444
  "multiple": false,
1447
2445
  "type": "option"
1448
2446
  },
2447
+ "verbose": {
2448
+ "char": "v",
2449
+ "description": "Show detailed request/response information",
2450
+ "env": "XANO_VERBOSE",
2451
+ "name": "verbose",
2452
+ "required": false,
2453
+ "allowNo": false,
2454
+ "type": "boolean"
2455
+ },
1449
2456
  "output": {
1450
2457
  "char": "o",
1451
2458
  "description": "Output format",
@@ -1497,6 +2504,15 @@
1497
2504
  "multiple": false,
1498
2505
  "type": "option"
1499
2506
  },
2507
+ "verbose": {
2508
+ "char": "v",
2509
+ "description": "Show detailed request/response information",
2510
+ "env": "XANO_VERBOSE",
2511
+ "name": "verbose",
2512
+ "required": false,
2513
+ "allowNo": false,
2514
+ "type": "boolean"
2515
+ },
1500
2516
  "output": {
1501
2517
  "char": "o",
1502
2518
  "description": "Output format",
@@ -1529,6 +2545,63 @@
1529
2545
  "index.js"
1530
2546
  ]
1531
2547
  },
2548
+ "run:env:set": {
2549
+ "aliases": [],
2550
+ "args": {
2551
+ "name": {
2552
+ "description": "Environment variable name",
2553
+ "name": "name",
2554
+ "required": true
2555
+ },
2556
+ "value": {
2557
+ "description": "Environment variable value",
2558
+ "name": "value",
2559
+ "required": true
2560
+ }
2561
+ },
2562
+ "description": "Set an environment variable",
2563
+ "examples": [
2564
+ "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
2565
+ "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
2566
+ ],
2567
+ "flags": {
2568
+ "profile": {
2569
+ "char": "p",
2570
+ "description": "Profile to use for this command",
2571
+ "env": "XANO_PROFILE",
2572
+ "name": "profile",
2573
+ "required": false,
2574
+ "hasDynamicHelp": false,
2575
+ "multiple": false,
2576
+ "type": "option"
2577
+ },
2578
+ "verbose": {
2579
+ "char": "v",
2580
+ "description": "Show detailed request/response information",
2581
+ "env": "XANO_VERBOSE",
2582
+ "name": "verbose",
2583
+ "required": false,
2584
+ "allowNo": false,
2585
+ "type": "boolean"
2586
+ }
2587
+ },
2588
+ "hasDynamicHelp": false,
2589
+ "hiddenAliases": [],
2590
+ "id": "run:env:set",
2591
+ "pluginAlias": "@xano/cli",
2592
+ "pluginName": "@xano/cli",
2593
+ "pluginType": "core",
2594
+ "strict": true,
2595
+ "isESM": true,
2596
+ "relativePath": [
2597
+ "dist",
2598
+ "commands",
2599
+ "run",
2600
+ "env",
2601
+ "set",
2602
+ "index.js"
2603
+ ]
2604
+ },
1532
2605
  "run:projects:delete": {
1533
2606
  "aliases": [],
1534
2607
  "args": {
@@ -1554,6 +2627,15 @@
1554
2627
  "multiple": false,
1555
2628
  "type": "option"
1556
2629
  },
2630
+ "verbose": {
2631
+ "char": "v",
2632
+ "description": "Show detailed request/response information",
2633
+ "env": "XANO_VERBOSE",
2634
+ "name": "verbose",
2635
+ "required": false,
2636
+ "allowNo": false,
2637
+ "type": "boolean"
2638
+ },
1557
2639
  "force": {
1558
2640
  "char": "f",
1559
2641
  "description": "Skip confirmation prompt",
@@ -1580,13 +2662,14 @@
1580
2662
  "index.js"
1581
2663
  ]
1582
2664
  },
1583
- "run:projects:list": {
2665
+ "run:projects:create": {
1584
2666
  "aliases": [],
1585
2667
  "args": {},
1586
- "description": "List all projects",
2668
+ "description": "Create a new project",
1587
2669
  "examples": [
1588
- "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
1589
- "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
2670
+ "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2671
+ "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2672
+ "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
1590
2673
  ],
1591
2674
  "flags": {
1592
2675
  "profile": {
@@ -1599,16 +2682,44 @@
1599
2682
  "multiple": false,
1600
2683
  "type": "option"
1601
2684
  },
2685
+ "verbose": {
2686
+ "char": "v",
2687
+ "description": "Show detailed request/response information",
2688
+ "env": "XANO_VERBOSE",
2689
+ "name": "verbose",
2690
+ "required": false,
2691
+ "allowNo": false,
2692
+ "type": "boolean"
2693
+ },
2694
+ "description": {
2695
+ "char": "d",
2696
+ "description": "Project description",
2697
+ "name": "description",
2698
+ "required": false,
2699
+ "default": "",
2700
+ "hasDynamicHelp": false,
2701
+ "multiple": false,
2702
+ "type": "option"
2703
+ },
2704
+ "name": {
2705
+ "char": "n",
2706
+ "description": "Project name",
2707
+ "name": "name",
2708
+ "required": true,
2709
+ "hasDynamicHelp": false,
2710
+ "multiple": false,
2711
+ "type": "option"
2712
+ },
1602
2713
  "output": {
1603
2714
  "char": "o",
1604
2715
  "description": "Output format",
1605
2716
  "name": "output",
1606
2717
  "required": false,
1607
- "default": "table",
2718
+ "default": "summary",
1608
2719
  "hasDynamicHelp": false,
1609
2720
  "multiple": false,
1610
2721
  "options": [
1611
- "table",
2722
+ "summary",
1612
2723
  "json"
1613
2724
  ],
1614
2725
  "type": "option"
@@ -1616,7 +2727,7 @@
1616
2727
  },
1617
2728
  "hasDynamicHelp": false,
1618
2729
  "hiddenAliases": [],
1619
- "id": "run:projects:list",
2730
+ "id": "run:projects:create",
1620
2731
  "pluginAlias": "@xano/cli",
1621
2732
  "pluginName": "@xano/cli",
1622
2733
  "pluginType": "core",
@@ -1627,18 +2738,17 @@
1627
2738
  "commands",
1628
2739
  "run",
1629
2740
  "projects",
1630
- "list",
2741
+ "create",
1631
2742
  "index.js"
1632
2743
  ]
1633
2744
  },
1634
- "run:projects:create": {
2745
+ "run:projects:list": {
1635
2746
  "aliases": [],
1636
2747
  "args": {},
1637
- "description": "Create a new project",
2748
+ "description": "List all projects",
1638
2749
  "examples": [
1639
- "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
1640
- "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
1641
- "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
2750
+ "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
2751
+ "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
1642
2752
  ],
1643
2753
  "flags": {
1644
2754
  "profile": {
@@ -1651,35 +2761,25 @@
1651
2761
  "multiple": false,
1652
2762
  "type": "option"
1653
2763
  },
1654
- "name": {
1655
- "char": "n",
1656
- "description": "Project name",
1657
- "name": "name",
1658
- "required": true,
1659
- "hasDynamicHelp": false,
1660
- "multiple": false,
1661
- "type": "option"
1662
- },
1663
- "description": {
1664
- "char": "d",
1665
- "description": "Project description",
1666
- "name": "description",
2764
+ "verbose": {
2765
+ "char": "v",
2766
+ "description": "Show detailed request/response information",
2767
+ "env": "XANO_VERBOSE",
2768
+ "name": "verbose",
1667
2769
  "required": false,
1668
- "default": "",
1669
- "hasDynamicHelp": false,
1670
- "multiple": false,
1671
- "type": "option"
2770
+ "allowNo": false,
2771
+ "type": "boolean"
1672
2772
  },
1673
2773
  "output": {
1674
2774
  "char": "o",
1675
2775
  "description": "Output format",
1676
2776
  "name": "output",
1677
2777
  "required": false,
1678
- "default": "summary",
2778
+ "default": "table",
1679
2779
  "hasDynamicHelp": false,
1680
2780
  "multiple": false,
1681
2781
  "options": [
1682
- "summary",
2782
+ "table",
1683
2783
  "json"
1684
2784
  ],
1685
2785
  "type": "option"
@@ -1687,7 +2787,7 @@
1687
2787
  },
1688
2788
  "hasDynamicHelp": false,
1689
2789
  "hiddenAliases": [],
1690
- "id": "run:projects:create",
2790
+ "id": "run:projects:list",
1691
2791
  "pluginAlias": "@xano/cli",
1692
2792
  "pluginName": "@xano/cli",
1693
2793
  "pluginType": "core",
@@ -1698,28 +2798,23 @@
1698
2798
  "commands",
1699
2799
  "run",
1700
2800
  "projects",
1701
- "create",
2801
+ "list",
1702
2802
  "index.js"
1703
2803
  ]
1704
2804
  },
1705
- "run:env:set": {
2805
+ "run:secrets:delete": {
1706
2806
  "aliases": [],
1707
2807
  "args": {
1708
2808
  "name": {
1709
- "description": "Environment variable name",
2809
+ "description": "Secret name",
1710
2810
  "name": "name",
1711
2811
  "required": true
1712
- },
1713
- "value": {
1714
- "description": "Environment variable value",
1715
- "name": "value",
1716
- "required": true
1717
2812
  }
1718
2813
  },
1719
- "description": "Set an environment variable",
2814
+ "description": "Delete a secret",
1720
2815
  "examples": [
1721
- "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1722
- "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
2816
+ "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
2817
+ "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
1723
2818
  ],
1724
2819
  "flags": {
1725
2820
  "profile": {
@@ -1731,11 +2826,28 @@
1731
2826
  "hasDynamicHelp": false,
1732
2827
  "multiple": false,
1733
2828
  "type": "option"
2829
+ },
2830
+ "verbose": {
2831
+ "char": "v",
2832
+ "description": "Show detailed request/response information",
2833
+ "env": "XANO_VERBOSE",
2834
+ "name": "verbose",
2835
+ "required": false,
2836
+ "allowNo": false,
2837
+ "type": "boolean"
2838
+ },
2839
+ "force": {
2840
+ "char": "f",
2841
+ "description": "Skip confirmation prompt",
2842
+ "name": "force",
2843
+ "required": false,
2844
+ "allowNo": false,
2845
+ "type": "boolean"
1734
2846
  }
1735
2847
  },
1736
2848
  "hasDynamicHelp": false,
1737
2849
  "hiddenAliases": [],
1738
- "id": "run:env:set",
2850
+ "id": "run:secrets:delete",
1739
2851
  "pluginAlias": "@xano/cli",
1740
2852
  "pluginName": "@xano/cli",
1741
2853
  "pluginType": "core",
@@ -1745,8 +2857,8 @@
1745
2857
  "dist",
1746
2858
  "commands",
1747
2859
  "run",
1748
- "env",
1749
- "set",
2860
+ "secrets",
2861
+ "delete",
1750
2862
  "index.js"
1751
2863
  ]
1752
2864
  },
@@ -1775,6 +2887,15 @@
1775
2887
  "multiple": false,
1776
2888
  "type": "option"
1777
2889
  },
2890
+ "verbose": {
2891
+ "char": "v",
2892
+ "description": "Show detailed request/response information",
2893
+ "env": "XANO_VERBOSE",
2894
+ "name": "verbose",
2895
+ "required": false,
2896
+ "allowNo": false,
2897
+ "type": "boolean"
2898
+ },
1778
2899
  "output": {
1779
2900
  "char": "o",
1780
2901
  "description": "Output format",
@@ -1833,6 +2954,24 @@
1833
2954
  "multiple": false,
1834
2955
  "type": "option"
1835
2956
  },
2957
+ "verbose": {
2958
+ "char": "v",
2959
+ "description": "Show detailed request/response information",
2960
+ "env": "XANO_VERBOSE",
2961
+ "name": "verbose",
2962
+ "required": false,
2963
+ "allowNo": false,
2964
+ "type": "boolean"
2965
+ },
2966
+ "description": {
2967
+ "char": "d",
2968
+ "description": "New project description",
2969
+ "name": "description",
2970
+ "required": false,
2971
+ "hasDynamicHelp": false,
2972
+ "multiple": false,
2973
+ "type": "option"
2974
+ },
1836
2975
  "name": {
1837
2976
  "char": "n",
1838
2977
  "description": "New project name",
@@ -1842,15 +2981,6 @@
1842
2981
  "multiple": false,
1843
2982
  "type": "option"
1844
2983
  },
1845
- "description": {
1846
- "char": "d",
1847
- "description": "New project description",
1848
- "name": "description",
1849
- "required": false,
1850
- "hasDynamicHelp": false,
1851
- "multiple": false,
1852
- "type": "option"
1853
- },
1854
2984
  "output": {
1855
2985
  "char": "o",
1856
2986
  "description": "Output format",
@@ -1883,19 +3013,13 @@
1883
3013
  "index.js"
1884
3014
  ]
1885
3015
  },
1886
- "run:secrets:delete": {
3016
+ "run:secrets:list": {
1887
3017
  "aliases": [],
1888
- "args": {
1889
- "name": {
1890
- "description": "Secret name",
1891
- "name": "name",
1892
- "required": true
1893
- }
1894
- },
1895
- "description": "Delete a secret",
3018
+ "args": {},
3019
+ "description": "List all secret keys",
1896
3020
  "examples": [
1897
- "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
1898
- "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
3021
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
3022
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
1899
3023
  ],
1900
3024
  "flags": {
1901
3025
  "profile": {
@@ -1908,18 +3032,33 @@
1908
3032
  "multiple": false,
1909
3033
  "type": "option"
1910
3034
  },
1911
- "force": {
1912
- "char": "f",
1913
- "description": "Skip confirmation prompt",
1914
- "name": "force",
3035
+ "verbose": {
3036
+ "char": "v",
3037
+ "description": "Show detailed request/response information",
3038
+ "env": "XANO_VERBOSE",
3039
+ "name": "verbose",
1915
3040
  "required": false,
1916
3041
  "allowNo": false,
1917
3042
  "type": "boolean"
3043
+ },
3044
+ "output": {
3045
+ "char": "o",
3046
+ "description": "Output format",
3047
+ "name": "output",
3048
+ "required": false,
3049
+ "default": "table",
3050
+ "hasDynamicHelp": false,
3051
+ "multiple": false,
3052
+ "options": [
3053
+ "table",
3054
+ "json"
3055
+ ],
3056
+ "type": "option"
1918
3057
  }
1919
3058
  },
1920
3059
  "hasDynamicHelp": false,
1921
3060
  "hiddenAliases": [],
1922
- "id": "run:secrets:delete",
3061
+ "id": "run:secrets:list",
1923
3062
  "pluginAlias": "@xano/cli",
1924
3063
  "pluginName": "@xano/cli",
1925
3064
  "pluginType": "core",
@@ -1930,7 +3069,7 @@
1930
3069
  "commands",
1931
3070
  "run",
1932
3071
  "secrets",
1933
- "delete",
3072
+ "list",
1934
3073
  "index.js"
1935
3074
  ]
1936
3075
  },
@@ -1959,6 +3098,24 @@
1959
3098
  "multiple": false,
1960
3099
  "type": "option"
1961
3100
  },
3101
+ "verbose": {
3102
+ "char": "v",
3103
+ "description": "Show detailed request/response information",
3104
+ "env": "XANO_VERBOSE",
3105
+ "name": "verbose",
3106
+ "required": false,
3107
+ "allowNo": false,
3108
+ "type": "boolean"
3109
+ },
3110
+ "repo": {
3111
+ "char": "r",
3112
+ "description": "Repository (for dockerconfigjson type)",
3113
+ "name": "repo",
3114
+ "required": false,
3115
+ "hasDynamicHelp": false,
3116
+ "multiple": false,
3117
+ "type": "option"
3118
+ },
1962
3119
  "type": {
1963
3120
  "char": "t",
1964
3121
  "description": "Secret type",
@@ -1980,15 +3137,6 @@
1980
3137
  "hasDynamicHelp": false,
1981
3138
  "multiple": false,
1982
3139
  "type": "option"
1983
- },
1984
- "repo": {
1985
- "char": "r",
1986
- "description": "Repository (for dockerconfigjson type)",
1987
- "name": "repo",
1988
- "required": false,
1989
- "hasDynamicHelp": false,
1990
- "multiple": false,
1991
- "type": "option"
1992
3140
  }
1993
3141
  },
1994
3142
  "hasDynamicHelp": false,
@@ -2008,7 +3156,7 @@
2008
3156
  "index.js"
2009
3157
  ]
2010
3158
  },
2011
- "run:sink:get": {
3159
+ "run:sessions:delete": {
2012
3160
  "aliases": [],
2013
3161
  "args": {
2014
3162
  "sessionId": {
@@ -2017,10 +3165,10 @@
2017
3165
  "required": true
2018
3166
  }
2019
3167
  },
2020
- "description": "Get sink data for a completed session",
3168
+ "description": "Delete a session",
2021
3169
  "examples": [
2022
- "$ 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",
2023
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
3170
+ "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
3171
+ "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
2024
3172
  ],
2025
3173
  "flags": {
2026
3174
  "profile": {
@@ -2033,75 +3181,27 @@
2033
3181
  "multiple": false,
2034
3182
  "type": "option"
2035
3183
  },
2036
- "output": {
2037
- "char": "o",
2038
- "description": "Output format",
2039
- "name": "output",
2040
- "required": false,
2041
- "default": "summary",
2042
- "hasDynamicHelp": false,
2043
- "multiple": false,
2044
- "options": [
2045
- "summary",
2046
- "json"
2047
- ],
2048
- "type": "option"
2049
- }
2050
- },
2051
- "hasDynamicHelp": false,
2052
- "hiddenAliases": [],
2053
- "id": "run:sink:get",
2054
- "pluginAlias": "@xano/cli",
2055
- "pluginName": "@xano/cli",
2056
- "pluginType": "core",
2057
- "strict": true,
2058
- "isESM": true,
2059
- "relativePath": [
2060
- "dist",
2061
- "commands",
2062
- "run",
2063
- "sink",
2064
- "get",
2065
- "index.js"
2066
- ]
2067
- },
2068
- "run:secrets:list": {
2069
- "aliases": [],
2070
- "args": {},
2071
- "description": "List all secret keys",
2072
- "examples": [
2073
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2074
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2075
- ],
2076
- "flags": {
2077
- "profile": {
2078
- "char": "p",
2079
- "description": "Profile to use for this command",
2080
- "env": "XANO_PROFILE",
2081
- "name": "profile",
3184
+ "verbose": {
3185
+ "char": "v",
3186
+ "description": "Show detailed request/response information",
3187
+ "env": "XANO_VERBOSE",
3188
+ "name": "verbose",
2082
3189
  "required": false,
2083
- "hasDynamicHelp": false,
2084
- "multiple": false,
2085
- "type": "option"
3190
+ "allowNo": false,
3191
+ "type": "boolean"
2086
3192
  },
2087
- "output": {
2088
- "char": "o",
2089
- "description": "Output format",
2090
- "name": "output",
3193
+ "force": {
3194
+ "char": "f",
3195
+ "description": "Skip confirmation prompt",
3196
+ "name": "force",
2091
3197
  "required": false,
2092
- "default": "table",
2093
- "hasDynamicHelp": false,
2094
- "multiple": false,
2095
- "options": [
2096
- "table",
2097
- "json"
2098
- ],
2099
- "type": "option"
3198
+ "allowNo": false,
3199
+ "type": "boolean"
2100
3200
  }
2101
3201
  },
2102
3202
  "hasDynamicHelp": false,
2103
3203
  "hiddenAliases": [],
2104
- "id": "run:secrets:list",
3204
+ "id": "run:sessions:delete",
2105
3205
  "pluginAlias": "@xano/cli",
2106
3206
  "pluginName": "@xano/cli",
2107
3207
  "pluginType": "core",
@@ -2111,31 +3211,24 @@
2111
3211
  "dist",
2112
3212
  "commands",
2113
3213
  "run",
2114
- "secrets",
2115
- "list",
3214
+ "sessions",
3215
+ "delete",
2116
3216
  "index.js"
2117
3217
  ]
2118
3218
  },
2119
- "static_host:build:get": {
3219
+ "run:sessions:get": {
2120
3220
  "aliases": [],
2121
3221
  "args": {
2122
- "static_host": {
2123
- "description": "Static Host name",
2124
- "name": "static_host",
2125
- "required": true
2126
- },
2127
- "build_id": {
2128
- "description": "Build ID",
2129
- "name": "build_id",
3222
+ "sessionId": {
3223
+ "description": "Session ID",
3224
+ "name": "sessionId",
2130
3225
  "required": true
2131
3226
  }
2132
3227
  },
2133
- "description": "Get details of a specific build for a static host",
3228
+ "description": "Get session details",
2134
3229
  "examples": [
2135
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2136
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2137
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
2138
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
3230
+ "$ 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",
3231
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
2139
3232
  ],
2140
3233
  "flags": {
2141
3234
  "profile": {
@@ -2148,14 +3241,14 @@
2148
3241
  "multiple": false,
2149
3242
  "type": "option"
2150
3243
  },
2151
- "workspace": {
2152
- "char": "w",
2153
- "description": "Workspace ID (optional if set in profile)",
2154
- "name": "workspace",
3244
+ "verbose": {
3245
+ "char": "v",
3246
+ "description": "Show detailed request/response information",
3247
+ "env": "XANO_VERBOSE",
3248
+ "name": "verbose",
2155
3249
  "required": false,
2156
- "hasDynamicHelp": false,
2157
- "multiple": false,
2158
- "type": "option"
3250
+ "allowNo": false,
3251
+ "type": "boolean"
2159
3252
  },
2160
3253
  "output": {
2161
3254
  "char": "o",
@@ -2174,37 +3267,28 @@
2174
3267
  },
2175
3268
  "hasDynamicHelp": false,
2176
3269
  "hiddenAliases": [],
2177
- "id": "static_host:build:get",
3270
+ "id": "run:sessions:get",
2178
3271
  "pluginAlias": "@xano/cli",
2179
3272
  "pluginName": "@xano/cli",
2180
3273
  "pluginType": "core",
2181
3274
  "strict": true,
2182
- "enableJsonFlag": false,
2183
3275
  "isESM": true,
2184
3276
  "relativePath": [
2185
3277
  "dist",
2186
3278
  "commands",
2187
- "static_host",
2188
- "build",
3279
+ "run",
3280
+ "sessions",
2189
3281
  "get",
2190
3282
  "index.js"
2191
3283
  ]
2192
3284
  },
2193
- "static_host:build:list": {
3285
+ "run:sessions:list": {
2194
3286
  "aliases": [],
2195
- "args": {
2196
- "static_host": {
2197
- "description": "Static Host name",
2198
- "name": "static_host",
2199
- "required": true
2200
- }
2201
- },
2202
- "description": "List all builds for a static host",
3287
+ "args": {},
3288
+ "description": "List all sessions for the project",
2203
3289
  "examples": [
2204
- "$ 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",
2205
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
2206
- "$ 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",
2207
- "$ 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"
3290
+ "$ 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",
3291
+ "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
2208
3292
  ],
2209
3293
  "flags": {
2210
3294
  "profile": {
@@ -2217,67 +3301,48 @@
2217
3301
  "multiple": false,
2218
3302
  "type": "option"
2219
3303
  },
2220
- "workspace": {
2221
- "char": "w",
2222
- "description": "Workspace ID (optional if set in profile)",
2223
- "name": "workspace",
3304
+ "verbose": {
3305
+ "char": "v",
3306
+ "description": "Show detailed request/response information",
3307
+ "env": "XANO_VERBOSE",
3308
+ "name": "verbose",
2224
3309
  "required": false,
2225
- "hasDynamicHelp": false,
2226
- "multiple": false,
2227
- "type": "option"
3310
+ "allowNo": false,
3311
+ "type": "boolean"
2228
3312
  },
2229
3313
  "output": {
2230
3314
  "char": "o",
2231
3315
  "description": "Output format",
2232
3316
  "name": "output",
2233
3317
  "required": false,
2234
- "default": "summary",
3318
+ "default": "table",
2235
3319
  "hasDynamicHelp": false,
2236
3320
  "multiple": false,
2237
3321
  "options": [
2238
- "summary",
3322
+ "table",
2239
3323
  "json"
2240
3324
  ],
2241
3325
  "type": "option"
2242
- },
2243
- "page": {
2244
- "description": "Page number for pagination",
2245
- "name": "page",
2246
- "required": false,
2247
- "default": 1,
2248
- "hasDynamicHelp": false,
2249
- "multiple": false,
2250
- "type": "option"
2251
- },
2252
- "per_page": {
2253
- "description": "Number of results per page",
2254
- "name": "per_page",
2255
- "required": false,
2256
- "default": 50,
2257
- "hasDynamicHelp": false,
2258
- "multiple": false,
2259
- "type": "option"
2260
3326
  }
2261
3327
  },
2262
3328
  "hasDynamicHelp": false,
2263
3329
  "hiddenAliases": [],
2264
- "id": "static_host:build:list",
3330
+ "id": "run:sessions:list",
2265
3331
  "pluginAlias": "@xano/cli",
2266
3332
  "pluginName": "@xano/cli",
2267
3333
  "pluginType": "core",
2268
3334
  "strict": true,
2269
- "enableJsonFlag": false,
2270
3335
  "isESM": true,
2271
3336
  "relativePath": [
2272
3337
  "dist",
2273
3338
  "commands",
2274
- "static_host",
2275
- "build",
3339
+ "run",
3340
+ "sessions",
2276
3341
  "list",
2277
3342
  "index.js"
2278
3343
  ]
2279
3344
  },
2280
- "run:sessions:delete": {
3345
+ "run:sessions:start": {
2281
3346
  "aliases": [],
2282
3347
  "args": {
2283
3348
  "sessionId": {
@@ -2286,10 +3351,10 @@
2286
3351
  "required": true
2287
3352
  }
2288
3353
  },
2289
- "description": "Delete a session",
3354
+ "description": "Start a session",
2290
3355
  "examples": [
2291
- "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
2292
- "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
3356
+ "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
3357
+ "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
2293
3358
  ],
2294
3359
  "flags": {
2295
3360
  "profile": {
@@ -2302,18 +3367,33 @@
2302
3367
  "multiple": false,
2303
3368
  "type": "option"
2304
3369
  },
2305
- "force": {
2306
- "char": "f",
2307
- "description": "Skip confirmation prompt",
2308
- "name": "force",
3370
+ "verbose": {
3371
+ "char": "v",
3372
+ "description": "Show detailed request/response information",
3373
+ "env": "XANO_VERBOSE",
3374
+ "name": "verbose",
2309
3375
  "required": false,
2310
3376
  "allowNo": false,
2311
3377
  "type": "boolean"
3378
+ },
3379
+ "output": {
3380
+ "char": "o",
3381
+ "description": "Output format",
3382
+ "name": "output",
3383
+ "required": false,
3384
+ "default": "summary",
3385
+ "hasDynamicHelp": false,
3386
+ "multiple": false,
3387
+ "options": [
3388
+ "summary",
3389
+ "json"
3390
+ ],
3391
+ "type": "option"
2312
3392
  }
2313
3393
  },
2314
3394
  "hasDynamicHelp": false,
2315
3395
  "hiddenAliases": [],
2316
- "id": "run:sessions:delete",
3396
+ "id": "run:sessions:start",
2317
3397
  "pluginAlias": "@xano/cli",
2318
3398
  "pluginName": "@xano/cli",
2319
3399
  "pluginType": "core",
@@ -2324,11 +3404,11 @@
2324
3404
  "commands",
2325
3405
  "run",
2326
3406
  "sessions",
2327
- "delete",
3407
+ "start",
2328
3408
  "index.js"
2329
3409
  ]
2330
3410
  },
2331
- "run:sessions:get": {
3411
+ "run:sessions:stop": {
2332
3412
  "aliases": [],
2333
3413
  "args": {
2334
3414
  "sessionId": {
@@ -2337,10 +3417,10 @@
2337
3417
  "required": true
2338
3418
  }
2339
3419
  },
2340
- "description": "Get session details",
3420
+ "description": "Stop a session",
2341
3421
  "examples": [
2342
- "$ 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",
2343
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
3422
+ "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
3423
+ "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
2344
3424
  ],
2345
3425
  "flags": {
2346
3426
  "profile": {
@@ -2353,6 +3433,15 @@
2353
3433
  "multiple": false,
2354
3434
  "type": "option"
2355
3435
  },
3436
+ "verbose": {
3437
+ "char": "v",
3438
+ "description": "Show detailed request/response information",
3439
+ "env": "XANO_VERBOSE",
3440
+ "name": "verbose",
3441
+ "required": false,
3442
+ "allowNo": false,
3443
+ "type": "boolean"
3444
+ },
2356
3445
  "output": {
2357
3446
  "char": "o",
2358
3447
  "description": "Output format",
@@ -2370,7 +3459,7 @@
2370
3459
  },
2371
3460
  "hasDynamicHelp": false,
2372
3461
  "hiddenAliases": [],
2373
- "id": "run:sessions:get",
3462
+ "id": "run:sessions:stop",
2374
3463
  "pluginAlias": "@xano/cli",
2375
3464
  "pluginName": "@xano/cli",
2376
3465
  "pluginType": "core",
@@ -2381,17 +3470,23 @@
2381
3470
  "commands",
2382
3471
  "run",
2383
3472
  "sessions",
2384
- "get",
3473
+ "stop",
2385
3474
  "index.js"
2386
3475
  ]
2387
3476
  },
2388
- "run:sessions:list": {
3477
+ "run:sink:get": {
2389
3478
  "aliases": [],
2390
- "args": {},
2391
- "description": "List all sessions for the project",
3479
+ "args": {
3480
+ "sessionId": {
3481
+ "description": "Session ID",
3482
+ "name": "sessionId",
3483
+ "required": true
3484
+ }
3485
+ },
3486
+ "description": "Get sink data for a completed session",
2392
3487
  "examples": [
2393
- "$ 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",
2394
- "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
3488
+ "$ 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",
3489
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
2395
3490
  ],
2396
3491
  "flags": {
2397
3492
  "profile": {
@@ -2404,16 +3499,25 @@
2404
3499
  "multiple": false,
2405
3500
  "type": "option"
2406
3501
  },
3502
+ "verbose": {
3503
+ "char": "v",
3504
+ "description": "Show detailed request/response information",
3505
+ "env": "XANO_VERBOSE",
3506
+ "name": "verbose",
3507
+ "required": false,
3508
+ "allowNo": false,
3509
+ "type": "boolean"
3510
+ },
2407
3511
  "output": {
2408
3512
  "char": "o",
2409
3513
  "description": "Output format",
2410
3514
  "name": "output",
2411
3515
  "required": false,
2412
- "default": "table",
3516
+ "default": "summary",
2413
3517
  "hasDynamicHelp": false,
2414
3518
  "multiple": false,
2415
3519
  "options": [
2416
- "table",
3520
+ "summary",
2417
3521
  "json"
2418
3522
  ],
2419
3523
  "type": "option"
@@ -2421,7 +3525,7 @@
2421
3525
  },
2422
3526
  "hasDynamicHelp": false,
2423
3527
  "hiddenAliases": [],
2424
- "id": "run:sessions:list",
3528
+ "id": "run:sink:get",
2425
3529
  "pluginAlias": "@xano/cli",
2426
3530
  "pluginName": "@xano/cli",
2427
3531
  "pluginType": "core",
@@ -2431,24 +3535,25 @@
2431
3535
  "dist",
2432
3536
  "commands",
2433
3537
  "run",
2434
- "sessions",
2435
- "list",
3538
+ "sink",
3539
+ "get",
2436
3540
  "index.js"
2437
3541
  ]
2438
3542
  },
2439
- "run:sessions:start": {
3543
+ "static_host:build:create": {
2440
3544
  "aliases": [],
2441
3545
  "args": {
2442
- "sessionId": {
2443
- "description": "Session ID",
2444
- "name": "sessionId",
3546
+ "static_host": {
3547
+ "description": "Static Host name",
3548
+ "name": "static_host",
2445
3549
  "required": true
2446
3550
  }
2447
3551
  },
2448
- "description": "Start a session",
3552
+ "description": "Create a new build for a static host",
2449
3553
  "examples": [
2450
- "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2451
- "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
3554
+ "$ 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",
3555
+ "$ 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",
3556
+ "$ 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"
2452
3557
  ],
2453
3558
  "flags": {
2454
3559
  "profile": {
@@ -2461,6 +3566,42 @@
2461
3566
  "multiple": false,
2462
3567
  "type": "option"
2463
3568
  },
3569
+ "verbose": {
3570
+ "char": "v",
3571
+ "description": "Show detailed request/response information",
3572
+ "env": "XANO_VERBOSE",
3573
+ "name": "verbose",
3574
+ "required": false,
3575
+ "allowNo": false,
3576
+ "type": "boolean"
3577
+ },
3578
+ "description": {
3579
+ "char": "d",
3580
+ "description": "Build description",
3581
+ "name": "description",
3582
+ "required": false,
3583
+ "hasDynamicHelp": false,
3584
+ "multiple": false,
3585
+ "type": "option"
3586
+ },
3587
+ "file": {
3588
+ "char": "f",
3589
+ "description": "Path to zip file to upload",
3590
+ "name": "file",
3591
+ "required": true,
3592
+ "hasDynamicHelp": false,
3593
+ "multiple": false,
3594
+ "type": "option"
3595
+ },
3596
+ "name": {
3597
+ "char": "n",
3598
+ "description": "Build name",
3599
+ "name": "name",
3600
+ "required": true,
3601
+ "hasDynamicHelp": false,
3602
+ "multiple": false,
3603
+ "type": "option"
3604
+ },
2464
3605
  "output": {
2465
3606
  "char": "o",
2466
3607
  "description": "Output format",
@@ -2474,38 +3615,55 @@
2474
3615
  "json"
2475
3616
  ],
2476
3617
  "type": "option"
3618
+ },
3619
+ "workspace": {
3620
+ "char": "w",
3621
+ "description": "Workspace ID (optional if set in profile)",
3622
+ "name": "workspace",
3623
+ "required": false,
3624
+ "hasDynamicHelp": false,
3625
+ "multiple": false,
3626
+ "type": "option"
2477
3627
  }
2478
3628
  },
2479
3629
  "hasDynamicHelp": false,
2480
3630
  "hiddenAliases": [],
2481
- "id": "run:sessions:start",
3631
+ "id": "static_host:build:create",
2482
3632
  "pluginAlias": "@xano/cli",
2483
3633
  "pluginName": "@xano/cli",
2484
3634
  "pluginType": "core",
2485
3635
  "strict": true,
3636
+ "enableJsonFlag": false,
2486
3637
  "isESM": true,
2487
3638
  "relativePath": [
2488
3639
  "dist",
2489
3640
  "commands",
2490
- "run",
2491
- "sessions",
2492
- "start",
3641
+ "static_host",
3642
+ "build",
3643
+ "create",
2493
3644
  "index.js"
2494
3645
  ]
2495
3646
  },
2496
- "run:sessions:stop": {
3647
+ "static_host:build:get": {
2497
3648
  "aliases": [],
2498
3649
  "args": {
2499
- "sessionId": {
2500
- "description": "Session ID",
2501
- "name": "sessionId",
3650
+ "build_id": {
3651
+ "description": "Build ID",
3652
+ "name": "build_id",
3653
+ "required": true
3654
+ },
3655
+ "static_host": {
3656
+ "description": "Static Host name",
3657
+ "name": "static_host",
2502
3658
  "required": true
2503
3659
  }
2504
3660
  },
2505
- "description": "Stop a session",
3661
+ "description": "Get details of a specific build for a static host",
2506
3662
  "examples": [
2507
- "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
2508
- "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
3663
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3664
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3665
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
3666
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
2509
3667
  ],
2510
3668
  "flags": {
2511
3669
  "profile": {
@@ -2518,6 +3676,15 @@
2518
3676
  "multiple": false,
2519
3677
  "type": "option"
2520
3678
  },
3679
+ "verbose": {
3680
+ "char": "v",
3681
+ "description": "Show detailed request/response information",
3682
+ "env": "XANO_VERBOSE",
3683
+ "name": "verbose",
3684
+ "required": false,
3685
+ "allowNo": false,
3686
+ "type": "boolean"
3687
+ },
2521
3688
  "output": {
2522
3689
  "char": "o",
2523
3690
  "description": "Output format",
@@ -2531,26 +3698,36 @@
2531
3698
  "json"
2532
3699
  ],
2533
3700
  "type": "option"
3701
+ },
3702
+ "workspace": {
3703
+ "char": "w",
3704
+ "description": "Workspace ID (optional if set in profile)",
3705
+ "name": "workspace",
3706
+ "required": false,
3707
+ "hasDynamicHelp": false,
3708
+ "multiple": false,
3709
+ "type": "option"
2534
3710
  }
2535
3711
  },
2536
3712
  "hasDynamicHelp": false,
2537
3713
  "hiddenAliases": [],
2538
- "id": "run:sessions:stop",
3714
+ "id": "static_host:build:get",
2539
3715
  "pluginAlias": "@xano/cli",
2540
3716
  "pluginName": "@xano/cli",
2541
3717
  "pluginType": "core",
2542
3718
  "strict": true,
3719
+ "enableJsonFlag": false,
2543
3720
  "isESM": true,
2544
3721
  "relativePath": [
2545
3722
  "dist",
2546
3723
  "commands",
2547
- "run",
2548
- "sessions",
2549
- "stop",
3724
+ "static_host",
3725
+ "build",
3726
+ "get",
2550
3727
  "index.js"
2551
3728
  ]
2552
3729
  },
2553
- "static_host:build:create": {
3730
+ "static_host:build:list": {
2554
3731
  "aliases": [],
2555
3732
  "args": {
2556
3733
  "static_host": {
@@ -2559,11 +3736,12 @@
2559
3736
  "required": true
2560
3737
  }
2561
3738
  },
2562
- "description": "Create a new build for a static host",
3739
+ "description": "List all builds for a static host",
2563
3740
  "examples": [
2564
- "$ 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",
2565
- "$ 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",
2566
- "$ 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"
3741
+ "$ 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",
3742
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
3743
+ "$ 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",
3744
+ "$ 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"
2567
3745
  ],
2568
3746
  "flags": {
2569
3747
  "profile": {
@@ -2576,60 +3754,60 @@
2576
3754
  "multiple": false,
2577
3755
  "type": "option"
2578
3756
  },
2579
- "workspace": {
2580
- "char": "w",
2581
- "description": "Workspace ID (optional if set in profile)",
2582
- "name": "workspace",
3757
+ "verbose": {
3758
+ "char": "v",
3759
+ "description": "Show detailed request/response information",
3760
+ "env": "XANO_VERBOSE",
3761
+ "name": "verbose",
2583
3762
  "required": false,
2584
- "hasDynamicHelp": false,
2585
- "multiple": false,
2586
- "type": "option"
3763
+ "allowNo": false,
3764
+ "type": "boolean"
2587
3765
  },
2588
- "file": {
2589
- "char": "f",
2590
- "description": "Path to zip file to upload",
2591
- "name": "file",
2592
- "required": true,
3766
+ "output": {
3767
+ "char": "o",
3768
+ "description": "Output format",
3769
+ "name": "output",
3770
+ "required": false,
3771
+ "default": "summary",
2593
3772
  "hasDynamicHelp": false,
2594
3773
  "multiple": false,
3774
+ "options": [
3775
+ "summary",
3776
+ "json"
3777
+ ],
2595
3778
  "type": "option"
2596
3779
  },
2597
- "name": {
2598
- "char": "n",
2599
- "description": "Build name",
2600
- "name": "name",
2601
- "required": true,
3780
+ "page": {
3781
+ "description": "Page number for pagination",
3782
+ "name": "page",
3783
+ "required": false,
3784
+ "default": 1,
2602
3785
  "hasDynamicHelp": false,
2603
3786
  "multiple": false,
2604
3787
  "type": "option"
2605
3788
  },
2606
- "description": {
2607
- "char": "d",
2608
- "description": "Build description",
2609
- "name": "description",
3789
+ "per_page": {
3790
+ "description": "Number of results per page",
3791
+ "name": "per_page",
2610
3792
  "required": false,
3793
+ "default": 50,
2611
3794
  "hasDynamicHelp": false,
2612
3795
  "multiple": false,
2613
3796
  "type": "option"
2614
3797
  },
2615
- "output": {
2616
- "char": "o",
2617
- "description": "Output format",
2618
- "name": "output",
3798
+ "workspace": {
3799
+ "char": "w",
3800
+ "description": "Workspace ID (optional if set in profile)",
3801
+ "name": "workspace",
2619
3802
  "required": false,
2620
- "default": "summary",
2621
3803
  "hasDynamicHelp": false,
2622
3804
  "multiple": false,
2623
- "options": [
2624
- "summary",
2625
- "json"
2626
- ],
2627
3805
  "type": "option"
2628
3806
  }
2629
3807
  },
2630
3808
  "hasDynamicHelp": false,
2631
3809
  "hiddenAliases": [],
2632
- "id": "static_host:build:create",
3810
+ "id": "static_host:build:list",
2633
3811
  "pluginAlias": "@xano/cli",
2634
3812
  "pluginName": "@xano/cli",
2635
3813
  "pluginType": "core",
@@ -2641,10 +3819,10 @@
2641
3819
  "commands",
2642
3820
  "static_host",
2643
3821
  "build",
2644
- "create",
3822
+ "list",
2645
3823
  "index.js"
2646
3824
  ]
2647
3825
  }
2648
3826
  },
2649
- "version": "0.0.26"
3827
+ "version": "0.0.27"
2650
3828
  }