@xano/cli 0.0.9 → 0.0.10

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 (2) hide show
  1. package/oclif.manifest.json +498 -498
  2. package/package.json +1 -1
@@ -1,78 +1,88 @@
1
1
  {
2
2
  "commands": {
3
- "profile:create": {
3
+ "function:create": {
4
4
  "aliases": [],
5
- "args": {
6
- "name": {
7
- "description": "Profile name",
8
- "name": "name",
9
- "required": true
10
- }
11
- },
12
- "description": "Create a new profile configuration",
5
+ "args": {},
6
+ "description": "Create a new function in a workspace",
13
7
  "examples": [
14
- "$ 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",
15
- "$ 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",
16
- "$ 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",
17
- "$ 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"
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"
18
13
  ],
19
14
  "flags": {
20
- "account_origin": {
21
- "char": "a",
22
- "description": "Account origin URL. Optional for self hosted installs.",
23
- "name": "account_origin",
15
+ "profile": {
16
+ "char": "p",
17
+ "description": "Profile to use for this command",
18
+ "env": "XANO_PROFILE",
19
+ "name": "profile",
24
20
  "required": false,
25
21
  "hasDynamicHelp": false,
26
22
  "multiple": false,
27
23
  "type": "option"
28
24
  },
29
- "instance_origin": {
30
- "char": "i",
31
- "description": "Instance origin URL",
32
- "name": "instance_origin",
33
- "required": true,
34
- "hasDynamicHelp": false,
35
- "multiple": false,
36
- "type": "option"
37
- },
38
- "access_token": {
39
- "char": "t",
40
- "description": "Access token for the Xano Metadata API",
41
- "name": "access_token",
42
- "required": true,
43
- "hasDynamicHelp": false,
44
- "multiple": false,
45
- "type": "option"
46
- },
47
25
  "workspace": {
48
26
  "char": "w",
49
- "description": "Workspace name",
27
+ "description": "Workspace ID (optional if set in profile)",
50
28
  "name": "workspace",
51
29
  "required": false,
52
30
  "hasDynamicHelp": false,
53
31
  "multiple": false,
54
32
  "type": "option"
55
33
  },
56
- "branch": {
57
- "char": "b",
58
- "description": "Branch name",
59
- "name": "branch",
34
+ "file": {
35
+ "char": "f",
36
+ "description": "Path to file containing XanoScript code",
37
+ "exclusive": [
38
+ "stdin"
39
+ ],
40
+ "name": "file",
60
41
  "required": false,
61
42
  "hasDynamicHelp": false,
62
43
  "multiple": false,
63
44
  "type": "option"
64
45
  },
65
- "default": {
66
- "description": "Set this profile as the default",
67
- "name": "default",
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",
68
64
  "required": false,
69
65
  "allowNo": false,
70
66
  "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"
71
81
  }
72
82
  },
73
83
  "hasDynamicHelp": false,
74
84
  "hiddenAliases": [],
75
- "id": "profile:create",
85
+ "id": "function:create",
76
86
  "pluginAlias": "@xano/cli",
77
87
  "pluginName": "@xano/cli",
78
88
  "pluginType": "core",
@@ -82,39 +92,107 @@
82
92
  "relativePath": [
83
93
  "dist",
84
94
  "commands",
85
- "profile",
95
+ "function",
86
96
  "create",
87
97
  "index.js"
88
98
  ]
89
99
  },
90
- "profile:delete": {
100
+ "function:edit": {
91
101
  "aliases": [],
92
102
  "args": {
93
- "name": {
94
- "description": "Profile name to delete",
95
- "name": "name",
96
- "required": true
103
+ "function_id": {
104
+ "description": "Function ID to edit",
105
+ "name": "function_id",
106
+ "required": false
97
107
  }
98
108
  },
99
- "description": "Delete a profile configuration",
109
+ "description": "Edit a function in a workspace",
100
110
  "examples": [
101
- "$ 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",
102
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
103
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\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"
104
119
  ],
105
120
  "flags": {
106
- "force": {
121
+ "profile": {
122
+ "char": "p",
123
+ "description": "Profile to use for this command",
124
+ "env": "XANO_PROFILE",
125
+ "name": "profile",
126
+ "required": false,
127
+ "hasDynamicHelp": false,
128
+ "multiple": false,
129
+ "type": "option"
130
+ },
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": {
107
141
  "char": "f",
108
- "description": "Skip confirmation prompt",
109
- "name": "force",
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",
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",
110
167
  "required": false,
111
168
  "allowNo": false,
112
169
  "type": "boolean"
170
+ },
171
+ "publish": {
172
+ "description": "Publish the function after editing",
173
+ "name": "publish",
174
+ "required": false,
175
+ "allowNo": false,
176
+ "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"
113
191
  }
114
192
  },
115
193
  "hasDynamicHelp": false,
116
194
  "hiddenAliases": [],
117
- "id": "profile:delete",
195
+ "id": "function:edit",
118
196
  "pluginAlias": "@xano/cli",
119
197
  "pluginName": "@xano/cli",
120
198
  "pluginType": "core",
@@ -124,50 +202,35 @@
124
202
  "relativePath": [
125
203
  "dist",
126
204
  "commands",
127
- "profile",
128
- "delete",
205
+ "function",
206
+ "edit",
129
207
  "index.js"
130
208
  ]
131
209
  },
132
- "profile:edit": {
210
+ "function:get": {
133
211
  "aliases": [],
134
212
  "args": {
135
- "name": {
136
- "description": "Profile name to edit",
137
- "name": "name",
138
- "required": true
213
+ "function_id": {
214
+ "description": "Function ID",
215
+ "name": "function_id",
216
+ "required": false
139
217
  }
140
218
  },
141
- "description": "Edit an existing profile configuration",
219
+ "description": "Get a specific function from a workspace",
142
220
  "examples": [
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"
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"
147
227
  ],
148
228
  "flags": {
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",
229
+ "profile": {
230
+ "char": "p",
231
+ "description": "Profile to use for this command",
232
+ "env": "XANO_PROFILE",
233
+ "name": "profile",
171
234
  "required": false,
172
235
  "hasDynamicHelp": false,
173
236
  "multiple": false,
@@ -175,32 +238,38 @@
175
238
  },
176
239
  "workspace": {
177
240
  "char": "w",
178
- "description": "Update workspace name",
241
+ "description": "Workspace ID (optional if set in profile)",
179
242
  "name": "workspace",
180
243
  "required": false,
181
244
  "hasDynamicHelp": false,
182
245
  "multiple": false,
183
246
  "type": "option"
184
247
  },
185
- "branch": {
186
- "char": "b",
187
- "description": "Update branch name",
188
- "name": "branch",
248
+ "output": {
249
+ "char": "o",
250
+ "description": "Output format",
251
+ "name": "output",
189
252
  "required": false,
253
+ "default": "summary",
190
254
  "hasDynamicHelp": false,
191
255
  "multiple": false,
256
+ "options": [
257
+ "summary",
258
+ "json",
259
+ "xs"
260
+ ],
192
261
  "type": "option"
193
262
  },
194
- "remove-workspace": {
195
- "description": "Remove workspace from profile",
196
- "name": "remove-workspace",
263
+ "include_draft": {
264
+ "description": "Include draft version",
265
+ "name": "include_draft",
197
266
  "required": false,
198
267
  "allowNo": false,
199
268
  "type": "boolean"
200
269
  },
201
- "remove-branch": {
202
- "description": "Remove branch from profile",
203
- "name": "remove-branch",
270
+ "include_xanoscript": {
271
+ "description": "Include XanoScript in response",
272
+ "name": "include_xanoscript",
204
273
  "required": false,
205
274
  "allowNo": false,
206
275
  "type": "boolean"
@@ -208,33 +277,7 @@
208
277
  },
209
278
  "hasDynamicHelp": false,
210
279
  "hiddenAliases": [],
211
- "id": "profile:edit",
212
- "pluginAlias": "@xano/cli",
213
- "pluginName": "@xano/cli",
214
- "pluginType": "core",
215
- "strict": true,
216
- "enableJsonFlag": false,
217
- "isESM": true,
218
- "relativePath": [
219
- "dist",
220
- "commands",
221
- "profile",
222
- "edit",
223
- "index.js"
224
- ]
225
- },
226
- "profile:get-default": {
227
- "aliases": [],
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",
280
+ "id": "function:get",
238
281
  "pluginAlias": "@xano/cli",
239
282
  "pluginName": "@xano/cli",
240
283
  "pluginType": "core",
@@ -244,25 +287,31 @@
244
287
  "relativePath": [
245
288
  "dist",
246
289
  "commands",
247
- "profile",
248
- "get-default",
290
+ "function",
291
+ "get",
249
292
  "index.js"
250
293
  ]
251
294
  },
252
- "profile:list": {
295
+ "profile:delete": {
253
296
  "aliases": [],
254
- "args": {},
255
- "description": "List all available profile configurations",
297
+ "args": {
298
+ "name": {
299
+ "description": "Profile name to delete",
300
+ "name": "name",
301
+ "required": true
302
+ }
303
+ },
304
+ "description": "Delete a profile configuration",
256
305
  "examples": [
257
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
258
- "$ 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",
259
- "$ 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"
306
+ "$ 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",
307
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
308
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
260
309
  ],
261
310
  "flags": {
262
- "details": {
263
- "char": "d",
264
- "description": "Show detailed information for each profile",
265
- "name": "details",
311
+ "force": {
312
+ "char": "f",
313
+ "description": "Skip confirmation prompt",
314
+ "name": "force",
266
315
  "required": false,
267
316
  "allowNo": false,
268
317
  "type": "boolean"
@@ -270,7 +319,7 @@
270
319
  },
271
320
  "hasDynamicHelp": false,
272
321
  "hiddenAliases": [],
273
- "id": "profile:list",
322
+ "id": "profile:delete",
274
323
  "pluginAlias": "@xano/cli",
275
324
  "pluginName": "@xano/cli",
276
325
  "pluginType": "core",
@@ -281,104 +330,49 @@
281
330
  "dist",
282
331
  "commands",
283
332
  "profile",
284
- "list",
333
+ "delete",
285
334
  "index.js"
286
335
  ]
287
336
  },
288
- "profile:set-default": {
337
+ "profile:edit": {
289
338
  "aliases": [],
290
339
  "args": {
291
340
  "name": {
292
- "description": "Profile name to set as default",
341
+ "description": "Profile name to edit",
293
342
  "name": "name",
294
343
  "required": true
295
344
  }
296
345
  },
297
- "description": "Set the default profile",
298
- "examples": [
299
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
300
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
301
- ],
302
- "flags": {},
303
- "hasDynamicHelp": false,
304
- "hiddenAliases": [],
305
- "id": "profile:set-default",
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
- "set-default",
317
- "index.js"
318
- ]
319
- },
320
- "profile:wizard": {
321
- "aliases": [],
322
- "args": {},
323
- "description": "Create a new profile configuration using an interactive wizard",
346
+ "description": "Edit an existing profile configuration",
324
347
  "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"
348
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
349
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
350
+ "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
351
+ "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
326
352
  ],
327
353
  "flags": {
328
- "name": {
329
- "char": "n",
330
- "description": "Profile name (skip prompt if provided)",
331
- "name": "name",
354
+ "account_origin": {
355
+ "char": "a",
356
+ "description": "Update account origin URL",
357
+ "name": "account_origin",
332
358
  "required": false,
333
359
  "hasDynamicHelp": false,
334
360
  "multiple": false,
335
361
  "type": "option"
336
362
  },
337
- "origin": {
338
- "char": "o",
339
- "description": "Xano instance origin URL",
340
- "name": "origin",
363
+ "instance_origin": {
364
+ "char": "i",
365
+ "description": "Update instance origin URL",
366
+ "name": "instance_origin",
341
367
  "required": false,
342
- "default": "https://app.xano.com",
343
368
  "hasDynamicHelp": false,
344
369
  "multiple": false,
345
370
  "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:create": {
366
- "aliases": [],
367
- "args": {},
368
- "description": "Create a new function in a workspace",
369
- "examples": [
370
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
371
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
372
- "$ 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",
373
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
374
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
375
- ],
376
- "flags": {
377
- "profile": {
378
- "char": "p",
379
- "description": "Profile to use for this command",
380
- "env": "XANO_PROFILE",
381
- "name": "profile",
371
+ },
372
+ "access_token": {
373
+ "char": "t",
374
+ "description": "Update access token for the Xano Metadata API",
375
+ "name": "access_token",
382
376
  "required": false,
383
377
  "hasDynamicHelp": false,
384
378
  "multiple": false,
@@ -386,65 +380,40 @@
386
380
  },
387
381
  "workspace": {
388
382
  "char": "w",
389
- "description": "Workspace ID (optional if set in profile)",
383
+ "description": "Update workspace name",
390
384
  "name": "workspace",
391
385
  "required": false,
392
386
  "hasDynamicHelp": false,
393
387
  "multiple": false,
394
388
  "type": "option"
395
389
  },
396
- "file": {
397
- "char": "f",
398
- "description": "Path to file containing XanoScript code",
399
- "exclusive": [
400
- "stdin"
401
- ],
402
- "name": "file",
390
+ "branch": {
391
+ "char": "b",
392
+ "description": "Update branch name",
393
+ "name": "branch",
403
394
  "required": false,
404
395
  "hasDynamicHelp": false,
405
396
  "multiple": false,
406
397
  "type": "option"
407
398
  },
408
- "stdin": {
409
- "char": "s",
410
- "description": "Read XanoScript code from stdin",
411
- "exclusive": [
412
- "file"
413
- ],
414
- "name": "stdin",
415
- "required": false,
416
- "allowNo": false,
417
- "type": "boolean"
418
- },
419
- "edit": {
420
- "char": "e",
421
- "dependsOn": [
422
- "file"
423
- ],
424
- "description": "Open file in editor before creating function (requires --file)",
425
- "name": "edit",
399
+ "remove-workspace": {
400
+ "description": "Remove workspace from profile",
401
+ "name": "remove-workspace",
426
402
  "required": false,
427
403
  "allowNo": false,
428
404
  "type": "boolean"
429
405
  },
430
- "output": {
431
- "char": "o",
432
- "description": "Output format",
433
- "name": "output",
434
- "required": false,
435
- "default": "summary",
436
- "hasDynamicHelp": false,
437
- "multiple": false,
438
- "options": [
439
- "summary",
440
- "json"
441
- ],
442
- "type": "option"
406
+ "remove-branch": {
407
+ "description": "Remove branch from profile",
408
+ "name": "remove-branch",
409
+ "required": false,
410
+ "allowNo": false,
411
+ "type": "boolean"
443
412
  }
444
413
  },
445
414
  "hasDynamicHelp": false,
446
415
  "hiddenAliases": [],
447
- "id": "function:create",
416
+ "id": "profile:edit",
448
417
  "pluginAlias": "@xano/cli",
449
418
  "pluginName": "@xano/cli",
450
419
  "pluginType": "core",
@@ -454,30 +423,20 @@
454
423
  "relativePath": [
455
424
  "dist",
456
425
  "commands",
457
- "function",
458
- "create",
426
+ "profile",
427
+ "edit",
459
428
  "index.js"
460
429
  ]
461
430
  },
462
- "function:edit": {
431
+ "static_host:list": {
463
432
  "aliases": [],
464
- "args": {
465
- "function_id": {
466
- "description": "Function ID to edit",
467
- "name": "function_id",
468
- "required": false
469
- }
470
- },
471
- "description": "Edit a function in a workspace",
433
+ "args": {},
434
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
472
435
  "examples": [
473
- "$ 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",
474
- "$ 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",
475
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
476
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
477
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
478
- "$ 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",
479
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
480
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
436
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
437
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
438
+ "$ 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",
439
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
481
440
  ],
482
441
  "flags": {
483
442
  "profile": {
@@ -499,44 +458,6 @@
499
458
  "multiple": false,
500
459
  "type": "option"
501
460
  },
502
- "file": {
503
- "char": "f",
504
- "description": "Path to file containing XanoScript code",
505
- "exclusive": [
506
- "stdin"
507
- ],
508
- "name": "file",
509
- "required": false,
510
- "hasDynamicHelp": false,
511
- "multiple": false,
512
- "type": "option"
513
- },
514
- "stdin": {
515
- "char": "s",
516
- "description": "Read XanoScript code from stdin",
517
- "exclusive": [
518
- "file"
519
- ],
520
- "name": "stdin",
521
- "required": false,
522
- "allowNo": false,
523
- "type": "boolean"
524
- },
525
- "edit": {
526
- "char": "e",
527
- "description": "Open file in editor before updating function (requires --file)",
528
- "name": "edit",
529
- "required": false,
530
- "allowNo": false,
531
- "type": "boolean"
532
- },
533
- "publish": {
534
- "description": "Publish the function after editing",
535
- "name": "publish",
536
- "required": false,
537
- "allowNo": false,
538
- "type": "boolean"
539
- },
540
461
  "output": {
541
462
  "char": "o",
542
463
  "description": "Output format",
@@ -550,11 +471,29 @@
550
471
  "json"
551
472
  ],
552
473
  "type": "option"
474
+ },
475
+ "page": {
476
+ "description": "Page number for pagination",
477
+ "name": "page",
478
+ "required": false,
479
+ "default": 1,
480
+ "hasDynamicHelp": false,
481
+ "multiple": false,
482
+ "type": "option"
483
+ },
484
+ "per_page": {
485
+ "description": "Number of results per page",
486
+ "name": "per_page",
487
+ "required": false,
488
+ "default": 50,
489
+ "hasDynamicHelp": false,
490
+ "multiple": false,
491
+ "type": "option"
553
492
  }
554
493
  },
555
494
  "hasDynamicHelp": false,
556
495
  "hiddenAliases": [],
557
- "id": "function:edit",
496
+ "id": "static_host:list",
558
497
  "pluginAlias": "@xano/cli",
559
498
  "pluginName": "@xano/cli",
560
499
  "pluginType": "core",
@@ -564,74 +503,76 @@
564
503
  "relativePath": [
565
504
  "dist",
566
505
  "commands",
567
- "function",
568
- "edit",
506
+ "static_host",
507
+ "list",
569
508
  "index.js"
570
509
  ]
571
510
  },
572
- "function:get": {
511
+ "profile:create": {
573
512
  "aliases": [],
574
513
  "args": {
575
- "function_id": {
576
- "description": "Function ID",
577
- "name": "function_id",
578
- "required": false
514
+ "name": {
515
+ "description": "Profile name",
516
+ "name": "name",
517
+ "required": true
579
518
  }
580
519
  },
581
- "description": "Get a specific function from a workspace",
520
+ "description": "Create a new profile configuration",
582
521
  "examples": [
583
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
584
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
585
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
586
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
587
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
588
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
522
+ "$ 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",
523
+ "$ 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",
524
+ "$ 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",
525
+ "$ 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"
589
526
  ],
590
527
  "flags": {
591
- "profile": {
592
- "char": "p",
593
- "description": "Profile to use for this command",
594
- "env": "XANO_PROFILE",
595
- "name": "profile",
528
+ "account_origin": {
529
+ "char": "a",
530
+ "description": "Account origin URL. Optional for self hosted installs.",
531
+ "name": "account_origin",
596
532
  "required": false,
597
533
  "hasDynamicHelp": false,
598
534
  "multiple": false,
599
535
  "type": "option"
600
536
  },
537
+ "instance_origin": {
538
+ "char": "i",
539
+ "description": "Instance origin URL",
540
+ "name": "instance_origin",
541
+ "required": true,
542
+ "hasDynamicHelp": false,
543
+ "multiple": false,
544
+ "type": "option"
545
+ },
546
+ "access_token": {
547
+ "char": "t",
548
+ "description": "Access token for the Xano Metadata API",
549
+ "name": "access_token",
550
+ "required": true,
551
+ "hasDynamicHelp": false,
552
+ "multiple": false,
553
+ "type": "option"
554
+ },
601
555
  "workspace": {
602
556
  "char": "w",
603
- "description": "Workspace ID (optional if set in profile)",
557
+ "description": "Workspace name",
604
558
  "name": "workspace",
605
559
  "required": false,
606
560
  "hasDynamicHelp": false,
607
561
  "multiple": false,
608
562
  "type": "option"
609
563
  },
610
- "output": {
611
- "char": "o",
612
- "description": "Output format",
613
- "name": "output",
564
+ "branch": {
565
+ "char": "b",
566
+ "description": "Branch name",
567
+ "name": "branch",
614
568
  "required": false,
615
- "default": "summary",
616
569
  "hasDynamicHelp": false,
617
570
  "multiple": false,
618
- "options": [
619
- "summary",
620
- "json",
621
- "xs"
622
- ],
623
571
  "type": "option"
624
572
  },
625
- "include_draft": {
626
- "description": "Include draft version",
627
- "name": "include_draft",
628
- "required": false,
629
- "allowNo": false,
630
- "type": "boolean"
631
- },
632
- "include_xanoscript": {
633
- "description": "Include XanoScript in response",
634
- "name": "include_xanoscript",
573
+ "default": {
574
+ "description": "Set this profile as the default",
575
+ "name": "default",
635
576
  "required": false,
636
577
  "allowNo": false,
637
578
  "type": "boolean"
@@ -639,7 +580,7 @@
639
580
  },
640
581
  "hasDynamicHelp": false,
641
582
  "hiddenAliases": [],
642
- "id": "function:get",
583
+ "id": "profile:create",
643
584
  "pluginAlias": "@xano/cli",
644
585
  "pluginName": "@xano/cli",
645
586
  "pluginType": "core",
@@ -649,8 +590,8 @@
649
590
  "relativePath": [
650
591
  "dist",
651
592
  "commands",
652
- "function",
653
- "get",
593
+ "profile",
594
+ "create",
654
595
  "index.js"
655
596
  ]
656
597
  },
@@ -755,7 +696,84 @@
755
696
  },
756
697
  "hasDynamicHelp": false,
757
698
  "hiddenAliases": [],
758
- "id": "function:list",
699
+ "id": "function:list",
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
+ "function",
710
+ "list",
711
+ "index.js"
712
+ ]
713
+ },
714
+ "profile:set-default": {
715
+ "aliases": [],
716
+ "args": {
717
+ "name": {
718
+ "description": "Profile name to set as default",
719
+ "name": "name",
720
+ "required": true
721
+ }
722
+ },
723
+ "description": "Set the default profile",
724
+ "examples": [
725
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
726
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
727
+ ],
728
+ "flags": {},
729
+ "hasDynamicHelp": false,
730
+ "hiddenAliases": [],
731
+ "id": "profile:set-default",
732
+ "pluginAlias": "@xano/cli",
733
+ "pluginName": "@xano/cli",
734
+ "pluginType": "core",
735
+ "strict": true,
736
+ "enableJsonFlag": false,
737
+ "isESM": true,
738
+ "relativePath": [
739
+ "dist",
740
+ "commands",
741
+ "profile",
742
+ "set-default",
743
+ "index.js"
744
+ ]
745
+ },
746
+ "profile:wizard": {
747
+ "aliases": [],
748
+ "args": {},
749
+ "description": "Create a new profile configuration using an interactive wizard",
750
+ "examples": [
751
+ "$ 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"
752
+ ],
753
+ "flags": {
754
+ "name": {
755
+ "char": "n",
756
+ "description": "Profile name (skip prompt if provided)",
757
+ "name": "name",
758
+ "required": false,
759
+ "hasDynamicHelp": false,
760
+ "multiple": false,
761
+ "type": "option"
762
+ },
763
+ "origin": {
764
+ "char": "o",
765
+ "description": "Xano instance origin URL",
766
+ "name": "origin",
767
+ "required": false,
768
+ "default": "https://app.xano.com",
769
+ "hasDynamicHelp": false,
770
+ "multiple": false,
771
+ "type": "option"
772
+ }
773
+ },
774
+ "hasDynamicHelp": false,
775
+ "hiddenAliases": [],
776
+ "id": "profile:wizard",
759
777
  "pluginAlias": "@xano/cli",
760
778
  "pluginName": "@xano/cli",
761
779
  "pluginType": "core",
@@ -765,77 +783,59 @@
765
783
  "relativePath": [
766
784
  "dist",
767
785
  "commands",
768
- "function",
769
- "list",
786
+ "profile",
787
+ "wizard",
770
788
  "index.js"
771
789
  ]
772
790
  },
773
- "static_host:list": {
791
+ "profile:get-default": {
774
792
  "aliases": [],
775
793
  "args": {},
776
- "description": "List all static hosts in a workspace from the Xano Metadata API",
794
+ "description": "Get the current default profile name",
777
795
  "examples": [
778
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
779
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
780
- "$ 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",
781
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
796
+ "$ xano profile:get-default\nproduction\n",
797
+ "$ xano profile:get-default\nNo default profile set\n"
798
+ ],
799
+ "flags": {},
800
+ "hasDynamicHelp": false,
801
+ "hiddenAliases": [],
802
+ "id": "profile:get-default",
803
+ "pluginAlias": "@xano/cli",
804
+ "pluginName": "@xano/cli",
805
+ "pluginType": "core",
806
+ "strict": true,
807
+ "enableJsonFlag": false,
808
+ "isESM": true,
809
+ "relativePath": [
810
+ "dist",
811
+ "commands",
812
+ "profile",
813
+ "get-default",
814
+ "index.js"
815
+ ]
816
+ },
817
+ "profile:list": {
818
+ "aliases": [],
819
+ "args": {},
820
+ "description": "List all available profile configurations",
821
+ "examples": [
822
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
823
+ "$ 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",
824
+ "$ 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"
782
825
  ],
783
826
  "flags": {
784
- "profile": {
785
- "char": "p",
786
- "description": "Profile to use for this command",
787
- "env": "XANO_PROFILE",
788
- "name": "profile",
789
- "required": false,
790
- "hasDynamicHelp": false,
791
- "multiple": false,
792
- "type": "option"
793
- },
794
- "workspace": {
795
- "char": "w",
796
- "description": "Workspace ID (optional if set in profile)",
797
- "name": "workspace",
798
- "required": false,
799
- "hasDynamicHelp": false,
800
- "multiple": false,
801
- "type": "option"
802
- },
803
- "output": {
804
- "char": "o",
805
- "description": "Output format",
806
- "name": "output",
807
- "required": false,
808
- "default": "summary",
809
- "hasDynamicHelp": false,
810
- "multiple": false,
811
- "options": [
812
- "summary",
813
- "json"
814
- ],
815
- "type": "option"
816
- },
817
- "page": {
818
- "description": "Page number for pagination",
819
- "name": "page",
820
- "required": false,
821
- "default": 1,
822
- "hasDynamicHelp": false,
823
- "multiple": false,
824
- "type": "option"
825
- },
826
- "per_page": {
827
- "description": "Number of results per page",
828
- "name": "per_page",
827
+ "details": {
828
+ "char": "d",
829
+ "description": "Show detailed information for each profile",
830
+ "name": "details",
829
831
  "required": false,
830
- "default": 50,
831
- "hasDynamicHelp": false,
832
- "multiple": false,
833
- "type": "option"
832
+ "allowNo": false,
833
+ "type": "boolean"
834
834
  }
835
835
  },
836
836
  "hasDynamicHelp": false,
837
837
  "hiddenAliases": [],
838
- "id": "static_host:list",
838
+ "id": "profile:list",
839
839
  "pluginAlias": "@xano/cli",
840
840
  "pluginName": "@xano/cli",
841
841
  "pluginType": "core",
@@ -845,7 +845,7 @@
845
845
  "relativePath": [
846
846
  "dist",
847
847
  "commands",
848
- "static_host",
848
+ "profile",
849
849
  "list",
850
850
  "index.js"
851
851
  ]
@@ -903,17 +903,16 @@
903
903
  "index.js"
904
904
  ]
905
905
  },
906
- "ephemeral:run:job": {
906
+ "ephemeral:run:service": {
907
907
  "aliases": [],
908
908
  "args": {},
909
- "description": "Run an ephemeral job in a workspace",
909
+ "description": "Run an ephemeral service in a workspace",
910
910
  "examples": [
911
- "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
912
- "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
913
- "$ 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",
914
- "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
915
- "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
916
- "$ 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"
911
+ "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
912
+ "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
913
+ "$ 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",
914
+ "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
915
+ "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
917
916
  ],
918
917
  "flags": {
919
918
  "profile": {
@@ -963,7 +962,7 @@
963
962
  "dependsOn": [
964
963
  "file"
965
964
  ],
966
- "description": "Open file in editor before running job (requires --file)",
965
+ "description": "Open file in editor before running service (requires --file)",
967
966
  "name": "edit",
968
967
  "required": false,
969
968
  "allowNo": false,
@@ -982,20 +981,11 @@
982
981
  "json"
983
982
  ],
984
983
  "type": "option"
985
- },
986
- "args": {
987
- "char": "a",
988
- "description": "Path or URL to JSON file containing input arguments",
989
- "name": "args",
990
- "required": false,
991
- "hasDynamicHelp": false,
992
- "multiple": false,
993
- "type": "option"
994
984
  }
995
985
  },
996
986
  "hasDynamicHelp": false,
997
987
  "hiddenAliases": [],
998
- "id": "ephemeral:run:job",
988
+ "id": "ephemeral:run:service",
999
989
  "pluginAlias": "@xano/cli",
1000
990
  "pluginName": "@xano/cli",
1001
991
  "pluginType": "core",
@@ -1007,20 +997,21 @@
1007
997
  "commands",
1008
998
  "ephemeral",
1009
999
  "run",
1010
- "job",
1000
+ "service",
1011
1001
  "index.js"
1012
1002
  ]
1013
1003
  },
1014
- "ephemeral:run:service": {
1004
+ "ephemeral:run:job": {
1015
1005
  "aliases": [],
1016
1006
  "args": {},
1017
- "description": "Run an ephemeral service in a workspace",
1007
+ "description": "Run an ephemeral job in a workspace",
1018
1008
  "examples": [
1019
- "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
1020
- "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
1021
- "$ 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",
1022
- "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
1023
- "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
1009
+ "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
1010
+ "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
1011
+ "$ 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",
1012
+ "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
1013
+ "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
1014
+ "$ 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"
1024
1015
  ],
1025
1016
  "flags": {
1026
1017
  "profile": {
@@ -1070,7 +1061,7 @@
1070
1061
  "dependsOn": [
1071
1062
  "file"
1072
1063
  ],
1073
- "description": "Open file in editor before running service (requires --file)",
1064
+ "description": "Open file in editor before running job (requires --file)",
1074
1065
  "name": "edit",
1075
1066
  "required": false,
1076
1067
  "allowNo": false,
@@ -1089,11 +1080,20 @@
1089
1080
  "json"
1090
1081
  ],
1091
1082
  "type": "option"
1083
+ },
1084
+ "args": {
1085
+ "char": "a",
1086
+ "description": "Path or URL to JSON file containing input arguments",
1087
+ "name": "args",
1088
+ "required": false,
1089
+ "hasDynamicHelp": false,
1090
+ "multiple": false,
1091
+ "type": "option"
1092
1092
  }
1093
1093
  },
1094
1094
  "hasDynamicHelp": false,
1095
1095
  "hiddenAliases": [],
1096
- "id": "ephemeral:run:service",
1096
+ "id": "ephemeral:run:job",
1097
1097
  "pluginAlias": "@xano/cli",
1098
1098
  "pluginName": "@xano/cli",
1099
1099
  "pluginType": "core",
@@ -1105,24 +1105,30 @@
1105
1105
  "commands",
1106
1106
  "ephemeral",
1107
1107
  "run",
1108
- "service",
1108
+ "job",
1109
1109
  "index.js"
1110
1110
  ]
1111
1111
  },
1112
- "static_host:build:create": {
1112
+ "static_host:build:get": {
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
1119
1124
  }
1120
1125
  },
1121
- "description": "Create a new build for a static host",
1126
+ "description": "Get details of a specific build for a static host",
1122
1127
  "examples": [
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"
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"
1126
1132
  ],
1127
1133
  "flags": {
1128
1134
  "profile": {
@@ -1144,33 +1150,6 @@
1144
1150
  "multiple": false,
1145
1151
  "type": "option"
1146
1152
  },
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
- },
1174
1153
  "output": {
1175
1154
  "char": "o",
1176
1155
  "description": "Output format",
@@ -1188,7 +1167,7 @@
1188
1167
  },
1189
1168
  "hasDynamicHelp": false,
1190
1169
  "hiddenAliases": [],
1191
- "id": "static_host:build:create",
1170
+ "id": "static_host:build:get",
1192
1171
  "pluginAlias": "@xano/cli",
1193
1172
  "pluginName": "@xano/cli",
1194
1173
  "pluginType": "core",
@@ -1200,30 +1179,24 @@
1200
1179
  "commands",
1201
1180
  "static_host",
1202
1181
  "build",
1203
- "create",
1182
+ "get",
1204
1183
  "index.js"
1205
1184
  ]
1206
1185
  },
1207
- "static_host:build:get": {
1186
+ "static_host:build:create": {
1208
1187
  "aliases": [],
1209
1188
  "args": {
1210
1189
  "static_host": {
1211
1190
  "description": "Static Host name",
1212
1191
  "name": "static_host",
1213
1192
  "required": true
1214
- },
1215
- "build_id": {
1216
- "description": "Build ID",
1217
- "name": "build_id",
1218
- "required": true
1219
1193
  }
1220
1194
  },
1221
- "description": "Get details of a specific build for a static host",
1195
+ "description": "Create a new build for a static host",
1222
1196
  "examples": [
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"
1197
+ "$ 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",
1198
+ "$ 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",
1199
+ "$ 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"
1227
1200
  ],
1228
1201
  "flags": {
1229
1202
  "profile": {
@@ -1245,6 +1218,33 @@
1245
1218
  "multiple": false,
1246
1219
  "type": "option"
1247
1220
  },
1221
+ "file": {
1222
+ "char": "f",
1223
+ "description": "Path to zip file to upload",
1224
+ "name": "file",
1225
+ "required": true,
1226
+ "hasDynamicHelp": false,
1227
+ "multiple": false,
1228
+ "type": "option"
1229
+ },
1230
+ "name": {
1231
+ "char": "n",
1232
+ "description": "Build name",
1233
+ "name": "name",
1234
+ "required": true,
1235
+ "hasDynamicHelp": false,
1236
+ "multiple": false,
1237
+ "type": "option"
1238
+ },
1239
+ "description": {
1240
+ "char": "d",
1241
+ "description": "Build description",
1242
+ "name": "description",
1243
+ "required": false,
1244
+ "hasDynamicHelp": false,
1245
+ "multiple": false,
1246
+ "type": "option"
1247
+ },
1248
1248
  "output": {
1249
1249
  "char": "o",
1250
1250
  "description": "Output format",
@@ -1262,7 +1262,7 @@
1262
1262
  },
1263
1263
  "hasDynamicHelp": false,
1264
1264
  "hiddenAliases": [],
1265
- "id": "static_host:build:get",
1265
+ "id": "static_host:build:create",
1266
1266
  "pluginAlias": "@xano/cli",
1267
1267
  "pluginName": "@xano/cli",
1268
1268
  "pluginType": "core",
@@ -1274,7 +1274,7 @@
1274
1274
  "commands",
1275
1275
  "static_host",
1276
1276
  "build",
1277
- "get",
1277
+ "create",
1278
1278
  "index.js"
1279
1279
  ]
1280
1280
  },
@@ -1366,5 +1366,5 @@
1366
1366
  ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.9"
1369
+ "version": "0.0.10"
1370
1370
  }