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