@xano/cli 0.0.29 → 0.0.31

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,19 @@
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
+ "branch:create": {
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": "Create a new branch by cloning from an existing branch",
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 branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
363
+ "$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
364
+ "$ 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"
346
365
  ],
347
366
  "flags": {
348
367
  "profile": {
@@ -364,6 +383,33 @@
364
383
  "allowNo": false,
365
384
  "type": "boolean"
366
385
  },
386
+ "color": {
387
+ "char": "c",
388
+ "description": "Color hex code for the branch (e.g., \"#ebc346\")",
389
+ "name": "color",
390
+ "required": false,
391
+ "hasDynamicHelp": false,
392
+ "multiple": false,
393
+ "type": "option"
394
+ },
395
+ "description": {
396
+ "char": "d",
397
+ "description": "Description for the new branch",
398
+ "name": "description",
399
+ "required": false,
400
+ "hasDynamicHelp": false,
401
+ "multiple": false,
402
+ "type": "option"
403
+ },
404
+ "label": {
405
+ "char": "l",
406
+ "description": "Label for the new branch",
407
+ "name": "label",
408
+ "required": true,
409
+ "hasDynamicHelp": false,
410
+ "multiple": false,
411
+ "type": "option"
412
+ },
367
413
  "output": {
368
414
  "char": "o",
369
415
  "description": "Output format",
@@ -378,10 +424,20 @@
378
424
  ],
379
425
  "type": "option"
380
426
  },
381
- "workspace": {
382
- "char": "w",
383
- "description": "Workspace ID (uses profile workspace if not provided)",
384
- "name": "workspace",
427
+ "source": {
428
+ "char": "s",
429
+ "description": "Source branch to clone from (defaults to \"v1\")",
430
+ "name": "source",
431
+ "required": false,
432
+ "default": "v1",
433
+ "hasDynamicHelp": false,
434
+ "multiple": false,
435
+ "type": "option"
436
+ },
437
+ "workspace": {
438
+ "char": "w",
439
+ "description": "Workspace ID (uses profile workspace if not provided)",
440
+ "name": "workspace",
385
441
  "required": false,
386
442
  "hasDynamicHelp": false,
387
443
  "multiple": false,
@@ -390,7 +446,7 @@
390
446
  },
391
447
  "hasDynamicHelp": false,
392
448
  "hiddenAliases": [],
393
- "id": "branch:get",
449
+ "id": "branch:create",
394
450
  "pluginAlias": "@xano/cli",
395
451
  "pluginName": "@xano/cli",
396
452
  "pluginType": "core",
@@ -401,24 +457,24 @@
401
457
  "dist",
402
458
  "commands",
403
459
  "branch",
404
- "get",
460
+ "create",
405
461
  "index.js"
406
462
  ]
407
463
  },
408
- "branch:set-live": {
464
+ "branch:edit": {
409
465
  "aliases": [],
410
466
  "args": {
411
467
  "branch_label": {
412
- "description": "Branch label to set as live (use \"v1\" for default branch)",
468
+ "description": "Branch label to edit (cannot edit \"v1\" label)",
413
469
  "name": "branch_label",
414
470
  "required": true
415
471
  }
416
472
  },
417
- "description": "Set a branch as the live (active) branch for API requests",
473
+ "description": "Update an existing branch (cannot update \"v1\" label)",
418
474
  "examples": [
419
- "$ 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",
420
- "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
421
- "$ 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"
475
+ "$ xano branch edit dev --label development\nUpdated branch: development\n",
476
+ "$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
477
+ "$ 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"
422
478
  ],
423
479
  "flags": {
424
480
  "profile": {
@@ -440,13 +496,32 @@
440
496
  "allowNo": false,
441
497
  "type": "boolean"
442
498
  },
443
- "force": {
444
- "char": "f",
445
- "description": "Skip confirmation prompt",
446
- "name": "force",
499
+ "color": {
500
+ "char": "c",
501
+ "description": "New color hex code for the branch (e.g., \"#ff5733\")",
502
+ "name": "color",
447
503
  "required": false,
448
- "allowNo": false,
449
- "type": "boolean"
504
+ "hasDynamicHelp": false,
505
+ "multiple": false,
506
+ "type": "option"
507
+ },
508
+ "description": {
509
+ "char": "d",
510
+ "description": "New description for the branch",
511
+ "name": "description",
512
+ "required": false,
513
+ "hasDynamicHelp": false,
514
+ "multiple": false,
515
+ "type": "option"
516
+ },
517
+ "label": {
518
+ "char": "l",
519
+ "description": "New label for the branch",
520
+ "name": "label",
521
+ "required": false,
522
+ "hasDynamicHelp": false,
523
+ "multiple": false,
524
+ "type": "option"
450
525
  },
451
526
  "output": {
452
527
  "char": "o",
@@ -474,7 +549,7 @@
474
549
  },
475
550
  "hasDynamicHelp": false,
476
551
  "hiddenAliases": [],
477
- "id": "branch:set-live",
552
+ "id": "branch:edit",
478
553
  "pluginAlias": "@xano/cli",
479
554
  "pluginName": "@xano/cli",
480
555
  "pluginType": "core",
@@ -485,20 +560,24 @@
485
560
  "dist",
486
561
  "commands",
487
562
  "branch",
488
- "set-live",
563
+ "edit",
489
564
  "index.js"
490
565
  ]
491
566
  },
492
- "function:create": {
567
+ "branch:get": {
493
568
  "aliases": [],
494
- "args": {},
495
- "description": "Create a new function in a workspace",
569
+ "args": {
570
+ "branch_label": {
571
+ "description": "Branch label (e.g., \"v1\", \"dev\")",
572
+ "name": "branch_label",
573
+ "required": true
574
+ }
575
+ },
576
+ "description": "Get details for a specific branch",
496
577
  "examples": [
497
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
498
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
499
- "$ 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",
500
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
501
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
578
+ "$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
579
+ "$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
580
+ "$ 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"
502
581
  ],
503
582
  "flags": {
504
583
  "profile": {
@@ -520,29 +599,6 @@
520
599
  "allowNo": false,
521
600
  "type": "boolean"
522
601
  },
523
- "edit": {
524
- "char": "e",
525
- "dependsOn": [
526
- "file"
527
- ],
528
- "description": "Open file in editor before creating function (requires --file)",
529
- "name": "edit",
530
- "required": false,
531
- "allowNo": false,
532
- "type": "boolean"
533
- },
534
- "file": {
535
- "char": "f",
536
- "description": "Path to file containing XanoScript code",
537
- "exclusive": [
538
- "stdin"
539
- ],
540
- "name": "file",
541
- "required": false,
542
- "hasDynamicHelp": false,
543
- "multiple": false,
544
- "type": "option"
545
- },
546
602
  "output": {
547
603
  "char": "o",
548
604
  "description": "Output format",
@@ -557,20 +613,9 @@
557
613
  ],
558
614
  "type": "option"
559
615
  },
560
- "stdin": {
561
- "char": "s",
562
- "description": "Read XanoScript code from stdin",
563
- "exclusive": [
564
- "file"
565
- ],
566
- "name": "stdin",
567
- "required": false,
568
- "allowNo": false,
569
- "type": "boolean"
570
- },
571
616
  "workspace": {
572
617
  "char": "w",
573
- "description": "Workspace ID (optional if set in profile)",
618
+ "description": "Workspace ID (uses profile workspace if not provided)",
574
619
  "name": "workspace",
575
620
  "required": false,
576
621
  "hasDynamicHelp": false,
@@ -580,7 +625,7 @@
580
625
  },
581
626
  "hasDynamicHelp": false,
582
627
  "hiddenAliases": [],
583
- "id": "function:create",
628
+ "id": "branch:get",
584
629
  "pluginAlias": "@xano/cli",
585
630
  "pluginName": "@xano/cli",
586
631
  "pluginType": "core",
@@ -590,30 +635,25 @@
590
635
  "relativePath": [
591
636
  "dist",
592
637
  "commands",
593
- "function",
594
- "create",
638
+ "branch",
639
+ "get",
595
640
  "index.js"
596
641
  ]
597
642
  },
598
- "function:edit": {
643
+ "branch:set-live": {
599
644
  "aliases": [],
600
645
  "args": {
601
- "function_id": {
602
- "description": "Function ID to edit",
603
- "name": "function_id",
604
- "required": false
646
+ "branch_label": {
647
+ "description": "Branch label to set as live (use \"v1\" for default branch)",
648
+ "name": "branch_label",
649
+ "required": true
605
650
  }
606
651
  },
607
- "description": "Edit a function in a workspace",
652
+ "description": "Set a branch as the live (active) branch for API requests",
608
653
  "examples": [
609
- "$ 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",
610
- "$ 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",
611
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
612
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
613
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
614
- "$ 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",
615
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
616
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
654
+ "$ 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",
655
+ "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
656
+ "$ 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"
617
657
  ],
618
658
  "flags": {
619
659
  "profile": {
@@ -635,26 +675,14 @@
635
675
  "allowNo": false,
636
676
  "type": "boolean"
637
677
  },
638
- "edit": {
639
- "char": "e",
640
- "description": "Open file in editor before updating function (requires --file)",
641
- "name": "edit",
678
+ "force": {
679
+ "char": "f",
680
+ "description": "Skip confirmation prompt",
681
+ "name": "force",
642
682
  "required": false,
643
683
  "allowNo": false,
644
684
  "type": "boolean"
645
685
  },
646
- "file": {
647
- "char": "f",
648
- "description": "Path to file containing XanoScript code",
649
- "exclusive": [
650
- "stdin"
651
- ],
652
- "name": "file",
653
- "required": false,
654
- "hasDynamicHelp": false,
655
- "multiple": false,
656
- "type": "option"
657
- },
658
686
  "output": {
659
687
  "char": "o",
660
688
  "description": "Output format",
@@ -669,27 +697,9 @@
669
697
  ],
670
698
  "type": "option"
671
699
  },
672
- "publish": {
673
- "description": "Publish the function after editing",
674
- "name": "publish",
675
- "required": false,
676
- "allowNo": false,
677
- "type": "boolean"
678
- },
679
- "stdin": {
680
- "char": "s",
681
- "description": "Read XanoScript code from stdin",
682
- "exclusive": [
683
- "file"
684
- ],
685
- "name": "stdin",
686
- "required": false,
687
- "allowNo": false,
688
- "type": "boolean"
689
- },
690
700
  "workspace": {
691
701
  "char": "w",
692
- "description": "Workspace ID (optional if set in profile)",
702
+ "description": "Workspace ID (uses profile workspace if not provided)",
693
703
  "name": "workspace",
694
704
  "required": false,
695
705
  "hasDynamicHelp": false,
@@ -699,7 +709,7 @@
699
709
  },
700
710
  "hasDynamicHelp": false,
701
711
  "hiddenAliases": [],
702
- "id": "function:edit",
712
+ "id": "branch:set-live",
703
713
  "pluginAlias": "@xano/cli",
704
714
  "pluginName": "@xano/cli",
705
715
  "pluginType": "core",
@@ -709,8 +719,8 @@
709
719
  "relativePath": [
710
720
  "dist",
711
721
  "commands",
712
- "function",
713
- "edit",
722
+ "branch",
723
+ "set-live",
714
724
  "index.js"
715
725
  ]
716
726
  },
@@ -781,54 +791,193 @@
781
791
  "index.js"
782
792
  ]
783
793
  },
784
- "function:get": {
794
+ "profile:create": {
785
795
  "aliases": [],
786
796
  "args": {
787
- "function_id": {
788
- "description": "Function ID",
789
- "name": "function_id",
790
- "required": false
797
+ "name": {
798
+ "description": "Profile name",
799
+ "name": "name",
800
+ "required": true
791
801
  }
792
802
  },
793
- "description": "Get a specific function from a workspace",
803
+ "description": "Create a new profile configuration",
794
804
  "examples": [
795
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
796
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
797
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
798
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
799
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
800
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
805
+ "$ 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",
806
+ "$ 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",
807
+ "$ 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",
808
+ "$ 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",
809
+ "$ 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"
801
810
  ],
802
811
  "flags": {
803
- "profile": {
804
- "char": "p",
805
- "description": "Profile to use for this command",
806
- "env": "XANO_PROFILE",
807
- "name": "profile",
812
+ "access_token": {
813
+ "char": "t",
814
+ "description": "Access token for the Xano Metadata API",
815
+ "name": "access_token",
816
+ "required": true,
817
+ "hasDynamicHelp": false,
818
+ "multiple": false,
819
+ "type": "option"
820
+ },
821
+ "account_origin": {
822
+ "char": "a",
823
+ "description": "Account origin URL. Optional for self hosted installs.",
824
+ "name": "account_origin",
808
825
  "required": false,
809
826
  "hasDynamicHelp": false,
810
827
  "multiple": false,
811
828
  "type": "option"
812
829
  },
813
- "verbose": {
814
- "char": "v",
815
- "description": "Show detailed request/response information",
816
- "env": "XANO_VERBOSE",
817
- "name": "verbose",
830
+ "branch": {
831
+ "char": "b",
832
+ "description": "Branch name",
833
+ "name": "branch",
818
834
  "required": false,
819
- "allowNo": false,
820
- "type": "boolean"
835
+ "hasDynamicHelp": false,
836
+ "multiple": false,
837
+ "type": "option"
821
838
  },
822
- "include_draft": {
823
- "description": "Include draft version",
824
- "name": "include_draft",
839
+ "default": {
840
+ "description": "Set this profile as the default",
841
+ "name": "default",
825
842
  "required": false,
826
843
  "allowNo": false,
827
844
  "type": "boolean"
828
845
  },
829
- "include_xanoscript": {
830
- "description": "Include XanoScript in response",
831
- "name": "include_xanoscript",
846
+ "instance_origin": {
847
+ "char": "i",
848
+ "description": "Instance origin URL",
849
+ "name": "instance_origin",
850
+ "required": true,
851
+ "hasDynamicHelp": false,
852
+ "multiple": false,
853
+ "type": "option"
854
+ },
855
+ "project": {
856
+ "char": "j",
857
+ "description": "Project name",
858
+ "name": "project",
859
+ "required": false,
860
+ "hasDynamicHelp": false,
861
+ "multiple": false,
862
+ "type": "option"
863
+ },
864
+ "run_base_url": {
865
+ "char": "r",
866
+ "description": "Xano Run API base URL (default: https://app.xano.com/)",
867
+ "name": "run_base_url",
868
+ "required": false,
869
+ "hasDynamicHelp": false,
870
+ "multiple": false,
871
+ "type": "option"
872
+ },
873
+ "workspace": {
874
+ "char": "w",
875
+ "description": "Workspace name",
876
+ "name": "workspace",
877
+ "required": false,
878
+ "hasDynamicHelp": false,
879
+ "multiple": false,
880
+ "type": "option"
881
+ }
882
+ },
883
+ "hasDynamicHelp": false,
884
+ "hiddenAliases": [],
885
+ "id": "profile:create",
886
+ "pluginAlias": "@xano/cli",
887
+ "pluginName": "@xano/cli",
888
+ "pluginType": "core",
889
+ "strict": true,
890
+ "enableJsonFlag": false,
891
+ "isESM": true,
892
+ "relativePath": [
893
+ "dist",
894
+ "commands",
895
+ "profile",
896
+ "create",
897
+ "index.js"
898
+ ]
899
+ },
900
+ "profile:delete": {
901
+ "aliases": [],
902
+ "args": {
903
+ "name": {
904
+ "description": "Profile name to delete",
905
+ "name": "name",
906
+ "required": true
907
+ }
908
+ },
909
+ "description": "Delete a profile configuration",
910
+ "examples": [
911
+ "$ 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",
912
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
913
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
914
+ ],
915
+ "flags": {
916
+ "force": {
917
+ "char": "f",
918
+ "description": "Skip confirmation prompt",
919
+ "name": "force",
920
+ "required": false,
921
+ "allowNo": false,
922
+ "type": "boolean"
923
+ }
924
+ },
925
+ "hasDynamicHelp": false,
926
+ "hiddenAliases": [],
927
+ "id": "profile:delete",
928
+ "pluginAlias": "@xano/cli",
929
+ "pluginName": "@xano/cli",
930
+ "pluginType": "core",
931
+ "strict": true,
932
+ "enableJsonFlag": false,
933
+ "isESM": true,
934
+ "relativePath": [
935
+ "dist",
936
+ "commands",
937
+ "profile",
938
+ "delete",
939
+ "index.js"
940
+ ]
941
+ },
942
+ "branch:delete": {
943
+ "aliases": [],
944
+ "args": {
945
+ "branch_label": {
946
+ "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
947
+ "name": "branch_label",
948
+ "required": true
949
+ }
950
+ },
951
+ "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
952
+ "examples": [
953
+ "$ 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",
954
+ "$ xano branch delete dev --force\nDeleted branch: dev\n",
955
+ "$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
956
+ ],
957
+ "flags": {
958
+ "profile": {
959
+ "char": "p",
960
+ "description": "Profile to use for this command",
961
+ "env": "XANO_PROFILE",
962
+ "name": "profile",
963
+ "required": false,
964
+ "hasDynamicHelp": false,
965
+ "multiple": false,
966
+ "type": "option"
967
+ },
968
+ "verbose": {
969
+ "char": "v",
970
+ "description": "Show detailed request/response information",
971
+ "env": "XANO_VERBOSE",
972
+ "name": "verbose",
973
+ "required": false,
974
+ "allowNo": false,
975
+ "type": "boolean"
976
+ },
977
+ "force": {
978
+ "char": "f",
979
+ "description": "Skip confirmation prompt",
980
+ "name": "force",
832
981
  "required": false,
833
982
  "allowNo": false,
834
983
  "type": "boolean"
@@ -843,14 +992,13 @@
843
992
  "multiple": false,
844
993
  "options": [
845
994
  "summary",
846
- "json",
847
- "xs"
995
+ "json"
848
996
  ],
849
997
  "type": "option"
850
998
  },
851
999
  "workspace": {
852
1000
  "char": "w",
853
- "description": "Workspace ID (optional if set in profile)",
1001
+ "description": "Workspace ID (uses profile workspace if not provided)",
854
1002
  "name": "workspace",
855
1003
  "required": false,
856
1004
  "hasDynamicHelp": false,
@@ -860,7 +1008,7 @@
860
1008
  },
861
1009
  "hasDynamicHelp": false,
862
1010
  "hiddenAliases": [],
863
- "id": "function:get",
1011
+ "id": "branch:delete",
864
1012
  "pluginAlias": "@xano/cli",
865
1013
  "pluginName": "@xano/cli",
866
1014
  "pluginType": "core",
@@ -870,8 +1018,8 @@
870
1018
  "relativePath": [
871
1019
  "dist",
872
1020
  "commands",
873
- "function",
874
- "get",
1021
+ "branch",
1022
+ "delete",
875
1023
  "index.js"
876
1024
  ]
877
1025
  },
@@ -1000,154 +1148,6 @@
1000
1148
  "index.js"
1001
1149
  ]
1002
1150
  },
1003
- "profile:create": {
1004
- "aliases": [],
1005
- "args": {
1006
- "name": {
1007
- "description": "Profile name",
1008
- "name": "name",
1009
- "required": true
1010
- }
1011
- },
1012
- "description": "Create a new profile configuration",
1013
- "examples": [
1014
- "$ 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",
1015
- "$ 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",
1016
- "$ 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",
1017
- "$ 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",
1018
- "$ 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"
1019
- ],
1020
- "flags": {
1021
- "access_token": {
1022
- "char": "t",
1023
- "description": "Access token for the Xano Metadata API",
1024
- "name": "access_token",
1025
- "required": true,
1026
- "hasDynamicHelp": false,
1027
- "multiple": false,
1028
- "type": "option"
1029
- },
1030
- "account_origin": {
1031
- "char": "a",
1032
- "description": "Account origin URL. Optional for self hosted installs.",
1033
- "name": "account_origin",
1034
- "required": false,
1035
- "hasDynamicHelp": false,
1036
- "multiple": false,
1037
- "type": "option"
1038
- },
1039
- "branch": {
1040
- "char": "b",
1041
- "description": "Branch name",
1042
- "name": "branch",
1043
- "required": false,
1044
- "hasDynamicHelp": false,
1045
- "multiple": false,
1046
- "type": "option"
1047
- },
1048
- "default": {
1049
- "description": "Set this profile as the default",
1050
- "name": "default",
1051
- "required": false,
1052
- "allowNo": false,
1053
- "type": "boolean"
1054
- },
1055
- "instance_origin": {
1056
- "char": "i",
1057
- "description": "Instance origin URL",
1058
- "name": "instance_origin",
1059
- "required": true,
1060
- "hasDynamicHelp": false,
1061
- "multiple": false,
1062
- "type": "option"
1063
- },
1064
- "project": {
1065
- "char": "j",
1066
- "description": "Project name",
1067
- "name": "project",
1068
- "required": false,
1069
- "hasDynamicHelp": false,
1070
- "multiple": false,
1071
- "type": "option"
1072
- },
1073
- "run_base_url": {
1074
- "char": "r",
1075
- "description": "Xano Run API base URL (default: https://app.xano.com/)",
1076
- "name": "run_base_url",
1077
- "required": false,
1078
- "hasDynamicHelp": false,
1079
- "multiple": false,
1080
- "type": "option"
1081
- },
1082
- "workspace": {
1083
- "char": "w",
1084
- "description": "Workspace name",
1085
- "name": "workspace",
1086
- "required": false,
1087
- "hasDynamicHelp": false,
1088
- "multiple": false,
1089
- "type": "option"
1090
- }
1091
- },
1092
- "hasDynamicHelp": false,
1093
- "hiddenAliases": [],
1094
- "id": "profile:create",
1095
- "pluginAlias": "@xano/cli",
1096
- "pluginName": "@xano/cli",
1097
- "pluginType": "core",
1098
- "strict": true,
1099
- "enableJsonFlag": false,
1100
- "isESM": true,
1101
- "relativePath": [
1102
- "dist",
1103
- "commands",
1104
- "profile",
1105
- "create",
1106
- "index.js"
1107
- ]
1108
- },
1109
- "profile:delete": {
1110
- "aliases": [],
1111
- "args": {
1112
- "name": {
1113
- "description": "Profile name to delete",
1114
- "name": "name",
1115
- "required": true
1116
- }
1117
- },
1118
- "description": "Delete a profile configuration",
1119
- "examples": [
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"
1123
- ],
1124
- "flags": {
1125
- "force": {
1126
- "char": "f",
1127
- "description": "Skip confirmation prompt",
1128
- "name": "force",
1129
- "required": false,
1130
- "allowNo": false,
1131
- "type": "boolean"
1132
- }
1133
- },
1134
- "hasDynamicHelp": false,
1135
- "hiddenAliases": [],
1136
- "id": "profile:delete",
1137
- "pluginAlias": "@xano/cli",
1138
- "pluginName": "@xano/cli",
1139
- "pluginType": "core",
1140
- "strict": true,
1141
- "enableJsonFlag": false,
1142
- "isESM": true,
1143
- "relativePath": [
1144
- "dist",
1145
- "commands",
1146
- "profile",
1147
- "delete",
1148
- "index.js"
1149
- ]
1150
- },
1151
1151
  "profile:edit": {
1152
1152
  "aliases": [],
1153
1153
  "args": {
@@ -1290,121 +1290,24 @@
1290
1290
  "isESM": true,
1291
1291
  "relativePath": [
1292
1292
  "dist",
1293
- "commands",
1294
- "profile",
1295
- "edit",
1296
- "index.js"
1297
- ]
1298
- },
1299
- "profile:get-default": {
1300
- "aliases": [],
1301
- "args": {},
1302
- "description": "Get the current default profile name",
1303
- "examples": [
1304
- "$ xano profile:get-default\nproduction\n",
1305
- "$ xano profile:get-default\nNo default profile set\n"
1306
- ],
1307
- "flags": {},
1308
- "hasDynamicHelp": false,
1309
- "hiddenAliases": [],
1310
- "id": "profile:get-default",
1311
- "pluginAlias": "@xano/cli",
1312
- "pluginName": "@xano/cli",
1313
- "pluginType": "core",
1314
- "strict": true,
1315
- "enableJsonFlag": false,
1316
- "isESM": true,
1317
- "relativePath": [
1318
- "dist",
1319
- "commands",
1320
- "profile",
1321
- "get-default",
1322
- "index.js"
1323
- ]
1324
- },
1325
- "profile:list": {
1326
- "aliases": [],
1327
- "args": {},
1328
- "description": "List all available profile configurations",
1329
- "examples": [
1330
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1331
- "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1332
- "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
1333
- ],
1334
- "flags": {
1335
- "details": {
1336
- "char": "d",
1337
- "description": "Show detailed information for each profile",
1338
- "name": "details",
1339
- "required": false,
1340
- "allowNo": false,
1341
- "type": "boolean"
1342
- }
1343
- },
1344
- "hasDynamicHelp": false,
1345
- "hiddenAliases": [],
1346
- "id": "profile:list",
1347
- "pluginAlias": "@xano/cli",
1348
- "pluginName": "@xano/cli",
1349
- "pluginType": "core",
1350
- "strict": true,
1351
- "enableJsonFlag": false,
1352
- "isESM": true,
1353
- "relativePath": [
1354
- "dist",
1355
- "commands",
1356
- "profile",
1357
- "list",
1358
- "index.js"
1359
- ]
1360
- },
1361
- "profile:me": {
1362
- "aliases": [],
1363
- "args": {},
1364
- "description": "Get information about the currently authenticated user",
1365
- "examples": [
1366
- "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1367
- "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1368
- "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
1369
- ],
1370
- "flags": {
1371
- "profile": {
1372
- "char": "p",
1373
- "description": "Profile to use for this command",
1374
- "env": "XANO_PROFILE",
1375
- "name": "profile",
1376
- "required": false,
1377
- "hasDynamicHelp": false,
1378
- "multiple": false,
1379
- "type": "option"
1380
- },
1381
- "verbose": {
1382
- "char": "v",
1383
- "description": "Show detailed request/response information",
1384
- "env": "XANO_VERBOSE",
1385
- "name": "verbose",
1386
- "required": false,
1387
- "allowNo": false,
1388
- "type": "boolean"
1389
- },
1390
- "output": {
1391
- "char": "o",
1392
- "description": "Output format",
1393
- "name": "output",
1394
- "required": false,
1395
- "default": "summary",
1396
- "hasDynamicHelp": false,
1397
- "multiple": false,
1398
- "options": [
1399
- "summary",
1400
- "json"
1401
- ],
1402
- "type": "option"
1403
- }
1404
- },
1293
+ "commands",
1294
+ "profile",
1295
+ "edit",
1296
+ "index.js"
1297
+ ]
1298
+ },
1299
+ "profile:get-default": {
1300
+ "aliases": [],
1301
+ "args": {},
1302
+ "description": "Get the current default profile name",
1303
+ "examples": [
1304
+ "$ xano profile:get-default\nproduction\n",
1305
+ "$ xano profile:get-default\nNo default profile set\n"
1306
+ ],
1307
+ "flags": {},
1405
1308
  "hasDynamicHelp": false,
1406
1309
  "hiddenAliases": [],
1407
- "id": "profile:me",
1310
+ "id": "profile:get-default",
1408
1311
  "pluginAlias": "@xano/cli",
1409
1312
  "pluginName": "@xano/cli",
1410
1313
  "pluginType": "core",
@@ -1415,7 +1318,7 @@
1415
1318
  "dist",
1416
1319
  "commands",
1417
1320
  "profile",
1418
- "me",
1321
+ "get-default",
1419
1322
  "index.js"
1420
1323
  ]
1421
1324
  },
@@ -1548,6 +1451,103 @@
1548
1451
  "index.js"
1549
1452
  ]
1550
1453
  },
1454
+ "profile:list": {
1455
+ "aliases": [],
1456
+ "args": {},
1457
+ "description": "List all available profile configurations",
1458
+ "examples": [
1459
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1460
+ "$ 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",
1461
+ "$ 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"
1462
+ ],
1463
+ "flags": {
1464
+ "details": {
1465
+ "char": "d",
1466
+ "description": "Show detailed information for each profile",
1467
+ "name": "details",
1468
+ "required": false,
1469
+ "allowNo": false,
1470
+ "type": "boolean"
1471
+ }
1472
+ },
1473
+ "hasDynamicHelp": false,
1474
+ "hiddenAliases": [],
1475
+ "id": "profile:list",
1476
+ "pluginAlias": "@xano/cli",
1477
+ "pluginName": "@xano/cli",
1478
+ "pluginType": "core",
1479
+ "strict": true,
1480
+ "enableJsonFlag": false,
1481
+ "isESM": true,
1482
+ "relativePath": [
1483
+ "dist",
1484
+ "commands",
1485
+ "profile",
1486
+ "list",
1487
+ "index.js"
1488
+ ]
1489
+ },
1490
+ "profile:me": {
1491
+ "aliases": [],
1492
+ "args": {},
1493
+ "description": "Get information about the currently authenticated user",
1494
+ "examples": [
1495
+ "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1496
+ "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1497
+ "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
1498
+ ],
1499
+ "flags": {
1500
+ "profile": {
1501
+ "char": "p",
1502
+ "description": "Profile to use for this command",
1503
+ "env": "XANO_PROFILE",
1504
+ "name": "profile",
1505
+ "required": false,
1506
+ "hasDynamicHelp": false,
1507
+ "multiple": false,
1508
+ "type": "option"
1509
+ },
1510
+ "verbose": {
1511
+ "char": "v",
1512
+ "description": "Show detailed request/response information",
1513
+ "env": "XANO_VERBOSE",
1514
+ "name": "verbose",
1515
+ "required": false,
1516
+ "allowNo": false,
1517
+ "type": "boolean"
1518
+ },
1519
+ "output": {
1520
+ "char": "o",
1521
+ "description": "Output format",
1522
+ "name": "output",
1523
+ "required": false,
1524
+ "default": "summary",
1525
+ "hasDynamicHelp": false,
1526
+ "multiple": false,
1527
+ "options": [
1528
+ "summary",
1529
+ "json"
1530
+ ],
1531
+ "type": "option"
1532
+ }
1533
+ },
1534
+ "hasDynamicHelp": false,
1535
+ "hiddenAliases": [],
1536
+ "id": "profile:me",
1537
+ "pluginAlias": "@xano/cli",
1538
+ "pluginName": "@xano/cli",
1539
+ "pluginType": "core",
1540
+ "strict": true,
1541
+ "enableJsonFlag": false,
1542
+ "isESM": true,
1543
+ "relativePath": [
1544
+ "dist",
1545
+ "commands",
1546
+ "profile",
1547
+ "me",
1548
+ "index.js"
1549
+ ]
1550
+ },
1551
1551
  "run:exec": {
1552
1552
  "aliases": [],
1553
1553
  "args": {
@@ -1838,85 +1838,6 @@
1838
1838
  "index.js"
1839
1839
  ]
1840
1840
  },
1841
- "workspace:create": {
1842
- "aliases": [],
1843
- "args": {},
1844
- "description": "Create a new workspace via the Xano Metadata API",
1845
- "examples": [
1846
- "$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
1847
- "$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
1848
- "$ xano workspace create -n \"new-project\" -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
1849
- ],
1850
- "flags": {
1851
- "profile": {
1852
- "char": "p",
1853
- "description": "Profile to use for this command",
1854
- "env": "XANO_PROFILE",
1855
- "name": "profile",
1856
- "required": false,
1857
- "hasDynamicHelp": false,
1858
- "multiple": false,
1859
- "type": "option"
1860
- },
1861
- "verbose": {
1862
- "char": "v",
1863
- "description": "Show detailed request/response information",
1864
- "env": "XANO_VERBOSE",
1865
- "name": "verbose",
1866
- "required": false,
1867
- "allowNo": false,
1868
- "type": "boolean"
1869
- },
1870
- "description": {
1871
- "char": "d",
1872
- "description": "Description for the workspace",
1873
- "name": "description",
1874
- "required": false,
1875
- "hasDynamicHelp": false,
1876
- "multiple": false,
1877
- "type": "option"
1878
- },
1879
- "name": {
1880
- "char": "n",
1881
- "description": "Name of the workspace",
1882
- "name": "name",
1883
- "required": true,
1884
- "hasDynamicHelp": false,
1885
- "multiple": false,
1886
- "type": "option"
1887
- },
1888
- "output": {
1889
- "char": "o",
1890
- "description": "Output format",
1891
- "name": "output",
1892
- "required": false,
1893
- "default": "summary",
1894
- "hasDynamicHelp": false,
1895
- "multiple": false,
1896
- "options": [
1897
- "summary",
1898
- "json"
1899
- ],
1900
- "type": "option"
1901
- }
1902
- },
1903
- "hasDynamicHelp": false,
1904
- "hiddenAliases": [],
1905
- "id": "workspace:create",
1906
- "pluginAlias": "@xano/cli",
1907
- "pluginName": "@xano/cli",
1908
- "pluginType": "core",
1909
- "strict": true,
1910
- "enableJsonFlag": false,
1911
- "isESM": true,
1912
- "relativePath": [
1913
- "dist",
1914
- "commands",
1915
- "workspace",
1916
- "create",
1917
- "index.js"
1918
- ]
1919
- },
1920
1841
  "workspace:delete": {
1921
1842
  "aliases": [],
1922
1843
  "args": {
@@ -2071,80 +1992,13 @@
2071
1992
  "description": "Enable or disable swagger documentation",
2072
1993
  "name": "swagger",
2073
1994
  "required": false,
2074
- "allowNo": true,
2075
- "type": "boolean"
2076
- }
2077
- },
2078
- "hasDynamicHelp": false,
2079
- "hiddenAliases": [],
2080
- "id": "workspace:edit",
2081
- "pluginAlias": "@xano/cli",
2082
- "pluginName": "@xano/cli",
2083
- "pluginType": "core",
2084
- "strict": true,
2085
- "enableJsonFlag": false,
2086
- "isESM": true,
2087
- "relativePath": [
2088
- "dist",
2089
- "commands",
2090
- "workspace",
2091
- "edit",
2092
- "index.js"
2093
- ]
2094
- },
2095
- "workspace:get": {
2096
- "aliases": [],
2097
- "args": {
2098
- "workspace_id": {
2099
- "description": "Workspace ID to get details for (uses profile workspace if not provided)",
2100
- "name": "workspace_id",
2101
- "required": false
2102
- }
2103
- },
2104
- "description": "Get details of a specific workspace from the Xano Metadata API",
2105
- "examples": [
2106
- "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
2107
- "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
2108
- "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
2109
- ],
2110
- "flags": {
2111
- "profile": {
2112
- "char": "p",
2113
- "description": "Profile to use for this command",
2114
- "env": "XANO_PROFILE",
2115
- "name": "profile",
2116
- "required": false,
2117
- "hasDynamicHelp": false,
2118
- "multiple": false,
2119
- "type": "option"
2120
- },
2121
- "verbose": {
2122
- "char": "v",
2123
- "description": "Show detailed request/response information",
2124
- "env": "XANO_VERBOSE",
2125
- "name": "verbose",
2126
- "required": false,
2127
- "allowNo": false,
2128
- "type": "boolean"
2129
- },
2130
- "output": {
2131
- "char": "o",
2132
- "description": "Output format",
2133
- "name": "output",
2134
- "required": false,
2135
- "default": "summary",
2136
- "hasDynamicHelp": false,
2137
- "multiple": false,
2138
- "options": [
2139
- "summary",
2140
- "json"
2141
- ],
2142
- "type": "option"
1995
+ "allowNo": true,
1996
+ "type": "boolean"
2143
1997
  }
2144
1998
  },
2145
1999
  "hasDynamicHelp": false,
2146
2000
  "hiddenAliases": [],
2147
- "id": "workspace:get",
2001
+ "id": "workspace:edit",
2148
2002
  "pluginAlias": "@xano/cli",
2149
2003
  "pluginName": "@xano/cli",
2150
2004
  "pluginType": "core",
@@ -2155,7 +2009,7 @@
2155
2009
  "dist",
2156
2010
  "commands",
2157
2011
  "workspace",
2158
- "get",
2012
+ "edit",
2159
2013
  "index.js"
2160
2014
  ]
2161
2015
  },
@@ -2250,7 +2104,8 @@
2250
2104
  },
2251
2105
  "verbose": {
2252
2106
  "char": "v",
2253
- "description": "Show request details",
2107
+ "description": "Show detailed request/response information",
2108
+ "env": "XANO_VERBOSE",
2254
2109
  "name": "verbose",
2255
2110
  "required": false,
2256
2111
  "allowNo": false,
@@ -2306,6 +2161,85 @@
2306
2161
  "index.js"
2307
2162
  ]
2308
2163
  },
2164
+ "workspace:create": {
2165
+ "aliases": [],
2166
+ "args": {},
2167
+ "description": "Create a new workspace via the Xano Metadata API",
2168
+ "examples": [
2169
+ "$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
2170
+ "$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
2171
+ "$ xano workspace create -n \"new-project\" -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
2172
+ ],
2173
+ "flags": {
2174
+ "profile": {
2175
+ "char": "p",
2176
+ "description": "Profile to use for this command",
2177
+ "env": "XANO_PROFILE",
2178
+ "name": "profile",
2179
+ "required": false,
2180
+ "hasDynamicHelp": false,
2181
+ "multiple": false,
2182
+ "type": "option"
2183
+ },
2184
+ "verbose": {
2185
+ "char": "v",
2186
+ "description": "Show detailed request/response information",
2187
+ "env": "XANO_VERBOSE",
2188
+ "name": "verbose",
2189
+ "required": false,
2190
+ "allowNo": false,
2191
+ "type": "boolean"
2192
+ },
2193
+ "description": {
2194
+ "char": "d",
2195
+ "description": "Description for the workspace",
2196
+ "name": "description",
2197
+ "required": false,
2198
+ "hasDynamicHelp": false,
2199
+ "multiple": false,
2200
+ "type": "option"
2201
+ },
2202
+ "name": {
2203
+ "char": "n",
2204
+ "description": "Name of the workspace",
2205
+ "name": "name",
2206
+ "required": true,
2207
+ "hasDynamicHelp": false,
2208
+ "multiple": false,
2209
+ "type": "option"
2210
+ },
2211
+ "output": {
2212
+ "char": "o",
2213
+ "description": "Output format",
2214
+ "name": "output",
2215
+ "required": false,
2216
+ "default": "summary",
2217
+ "hasDynamicHelp": false,
2218
+ "multiple": false,
2219
+ "options": [
2220
+ "summary",
2221
+ "json"
2222
+ ],
2223
+ "type": "option"
2224
+ }
2225
+ },
2226
+ "hasDynamicHelp": false,
2227
+ "hiddenAliases": [],
2228
+ "id": "workspace:create",
2229
+ "pluginAlias": "@xano/cli",
2230
+ "pluginName": "@xano/cli",
2231
+ "pluginType": "core",
2232
+ "strict": true,
2233
+ "enableJsonFlag": false,
2234
+ "isESM": true,
2235
+ "relativePath": [
2236
+ "dist",
2237
+ "commands",
2238
+ "workspace",
2239
+ "create",
2240
+ "index.js"
2241
+ ]
2242
+ },
2309
2243
  "workspace:push": {
2310
2244
  "aliases": [],
2311
2245
  "args": {
@@ -2335,7 +2269,8 @@
2335
2269
  },
2336
2270
  "verbose": {
2337
2271
  "char": "v",
2338
- "description": "Show request details",
2272
+ "description": "Show detailed request/response information",
2273
+ "env": "XANO_VERBOSE",
2339
2274
  "name": "verbose",
2340
2275
  "required": false,
2341
2276
  "allowNo": false,
@@ -2437,19 +2372,20 @@
2437
2372
  "index.js"
2438
2373
  ]
2439
2374
  },
2440
- "run:env:get": {
2375
+ "workspace:get": {
2441
2376
  "aliases": [],
2442
2377
  "args": {
2443
- "name": {
2444
- "description": "Environment variable name",
2445
- "name": "name",
2446
- "required": true
2378
+ "workspace_id": {
2379
+ "description": "Workspace ID to get details for (uses profile workspace if not provided)",
2380
+ "name": "workspace_id",
2381
+ "required": false
2447
2382
  }
2448
2383
  },
2449
- "description": "Get an environment variable value",
2384
+ "description": "Get details of a specific workspace from the Xano Metadata API",
2450
2385
  "examples": [
2451
- "$ xano run env get API_KEY\nmy-secret-api-key\n",
2452
- "$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
2386
+ "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
2387
+ "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
2388
+ "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
2453
2389
  ],
2454
2390
  "flags": {
2455
2391
  "profile": {
@@ -2476,11 +2412,11 @@
2476
2412
  "description": "Output format",
2477
2413
  "name": "output",
2478
2414
  "required": false,
2479
- "default": "value",
2415
+ "default": "summary",
2480
2416
  "hasDynamicHelp": false,
2481
2417
  "multiple": false,
2482
2418
  "options": [
2483
- "value",
2419
+ "summary",
2484
2420
  "json"
2485
2421
  ],
2486
2422
  "type": "option"
@@ -2488,17 +2424,17 @@
2488
2424
  },
2489
2425
  "hasDynamicHelp": false,
2490
2426
  "hiddenAliases": [],
2491
- "id": "run:env:get",
2427
+ "id": "workspace:get",
2492
2428
  "pluginAlias": "@xano/cli",
2493
2429
  "pluginName": "@xano/cli",
2494
2430
  "pluginType": "core",
2495
2431
  "strict": true,
2432
+ "enableJsonFlag": false,
2496
2433
  "isESM": true,
2497
2434
  "relativePath": [
2498
2435
  "dist",
2499
2436
  "commands",
2500
- "run",
2501
- "env",
2437
+ "workspace",
2502
2438
  "get",
2503
2439
  "index.js"
2504
2440
  ]
@@ -2577,142 +2513,10 @@
2577
2513
  "required": true
2578
2514
  }
2579
2515
  },
2580
- "description": "Set an environment variable",
2581
- "examples": [
2582
- "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
2583
- "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
2584
- ],
2585
- "flags": {
2586
- "profile": {
2587
- "char": "p",
2588
- "description": "Profile to use for this command",
2589
- "env": "XANO_PROFILE",
2590
- "name": "profile",
2591
- "required": false,
2592
- "hasDynamicHelp": false,
2593
- "multiple": false,
2594
- "type": "option"
2595
- },
2596
- "verbose": {
2597
- "char": "v",
2598
- "description": "Show detailed request/response information",
2599
- "env": "XANO_VERBOSE",
2600
- "name": "verbose",
2601
- "required": false,
2602
- "allowNo": false,
2603
- "type": "boolean"
2604
- }
2605
- },
2606
- "hasDynamicHelp": false,
2607
- "hiddenAliases": [],
2608
- "id": "run:env:set",
2609
- "pluginAlias": "@xano/cli",
2610
- "pluginName": "@xano/cli",
2611
- "pluginType": "core",
2612
- "strict": true,
2613
- "isESM": true,
2614
- "relativePath": [
2615
- "dist",
2616
- "commands",
2617
- "run",
2618
- "env",
2619
- "set",
2620
- "index.js"
2621
- ]
2622
- },
2623
- "run:projects:create": {
2624
- "aliases": [],
2625
- "args": {},
2626
- "description": "Create a new project",
2627
- "examples": [
2628
- "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2629
- "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2630
- "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
2631
- ],
2632
- "flags": {
2633
- "profile": {
2634
- "char": "p",
2635
- "description": "Profile to use for this command",
2636
- "env": "XANO_PROFILE",
2637
- "name": "profile",
2638
- "required": false,
2639
- "hasDynamicHelp": false,
2640
- "multiple": false,
2641
- "type": "option"
2642
- },
2643
- "verbose": {
2644
- "char": "v",
2645
- "description": "Show detailed request/response information",
2646
- "env": "XANO_VERBOSE",
2647
- "name": "verbose",
2648
- "required": false,
2649
- "allowNo": false,
2650
- "type": "boolean"
2651
- },
2652
- "description": {
2653
- "char": "d",
2654
- "description": "Project description",
2655
- "name": "description",
2656
- "required": false,
2657
- "default": "",
2658
- "hasDynamicHelp": false,
2659
- "multiple": false,
2660
- "type": "option"
2661
- },
2662
- "name": {
2663
- "char": "n",
2664
- "description": "Project name",
2665
- "name": "name",
2666
- "required": true,
2667
- "hasDynamicHelp": false,
2668
- "multiple": false,
2669
- "type": "option"
2670
- },
2671
- "output": {
2672
- "char": "o",
2673
- "description": "Output format",
2674
- "name": "output",
2675
- "required": false,
2676
- "default": "summary",
2677
- "hasDynamicHelp": false,
2678
- "multiple": false,
2679
- "options": [
2680
- "summary",
2681
- "json"
2682
- ],
2683
- "type": "option"
2684
- }
2685
- },
2686
- "hasDynamicHelp": false,
2687
- "hiddenAliases": [],
2688
- "id": "run:projects:create",
2689
- "pluginAlias": "@xano/cli",
2690
- "pluginName": "@xano/cli",
2691
- "pluginType": "core",
2692
- "strict": true,
2693
- "isESM": true,
2694
- "relativePath": [
2695
- "dist",
2696
- "commands",
2697
- "run",
2698
- "projects",
2699
- "create",
2700
- "index.js"
2701
- ]
2702
- },
2703
- "run:projects:delete": {
2704
- "aliases": [],
2705
- "args": {
2706
- "projectId": {
2707
- "description": "Project ID to delete",
2708
- "name": "projectId",
2709
- "required": true
2710
- }
2711
- },
2712
- "description": "Delete a project",
2516
+ "description": "Set an environment variable",
2713
2517
  "examples": [
2714
- "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2715
- "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2518
+ "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
2519
+ "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
2716
2520
  ],
2717
2521
  "flags": {
2718
2522
  "profile": {
@@ -2733,19 +2537,11 @@
2733
2537
  "required": false,
2734
2538
  "allowNo": false,
2735
2539
  "type": "boolean"
2736
- },
2737
- "force": {
2738
- "char": "f",
2739
- "description": "Skip confirmation prompt",
2740
- "name": "force",
2741
- "required": false,
2742
- "allowNo": false,
2743
- "type": "boolean"
2744
2540
  }
2745
2541
  },
2746
2542
  "hasDynamicHelp": false,
2747
2543
  "hiddenAliases": [],
2748
- "id": "run:projects:delete",
2544
+ "id": "run:env:set",
2749
2545
  "pluginAlias": "@xano/cli",
2750
2546
  "pluginName": "@xano/cli",
2751
2547
  "pluginType": "core",
@@ -2755,18 +2551,24 @@
2755
2551
  "dist",
2756
2552
  "commands",
2757
2553
  "run",
2758
- "projects",
2759
- "delete",
2554
+ "env",
2555
+ "set",
2760
2556
  "index.js"
2761
2557
  ]
2762
2558
  },
2763
- "run:projects:list": {
2559
+ "run:env:get": {
2764
2560
  "aliases": [],
2765
- "args": {},
2766
- "description": "List all projects",
2561
+ "args": {
2562
+ "name": {
2563
+ "description": "Environment variable name",
2564
+ "name": "name",
2565
+ "required": true
2566
+ }
2567
+ },
2568
+ "description": "Get an environment variable value",
2767
2569
  "examples": [
2768
- "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
2769
- "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
2570
+ "$ xano run env get API_KEY\nmy-secret-api-key\n",
2571
+ "$ xano run env get API_KEY -o json\n{ \"name\": \"API_KEY\", \"value\": \"my-secret-api-key\" }\n"
2770
2572
  ],
2771
2573
  "flags": {
2772
2574
  "profile": {
@@ -2793,11 +2595,11 @@
2793
2595
  "description": "Output format",
2794
2596
  "name": "output",
2795
2597
  "required": false,
2796
- "default": "table",
2598
+ "default": "value",
2797
2599
  "hasDynamicHelp": false,
2798
2600
  "multiple": false,
2799
2601
  "options": [
2800
- "table",
2602
+ "value",
2801
2603
  "json"
2802
2604
  ],
2803
2605
  "type": "option"
@@ -2805,7 +2607,7 @@
2805
2607
  },
2806
2608
  "hasDynamicHelp": false,
2807
2609
  "hiddenAliases": [],
2808
- "id": "run:projects:list",
2610
+ "id": "run:env:get",
2809
2611
  "pluginAlias": "@xano/cli",
2810
2612
  "pluginName": "@xano/cli",
2811
2613
  "pluginType": "core",
@@ -2815,25 +2617,19 @@
2815
2617
  "dist",
2816
2618
  "commands",
2817
2619
  "run",
2818
- "projects",
2819
- "list",
2620
+ "env",
2621
+ "get",
2820
2622
  "index.js"
2821
2623
  ]
2822
2624
  },
2823
- "run:projects:update": {
2625
+ "run:projects:create": {
2824
2626
  "aliases": [],
2825
- "args": {
2826
- "projectId": {
2827
- "description": "Project ID to update",
2828
- "name": "projectId",
2829
- "required": true
2830
- }
2831
- },
2832
- "description": "Update a project",
2627
+ "args": {},
2628
+ "description": "Create a new project",
2833
2629
  "examples": [
2834
- "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
2835
- "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
2836
- "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
2630
+ "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2631
+ "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2632
+ "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
2837
2633
  ],
2838
2634
  "flags": {
2839
2635
  "profile": {
@@ -2857,18 +2653,19 @@
2857
2653
  },
2858
2654
  "description": {
2859
2655
  "char": "d",
2860
- "description": "New project description",
2656
+ "description": "Project description",
2861
2657
  "name": "description",
2862
2658
  "required": false,
2659
+ "default": "",
2863
2660
  "hasDynamicHelp": false,
2864
2661
  "multiple": false,
2865
2662
  "type": "option"
2866
2663
  },
2867
2664
  "name": {
2868
2665
  "char": "n",
2869
- "description": "New project name",
2666
+ "description": "Project name",
2870
2667
  "name": "name",
2871
- "required": false,
2668
+ "required": true,
2872
2669
  "hasDynamicHelp": false,
2873
2670
  "multiple": false,
2874
2671
  "type": "option"
@@ -2890,7 +2687,7 @@
2890
2687
  },
2891
2688
  "hasDynamicHelp": false,
2892
2689
  "hiddenAliases": [],
2893
- "id": "run:projects:update",
2690
+ "id": "run:projects:create",
2894
2691
  "pluginAlias": "@xano/cli",
2895
2692
  "pluginName": "@xano/cli",
2896
2693
  "pluginType": "core",
@@ -2901,23 +2698,23 @@
2901
2698
  "commands",
2902
2699
  "run",
2903
2700
  "projects",
2904
- "update",
2701
+ "create",
2905
2702
  "index.js"
2906
2703
  ]
2907
2704
  },
2908
- "run:secrets:delete": {
2705
+ "run:projects:delete": {
2909
2706
  "aliases": [],
2910
2707
  "args": {
2911
- "name": {
2912
- "description": "Secret name",
2913
- "name": "name",
2708
+ "projectId": {
2709
+ "description": "Project ID to delete",
2710
+ "name": "projectId",
2914
2711
  "required": true
2915
2712
  }
2916
2713
  },
2917
- "description": "Delete a secret",
2714
+ "description": "Delete a project",
2918
2715
  "examples": [
2919
- "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
2920
- "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
2716
+ "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2717
+ "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2921
2718
  ],
2922
2719
  "flags": {
2923
2720
  "profile": {
@@ -2950,7 +2747,7 @@
2950
2747
  },
2951
2748
  "hasDynamicHelp": false,
2952
2749
  "hiddenAliases": [],
2953
- "id": "run:secrets:delete",
2750
+ "id": "run:projects:delete",
2954
2751
  "pluginAlias": "@xano/cli",
2955
2752
  "pluginName": "@xano/cli",
2956
2753
  "pluginType": "core",
@@ -2960,18 +2757,25 @@
2960
2757
  "dist",
2961
2758
  "commands",
2962
2759
  "run",
2963
- "secrets",
2760
+ "projects",
2964
2761
  "delete",
2965
2762
  "index.js"
2966
2763
  ]
2967
2764
  },
2968
- "run:secrets:list": {
2765
+ "run:projects:update": {
2969
2766
  "aliases": [],
2970
- "args": {},
2971
- "description": "List all secret keys",
2767
+ "args": {
2768
+ "projectId": {
2769
+ "description": "Project ID to update",
2770
+ "name": "projectId",
2771
+ "required": true
2772
+ }
2773
+ },
2774
+ "description": "Update a project",
2972
2775
  "examples": [
2973
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2974
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2776
+ "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
2777
+ "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
2778
+ "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
2975
2779
  ],
2976
2780
  "flags": {
2977
2781
  "profile": {
@@ -2993,16 +2797,34 @@
2993
2797
  "allowNo": false,
2994
2798
  "type": "boolean"
2995
2799
  },
2800
+ "description": {
2801
+ "char": "d",
2802
+ "description": "New project description",
2803
+ "name": "description",
2804
+ "required": false,
2805
+ "hasDynamicHelp": false,
2806
+ "multiple": false,
2807
+ "type": "option"
2808
+ },
2809
+ "name": {
2810
+ "char": "n",
2811
+ "description": "New project name",
2812
+ "name": "name",
2813
+ "required": false,
2814
+ "hasDynamicHelp": false,
2815
+ "multiple": false,
2816
+ "type": "option"
2817
+ },
2996
2818
  "output": {
2997
2819
  "char": "o",
2998
2820
  "description": "Output format",
2999
2821
  "name": "output",
3000
2822
  "required": false,
3001
- "default": "table",
2823
+ "default": "summary",
3002
2824
  "hasDynamicHelp": false,
3003
2825
  "multiple": false,
3004
2826
  "options": [
3005
- "table",
2827
+ "summary",
3006
2828
  "json"
3007
2829
  ],
3008
2830
  "type": "option"
@@ -3010,7 +2832,7 @@
3010
2832
  },
3011
2833
  "hasDynamicHelp": false,
3012
2834
  "hiddenAliases": [],
3013
- "id": "run:secrets:list",
2835
+ "id": "run:projects:update",
3014
2836
  "pluginAlias": "@xano/cli",
3015
2837
  "pluginName": "@xano/cli",
3016
2838
  "pluginType": "core",
@@ -3020,24 +2842,18 @@
3020
2842
  "dist",
3021
2843
  "commands",
3022
2844
  "run",
3023
- "secrets",
3024
- "list",
2845
+ "projects",
2846
+ "update",
3025
2847
  "index.js"
3026
2848
  ]
3027
2849
  },
3028
- "run:secrets:get": {
2850
+ "run:projects:list": {
3029
2851
  "aliases": [],
3030
- "args": {
3031
- "name": {
3032
- "description": "Secret name",
3033
- "name": "name",
3034
- "required": true
3035
- }
3036
- },
3037
- "description": "Get a secret value",
2852
+ "args": {},
2853
+ "description": "List all projects",
3038
2854
  "examples": [
3039
- "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
3040
- "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2855
+ "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
2856
+ "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
3041
2857
  ],
3042
2858
  "flags": {
3043
2859
  "profile": {
@@ -3064,11 +2880,11 @@
3064
2880
  "description": "Output format",
3065
2881
  "name": "output",
3066
2882
  "required": false,
3067
- "default": "value",
2883
+ "default": "table",
3068
2884
  "hasDynamicHelp": false,
3069
2885
  "multiple": false,
3070
2886
  "options": [
3071
- "value",
2887
+ "table",
3072
2888
  "json"
3073
2889
  ],
3074
2890
  "type": "option"
@@ -3076,7 +2892,7 @@
3076
2892
  },
3077
2893
  "hasDynamicHelp": false,
3078
2894
  "hiddenAliases": [],
3079
- "id": "run:secrets:get",
2895
+ "id": "run:projects:list",
3080
2896
  "pluginAlias": "@xano/cli",
3081
2897
  "pluginName": "@xano/cli",
3082
2898
  "pluginType": "core",
@@ -3086,8 +2902,8 @@
3086
2902
  "dist",
3087
2903
  "commands",
3088
2904
  "run",
3089
- "secrets",
3090
- "get",
2905
+ "projects",
2906
+ "list",
3091
2907
  "index.js"
3092
2908
  ]
3093
2909
  },
@@ -3151,19 +2967,19 @@
3151
2967
  "index.js"
3152
2968
  ]
3153
2969
  },
3154
- "run:secrets:set": {
2970
+ "run:sessions:get": {
3155
2971
  "aliases": [],
3156
2972
  "args": {
3157
- "name": {
3158
- "description": "Secret name",
3159
- "name": "name",
2973
+ "sessionId": {
2974
+ "description": "Session ID",
2975
+ "name": "sessionId",
3160
2976
  "required": true
3161
2977
  }
3162
2978
  },
3163
- "description": "Set a secret",
2979
+ "description": "Get session details",
3164
2980
  "examples": [
3165
- "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
3166
- "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
2981
+ "$ 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",
2982
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
3167
2983
  ],
3168
2984
  "flags": {
3169
2985
  "profile": {
@@ -3185,41 +3001,24 @@
3185
3001
  "allowNo": false,
3186
3002
  "type": "boolean"
3187
3003
  },
3188
- "repo": {
3189
- "char": "r",
3190
- "description": "Repository (for dockerconfigjson type)",
3191
- "name": "repo",
3004
+ "output": {
3005
+ "char": "o",
3006
+ "description": "Output format",
3007
+ "name": "output",
3192
3008
  "required": false,
3193
- "hasDynamicHelp": false,
3194
- "multiple": false,
3195
- "type": "option"
3196
- },
3197
- "type": {
3198
- "char": "t",
3199
- "description": "Secret type",
3200
- "name": "type",
3201
- "required": true,
3009
+ "default": "summary",
3202
3010
  "hasDynamicHelp": false,
3203
3011
  "multiple": false,
3204
3012
  "options": [
3205
- "dockerconfigjson",
3206
- "service-account-token"
3013
+ "summary",
3014
+ "json"
3207
3015
  ],
3208
3016
  "type": "option"
3209
- },
3210
- "value": {
3211
- "char": "v",
3212
- "description": "Secret value",
3213
- "name": "value",
3214
- "required": true,
3215
- "hasDynamicHelp": false,
3216
- "multiple": false,
3217
- "type": "option"
3218
3017
  }
3219
3018
  },
3220
3019
  "hasDynamicHelp": false,
3221
3020
  "hiddenAliases": [],
3222
- "id": "run:secrets:set",
3021
+ "id": "run:sessions:get",
3223
3022
  "pluginAlias": "@xano/cli",
3224
3023
  "pluginName": "@xano/cli",
3225
3024
  "pluginType": "core",
@@ -3229,12 +3028,12 @@
3229
3028
  "dist",
3230
3029
  "commands",
3231
3030
  "run",
3232
- "secrets",
3233
- "set",
3031
+ "sessions",
3032
+ "get",
3234
3033
  "index.js"
3235
3034
  ]
3236
3035
  },
3237
- "run:sessions:get": {
3036
+ "run:sink:get": {
3238
3037
  "aliases": [],
3239
3038
  "args": {
3240
3039
  "sessionId": {
@@ -3243,10 +3042,10 @@
3243
3042
  "required": true
3244
3043
  }
3245
3044
  },
3246
- "description": "Get session details",
3045
+ "description": "Get sink data for a completed session",
3247
3046
  "examples": [
3248
- "$ 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",
3249
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
3047
+ "$ 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",
3048
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
3250
3049
  ],
3251
3050
  "flags": {
3252
3051
  "profile": {
@@ -3285,7 +3084,7 @@
3285
3084
  },
3286
3085
  "hasDynamicHelp": false,
3287
3086
  "hiddenAliases": [],
3288
- "id": "run:sessions:get",
3087
+ "id": "run:sink:get",
3289
3088
  "pluginAlias": "@xano/cli",
3290
3089
  "pluginName": "@xano/cli",
3291
3090
  "pluginType": "core",
@@ -3295,7 +3094,7 @@
3295
3094
  "dist",
3296
3095
  "commands",
3297
3096
  "run",
3298
- "sessions",
3097
+ "sink",
3299
3098
  "get",
3300
3099
  "index.js"
3301
3100
  ]
@@ -3426,19 +3225,26 @@
3426
3225
  "index.js"
3427
3226
  ]
3428
3227
  },
3429
- "run:sessions:stop": {
3228
+ "static_host:build:get": {
3430
3229
  "aliases": [],
3431
3230
  "args": {
3432
- "sessionId": {
3433
- "description": "Session ID",
3434
- "name": "sessionId",
3231
+ "build_id": {
3232
+ "description": "Build ID",
3233
+ "name": "build_id",
3234
+ "required": true
3235
+ },
3236
+ "static_host": {
3237
+ "description": "Static Host name",
3238
+ "name": "static_host",
3435
3239
  "required": true
3436
3240
  }
3437
3241
  },
3438
- "description": "Stop a session",
3242
+ "description": "Get details of a specific build for a static host",
3439
3243
  "examples": [
3440
- "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
3441
- "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
3244
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3245
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3246
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
3247
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
3442
3248
  ],
3443
3249
  "flags": {
3444
3250
  "profile": {
@@ -3473,26 +3279,36 @@
3473
3279
  "json"
3474
3280
  ],
3475
3281
  "type": "option"
3282
+ },
3283
+ "workspace": {
3284
+ "char": "w",
3285
+ "description": "Workspace ID (optional if set in profile)",
3286
+ "name": "workspace",
3287
+ "required": false,
3288
+ "hasDynamicHelp": false,
3289
+ "multiple": false,
3290
+ "type": "option"
3476
3291
  }
3477
3292
  },
3478
3293
  "hasDynamicHelp": false,
3479
3294
  "hiddenAliases": [],
3480
- "id": "run:sessions:stop",
3295
+ "id": "static_host:build:get",
3481
3296
  "pluginAlias": "@xano/cli",
3482
3297
  "pluginName": "@xano/cli",
3483
3298
  "pluginType": "core",
3484
3299
  "strict": true,
3300
+ "enableJsonFlag": false,
3485
3301
  "isESM": true,
3486
3302
  "relativePath": [
3487
3303
  "dist",
3488
3304
  "commands",
3489
- "run",
3490
- "sessions",
3491
- "stop",
3305
+ "static_host",
3306
+ "build",
3307
+ "get",
3492
3308
  "index.js"
3493
3309
  ]
3494
3310
  },
3495
- "run:sink:get": {
3311
+ "run:sessions:stop": {
3496
3312
  "aliases": [],
3497
3313
  "args": {
3498
3314
  "sessionId": {
@@ -3501,10 +3317,10 @@
3501
3317
  "required": true
3502
3318
  }
3503
3319
  },
3504
- "description": "Get sink data for a completed session",
3320
+ "description": "Stop a session",
3505
3321
  "examples": [
3506
- "$ 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",
3507
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
3322
+ "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
3323
+ "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
3508
3324
  ],
3509
3325
  "flags": {
3510
3326
  "profile": {
@@ -3543,7 +3359,7 @@
3543
3359
  },
3544
3360
  "hasDynamicHelp": false,
3545
3361
  "hiddenAliases": [],
3546
- "id": "run:sink:get",
3362
+ "id": "run:sessions:stop",
3547
3363
  "pluginAlias": "@xano/cli",
3548
3364
  "pluginName": "@xano/cli",
3549
3365
  "pluginType": "core",
@@ -3553,8 +3369,8 @@
3553
3369
  "dist",
3554
3370
  "commands",
3555
3371
  "run",
3556
- "sink",
3557
- "get",
3372
+ "sessions",
3373
+ "stop",
3558
3374
  "index.js"
3559
3375
  ]
3560
3376
  },
@@ -3662,26 +3478,79 @@
3662
3478
  "index.js"
3663
3479
  ]
3664
3480
  },
3665
- "static_host:build:get": {
3481
+ "run:secrets:delete": {
3666
3482
  "aliases": [],
3667
3483
  "args": {
3668
- "build_id": {
3669
- "description": "Build ID",
3670
- "name": "build_id",
3484
+ "name": {
3485
+ "description": "Secret name",
3486
+ "name": "name",
3671
3487
  "required": true
3488
+ }
3489
+ },
3490
+ "description": "Delete a secret",
3491
+ "examples": [
3492
+ "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
3493
+ "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
3494
+ ],
3495
+ "flags": {
3496
+ "profile": {
3497
+ "char": "p",
3498
+ "description": "Profile to use for this command",
3499
+ "env": "XANO_PROFILE",
3500
+ "name": "profile",
3501
+ "required": false,
3502
+ "hasDynamicHelp": false,
3503
+ "multiple": false,
3504
+ "type": "option"
3672
3505
  },
3673
- "static_host": {
3674
- "description": "Static Host name",
3675
- "name": "static_host",
3506
+ "verbose": {
3507
+ "char": "v",
3508
+ "description": "Show detailed request/response information",
3509
+ "env": "XANO_VERBOSE",
3510
+ "name": "verbose",
3511
+ "required": false,
3512
+ "allowNo": false,
3513
+ "type": "boolean"
3514
+ },
3515
+ "force": {
3516
+ "char": "f",
3517
+ "description": "Skip confirmation prompt",
3518
+ "name": "force",
3519
+ "required": false,
3520
+ "allowNo": false,
3521
+ "type": "boolean"
3522
+ }
3523
+ },
3524
+ "hasDynamicHelp": false,
3525
+ "hiddenAliases": [],
3526
+ "id": "run:secrets:delete",
3527
+ "pluginAlias": "@xano/cli",
3528
+ "pluginName": "@xano/cli",
3529
+ "pluginType": "core",
3530
+ "strict": true,
3531
+ "isESM": true,
3532
+ "relativePath": [
3533
+ "dist",
3534
+ "commands",
3535
+ "run",
3536
+ "secrets",
3537
+ "delete",
3538
+ "index.js"
3539
+ ]
3540
+ },
3541
+ "run:secrets:get": {
3542
+ "aliases": [],
3543
+ "args": {
3544
+ "name": {
3545
+ "description": "Secret name",
3546
+ "name": "name",
3676
3547
  "required": true
3677
3548
  }
3678
3549
  },
3679
- "description": "Get details of a specific build for a static host",
3550
+ "description": "Get a secret value",
3680
3551
  "examples": [
3681
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3682
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
3683
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
3684
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
3552
+ "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
3553
+ "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
3685
3554
  ],
3686
3555
  "flags": {
3687
3556
  "profile": {
@@ -3708,40 +3577,113 @@
3708
3577
  "description": "Output format",
3709
3578
  "name": "output",
3710
3579
  "required": false,
3711
- "default": "summary",
3580
+ "default": "value",
3712
3581
  "hasDynamicHelp": false,
3713
3582
  "multiple": false,
3714
3583
  "options": [
3715
- "summary",
3584
+ "value",
3716
3585
  "json"
3717
3586
  ],
3718
3587
  "type": "option"
3588
+ }
3589
+ },
3590
+ "hasDynamicHelp": false,
3591
+ "hiddenAliases": [],
3592
+ "id": "run:secrets:get",
3593
+ "pluginAlias": "@xano/cli",
3594
+ "pluginName": "@xano/cli",
3595
+ "pluginType": "core",
3596
+ "strict": true,
3597
+ "isESM": true,
3598
+ "relativePath": [
3599
+ "dist",
3600
+ "commands",
3601
+ "run",
3602
+ "secrets",
3603
+ "get",
3604
+ "index.js"
3605
+ ]
3606
+ },
3607
+ "run:secrets:set": {
3608
+ "aliases": [],
3609
+ "args": {
3610
+ "name": {
3611
+ "description": "Secret name",
3612
+ "name": "name",
3613
+ "required": true
3614
+ }
3615
+ },
3616
+ "description": "Set a secret",
3617
+ "examples": [
3618
+ "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
3619
+ "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
3620
+ ],
3621
+ "flags": {
3622
+ "profile": {
3623
+ "char": "p",
3624
+ "description": "Profile to use for this command",
3625
+ "env": "XANO_PROFILE",
3626
+ "name": "profile",
3627
+ "required": false,
3628
+ "hasDynamicHelp": false,
3629
+ "multiple": false,
3630
+ "type": "option"
3719
3631
  },
3720
- "workspace": {
3721
- "char": "w",
3722
- "description": "Workspace ID (optional if set in profile)",
3723
- "name": "workspace",
3632
+ "verbose": {
3633
+ "char": "v",
3634
+ "description": "Show detailed request/response information",
3635
+ "env": "XANO_VERBOSE",
3636
+ "name": "verbose",
3637
+ "required": false,
3638
+ "allowNo": false,
3639
+ "type": "boolean"
3640
+ },
3641
+ "repo": {
3642
+ "char": "r",
3643
+ "description": "Repository (for dockerconfigjson type)",
3644
+ "name": "repo",
3724
3645
  "required": false,
3725
3646
  "hasDynamicHelp": false,
3726
3647
  "multiple": false,
3727
3648
  "type": "option"
3649
+ },
3650
+ "type": {
3651
+ "char": "t",
3652
+ "description": "Secret type",
3653
+ "name": "type",
3654
+ "required": true,
3655
+ "hasDynamicHelp": false,
3656
+ "multiple": false,
3657
+ "options": [
3658
+ "dockerconfigjson",
3659
+ "service-account-token"
3660
+ ],
3661
+ "type": "option"
3662
+ },
3663
+ "value": {
3664
+ "char": "v",
3665
+ "description": "Secret value",
3666
+ "name": "value",
3667
+ "required": true,
3668
+ "hasDynamicHelp": false,
3669
+ "multiple": false,
3670
+ "type": "option"
3728
3671
  }
3729
3672
  },
3730
3673
  "hasDynamicHelp": false,
3731
3674
  "hiddenAliases": [],
3732
- "id": "static_host:build:get",
3675
+ "id": "run:secrets:set",
3733
3676
  "pluginAlias": "@xano/cli",
3734
3677
  "pluginName": "@xano/cli",
3735
3678
  "pluginType": "core",
3736
3679
  "strict": true,
3737
- "enableJsonFlag": false,
3738
3680
  "isESM": true,
3739
3681
  "relativePath": [
3740
3682
  "dist",
3741
3683
  "commands",
3742
- "static_host",
3743
- "build",
3744
- "get",
3684
+ "run",
3685
+ "secrets",
3686
+ "set",
3745
3687
  "index.js"
3746
3688
  ]
3747
3689
  },
@@ -3840,7 +3782,67 @@
3840
3782
  "list",
3841
3783
  "index.js"
3842
3784
  ]
3785
+ },
3786
+ "run:secrets:list": {
3787
+ "aliases": [],
3788
+ "args": {},
3789
+ "description": "List all secret keys",
3790
+ "examples": [
3791
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
3792
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
3793
+ ],
3794
+ "flags": {
3795
+ "profile": {
3796
+ "char": "p",
3797
+ "description": "Profile to use for this command",
3798
+ "env": "XANO_PROFILE",
3799
+ "name": "profile",
3800
+ "required": false,
3801
+ "hasDynamicHelp": false,
3802
+ "multiple": false,
3803
+ "type": "option"
3804
+ },
3805
+ "verbose": {
3806
+ "char": "v",
3807
+ "description": "Show detailed request/response information",
3808
+ "env": "XANO_VERBOSE",
3809
+ "name": "verbose",
3810
+ "required": false,
3811
+ "allowNo": false,
3812
+ "type": "boolean"
3813
+ },
3814
+ "output": {
3815
+ "char": "o",
3816
+ "description": "Output format",
3817
+ "name": "output",
3818
+ "required": false,
3819
+ "default": "table",
3820
+ "hasDynamicHelp": false,
3821
+ "multiple": false,
3822
+ "options": [
3823
+ "table",
3824
+ "json"
3825
+ ],
3826
+ "type": "option"
3827
+ }
3828
+ },
3829
+ "hasDynamicHelp": false,
3830
+ "hiddenAliases": [],
3831
+ "id": "run:secrets:list",
3832
+ "pluginAlias": "@xano/cli",
3833
+ "pluginName": "@xano/cli",
3834
+ "pluginType": "core",
3835
+ "strict": true,
3836
+ "isESM": true,
3837
+ "relativePath": [
3838
+ "dist",
3839
+ "commands",
3840
+ "run",
3841
+ "secrets",
3842
+ "list",
3843
+ "index.js"
3844
+ ]
3843
3845
  }
3844
3846
  },
3845
- "version": "0.0.29"
3847
+ "version": "0.0.31"
3846
3848
  }