@xano/cli 0.0.25 → 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.
@@ -35,14 +35,16 @@
35
35
  "index.js"
36
36
  ]
37
37
  },
38
- "branch:create": {
38
+ "function:create": {
39
39
  "aliases": [],
40
40
  "args": {},
41
- "description": "Create a new branch by cloning from an existing branch",
41
+ "description": "Create a new function in a workspace",
42
42
  "examples": [
43
- "$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
44
- "$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
45
- "$ 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"
43
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
44
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
45
+ "$ xano function:create -w 40 -f function.xs --edit\n# Opens function.xs in $EDITOR, then creates function with edited content\nFunction created successfully!\nID: 123\nName: my_function\n",
46
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
47
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
46
48
  ],
47
49
  "flags": {
48
50
  "profile": {
@@ -64,33 +66,29 @@
64
66
  "allowNo": false,
65
67
  "type": "boolean"
66
68
  },
67
- "color": {
68
- "char": "c",
69
- "description": "Color hex code for the branch (e.g., \"#ebc346\")",
70
- "name": "color",
69
+ "edit": {
70
+ "char": "e",
71
+ "dependsOn": [
72
+ "file"
73
+ ],
74
+ "description": "Open file in editor before creating function (requires --file)",
75
+ "name": "edit",
71
76
  "required": false,
72
- "hasDynamicHelp": false,
73
- "multiple": false,
74
- "type": "option"
77
+ "allowNo": false,
78
+ "type": "boolean"
75
79
  },
76
- "description": {
77
- "char": "d",
78
- "description": "Description for the new branch",
79
- "name": "description",
80
+ "file": {
81
+ "char": "f",
82
+ "description": "Path to file containing XanoScript code",
83
+ "exclusive": [
84
+ "stdin"
85
+ ],
86
+ "name": "file",
80
87
  "required": false,
81
88
  "hasDynamicHelp": false,
82
89
  "multiple": false,
83
90
  "type": "option"
84
91
  },
85
- "label": {
86
- "char": "l",
87
- "description": "Label for the new branch",
88
- "name": "label",
89
- "required": true,
90
- "hasDynamicHelp": false,
91
- "multiple": false,
92
- "type": "option"
93
- },
94
92
  "output": {
95
93
  "char": "o",
96
94
  "description": "Output format",
@@ -105,19 +103,20 @@
105
103
  ],
106
104
  "type": "option"
107
105
  },
108
- "source": {
106
+ "stdin": {
109
107
  "char": "s",
110
- "description": "Source branch to clone from (defaults to \"v1\")",
111
- "name": "source",
108
+ "description": "Read XanoScript code from stdin",
109
+ "exclusive": [
110
+ "file"
111
+ ],
112
+ "name": "stdin",
112
113
  "required": false,
113
- "default": "v1",
114
- "hasDynamicHelp": false,
115
- "multiple": false,
116
- "type": "option"
114
+ "allowNo": false,
115
+ "type": "boolean"
117
116
  },
118
117
  "workspace": {
119
118
  "char": "w",
120
- "description": "Workspace ID (uses profile workspace if not provided)",
119
+ "description": "Workspace ID (optional if set in profile)",
121
120
  "name": "workspace",
122
121
  "required": false,
123
122
  "hasDynamicHelp": false,
@@ -127,7 +126,7 @@
127
126
  },
128
127
  "hasDynamicHelp": false,
129
128
  "hiddenAliases": [],
130
- "id": "branch:create",
129
+ "id": "function:create",
131
130
  "pluginAlias": "@xano/cli",
132
131
  "pluginName": "@xano/cli",
133
132
  "pluginType": "core",
@@ -137,25 +136,30 @@
137
136
  "relativePath": [
138
137
  "dist",
139
138
  "commands",
140
- "branch",
139
+ "function",
141
140
  "create",
142
141
  "index.js"
143
142
  ]
144
143
  },
145
- "branch:delete": {
144
+ "function:edit": {
146
145
  "aliases": [],
147
146
  "args": {
148
- "branch_label": {
149
- "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
150
- "name": "branch_label",
151
- "required": true
147
+ "function_id": {
148
+ "description": "Function ID to edit",
149
+ "name": "function_id",
150
+ "required": false
152
151
  }
153
152
  },
154
- "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
153
+ "description": "Edit a function in a workspace",
155
154
  "examples": [
156
- "$ 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",
157
- "$ xano branch delete dev --force\nDeleted branch: dev\n",
158
- "$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
155
+ "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
156
+ "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
157
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
158
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
159
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
160
+ "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
161
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
162
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
159
163
  ],
160
164
  "flags": {
161
165
  "profile": {
@@ -177,14 +181,26 @@
177
181
  "allowNo": false,
178
182
  "type": "boolean"
179
183
  },
180
- "force": {
181
- "char": "f",
182
- "description": "Skip confirmation prompt",
183
- "name": "force",
184
+ "edit": {
185
+ "char": "e",
186
+ "description": "Open file in editor before updating function (requires --file)",
187
+ "name": "edit",
184
188
  "required": false,
185
189
  "allowNo": false,
186
190
  "type": "boolean"
187
191
  },
192
+ "file": {
193
+ "char": "f",
194
+ "description": "Path to file containing XanoScript code",
195
+ "exclusive": [
196
+ "stdin"
197
+ ],
198
+ "name": "file",
199
+ "required": false,
200
+ "hasDynamicHelp": false,
201
+ "multiple": false,
202
+ "type": "option"
203
+ },
188
204
  "output": {
189
205
  "char": "o",
190
206
  "description": "Output format",
@@ -199,9 +215,27 @@
199
215
  ],
200
216
  "type": "option"
201
217
  },
218
+ "publish": {
219
+ "description": "Publish the function after editing",
220
+ "name": "publish",
221
+ "required": false,
222
+ "allowNo": false,
223
+ "type": "boolean"
224
+ },
225
+ "stdin": {
226
+ "char": "s",
227
+ "description": "Read XanoScript code from stdin",
228
+ "exclusive": [
229
+ "file"
230
+ ],
231
+ "name": "stdin",
232
+ "required": false,
233
+ "allowNo": false,
234
+ "type": "boolean"
235
+ },
202
236
  "workspace": {
203
237
  "char": "w",
204
- "description": "Workspace ID (uses profile workspace if not provided)",
238
+ "description": "Workspace ID (optional if set in profile)",
205
239
  "name": "workspace",
206
240
  "required": false,
207
241
  "hasDynamicHelp": false,
@@ -211,7 +245,7 @@
211
245
  },
212
246
  "hasDynamicHelp": false,
213
247
  "hiddenAliases": [],
214
- "id": "branch:delete",
248
+ "id": "function:edit",
215
249
  "pluginAlias": "@xano/cli",
216
250
  "pluginName": "@xano/cli",
217
251
  "pluginType": "core",
@@ -221,25 +255,28 @@
221
255
  "relativePath": [
222
256
  "dist",
223
257
  "commands",
224
- "branch",
225
- "delete",
258
+ "function",
259
+ "edit",
226
260
  "index.js"
227
261
  ]
228
262
  },
229
- "branch:edit": {
263
+ "function:get": {
230
264
  "aliases": [],
231
265
  "args": {
232
- "branch_label": {
233
- "description": "Branch label to edit (cannot edit \"v1\" label)",
234
- "name": "branch_label",
235
- "required": true
266
+ "function_id": {
267
+ "description": "Function ID",
268
+ "name": "function_id",
269
+ "required": false
236
270
  }
237
271
  },
238
- "description": "Update an existing branch (cannot update \"v1\" label)",
272
+ "description": "Get a specific function from a workspace",
239
273
  "examples": [
240
- "$ xano branch edit dev --label development\nUpdated branch: development\n",
241
- "$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
242
- "$ 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"
274
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
275
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
276
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
277
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
278
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
279
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
243
280
  ],
244
281
  "flags": {
245
282
  "profile": {
@@ -261,32 +298,19 @@
261
298
  "allowNo": false,
262
299
  "type": "boolean"
263
300
  },
264
- "color": {
265
- "char": "c",
266
- "description": "New color hex code for the branch (e.g., \"#ff5733\")",
267
- "name": "color",
268
- "required": false,
269
- "hasDynamicHelp": false,
270
- "multiple": false,
271
- "type": "option"
272
- },
273
- "description": {
274
- "char": "d",
275
- "description": "New description for the branch",
276
- "name": "description",
301
+ "include_draft": {
302
+ "description": "Include draft version",
303
+ "name": "include_draft",
277
304
  "required": false,
278
- "hasDynamicHelp": false,
279
- "multiple": false,
280
- "type": "option"
305
+ "allowNo": false,
306
+ "type": "boolean"
281
307
  },
282
- "label": {
283
- "char": "l",
284
- "description": "New label for the branch",
285
- "name": "label",
308
+ "include_xanoscript": {
309
+ "description": "Include XanoScript in response",
310
+ "name": "include_xanoscript",
286
311
  "required": false,
287
- "hasDynamicHelp": false,
288
- "multiple": false,
289
- "type": "option"
312
+ "allowNo": false,
313
+ "type": "boolean"
290
314
  },
291
315
  "output": {
292
316
  "char": "o",
@@ -298,13 +322,14 @@
298
322
  "multiple": false,
299
323
  "options": [
300
324
  "summary",
301
- "json"
325
+ "json",
326
+ "xs"
302
327
  ],
303
328
  "type": "option"
304
329
  },
305
330
  "workspace": {
306
331
  "char": "w",
307
- "description": "Workspace ID (uses profile workspace if not provided)",
332
+ "description": "Workspace ID (optional if set in profile)",
308
333
  "name": "workspace",
309
334
  "required": false,
310
335
  "hasDynamicHelp": false,
@@ -314,7 +339,7 @@
314
339
  },
315
340
  "hasDynamicHelp": false,
316
341
  "hiddenAliases": [],
317
- "id": "branch:edit",
342
+ "id": "function:get",
318
343
  "pluginAlias": "@xano/cli",
319
344
  "pluginName": "@xano/cli",
320
345
  "pluginType": "core",
@@ -324,25 +349,20 @@
324
349
  "relativePath": [
325
350
  "dist",
326
351
  "commands",
327
- "branch",
328
- "edit",
352
+ "function",
353
+ "get",
329
354
  "index.js"
330
355
  ]
331
356
  },
332
- "branch:get": {
357
+ "function:list": {
333
358
  "aliases": [],
334
- "args": {
335
- "branch_label": {
336
- "description": "Branch label (e.g., \"v1\", \"dev\")",
337
- "name": "branch_label",
338
- "required": true
339
- }
340
- },
341
- "description": "Get details for a specific branch",
359
+ "args": {},
360
+ "description": "List all functions in a workspace from the Xano Metadata API",
342
361
  "examples": [
343
- "$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
344
- "$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
345
- "$ 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"
362
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
363
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
364
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
365
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
346
366
  ],
347
367
  "flags": {
348
368
  "profile": {
@@ -364,6 +384,33 @@
364
384
  "allowNo": false,
365
385
  "type": "boolean"
366
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",
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",
406
+ "hasDynamicHelp": false,
407
+ "multiple": false,
408
+ "options": [
409
+ "asc",
410
+ "desc"
411
+ ],
412
+ "type": "option"
413
+ },
367
414
  "output": {
368
415
  "char": "o",
369
416
  "description": "Output format",
@@ -378,86 +425,46 @@
378
425
  ],
379
426
  "type": "option"
380
427
  },
381
- "workspace": {
382
- "char": "w",
383
- "description": "Workspace ID (uses profile workspace if not provided)",
384
- "name": "workspace",
428
+ "page": {
429
+ "description": "Page number for pagination",
430
+ "name": "page",
385
431
  "required": false,
432
+ "default": 1,
386
433
  "hasDynamicHelp": false,
387
434
  "multiple": false,
388
435
  "type": "option"
389
- }
390
- },
391
- "hasDynamicHelp": false,
392
- "hiddenAliases": [],
393
- "id": "branch:get",
394
- "pluginAlias": "@xano/cli",
395
- "pluginName": "@xano/cli",
396
- "pluginType": "core",
397
- "strict": true,
398
- "enableJsonFlag": false,
399
- "isESM": true,
400
- "relativePath": [
401
- "dist",
402
- "commands",
403
- "branch",
404
- "get",
405
- "index.js"
406
- ]
407
- },
408
- "branch:list": {
409
- "aliases": [],
410
- "args": {
411
- "workspace_id": {
412
- "description": "Workspace ID (uses profile workspace if not provided)",
413
- "name": "workspace_id",
414
- "required": false
415
- }
416
- },
417
- "description": "List all branches in a workspace",
418
- "examples": [
419
- "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
420
- "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
421
- "$ 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"
422
- ],
423
- "flags": {
424
- "profile": {
425
- "char": "p",
426
- "description": "Profile to use for this command",
427
- "env": "XANO_PROFILE",
428
- "name": "profile",
436
+ },
437
+ "per_page": {
438
+ "description": "Number of results per page",
439
+ "name": "per_page",
429
440
  "required": false,
441
+ "default": 50,
430
442
  "hasDynamicHelp": false,
431
443
  "multiple": false,
432
444
  "type": "option"
433
445
  },
434
- "verbose": {
435
- "char": "v",
436
- "description": "Show detailed request/response information",
437
- "env": "XANO_VERBOSE",
438
- "name": "verbose",
446
+ "sort": {
447
+ "description": "Sort field",
448
+ "name": "sort",
439
449
  "required": false,
440
- "allowNo": false,
441
- "type": "boolean"
450
+ "default": "created_at",
451
+ "hasDynamicHelp": false,
452
+ "multiple": false,
453
+ "type": "option"
442
454
  },
443
- "output": {
444
- "char": "o",
445
- "description": "Output format",
446
- "name": "output",
455
+ "workspace": {
456
+ "char": "w",
457
+ "description": "Workspace ID (optional if set in profile)",
458
+ "name": "workspace",
447
459
  "required": false,
448
- "default": "summary",
449
460
  "hasDynamicHelp": false,
450
461
  "multiple": false,
451
- "options": [
452
- "summary",
453
- "json"
454
- ],
455
462
  "type": "option"
456
463
  }
457
464
  },
458
465
  "hasDynamicHelp": false,
459
466
  "hiddenAliases": [],
460
- "id": "branch:list",
467
+ "id": "function:list",
461
468
  "pluginAlias": "@xano/cli",
462
469
  "pluginName": "@xano/cli",
463
470
  "pluginType": "core",
@@ -467,21 +474,25 @@
467
474
  "relativePath": [
468
475
  "dist",
469
476
  "commands",
470
- "branch",
477
+ "function",
471
478
  "list",
472
479
  "index.js"
473
480
  ]
474
481
  },
475
- "function:create": {
482
+ "branch:delete": {
476
483
  "aliases": [],
477
- "args": {},
478
- "description": "Create a new function in a workspace",
484
+ "args": {
485
+ "branch_label": {
486
+ "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
487
+ "name": "branch_label",
488
+ "required": true
489
+ }
490
+ },
491
+ "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
479
492
  "examples": [
480
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
481
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
482
- "$ xano function:create -w 40 -f function.xs --edit\n# Opens function.xs in $EDITOR, then creates function with edited content\nFunction created successfully!\nID: 123\nName: my_function\n",
483
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
484
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\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"
485
496
  ],
486
497
  "flags": {
487
498
  "profile": {
@@ -503,29 +514,14 @@
503
514
  "allowNo": false,
504
515
  "type": "boolean"
505
516
  },
506
- "edit": {
507
- "char": "e",
508
- "dependsOn": [
509
- "file"
510
- ],
511
- "description": "Open file in editor before creating function (requires --file)",
512
- "name": "edit",
517
+ "force": {
518
+ "char": "f",
519
+ "description": "Skip confirmation prompt",
520
+ "name": "force",
513
521
  "required": false,
514
522
  "allowNo": false,
515
523
  "type": "boolean"
516
524
  },
517
- "file": {
518
- "char": "f",
519
- "description": "Path to file containing XanoScript code",
520
- "exclusive": [
521
- "stdin"
522
- ],
523
- "name": "file",
524
- "required": false,
525
- "hasDynamicHelp": false,
526
- "multiple": false,
527
- "type": "option"
528
- },
529
525
  "output": {
530
526
  "char": "o",
531
527
  "description": "Output format",
@@ -540,20 +536,9 @@
540
536
  ],
541
537
  "type": "option"
542
538
  },
543
- "stdin": {
544
- "char": "s",
545
- "description": "Read XanoScript code from stdin",
546
- "exclusive": [
547
- "file"
548
- ],
549
- "name": "stdin",
550
- "required": false,
551
- "allowNo": false,
552
- "type": "boolean"
553
- },
554
539
  "workspace": {
555
540
  "char": "w",
556
- "description": "Workspace ID (optional if set in profile)",
541
+ "description": "Workspace ID (uses profile workspace if not provided)",
557
542
  "name": "workspace",
558
543
  "required": false,
559
544
  "hasDynamicHelp": false,
@@ -563,7 +548,7 @@
563
548
  },
564
549
  "hasDynamicHelp": false,
565
550
  "hiddenAliases": [],
566
- "id": "function:create",
551
+ "id": "branch:delete",
567
552
  "pluginAlias": "@xano/cli",
568
553
  "pluginName": "@xano/cli",
569
554
  "pluginType": "core",
@@ -573,30 +558,25 @@
573
558
  "relativePath": [
574
559
  "dist",
575
560
  "commands",
576
- "function",
577
- "create",
561
+ "branch",
562
+ "delete",
578
563
  "index.js"
579
564
  ]
580
565
  },
581
- "function:edit": {
566
+ "branch:edit": {
582
567
  "aliases": [],
583
568
  "args": {
584
- "function_id": {
585
- "description": "Function ID to edit",
586
- "name": "function_id",
587
- "required": false
569
+ "branch_label": {
570
+ "description": "Branch label to edit (cannot edit \"v1\" label)",
571
+ "name": "branch_label",
572
+ "required": true
588
573
  }
589
574
  },
590
- "description": "Edit a function in a workspace",
575
+ "description": "Update an existing branch (cannot update \"v1\" label)",
591
576
  "examples": [
592
- "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
593
- "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
594
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
595
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
596
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
597
- "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
598
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
599
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\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"
600
580
  ],
601
581
  "flags": {
602
582
  "profile": {
@@ -618,21 +598,28 @@
618
598
  "allowNo": false,
619
599
  "type": "boolean"
620
600
  },
621
- "edit": {
622
- "char": "e",
623
- "description": "Open file in editor before updating function (requires --file)",
624
- "name": "edit",
601
+ "color": {
602
+ "char": "c",
603
+ "description": "New color hex code for the branch (e.g., \"#ff5733\")",
604
+ "name": "color",
625
605
  "required": false,
626
- "allowNo": false,
627
- "type": "boolean"
606
+ "hasDynamicHelp": false,
607
+ "multiple": false,
608
+ "type": "option"
628
609
  },
629
- "file": {
630
- "char": "f",
631
- "description": "Path to file containing XanoScript code",
632
- "exclusive": [
633
- "stdin"
634
- ],
635
- "name": "file",
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",
636
623
  "required": false,
637
624
  "hasDynamicHelp": false,
638
625
  "multiple": false,
@@ -652,27 +639,9 @@
652
639
  ],
653
640
  "type": "option"
654
641
  },
655
- "publish": {
656
- "description": "Publish the function after editing",
657
- "name": "publish",
658
- "required": false,
659
- "allowNo": false,
660
- "type": "boolean"
661
- },
662
- "stdin": {
663
- "char": "s",
664
- "description": "Read XanoScript code from stdin",
665
- "exclusive": [
666
- "file"
667
- ],
668
- "name": "stdin",
669
- "required": false,
670
- "allowNo": false,
671
- "type": "boolean"
672
- },
673
642
  "workspace": {
674
643
  "char": "w",
675
- "description": "Workspace ID (optional if set in profile)",
644
+ "description": "Workspace ID (uses profile workspace if not provided)",
676
645
  "name": "workspace",
677
646
  "required": false,
678
647
  "hasDynamicHelp": false,
@@ -682,7 +651,7 @@
682
651
  },
683
652
  "hasDynamicHelp": false,
684
653
  "hiddenAliases": [],
685
- "id": "function:edit",
654
+ "id": "branch:edit",
686
655
  "pluginAlias": "@xano/cli",
687
656
  "pluginName": "@xano/cli",
688
657
  "pluginType": "core",
@@ -692,25 +661,25 @@
692
661
  "relativePath": [
693
662
  "dist",
694
663
  "commands",
695
- "function",
664
+ "branch",
696
665
  "edit",
697
666
  "index.js"
698
667
  ]
699
668
  },
700
- "branch:set-live": {
669
+ "branch:get": {
701
670
  "aliases": [],
702
671
  "args": {
703
672
  "branch_label": {
704
- "description": "Branch label to set as live (use \"v1\" for default branch)",
673
+ "description": "Branch label (e.g., \"v1\", \"dev\")",
705
674
  "name": "branch_label",
706
675
  "required": true
707
676
  }
708
677
  },
709
- "description": "Set a branch as the live (active) branch for API requests",
678
+ "description": "Get details for a specific branch",
710
679
  "examples": [
711
- "$ 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",
712
- "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
713
- "$ 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"
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"
714
683
  ],
715
684
  "flags": {
716
685
  "profile": {
@@ -732,14 +701,6 @@
732
701
  "allowNo": false,
733
702
  "type": "boolean"
734
703
  },
735
- "force": {
736
- "char": "f",
737
- "description": "Skip confirmation prompt",
738
- "name": "force",
739
- "required": false,
740
- "allowNo": false,
741
- "type": "boolean"
742
- },
743
704
  "output": {
744
705
  "char": "o",
745
706
  "description": "Output format",
@@ -766,7 +727,7 @@
766
727
  },
767
728
  "hasDynamicHelp": false,
768
729
  "hiddenAliases": [],
769
- "id": "branch:set-live",
730
+ "id": "branch:get",
770
731
  "pluginAlias": "@xano/cli",
771
732
  "pluginName": "@xano/cli",
772
733
  "pluginType": "core",
@@ -777,19 +738,18 @@
777
738
  "dist",
778
739
  "commands",
779
740
  "branch",
780
- "set-live",
741
+ "get",
781
742
  "index.js"
782
743
  ]
783
744
  },
784
- "function:list": {
745
+ "branch:create": {
785
746
  "aliases": [],
786
747
  "args": {},
787
- "description": "List all functions in a workspace from the Xano Metadata API",
748
+ "description": "Create a new branch by cloning from an existing branch",
788
749
  "examples": [
789
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
790
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
791
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
792
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\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"
793
753
  ],
794
754
  "flags": {
795
755
  "profile": {
@@ -811,31 +771,31 @@
811
771
  "allowNo": false,
812
772
  "type": "boolean"
813
773
  },
814
- "include_draft": {
815
- "description": "Include draft functions",
816
- "name": "include_draft",
774
+ "color": {
775
+ "char": "c",
776
+ "description": "Color hex code for the branch (e.g., \"#ebc346\")",
777
+ "name": "color",
817
778
  "required": false,
818
- "allowNo": false,
819
- "type": "boolean"
779
+ "hasDynamicHelp": false,
780
+ "multiple": false,
781
+ "type": "option"
820
782
  },
821
- "include_xanoscript": {
822
- "description": "Include XanoScript in response",
823
- "name": "include_xanoscript",
783
+ "description": {
784
+ "char": "d",
785
+ "description": "Description for the new branch",
786
+ "name": "description",
824
787
  "required": false,
825
- "allowNo": false,
826
- "type": "boolean"
788
+ "hasDynamicHelp": false,
789
+ "multiple": false,
790
+ "type": "option"
827
791
  },
828
- "order": {
829
- "description": "Sort order",
830
- "name": "order",
831
- "required": false,
832
- "default": "desc",
792
+ "label": {
793
+ "char": "l",
794
+ "description": "Label for the new branch",
795
+ "name": "label",
796
+ "required": true,
833
797
  "hasDynamicHelp": false,
834
798
  "multiple": false,
835
- "options": [
836
- "asc",
837
- "desc"
838
- ],
839
799
  "type": "option"
840
800
  },
841
801
  "output": {
@@ -852,36 +812,19 @@
852
812
  ],
853
813
  "type": "option"
854
814
  },
855
- "page": {
856
- "description": "Page number for pagination",
857
- "name": "page",
858
- "required": false,
859
- "default": 1,
860
- "hasDynamicHelp": false,
861
- "multiple": false,
862
- "type": "option"
863
- },
864
- "per_page": {
865
- "description": "Number of results per page",
866
- "name": "per_page",
867
- "required": false,
868
- "default": 50,
869
- "hasDynamicHelp": false,
870
- "multiple": false,
871
- "type": "option"
872
- },
873
- "sort": {
874
- "description": "Sort field",
875
- "name": "sort",
815
+ "source": {
816
+ "char": "s",
817
+ "description": "Source branch to clone from (defaults to \"v1\")",
818
+ "name": "source",
876
819
  "required": false,
877
- "default": "created_at",
820
+ "default": "v1",
878
821
  "hasDynamicHelp": false,
879
822
  "multiple": false,
880
823
  "type": "option"
881
824
  },
882
825
  "workspace": {
883
826
  "char": "w",
884
- "description": "Workspace ID (optional if set in profile)",
827
+ "description": "Workspace ID (uses profile workspace if not provided)",
885
828
  "name": "workspace",
886
829
  "required": false,
887
830
  "hasDynamicHelp": false,
@@ -891,7 +834,7 @@
891
834
  },
892
835
  "hasDynamicHelp": false,
893
836
  "hiddenAliases": [],
894
- "id": "function:list",
837
+ "id": "branch:create",
895
838
  "pluginAlias": "@xano/cli",
896
839
  "pluginName": "@xano/cli",
897
840
  "pluginType": "core",
@@ -901,28 +844,25 @@
901
844
  "relativePath": [
902
845
  "dist",
903
846
  "commands",
904
- "function",
905
- "list",
847
+ "branch",
848
+ "create",
906
849
  "index.js"
907
850
  ]
908
851
  },
909
- "function:get": {
852
+ "branch:list": {
910
853
  "aliases": [],
911
854
  "args": {
912
- "function_id": {
913
- "description": "Function ID",
914
- "name": "function_id",
855
+ "workspace_id": {
856
+ "description": "Workspace ID (uses profile workspace if not provided)",
857
+ "name": "workspace_id",
915
858
  "required": false
916
859
  }
917
860
  },
918
- "description": "Get a specific function from a workspace",
861
+ "description": "List all branches in a workspace",
919
862
  "examples": [
920
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
921
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
922
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
923
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
924
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
925
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\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"
926
866
  ],
927
867
  "flags": {
928
868
  "profile": {
@@ -944,20 +884,6 @@
944
884
  "allowNo": false,
945
885
  "type": "boolean"
946
886
  },
947
- "include_draft": {
948
- "description": "Include draft version",
949
- "name": "include_draft",
950
- "required": false,
951
- "allowNo": false,
952
- "type": "boolean"
953
- },
954
- "include_xanoscript": {
955
- "description": "Include XanoScript in response",
956
- "name": "include_xanoscript",
957
- "required": false,
958
- "allowNo": false,
959
- "type": "boolean"
960
- },
961
887
  "output": {
962
888
  "char": "o",
963
889
  "description": "Output format",
@@ -968,24 +894,14 @@
968
894
  "multiple": false,
969
895
  "options": [
970
896
  "summary",
971
- "json",
972
- "xs"
897
+ "json"
973
898
  ],
974
899
  "type": "option"
975
- },
976
- "workspace": {
977
- "char": "w",
978
- "description": "Workspace ID (optional if set in profile)",
979
- "name": "workspace",
980
- "required": false,
981
- "hasDynamicHelp": false,
982
- "multiple": false,
983
- "type": "option"
984
900
  }
985
901
  },
986
902
  "hasDynamicHelp": false,
987
903
  "hiddenAliases": [],
988
- "id": "function:get",
904
+ "id": "branch:list",
989
905
  "pluginAlias": "@xano/cli",
990
906
  "pluginName": "@xano/cli",
991
907
  "pluginType": "core",
@@ -995,137 +911,131 @@
995
911
  "relativePath": [
996
912
  "dist",
997
913
  "commands",
998
- "function",
999
- "get",
914
+ "branch",
915
+ "list",
1000
916
  "index.js"
1001
917
  ]
1002
918
  },
1003
- "run:exec": {
919
+ "profile:create": {
1004
920
  "aliases": [],
1005
921
  "args": {
1006
- "path": {
1007
- "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
1008
- "name": "path",
1009
- "required": false
922
+ "name": {
923
+ "description": "Profile name",
924
+ "name": "name",
925
+ "required": true
1010
926
  }
1011
927
  },
1012
- "description": "Execute XanoScript code (job or service)",
928
+ "description": "Create a new profile configuration",
1013
929
  "examples": [
1014
- "$ xano run exec script.xs\nExecuted successfully!\n...\n",
1015
- "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
1016
- "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
1017
- "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
1018
- "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
1019
- "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
1020
- "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\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"
1021
935
  ],
1022
936
  "flags": {
1023
- "profile": {
1024
- "char": "p",
1025
- "description": "Profile to use for this command",
1026
- "env": "XANO_PROFILE",
1027
- "name": "profile",
1028
- "required": false,
937
+ "access_token": {
938
+ "char": "t",
939
+ "description": "Access token for the Xano Metadata API",
940
+ "name": "access_token",
941
+ "required": true,
1029
942
  "hasDynamicHelp": false,
1030
943
  "multiple": false,
1031
944
  "type": "option"
1032
945
  },
1033
- "verbose": {
1034
- "char": "v",
1035
- "description": "Show detailed request/response information",
1036
- "env": "XANO_VERBOSE",
1037
- "name": "verbose",
946
+ "account_origin": {
947
+ "char": "a",
948
+ "description": "Account origin URL. Optional for self hosted installs.",
949
+ "name": "account_origin",
1038
950
  "required": false,
1039
- "allowNo": false,
1040
- "type": "boolean"
951
+ "hasDynamicHelp": false,
952
+ "multiple": false,
953
+ "type": "option"
1041
954
  },
1042
- "args": {
1043
- "char": "a",
1044
- "description": "Path or URL to JSON file containing input arguments",
1045
- "name": "args",
955
+ "branch": {
956
+ "char": "b",
957
+ "description": "Branch name",
958
+ "name": "branch",
1046
959
  "required": false,
1047
960
  "hasDynamicHelp": false,
1048
961
  "multiple": false,
1049
962
  "type": "option"
1050
963
  },
1051
- "edit": {
1052
- "char": "e",
1053
- "description": "Open file in editor before running (requires path argument or --file)",
1054
- "name": "edit",
964
+ "default": {
965
+ "description": "Set this profile as the default",
966
+ "name": "default",
1055
967
  "required": false,
1056
968
  "allowNo": false,
1057
969
  "type": "boolean"
1058
970
  },
1059
- "env": {
1060
- "description": "Environment variable override (key=value)",
1061
- "name": "env",
1062
- "required": false,
971
+ "instance_origin": {
972
+ "char": "i",
973
+ "description": "Instance origin URL",
974
+ "name": "instance_origin",
975
+ "required": true,
1063
976
  "hasDynamicHelp": false,
1064
- "multiple": true,
977
+ "multiple": false,
1065
978
  "type": "option"
1066
979
  },
1067
- "file": {
1068
- "char": "f",
1069
- "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
1070
- "exclusive": [
1071
- "stdin"
1072
- ],
1073
- "name": "file",
980
+ "project": {
981
+ "char": "j",
982
+ "description": "Project name",
983
+ "name": "project",
1074
984
  "required": false,
1075
985
  "hasDynamicHelp": false,
1076
986
  "multiple": false,
1077
987
  "type": "option"
1078
988
  },
1079
- "output": {
1080
- "char": "o",
1081
- "description": "Output format",
1082
- "name": "output",
989
+ "run_base_url": {
990
+ "char": "r",
991
+ "description": "Xano Run API base URL (default: https://app.xano.com/)",
992
+ "name": "run_base_url",
1083
993
  "required": false,
1084
- "default": "summary",
1085
994
  "hasDynamicHelp": false,
1086
995
  "multiple": false,
1087
- "options": [
1088
- "summary",
1089
- "json"
1090
- ],
1091
996
  "type": "option"
1092
997
  },
1093
- "stdin": {
1094
- "char": "s",
1095
- "description": "Read XanoScript code from stdin",
1096
- "exclusive": [
1097
- "file"
1098
- ],
1099
- "name": "stdin",
998
+ "workspace": {
999
+ "char": "w",
1000
+ "description": "Workspace name",
1001
+ "name": "workspace",
1100
1002
  "required": false,
1101
- "allowNo": false,
1102
- "type": "boolean"
1003
+ "hasDynamicHelp": false,
1004
+ "multiple": false,
1005
+ "type": "option"
1103
1006
  }
1104
1007
  },
1105
1008
  "hasDynamicHelp": false,
1106
1009
  "hiddenAliases": [],
1107
- "id": "run:exec",
1010
+ "id": "profile:create",
1108
1011
  "pluginAlias": "@xano/cli",
1109
1012
  "pluginName": "@xano/cli",
1110
1013
  "pluginType": "core",
1111
1014
  "strict": true,
1015
+ "enableJsonFlag": false,
1112
1016
  "isESM": true,
1113
1017
  "relativePath": [
1114
1018
  "dist",
1115
1019
  "commands",
1116
- "run",
1117
- "exec",
1020
+ "profile",
1021
+ "create",
1118
1022
  "index.js"
1119
1023
  ]
1120
1024
  },
1121
- "run:info": {
1025
+ "branch:set-live": {
1122
1026
  "aliases": [],
1123
- "args": {},
1124
- "description": "Get information about a XanoScript document (type, inputs, env vars)",
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",
1125
1035
  "examples": [
1126
- "$ 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",
1127
- "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1128
- "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\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"
1129
1039
  ],
1130
1040
  "flags": {
1131
1041
  "profile": {
@@ -1147,86 +1057,10 @@
1147
1057
  "allowNo": false,
1148
1058
  "type": "boolean"
1149
1059
  },
1150
- "file": {
1060
+ "force": {
1151
1061
  "char": "f",
1152
- "description": "Path or URL to file containing XanoScript code",
1153
- "exclusive": [
1154
- "stdin"
1155
- ],
1156
- "name": "file",
1157
- "required": false,
1158
- "hasDynamicHelp": false,
1159
- "multiple": false,
1160
- "type": "option"
1161
- },
1162
- "output": {
1163
- "char": "o",
1164
- "description": "Output format",
1165
- "name": "output",
1166
- "required": false,
1167
- "default": "summary",
1168
- "hasDynamicHelp": false,
1169
- "multiple": false,
1170
- "options": [
1171
- "summary",
1172
- "json"
1173
- ],
1174
- "type": "option"
1175
- },
1176
- "stdin": {
1177
- "char": "s",
1178
- "description": "Read XanoScript code from stdin",
1179
- "exclusive": [
1180
- "file"
1181
- ],
1182
- "name": "stdin",
1183
- "required": false,
1184
- "allowNo": false,
1185
- "type": "boolean"
1186
- }
1187
- },
1188
- "hasDynamicHelp": false,
1189
- "hiddenAliases": [],
1190
- "id": "run:info",
1191
- "pluginAlias": "@xano/cli",
1192
- "pluginName": "@xano/cli",
1193
- "pluginType": "core",
1194
- "strict": true,
1195
- "isESM": true,
1196
- "relativePath": [
1197
- "dist",
1198
- "commands",
1199
- "run",
1200
- "info",
1201
- "index.js"
1202
- ]
1203
- },
1204
- "static_host:list": {
1205
- "aliases": [],
1206
- "args": {},
1207
- "description": "List all static hosts in a workspace from the Xano Metadata API",
1208
- "examples": [
1209
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1210
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1211
- "$ 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",
1212
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1213
- ],
1214
- "flags": {
1215
- "profile": {
1216
- "char": "p",
1217
- "description": "Profile to use for this command",
1218
- "env": "XANO_PROFILE",
1219
- "name": "profile",
1220
- "required": false,
1221
- "hasDynamicHelp": false,
1222
- "multiple": false,
1223
- "type": "option"
1224
- },
1225
- "verbose": {
1226
- "char": "v",
1227
- "description": "Show detailed request/response information",
1228
- "env": "XANO_VERBOSE",
1229
- "name": "verbose",
1062
+ "description": "Skip confirmation prompt",
1063
+ "name": "force",
1230
1064
  "required": false,
1231
1065
  "allowNo": false,
1232
1066
  "type": "boolean"
@@ -1245,27 +1079,9 @@
1245
1079
  ],
1246
1080
  "type": "option"
1247
1081
  },
1248
- "page": {
1249
- "description": "Page number for pagination",
1250
- "name": "page",
1251
- "required": false,
1252
- "default": 1,
1253
- "hasDynamicHelp": false,
1254
- "multiple": false,
1255
- "type": "option"
1256
- },
1257
- "per_page": {
1258
- "description": "Number of results per page",
1259
- "name": "per_page",
1260
- "required": false,
1261
- "default": 50,
1262
- "hasDynamicHelp": false,
1263
- "multiple": false,
1264
- "type": "option"
1265
- },
1266
1082
  "workspace": {
1267
1083
  "char": "w",
1268
- "description": "Workspace ID (optional if set in profile)",
1084
+ "description": "Workspace ID (uses profile workspace if not provided)",
1269
1085
  "name": "workspace",
1270
1086
  "required": false,
1271
1087
  "hasDynamicHelp": false,
@@ -1275,7 +1091,7 @@
1275
1091
  },
1276
1092
  "hasDynamicHelp": false,
1277
1093
  "hiddenAliases": [],
1278
- "id": "static_host:list",
1094
+ "id": "branch:set-live",
1279
1095
  "pluginAlias": "@xano/cli",
1280
1096
  "pluginName": "@xano/cli",
1281
1097
  "pluginType": "core",
@@ -1285,103 +1101,39 @@
1285
1101
  "relativePath": [
1286
1102
  "dist",
1287
1103
  "commands",
1288
- "static_host",
1289
- "list",
1104
+ "branch",
1105
+ "set-live",
1290
1106
  "index.js"
1291
1107
  ]
1292
1108
  },
1293
- "profile:create": {
1109
+ "profile:delete": {
1294
1110
  "aliases": [],
1295
1111
  "args": {
1296
1112
  "name": {
1297
- "description": "Profile name",
1113
+ "description": "Profile name to delete",
1298
1114
  "name": "name",
1299
1115
  "required": true
1300
1116
  }
1301
1117
  },
1302
- "description": "Create a new profile configuration",
1118
+ "description": "Delete a profile configuration",
1303
1119
  "examples": [
1304
- "$ 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",
1305
- "$ 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",
1306
- "$ 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",
1307
- "$ 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",
1308
- "$ 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"
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"
1309
1123
  ],
1310
1124
  "flags": {
1311
- "access_token": {
1312
- "char": "t",
1313
- "description": "Access token for the Xano Metadata API",
1314
- "name": "access_token",
1315
- "required": true,
1316
- "hasDynamicHelp": false,
1317
- "multiple": false,
1318
- "type": "option"
1319
- },
1320
- "account_origin": {
1321
- "char": "a",
1322
- "description": "Account origin URL. Optional for self hosted installs.",
1323
- "name": "account_origin",
1324
- "required": false,
1325
- "hasDynamicHelp": false,
1326
- "multiple": false,
1327
- "type": "option"
1328
- },
1329
- "branch": {
1330
- "char": "b",
1331
- "description": "Branch name",
1332
- "name": "branch",
1333
- "required": false,
1334
- "hasDynamicHelp": false,
1335
- "multiple": false,
1336
- "type": "option"
1337
- },
1338
- "default": {
1339
- "description": "Set this profile as the default",
1340
- "name": "default",
1125
+ "force": {
1126
+ "char": "f",
1127
+ "description": "Skip confirmation prompt",
1128
+ "name": "force",
1341
1129
  "required": false,
1342
1130
  "allowNo": false,
1343
1131
  "type": "boolean"
1344
- },
1345
- "instance_origin": {
1346
- "char": "i",
1347
- "description": "Instance origin URL",
1348
- "name": "instance_origin",
1349
- "required": true,
1350
- "hasDynamicHelp": false,
1351
- "multiple": false,
1352
- "type": "option"
1353
- },
1354
- "project": {
1355
- "char": "j",
1356
- "description": "Project name",
1357
- "name": "project",
1358
- "required": false,
1359
- "hasDynamicHelp": false,
1360
- "multiple": false,
1361
- "type": "option"
1362
- },
1363
- "run_base_url": {
1364
- "char": "r",
1365
- "description": "Xano Run API base URL (default: https://app.xano.com/)",
1366
- "name": "run_base_url",
1367
- "required": false,
1368
- "hasDynamicHelp": false,
1369
- "multiple": false,
1370
- "type": "option"
1371
- },
1372
- "workspace": {
1373
- "char": "w",
1374
- "description": "Workspace name",
1375
- "name": "workspace",
1376
- "required": false,
1377
- "hasDynamicHelp": false,
1378
- "multiple": false,
1379
- "type": "option"
1380
1132
  }
1381
1133
  },
1382
1134
  "hasDynamicHelp": false,
1383
1135
  "hiddenAliases": [],
1384
- "id": "profile:create",
1136
+ "id": "profile:delete",
1385
1137
  "pluginAlias": "@xano/cli",
1386
1138
  "pluginName": "@xano/cli",
1387
1139
  "pluginType": "core",
@@ -1392,7 +1144,7 @@
1392
1144
  "dist",
1393
1145
  "commands",
1394
1146
  "profile",
1395
- "create",
1147
+ "delete",
1396
1148
  "index.js"
1397
1149
  ]
1398
1150
  },
@@ -1570,34 +1322,218 @@
1570
1322
  "index.js"
1571
1323
  ]
1572
1324
  },
1573
- "profile:delete": {
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": {
1574
1449
  "aliases": [],
1575
1450
  "args": {
1576
1451
  "name": {
1577
- "description": "Profile name to delete",
1452
+ "description": "Profile name to set as default",
1578
1453
  "name": "name",
1579
1454
  "required": true
1580
1455
  }
1581
1456
  },
1582
- "description": "Delete a profile configuration",
1457
+ "description": "Set the default profile",
1583
1458
  "examples": [
1584
- "$ 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",
1585
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
1586
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
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"
1587
1512
  ],
1588
1513
  "flags": {
1589
- "force": {
1590
- "char": "f",
1591
- "description": "Skip confirmation prompt",
1592
- "name": "force",
1514
+ "name": {
1515
+ "char": "n",
1516
+ "description": "Profile name (skip prompt if provided)",
1517
+ "name": "name",
1593
1518
  "required": false,
1594
- "allowNo": false,
1595
- "type": "boolean"
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"
1596
1532
  }
1597
1533
  },
1598
1534
  "hasDynamicHelp": false,
1599
1535
  "hiddenAliases": [],
1600
- "id": "profile:delete",
1536
+ "id": "profile:wizard",
1601
1537
  "pluginAlias": "@xano/cli",
1602
1538
  "pluginName": "@xano/cli",
1603
1539
  "pluginType": "core",
@@ -1608,24 +1544,107 @@
1608
1544
  "dist",
1609
1545
  "commands",
1610
1546
  "profile",
1611
- "delete",
1547
+ "wizard",
1612
1548
  "index.js"
1613
1549
  ]
1614
1550
  },
1615
- "profile:list": {
1551
+ "run:exec": {
1616
1552
  "aliases": [],
1617
- "args": {},
1618
- "description": "List all available profile configurations",
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)",
1619
1561
  "examples": [
1620
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1621
- "$ 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",
1622
- "$ 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"
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"
1623
1569
  ],
1624
1570
  "flags": {
1625
- "details": {
1626
- "char": "d",
1627
- "description": "Show detailed information for each profile",
1628
- "name": "details",
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",
1629
1648
  "required": false,
1630
1649
  "allowNo": false,
1631
1650
  "type": "boolean"
@@ -1633,29 +1652,28 @@
1633
1652
  },
1634
1653
  "hasDynamicHelp": false,
1635
1654
  "hiddenAliases": [],
1636
- "id": "profile:list",
1655
+ "id": "run:exec",
1637
1656
  "pluginAlias": "@xano/cli",
1638
1657
  "pluginName": "@xano/cli",
1639
1658
  "pluginType": "core",
1640
1659
  "strict": true,
1641
- "enableJsonFlag": false,
1642
1660
  "isESM": true,
1643
1661
  "relativePath": [
1644
1662
  "dist",
1645
1663
  "commands",
1646
- "profile",
1647
- "list",
1664
+ "run",
1665
+ "exec",
1648
1666
  "index.js"
1649
1667
  ]
1650
1668
  },
1651
- "profile:me": {
1669
+ "run:info": {
1652
1670
  "aliases": [],
1653
1671
  "args": {},
1654
- "description": "Get information about the currently authenticated user",
1672
+ "description": "Get information about a XanoScript document (type, inputs, env vars)",
1655
1673
  "examples": [
1656
- "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1657
- "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1658
- "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\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"
1659
1677
  ],
1660
1678
  "flags": {
1661
1679
  "profile": {
@@ -1677,6 +1695,18 @@
1677
1695
  "allowNo": false,
1678
1696
  "type": "boolean"
1679
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
+ },
1680
1710
  "output": {
1681
1711
  "char": "o",
1682
1712
  "description": "Output format",
@@ -1690,106 +1720,102 @@
1690
1720
  "json"
1691
1721
  ],
1692
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"
1693
1734
  }
1694
1735
  },
1695
1736
  "hasDynamicHelp": false,
1696
1737
  "hiddenAliases": [],
1697
- "id": "profile:me",
1698
- "pluginAlias": "@xano/cli",
1699
- "pluginName": "@xano/cli",
1700
- "pluginType": "core",
1701
- "strict": true,
1702
- "enableJsonFlag": false,
1703
- "isESM": true,
1704
- "relativePath": [
1705
- "dist",
1706
- "commands",
1707
- "profile",
1708
- "me",
1709
- "index.js"
1710
- ]
1711
- },
1712
- "profile:set-default": {
1713
- "aliases": [],
1714
- "args": {
1715
- "name": {
1716
- "description": "Profile name to set as default",
1717
- "name": "name",
1718
- "required": true
1719
- }
1720
- },
1721
- "description": "Set the default profile",
1722
- "examples": [
1723
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
1724
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
1725
- ],
1726
- "flags": {},
1727
- "hasDynamicHelp": false,
1728
- "hiddenAliases": [],
1729
- "id": "profile:set-default",
1730
- "pluginAlias": "@xano/cli",
1731
- "pluginName": "@xano/cli",
1732
- "pluginType": "core",
1733
- "strict": true,
1734
- "enableJsonFlag": false,
1735
- "isESM": true,
1736
- "relativePath": [
1737
- "dist",
1738
- "commands",
1739
- "profile",
1740
- "set-default",
1741
- "index.js"
1742
- ]
1743
- },
1744
- "profile:token": {
1745
- "aliases": [],
1746
- "args": {},
1747
- "description": "Print the access token for the default profile",
1748
- "examples": [
1749
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
1750
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1751
- ],
1752
- "flags": {},
1753
- "hasDynamicHelp": false,
1754
- "hiddenAliases": [],
1755
- "id": "profile:token",
1738
+ "id": "run:info",
1756
1739
  "pluginAlias": "@xano/cli",
1757
1740
  "pluginName": "@xano/cli",
1758
1741
  "pluginType": "core",
1759
1742
  "strict": true,
1760
- "enableJsonFlag": false,
1761
1743
  "isESM": true,
1762
1744
  "relativePath": [
1763
1745
  "dist",
1764
1746
  "commands",
1765
- "profile",
1766
- "token",
1747
+ "run",
1748
+ "info",
1767
1749
  "index.js"
1768
1750
  ]
1769
1751
  },
1770
- "profile:wizard": {
1752
+ "static_host:list": {
1771
1753
  "aliases": [],
1772
1754
  "args": {},
1773
- "description": "Create a new profile configuration using an interactive wizard",
1755
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
1774
1756
  "examples": [
1775
- "$ 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"
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"
1776
1761
  ],
1777
1762
  "flags": {
1778
- "name": {
1779
- "char": "n",
1780
- "description": "Profile name (skip prompt if provided)",
1781
- "name": "name",
1763
+ "profile": {
1764
+ "char": "p",
1765
+ "description": "Profile to use for this command",
1766
+ "env": "XANO_PROFILE",
1767
+ "name": "profile",
1782
1768
  "required": false,
1783
1769
  "hasDynamicHelp": false,
1784
1770
  "multiple": false,
1785
1771
  "type": "option"
1786
1772
  },
1787
- "origin": {
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": {
1788
1783
  "char": "o",
1789
- "description": "Xano instance origin URL",
1790
- "name": "origin",
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",
1791
1818
  "required": false,
1792
- "default": "https://app.xano.com",
1793
1819
  "hasDynamicHelp": false,
1794
1820
  "multiple": false,
1795
1821
  "type": "option"
@@ -1797,7 +1823,7 @@
1797
1823
  },
1798
1824
  "hasDynamicHelp": false,
1799
1825
  "hiddenAliases": [],
1800
- "id": "profile:wizard",
1826
+ "id": "static_host:list",
1801
1827
  "pluginAlias": "@xano/cli",
1802
1828
  "pluginName": "@xano/cli",
1803
1829
  "pluginType": "core",
@@ -1807,8 +1833,8 @@
1807
1833
  "relativePath": [
1808
1834
  "dist",
1809
1835
  "commands",
1810
- "profile",
1811
- "wizard",
1836
+ "static_host",
1837
+ "list",
1812
1838
  "index.js"
1813
1839
  ]
1814
1840
  },
@@ -1891,21 +1917,20 @@
1891
1917
  "index.js"
1892
1918
  ]
1893
1919
  },
1894
- "workspace:edit": {
1920
+ "workspace:delete": {
1895
1921
  "aliases": [],
1896
1922
  "args": {
1897
1923
  "workspace_id": {
1898
- "description": "Workspace ID to edit (uses profile workspace if not provided)",
1924
+ "description": "Workspace ID to delete",
1899
1925
  "name": "workspace_id",
1900
- "required": false
1926
+ "required": true
1901
1927
  }
1902
1928
  },
1903
- "description": "Edit an existing workspace via the Xano Metadata API",
1929
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
1904
1930
  "examples": [
1905
- "$ xano workspace edit 123 --name \"new-name\"\nUpdated workspace: new-name (ID: 123)\n",
1906
- "$ xano workspace edit --name \"updated-workspace\" --description \"Updated description\"\nUpdated workspace: updated-workspace (ID: 123)\n Description: Updated description\n",
1907
- "$ xano workspace edit 123 --swagger --require-token\nUpdated workspace: my-workspace (ID: 123)\n Swagger: enabled\n Require Token: true\n",
1908
- "$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\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"
1909
1934
  ],
1910
1935
  "flags": {
1911
1936
  "profile": {
@@ -1927,23 +1952,13 @@
1927
1952
  "allowNo": false,
1928
1953
  "type": "boolean"
1929
1954
  },
1930
- "description": {
1931
- "char": "d",
1932
- "description": "New description for the workspace",
1933
- "name": "description",
1934
- "required": false,
1935
- "hasDynamicHelp": false,
1936
- "multiple": false,
1937
- "type": "option"
1938
- },
1939
- "name": {
1940
- "char": "n",
1941
- "description": "New name for the workspace",
1942
- "name": "name",
1955
+ "force": {
1956
+ "char": "f",
1957
+ "description": "Skip confirmation prompt",
1958
+ "name": "force",
1943
1959
  "required": false,
1944
- "hasDynamicHelp": false,
1945
- "multiple": false,
1946
- "type": "option"
1960
+ "allowNo": false,
1961
+ "type": "boolean"
1947
1962
  },
1948
1963
  "output": {
1949
1964
  "char": "o",
@@ -1958,25 +1973,11 @@
1958
1973
  "json"
1959
1974
  ],
1960
1975
  "type": "option"
1961
- },
1962
- "require-token": {
1963
- "description": "Whether to require a token for documentation access",
1964
- "name": "require-token",
1965
- "required": false,
1966
- "allowNo": true,
1967
- "type": "boolean"
1968
- },
1969
- "swagger": {
1970
- "description": "Enable or disable swagger documentation",
1971
- "name": "swagger",
1972
- "required": false,
1973
- "allowNo": true,
1974
- "type": "boolean"
1975
1976
  }
1976
1977
  },
1977
1978
  "hasDynamicHelp": false,
1978
1979
  "hiddenAliases": [],
1979
- "id": "workspace:edit",
1980
+ "id": "workspace:delete",
1980
1981
  "pluginAlias": "@xano/cli",
1981
1982
  "pluginName": "@xano/cli",
1982
1983
  "pluginType": "core",
@@ -1987,24 +1988,25 @@
1987
1988
  "dist",
1988
1989
  "commands",
1989
1990
  "workspace",
1990
- "edit",
1991
+ "delete",
1991
1992
  "index.js"
1992
1993
  ]
1993
1994
  },
1994
- "workspace:delete": {
1995
+ "workspace:edit": {
1995
1996
  "aliases": [],
1996
1997
  "args": {
1997
1998
  "workspace_id": {
1998
- "description": "Workspace ID to delete",
1999
+ "description": "Workspace ID to edit (uses profile workspace if not provided)",
1999
2000
  "name": "workspace_id",
2000
- "required": true
2001
+ "required": false
2001
2002
  }
2002
2003
  },
2003
- "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
2004
- "examples": [
2005
- "$ 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",
2006
- "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
2007
- "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
2004
+ "description": "Edit an existing workspace via the Xano Metadata API",
2005
+ "examples": [
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"
2008
2010
  ],
2009
2011
  "flags": {
2010
2012
  "profile": {
@@ -2026,13 +2028,23 @@
2026
2028
  "allowNo": false,
2027
2029
  "type": "boolean"
2028
2030
  },
2029
- "force": {
2030
- "char": "f",
2031
- "description": "Skip confirmation prompt",
2032
- "name": "force",
2031
+ "description": {
2032
+ "char": "d",
2033
+ "description": "New description for the workspace",
2034
+ "name": "description",
2033
2035
  "required": false,
2034
- "allowNo": false,
2035
- "type": "boolean"
2036
+ "hasDynamicHelp": false,
2037
+ "multiple": false,
2038
+ "type": "option"
2039
+ },
2040
+ "name": {
2041
+ "char": "n",
2042
+ "description": "New name for the workspace",
2043
+ "name": "name",
2044
+ "required": false,
2045
+ "hasDynamicHelp": false,
2046
+ "multiple": false,
2047
+ "type": "option"
2036
2048
  },
2037
2049
  "output": {
2038
2050
  "char": "o",
@@ -2047,11 +2059,25 @@
2047
2059
  "json"
2048
2060
  ],
2049
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"
2050
2076
  }
2051
2077
  },
2052
2078
  "hasDynamicHelp": false,
2053
2079
  "hiddenAliases": [],
2054
- "id": "workspace:delete",
2080
+ "id": "workspace:edit",
2055
2081
  "pluginAlias": "@xano/cli",
2056
2082
  "pluginName": "@xano/cli",
2057
2083
  "pluginType": "core",
@@ -2062,7 +2088,7 @@
2062
2088
  "dist",
2063
2089
  "commands",
2064
2090
  "workspace",
2065
- "delete",
2091
+ "edit",
2066
2092
  "index.js"
2067
2093
  ]
2068
2094
  },
@@ -2195,20 +2221,20 @@
2195
2221
  "index.js"
2196
2222
  ]
2197
2223
  },
2198
- "workspace:pull": {
2224
+ "workspace:push": {
2199
2225
  "aliases": [],
2200
2226
  "args": {
2201
2227
  "directory": {
2202
- "description": "Output directory for pulled documents",
2228
+ "description": "Directory containing documents to push (as produced by workspace pull)",
2203
2229
  "name": "directory",
2204
2230
  "required": true
2205
2231
  }
2206
2232
  },
2207
- "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",
2208
2234
  "examples": [
2209
- "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
2210
- "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
2211
- "$ 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"
2212
2238
  ],
2213
2239
  "flags": {
2214
2240
  "profile": {
@@ -2230,20 +2256,6 @@
2230
2256
  "allowNo": false,
2231
2257
  "type": "boolean"
2232
2258
  },
2233
- "env": {
2234
- "description": "Include environment variables",
2235
- "name": "env",
2236
- "required": false,
2237
- "allowNo": false,
2238
- "type": "boolean"
2239
- },
2240
- "records": {
2241
- "description": "Include records",
2242
- "name": "records",
2243
- "required": false,
2244
- "allowNo": false,
2245
- "type": "boolean"
2246
- },
2247
2259
  "workspace": {
2248
2260
  "char": "w",
2249
2261
  "description": "Workspace ID (optional if set in profile)",
@@ -2256,7 +2268,7 @@
2256
2268
  },
2257
2269
  "hasDynamicHelp": false,
2258
2270
  "hiddenAliases": [],
2259
- "id": "workspace:pull",
2271
+ "id": "workspace:push",
2260
2272
  "pluginAlias": "@xano/cli",
2261
2273
  "pluginName": "@xano/cli",
2262
2274
  "pluginType": "core",
@@ -2267,24 +2279,24 @@
2267
2279
  "dist",
2268
2280
  "commands",
2269
2281
  "workspace",
2270
- "pull",
2282
+ "push",
2271
2283
  "index.js"
2272
2284
  ]
2273
2285
  },
2274
- "workspace:push": {
2286
+ "workspace:pull": {
2275
2287
  "aliases": [],
2276
2288
  "args": {
2277
2289
  "directory": {
2278
- "description": "Directory containing documents to push (as produced by workspace pull)",
2290
+ "description": "Output directory for pulled documents",
2279
2291
  "name": "directory",
2280
2292
  "required": true
2281
2293
  }
2282
2294
  },
2283
- "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",
2284
2296
  "examples": [
2285
- "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
2286
- "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
2287
- "$ 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"
2288
2300
  ],
2289
2301
  "flags": {
2290
2302
  "profile": {
@@ -2306,6 +2318,20 @@
2306
2318
  "allowNo": false,
2307
2319
  "type": "boolean"
2308
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
+ },
2309
2335
  "workspace": {
2310
2336
  "char": "w",
2311
2337
  "description": "Workspace ID (optional if set in profile)",
@@ -2318,7 +2344,7 @@
2318
2344
  },
2319
2345
  "hasDynamicHelp": false,
2320
2346
  "hiddenAliases": [],
2321
- "id": "workspace:push",
2347
+ "id": "workspace:pull",
2322
2348
  "pluginAlias": "@xano/cli",
2323
2349
  "pluginName": "@xano/cli",
2324
2350
  "pluginType": "core",
@@ -2329,7 +2355,7 @@
2329
2355
  "dist",
2330
2356
  "commands",
2331
2357
  "workspace",
2332
- "push",
2358
+ "pull",
2333
2359
  "index.js"
2334
2360
  ]
2335
2361
  },
@@ -2459,32 +2485,6 @@
2459
2485
  "index.js"
2460
2486
  ]
2461
2487
  },
2462
- "profile:project": {
2463
- "aliases": [],
2464
- "args": {},
2465
- "description": "Print the project for the default profile",
2466
- "examples": [
2467
- "$ xano profile:project\nmy-project-id\n",
2468
- "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
2469
- ],
2470
- "flags": {},
2471
- "hasDynamicHelp": false,
2472
- "hiddenAliases": [],
2473
- "id": "profile:project",
2474
- "pluginAlias": "@xano/cli",
2475
- "pluginName": "@xano/cli",
2476
- "pluginType": "core",
2477
- "strict": true,
2478
- "enableJsonFlag": false,
2479
- "isESM": true,
2480
- "relativePath": [
2481
- "dist",
2482
- "commands",
2483
- "profile",
2484
- "project",
2485
- "index.js"
2486
- ]
2487
- },
2488
2488
  "run:env:list": {
2489
2489
  "aliases": [],
2490
2490
  "args": {},
@@ -2602,14 +2602,19 @@
2602
2602
  "index.js"
2603
2603
  ]
2604
2604
  },
2605
- "run:projects:create": {
2605
+ "run:projects:delete": {
2606
2606
  "aliases": [],
2607
- "args": {},
2608
- "description": "Create a new project",
2607
+ "args": {
2608
+ "projectId": {
2609
+ "description": "Project ID to delete",
2610
+ "name": "projectId",
2611
+ "required": true
2612
+ }
2613
+ },
2614
+ "description": "Delete a project",
2609
2615
  "examples": [
2610
- "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2611
- "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2612
- "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
2616
+ "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2617
+ "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2613
2618
  ],
2614
2619
  "flags": {
2615
2620
  "profile": {
@@ -2631,43 +2636,18 @@
2631
2636
  "allowNo": false,
2632
2637
  "type": "boolean"
2633
2638
  },
2634
- "description": {
2635
- "char": "d",
2636
- "description": "Project description",
2637
- "name": "description",
2638
- "required": false,
2639
- "default": "",
2640
- "hasDynamicHelp": false,
2641
- "multiple": false,
2642
- "type": "option"
2643
- },
2644
- "name": {
2645
- "char": "n",
2646
- "description": "Project name",
2647
- "name": "name",
2648
- "required": true,
2649
- "hasDynamicHelp": false,
2650
- "multiple": false,
2651
- "type": "option"
2652
- },
2653
- "output": {
2654
- "char": "o",
2655
- "description": "Output format",
2656
- "name": "output",
2639
+ "force": {
2640
+ "char": "f",
2641
+ "description": "Skip confirmation prompt",
2642
+ "name": "force",
2657
2643
  "required": false,
2658
- "default": "summary",
2659
- "hasDynamicHelp": false,
2660
- "multiple": false,
2661
- "options": [
2662
- "summary",
2663
- "json"
2664
- ],
2665
- "type": "option"
2644
+ "allowNo": false,
2645
+ "type": "boolean"
2666
2646
  }
2667
2647
  },
2668
2648
  "hasDynamicHelp": false,
2669
2649
  "hiddenAliases": [],
2670
- "id": "run:projects:create",
2650
+ "id": "run:projects:delete",
2671
2651
  "pluginAlias": "@xano/cli",
2672
2652
  "pluginName": "@xano/cli",
2673
2653
  "pluginType": "core",
@@ -2678,24 +2658,18 @@
2678
2658
  "commands",
2679
2659
  "run",
2680
2660
  "projects",
2681
- "create",
2661
+ "delete",
2682
2662
  "index.js"
2683
2663
  ]
2684
2664
  },
2685
- "run:projects:update": {
2665
+ "run:projects:create": {
2686
2666
  "aliases": [],
2687
- "args": {
2688
- "projectId": {
2689
- "description": "Project ID to update",
2690
- "name": "projectId",
2691
- "required": true
2692
- }
2693
- },
2694
- "description": "Update a project",
2667
+ "args": {},
2668
+ "description": "Create a new project",
2695
2669
  "examples": [
2696
- "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
2697
- "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
2698
- "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\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"
2699
2673
  ],
2700
2674
  "flags": {
2701
2675
  "profile": {
@@ -2719,18 +2693,19 @@
2719
2693
  },
2720
2694
  "description": {
2721
2695
  "char": "d",
2722
- "description": "New project description",
2696
+ "description": "Project description",
2723
2697
  "name": "description",
2724
2698
  "required": false,
2699
+ "default": "",
2725
2700
  "hasDynamicHelp": false,
2726
2701
  "multiple": false,
2727
2702
  "type": "option"
2728
2703
  },
2729
2704
  "name": {
2730
2705
  "char": "n",
2731
- "description": "New project name",
2706
+ "description": "Project name",
2732
2707
  "name": "name",
2733
- "required": false,
2708
+ "required": true,
2734
2709
  "hasDynamicHelp": false,
2735
2710
  "multiple": false,
2736
2711
  "type": "option"
@@ -2752,7 +2727,7 @@
2752
2727
  },
2753
2728
  "hasDynamicHelp": false,
2754
2729
  "hiddenAliases": [],
2755
- "id": "run:projects:update",
2730
+ "id": "run:projects:create",
2756
2731
  "pluginAlias": "@xano/cli",
2757
2732
  "pluginName": "@xano/cli",
2758
2733
  "pluginType": "core",
@@ -2763,7 +2738,7 @@
2763
2738
  "commands",
2764
2739
  "run",
2765
2740
  "projects",
2766
- "update",
2741
+ "create",
2767
2742
  "index.js"
2768
2743
  ]
2769
2744
  },
@@ -2953,19 +2928,20 @@
2953
2928
  "index.js"
2954
2929
  ]
2955
2930
  },
2956
- "run:projects:delete": {
2931
+ "run:projects:update": {
2957
2932
  "aliases": [],
2958
2933
  "args": {
2959
2934
  "projectId": {
2960
- "description": "Project ID to delete",
2935
+ "description": "Project ID to update",
2961
2936
  "name": "projectId",
2962
2937
  "required": true
2963
2938
  }
2964
2939
  },
2965
- "description": "Delete a project",
2940
+ "description": "Update a project",
2966
2941
  "examples": [
2967
- "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2968
- "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2942
+ "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
2943
+ "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
2944
+ "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
2969
2945
  ],
2970
2946
  "flags": {
2971
2947
  "profile": {
@@ -2987,18 +2963,42 @@
2987
2963
  "allowNo": false,
2988
2964
  "type": "boolean"
2989
2965
  },
2990
- "force": {
2991
- "char": "f",
2992
- "description": "Skip confirmation prompt",
2993
- "name": "force",
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
+ },
2975
+ "name": {
2976
+ "char": "n",
2977
+ "description": "New project name",
2978
+ "name": "name",
2979
+ "required": false,
2980
+ "hasDynamicHelp": false,
2981
+ "multiple": false,
2982
+ "type": "option"
2983
+ },
2984
+ "output": {
2985
+ "char": "o",
2986
+ "description": "Output format",
2987
+ "name": "output",
2994
2988
  "required": false,
2995
- "allowNo": false,
2996
- "type": "boolean"
2989
+ "default": "summary",
2990
+ "hasDynamicHelp": false,
2991
+ "multiple": false,
2992
+ "options": [
2993
+ "summary",
2994
+ "json"
2995
+ ],
2996
+ "type": "option"
2997
2997
  }
2998
2998
  },
2999
2999
  "hasDynamicHelp": false,
3000
3000
  "hiddenAliases": [],
3001
- "id": "run:projects:delete",
3001
+ "id": "run:projects:update",
3002
3002
  "pluginAlias": "@xano/cli",
3003
3003
  "pluginName": "@xano/cli",
3004
3004
  "pluginType": "core",
@@ -3009,7 +3009,7 @@
3009
3009
  "commands",
3010
3010
  "run",
3011
3011
  "projects",
3012
- "delete",
3012
+ "update",
3013
3013
  "index.js"
3014
3014
  ]
3015
3015
  },
@@ -3216,13 +3216,19 @@
3216
3216
  "index.js"
3217
3217
  ]
3218
3218
  },
3219
- "run:sessions:list": {
3219
+ "run:sessions:get": {
3220
3220
  "aliases": [],
3221
- "args": {},
3222
- "description": "List all sessions for the project",
3221
+ "args": {
3222
+ "sessionId": {
3223
+ "description": "Session ID",
3224
+ "name": "sessionId",
3225
+ "required": true
3226
+ }
3227
+ },
3228
+ "description": "Get session details",
3223
3229
  "examples": [
3224
- "$ 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",
3225
- "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\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"
3226
3232
  ],
3227
3233
  "flags": {
3228
3234
  "profile": {
@@ -3249,11 +3255,11 @@
3249
3255
  "description": "Output format",
3250
3256
  "name": "output",
3251
3257
  "required": false,
3252
- "default": "table",
3258
+ "default": "summary",
3253
3259
  "hasDynamicHelp": false,
3254
3260
  "multiple": false,
3255
3261
  "options": [
3256
- "table",
3262
+ "summary",
3257
3263
  "json"
3258
3264
  ],
3259
3265
  "type": "option"
@@ -3261,7 +3267,7 @@
3261
3267
  },
3262
3268
  "hasDynamicHelp": false,
3263
3269
  "hiddenAliases": [],
3264
- "id": "run:sessions:list",
3270
+ "id": "run:sessions:get",
3265
3271
  "pluginAlias": "@xano/cli",
3266
3272
  "pluginName": "@xano/cli",
3267
3273
  "pluginType": "core",
@@ -3272,23 +3278,17 @@
3272
3278
  "commands",
3273
3279
  "run",
3274
3280
  "sessions",
3275
- "list",
3281
+ "get",
3276
3282
  "index.js"
3277
3283
  ]
3278
3284
  },
3279
- "run:sessions:get": {
3285
+ "run:sessions:list": {
3280
3286
  "aliases": [],
3281
- "args": {
3282
- "sessionId": {
3283
- "description": "Session ID",
3284
- "name": "sessionId",
3285
- "required": true
3286
- }
3287
- },
3288
- "description": "Get session details",
3287
+ "args": {},
3288
+ "description": "List all sessions for the project",
3289
3289
  "examples": [
3290
- "$ 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",
3291
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\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"
3292
3292
  ],
3293
3293
  "flags": {
3294
3294
  "profile": {
@@ -3315,11 +3315,11 @@
3315
3315
  "description": "Output format",
3316
3316
  "name": "output",
3317
3317
  "required": false,
3318
- "default": "summary",
3318
+ "default": "table",
3319
3319
  "hasDynamicHelp": false,
3320
3320
  "multiple": false,
3321
3321
  "options": [
3322
- "summary",
3322
+ "table",
3323
3323
  "json"
3324
3324
  ],
3325
3325
  "type": "option"
@@ -3327,7 +3327,7 @@
3327
3327
  },
3328
3328
  "hasDynamicHelp": false,
3329
3329
  "hiddenAliases": [],
3330
- "id": "run:sessions:get",
3330
+ "id": "run:sessions:list",
3331
3331
  "pluginAlias": "@xano/cli",
3332
3332
  "pluginName": "@xano/cli",
3333
3333
  "pluginType": "core",
@@ -3338,7 +3338,7 @@
3338
3338
  "commands",
3339
3339
  "run",
3340
3340
  "sessions",
3341
- "get",
3341
+ "list",
3342
3342
  "index.js"
3343
3343
  ]
3344
3344
  },
@@ -3408,20 +3408,19 @@
3408
3408
  "index.js"
3409
3409
  ]
3410
3410
  },
3411
- "static_host:build:create": {
3411
+ "run:sessions:stop": {
3412
3412
  "aliases": [],
3413
3413
  "args": {
3414
- "static_host": {
3415
- "description": "Static Host name",
3416
- "name": "static_host",
3414
+ "sessionId": {
3415
+ "description": "Session ID",
3416
+ "name": "sessionId",
3417
3417
  "required": true
3418
3418
  }
3419
3419
  },
3420
- "description": "Create a new build for a static host",
3420
+ "description": "Stop a session",
3421
3421
  "examples": [
3422
- "$ 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",
3423
- "$ 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",
3424
- "$ 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"
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"
3425
3424
  ],
3426
3425
  "flags": {
3427
3426
  "profile": {
@@ -3443,33 +3442,6 @@
3443
3442
  "allowNo": false,
3444
3443
  "type": "boolean"
3445
3444
  },
3446
- "description": {
3447
- "char": "d",
3448
- "description": "Build description",
3449
- "name": "description",
3450
- "required": false,
3451
- "hasDynamicHelp": false,
3452
- "multiple": false,
3453
- "type": "option"
3454
- },
3455
- "file": {
3456
- "char": "f",
3457
- "description": "Path to zip file to upload",
3458
- "name": "file",
3459
- "required": true,
3460
- "hasDynamicHelp": false,
3461
- "multiple": false,
3462
- "type": "option"
3463
- },
3464
- "name": {
3465
- "char": "n",
3466
- "description": "Build name",
3467
- "name": "name",
3468
- "required": true,
3469
- "hasDynamicHelp": false,
3470
- "multiple": false,
3471
- "type": "option"
3472
- },
3473
3445
  "output": {
3474
3446
  "char": "o",
3475
3447
  "description": "Output format",
@@ -3483,55 +3455,38 @@
3483
3455
  "json"
3484
3456
  ],
3485
3457
  "type": "option"
3486
- },
3487
- "workspace": {
3488
- "char": "w",
3489
- "description": "Workspace ID (optional if set in profile)",
3490
- "name": "workspace",
3491
- "required": false,
3492
- "hasDynamicHelp": false,
3493
- "multiple": false,
3494
- "type": "option"
3495
3458
  }
3496
3459
  },
3497
3460
  "hasDynamicHelp": false,
3498
3461
  "hiddenAliases": [],
3499
- "id": "static_host:build:create",
3462
+ "id": "run:sessions:stop",
3500
3463
  "pluginAlias": "@xano/cli",
3501
3464
  "pluginName": "@xano/cli",
3502
3465
  "pluginType": "core",
3503
3466
  "strict": true,
3504
- "enableJsonFlag": false,
3505
3467
  "isESM": true,
3506
3468
  "relativePath": [
3507
3469
  "dist",
3508
3470
  "commands",
3509
- "static_host",
3510
- "build",
3511
- "create",
3471
+ "run",
3472
+ "sessions",
3473
+ "stop",
3512
3474
  "index.js"
3513
3475
  ]
3514
3476
  },
3515
- "static_host:build:get": {
3477
+ "run:sink:get": {
3516
3478
  "aliases": [],
3517
3479
  "args": {
3518
- "build_id": {
3519
- "description": "Build ID",
3520
- "name": "build_id",
3521
- "required": true
3522
- },
3523
- "static_host": {
3524
- "description": "Static Host name",
3525
- "name": "static_host",
3480
+ "sessionId": {
3481
+ "description": "Session ID",
3482
+ "name": "sessionId",
3526
3483
  "required": true
3527
3484
  }
3528
3485
  },
3529
- "description": "Get details of a specific build for a static host",
3486
+ "description": "Get sink data for a completed session",
3530
3487
  "examples": [
3531
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3532
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3533
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
3534
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\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"
3535
3490
  ],
3536
3491
  "flags": {
3537
3492
  "profile": {
@@ -3566,48 +3521,39 @@
3566
3521
  "json"
3567
3522
  ],
3568
3523
  "type": "option"
3569
- },
3570
- "workspace": {
3571
- "char": "w",
3572
- "description": "Workspace ID (optional if set in profile)",
3573
- "name": "workspace",
3574
- "required": false,
3575
- "hasDynamicHelp": false,
3576
- "multiple": false,
3577
- "type": "option"
3578
3524
  }
3579
3525
  },
3580
3526
  "hasDynamicHelp": false,
3581
3527
  "hiddenAliases": [],
3582
- "id": "static_host:build:get",
3528
+ "id": "run:sink:get",
3583
3529
  "pluginAlias": "@xano/cli",
3584
3530
  "pluginName": "@xano/cli",
3585
3531
  "pluginType": "core",
3586
3532
  "strict": true,
3587
- "enableJsonFlag": false,
3588
3533
  "isESM": true,
3589
3534
  "relativePath": [
3590
3535
  "dist",
3591
3536
  "commands",
3592
- "static_host",
3593
- "build",
3537
+ "run",
3538
+ "sink",
3594
3539
  "get",
3595
3540
  "index.js"
3596
3541
  ]
3597
3542
  },
3598
- "run:sessions:stop": {
3543
+ "static_host:build:create": {
3599
3544
  "aliases": [],
3600
3545
  "args": {
3601
- "sessionId": {
3602
- "description": "Session ID",
3603
- "name": "sessionId",
3546
+ "static_host": {
3547
+ "description": "Static Host name",
3548
+ "name": "static_host",
3604
3549
  "required": true
3605
3550
  }
3606
3551
  },
3607
- "description": "Stop a session",
3552
+ "description": "Create a new build for a static host",
3608
3553
  "examples": [
3609
- "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
3610
- "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\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"
3611
3557
  ],
3612
3558
  "flags": {
3613
3559
  "profile": {
@@ -3629,6 +3575,33 @@
3629
3575
  "allowNo": false,
3630
3576
  "type": "boolean"
3631
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
+ },
3632
3605
  "output": {
3633
3606
  "char": "o",
3634
3607
  "description": "Output format",
@@ -3642,38 +3615,55 @@
3642
3615
  "json"
3643
3616
  ],
3644
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"
3645
3627
  }
3646
3628
  },
3647
3629
  "hasDynamicHelp": false,
3648
3630
  "hiddenAliases": [],
3649
- "id": "run:sessions:stop",
3631
+ "id": "static_host:build:create",
3650
3632
  "pluginAlias": "@xano/cli",
3651
3633
  "pluginName": "@xano/cli",
3652
3634
  "pluginType": "core",
3653
3635
  "strict": true,
3636
+ "enableJsonFlag": false,
3654
3637
  "isESM": true,
3655
3638
  "relativePath": [
3656
3639
  "dist",
3657
3640
  "commands",
3658
- "run",
3659
- "sessions",
3660
- "stop",
3641
+ "static_host",
3642
+ "build",
3643
+ "create",
3661
3644
  "index.js"
3662
3645
  ]
3663
3646
  },
3664
- "run:sink:get": {
3647
+ "static_host:build:get": {
3665
3648
  "aliases": [],
3666
3649
  "args": {
3667
- "sessionId": {
3668
- "description": "Session ID",
3669
- "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",
3670
3658
  "required": true
3671
3659
  }
3672
3660
  },
3673
- "description": "Get sink data for a completed session",
3661
+ "description": "Get details of a specific build for a static host",
3674
3662
  "examples": [
3675
- "$ 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",
3676
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\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"
3677
3667
  ],
3678
3668
  "flags": {
3679
3669
  "profile": {
@@ -3708,21 +3698,31 @@
3708
3698
  "json"
3709
3699
  ],
3710
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"
3711
3710
  }
3712
3711
  },
3713
3712
  "hasDynamicHelp": false,
3714
3713
  "hiddenAliases": [],
3715
- "id": "run:sink:get",
3714
+ "id": "static_host:build:get",
3716
3715
  "pluginAlias": "@xano/cli",
3717
3716
  "pluginName": "@xano/cli",
3718
3717
  "pluginType": "core",
3719
3718
  "strict": true,
3719
+ "enableJsonFlag": false,
3720
3720
  "isESM": true,
3721
3721
  "relativePath": [
3722
3722
  "dist",
3723
3723
  "commands",
3724
- "run",
3725
- "sink",
3724
+ "static_host",
3725
+ "build",
3726
3726
  "get",
3727
3727
  "index.js"
3728
3728
  ]
@@ -3824,5 +3824,5 @@
3824
3824
  ]
3825
3825
  }
3826
3826
  },
3827
- "version": "0.0.25"
3827
+ "version": "0.0.27"
3828
3828
  }