@xano/cli 0.0.5 → 0.0.6

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 (3) hide show
  1. package/README.md +89 -1153
  2. package/oclif.manifest.json +597 -597
  3. package/package.json +2 -2
@@ -1,88 +1,120 @@
1
1
  {
2
2
  "commands": {
3
- "function:create": {
3
+ "profile:delete": {
4
4
  "aliases": [],
5
- "args": {},
6
- "description": "Create a new function in a workspace",
5
+ "args": {
6
+ "name": {
7
+ "description": "Profile name to delete",
8
+ "name": "name",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Delete a profile configuration",
7
13
  "examples": [
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"
14
+ "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
15
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
16
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
13
17
  ],
14
18
  "flags": {
15
- "profile": {
16
- "char": "p",
17
- "description": "Profile to use for this command",
18
- "env": "XANO_PROFILE",
19
- "name": "profile",
19
+ "force": {
20
+ "char": "f",
21
+ "description": "Skip confirmation prompt",
22
+ "name": "force",
23
+ "required": false,
24
+ "allowNo": false,
25
+ "type": "boolean"
26
+ }
27
+ },
28
+ "hasDynamicHelp": false,
29
+ "hiddenAliases": [],
30
+ "id": "profile:delete",
31
+ "pluginAlias": "@xano/cli",
32
+ "pluginName": "@xano/cli",
33
+ "pluginType": "core",
34
+ "strict": true,
35
+ "enableJsonFlag": false,
36
+ "isESM": true,
37
+ "relativePath": [
38
+ "dist",
39
+ "commands",
40
+ "profile",
41
+ "delete",
42
+ "index.js"
43
+ ]
44
+ },
45
+ "profile:create": {
46
+ "aliases": [],
47
+ "args": {
48
+ "name": {
49
+ "description": "Profile name",
50
+ "name": "name",
51
+ "required": true
52
+ }
53
+ },
54
+ "description": "Create a new profile configuration",
55
+ "examples": [
56
+ "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
57
+ "$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
58
+ "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
59
+ "$ 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"
60
+ ],
61
+ "flags": {
62
+ "account_origin": {
63
+ "char": "a",
64
+ "description": "Account origin URL. Optional for self hosted installs.",
65
+ "name": "account_origin",
20
66
  "required": false,
21
67
  "hasDynamicHelp": false,
22
68
  "multiple": false,
23
69
  "type": "option"
24
70
  },
71
+ "instance_origin": {
72
+ "char": "i",
73
+ "description": "Instance origin URL",
74
+ "name": "instance_origin",
75
+ "required": true,
76
+ "hasDynamicHelp": false,
77
+ "multiple": false,
78
+ "type": "option"
79
+ },
80
+ "access_token": {
81
+ "char": "t",
82
+ "description": "Access token for the Xano Metadata API",
83
+ "name": "access_token",
84
+ "required": true,
85
+ "hasDynamicHelp": false,
86
+ "multiple": false,
87
+ "type": "option"
88
+ },
25
89
  "workspace": {
26
90
  "char": "w",
27
- "description": "Workspace ID (optional if set in profile)",
91
+ "description": "Workspace name",
28
92
  "name": "workspace",
29
93
  "required": false,
30
94
  "hasDynamicHelp": false,
31
95
  "multiple": false,
32
96
  "type": "option"
33
97
  },
34
- "file": {
35
- "char": "f",
36
- "description": "Path to file containing XanoScript code",
37
- "exclusive": [
38
- "stdin"
39
- ],
40
- "name": "file",
98
+ "branch": {
99
+ "char": "b",
100
+ "description": "Branch name",
101
+ "name": "branch",
41
102
  "required": false,
42
103
  "hasDynamicHelp": false,
43
104
  "multiple": false,
44
105
  "type": "option"
45
106
  },
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",
107
+ "default": {
108
+ "description": "Set this profile as the default",
109
+ "name": "default",
64
110
  "required": false,
65
111
  "allowNo": false,
66
112
  "type": "boolean"
67
- },
68
- "output": {
69
- "char": "o",
70
- "description": "Output format",
71
- "name": "output",
72
- "required": false,
73
- "default": "summary",
74
- "hasDynamicHelp": false,
75
- "multiple": false,
76
- "options": [
77
- "summary",
78
- "json"
79
- ],
80
- "type": "option"
81
113
  }
82
114
  },
83
115
  "hasDynamicHelp": false,
84
116
  "hiddenAliases": [],
85
- "id": "function:create",
117
+ "id": "profile:create",
86
118
  "pluginAlias": "@xano/cli",
87
119
  "pluginName": "@xano/cli",
88
120
  "pluginType": "core",
@@ -92,37 +124,50 @@
92
124
  "relativePath": [
93
125
  "dist",
94
126
  "commands",
95
- "function",
127
+ "profile",
96
128
  "create",
97
129
  "index.js"
98
130
  ]
99
131
  },
100
- "function:edit": {
132
+ "profile:edit": {
101
133
  "aliases": [],
102
134
  "args": {
103
- "function_id": {
104
- "description": "Function ID to edit",
105
- "name": "function_id",
106
- "required": false
135
+ "name": {
136
+ "description": "Profile name to edit",
137
+ "name": "name",
138
+ "required": true
107
139
  }
108
140
  },
109
- "description": "Edit a function in a workspace",
141
+ "description": "Edit an existing profile configuration",
110
142
  "examples": [
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"
143
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
144
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
145
+ "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
146
+ "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
119
147
  ],
120
148
  "flags": {
121
- "profile": {
122
- "char": "p",
123
- "description": "Profile to use for this command",
124
- "env": "XANO_PROFILE",
125
- "name": "profile",
149
+ "account_origin": {
150
+ "char": "a",
151
+ "description": "Update account origin URL",
152
+ "name": "account_origin",
153
+ "required": false,
154
+ "hasDynamicHelp": false,
155
+ "multiple": false,
156
+ "type": "option"
157
+ },
158
+ "instance_origin": {
159
+ "char": "i",
160
+ "description": "Update instance origin URL",
161
+ "name": "instance_origin",
162
+ "required": false,
163
+ "hasDynamicHelp": false,
164
+ "multiple": false,
165
+ "type": "option"
166
+ },
167
+ "access_token": {
168
+ "char": "t",
169
+ "description": "Update access token for the Xano Metadata API",
170
+ "name": "access_token",
126
171
  "required": false,
127
172
  "hasDynamicHelp": false,
128
173
  "multiple": false,
@@ -130,69 +175,40 @@
130
175
  },
131
176
  "workspace": {
132
177
  "char": "w",
133
- "description": "Workspace ID (optional if set in profile)",
178
+ "description": "Update workspace name",
134
179
  "name": "workspace",
135
180
  "required": false,
136
181
  "hasDynamicHelp": false,
137
182
  "multiple": false,
138
183
  "type": "option"
139
184
  },
140
- "file": {
141
- "char": "f",
142
- "description": "Path to file containing XanoScript code",
143
- "exclusive": [
144
- "stdin"
145
- ],
146
- "name": "file",
185
+ "branch": {
186
+ "char": "b",
187
+ "description": "Update branch name",
188
+ "name": "branch",
147
189
  "required": false,
148
190
  "hasDynamicHelp": false,
149
191
  "multiple": false,
150
192
  "type": "option"
151
193
  },
152
- "stdin": {
153
- "char": "s",
154
- "description": "Read XanoScript code from stdin",
155
- "exclusive": [
156
- "file"
157
- ],
158
- "name": "stdin",
159
- "required": false,
160
- "allowNo": false,
161
- "type": "boolean"
162
- },
163
- "edit": {
164
- "char": "e",
165
- "description": "Open file in editor before updating function (requires --file)",
166
- "name": "edit",
194
+ "remove-workspace": {
195
+ "description": "Remove workspace from profile",
196
+ "name": "remove-workspace",
167
197
  "required": false,
168
198
  "allowNo": false,
169
199
  "type": "boolean"
170
200
  },
171
- "publish": {
172
- "description": "Publish the function after editing",
173
- "name": "publish",
201
+ "remove-branch": {
202
+ "description": "Remove branch from profile",
203
+ "name": "remove-branch",
174
204
  "required": false,
175
205
  "allowNo": false,
176
206
  "type": "boolean"
177
- },
178
- "output": {
179
- "char": "o",
180
- "description": "Output format",
181
- "name": "output",
182
- "required": false,
183
- "default": "summary",
184
- "hasDynamicHelp": false,
185
- "multiple": false,
186
- "options": [
187
- "summary",
188
- "json"
189
- ],
190
- "type": "option"
191
207
  }
192
208
  },
193
209
  "hasDynamicHelp": false,
194
210
  "hiddenAliases": [],
195
- "id": "function:edit",
211
+ "id": "profile:edit",
196
212
  "pluginAlias": "@xano/cli",
197
213
  "pluginName": "@xano/cli",
198
214
  "pluginType": "core",
@@ -202,19 +218,268 @@
202
218
  "relativePath": [
203
219
  "dist",
204
220
  "commands",
205
- "function",
221
+ "profile",
206
222
  "edit",
207
223
  "index.js"
208
224
  ]
209
225
  },
210
- "function:get": {
226
+ "profile:get-default": {
211
227
  "aliases": [],
212
- "args": {
213
- "function_id": {
214
- "description": "Function ID",
215
- "name": "function_id",
216
- "required": false
217
- }
228
+ "args": {},
229
+ "description": "Get the current default profile name",
230
+ "examples": [
231
+ "$ xano profile:get-default\nproduction\n",
232
+ "$ xano profile:get-default\nNo default profile set\n"
233
+ ],
234
+ "flags": {},
235
+ "hasDynamicHelp": false,
236
+ "hiddenAliases": [],
237
+ "id": "profile:get-default",
238
+ "pluginAlias": "@xano/cli",
239
+ "pluginName": "@xano/cli",
240
+ "pluginType": "core",
241
+ "strict": true,
242
+ "enableJsonFlag": false,
243
+ "isESM": true,
244
+ "relativePath": [
245
+ "dist",
246
+ "commands",
247
+ "profile",
248
+ "get-default",
249
+ "index.js"
250
+ ]
251
+ },
252
+ "profile:set-default": {
253
+ "aliases": [],
254
+ "args": {
255
+ "name": {
256
+ "description": "Profile name to set as default",
257
+ "name": "name",
258
+ "required": true
259
+ }
260
+ },
261
+ "description": "Set the default profile",
262
+ "examples": [
263
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
264
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
265
+ ],
266
+ "flags": {},
267
+ "hasDynamicHelp": false,
268
+ "hiddenAliases": [],
269
+ "id": "profile:set-default",
270
+ "pluginAlias": "@xano/cli",
271
+ "pluginName": "@xano/cli",
272
+ "pluginType": "core",
273
+ "strict": true,
274
+ "enableJsonFlag": false,
275
+ "isESM": true,
276
+ "relativePath": [
277
+ "dist",
278
+ "commands",
279
+ "profile",
280
+ "set-default",
281
+ "index.js"
282
+ ]
283
+ },
284
+ "profile:list": {
285
+ "aliases": [],
286
+ "args": {},
287
+ "description": "List all available profile configurations",
288
+ "examples": [
289
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
290
+ "$ 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\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
291
+ "$ 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"
292
+ ],
293
+ "flags": {
294
+ "details": {
295
+ "char": "d",
296
+ "description": "Show detailed information for each profile",
297
+ "name": "details",
298
+ "required": false,
299
+ "allowNo": false,
300
+ "type": "boolean"
301
+ }
302
+ },
303
+ "hasDynamicHelp": false,
304
+ "hiddenAliases": [],
305
+ "id": "profile:list",
306
+ "pluginAlias": "@xano/cli",
307
+ "pluginName": "@xano/cli",
308
+ "pluginType": "core",
309
+ "strict": true,
310
+ "enableJsonFlag": false,
311
+ "isESM": true,
312
+ "relativePath": [
313
+ "dist",
314
+ "commands",
315
+ "profile",
316
+ "list",
317
+ "index.js"
318
+ ]
319
+ },
320
+ "profile:wizard": {
321
+ "aliases": [],
322
+ "args": {},
323
+ "description": "Create a new profile configuration using an interactive wizard",
324
+ "examples": [
325
+ "$ 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"
326
+ ],
327
+ "flags": {
328
+ "name": {
329
+ "char": "n",
330
+ "description": "Profile name (skip prompt if provided)",
331
+ "name": "name",
332
+ "required": false,
333
+ "hasDynamicHelp": false,
334
+ "multiple": false,
335
+ "type": "option"
336
+ },
337
+ "origin": {
338
+ "char": "o",
339
+ "description": "Xano instance origin URL",
340
+ "name": "origin",
341
+ "required": false,
342
+ "default": "https://app.xano.com",
343
+ "hasDynamicHelp": false,
344
+ "multiple": false,
345
+ "type": "option"
346
+ }
347
+ },
348
+ "hasDynamicHelp": false,
349
+ "hiddenAliases": [],
350
+ "id": "profile:wizard",
351
+ "pluginAlias": "@xano/cli",
352
+ "pluginName": "@xano/cli",
353
+ "pluginType": "core",
354
+ "strict": true,
355
+ "enableJsonFlag": false,
356
+ "isESM": true,
357
+ "relativePath": [
358
+ "dist",
359
+ "commands",
360
+ "profile",
361
+ "wizard",
362
+ "index.js"
363
+ ]
364
+ },
365
+ "function:edit": {
366
+ "aliases": [],
367
+ "args": {
368
+ "function_id": {
369
+ "description": "Function ID to edit",
370
+ "name": "function_id",
371
+ "required": false
372
+ }
373
+ },
374
+ "description": "Edit a function in a workspace",
375
+ "examples": [
376
+ "$ 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",
377
+ "$ 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",
378
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
379
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
380
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
381
+ "$ 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",
382
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
383
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
384
+ ],
385
+ "flags": {
386
+ "profile": {
387
+ "char": "p",
388
+ "description": "Profile to use for this command",
389
+ "env": "XANO_PROFILE",
390
+ "name": "profile",
391
+ "required": false,
392
+ "hasDynamicHelp": false,
393
+ "multiple": false,
394
+ "type": "option"
395
+ },
396
+ "workspace": {
397
+ "char": "w",
398
+ "description": "Workspace ID (optional if set in profile)",
399
+ "name": "workspace",
400
+ "required": false,
401
+ "hasDynamicHelp": false,
402
+ "multiple": false,
403
+ "type": "option"
404
+ },
405
+ "file": {
406
+ "char": "f",
407
+ "description": "Path to file containing XanoScript code",
408
+ "exclusive": [
409
+ "stdin"
410
+ ],
411
+ "name": "file",
412
+ "required": false,
413
+ "hasDynamicHelp": false,
414
+ "multiple": false,
415
+ "type": "option"
416
+ },
417
+ "stdin": {
418
+ "char": "s",
419
+ "description": "Read XanoScript code from stdin",
420
+ "exclusive": [
421
+ "file"
422
+ ],
423
+ "name": "stdin",
424
+ "required": false,
425
+ "allowNo": false,
426
+ "type": "boolean"
427
+ },
428
+ "edit": {
429
+ "char": "e",
430
+ "description": "Open file in editor before updating function (requires --file)",
431
+ "name": "edit",
432
+ "required": false,
433
+ "allowNo": false,
434
+ "type": "boolean"
435
+ },
436
+ "publish": {
437
+ "description": "Publish the function after editing",
438
+ "name": "publish",
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": "function:edit",
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
+ "function",
471
+ "edit",
472
+ "index.js"
473
+ ]
474
+ },
475
+ "function:get": {
476
+ "aliases": [],
477
+ "args": {
478
+ "function_id": {
479
+ "description": "Function ID",
480
+ "name": "function_id",
481
+ "required": false
482
+ }
218
483
  },
219
484
  "description": "Get a specific function from a workspace",
220
485
  "examples": [
@@ -408,15 +673,17 @@
408
673
  "index.js"
409
674
  ]
410
675
  },
411
- "static_host:list": {
676
+ "ephemeral:run:job": {
412
677
  "aliases": [],
413
678
  "args": {},
414
- "description": "List all static hosts in a workspace from the Xano Metadata API",
679
+ "description": "Run an ephemeral job in a workspace",
415
680
  "examples": [
416
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
417
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
418
- "$ 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",
419
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
681
+ "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
682
+ "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
683
+ "$ xano ephemeral:run:job -w 1 -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
684
+ "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
685
+ "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
686
+ "$ xano ephemeral:run:job -w 1 -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
420
687
  ],
421
688
  "flags": {
422
689
  "profile": {
@@ -438,136 +705,67 @@
438
705
  "multiple": false,
439
706
  "type": "option"
440
707
  },
441
- "output": {
442
- "char": "o",
443
- "description": "Output format",
444
- "name": "output",
445
- "required": false,
446
- "default": "summary",
447
- "hasDynamicHelp": false,
448
- "multiple": false,
449
- "options": [
450
- "summary",
451
- "json"
708
+ "file": {
709
+ "char": "f",
710
+ "description": "Path to file containing XanoScript code",
711
+ "exclusive": [
712
+ "stdin"
452
713
  ],
453
- "type": "option"
454
- },
455
- "page": {
456
- "description": "Page number for pagination",
457
- "name": "page",
458
- "required": false,
459
- "default": 1,
460
- "hasDynamicHelp": false,
461
- "multiple": false,
462
- "type": "option"
463
- },
464
- "per_page": {
465
- "description": "Number of results per page",
466
- "name": "per_page",
467
- "required": false,
468
- "default": 50,
469
- "hasDynamicHelp": false,
470
- "multiple": false,
471
- "type": "option"
472
- }
473
- },
474
- "hasDynamicHelp": false,
475
- "hiddenAliases": [],
476
- "id": "static_host:list",
477
- "pluginAlias": "@xano/cli",
478
- "pluginName": "@xano/cli",
479
- "pluginType": "core",
480
- "strict": true,
481
- "enableJsonFlag": false,
482
- "isESM": true,
483
- "relativePath": [
484
- "dist",
485
- "commands",
486
- "static_host",
487
- "list",
488
- "index.js"
489
- ]
490
- },
491
- "profile:edit": {
492
- "aliases": [],
493
- "args": {
494
- "name": {
495
- "description": "Profile name to edit",
496
- "name": "name",
497
- "required": true
498
- }
499
- },
500
- "description": "Edit an existing profile configuration",
501
- "examples": [
502
- "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
503
- "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
504
- "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
505
- "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
506
- ],
507
- "flags": {
508
- "account_origin": {
509
- "char": "a",
510
- "description": "Update account origin URL",
511
- "name": "account_origin",
714
+ "name": "file",
512
715
  "required": false,
513
716
  "hasDynamicHelp": false,
514
717
  "multiple": false,
515
718
  "type": "option"
516
719
  },
517
- "instance_origin": {
518
- "char": "i",
519
- "description": "Update instance origin URL",
520
- "name": "instance_origin",
720
+ "stdin": {
721
+ "char": "s",
722
+ "description": "Read XanoScript code from stdin",
723
+ "exclusive": [
724
+ "file"
725
+ ],
726
+ "name": "stdin",
521
727
  "required": false,
522
- "hasDynamicHelp": false,
523
- "multiple": false,
524
- "type": "option"
728
+ "allowNo": false,
729
+ "type": "boolean"
525
730
  },
526
- "access_token": {
527
- "char": "t",
528
- "description": "Update access token for the Xano Metadata API",
529
- "name": "access_token",
731
+ "edit": {
732
+ "char": "e",
733
+ "dependsOn": [
734
+ "file"
735
+ ],
736
+ "description": "Open file in editor before running job (requires --file)",
737
+ "name": "edit",
530
738
  "required": false,
531
- "hasDynamicHelp": false,
532
- "multiple": false,
533
- "type": "option"
739
+ "allowNo": false,
740
+ "type": "boolean"
534
741
  },
535
- "workspace": {
536
- "char": "w",
537
- "description": "Update workspace name",
538
- "name": "workspace",
742
+ "output": {
743
+ "char": "o",
744
+ "description": "Output format",
745
+ "name": "output",
539
746
  "required": false,
747
+ "default": "summary",
540
748
  "hasDynamicHelp": false,
541
749
  "multiple": false,
750
+ "options": [
751
+ "summary",
752
+ "json"
753
+ ],
542
754
  "type": "option"
543
755
  },
544
- "branch": {
545
- "char": "b",
546
- "description": "Update branch name",
547
- "name": "branch",
756
+ "args": {
757
+ "char": "a",
758
+ "description": "Path to JSON file containing input arguments",
759
+ "name": "args",
548
760
  "required": false,
549
761
  "hasDynamicHelp": false,
550
762
  "multiple": false,
551
763
  "type": "option"
552
- },
553
- "remove-workspace": {
554
- "description": "Remove workspace from profile",
555
- "name": "remove-workspace",
556
- "required": false,
557
- "allowNo": false,
558
- "type": "boolean"
559
- },
560
- "remove-branch": {
561
- "description": "Remove branch from profile",
562
- "name": "remove-branch",
563
- "required": false,
564
- "allowNo": false,
565
- "type": "boolean"
566
764
  }
567
765
  },
568
766
  "hasDynamicHelp": false,
569
767
  "hiddenAliases": [],
570
- "id": "profile:edit",
768
+ "id": "ephemeral:run:job",
571
769
  "pluginAlias": "@xano/cli",
572
770
  "pluginName": "@xano/cli",
573
771
  "pluginType": "core",
@@ -577,265 +775,95 @@
577
775
  "relativePath": [
578
776
  "dist",
579
777
  "commands",
580
- "profile",
581
- "edit",
778
+ "ephemeral",
779
+ "run",
780
+ "job",
582
781
  "index.js"
583
782
  ]
584
783
  },
585
- "profile:create": {
784
+ "ephemeral:run:service": {
586
785
  "aliases": [],
587
- "args": {
588
- "name": {
589
- "description": "Profile name",
590
- "name": "name",
591
- "required": true
592
- }
593
- },
594
- "description": "Create a new profile configuration",
786
+ "args": {},
787
+ "description": "Run an ephemeral service in a workspace",
595
788
  "examples": [
596
- "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
597
- "$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
598
- "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
599
- "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
789
+ "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
790
+ "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
791
+ "$ xano ephemeral:run:service -w 1 -f service.xs --edit\n# Opens service.xs in $EDITOR, then creates service with edited content\nService created successfully!\n...\n",
792
+ "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
793
+ "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
600
794
  ],
601
795
  "flags": {
602
- "account_origin": {
603
- "char": "a",
604
- "description": "Account origin URL. Optional for self hosted installs.",
605
- "name": "account_origin",
796
+ "profile": {
797
+ "char": "p",
798
+ "description": "Profile to use for this command",
799
+ "env": "XANO_PROFILE",
800
+ "name": "profile",
606
801
  "required": false,
607
802
  "hasDynamicHelp": false,
608
803
  "multiple": false,
609
804
  "type": "option"
610
805
  },
611
- "instance_origin": {
612
- "char": "i",
613
- "description": "Instance origin URL",
614
- "name": "instance_origin",
615
- "required": true,
616
- "hasDynamicHelp": false,
617
- "multiple": false,
618
- "type": "option"
619
- },
620
- "access_token": {
621
- "char": "t",
622
- "description": "Access token for the Xano Metadata API",
623
- "name": "access_token",
624
- "required": true,
625
- "hasDynamicHelp": false,
626
- "multiple": false,
627
- "type": "option"
628
- },
629
806
  "workspace": {
630
807
  "char": "w",
631
- "description": "Workspace name",
808
+ "description": "Workspace ID (optional if set in profile)",
632
809
  "name": "workspace",
633
810
  "required": false,
634
811
  "hasDynamicHelp": false,
635
812
  "multiple": false,
636
813
  "type": "option"
637
814
  },
638
- "branch": {
639
- "char": "b",
640
- "description": "Branch name",
641
- "name": "branch",
815
+ "file": {
816
+ "char": "f",
817
+ "description": "Path to file containing XanoScript code",
818
+ "exclusive": [
819
+ "stdin"
820
+ ],
821
+ "name": "file",
642
822
  "required": false,
643
823
  "hasDynamicHelp": false,
644
824
  "multiple": false,
645
825
  "type": "option"
646
826
  },
647
- "default": {
648
- "description": "Set this profile as the default",
649
- "name": "default",
650
- "required": false,
651
- "allowNo": false,
652
- "type": "boolean"
653
- }
654
- },
655
- "hasDynamicHelp": false,
656
- "hiddenAliases": [],
657
- "id": "profile:create",
658
- "pluginAlias": "@xano/cli",
659
- "pluginName": "@xano/cli",
660
- "pluginType": "core",
661
- "strict": true,
662
- "enableJsonFlag": false,
663
- "isESM": true,
664
- "relativePath": [
665
- "dist",
666
- "commands",
667
- "profile",
668
- "create",
669
- "index.js"
670
- ]
671
- },
672
- "profile:delete": {
673
- "aliases": [],
674
- "args": {
675
- "name": {
676
- "description": "Profile name to delete",
677
- "name": "name",
678
- "required": true
679
- }
680
- },
681
- "description": "Delete a profile configuration",
682
- "examples": [
683
- "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
684
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
685
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
686
- ],
687
- "flags": {
688
- "force": {
689
- "char": "f",
690
- "description": "Skip confirmation prompt",
691
- "name": "force",
827
+ "stdin": {
828
+ "char": "s",
829
+ "description": "Read XanoScript code from stdin",
830
+ "exclusive": [
831
+ "file"
832
+ ],
833
+ "name": "stdin",
692
834
  "required": false,
693
835
  "allowNo": false,
694
836
  "type": "boolean"
695
- }
696
- },
697
- "hasDynamicHelp": false,
698
- "hiddenAliases": [],
699
- "id": "profile:delete",
700
- "pluginAlias": "@xano/cli",
701
- "pluginName": "@xano/cli",
702
- "pluginType": "core",
703
- "strict": true,
704
- "enableJsonFlag": false,
705
- "isESM": true,
706
- "relativePath": [
707
- "dist",
708
- "commands",
709
- "profile",
710
- "delete",
711
- "index.js"
712
- ]
713
- },
714
- "profile:get-default": {
715
- "aliases": [],
716
- "args": {},
717
- "description": "Get the current default profile name",
718
- "examples": [
719
- "$ xano profile:get-default\nproduction\n",
720
- "$ xano profile:get-default\nNo default profile set\n"
721
- ],
722
- "flags": {},
723
- "hasDynamicHelp": false,
724
- "hiddenAliases": [],
725
- "id": "profile:get-default",
726
- "pluginAlias": "@xano/cli",
727
- "pluginName": "@xano/cli",
728
- "pluginType": "core",
729
- "strict": true,
730
- "enableJsonFlag": false,
731
- "isESM": true,
732
- "relativePath": [
733
- "dist",
734
- "commands",
735
- "profile",
736
- "get-default",
737
- "index.js"
738
- ]
739
- },
740
- "profile:list": {
741
- "aliases": [],
742
- "args": {},
743
- "description": "List all available profile configurations",
744
- "examples": [
745
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
746
- "$ 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\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
747
- "$ 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"
748
- ],
749
- "flags": {
750
- "details": {
751
- "char": "d",
752
- "description": "Show detailed information for each profile",
753
- "name": "details",
837
+ },
838
+ "edit": {
839
+ "char": "e",
840
+ "dependsOn": [
841
+ "file"
842
+ ],
843
+ "description": "Open file in editor before running service (requires --file)",
844
+ "name": "edit",
754
845
  "required": false,
755
846
  "allowNo": false,
756
847
  "type": "boolean"
757
- }
758
- },
759
- "hasDynamicHelp": false,
760
- "hiddenAliases": [],
761
- "id": "profile:list",
762
- "pluginAlias": "@xano/cli",
763
- "pluginName": "@xano/cli",
764
- "pluginType": "core",
765
- "strict": true,
766
- "enableJsonFlag": false,
767
- "isESM": true,
768
- "relativePath": [
769
- "dist",
770
- "commands",
771
- "profile",
772
- "list",
773
- "index.js"
774
- ]
775
- },
776
- "profile:set-default": {
777
- "aliases": [],
778
- "args": {
779
- "name": {
780
- "description": "Profile name to set as default",
781
- "name": "name",
782
- "required": true
783
- }
784
- },
785
- "description": "Set the default profile",
786
- "examples": [
787
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
788
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
789
- ],
790
- "flags": {},
791
- "hasDynamicHelp": false,
792
- "hiddenAliases": [],
793
- "id": "profile:set-default",
794
- "pluginAlias": "@xano/cli",
795
- "pluginName": "@xano/cli",
796
- "pluginType": "core",
797
- "strict": true,
798
- "enableJsonFlag": false,
799
- "isESM": true,
800
- "relativePath": [
801
- "dist",
802
- "commands",
803
- "profile",
804
- "set-default",
805
- "index.js"
806
- ]
807
- },
808
- "profile:wizard": {
809
- "aliases": [],
810
- "args": {},
811
- "description": "Create a new profile configuration using an interactive wizard",
812
- "examples": [
813
- "$ 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"
814
- ],
815
- "flags": {
816
- "name": {
817
- "char": "n",
818
- "description": "Profile name (skip prompt if provided)",
819
- "name": "name",
820
- "required": false,
821
- "hasDynamicHelp": false,
822
- "multiple": false,
823
- "type": "option"
824
848
  },
825
- "origin": {
849
+ "output": {
826
850
  "char": "o",
827
- "description": "Xano instance origin URL",
828
- "name": "origin",
851
+ "description": "Output format",
852
+ "name": "output",
829
853
  "required": false,
830
- "default": "https://app.xano.com",
854
+ "default": "summary",
831
855
  "hasDynamicHelp": false,
832
856
  "multiple": false,
857
+ "options": [
858
+ "summary",
859
+ "json"
860
+ ],
833
861
  "type": "option"
834
862
  }
835
863
  },
836
864
  "hasDynamicHelp": false,
837
865
  "hiddenAliases": [],
838
- "id": "profile:wizard",
866
+ "id": "ephemeral:run:service",
839
867
  "pluginAlias": "@xano/cli",
840
868
  "pluginName": "@xano/cli",
841
869
  "pluginType": "core",
@@ -845,22 +873,22 @@
845
873
  "relativePath": [
846
874
  "dist",
847
875
  "commands",
848
- "profile",
849
- "wizard",
876
+ "ephemeral",
877
+ "run",
878
+ "service",
850
879
  "index.js"
851
880
  ]
852
881
  },
853
- "ephemeral:run:job": {
882
+ "function:create": {
854
883
  "aliases": [],
855
884
  "args": {},
856
- "description": "Run an ephemeral job in a workspace",
885
+ "description": "Create a new function in a workspace",
857
886
  "examples": [
858
- "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
859
- "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
860
- "$ xano ephemeral:run:job -w 1 -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
861
- "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
862
- "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
863
- "$ xano ephemeral:run:job -w 1 -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
887
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
888
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
889
+ "$ 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",
890
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
891
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
864
892
  ],
865
893
  "flags": {
866
894
  "profile": {
@@ -910,7 +938,7 @@
910
938
  "dependsOn": [
911
939
  "file"
912
940
  ],
913
- "description": "Open file in editor before running job (requires --file)",
941
+ "description": "Open file in editor before creating function (requires --file)",
914
942
  "name": "edit",
915
943
  "required": false,
916
944
  "allowNo": false,
@@ -929,20 +957,11 @@
929
957
  "json"
930
958
  ],
931
959
  "type": "option"
932
- },
933
- "args": {
934
- "char": "a",
935
- "description": "Path to JSON file containing input arguments",
936
- "name": "args",
937
- "required": false,
938
- "hasDynamicHelp": false,
939
- "multiple": false,
940
- "type": "option"
941
960
  }
942
961
  },
943
962
  "hasDynamicHelp": false,
944
963
  "hiddenAliases": [],
945
- "id": "ephemeral:run:job",
964
+ "id": "function:create",
946
965
  "pluginAlias": "@xano/cli",
947
966
  "pluginName": "@xano/cli",
948
967
  "pluginType": "core",
@@ -952,22 +971,20 @@
952
971
  "relativePath": [
953
972
  "dist",
954
973
  "commands",
955
- "ephemeral",
956
- "run",
957
- "job",
974
+ "function",
975
+ "create",
958
976
  "index.js"
959
977
  ]
960
978
  },
961
- "ephemeral:run:service": {
979
+ "static_host:list": {
962
980
  "aliases": [],
963
981
  "args": {},
964
- "description": "Run an ephemeral service in a workspace",
982
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
965
983
  "examples": [
966
- "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
967
- "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
968
- "$ xano ephemeral:run:service -w 1 -f service.xs --edit\n# Opens service.xs in $EDITOR, then creates service with edited content\nService created successfully!\n...\n",
969
- "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
970
- "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
984
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
985
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
986
+ "$ 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",
987
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
971
988
  ],
972
989
  "flags": {
973
990
  "profile": {
@@ -989,40 +1006,6 @@
989
1006
  "multiple": false,
990
1007
  "type": "option"
991
1008
  },
992
- "file": {
993
- "char": "f",
994
- "description": "Path to file containing XanoScript code",
995
- "exclusive": [
996
- "stdin"
997
- ],
998
- "name": "file",
999
- "required": false,
1000
- "hasDynamicHelp": false,
1001
- "multiple": false,
1002
- "type": "option"
1003
- },
1004
- "stdin": {
1005
- "char": "s",
1006
- "description": "Read XanoScript code from stdin",
1007
- "exclusive": [
1008
- "file"
1009
- ],
1010
- "name": "stdin",
1011
- "required": false,
1012
- "allowNo": false,
1013
- "type": "boolean"
1014
- },
1015
- "edit": {
1016
- "char": "e",
1017
- "dependsOn": [
1018
- "file"
1019
- ],
1020
- "description": "Open file in editor before running service (requires --file)",
1021
- "name": "edit",
1022
- "required": false,
1023
- "allowNo": false,
1024
- "type": "boolean"
1025
- },
1026
1009
  "output": {
1027
1010
  "char": "o",
1028
1011
  "description": "Output format",
@@ -1036,11 +1019,29 @@
1036
1019
  "json"
1037
1020
  ],
1038
1021
  "type": "option"
1022
+ },
1023
+ "page": {
1024
+ "description": "Page number for pagination",
1025
+ "name": "page",
1026
+ "required": false,
1027
+ "default": 1,
1028
+ "hasDynamicHelp": false,
1029
+ "multiple": false,
1030
+ "type": "option"
1031
+ },
1032
+ "per_page": {
1033
+ "description": "Number of results per page",
1034
+ "name": "per_page",
1035
+ "required": false,
1036
+ "default": 50,
1037
+ "hasDynamicHelp": false,
1038
+ "multiple": false,
1039
+ "type": "option"
1039
1040
  }
1040
1041
  },
1041
1042
  "hasDynamicHelp": false,
1042
1043
  "hiddenAliases": [],
1043
- "id": "ephemeral:run:service",
1044
+ "id": "static_host:list",
1044
1045
  "pluginAlias": "@xano/cli",
1045
1046
  "pluginName": "@xano/cli",
1046
1047
  "pluginType": "core",
@@ -1050,9 +1051,8 @@
1050
1051
  "relativePath": [
1051
1052
  "dist",
1052
1053
  "commands",
1053
- "ephemeral",
1054
- "run",
1055
- "service",
1054
+ "static_host",
1055
+ "list",
1056
1056
  "index.js"
1057
1057
  ]
1058
1058
  },
@@ -1109,26 +1109,20 @@
1109
1109
  "index.js"
1110
1110
  ]
1111
1111
  },
1112
- "static_host:build:get": {
1112
+ "static_host:build:create": {
1113
1113
  "aliases": [],
1114
1114
  "args": {
1115
1115
  "static_host": {
1116
1116
  "description": "Static Host name",
1117
1117
  "name": "static_host",
1118
1118
  "required": true
1119
- },
1120
- "build_id": {
1121
- "description": "Build ID",
1122
- "name": "build_id",
1123
- "required": true
1124
1119
  }
1125
1120
  },
1126
- "description": "Get details of a specific build for a static host",
1121
+ "description": "Create a new build for a static host",
1127
1122
  "examples": [
1128
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1129
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1130
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1131
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1123
+ "$ 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",
1124
+ "$ 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",
1125
+ "$ 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"
1132
1126
  ],
1133
1127
  "flags": {
1134
1128
  "profile": {
@@ -1150,6 +1144,33 @@
1150
1144
  "multiple": false,
1151
1145
  "type": "option"
1152
1146
  },
1147
+ "file": {
1148
+ "char": "f",
1149
+ "description": "Path to zip file to upload",
1150
+ "name": "file",
1151
+ "required": true,
1152
+ "hasDynamicHelp": false,
1153
+ "multiple": false,
1154
+ "type": "option"
1155
+ },
1156
+ "name": {
1157
+ "char": "n",
1158
+ "description": "Build name",
1159
+ "name": "name",
1160
+ "required": true,
1161
+ "hasDynamicHelp": false,
1162
+ "multiple": false,
1163
+ "type": "option"
1164
+ },
1165
+ "description": {
1166
+ "char": "d",
1167
+ "description": "Build description",
1168
+ "name": "description",
1169
+ "required": false,
1170
+ "hasDynamicHelp": false,
1171
+ "multiple": false,
1172
+ "type": "option"
1173
+ },
1153
1174
  "output": {
1154
1175
  "char": "o",
1155
1176
  "description": "Output format",
@@ -1167,7 +1188,7 @@
1167
1188
  },
1168
1189
  "hasDynamicHelp": false,
1169
1190
  "hiddenAliases": [],
1170
- "id": "static_host:build:get",
1191
+ "id": "static_host:build:create",
1171
1192
  "pluginAlias": "@xano/cli",
1172
1193
  "pluginName": "@xano/cli",
1173
1194
  "pluginType": "core",
@@ -1179,25 +1200,30 @@
1179
1200
  "commands",
1180
1201
  "static_host",
1181
1202
  "build",
1182
- "get",
1203
+ "create",
1183
1204
  "index.js"
1184
1205
  ]
1185
1206
  },
1186
- "static_host:build:list": {
1207
+ "static_host:build:get": {
1187
1208
  "aliases": [],
1188
1209
  "args": {
1189
1210
  "static_host": {
1190
1211
  "description": "Static Host name",
1191
1212
  "name": "static_host",
1192
1213
  "required": true
1214
+ },
1215
+ "build_id": {
1216
+ "description": "Build ID",
1217
+ "name": "build_id",
1218
+ "required": true
1193
1219
  }
1194
1220
  },
1195
- "description": "List all builds for a static host",
1221
+ "description": "Get details of a specific build for a static host",
1196
1222
  "examples": [
1197
- "$ 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",
1198
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
1199
- "$ 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",
1200
- "$ 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"
1223
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1224
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1225
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1226
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1201
1227
  ],
1202
1228
  "flags": {
1203
1229
  "profile": {
@@ -1232,29 +1258,11 @@
1232
1258
  "json"
1233
1259
  ],
1234
1260
  "type": "option"
1235
- },
1236
- "page": {
1237
- "description": "Page number for pagination",
1238
- "name": "page",
1239
- "required": false,
1240
- "default": 1,
1241
- "hasDynamicHelp": false,
1242
- "multiple": false,
1243
- "type": "option"
1244
- },
1245
- "per_page": {
1246
- "description": "Number of results per page",
1247
- "name": "per_page",
1248
- "required": false,
1249
- "default": 50,
1250
- "hasDynamicHelp": false,
1251
- "multiple": false,
1252
- "type": "option"
1253
1261
  }
1254
1262
  },
1255
1263
  "hasDynamicHelp": false,
1256
1264
  "hiddenAliases": [],
1257
- "id": "static_host:build:list",
1265
+ "id": "static_host:build:get",
1258
1266
  "pluginAlias": "@xano/cli",
1259
1267
  "pluginName": "@xano/cli",
1260
1268
  "pluginType": "core",
@@ -1266,11 +1274,11 @@
1266
1274
  "commands",
1267
1275
  "static_host",
1268
1276
  "build",
1269
- "list",
1277
+ "get",
1270
1278
  "index.js"
1271
1279
  ]
1272
1280
  },
1273
- "static_host:build:create": {
1281
+ "static_host:build:list": {
1274
1282
  "aliases": [],
1275
1283
  "args": {
1276
1284
  "static_host": {
@@ -1279,11 +1287,12 @@
1279
1287
  "required": true
1280
1288
  }
1281
1289
  },
1282
- "description": "Create a new build for a static host",
1290
+ "description": "List all builds for a static host",
1283
1291
  "examples": [
1284
- "$ 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",
1285
- "$ 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",
1286
- "$ 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"
1292
+ "$ 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",
1293
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
1294
+ "$ 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",
1295
+ "$ 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"
1287
1296
  ],
1288
1297
  "flags": {
1289
1298
  "profile": {
@@ -1305,33 +1314,6 @@
1305
1314
  "multiple": false,
1306
1315
  "type": "option"
1307
1316
  },
1308
- "file": {
1309
- "char": "f",
1310
- "description": "Path to zip file to upload",
1311
- "name": "file",
1312
- "required": true,
1313
- "hasDynamicHelp": false,
1314
- "multiple": false,
1315
- "type": "option"
1316
- },
1317
- "name": {
1318
- "char": "n",
1319
- "description": "Build name",
1320
- "name": "name",
1321
- "required": true,
1322
- "hasDynamicHelp": false,
1323
- "multiple": false,
1324
- "type": "option"
1325
- },
1326
- "description": {
1327
- "char": "d",
1328
- "description": "Build description",
1329
- "name": "description",
1330
- "required": false,
1331
- "hasDynamicHelp": false,
1332
- "multiple": false,
1333
- "type": "option"
1334
- },
1335
1317
  "output": {
1336
1318
  "char": "o",
1337
1319
  "description": "Output format",
@@ -1345,11 +1327,29 @@
1345
1327
  "json"
1346
1328
  ],
1347
1329
  "type": "option"
1330
+ },
1331
+ "page": {
1332
+ "description": "Page number for pagination",
1333
+ "name": "page",
1334
+ "required": false,
1335
+ "default": 1,
1336
+ "hasDynamicHelp": false,
1337
+ "multiple": false,
1338
+ "type": "option"
1339
+ },
1340
+ "per_page": {
1341
+ "description": "Number of results per page",
1342
+ "name": "per_page",
1343
+ "required": false,
1344
+ "default": 50,
1345
+ "hasDynamicHelp": false,
1346
+ "multiple": false,
1347
+ "type": "option"
1348
1348
  }
1349
1349
  },
1350
1350
  "hasDynamicHelp": false,
1351
1351
  "hiddenAliases": [],
1352
- "id": "static_host:build:create",
1352
+ "id": "static_host:build:list",
1353
1353
  "pluginAlias": "@xano/cli",
1354
1354
  "pluginName": "@xano/cli",
1355
1355
  "pluginType": "core",
@@ -1361,10 +1361,10 @@
1361
1361
  "commands",
1362
1362
  "static_host",
1363
1363
  "build",
1364
- "create",
1364
+ "list",
1365
1365
  "index.js"
1366
1366
  ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.5"
1369
+ "version": "0.0.6"
1370
1370
  }