@xano/cli 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/base-command.d.ts +1 -3
  2. package/dist/base-command.js +5 -12
  3. package/dist/commands/function/create/index.d.ts +6 -7
  4. package/dist/commands/function/create/index.js +55 -55
  5. package/dist/commands/function/edit/index.d.ts +10 -11
  6. package/dist/commands/function/edit/index.js +162 -155
  7. package/dist/commands/function/get/index.d.ts +5 -6
  8. package/dist/commands/function/get/index.js +60 -55
  9. package/dist/commands/function/list/index.d.ts +5 -6
  10. package/dist/commands/function/list/index.js +52 -52
  11. package/dist/commands/profile/create/index.d.ts +6 -6
  12. package/dist/commands/profile/create/index.js +37 -37
  13. package/dist/commands/profile/delete/index.d.ts +2 -2
  14. package/dist/commands/profile/delete/index.js +9 -9
  15. package/dist/commands/profile/edit/index.d.ts +7 -8
  16. package/dist/commands/profile/edit/index.js +48 -48
  17. package/dist/commands/profile/get-default/index.js +1 -1
  18. package/dist/commands/profile/list/index.d.ts +2 -2
  19. package/dist/commands/profile/list/index.js +9 -9
  20. package/dist/commands/profile/me/index.d.ts +3 -4
  21. package/dist/commands/profile/me/index.js +21 -21
  22. package/dist/commands/profile/project/index.js +1 -1
  23. package/dist/commands/profile/set-default/index.js +1 -1
  24. package/dist/commands/profile/token/index.js +1 -1
  25. package/dist/commands/profile/wizard/index.d.ts +4 -5
  26. package/dist/commands/profile/wizard/index.js +108 -142
  27. package/dist/commands/run/env/delete/index.d.ts +2 -3
  28. package/dist/commands/run/env/delete/index.js +10 -10
  29. package/dist/commands/run/env/get/index.d.ts +2 -3
  30. package/dist/commands/run/env/get/index.js +11 -11
  31. package/dist/commands/run/env/list/index.d.ts +2 -3
  32. package/dist/commands/run/env/list/index.js +19 -17
  33. package/dist/commands/run/env/set/index.d.ts +2 -3
  34. package/dist/commands/run/env/set/index.js +5 -5
  35. package/dist/commands/run/exec/index.d.ts +8 -19
  36. package/dist/commands/run/exec/index.js +108 -186
  37. package/dist/commands/run/info/index.d.ts +4 -5
  38. package/dist/commands/run/info/index.js +27 -27
  39. package/dist/commands/run/projects/create/index.d.ts +3 -4
  40. package/dist/commands/run/projects/create/index.js +23 -23
  41. package/dist/commands/run/projects/delete/index.d.ts +2 -3
  42. package/dist/commands/run/projects/delete/index.js +10 -10
  43. package/dist/commands/run/projects/list/index.d.ts +2 -3
  44. package/dist/commands/run/projects/list/index.js +12 -12
  45. package/dist/commands/run/projects/update/index.d.ts +3 -4
  46. package/dist/commands/run/projects/update/index.js +21 -21
  47. package/dist/commands/run/secrets/delete/index.d.ts +2 -3
  48. package/dist/commands/run/secrets/delete/index.js +10 -10
  49. package/dist/commands/run/secrets/get/index.d.ts +2 -3
  50. package/dist/commands/run/secrets/get/index.js +11 -11
  51. package/dist/commands/run/secrets/list/index.d.ts +2 -3
  52. package/dist/commands/run/secrets/list/index.js +24 -22
  53. package/dist/commands/run/secrets/set/index.d.ts +3 -4
  54. package/dist/commands/run/secrets/set/index.js +16 -16
  55. package/dist/commands/run/sessions/delete/index.d.ts +2 -3
  56. package/dist/commands/run/sessions/delete/index.js +10 -10
  57. package/dist/commands/run/sessions/get/index.d.ts +2 -3
  58. package/dist/commands/run/sessions/get/index.js +11 -11
  59. package/dist/commands/run/sessions/list/index.d.ts +2 -3
  60. package/dist/commands/run/sessions/list/index.js +11 -11
  61. package/dist/commands/run/sessions/start/index.d.ts +2 -3
  62. package/dist/commands/run/sessions/start/index.js +11 -11
  63. package/dist/commands/run/sessions/stop/index.d.ts +2 -3
  64. package/dist/commands/run/sessions/stop/index.js +11 -11
  65. package/dist/commands/run/sink/get/index.d.ts +2 -3
  66. package/dist/commands/run/sink/get/index.js +11 -11
  67. package/dist/commands/static_host/build/create/index.d.ts +4 -5
  68. package/dist/commands/static_host/build/create/index.js +33 -33
  69. package/dist/commands/static_host/build/get/index.d.ts +4 -5
  70. package/dist/commands/static_host/build/get/index.js +20 -20
  71. package/dist/commands/static_host/build/list/index.d.ts +3 -4
  72. package/dist/commands/static_host/build/list/index.js +31 -31
  73. package/dist/commands/static_host/list/index.d.ts +3 -4
  74. package/dist/commands/static_host/list/index.js +31 -31
  75. package/dist/commands/workspace/list/index.d.ts +2 -3
  76. package/dist/commands/workspace/list/index.js +15 -15
  77. package/dist/commands/workspace/pull/index.d.ts +4 -5
  78. package/dist/commands/workspace/pull/index.js +52 -47
  79. package/dist/commands/workspace/push/index.d.ts +0 -1
  80. package/dist/commands/workspace/push/index.js +4 -4
  81. package/dist/help.d.ts +1 -1
  82. package/dist/lib/base-run-command.d.ts +6 -6
  83. package/dist/lib/base-run-command.js +6 -8
  84. package/dist/lib/run-http-client.d.ts +18 -24
  85. package/dist/lib/run-http-client.js +61 -96
  86. package/dist/lib/run-types.d.ts +80 -80
  87. package/oclif.manifest.json +888 -2031
  88. package/package.json +5 -2
  89. package/dist/commands/branch/create/index.d.ts +0 -17
  90. package/dist/commands/branch/create/index.js +0 -164
  91. package/dist/commands/branch/delete/index.d.ts +0 -18
  92. package/dist/commands/branch/delete/index.js +0 -156
  93. package/dist/commands/branch/edit/index.d.ts +0 -19
  94. package/dist/commands/branch/edit/index.js +0 -166
  95. package/dist/commands/branch/get/index.d.ts +0 -16
  96. package/dist/commands/branch/get/index.js +0 -135
  97. package/dist/commands/branch/list/index.d.ts +0 -18
  98. package/dist/commands/branch/list/index.js +0 -138
  99. package/dist/commands/branch/set-live/index.d.ts +0 -18
  100. package/dist/commands/branch/set-live/index.js +0 -155
  101. package/dist/commands/workspace/create/index.d.ts +0 -14
  102. package/dist/commands/workspace/create/index.js +0 -131
  103. package/dist/commands/workspace/delete/index.d.ts +0 -20
  104. package/dist/commands/workspace/delete/index.js +0 -141
  105. package/dist/commands/workspace/edit/index.d.ts +0 -22
  106. package/dist/commands/workspace/edit/index.js +0 -176
  107. package/dist/commands/workspace/get/index.d.ts +0 -18
  108. package/dist/commands/workspace/get/index.js +0 -136
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "commands": {
3
- "branch:create": {
3
+ "function:create": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Create a new branch by cloning from an existing branch",
6
+ "description": "Create a new function in a workspace",
7
7
  "examples": [
8
- "$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
9
- "$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
10
- "$ 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"
8
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
9
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
10
+ "$ 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",
11
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
12
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
11
13
  ],
12
14
  "flags": {
13
15
  "profile": {
@@ -20,41 +22,48 @@
20
22
  "multiple": false,
21
23
  "type": "option"
22
24
  },
23
- "verbose": {
24
- "char": "v",
25
- "description": "Show detailed request/response information",
26
- "env": "XANO_VERBOSE",
27
- "name": "verbose",
28
- "required": false,
29
- "allowNo": false,
30
- "type": "boolean"
31
- },
32
- "color": {
33
- "char": "c",
34
- "description": "Color hex code for the branch (e.g., \"#ebc346\")",
35
- "name": "color",
25
+ "workspace": {
26
+ "char": "w",
27
+ "description": "Workspace ID (optional if set in profile)",
28
+ "name": "workspace",
36
29
  "required": false,
37
30
  "hasDynamicHelp": false,
38
31
  "multiple": false,
39
32
  "type": "option"
40
33
  },
41
- "description": {
42
- "char": "d",
43
- "description": "Description for the new branch",
44
- "name": "description",
34
+ "file": {
35
+ "char": "f",
36
+ "description": "Path to file containing XanoScript code",
37
+ "exclusive": [
38
+ "stdin"
39
+ ],
40
+ "name": "file",
45
41
  "required": false,
46
42
  "hasDynamicHelp": false,
47
43
  "multiple": false,
48
44
  "type": "option"
49
45
  },
50
- "label": {
51
- "char": "l",
52
- "description": "Label for the new branch",
53
- "name": "label",
54
- "required": true,
55
- "hasDynamicHelp": false,
56
- "multiple": false,
57
- "type": "option"
46
+ "stdin": {
47
+ "char": "s",
48
+ "description": "Read XanoScript code from stdin",
49
+ "exclusive": [
50
+ "file"
51
+ ],
52
+ "name": "stdin",
53
+ "required": false,
54
+ "allowNo": false,
55
+ "type": "boolean"
56
+ },
57
+ "edit": {
58
+ "char": "e",
59
+ "dependsOn": [
60
+ "file"
61
+ ],
62
+ "description": "Open file in editor before creating function (requires --file)",
63
+ "name": "edit",
64
+ "required": false,
65
+ "allowNo": false,
66
+ "type": "boolean"
58
67
  },
59
68
  "output": {
60
69
  "char": "o",
@@ -69,30 +78,11 @@
69
78
  "json"
70
79
  ],
71
80
  "type": "option"
72
- },
73
- "source": {
74
- "char": "s",
75
- "description": "Source branch to clone from (defaults to \"v1\")",
76
- "name": "source",
77
- "required": false,
78
- "default": "v1",
79
- "hasDynamicHelp": false,
80
- "multiple": false,
81
- "type": "option"
82
- },
83
- "workspace": {
84
- "char": "w",
85
- "description": "Workspace ID (uses profile workspace if not provided)",
86
- "name": "workspace",
87
- "required": false,
88
- "hasDynamicHelp": false,
89
- "multiple": false,
90
- "type": "option"
91
81
  }
92
82
  },
93
83
  "hasDynamicHelp": false,
94
84
  "hiddenAliases": [],
95
- "id": "branch:create",
85
+ "id": "function:create",
96
86
  "pluginAlias": "@xano/cli",
97
87
  "pluginName": "@xano/cli",
98
88
  "pluginType": "core",
@@ -102,25 +92,30 @@
102
92
  "relativePath": [
103
93
  "dist",
104
94
  "commands",
105
- "branch",
95
+ "function",
106
96
  "create",
107
97
  "index.js"
108
98
  ]
109
99
  },
110
- "branch:delete": {
100
+ "function:edit": {
111
101
  "aliases": [],
112
102
  "args": {
113
- "branch_label": {
114
- "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
115
- "name": "branch_label",
116
- "required": true
103
+ "function_id": {
104
+ "description": "Function ID to edit",
105
+ "name": "function_id",
106
+ "required": false
117
107
  }
118
108
  },
119
- "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
109
+ "description": "Edit a function in a workspace",
120
110
  "examples": [
121
- "$ 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",
122
- "$ xano branch delete dev --force\nDeleted branch: dev\n",
123
- "$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
111
+ "$ 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",
112
+ "$ 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",
113
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
114
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
115
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
116
+ "$ 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",
117
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
118
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
124
119
  ],
125
120
  "flags": {
126
121
  "profile": {
@@ -133,19 +128,49 @@
133
128
  "multiple": false,
134
129
  "type": "option"
135
130
  },
136
- "verbose": {
137
- "char": "v",
138
- "description": "Show detailed request/response information",
139
- "env": "XANO_VERBOSE",
140
- "name": "verbose",
131
+ "workspace": {
132
+ "char": "w",
133
+ "description": "Workspace ID (optional if set in profile)",
134
+ "name": "workspace",
135
+ "required": false,
136
+ "hasDynamicHelp": false,
137
+ "multiple": false,
138
+ "type": "option"
139
+ },
140
+ "file": {
141
+ "char": "f",
142
+ "description": "Path to file containing XanoScript code",
143
+ "exclusive": [
144
+ "stdin"
145
+ ],
146
+ "name": "file",
147
+ "required": false,
148
+ "hasDynamicHelp": false,
149
+ "multiple": false,
150
+ "type": "option"
151
+ },
152
+ "stdin": {
153
+ "char": "s",
154
+ "description": "Read XanoScript code from stdin",
155
+ "exclusive": [
156
+ "file"
157
+ ],
158
+ "name": "stdin",
141
159
  "required": false,
142
160
  "allowNo": false,
143
161
  "type": "boolean"
144
162
  },
145
- "force": {
146
- "char": "f",
147
- "description": "Skip confirmation prompt",
148
- "name": "force",
163
+ "edit": {
164
+ "char": "e",
165
+ "description": "Open file in editor before updating function (requires --file)",
166
+ "name": "edit",
167
+ "required": false,
168
+ "allowNo": false,
169
+ "type": "boolean"
170
+ },
171
+ "publish": {
172
+ "description": "Publish the function after editing",
173
+ "name": "publish",
149
174
  "required": false,
150
175
  "allowNo": false,
151
176
  "type": "boolean"
@@ -163,20 +188,11 @@
163
188
  "json"
164
189
  ],
165
190
  "type": "option"
166
- },
167
- "workspace": {
168
- "char": "w",
169
- "description": "Workspace ID (uses profile workspace if not provided)",
170
- "name": "workspace",
171
- "required": false,
172
- "hasDynamicHelp": false,
173
- "multiple": false,
174
- "type": "option"
175
191
  }
176
192
  },
177
193
  "hasDynamicHelp": false,
178
194
  "hiddenAliases": [],
179
- "id": "branch:delete",
195
+ "id": "function:edit",
180
196
  "pluginAlias": "@xano/cli",
181
197
  "pluginName": "@xano/cli",
182
198
  "pluginType": "core",
@@ -186,25 +202,28 @@
186
202
  "relativePath": [
187
203
  "dist",
188
204
  "commands",
189
- "branch",
190
- "delete",
205
+ "function",
206
+ "edit",
191
207
  "index.js"
192
208
  ]
193
209
  },
194
- "branch:edit": {
210
+ "function:get": {
195
211
  "aliases": [],
196
212
  "args": {
197
- "branch_label": {
198
- "description": "Branch label to edit (cannot edit \"v1\" label)",
199
- "name": "branch_label",
200
- "required": true
213
+ "function_id": {
214
+ "description": "Function ID",
215
+ "name": "function_id",
216
+ "required": false
201
217
  }
202
218
  },
203
- "description": "Update an existing branch (cannot update \"v1\" label)",
219
+ "description": "Get a specific function from a workspace",
204
220
  "examples": [
205
- "$ xano branch edit dev --label development\nUpdated branch: development\n",
206
- "$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
207
- "$ 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"
221
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
222
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
223
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
224
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
225
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
226
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
208
227
  ],
209
228
  "flags": {
210
229
  "profile": {
@@ -217,37 +236,10 @@
217
236
  "multiple": false,
218
237
  "type": "option"
219
238
  },
220
- "verbose": {
221
- "char": "v",
222
- "description": "Show detailed request/response information",
223
- "env": "XANO_VERBOSE",
224
- "name": "verbose",
225
- "required": false,
226
- "allowNo": false,
227
- "type": "boolean"
228
- },
229
- "color": {
230
- "char": "c",
231
- "description": "New color hex code for the branch (e.g., \"#ff5733\")",
232
- "name": "color",
233
- "required": false,
234
- "hasDynamicHelp": false,
235
- "multiple": false,
236
- "type": "option"
237
- },
238
- "description": {
239
- "char": "d",
240
- "description": "New description for the branch",
241
- "name": "description",
242
- "required": false,
243
- "hasDynamicHelp": false,
244
- "multiple": false,
245
- "type": "option"
246
- },
247
- "label": {
248
- "char": "l",
249
- "description": "New label for the branch",
250
- "name": "label",
239
+ "workspace": {
240
+ "char": "w",
241
+ "description": "Workspace ID (optional if set in profile)",
242
+ "name": "workspace",
251
243
  "required": false,
252
244
  "hasDynamicHelp": false,
253
245
  "multiple": false,
@@ -263,23 +255,29 @@
263
255
  "multiple": false,
264
256
  "options": [
265
257
  "summary",
266
- "json"
258
+ "json",
259
+ "xs"
267
260
  ],
268
261
  "type": "option"
269
262
  },
270
- "workspace": {
271
- "char": "w",
272
- "description": "Workspace ID (uses profile workspace if not provided)",
273
- "name": "workspace",
263
+ "include_draft": {
264
+ "description": "Include draft version",
265
+ "name": "include_draft",
274
266
  "required": false,
275
- "hasDynamicHelp": false,
276
- "multiple": false,
277
- "type": "option"
267
+ "allowNo": false,
268
+ "type": "boolean"
269
+ },
270
+ "include_xanoscript": {
271
+ "description": "Include XanoScript in response",
272
+ "name": "include_xanoscript",
273
+ "required": false,
274
+ "allowNo": false,
275
+ "type": "boolean"
278
276
  }
279
277
  },
280
278
  "hasDynamicHelp": false,
281
279
  "hiddenAliases": [],
282
- "id": "branch:edit",
280
+ "id": "function:get",
283
281
  "pluginAlias": "@xano/cli",
284
282
  "pluginName": "@xano/cli",
285
283
  "pluginType": "core",
@@ -289,25 +287,20 @@
289
287
  "relativePath": [
290
288
  "dist",
291
289
  "commands",
292
- "branch",
293
- "edit",
290
+ "function",
291
+ "get",
294
292
  "index.js"
295
293
  ]
296
294
  },
297
- "branch:set-live": {
295
+ "function:list": {
298
296
  "aliases": [],
299
- "args": {
300
- "branch_label": {
301
- "description": "Branch label to set as live (use \"v1\" for default branch)",
302
- "name": "branch_label",
303
- "required": true
304
- }
305
- },
306
- "description": "Set a branch as the live (active) branch for API requests",
297
+ "args": {},
298
+ "description": "List all functions in a workspace from the Xano Metadata API",
307
299
  "examples": [
308
- "$ 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",
309
- "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
310
- "$ 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"
300
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
301
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
302
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
303
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
311
304
  ],
312
305
  "flags": {
313
306
  "profile": {
@@ -320,22 +313,14 @@
320
313
  "multiple": false,
321
314
  "type": "option"
322
315
  },
323
- "verbose": {
324
- "char": "v",
325
- "description": "Show detailed request/response information",
326
- "env": "XANO_VERBOSE",
327
- "name": "verbose",
328
- "required": false,
329
- "allowNo": false,
330
- "type": "boolean"
331
- },
332
- "force": {
333
- "char": "f",
334
- "description": "Skip confirmation prompt",
335
- "name": "force",
316
+ "workspace": {
317
+ "char": "w",
318
+ "description": "Workspace ID (optional if set in profile)",
319
+ "name": "workspace",
336
320
  "required": false,
337
- "allowNo": false,
338
- "type": "boolean"
321
+ "hasDynamicHelp": false,
322
+ "multiple": false,
323
+ "type": "option"
339
324
  },
340
325
  "output": {
341
326
  "char": "o",
@@ -351,162 +336,64 @@
351
336
  ],
352
337
  "type": "option"
353
338
  },
354
- "workspace": {
355
- "char": "w",
356
- "description": "Workspace ID (uses profile workspace if not provided)",
357
- "name": "workspace",
339
+ "include_draft": {
340
+ "description": "Include draft functions",
341
+ "name": "include_draft",
342
+ "required": false,
343
+ "allowNo": false,
344
+ "type": "boolean"
345
+ },
346
+ "include_xanoscript": {
347
+ "description": "Include XanoScript in response",
348
+ "name": "include_xanoscript",
358
349
  "required": false,
350
+ "allowNo": false,
351
+ "type": "boolean"
352
+ },
353
+ "page": {
354
+ "description": "Page number for pagination",
355
+ "name": "page",
356
+ "required": false,
357
+ "default": 1,
359
358
  "hasDynamicHelp": false,
360
359
  "multiple": false,
361
360
  "type": "option"
362
- }
363
- },
364
- "hasDynamicHelp": false,
365
- "hiddenAliases": [],
366
- "id": "branch:set-live",
367
- "pluginAlias": "@xano/cli",
368
- "pluginName": "@xano/cli",
369
- "pluginType": "core",
370
- "strict": true,
371
- "enableJsonFlag": false,
372
- "isESM": true,
373
- "relativePath": [
374
- "dist",
375
- "commands",
376
- "branch",
377
- "set-live",
378
- "index.js"
379
- ]
380
- },
381
- "branch:get": {
382
- "aliases": [],
383
- "args": {
384
- "branch_label": {
385
- "description": "Branch label (e.g., \"v1\", \"dev\")",
386
- "name": "branch_label",
387
- "required": true
388
- }
389
- },
390
- "description": "Get details for a specific branch",
391
- "examples": [
392
- "$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
393
- "$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
394
- "$ 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"
395
- ],
396
- "flags": {
397
- "profile": {
398
- "char": "p",
399
- "description": "Profile to use for this command",
400
- "env": "XANO_PROFILE",
401
- "name": "profile",
402
- "required": false,
403
- "hasDynamicHelp": false,
404
- "multiple": false,
405
- "type": "option"
406
- },
407
- "verbose": {
408
- "char": "v",
409
- "description": "Show detailed request/response information",
410
- "env": "XANO_VERBOSE",
411
- "name": "verbose",
412
- "required": false,
413
- "allowNo": false,
414
- "type": "boolean"
415
361
  },
416
- "output": {
417
- "char": "o",
418
- "description": "Output format",
419
- "name": "output",
362
+ "per_page": {
363
+ "description": "Number of results per page",
364
+ "name": "per_page",
420
365
  "required": false,
421
- "default": "summary",
366
+ "default": 50,
422
367
  "hasDynamicHelp": false,
423
368
  "multiple": false,
424
- "options": [
425
- "summary",
426
- "json"
427
- ],
428
369
  "type": "option"
429
370
  },
430
- "workspace": {
431
- "char": "w",
432
- "description": "Workspace ID (uses profile workspace if not provided)",
433
- "name": "workspace",
434
- "required": false,
435
- "hasDynamicHelp": false,
436
- "multiple": false,
437
- "type": "option"
438
- }
439
- },
440
- "hasDynamicHelp": false,
441
- "hiddenAliases": [],
442
- "id": "branch:get",
443
- "pluginAlias": "@xano/cli",
444
- "pluginName": "@xano/cli",
445
- "pluginType": "core",
446
- "strict": true,
447
- "enableJsonFlag": false,
448
- "isESM": true,
449
- "relativePath": [
450
- "dist",
451
- "commands",
452
- "branch",
453
- "get",
454
- "index.js"
455
- ]
456
- },
457
- "branch:list": {
458
- "aliases": [],
459
- "args": {
460
- "workspace_id": {
461
- "description": "Workspace ID (uses profile workspace if not provided)",
462
- "name": "workspace_id",
463
- "required": false
464
- }
465
- },
466
- "description": "List all branches in a workspace",
467
- "examples": [
468
- "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
469
- "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
470
- "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
471
- ],
472
- "flags": {
473
- "profile": {
474
- "char": "p",
475
- "description": "Profile to use for this command",
476
- "env": "XANO_PROFILE",
477
- "name": "profile",
371
+ "sort": {
372
+ "description": "Sort field",
373
+ "name": "sort",
478
374
  "required": false,
375
+ "default": "created_at",
479
376
  "hasDynamicHelp": false,
480
377
  "multiple": false,
481
378
  "type": "option"
482
379
  },
483
- "verbose": {
484
- "char": "v",
485
- "description": "Show detailed request/response information",
486
- "env": "XANO_VERBOSE",
487
- "name": "verbose",
488
- "required": false,
489
- "allowNo": false,
490
- "type": "boolean"
491
- },
492
- "output": {
493
- "char": "o",
494
- "description": "Output format",
495
- "name": "output",
380
+ "order": {
381
+ "description": "Sort order",
382
+ "name": "order",
496
383
  "required": false,
497
- "default": "summary",
384
+ "default": "desc",
498
385
  "hasDynamicHelp": false,
499
386
  "multiple": false,
500
387
  "options": [
501
- "summary",
502
- "json"
388
+ "asc",
389
+ "desc"
503
390
  ],
504
391
  "type": "option"
505
392
  }
506
393
  },
507
394
  "hasDynamicHelp": false,
508
395
  "hiddenAliases": [],
509
- "id": "branch:list",
396
+ "id": "function:list",
510
397
  "pluginAlias": "@xano/cli",
511
398
  "pluginName": "@xano/cli",
512
399
  "pluginType": "core",
@@ -516,7 +403,7 @@
516
403
  "relativePath": [
517
404
  "dist",
518
405
  "commands",
519
- "branch",
406
+ "function",
520
407
  "list",
521
408
  "index.js"
522
409
  ]
@@ -539,6 +426,24 @@
539
426
  "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
540
427
  ],
541
428
  "flags": {
429
+ "account_origin": {
430
+ "char": "a",
431
+ "description": "Account origin URL. Optional for self hosted installs.",
432
+ "name": "account_origin",
433
+ "required": false,
434
+ "hasDynamicHelp": false,
435
+ "multiple": false,
436
+ "type": "option"
437
+ },
438
+ "instance_origin": {
439
+ "char": "i",
440
+ "description": "Instance origin URL",
441
+ "name": "instance_origin",
442
+ "required": true,
443
+ "hasDynamicHelp": false,
444
+ "multiple": false,
445
+ "type": "option"
446
+ },
542
447
  "access_token": {
543
448
  "char": "t",
544
449
  "description": "Access token for the Xano Metadata API",
@@ -548,10 +453,10 @@
548
453
  "multiple": false,
549
454
  "type": "option"
550
455
  },
551
- "account_origin": {
552
- "char": "a",
553
- "description": "Account origin URL. Optional for self hosted installs.",
554
- "name": "account_origin",
456
+ "workspace": {
457
+ "char": "w",
458
+ "description": "Workspace name",
459
+ "name": "workspace",
555
460
  "required": false,
556
461
  "hasDynamicHelp": false,
557
462
  "multiple": false,
@@ -566,22 +471,6 @@
566
471
  "multiple": false,
567
472
  "type": "option"
568
473
  },
569
- "default": {
570
- "description": "Set this profile as the default",
571
- "name": "default",
572
- "required": false,
573
- "allowNo": false,
574
- "type": "boolean"
575
- },
576
- "instance_origin": {
577
- "char": "i",
578
- "description": "Instance origin URL",
579
- "name": "instance_origin",
580
- "required": true,
581
- "hasDynamicHelp": false,
582
- "multiple": false,
583
- "type": "option"
584
- },
585
474
  "project": {
586
475
  "char": "j",
587
476
  "description": "Project name",
@@ -600,14 +489,12 @@
600
489
  "multiple": false,
601
490
  "type": "option"
602
491
  },
603
- "workspace": {
604
- "char": "w",
605
- "description": "Workspace name",
606
- "name": "workspace",
492
+ "default": {
493
+ "description": "Set this profile as the default",
494
+ "name": "default",
607
495
  "required": false,
608
- "hasDynamicHelp": false,
609
- "multiple": false,
610
- "type": "option"
496
+ "allowNo": false,
497
+ "type": "boolean"
611
498
  }
612
499
  },
613
500
  "hasDynamicHelp": false,
@@ -627,6 +514,74 @@
627
514
  "index.js"
628
515
  ]
629
516
  },
517
+ "profile:delete": {
518
+ "aliases": [],
519
+ "args": {
520
+ "name": {
521
+ "description": "Profile name to delete",
522
+ "name": "name",
523
+ "required": true
524
+ }
525
+ },
526
+ "description": "Delete a profile configuration",
527
+ "examples": [
528
+ "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
529
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
530
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
531
+ ],
532
+ "flags": {
533
+ "force": {
534
+ "char": "f",
535
+ "description": "Skip confirmation prompt",
536
+ "name": "force",
537
+ "required": false,
538
+ "allowNo": false,
539
+ "type": "boolean"
540
+ }
541
+ },
542
+ "hasDynamicHelp": false,
543
+ "hiddenAliases": [],
544
+ "id": "profile:delete",
545
+ "pluginAlias": "@xano/cli",
546
+ "pluginName": "@xano/cli",
547
+ "pluginType": "core",
548
+ "strict": true,
549
+ "enableJsonFlag": false,
550
+ "isESM": true,
551
+ "relativePath": [
552
+ "dist",
553
+ "commands",
554
+ "profile",
555
+ "delete",
556
+ "index.js"
557
+ ]
558
+ },
559
+ "profile:get-default": {
560
+ "aliases": [],
561
+ "args": {},
562
+ "description": "Get the current default profile name",
563
+ "examples": [
564
+ "$ xano profile:get-default\nproduction\n",
565
+ "$ xano profile:get-default\nNo default profile set\n"
566
+ ],
567
+ "flags": {},
568
+ "hasDynamicHelp": false,
569
+ "hiddenAliases": [],
570
+ "id": "profile:get-default",
571
+ "pluginAlias": "@xano/cli",
572
+ "pluginName": "@xano/cli",
573
+ "pluginType": "core",
574
+ "strict": true,
575
+ "enableJsonFlag": false,
576
+ "isESM": true,
577
+ "relativePath": [
578
+ "dist",
579
+ "commands",
580
+ "profile",
581
+ "get-default",
582
+ "index.js"
583
+ ]
584
+ },
630
585
  "profile:edit": {
631
586
  "aliases": [],
632
587
  "args": {
@@ -657,14 +612,23 @@
657
612
  "multiple": false,
658
613
  "type": "option"
659
614
  },
660
- "verbose": {
661
- "char": "v",
662
- "description": "Show detailed request/response information",
663
- "env": "XANO_VERBOSE",
664
- "name": "verbose",
615
+ "account_origin": {
616
+ "char": "a",
617
+ "description": "Update account origin URL",
618
+ "name": "account_origin",
665
619
  "required": false,
666
- "allowNo": false,
667
- "type": "boolean"
620
+ "hasDynamicHelp": false,
621
+ "multiple": false,
622
+ "type": "option"
623
+ },
624
+ "instance_origin": {
625
+ "char": "i",
626
+ "description": "Update instance origin URL",
627
+ "name": "instance_origin",
628
+ "required": false,
629
+ "hasDynamicHelp": false,
630
+ "multiple": false,
631
+ "type": "option"
668
632
  },
669
633
  "access_token": {
670
634
  "char": "t",
@@ -675,10 +639,10 @@
675
639
  "multiple": false,
676
640
  "type": "option"
677
641
  },
678
- "account_origin": {
679
- "char": "a",
680
- "description": "Update account origin URL",
681
- "name": "account_origin",
642
+ "workspace": {
643
+ "char": "w",
644
+ "description": "Update workspace name",
645
+ "name": "workspace",
682
646
  "required": false,
683
647
  "hasDynamicHelp": false,
684
648
  "multiple": false,
@@ -693,24 +657,22 @@
693
657
  "multiple": false,
694
658
  "type": "option"
695
659
  },
696
- "instance_origin": {
697
- "char": "i",
698
- "description": "Update instance origin URL",
699
- "name": "instance_origin",
700
- "required": false,
701
- "hasDynamicHelp": false,
702
- "multiple": false,
703
- "type": "option"
704
- },
705
660
  "project": {
706
661
  "char": "j",
707
- "description": "Update project ID",
662
+ "description": "Update project name",
708
663
  "name": "project",
709
664
  "required": false,
710
665
  "hasDynamicHelp": false,
711
666
  "multiple": false,
712
667
  "type": "option"
713
668
  },
669
+ "remove-workspace": {
670
+ "description": "Remove workspace from profile",
671
+ "name": "remove-workspace",
672
+ "required": false,
673
+ "allowNo": false,
674
+ "type": "boolean"
675
+ },
714
676
  "remove-branch": {
715
677
  "description": "Remove branch from profile",
716
678
  "name": "remove-branch",
@@ -725,20 +687,6 @@
725
687
  "allowNo": false,
726
688
  "type": "boolean"
727
689
  },
728
- "remove-run-base-url": {
729
- "description": "Remove run_base_url from profile (use default)",
730
- "name": "remove-run-base-url",
731
- "required": false,
732
- "allowNo": false,
733
- "type": "boolean"
734
- },
735
- "remove-workspace": {
736
- "description": "Remove workspace from profile",
737
- "name": "remove-workspace",
738
- "required": false,
739
- "allowNo": false,
740
- "type": "boolean"
741
- },
742
690
  "run_base_url": {
743
691
  "char": "r",
744
692
  "description": "Update Xano Run API base URL",
@@ -748,53 +696,9 @@
748
696
  "multiple": false,
749
697
  "type": "option"
750
698
  },
751
- "workspace": {
752
- "char": "w",
753
- "description": "Update workspace name",
754
- "name": "workspace",
755
- "required": false,
756
- "hasDynamicHelp": false,
757
- "multiple": false,
758
- "type": "option"
759
- }
760
- },
761
- "hasDynamicHelp": false,
762
- "hiddenAliases": [],
763
- "id": "profile:edit",
764
- "pluginAlias": "@xano/cli",
765
- "pluginName": "@xano/cli",
766
- "pluginType": "core",
767
- "strict": true,
768
- "enableJsonFlag": false,
769
- "isESM": true,
770
- "relativePath": [
771
- "dist",
772
- "commands",
773
- "profile",
774
- "edit",
775
- "index.js"
776
- ]
777
- },
778
- "profile:delete": {
779
- "aliases": [],
780
- "args": {
781
- "name": {
782
- "description": "Profile name to delete",
783
- "name": "name",
784
- "required": true
785
- }
786
- },
787
- "description": "Delete a profile configuration",
788
- "examples": [
789
- "$ 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",
790
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
791
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
792
- ],
793
- "flags": {
794
- "force": {
795
- "char": "f",
796
- "description": "Skip confirmation prompt",
797
- "name": "force",
699
+ "remove-run-base-url": {
700
+ "description": "Remove run_base_url from profile (use default)",
701
+ "name": "remove-run-base-url",
798
702
  "required": false,
799
703
  "allowNo": false,
800
704
  "type": "boolean"
@@ -802,33 +706,7 @@
802
706
  },
803
707
  "hasDynamicHelp": false,
804
708
  "hiddenAliases": [],
805
- "id": "profile:delete",
806
- "pluginAlias": "@xano/cli",
807
- "pluginName": "@xano/cli",
808
- "pluginType": "core",
809
- "strict": true,
810
- "enableJsonFlag": false,
811
- "isESM": true,
812
- "relativePath": [
813
- "dist",
814
- "commands",
815
- "profile",
816
- "delete",
817
- "index.js"
818
- ]
819
- },
820
- "profile:get-default": {
821
- "aliases": [],
822
- "args": {},
823
- "description": "Get the current default profile name",
824
- "examples": [
825
- "$ xano profile:get-default\nproduction\n",
826
- "$ xano profile:get-default\nNo default profile set\n"
827
- ],
828
- "flags": {},
829
- "hasDynamicHelp": false,
830
- "hiddenAliases": [],
831
- "id": "profile:get-default",
709
+ "id": "profile:edit",
832
710
  "pluginAlias": "@xano/cli",
833
711
  "pluginName": "@xano/cli",
834
712
  "pluginType": "core",
@@ -839,7 +717,7 @@
839
717
  "dist",
840
718
  "commands",
841
719
  "profile",
842
- "get-default",
720
+ "edit",
843
721
  "index.js"
844
722
  ]
845
723
  },
@@ -863,15 +741,6 @@
863
741
  "multiple": false,
864
742
  "type": "option"
865
743
  },
866
- "verbose": {
867
- "char": "v",
868
- "description": "Show detailed request/response information",
869
- "env": "XANO_VERBOSE",
870
- "name": "verbose",
871
- "required": false,
872
- "allowNo": false,
873
- "type": "boolean"
874
- },
875
744
  "output": {
876
745
  "char": "o",
877
746
  "description": "Output format",
@@ -904,18 +773,24 @@
904
773
  "index.js"
905
774
  ]
906
775
  },
907
- "profile:project": {
776
+ "profile:set-default": {
908
777
  "aliases": [],
909
- "args": {},
910
- "description": "Print the project for the default profile",
778
+ "args": {
779
+ "name": {
780
+ "description": "Profile name to set as default",
781
+ "name": "name",
782
+ "required": true
783
+ }
784
+ },
785
+ "description": "Set the default profile",
911
786
  "examples": [
912
- "$ xano profile:project\nmy-project-id\n",
913
- "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
787
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
788
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
914
789
  ],
915
790
  "flags": {},
916
791
  "hasDynamicHelp": false,
917
792
  "hiddenAliases": [],
918
- "id": "profile:project",
793
+ "id": "profile:set-default",
919
794
  "pluginAlias": "@xano/cli",
920
795
  "pluginName": "@xano/cli",
921
796
  "pluginType": "core",
@@ -926,22 +801,22 @@
926
801
  "dist",
927
802
  "commands",
928
803
  "profile",
929
- "project",
804
+ "set-default",
930
805
  "index.js"
931
806
  ]
932
807
  },
933
- "profile:token": {
808
+ "profile:project": {
934
809
  "aliases": [],
935
810
  "args": {},
936
- "description": "Print the access token for the default profile",
811
+ "description": "Print the project for the default profile",
937
812
  "examples": [
938
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
939
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
813
+ "$ xano profile:project\nmy-project-id\n",
814
+ "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
940
815
  ],
941
816
  "flags": {},
942
817
  "hasDynamicHelp": false,
943
818
  "hiddenAliases": [],
944
- "id": "profile:token",
819
+ "id": "profile:project",
945
820
  "pluginAlias": "@xano/cli",
946
821
  "pluginName": "@xano/cli",
947
822
  "pluginType": "core",
@@ -952,32 +827,22 @@
952
827
  "dist",
953
828
  "commands",
954
829
  "profile",
955
- "token",
830
+ "project",
956
831
  "index.js"
957
832
  ]
958
833
  },
959
- "profile:list": {
834
+ "profile:token": {
960
835
  "aliases": [],
961
836
  "args": {},
962
- "description": "List all available profile configurations",
837
+ "description": "Print the access token for the default profile",
963
838
  "examples": [
964
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
965
- "$ 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",
966
- "$ 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"
839
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
840
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
967
841
  ],
968
- "flags": {
969
- "details": {
970
- "char": "d",
971
- "description": "Show detailed information for each profile",
972
- "name": "details",
973
- "required": false,
974
- "allowNo": false,
975
- "type": "boolean"
976
- }
977
- },
842
+ "flags": {},
978
843
  "hasDynamicHelp": false,
979
844
  "hiddenAliases": [],
980
- "id": "profile:list",
845
+ "id": "profile:token",
981
846
  "pluginAlias": "@xano/cli",
982
847
  "pluginName": "@xano/cli",
983
848
  "pluginType": "core",
@@ -988,7 +853,7 @@
988
853
  "dist",
989
854
  "commands",
990
855
  "profile",
991
- "list",
856
+ "token",
992
857
  "index.js"
993
858
  ]
994
859
  },
@@ -1037,16 +902,17 @@
1037
902
  "index.js"
1038
903
  ]
1039
904
  },
1040
- "function:create": {
905
+ "run:exec": {
1041
906
  "aliases": [],
1042
907
  "args": {},
1043
- "description": "Create a new function in a workspace",
908
+ "description": "Execute XanoScript code (job or service)",
1044
909
  "examples": [
1045
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
1046
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
1047
- "$ 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",
1048
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
1049
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
910
+ "$ xano run exec -f script.xs\nExecuted successfully!\n...\n",
911
+ "$ xano run exec -f script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
912
+ "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
913
+ "$ xano run exec -f script.xs -o json\n{\n \"run\": { ... }\n}\n",
914
+ "$ xano run exec -f script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
915
+ "$ xano run exec -f script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
1050
916
  ],
1051
917
  "flags": {
1052
918
  "profile": {
@@ -1059,11 +925,25 @@
1059
925
  "multiple": false,
1060
926
  "type": "option"
1061
927
  },
1062
- "verbose": {
1063
- "char": "v",
1064
- "description": "Show detailed request/response information",
1065
- "env": "XANO_VERBOSE",
1066
- "name": "verbose",
928
+ "file": {
929
+ "char": "f",
930
+ "description": "Path or URL to file containing XanoScript code",
931
+ "exclusive": [
932
+ "stdin"
933
+ ],
934
+ "name": "file",
935
+ "required": false,
936
+ "hasDynamicHelp": false,
937
+ "multiple": false,
938
+ "type": "option"
939
+ },
940
+ "stdin": {
941
+ "char": "s",
942
+ "description": "Read XanoScript code from stdin",
943
+ "exclusive": [
944
+ "file"
945
+ ],
946
+ "name": "stdin",
1067
947
  "required": false,
1068
948
  "allowNo": false,
1069
949
  "type": "boolean"
@@ -1073,24 +953,12 @@
1073
953
  "dependsOn": [
1074
954
  "file"
1075
955
  ],
1076
- "description": "Open file in editor before creating function (requires --file)",
956
+ "description": "Open file in editor before running (requires --file)",
1077
957
  "name": "edit",
1078
958
  "required": false,
1079
959
  "allowNo": false,
1080
960
  "type": "boolean"
1081
961
  },
1082
- "file": {
1083
- "char": "f",
1084
- "description": "Path to file containing XanoScript code",
1085
- "exclusive": [
1086
- "stdin"
1087
- ],
1088
- "name": "file",
1089
- "required": false,
1090
- "hasDynamicHelp": false,
1091
- "multiple": false,
1092
- "type": "option"
1093
- },
1094
962
  "output": {
1095
963
  "char": "o",
1096
964
  "description": "Output format",
@@ -1105,987 +973,62 @@
1105
973
  ],
1106
974
  "type": "option"
1107
975
  },
1108
- "stdin": {
1109
- "char": "s",
1110
- "description": "Read XanoScript code from stdin",
1111
- "exclusive": [
1112
- "file"
1113
- ],
1114
- "name": "stdin",
976
+ "args": {
977
+ "char": "a",
978
+ "description": "Path or URL to JSON file containing input arguments",
979
+ "name": "args",
1115
980
  "required": false,
1116
- "allowNo": false,
1117
- "type": "boolean"
981
+ "hasDynamicHelp": false,
982
+ "multiple": false,
983
+ "type": "option"
1118
984
  },
1119
- "workspace": {
1120
- "char": "w",
1121
- "description": "Workspace ID (optional if set in profile)",
1122
- "name": "workspace",
985
+ "env": {
986
+ "description": "Environment variable override (key=value)",
987
+ "name": "env",
1123
988
  "required": false,
1124
989
  "hasDynamicHelp": false,
1125
- "multiple": false,
990
+ "multiple": true,
1126
991
  "type": "option"
1127
992
  }
1128
993
  },
1129
994
  "hasDynamicHelp": false,
1130
995
  "hiddenAliases": [],
1131
- "id": "function:create",
996
+ "id": "run:exec",
1132
997
  "pluginAlias": "@xano/cli",
1133
998
  "pluginName": "@xano/cli",
1134
999
  "pluginType": "core",
1135
1000
  "strict": true,
1136
- "enableJsonFlag": false,
1137
1001
  "isESM": true,
1138
1002
  "relativePath": [
1139
1003
  "dist",
1140
1004
  "commands",
1141
- "function",
1142
- "create",
1005
+ "run",
1006
+ "exec",
1143
1007
  "index.js"
1144
1008
  ]
1145
1009
  },
1146
- "static_host:list": {
1010
+ "profile:list": {
1147
1011
  "aliases": [],
1148
1012
  "args": {},
1149
- "description": "List all static hosts in a workspace from the Xano Metadata API",
1013
+ "description": "List all available profile configurations",
1150
1014
  "examples": [
1151
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1152
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1153
- "$ 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",
1154
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1015
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1016
+ "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1017
+ "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
1155
1018
  ],
1156
1019
  "flags": {
1157
- "profile": {
1158
- "char": "p",
1159
- "description": "Profile to use for this command",
1160
- "env": "XANO_PROFILE",
1161
- "name": "profile",
1162
- "required": false,
1163
- "hasDynamicHelp": false,
1164
- "multiple": false,
1165
- "type": "option"
1166
- },
1167
- "verbose": {
1168
- "char": "v",
1169
- "description": "Show detailed request/response information",
1170
- "env": "XANO_VERBOSE",
1171
- "name": "verbose",
1172
- "required": false,
1173
- "allowNo": false,
1174
- "type": "boolean"
1175
- },
1176
- "output": {
1177
- "char": "o",
1178
- "description": "Output format",
1179
- "name": "output",
1180
- "required": false,
1181
- "default": "summary",
1182
- "hasDynamicHelp": false,
1183
- "multiple": false,
1184
- "options": [
1185
- "summary",
1186
- "json"
1187
- ],
1188
- "type": "option"
1189
- },
1190
- "page": {
1191
- "description": "Page number for pagination",
1192
- "name": "page",
1193
- "required": false,
1194
- "default": 1,
1195
- "hasDynamicHelp": false,
1196
- "multiple": false,
1197
- "type": "option"
1198
- },
1199
- "per_page": {
1200
- "description": "Number of results per page",
1201
- "name": "per_page",
1202
- "required": false,
1203
- "default": 50,
1204
- "hasDynamicHelp": false,
1205
- "multiple": false,
1206
- "type": "option"
1207
- },
1208
- "workspace": {
1209
- "char": "w",
1210
- "description": "Workspace ID (optional if set in profile)",
1211
- "name": "workspace",
1212
- "required": false,
1213
- "hasDynamicHelp": false,
1214
- "multiple": false,
1215
- "type": "option"
1216
- }
1217
- },
1218
- "hasDynamicHelp": false,
1219
- "hiddenAliases": [],
1220
- "id": "static_host:list",
1221
- "pluginAlias": "@xano/cli",
1222
- "pluginName": "@xano/cli",
1223
- "pluginType": "core",
1224
- "strict": true,
1225
- "enableJsonFlag": false,
1226
- "isESM": true,
1227
- "relativePath": [
1228
- "dist",
1229
- "commands",
1230
- "static_host",
1231
- "list",
1232
- "index.js"
1233
- ]
1234
- },
1235
- "function:edit": {
1236
- "aliases": [],
1237
- "args": {
1238
- "function_id": {
1239
- "description": "Function ID to edit",
1240
- "name": "function_id",
1241
- "required": false
1242
- }
1243
- },
1244
- "description": "Edit a function in a workspace",
1245
- "examples": [
1246
- "$ 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",
1247
- "$ 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",
1248
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
1249
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
1250
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
1251
- "$ 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",
1252
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
1253
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
1254
- ],
1255
- "flags": {
1256
- "profile": {
1257
- "char": "p",
1258
- "description": "Profile to use for this command",
1259
- "env": "XANO_PROFILE",
1260
- "name": "profile",
1261
- "required": false,
1262
- "hasDynamicHelp": false,
1263
- "multiple": false,
1264
- "type": "option"
1265
- },
1266
- "verbose": {
1267
- "char": "v",
1268
- "description": "Show detailed request/response information",
1269
- "env": "XANO_VERBOSE",
1270
- "name": "verbose",
1271
- "required": false,
1272
- "allowNo": false,
1273
- "type": "boolean"
1274
- },
1275
- "edit": {
1276
- "char": "e",
1277
- "description": "Open file in editor before updating function (requires --file)",
1278
- "name": "edit",
1279
- "required": false,
1280
- "allowNo": false,
1281
- "type": "boolean"
1282
- },
1283
- "file": {
1284
- "char": "f",
1285
- "description": "Path to file containing XanoScript code",
1286
- "exclusive": [
1287
- "stdin"
1288
- ],
1289
- "name": "file",
1290
- "required": false,
1291
- "hasDynamicHelp": false,
1292
- "multiple": false,
1293
- "type": "option"
1294
- },
1295
- "output": {
1296
- "char": "o",
1297
- "description": "Output format",
1298
- "name": "output",
1299
- "required": false,
1300
- "default": "summary",
1301
- "hasDynamicHelp": false,
1302
- "multiple": false,
1303
- "options": [
1304
- "summary",
1305
- "json"
1306
- ],
1307
- "type": "option"
1308
- },
1309
- "publish": {
1310
- "description": "Publish the function after editing",
1311
- "name": "publish",
1312
- "required": false,
1313
- "allowNo": false,
1314
- "type": "boolean"
1315
- },
1316
- "stdin": {
1317
- "char": "s",
1318
- "description": "Read XanoScript code from stdin",
1319
- "exclusive": [
1320
- "file"
1321
- ],
1322
- "name": "stdin",
1323
- "required": false,
1324
- "allowNo": false,
1325
- "type": "boolean"
1326
- },
1327
- "workspace": {
1328
- "char": "w",
1329
- "description": "Workspace ID (optional if set in profile)",
1330
- "name": "workspace",
1331
- "required": false,
1332
- "hasDynamicHelp": false,
1333
- "multiple": false,
1334
- "type": "option"
1335
- }
1336
- },
1337
- "hasDynamicHelp": false,
1338
- "hiddenAliases": [],
1339
- "id": "function:edit",
1340
- "pluginAlias": "@xano/cli",
1341
- "pluginName": "@xano/cli",
1342
- "pluginType": "core",
1343
- "strict": true,
1344
- "enableJsonFlag": false,
1345
- "isESM": true,
1346
- "relativePath": [
1347
- "dist",
1348
- "commands",
1349
- "function",
1350
- "edit",
1351
- "index.js"
1352
- ]
1353
- },
1354
- "profile:set-default": {
1355
- "aliases": [],
1356
- "args": {
1357
- "name": {
1358
- "description": "Profile name to set as default",
1359
- "name": "name",
1360
- "required": true
1361
- }
1362
- },
1363
- "description": "Set the default profile",
1364
- "examples": [
1365
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
1366
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
1367
- ],
1368
- "flags": {},
1369
- "hasDynamicHelp": false,
1370
- "hiddenAliases": [],
1371
- "id": "profile:set-default",
1372
- "pluginAlias": "@xano/cli",
1373
- "pluginName": "@xano/cli",
1374
- "pluginType": "core",
1375
- "strict": true,
1376
- "enableJsonFlag": false,
1377
- "isESM": true,
1378
- "relativePath": [
1379
- "dist",
1380
- "commands",
1381
- "profile",
1382
- "set-default",
1383
- "index.js"
1384
- ]
1385
- },
1386
- "function:get": {
1387
- "aliases": [],
1388
- "args": {
1389
- "function_id": {
1390
- "description": "Function ID",
1391
- "name": "function_id",
1392
- "required": false
1393
- }
1394
- },
1395
- "description": "Get a specific function from a workspace",
1396
- "examples": [
1397
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
1398
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
1399
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
1400
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
1401
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
1402
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
1403
- ],
1404
- "flags": {
1405
- "profile": {
1406
- "char": "p",
1407
- "description": "Profile to use for this command",
1408
- "env": "XANO_PROFILE",
1409
- "name": "profile",
1410
- "required": false,
1411
- "hasDynamicHelp": false,
1412
- "multiple": false,
1413
- "type": "option"
1414
- },
1415
- "verbose": {
1416
- "char": "v",
1417
- "description": "Show detailed request/response information",
1418
- "env": "XANO_VERBOSE",
1419
- "name": "verbose",
1420
- "required": false,
1421
- "allowNo": false,
1422
- "type": "boolean"
1423
- },
1424
- "include_draft": {
1425
- "description": "Include draft version",
1426
- "name": "include_draft",
1427
- "required": false,
1428
- "allowNo": false,
1429
- "type": "boolean"
1430
- },
1431
- "include_xanoscript": {
1432
- "description": "Include XanoScript in response",
1433
- "name": "include_xanoscript",
1434
- "required": false,
1435
- "allowNo": false,
1436
- "type": "boolean"
1437
- },
1438
- "output": {
1439
- "char": "o",
1440
- "description": "Output format",
1441
- "name": "output",
1442
- "required": false,
1443
- "default": "summary",
1444
- "hasDynamicHelp": false,
1445
- "multiple": false,
1446
- "options": [
1447
- "summary",
1448
- "json",
1449
- "xs"
1450
- ],
1451
- "type": "option"
1452
- },
1453
- "workspace": {
1454
- "char": "w",
1455
- "description": "Workspace ID (optional if set in profile)",
1456
- "name": "workspace",
1457
- "required": false,
1458
- "hasDynamicHelp": false,
1459
- "multiple": false,
1460
- "type": "option"
1461
- }
1462
- },
1463
- "hasDynamicHelp": false,
1464
- "hiddenAliases": [],
1465
- "id": "function:get",
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
- "function",
1476
- "get",
1477
- "index.js"
1478
- ]
1479
- },
1480
- "function:list": {
1481
- "aliases": [],
1482
- "args": {},
1483
- "description": "List all functions in a workspace from the Xano Metadata API",
1484
- "examples": [
1485
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
1486
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
1487
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
1488
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
1489
- ],
1490
- "flags": {
1491
- "profile": {
1492
- "char": "p",
1493
- "description": "Profile to use for this command",
1494
- "env": "XANO_PROFILE",
1495
- "name": "profile",
1496
- "required": false,
1497
- "hasDynamicHelp": false,
1498
- "multiple": false,
1499
- "type": "option"
1500
- },
1501
- "verbose": {
1502
- "char": "v",
1503
- "description": "Show detailed request/response information",
1504
- "env": "XANO_VERBOSE",
1505
- "name": "verbose",
1506
- "required": false,
1507
- "allowNo": false,
1508
- "type": "boolean"
1509
- },
1510
- "include_draft": {
1511
- "description": "Include draft functions",
1512
- "name": "include_draft",
1513
- "required": false,
1514
- "allowNo": false,
1515
- "type": "boolean"
1516
- },
1517
- "include_xanoscript": {
1518
- "description": "Include XanoScript in response",
1519
- "name": "include_xanoscript",
1520
- "required": false,
1521
- "allowNo": false,
1522
- "type": "boolean"
1523
- },
1524
- "order": {
1525
- "description": "Sort order",
1526
- "name": "order",
1527
- "required": false,
1528
- "default": "desc",
1529
- "hasDynamicHelp": false,
1530
- "multiple": false,
1531
- "options": [
1532
- "asc",
1533
- "desc"
1534
- ],
1535
- "type": "option"
1536
- },
1537
- "output": {
1538
- "char": "o",
1539
- "description": "Output format",
1540
- "name": "output",
1541
- "required": false,
1542
- "default": "summary",
1543
- "hasDynamicHelp": false,
1544
- "multiple": false,
1545
- "options": [
1546
- "summary",
1547
- "json"
1548
- ],
1549
- "type": "option"
1550
- },
1551
- "page": {
1552
- "description": "Page number for pagination",
1553
- "name": "page",
1554
- "required": false,
1555
- "default": 1,
1556
- "hasDynamicHelp": false,
1557
- "multiple": false,
1558
- "type": "option"
1559
- },
1560
- "per_page": {
1561
- "description": "Number of results per page",
1562
- "name": "per_page",
1563
- "required": false,
1564
- "default": 50,
1565
- "hasDynamicHelp": false,
1566
- "multiple": false,
1567
- "type": "option"
1568
- },
1569
- "sort": {
1570
- "description": "Sort field",
1571
- "name": "sort",
1572
- "required": false,
1573
- "default": "created_at",
1574
- "hasDynamicHelp": false,
1575
- "multiple": false,
1576
- "type": "option"
1577
- },
1578
- "workspace": {
1579
- "char": "w",
1580
- "description": "Workspace ID (optional if set in profile)",
1581
- "name": "workspace",
1582
- "required": false,
1583
- "hasDynamicHelp": false,
1584
- "multiple": false,
1585
- "type": "option"
1586
- }
1587
- },
1588
- "hasDynamicHelp": false,
1589
- "hiddenAliases": [],
1590
- "id": "function:list",
1591
- "pluginAlias": "@xano/cli",
1592
- "pluginName": "@xano/cli",
1593
- "pluginType": "core",
1594
- "strict": true,
1595
- "enableJsonFlag": false,
1596
- "isESM": true,
1597
- "relativePath": [
1598
- "dist",
1599
- "commands",
1600
- "function",
1601
- "list",
1602
- "index.js"
1603
- ]
1604
- },
1605
- "run:info": {
1606
- "aliases": [],
1607
- "args": {},
1608
- "description": "Get information about a XanoScript document (type, inputs, env vars)",
1609
- "examples": [
1610
- "$ 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",
1611
- "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1612
- "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
1613
- ],
1614
- "flags": {
1615
- "profile": {
1616
- "char": "p",
1617
- "description": "Profile to use for this command",
1618
- "env": "XANO_PROFILE",
1619
- "name": "profile",
1620
- "required": false,
1621
- "hasDynamicHelp": false,
1622
- "multiple": false,
1623
- "type": "option"
1624
- },
1625
- "verbose": {
1626
- "char": "v",
1627
- "description": "Show detailed request/response information",
1628
- "env": "XANO_VERBOSE",
1629
- "name": "verbose",
1630
- "required": false,
1631
- "allowNo": false,
1632
- "type": "boolean"
1633
- },
1634
- "file": {
1635
- "char": "f",
1636
- "description": "Path or URL to file containing XanoScript code",
1637
- "exclusive": [
1638
- "stdin"
1639
- ],
1640
- "name": "file",
1641
- "required": false,
1642
- "hasDynamicHelp": false,
1643
- "multiple": false,
1644
- "type": "option"
1645
- },
1646
- "output": {
1647
- "char": "o",
1648
- "description": "Output format",
1649
- "name": "output",
1650
- "required": false,
1651
- "default": "summary",
1652
- "hasDynamicHelp": false,
1653
- "multiple": false,
1654
- "options": [
1655
- "summary",
1656
- "json"
1657
- ],
1658
- "type": "option"
1659
- },
1660
- "stdin": {
1661
- "char": "s",
1662
- "description": "Read XanoScript code from stdin",
1663
- "exclusive": [
1664
- "file"
1665
- ],
1666
- "name": "stdin",
1667
- "required": false,
1668
- "allowNo": false,
1669
- "type": "boolean"
1670
- }
1671
- },
1672
- "hasDynamicHelp": false,
1673
- "hiddenAliases": [],
1674
- "id": "run:info",
1675
- "pluginAlias": "@xano/cli",
1676
- "pluginName": "@xano/cli",
1677
- "pluginType": "core",
1678
- "strict": true,
1679
- "isESM": true,
1680
- "relativePath": [
1681
- "dist",
1682
- "commands",
1683
- "run",
1684
- "info",
1685
- "index.js"
1686
- ]
1687
- },
1688
- "run:exec": {
1689
- "aliases": [],
1690
- "args": {
1691
- "path": {
1692
- "description": "Path to file or directory containing XanoScript code (directory creates multidoc from .xs files)",
1693
- "name": "path",
1694
- "required": false
1695
- }
1696
- },
1697
- "description": "Execute XanoScript code (job or service)",
1698
- "examples": [
1699
- "$ xano run exec script.xs\nExecuted successfully!\n...\n",
1700
- "$ xano run exec ./my-workspace\n# Executes all .xs files in directory as multidoc\nExecuted successfully!\n...\n",
1701
- "$ xano run exec script.xs --edit\n# Opens script.xs in $EDITOR, then executes\nExecuted successfully!\n...\n",
1702
- "$ cat script.xs | xano run exec --stdin\nExecuted successfully!\n...\n",
1703
- "$ xano run exec script.xs -o json\n{\n \"run\": { ... }\n}\n",
1704
- "$ xano run exec script.xs -a args.json\n# Executes with input arguments from args.json\nExecuted successfully!\n...\n",
1705
- "$ xano run exec script.xs --env API_KEY=secret --env DEBUG=true\n# Executes with environment variable overrides\nExecuted successfully!\n...\n"
1706
- ],
1707
- "flags": {
1708
- "profile": {
1709
- "char": "p",
1710
- "description": "Profile to use for this command",
1711
- "env": "XANO_PROFILE",
1712
- "name": "profile",
1713
- "required": false,
1714
- "hasDynamicHelp": false,
1715
- "multiple": false,
1716
- "type": "option"
1717
- },
1718
- "verbose": {
1719
- "char": "v",
1720
- "description": "Show detailed request/response information",
1721
- "env": "XANO_VERBOSE",
1722
- "name": "verbose",
1723
- "required": false,
1724
- "allowNo": false,
1725
- "type": "boolean"
1726
- },
1727
- "args": {
1728
- "char": "a",
1729
- "description": "Path or URL to JSON file containing input arguments",
1730
- "name": "args",
1731
- "required": false,
1732
- "hasDynamicHelp": false,
1733
- "multiple": false,
1734
- "type": "option"
1735
- },
1736
- "edit": {
1737
- "char": "e",
1738
- "description": "Open file in editor before running (requires path argument or --file)",
1739
- "name": "edit",
1740
- "required": false,
1741
- "allowNo": false,
1742
- "type": "boolean"
1743
- },
1744
- "env": {
1745
- "description": "Environment variable override (key=value)",
1746
- "name": "env",
1747
- "required": false,
1748
- "hasDynamicHelp": false,
1749
- "multiple": true,
1750
- "type": "option"
1751
- },
1752
- "file": {
1753
- "char": "f",
1754
- "description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
1755
- "exclusive": [
1756
- "stdin"
1757
- ],
1758
- "name": "file",
1759
- "required": false,
1760
- "hasDynamicHelp": false,
1761
- "multiple": false,
1762
- "type": "option"
1763
- },
1764
- "output": {
1765
- "char": "o",
1766
- "description": "Output format",
1767
- "name": "output",
1768
- "required": false,
1769
- "default": "summary",
1770
- "hasDynamicHelp": false,
1771
- "multiple": false,
1772
- "options": [
1773
- "summary",
1774
- "json"
1775
- ],
1776
- "type": "option"
1777
- },
1778
- "stdin": {
1779
- "char": "s",
1780
- "description": "Read XanoScript code from stdin",
1781
- "exclusive": [
1782
- "file"
1783
- ],
1784
- "name": "stdin",
1785
- "required": false,
1786
- "allowNo": false,
1787
- "type": "boolean"
1788
- }
1789
- },
1790
- "hasDynamicHelp": false,
1791
- "hiddenAliases": [],
1792
- "id": "run:exec",
1793
- "pluginAlias": "@xano/cli",
1794
- "pluginName": "@xano/cli",
1795
- "pluginType": "core",
1796
- "strict": true,
1797
- "isESM": true,
1798
- "relativePath": [
1799
- "dist",
1800
- "commands",
1801
- "run",
1802
- "exec",
1803
- "index.js"
1804
- ]
1805
- },
1806
- "workspace:create": {
1807
- "aliases": [],
1808
- "args": {},
1809
- "description": "Create a new workspace via the Xano Metadata API",
1810
- "examples": [
1811
- "$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
1812
- "$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
1813
- "$ 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"
1814
- ],
1815
- "flags": {
1816
- "profile": {
1817
- "char": "p",
1818
- "description": "Profile to use for this command",
1819
- "env": "XANO_PROFILE",
1820
- "name": "profile",
1821
- "required": false,
1822
- "hasDynamicHelp": false,
1823
- "multiple": false,
1824
- "type": "option"
1825
- },
1826
- "verbose": {
1827
- "char": "v",
1828
- "description": "Show detailed request/response information",
1829
- "env": "XANO_VERBOSE",
1830
- "name": "verbose",
1831
- "required": false,
1832
- "allowNo": false,
1833
- "type": "boolean"
1834
- },
1835
- "description": {
1836
- "char": "d",
1837
- "description": "Description for the workspace",
1838
- "name": "description",
1839
- "required": false,
1840
- "hasDynamicHelp": false,
1841
- "multiple": false,
1842
- "type": "option"
1843
- },
1844
- "name": {
1845
- "char": "n",
1846
- "description": "Name of the workspace",
1847
- "name": "name",
1848
- "required": true,
1849
- "hasDynamicHelp": false,
1850
- "multiple": false,
1851
- "type": "option"
1852
- },
1853
- "output": {
1854
- "char": "o",
1855
- "description": "Output format",
1856
- "name": "output",
1857
- "required": false,
1858
- "default": "summary",
1859
- "hasDynamicHelp": false,
1860
- "multiple": false,
1861
- "options": [
1862
- "summary",
1863
- "json"
1864
- ],
1865
- "type": "option"
1866
- }
1867
- },
1868
- "hasDynamicHelp": false,
1869
- "hiddenAliases": [],
1870
- "id": "workspace:create",
1871
- "pluginAlias": "@xano/cli",
1872
- "pluginName": "@xano/cli",
1873
- "pluginType": "core",
1874
- "strict": true,
1875
- "enableJsonFlag": false,
1876
- "isESM": true,
1877
- "relativePath": [
1878
- "dist",
1879
- "commands",
1880
- "workspace",
1881
- "create",
1882
- "index.js"
1883
- ]
1884
- },
1885
- "workspace:delete": {
1886
- "aliases": [],
1887
- "args": {
1888
- "workspace_id": {
1889
- "description": "Workspace ID to delete",
1890
- "name": "workspace_id",
1891
- "required": true
1892
- }
1893
- },
1894
- "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
1895
- "examples": [
1896
- "$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
1897
- "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
1898
- "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
1899
- ],
1900
- "flags": {
1901
- "profile": {
1902
- "char": "p",
1903
- "description": "Profile to use for this command",
1904
- "env": "XANO_PROFILE",
1905
- "name": "profile",
1906
- "required": false,
1907
- "hasDynamicHelp": false,
1908
- "multiple": false,
1909
- "type": "option"
1910
- },
1911
- "verbose": {
1912
- "char": "v",
1913
- "description": "Show detailed request/response information",
1914
- "env": "XANO_VERBOSE",
1915
- "name": "verbose",
1916
- "required": false,
1917
- "allowNo": false,
1918
- "type": "boolean"
1919
- },
1920
- "force": {
1921
- "char": "f",
1922
- "description": "Skip confirmation prompt",
1923
- "name": "force",
1924
- "required": false,
1925
- "allowNo": false,
1926
- "type": "boolean"
1927
- },
1928
- "output": {
1929
- "char": "o",
1930
- "description": "Output format",
1931
- "name": "output",
1932
- "required": false,
1933
- "default": "summary",
1934
- "hasDynamicHelp": false,
1935
- "multiple": false,
1936
- "options": [
1937
- "summary",
1938
- "json"
1939
- ],
1940
- "type": "option"
1941
- }
1942
- },
1943
- "hasDynamicHelp": false,
1944
- "hiddenAliases": [],
1945
- "id": "workspace:delete",
1946
- "pluginAlias": "@xano/cli",
1947
- "pluginName": "@xano/cli",
1948
- "pluginType": "core",
1949
- "strict": true,
1950
- "enableJsonFlag": false,
1951
- "isESM": true,
1952
- "relativePath": [
1953
- "dist",
1954
- "commands",
1955
- "workspace",
1956
- "delete",
1957
- "index.js"
1958
- ]
1959
- },
1960
- "workspace:get": {
1961
- "aliases": [],
1962
- "args": {
1963
- "workspace_id": {
1964
- "description": "Workspace ID to get details for (uses profile workspace if not provided)",
1965
- "name": "workspace_id",
1966
- "required": false
1967
- }
1968
- },
1969
- "description": "Get details of a specific workspace from the Xano Metadata API",
1970
- "examples": [
1971
- "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
1972
- "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
1973
- "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
1974
- ],
1975
- "flags": {
1976
- "profile": {
1977
- "char": "p",
1978
- "description": "Profile to use for this command",
1979
- "env": "XANO_PROFILE",
1980
- "name": "profile",
1981
- "required": false,
1982
- "hasDynamicHelp": false,
1983
- "multiple": false,
1984
- "type": "option"
1985
- },
1986
- "verbose": {
1987
- "char": "v",
1988
- "description": "Show detailed request/response information",
1989
- "env": "XANO_VERBOSE",
1990
- "name": "verbose",
1991
- "required": false,
1992
- "allowNo": false,
1993
- "type": "boolean"
1994
- },
1995
- "output": {
1996
- "char": "o",
1997
- "description": "Output format",
1998
- "name": "output",
1999
- "required": false,
2000
- "default": "summary",
2001
- "hasDynamicHelp": false,
2002
- "multiple": false,
2003
- "options": [
2004
- "summary",
2005
- "json"
2006
- ],
2007
- "type": "option"
2008
- }
2009
- },
2010
- "hasDynamicHelp": false,
2011
- "hiddenAliases": [],
2012
- "id": "workspace:get",
2013
- "pluginAlias": "@xano/cli",
2014
- "pluginName": "@xano/cli",
2015
- "pluginType": "core",
2016
- "strict": true,
2017
- "enableJsonFlag": false,
2018
- "isESM": true,
2019
- "relativePath": [
2020
- "dist",
2021
- "commands",
2022
- "workspace",
2023
- "get",
2024
- "index.js"
2025
- ]
2026
- },
2027
- "workspace:pull": {
2028
- "aliases": [],
2029
- "args": {
2030
- "directory": {
2031
- "description": "Output directory for pulled documents",
2032
- "name": "directory",
2033
- "required": true
2034
- }
2035
- },
2036
- "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
2037
- "examples": [
2038
- "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
2039
- "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
2040
- "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
2041
- ],
2042
- "flags": {
2043
- "profile": {
2044
- "char": "p",
2045
- "description": "Profile to use for this command",
2046
- "env": "XANO_PROFILE",
2047
- "name": "profile",
2048
- "required": false,
2049
- "hasDynamicHelp": false,
2050
- "multiple": false,
2051
- "type": "option"
2052
- },
2053
- "verbose": {
2054
- "char": "v",
2055
- "description": "Show detailed request/response information",
2056
- "env": "XANO_VERBOSE",
2057
- "name": "verbose",
2058
- "required": false,
2059
- "allowNo": false,
2060
- "type": "boolean"
2061
- },
2062
- "env": {
2063
- "description": "Include environment variables",
2064
- "name": "env",
2065
- "required": false,
2066
- "allowNo": false,
2067
- "type": "boolean"
2068
- },
2069
- "records": {
2070
- "description": "Include records",
2071
- "name": "records",
1020
+ "details": {
1021
+ "char": "d",
1022
+ "description": "Show detailed information for each profile",
1023
+ "name": "details",
2072
1024
  "required": false,
2073
1025
  "allowNo": false,
2074
1026
  "type": "boolean"
2075
- },
2076
- "workspace": {
2077
- "char": "w",
2078
- "description": "Workspace ID (optional if set in profile)",
2079
- "name": "workspace",
2080
- "required": false,
2081
- "hasDynamicHelp": false,
2082
- "multiple": false,
2083
- "type": "option"
2084
1027
  }
2085
1028
  },
2086
1029
  "hasDynamicHelp": false,
2087
1030
  "hiddenAliases": [],
2088
- "id": "workspace:pull",
1031
+ "id": "profile:list",
2089
1032
  "pluginAlias": "@xano/cli",
2090
1033
  "pluginName": "@xano/cli",
2091
1034
  "pluginType": "core",
@@ -2095,20 +1038,19 @@
2095
1038
  "relativePath": [
2096
1039
  "dist",
2097
1040
  "commands",
2098
- "workspace",
2099
- "pull",
1041
+ "profile",
1042
+ "list",
2100
1043
  "index.js"
2101
1044
  ]
2102
1045
  },
2103
- "workspace:list": {
1046
+ "run:info": {
2104
1047
  "aliases": [],
2105
1048
  "args": {},
2106
- "description": "List all workspaces from the Xano Metadata API",
1049
+ "description": "Get information about a XanoScript document (type, inputs, env vars)",
2107
1050
  "examples": [
2108
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
2109
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
2110
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
2111
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1051
+ "$ xano run info -f script.xs\nDocument Info:\n Type: job\n Inputs:\n - name (string, required)\n - count (number, optional)\n Environment Variables:\n - API_KEY\n - DEBUG\n",
1052
+ "$ cat script.xs | xano run info --stdin\nDocument Info:\n Type: service\n Inputs: none\n Environment Variables: none\n",
1053
+ "$ xano run info -f script.xs -o json\n{ \"type\": \"job\", \"input\": { \"name\": {...} }, \"env\": [\"API_KEY\"] }\n"
2112
1054
  ],
2113
1055
  "flags": {
2114
1056
  "profile": {
@@ -2121,11 +1063,25 @@
2121
1063
  "multiple": false,
2122
1064
  "type": "option"
2123
1065
  },
2124
- "verbose": {
2125
- "char": "v",
2126
- "description": "Show detailed request/response information",
2127
- "env": "XANO_VERBOSE",
2128
- "name": "verbose",
1066
+ "file": {
1067
+ "char": "f",
1068
+ "description": "Path or URL to file containing XanoScript code",
1069
+ "exclusive": [
1070
+ "stdin"
1071
+ ],
1072
+ "name": "file",
1073
+ "required": false,
1074
+ "hasDynamicHelp": false,
1075
+ "multiple": false,
1076
+ "type": "option"
1077
+ },
1078
+ "stdin": {
1079
+ "char": "s",
1080
+ "description": "Read XanoScript code from stdin",
1081
+ "exclusive": [
1082
+ "file"
1083
+ ],
1084
+ "name": "stdin",
2129
1085
  "required": false,
2130
1086
  "allowNo": false,
2131
1087
  "type": "boolean"
@@ -2147,36 +1103,29 @@
2147
1103
  },
2148
1104
  "hasDynamicHelp": false,
2149
1105
  "hiddenAliases": [],
2150
- "id": "workspace:list",
1106
+ "id": "run:info",
2151
1107
  "pluginAlias": "@xano/cli",
2152
1108
  "pluginName": "@xano/cli",
2153
1109
  "pluginType": "core",
2154
1110
  "strict": true,
2155
- "enableJsonFlag": false,
2156
1111
  "isESM": true,
2157
1112
  "relativePath": [
2158
1113
  "dist",
2159
1114
  "commands",
2160
- "workspace",
2161
- "list",
1115
+ "run",
1116
+ "info",
2162
1117
  "index.js"
2163
1118
  ]
2164
1119
  },
2165
- "workspace:edit": {
1120
+ "static_host:list": {
2166
1121
  "aliases": [],
2167
- "args": {
2168
- "workspace_id": {
2169
- "description": "Workspace ID to edit (uses profile workspace if not provided)",
2170
- "name": "workspace_id",
2171
- "required": false
2172
- }
2173
- },
2174
- "description": "Edit an existing workspace via the Xano Metadata API",
1122
+ "args": {},
1123
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
2175
1124
  "examples": [
2176
- "$ xano workspace edit 123 --name \"new-name\"\nUpdated workspace: new-name (ID: 123)\n",
2177
- "$ xano workspace edit --name \"updated-workspace\" --description \"Updated description\"\nUpdated workspace: updated-workspace (ID: 123)\n Description: Updated description\n",
2178
- "$ xano workspace edit 123 --swagger --require-token\nUpdated workspace: my-workspace (ID: 123)\n Swagger: enabled\n Require Token: true\n",
2179
- "$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\n"
1125
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1126
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1127
+ "$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
1128
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
2180
1129
  ],
2181
1130
  "flags": {
2182
1131
  "profile": {
@@ -2189,28 +1138,10 @@
2189
1138
  "multiple": false,
2190
1139
  "type": "option"
2191
1140
  },
2192
- "verbose": {
2193
- "char": "v",
2194
- "description": "Show detailed request/response information",
2195
- "env": "XANO_VERBOSE",
2196
- "name": "verbose",
2197
- "required": false,
2198
- "allowNo": false,
2199
- "type": "boolean"
2200
- },
2201
- "description": {
2202
- "char": "d",
2203
- "description": "New description for the workspace",
2204
- "name": "description",
2205
- "required": false,
2206
- "hasDynamicHelp": false,
2207
- "multiple": false,
2208
- "type": "option"
2209
- },
2210
- "name": {
2211
- "char": "n",
2212
- "description": "New name for the workspace",
2213
- "name": "name",
1141
+ "workspace": {
1142
+ "char": "w",
1143
+ "description": "Workspace ID (optional if set in profile)",
1144
+ "name": "workspace",
2214
1145
  "required": false,
2215
1146
  "hasDynamicHelp": false,
2216
1147
  "multiple": false,
@@ -2230,78 +1161,20 @@
2230
1161
  ],
2231
1162
  "type": "option"
2232
1163
  },
2233
- "require-token": {
2234
- "description": "Whether to require a token for documentation access",
2235
- "name": "require-token",
2236
- "required": false,
2237
- "allowNo": true,
2238
- "type": "boolean"
2239
- },
2240
- "swagger": {
2241
- "description": "Enable or disable swagger documentation",
2242
- "name": "swagger",
2243
- "required": false,
2244
- "allowNo": true,
2245
- "type": "boolean"
2246
- }
2247
- },
2248
- "hasDynamicHelp": false,
2249
- "hiddenAliases": [],
2250
- "id": "workspace:edit",
2251
- "pluginAlias": "@xano/cli",
2252
- "pluginName": "@xano/cli",
2253
- "pluginType": "core",
2254
- "strict": true,
2255
- "enableJsonFlag": false,
2256
- "isESM": true,
2257
- "relativePath": [
2258
- "dist",
2259
- "commands",
2260
- "workspace",
2261
- "edit",
2262
- "index.js"
2263
- ]
2264
- },
2265
- "workspace:push": {
2266
- "aliases": [],
2267
- "args": {
2268
- "directory": {
2269
- "description": "Directory containing documents to push (as produced by workspace pull)",
2270
- "name": "directory",
2271
- "required": true
2272
- }
2273
- },
2274
- "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
2275
- "examples": [
2276
- "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
2277
- "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
2278
- "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
2279
- ],
2280
- "flags": {
2281
- "profile": {
2282
- "char": "p",
2283
- "description": "Profile to use for this command",
2284
- "env": "XANO_PROFILE",
2285
- "name": "profile",
1164
+ "page": {
1165
+ "description": "Page number for pagination",
1166
+ "name": "page",
2286
1167
  "required": false,
1168
+ "default": 1,
2287
1169
  "hasDynamicHelp": false,
2288
1170
  "multiple": false,
2289
1171
  "type": "option"
2290
1172
  },
2291
- "verbose": {
2292
- "char": "v",
2293
- "description": "Show detailed request/response information",
2294
- "env": "XANO_VERBOSE",
2295
- "name": "verbose",
2296
- "required": false,
2297
- "allowNo": false,
2298
- "type": "boolean"
2299
- },
2300
- "workspace": {
2301
- "char": "w",
2302
- "description": "Workspace ID (optional if set in profile)",
2303
- "name": "workspace",
1173
+ "per_page": {
1174
+ "description": "Number of results per page",
1175
+ "name": "per_page",
2304
1176
  "required": false,
1177
+ "default": 50,
2305
1178
  "hasDynamicHelp": false,
2306
1179
  "multiple": false,
2307
1180
  "type": "option"
@@ -2309,7 +1182,7 @@
2309
1182
  },
2310
1183
  "hasDynamicHelp": false,
2311
1184
  "hiddenAliases": [],
2312
- "id": "workspace:push",
1185
+ "id": "static_host:list",
2313
1186
  "pluginAlias": "@xano/cli",
2314
1187
  "pluginName": "@xano/cli",
2315
1188
  "pluginType": "core",
@@ -2319,25 +1192,20 @@
2319
1192
  "relativePath": [
2320
1193
  "dist",
2321
1194
  "commands",
2322
- "workspace",
2323
- "push",
1195
+ "static_host",
1196
+ "list",
2324
1197
  "index.js"
2325
1198
  ]
2326
1199
  },
2327
- "static_host:build:create": {
1200
+ "workspace:list": {
2328
1201
  "aliases": [],
2329
- "args": {
2330
- "static_host": {
2331
- "description": "Static Host name",
2332
- "name": "static_host",
2333
- "required": true
2334
- }
2335
- },
2336
- "description": "Create a new build for a static host",
1202
+ "args": {},
1203
+ "description": "List all workspaces from the Xano Metadata API",
2337
1204
  "examples": [
2338
- "$ 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",
2339
- "$ 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",
2340
- "$ 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"
1205
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1206
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1207
+ "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1208
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
2341
1209
  ],
2342
1210
  "flags": {
2343
1211
  "profile": {
@@ -2350,69 +1218,24 @@
2350
1218
  "multiple": false,
2351
1219
  "type": "option"
2352
1220
  },
2353
- "verbose": {
2354
- "char": "v",
2355
- "description": "Show detailed request/response information",
2356
- "env": "XANO_VERBOSE",
2357
- "name": "verbose",
2358
- "required": false,
2359
- "allowNo": false,
2360
- "type": "boolean"
2361
- },
2362
- "description": {
2363
- "char": "d",
2364
- "description": "Build description",
2365
- "name": "description",
2366
- "required": false,
2367
- "hasDynamicHelp": false,
2368
- "multiple": false,
2369
- "type": "option"
2370
- },
2371
- "file": {
2372
- "char": "f",
2373
- "description": "Path to zip file to upload",
2374
- "name": "file",
2375
- "required": true,
2376
- "hasDynamicHelp": false,
2377
- "multiple": false,
2378
- "type": "option"
2379
- },
2380
- "name": {
2381
- "char": "n",
2382
- "description": "Build name",
2383
- "name": "name",
2384
- "required": true,
2385
- "hasDynamicHelp": false,
2386
- "multiple": false,
2387
- "type": "option"
2388
- },
2389
1221
  "output": {
2390
- "char": "o",
2391
- "description": "Output format",
2392
- "name": "output",
2393
- "required": false,
2394
- "default": "summary",
2395
- "hasDynamicHelp": false,
2396
- "multiple": false,
2397
- "options": [
2398
- "summary",
2399
- "json"
2400
- ],
2401
- "type": "option"
2402
- },
2403
- "workspace": {
2404
- "char": "w",
2405
- "description": "Workspace ID (optional if set in profile)",
2406
- "name": "workspace",
1222
+ "char": "o",
1223
+ "description": "Output format",
1224
+ "name": "output",
2407
1225
  "required": false,
1226
+ "default": "summary",
2408
1227
  "hasDynamicHelp": false,
2409
1228
  "multiple": false,
1229
+ "options": [
1230
+ "summary",
1231
+ "json"
1232
+ ],
2410
1233
  "type": "option"
2411
1234
  }
2412
1235
  },
2413
1236
  "hasDynamicHelp": false,
2414
1237
  "hiddenAliases": [],
2415
- "id": "static_host:build:create",
1238
+ "id": "workspace:list",
2416
1239
  "pluginAlias": "@xano/cli",
2417
1240
  "pluginName": "@xano/cli",
2418
1241
  "pluginType": "core",
@@ -2422,32 +1245,25 @@
2422
1245
  "relativePath": [
2423
1246
  "dist",
2424
1247
  "commands",
2425
- "static_host",
2426
- "build",
2427
- "create",
1248
+ "workspace",
1249
+ "list",
2428
1250
  "index.js"
2429
1251
  ]
2430
1252
  },
2431
- "static_host:build:get": {
1253
+ "workspace:pull": {
2432
1254
  "aliases": [],
2433
1255
  "args": {
2434
- "build_id": {
2435
- "description": "Build ID",
2436
- "name": "build_id",
2437
- "required": true
2438
- },
2439
- "static_host": {
2440
- "description": "Static Host name",
2441
- "name": "static_host",
1256
+ "directory": {
1257
+ "description": "Output directory for pulled documents",
1258
+ "name": "directory",
2442
1259
  "required": true
2443
1260
  }
2444
1261
  },
2445
- "description": "Get details of a specific build for a static host",
1262
+ "description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
2446
1263
  "examples": [
2447
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2448
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2449
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
2450
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1264
+ "$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
1265
+ "$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
1266
+ "$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
2451
1267
  ],
2452
1268
  "flags": {
2453
1269
  "profile": {
@@ -2460,29 +1276,6 @@
2460
1276
  "multiple": false,
2461
1277
  "type": "option"
2462
1278
  },
2463
- "verbose": {
2464
- "char": "v",
2465
- "description": "Show detailed request/response information",
2466
- "env": "XANO_VERBOSE",
2467
- "name": "verbose",
2468
- "required": false,
2469
- "allowNo": false,
2470
- "type": "boolean"
2471
- },
2472
- "output": {
2473
- "char": "o",
2474
- "description": "Output format",
2475
- "name": "output",
2476
- "required": false,
2477
- "default": "summary",
2478
- "hasDynamicHelp": false,
2479
- "multiple": false,
2480
- "options": [
2481
- "summary",
2482
- "json"
2483
- ],
2484
- "type": "option"
2485
- },
2486
1279
  "workspace": {
2487
1280
  "char": "w",
2488
1281
  "description": "Workspace ID (optional if set in profile)",
@@ -2491,11 +1284,25 @@
2491
1284
  "hasDynamicHelp": false,
2492
1285
  "multiple": false,
2493
1286
  "type": "option"
1287
+ },
1288
+ "env": {
1289
+ "description": "Include environment variables",
1290
+ "name": "env",
1291
+ "required": false,
1292
+ "allowNo": false,
1293
+ "type": "boolean"
1294
+ },
1295
+ "records": {
1296
+ "description": "Include records",
1297
+ "name": "records",
1298
+ "required": false,
1299
+ "allowNo": false,
1300
+ "type": "boolean"
2494
1301
  }
2495
1302
  },
2496
1303
  "hasDynamicHelp": false,
2497
1304
  "hiddenAliases": [],
2498
- "id": "static_host:build:get",
1305
+ "id": "workspace:pull",
2499
1306
  "pluginAlias": "@xano/cli",
2500
1307
  "pluginName": "@xano/cli",
2501
1308
  "pluginType": "core",
@@ -2505,27 +1312,25 @@
2505
1312
  "relativePath": [
2506
1313
  "dist",
2507
1314
  "commands",
2508
- "static_host",
2509
- "build",
2510
- "get",
1315
+ "workspace",
1316
+ "pull",
2511
1317
  "index.js"
2512
1318
  ]
2513
1319
  },
2514
- "static_host:build:list": {
1320
+ "workspace:push": {
2515
1321
  "aliases": [],
2516
1322
  "args": {
2517
- "static_host": {
2518
- "description": "Static Host name",
2519
- "name": "static_host",
1323
+ "directory": {
1324
+ "description": "Directory containing documents to push (as produced by workspace pull)",
1325
+ "name": "directory",
2520
1326
  "required": true
2521
1327
  }
2522
1328
  },
2523
- "description": "List all builds for a static host",
1329
+ "description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
2524
1330
  "examples": [
2525
- "$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
2526
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
2527
- "$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
2528
- "$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
1331
+ "$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
1332
+ "$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
1333
+ "$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n"
2529
1334
  ],
2530
1335
  "flags": {
2531
1336
  "profile": {
@@ -2538,47 +1343,6 @@
2538
1343
  "multiple": false,
2539
1344
  "type": "option"
2540
1345
  },
2541
- "verbose": {
2542
- "char": "v",
2543
- "description": "Show detailed request/response information",
2544
- "env": "XANO_VERBOSE",
2545
- "name": "verbose",
2546
- "required": false,
2547
- "allowNo": false,
2548
- "type": "boolean"
2549
- },
2550
- "output": {
2551
- "char": "o",
2552
- "description": "Output format",
2553
- "name": "output",
2554
- "required": false,
2555
- "default": "summary",
2556
- "hasDynamicHelp": false,
2557
- "multiple": false,
2558
- "options": [
2559
- "summary",
2560
- "json"
2561
- ],
2562
- "type": "option"
2563
- },
2564
- "page": {
2565
- "description": "Page number for pagination",
2566
- "name": "page",
2567
- "required": false,
2568
- "default": 1,
2569
- "hasDynamicHelp": false,
2570
- "multiple": false,
2571
- "type": "option"
2572
- },
2573
- "per_page": {
2574
- "description": "Number of results per page",
2575
- "name": "per_page",
2576
- "required": false,
2577
- "default": 50,
2578
- "hasDynamicHelp": false,
2579
- "multiple": false,
2580
- "type": "option"
2581
- },
2582
1346
  "workspace": {
2583
1347
  "char": "w",
2584
1348
  "description": "Workspace ID (optional if set in profile)",
@@ -2591,7 +1355,7 @@
2591
1355
  },
2592
1356
  "hasDynamicHelp": false,
2593
1357
  "hiddenAliases": [],
2594
- "id": "static_host:build:list",
1358
+ "id": "workspace:push",
2595
1359
  "pluginAlias": "@xano/cli",
2596
1360
  "pluginName": "@xano/cli",
2597
1361
  "pluginType": "core",
@@ -2601,9 +1365,8 @@
2601
1365
  "relativePath": [
2602
1366
  "dist",
2603
1367
  "commands",
2604
- "static_host",
2605
- "build",
2606
- "list",
1368
+ "workspace",
1369
+ "push",
2607
1370
  "index.js"
2608
1371
  ]
2609
1372
  },
@@ -2632,15 +1395,6 @@
2632
1395
  "multiple": false,
2633
1396
  "type": "option"
2634
1397
  },
2635
- "verbose": {
2636
- "char": "v",
2637
- "description": "Show detailed request/response information",
2638
- "env": "XANO_VERBOSE",
2639
- "name": "verbose",
2640
- "required": false,
2641
- "allowNo": false,
2642
- "type": "boolean"
2643
- },
2644
1398
  "force": {
2645
1399
  "char": "f",
2646
1400
  "description": "Skip confirmation prompt",
@@ -2692,15 +1446,6 @@
2692
1446
  "multiple": false,
2693
1447
  "type": "option"
2694
1448
  },
2695
- "verbose": {
2696
- "char": "v",
2697
- "description": "Show detailed request/response information",
2698
- "env": "XANO_VERBOSE",
2699
- "name": "verbose",
2700
- "required": false,
2701
- "allowNo": false,
2702
- "type": "boolean"
2703
- },
2704
1449
  "output": {
2705
1450
  "char": "o",
2706
1451
  "description": "Output format",
@@ -2752,15 +1497,6 @@
2752
1497
  "multiple": false,
2753
1498
  "type": "option"
2754
1499
  },
2755
- "verbose": {
2756
- "char": "v",
2757
- "description": "Show detailed request/response information",
2758
- "env": "XANO_VERBOSE",
2759
- "name": "verbose",
2760
- "required": false,
2761
- "allowNo": false,
2762
- "type": "boolean"
2763
- },
2764
1500
  "output": {
2765
1501
  "char": "o",
2766
1502
  "description": "Output format",
@@ -2793,24 +1529,19 @@
2793
1529
  "index.js"
2794
1530
  ]
2795
1531
  },
2796
- "run:env:set": {
1532
+ "run:projects:delete": {
2797
1533
  "aliases": [],
2798
1534
  "args": {
2799
- "name": {
2800
- "description": "Environment variable name",
2801
- "name": "name",
2802
- "required": true
2803
- },
2804
- "value": {
2805
- "description": "Environment variable value",
2806
- "name": "value",
1535
+ "projectId": {
1536
+ "description": "Project ID to delete",
1537
+ "name": "projectId",
2807
1538
  "required": true
2808
1539
  }
2809
1540
  },
2810
- "description": "Set an environment variable",
1541
+ "description": "Delete a project",
2811
1542
  "examples": [
2812
- "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
2813
- "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
1543
+ "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
1544
+ "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2814
1545
  ],
2815
1546
  "flags": {
2816
1547
  "profile": {
@@ -2823,11 +1554,10 @@
2823
1554
  "multiple": false,
2824
1555
  "type": "option"
2825
1556
  },
2826
- "verbose": {
2827
- "char": "v",
2828
- "description": "Show detailed request/response information",
2829
- "env": "XANO_VERBOSE",
2830
- "name": "verbose",
1557
+ "force": {
1558
+ "char": "f",
1559
+ "description": "Skip confirmation prompt",
1560
+ "name": "force",
2831
1561
  "required": false,
2832
1562
  "allowNo": false,
2833
1563
  "type": "boolean"
@@ -2835,7 +1565,7 @@
2835
1565
  },
2836
1566
  "hasDynamicHelp": false,
2837
1567
  "hiddenAliases": [],
2838
- "id": "run:env:set",
1568
+ "id": "run:projects:delete",
2839
1569
  "pluginAlias": "@xano/cli",
2840
1570
  "pluginName": "@xano/cli",
2841
1571
  "pluginType": "core",
@@ -2845,8 +1575,59 @@
2845
1575
  "dist",
2846
1576
  "commands",
2847
1577
  "run",
2848
- "env",
2849
- "set",
1578
+ "projects",
1579
+ "delete",
1580
+ "index.js"
1581
+ ]
1582
+ },
1583
+ "run:projects:list": {
1584
+ "aliases": [],
1585
+ "args": {},
1586
+ "description": "List all projects",
1587
+ "examples": [
1588
+ "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
1589
+ "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
1590
+ ],
1591
+ "flags": {
1592
+ "profile": {
1593
+ "char": "p",
1594
+ "description": "Profile to use for this command",
1595
+ "env": "XANO_PROFILE",
1596
+ "name": "profile",
1597
+ "required": false,
1598
+ "hasDynamicHelp": false,
1599
+ "multiple": false,
1600
+ "type": "option"
1601
+ },
1602
+ "output": {
1603
+ "char": "o",
1604
+ "description": "Output format",
1605
+ "name": "output",
1606
+ "required": false,
1607
+ "default": "table",
1608
+ "hasDynamicHelp": false,
1609
+ "multiple": false,
1610
+ "options": [
1611
+ "table",
1612
+ "json"
1613
+ ],
1614
+ "type": "option"
1615
+ }
1616
+ },
1617
+ "hasDynamicHelp": false,
1618
+ "hiddenAliases": [],
1619
+ "id": "run:projects:list",
1620
+ "pluginAlias": "@xano/cli",
1621
+ "pluginName": "@xano/cli",
1622
+ "pluginType": "core",
1623
+ "strict": true,
1624
+ "isESM": true,
1625
+ "relativePath": [
1626
+ "dist",
1627
+ "commands",
1628
+ "run",
1629
+ "projects",
1630
+ "list",
2850
1631
  "index.js"
2851
1632
  ]
2852
1633
  },
@@ -2870,14 +1651,14 @@
2870
1651
  "multiple": false,
2871
1652
  "type": "option"
2872
1653
  },
2873
- "verbose": {
2874
- "char": "v",
2875
- "description": "Show detailed request/response information",
2876
- "env": "XANO_VERBOSE",
2877
- "name": "verbose",
2878
- "required": false,
2879
- "allowNo": false,
2880
- "type": "boolean"
1654
+ "name": {
1655
+ "char": "n",
1656
+ "description": "Project name",
1657
+ "name": "name",
1658
+ "required": true,
1659
+ "hasDynamicHelp": false,
1660
+ "multiple": false,
1661
+ "type": "option"
2881
1662
  },
2882
1663
  "description": {
2883
1664
  "char": "d",
@@ -2889,15 +1670,6 @@
2889
1670
  "multiple": false,
2890
1671
  "type": "option"
2891
1672
  },
2892
- "name": {
2893
- "char": "n",
2894
- "description": "Project name",
2895
- "name": "name",
2896
- "required": true,
2897
- "hasDynamicHelp": false,
2898
- "multiple": false,
2899
- "type": "option"
2900
- },
2901
1673
  "output": {
2902
1674
  "char": "o",
2903
1675
  "description": "Output format",
@@ -2930,19 +1702,24 @@
2930
1702
  "index.js"
2931
1703
  ]
2932
1704
  },
2933
- "run:projects:delete": {
1705
+ "run:env:set": {
2934
1706
  "aliases": [],
2935
1707
  "args": {
2936
- "projectId": {
2937
- "description": "Project ID to delete",
2938
- "name": "projectId",
1708
+ "name": {
1709
+ "description": "Environment variable name",
1710
+ "name": "name",
1711
+ "required": true
1712
+ },
1713
+ "value": {
1714
+ "description": "Environment variable value",
1715
+ "name": "value",
2939
1716
  "required": true
2940
1717
  }
2941
1718
  },
2942
- "description": "Delete a project",
1719
+ "description": "Set an environment variable",
2943
1720
  "examples": [
2944
- "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2945
- "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
1721
+ "$ xano run env set API_KEY my-secret-key\nEnvironment variable 'API_KEY' set successfully!\n",
1722
+ "$ xano run env set DATABASE_URL \"postgres://user:pass@host/db\"\nEnvironment variable 'DATABASE_URL' set successfully!\n"
2946
1723
  ],
2947
1724
  "flags": {
2948
1725
  "profile": {
@@ -2954,28 +1731,11 @@
2954
1731
  "hasDynamicHelp": false,
2955
1732
  "multiple": false,
2956
1733
  "type": "option"
2957
- },
2958
- "verbose": {
2959
- "char": "v",
2960
- "description": "Show detailed request/response information",
2961
- "env": "XANO_VERBOSE",
2962
- "name": "verbose",
2963
- "required": false,
2964
- "allowNo": false,
2965
- "type": "boolean"
2966
- },
2967
- "force": {
2968
- "char": "f",
2969
- "description": "Skip confirmation prompt",
2970
- "name": "force",
2971
- "required": false,
2972
- "allowNo": false,
2973
- "type": "boolean"
2974
1734
  }
2975
1735
  },
2976
1736
  "hasDynamicHelp": false,
2977
1737
  "hiddenAliases": [],
2978
- "id": "run:projects:delete",
1738
+ "id": "run:env:set",
2979
1739
  "pluginAlias": "@xano/cli",
2980
1740
  "pluginName": "@xano/cli",
2981
1741
  "pluginType": "core",
@@ -2985,18 +1745,24 @@
2985
1745
  "dist",
2986
1746
  "commands",
2987
1747
  "run",
2988
- "projects",
2989
- "delete",
1748
+ "env",
1749
+ "set",
2990
1750
  "index.js"
2991
1751
  ]
2992
1752
  },
2993
- "run:projects:list": {
1753
+ "run:secrets:get": {
2994
1754
  "aliases": [],
2995
- "args": {},
2996
- "description": "List all projects",
1755
+ "args": {
1756
+ "name": {
1757
+ "description": "Secret name",
1758
+ "name": "name",
1759
+ "required": true
1760
+ }
1761
+ },
1762
+ "description": "Get a secret value",
2997
1763
  "examples": [
2998
- "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
2999
- "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
1764
+ "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
1765
+ "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
3000
1766
  ],
3001
1767
  "flags": {
3002
1768
  "profile": {
@@ -3009,25 +1775,16 @@
3009
1775
  "multiple": false,
3010
1776
  "type": "option"
3011
1777
  },
3012
- "verbose": {
3013
- "char": "v",
3014
- "description": "Show detailed request/response information",
3015
- "env": "XANO_VERBOSE",
3016
- "name": "verbose",
3017
- "required": false,
3018
- "allowNo": false,
3019
- "type": "boolean"
3020
- },
3021
1778
  "output": {
3022
1779
  "char": "o",
3023
1780
  "description": "Output format",
3024
1781
  "name": "output",
3025
1782
  "required": false,
3026
- "default": "table",
1783
+ "default": "value",
3027
1784
  "hasDynamicHelp": false,
3028
1785
  "multiple": false,
3029
1786
  "options": [
3030
- "table",
1787
+ "value",
3031
1788
  "json"
3032
1789
  ],
3033
1790
  "type": "option"
@@ -3035,7 +1792,7 @@
3035
1792
  },
3036
1793
  "hasDynamicHelp": false,
3037
1794
  "hiddenAliases": [],
3038
- "id": "run:projects:list",
1795
+ "id": "run:secrets:get",
3039
1796
  "pluginAlias": "@xano/cli",
3040
1797
  "pluginName": "@xano/cli",
3041
1798
  "pluginType": "core",
@@ -3045,8 +1802,8 @@
3045
1802
  "dist",
3046
1803
  "commands",
3047
1804
  "run",
3048
- "projects",
3049
- "list",
1805
+ "secrets",
1806
+ "get",
3050
1807
  "index.js"
3051
1808
  ]
3052
1809
  },
@@ -3076,14 +1833,14 @@
3076
1833
  "multiple": false,
3077
1834
  "type": "option"
3078
1835
  },
3079
- "verbose": {
3080
- "char": "v",
3081
- "description": "Show detailed request/response information",
3082
- "env": "XANO_VERBOSE",
3083
- "name": "verbose",
1836
+ "name": {
1837
+ "char": "n",
1838
+ "description": "New project name",
1839
+ "name": "name",
3084
1840
  "required": false,
3085
- "allowNo": false,
3086
- "type": "boolean"
1841
+ "hasDynamicHelp": false,
1842
+ "multiple": false,
1843
+ "type": "option"
3087
1844
  },
3088
1845
  "description": {
3089
1846
  "char": "d",
@@ -3094,15 +1851,6 @@
3094
1851
  "multiple": false,
3095
1852
  "type": "option"
3096
1853
  },
3097
- "name": {
3098
- "char": "n",
3099
- "description": "New project name",
3100
- "name": "name",
3101
- "required": false,
3102
- "hasDynamicHelp": false,
3103
- "multiple": false,
3104
- "type": "option"
3105
- },
3106
1854
  "output": {
3107
1855
  "char": "o",
3108
1856
  "description": "Output format",
@@ -3135,19 +1883,19 @@
3135
1883
  "index.js"
3136
1884
  ]
3137
1885
  },
3138
- "run:sink:get": {
1886
+ "run:secrets:delete": {
3139
1887
  "aliases": [],
3140
1888
  "args": {
3141
- "sessionId": {
3142
- "description": "Session ID",
3143
- "name": "sessionId",
1889
+ "name": {
1890
+ "description": "Secret name",
1891
+ "name": "name",
3144
1892
  "required": true
3145
1893
  }
3146
1894
  },
3147
- "description": "Get sink data for a completed session",
1895
+ "description": "Delete a secret",
3148
1896
  "examples": [
3149
- "$ 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",
3150
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
1897
+ "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
1898
+ "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
3151
1899
  ],
3152
1900
  "flags": {
3153
1901
  "profile": {
@@ -3160,33 +1908,18 @@
3160
1908
  "multiple": false,
3161
1909
  "type": "option"
3162
1910
  },
3163
- "verbose": {
3164
- "char": "v",
3165
- "description": "Show detailed request/response information",
3166
- "env": "XANO_VERBOSE",
3167
- "name": "verbose",
1911
+ "force": {
1912
+ "char": "f",
1913
+ "description": "Skip confirmation prompt",
1914
+ "name": "force",
3168
1915
  "required": false,
3169
1916
  "allowNo": false,
3170
1917
  "type": "boolean"
3171
- },
3172
- "output": {
3173
- "char": "o",
3174
- "description": "Output format",
3175
- "name": "output",
3176
- "required": false,
3177
- "default": "summary",
3178
- "hasDynamicHelp": false,
3179
- "multiple": false,
3180
- "options": [
3181
- "summary",
3182
- "json"
3183
- ],
3184
- "type": "option"
3185
1918
  }
3186
1919
  },
3187
1920
  "hasDynamicHelp": false,
3188
1921
  "hiddenAliases": [],
3189
- "id": "run:sink:get",
1922
+ "id": "run:secrets:delete",
3190
1923
  "pluginAlias": "@xano/cli",
3191
1924
  "pluginName": "@xano/cli",
3192
1925
  "pluginType": "core",
@@ -3196,12 +1929,12 @@
3196
1929
  "dist",
3197
1930
  "commands",
3198
1931
  "run",
3199
- "sink",
3200
- "get",
1932
+ "secrets",
1933
+ "delete",
3201
1934
  "index.js"
3202
1935
  ]
3203
1936
  },
3204
- "run:secrets:delete": {
1937
+ "run:secrets:set": {
3205
1938
  "aliases": [],
3206
1939
  "args": {
3207
1940
  "name": {
@@ -3210,10 +1943,10 @@
3210
1943
  "required": true
3211
1944
  }
3212
1945
  },
3213
- "description": "Delete a secret",
1946
+ "description": "Set a secret",
3214
1947
  "examples": [
3215
- "$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
3216
- "$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
1948
+ "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
1949
+ "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
3217
1950
  ],
3218
1951
  "flags": {
3219
1952
  "profile": {
@@ -3226,27 +1959,41 @@
3226
1959
  "multiple": false,
3227
1960
  "type": "option"
3228
1961
  },
3229
- "verbose": {
1962
+ "type": {
1963
+ "char": "t",
1964
+ "description": "Secret type",
1965
+ "name": "type",
1966
+ "required": true,
1967
+ "hasDynamicHelp": false,
1968
+ "multiple": false,
1969
+ "options": [
1970
+ "dockerconfigjson",
1971
+ "service-account-token"
1972
+ ],
1973
+ "type": "option"
1974
+ },
1975
+ "value": {
3230
1976
  "char": "v",
3231
- "description": "Show detailed request/response information",
3232
- "env": "XANO_VERBOSE",
3233
- "name": "verbose",
3234
- "required": false,
3235
- "allowNo": false,
3236
- "type": "boolean"
1977
+ "description": "Secret value",
1978
+ "name": "value",
1979
+ "required": true,
1980
+ "hasDynamicHelp": false,
1981
+ "multiple": false,
1982
+ "type": "option"
3237
1983
  },
3238
- "force": {
3239
- "char": "f",
3240
- "description": "Skip confirmation prompt",
3241
- "name": "force",
1984
+ "repo": {
1985
+ "char": "r",
1986
+ "description": "Repository (for dockerconfigjson type)",
1987
+ "name": "repo",
3242
1988
  "required": false,
3243
- "allowNo": false,
3244
- "type": "boolean"
1989
+ "hasDynamicHelp": false,
1990
+ "multiple": false,
1991
+ "type": "option"
3245
1992
  }
3246
1993
  },
3247
1994
  "hasDynamicHelp": false,
3248
1995
  "hiddenAliases": [],
3249
- "id": "run:secrets:delete",
1996
+ "id": "run:secrets:set",
3250
1997
  "pluginAlias": "@xano/cli",
3251
1998
  "pluginName": "@xano/cli",
3252
1999
  "pluginType": "core",
@@ -3257,23 +2004,23 @@
3257
2004
  "commands",
3258
2005
  "run",
3259
2006
  "secrets",
3260
- "delete",
2007
+ "set",
3261
2008
  "index.js"
3262
2009
  ]
3263
2010
  },
3264
- "run:secrets:set": {
2011
+ "run:sink:get": {
3265
2012
  "aliases": [],
3266
2013
  "args": {
3267
- "name": {
3268
- "description": "Secret name",
3269
- "name": "name",
2014
+ "sessionId": {
2015
+ "description": "Session ID",
2016
+ "name": "sessionId",
3270
2017
  "required": true
3271
2018
  }
3272
2019
  },
3273
- "description": "Set a secret",
2020
+ "description": "Get sink data for a completed session",
3274
2021
  "examples": [
3275
- "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
3276
- "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
2022
+ "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
2023
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
3277
2024
  ],
3278
2025
  "flags": {
3279
2026
  "profile": {
@@ -3286,50 +2033,75 @@
3286
2033
  "multiple": false,
3287
2034
  "type": "option"
3288
2035
  },
3289
- "verbose": {
3290
- "char": "v",
3291
- "description": "Show detailed request/response information",
3292
- "env": "XANO_VERBOSE",
3293
- "name": "verbose",
3294
- "required": false,
3295
- "allowNo": false,
3296
- "type": "boolean"
3297
- },
3298
- "repo": {
3299
- "char": "r",
3300
- "description": "Repository (for dockerconfigjson type)",
3301
- "name": "repo",
2036
+ "output": {
2037
+ "char": "o",
2038
+ "description": "Output format",
2039
+ "name": "output",
3302
2040
  "required": false,
2041
+ "default": "summary",
3303
2042
  "hasDynamicHelp": false,
3304
2043
  "multiple": false,
2044
+ "options": [
2045
+ "summary",
2046
+ "json"
2047
+ ],
3305
2048
  "type": "option"
3306
- },
3307
- "type": {
3308
- "char": "t",
3309
- "description": "Secret type",
3310
- "name": "type",
3311
- "required": true,
2049
+ }
2050
+ },
2051
+ "hasDynamicHelp": false,
2052
+ "hiddenAliases": [],
2053
+ "id": "run:sink:get",
2054
+ "pluginAlias": "@xano/cli",
2055
+ "pluginName": "@xano/cli",
2056
+ "pluginType": "core",
2057
+ "strict": true,
2058
+ "isESM": true,
2059
+ "relativePath": [
2060
+ "dist",
2061
+ "commands",
2062
+ "run",
2063
+ "sink",
2064
+ "get",
2065
+ "index.js"
2066
+ ]
2067
+ },
2068
+ "run:secrets:list": {
2069
+ "aliases": [],
2070
+ "args": {},
2071
+ "description": "List all secret keys",
2072
+ "examples": [
2073
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2074
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2075
+ ],
2076
+ "flags": {
2077
+ "profile": {
2078
+ "char": "p",
2079
+ "description": "Profile to use for this command",
2080
+ "env": "XANO_PROFILE",
2081
+ "name": "profile",
2082
+ "required": false,
3312
2083
  "hasDynamicHelp": false,
3313
2084
  "multiple": false,
3314
- "options": [
3315
- "dockerconfigjson",
3316
- "service-account-token"
3317
- ],
3318
2085
  "type": "option"
3319
2086
  },
3320
- "value": {
3321
- "char": "v",
3322
- "description": "Secret value",
3323
- "name": "value",
3324
- "required": true,
2087
+ "output": {
2088
+ "char": "o",
2089
+ "description": "Output format",
2090
+ "name": "output",
2091
+ "required": false,
2092
+ "default": "table",
3325
2093
  "hasDynamicHelp": false,
3326
2094
  "multiple": false,
2095
+ "options": [
2096
+ "table",
2097
+ "json"
2098
+ ],
3327
2099
  "type": "option"
3328
2100
  }
3329
2101
  },
3330
2102
  "hasDynamicHelp": false,
3331
2103
  "hiddenAliases": [],
3332
- "id": "run:secrets:set",
2104
+ "id": "run:secrets:list",
3333
2105
  "pluginAlias": "@xano/cli",
3334
2106
  "pluginName": "@xano/cli",
3335
2107
  "pluginType": "core",
@@ -3340,23 +2112,30 @@
3340
2112
  "commands",
3341
2113
  "run",
3342
2114
  "secrets",
3343
- "set",
2115
+ "list",
3344
2116
  "index.js"
3345
2117
  ]
3346
2118
  },
3347
- "run:secrets:get": {
2119
+ "static_host:build:get": {
3348
2120
  "aliases": [],
3349
2121
  "args": {
3350
- "name": {
3351
- "description": "Secret name",
3352
- "name": "name",
2122
+ "static_host": {
2123
+ "description": "Static Host name",
2124
+ "name": "static_host",
2125
+ "required": true
2126
+ },
2127
+ "build_id": {
2128
+ "description": "Build ID",
2129
+ "name": "build_id",
3353
2130
  "required": true
3354
2131
  }
3355
2132
  },
3356
- "description": "Get a secret value",
2133
+ "description": "Get details of a specific build for a static host",
3357
2134
  "examples": [
3358
- "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
3359
- "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2135
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2136
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
2137
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
2138
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
3360
2139
  ],
3361
2140
  "flags": {
3362
2141
  "profile": {
@@ -3369,25 +2148,25 @@
3369
2148
  "multiple": false,
3370
2149
  "type": "option"
3371
2150
  },
3372
- "verbose": {
3373
- "char": "v",
3374
- "description": "Show detailed request/response information",
3375
- "env": "XANO_VERBOSE",
3376
- "name": "verbose",
2151
+ "workspace": {
2152
+ "char": "w",
2153
+ "description": "Workspace ID (optional if set in profile)",
2154
+ "name": "workspace",
3377
2155
  "required": false,
3378
- "allowNo": false,
3379
- "type": "boolean"
2156
+ "hasDynamicHelp": false,
2157
+ "multiple": false,
2158
+ "type": "option"
3380
2159
  },
3381
2160
  "output": {
3382
2161
  "char": "o",
3383
2162
  "description": "Output format",
3384
2163
  "name": "output",
3385
2164
  "required": false,
3386
- "default": "value",
2165
+ "default": "summary",
3387
2166
  "hasDynamicHelp": false,
3388
2167
  "multiple": false,
3389
2168
  "options": [
3390
- "value",
2169
+ "summary",
3391
2170
  "json"
3392
2171
  ],
3393
2172
  "type": "option"
@@ -3395,28 +2174,37 @@
3395
2174
  },
3396
2175
  "hasDynamicHelp": false,
3397
2176
  "hiddenAliases": [],
3398
- "id": "run:secrets:get",
2177
+ "id": "static_host:build:get",
3399
2178
  "pluginAlias": "@xano/cli",
3400
2179
  "pluginName": "@xano/cli",
3401
2180
  "pluginType": "core",
3402
2181
  "strict": true,
2182
+ "enableJsonFlag": false,
3403
2183
  "isESM": true,
3404
2184
  "relativePath": [
3405
2185
  "dist",
3406
2186
  "commands",
3407
- "run",
3408
- "secrets",
2187
+ "static_host",
2188
+ "build",
3409
2189
  "get",
3410
2190
  "index.js"
3411
2191
  ]
3412
2192
  },
3413
- "run:secrets:list": {
2193
+ "static_host:build:list": {
3414
2194
  "aliases": [],
3415
- "args": {},
3416
- "description": "List all secret keys",
2195
+ "args": {
2196
+ "static_host": {
2197
+ "description": "Static Host name",
2198
+ "name": "static_host",
2199
+ "required": true
2200
+ }
2201
+ },
2202
+ "description": "List all builds for a static host",
3417
2203
  "examples": [
3418
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
3419
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2204
+ "$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
2205
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
2206
+ "$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
2207
+ "$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
3420
2208
  ],
3421
2209
  "flags": {
3422
2210
  "profile": {
@@ -3429,43 +2217,62 @@
3429
2217
  "multiple": false,
3430
2218
  "type": "option"
3431
2219
  },
3432
- "verbose": {
3433
- "char": "v",
3434
- "description": "Show detailed request/response information",
3435
- "env": "XANO_VERBOSE",
3436
- "name": "verbose",
2220
+ "workspace": {
2221
+ "char": "w",
2222
+ "description": "Workspace ID (optional if set in profile)",
2223
+ "name": "workspace",
3437
2224
  "required": false,
3438
- "allowNo": false,
3439
- "type": "boolean"
2225
+ "hasDynamicHelp": false,
2226
+ "multiple": false,
2227
+ "type": "option"
3440
2228
  },
3441
2229
  "output": {
3442
2230
  "char": "o",
3443
2231
  "description": "Output format",
3444
2232
  "name": "output",
3445
2233
  "required": false,
3446
- "default": "table",
2234
+ "default": "summary",
3447
2235
  "hasDynamicHelp": false,
3448
2236
  "multiple": false,
3449
2237
  "options": [
3450
- "table",
2238
+ "summary",
3451
2239
  "json"
3452
2240
  ],
3453
2241
  "type": "option"
2242
+ },
2243
+ "page": {
2244
+ "description": "Page number for pagination",
2245
+ "name": "page",
2246
+ "required": false,
2247
+ "default": 1,
2248
+ "hasDynamicHelp": false,
2249
+ "multiple": false,
2250
+ "type": "option"
2251
+ },
2252
+ "per_page": {
2253
+ "description": "Number of results per page",
2254
+ "name": "per_page",
2255
+ "required": false,
2256
+ "default": 50,
2257
+ "hasDynamicHelp": false,
2258
+ "multiple": false,
2259
+ "type": "option"
3454
2260
  }
3455
2261
  },
3456
2262
  "hasDynamicHelp": false,
3457
2263
  "hiddenAliases": [],
3458
- "id": "run:secrets:list",
2264
+ "id": "static_host:build:list",
3459
2265
  "pluginAlias": "@xano/cli",
3460
2266
  "pluginName": "@xano/cli",
3461
2267
  "pluginType": "core",
3462
2268
  "strict": true,
2269
+ "enableJsonFlag": false,
3463
2270
  "isESM": true,
3464
2271
  "relativePath": [
3465
2272
  "dist",
3466
2273
  "commands",
3467
- "run",
3468
- "secrets",
2274
+ "static_host",
2275
+ "build",
3469
2276
  "list",
3470
2277
  "index.js"
3471
2278
  ]
@@ -3495,15 +2302,6 @@
3495
2302
  "multiple": false,
3496
2303
  "type": "option"
3497
2304
  },
3498
- "verbose": {
3499
- "char": "v",
3500
- "description": "Show detailed request/response information",
3501
- "env": "XANO_VERBOSE",
3502
- "name": "verbose",
3503
- "required": false,
3504
- "allowNo": false,
3505
- "type": "boolean"
3506
- },
3507
2305
  "force": {
3508
2306
  "char": "f",
3509
2307
  "description": "Skip confirmation prompt",
@@ -3530,7 +2328,7 @@
3530
2328
  "index.js"
3531
2329
  ]
3532
2330
  },
3533
- "run:sessions:start": {
2331
+ "run:sessions:get": {
3534
2332
  "aliases": [],
3535
2333
  "args": {
3536
2334
  "sessionId": {
@@ -3539,10 +2337,10 @@
3539
2337
  "required": true
3540
2338
  }
3541
2339
  },
3542
- "description": "Start a session",
2340
+ "description": "Get session details",
3543
2341
  "examples": [
3544
- "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
3545
- "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
2342
+ "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
2343
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
3546
2344
  ],
3547
2345
  "flags": {
3548
2346
  "profile": {
@@ -3555,15 +2353,6 @@
3555
2353
  "multiple": false,
3556
2354
  "type": "option"
3557
2355
  },
3558
- "verbose": {
3559
- "char": "v",
3560
- "description": "Show detailed request/response information",
3561
- "env": "XANO_VERBOSE",
3562
- "name": "verbose",
3563
- "required": false,
3564
- "allowNo": false,
3565
- "type": "boolean"
3566
- },
3567
2356
  "output": {
3568
2357
  "char": "o",
3569
2358
  "description": "Output format",
@@ -3581,7 +2370,7 @@
3581
2370
  },
3582
2371
  "hasDynamicHelp": false,
3583
2372
  "hiddenAliases": [],
3584
- "id": "run:sessions:start",
2373
+ "id": "run:sessions:get",
3585
2374
  "pluginAlias": "@xano/cli",
3586
2375
  "pluginName": "@xano/cli",
3587
2376
  "pluginType": "core",
@@ -3592,7 +2381,7 @@
3592
2381
  "commands",
3593
2382
  "run",
3594
2383
  "sessions",
3595
- "start",
2384
+ "get",
3596
2385
  "index.js"
3597
2386
  ]
3598
2387
  },
@@ -3615,15 +2404,6 @@
3615
2404
  "multiple": false,
3616
2405
  "type": "option"
3617
2406
  },
3618
- "verbose": {
3619
- "char": "v",
3620
- "description": "Show detailed request/response information",
3621
- "env": "XANO_VERBOSE",
3622
- "name": "verbose",
3623
- "required": false,
3624
- "allowNo": false,
3625
- "type": "boolean"
3626
- },
3627
2407
  "output": {
3628
2408
  "char": "o",
3629
2409
  "description": "Output format",
@@ -3656,7 +2436,7 @@
3656
2436
  "index.js"
3657
2437
  ]
3658
2438
  },
3659
- "run:sessions:get": {
2439
+ "run:sessions:start": {
3660
2440
  "aliases": [],
3661
2441
  "args": {
3662
2442
  "sessionId": {
@@ -3665,10 +2445,10 @@
3665
2445
  "required": true
3666
2446
  }
3667
2447
  },
3668
- "description": "Get session details",
2448
+ "description": "Start a session",
3669
2449
  "examples": [
3670
- "$ 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",
3671
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
2450
+ "$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
2451
+ "$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
3672
2452
  ],
3673
2453
  "flags": {
3674
2454
  "profile": {
@@ -3681,15 +2461,6 @@
3681
2461
  "multiple": false,
3682
2462
  "type": "option"
3683
2463
  },
3684
- "verbose": {
3685
- "char": "v",
3686
- "description": "Show detailed request/response information",
3687
- "env": "XANO_VERBOSE",
3688
- "name": "verbose",
3689
- "required": false,
3690
- "allowNo": false,
3691
- "type": "boolean"
3692
- },
3693
2464
  "output": {
3694
2465
  "char": "o",
3695
2466
  "description": "Output format",
@@ -3707,7 +2478,7 @@
3707
2478
  },
3708
2479
  "hasDynamicHelp": false,
3709
2480
  "hiddenAliases": [],
3710
- "id": "run:sessions:get",
2481
+ "id": "run:sessions:start",
3711
2482
  "pluginAlias": "@xano/cli",
3712
2483
  "pluginName": "@xano/cli",
3713
2484
  "pluginType": "core",
@@ -3718,7 +2489,7 @@
3718
2489
  "commands",
3719
2490
  "run",
3720
2491
  "sessions",
3721
- "get",
2492
+ "start",
3722
2493
  "index.js"
3723
2494
  ]
3724
2495
  },
@@ -3747,15 +2518,6 @@
3747
2518
  "multiple": false,
3748
2519
  "type": "option"
3749
2520
  },
3750
- "verbose": {
3751
- "char": "v",
3752
- "description": "Show detailed request/response information",
3753
- "env": "XANO_VERBOSE",
3754
- "name": "verbose",
3755
- "required": false,
3756
- "allowNo": false,
3757
- "type": "boolean"
3758
- },
3759
2521
  "output": {
3760
2522
  "char": "o",
3761
2523
  "description": "Output format",
@@ -3787,7 +2549,102 @@
3787
2549
  "stop",
3788
2550
  "index.js"
3789
2551
  ]
2552
+ },
2553
+ "static_host:build:create": {
2554
+ "aliases": [],
2555
+ "args": {
2556
+ "static_host": {
2557
+ "description": "Static Host name",
2558
+ "name": "static_host",
2559
+ "required": true
2560
+ }
2561
+ },
2562
+ "description": "Create a new build for a static host",
2563
+ "examples": [
2564
+ "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
2565
+ "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
2566
+ "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
2567
+ ],
2568
+ "flags": {
2569
+ "profile": {
2570
+ "char": "p",
2571
+ "description": "Profile to use for this command",
2572
+ "env": "XANO_PROFILE",
2573
+ "name": "profile",
2574
+ "required": false,
2575
+ "hasDynamicHelp": false,
2576
+ "multiple": false,
2577
+ "type": "option"
2578
+ },
2579
+ "workspace": {
2580
+ "char": "w",
2581
+ "description": "Workspace ID (optional if set in profile)",
2582
+ "name": "workspace",
2583
+ "required": false,
2584
+ "hasDynamicHelp": false,
2585
+ "multiple": false,
2586
+ "type": "option"
2587
+ },
2588
+ "file": {
2589
+ "char": "f",
2590
+ "description": "Path to zip file to upload",
2591
+ "name": "file",
2592
+ "required": true,
2593
+ "hasDynamicHelp": false,
2594
+ "multiple": false,
2595
+ "type": "option"
2596
+ },
2597
+ "name": {
2598
+ "char": "n",
2599
+ "description": "Build name",
2600
+ "name": "name",
2601
+ "required": true,
2602
+ "hasDynamicHelp": false,
2603
+ "multiple": false,
2604
+ "type": "option"
2605
+ },
2606
+ "description": {
2607
+ "char": "d",
2608
+ "description": "Build description",
2609
+ "name": "description",
2610
+ "required": false,
2611
+ "hasDynamicHelp": false,
2612
+ "multiple": false,
2613
+ "type": "option"
2614
+ },
2615
+ "output": {
2616
+ "char": "o",
2617
+ "description": "Output format",
2618
+ "name": "output",
2619
+ "required": false,
2620
+ "default": "summary",
2621
+ "hasDynamicHelp": false,
2622
+ "multiple": false,
2623
+ "options": [
2624
+ "summary",
2625
+ "json"
2626
+ ],
2627
+ "type": "option"
2628
+ }
2629
+ },
2630
+ "hasDynamicHelp": false,
2631
+ "hiddenAliases": [],
2632
+ "id": "static_host:build:create",
2633
+ "pluginAlias": "@xano/cli",
2634
+ "pluginName": "@xano/cli",
2635
+ "pluginType": "core",
2636
+ "strict": true,
2637
+ "enableJsonFlag": false,
2638
+ "isESM": true,
2639
+ "relativePath": [
2640
+ "dist",
2641
+ "commands",
2642
+ "static_host",
2643
+ "build",
2644
+ "create",
2645
+ "index.js"
2646
+ ]
3790
2647
  }
3791
2648
  },
3792
- "version": "0.0.24"
2649
+ "version": "0.0.26"
3793
2650
  }