@xano/cli 0.0.4 → 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 +563 -563
  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": [
@@ -375,373 +640,25 @@
375
640
  "default": "created_at",
376
641
  "hasDynamicHelp": false,
377
642
  "multiple": false,
378
- "type": "option"
379
- },
380
- "order": {
381
- "description": "Sort order",
382
- "name": "order",
383
- "required": false,
384
- "default": "desc",
385
- "hasDynamicHelp": false,
386
- "multiple": false,
387
- "options": [
388
- "asc",
389
- "desc"
390
- ],
391
- "type": "option"
392
- }
393
- },
394
- "hasDynamicHelp": false,
395
- "hiddenAliases": [],
396
- "id": "function:list",
397
- "pluginAlias": "@xano/cli",
398
- "pluginName": "@xano/cli",
399
- "pluginType": "core",
400
- "strict": true,
401
- "enableJsonFlag": false,
402
- "isESM": true,
403
- "relativePath": [
404
- "dist",
405
- "commands",
406
- "function",
407
- "list",
408
- "index.js"
409
- ]
410
- },
411
- "static_host:list": {
412
- "aliases": [],
413
- "args": {},
414
- "description": "List all static hosts in a workspace from the Xano Metadata API",
415
- "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"
420
- ],
421
- "flags": {
422
- "profile": {
423
- "char": "p",
424
- "description": "Profile to use for this command",
425
- "env": "XANO_PROFILE",
426
- "name": "profile",
427
- "required": false,
428
- "hasDynamicHelp": false,
429
- "multiple": false,
430
- "type": "option"
431
- },
432
- "workspace": {
433
- "char": "w",
434
- "description": "Workspace ID (optional if set in profile)",
435
- "name": "workspace",
436
- "required": false,
437
- "hasDynamicHelp": false,
438
- "multiple": false,
439
- "type": "option"
440
- },
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"
452
- ],
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:create": {
492
- "aliases": [],
493
- "args": {
494
- "name": {
495
- "description": "Profile name",
496
- "name": "name",
497
- "required": true
498
- }
499
- },
500
- "description": "Create a new profile configuration",
501
- "examples": [
502
- "$ 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",
503
- "$ 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",
504
- "$ 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",
505
- "$ 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"
506
- ],
507
- "flags": {
508
- "account_origin": {
509
- "char": "a",
510
- "description": "Account origin URL. Optional for self hosted installs.",
511
- "name": "account_origin",
512
- "required": false,
513
- "hasDynamicHelp": false,
514
- "multiple": false,
515
- "type": "option"
516
- },
517
- "instance_origin": {
518
- "char": "i",
519
- "description": "Instance origin URL",
520
- "name": "instance_origin",
521
- "required": true,
522
- "hasDynamicHelp": false,
523
- "multiple": false,
524
- "type": "option"
525
- },
526
- "access_token": {
527
- "char": "t",
528
- "description": "Access token for the Xano Metadata API",
529
- "name": "access_token",
530
- "required": true,
531
- "hasDynamicHelp": false,
532
- "multiple": false,
533
- "type": "option"
534
- },
535
- "workspace": {
536
- "char": "w",
537
- "description": "Workspace name",
538
- "name": "workspace",
539
- "required": false,
540
- "hasDynamicHelp": false,
541
- "multiple": false,
542
- "type": "option"
543
- },
544
- "branch": {
545
- "char": "b",
546
- "description": "Branch name",
547
- "name": "branch",
548
- "required": false,
549
- "hasDynamicHelp": false,
550
- "multiple": false,
551
- "type": "option"
552
- },
553
- "default": {
554
- "description": "Set this profile as the default",
555
- "name": "default",
556
- "required": false,
557
- "allowNo": false,
558
- "type": "boolean"
559
- }
560
- },
561
- "hasDynamicHelp": false,
562
- "hiddenAliases": [],
563
- "id": "profile:create",
564
- "pluginAlias": "@xano/cli",
565
- "pluginName": "@xano/cli",
566
- "pluginType": "core",
567
- "strict": true,
568
- "enableJsonFlag": false,
569
- "isESM": true,
570
- "relativePath": [
571
- "dist",
572
- "commands",
573
- "profile",
574
- "create",
575
- "index.js"
576
- ]
577
- },
578
- "profile:delete": {
579
- "aliases": [],
580
- "args": {
581
- "name": {
582
- "description": "Profile name to delete",
583
- "name": "name",
584
- "required": true
585
- }
586
- },
587
- "description": "Delete a profile configuration",
588
- "examples": [
589
- "$ 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",
590
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
591
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
592
- ],
593
- "flags": {
594
- "force": {
595
- "char": "f",
596
- "description": "Skip confirmation prompt",
597
- "name": "force",
598
- "required": false,
599
- "allowNo": false,
600
- "type": "boolean"
601
- }
602
- },
603
- "hasDynamicHelp": false,
604
- "hiddenAliases": [],
605
- "id": "profile:delete",
606
- "pluginAlias": "@xano/cli",
607
- "pluginName": "@xano/cli",
608
- "pluginType": "core",
609
- "strict": true,
610
- "enableJsonFlag": false,
611
- "isESM": true,
612
- "relativePath": [
613
- "dist",
614
- "commands",
615
- "profile",
616
- "delete",
617
- "index.js"
618
- ]
619
- },
620
- "profile:get-default": {
621
- "aliases": [],
622
- "args": {},
623
- "description": "Get the current default profile name",
624
- "examples": [
625
- "$ xano profile:get-default\nproduction\n",
626
- "$ xano profile:get-default\nNo default profile set\n"
627
- ],
628
- "flags": {},
629
- "hasDynamicHelp": false,
630
- "hiddenAliases": [],
631
- "id": "profile:get-default",
632
- "pluginAlias": "@xano/cli",
633
- "pluginName": "@xano/cli",
634
- "pluginType": "core",
635
- "strict": true,
636
- "enableJsonFlag": false,
637
- "isESM": true,
638
- "relativePath": [
639
- "dist",
640
- "commands",
641
- "profile",
642
- "get-default",
643
- "index.js"
644
- ]
645
- },
646
- "profile:list": {
647
- "aliases": [],
648
- "args": {},
649
- "description": "List all available profile configurations",
650
- "examples": [
651
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
652
- "$ 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",
653
- "$ 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"
654
- ],
655
- "flags": {
656
- "details": {
657
- "char": "d",
658
- "description": "Show detailed information for each profile",
659
- "name": "details",
660
- "required": false,
661
- "allowNo": false,
662
- "type": "boolean"
663
- }
664
- },
665
- "hasDynamicHelp": false,
666
- "hiddenAliases": [],
667
- "id": "profile:list",
668
- "pluginAlias": "@xano/cli",
669
- "pluginName": "@xano/cli",
670
- "pluginType": "core",
671
- "strict": true,
672
- "enableJsonFlag": false,
673
- "isESM": true,
674
- "relativePath": [
675
- "dist",
676
- "commands",
677
- "profile",
678
- "list",
679
- "index.js"
680
- ]
681
- },
682
- "profile:set-default": {
683
- "aliases": [],
684
- "args": {
685
- "name": {
686
- "description": "Profile name to set as default",
687
- "name": "name",
688
- "required": true
689
- }
690
- },
691
- "description": "Set the default profile",
692
- "examples": [
693
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
694
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
695
- ],
696
- "flags": {},
697
- "hasDynamicHelp": false,
698
- "hiddenAliases": [],
699
- "id": "profile:set-default",
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
- "set-default",
711
- "index.js"
712
- ]
713
- },
714
- "profile:wizard": {
715
- "aliases": [],
716
- "args": {},
717
- "description": "Create a new profile configuration using an interactive wizard",
718
- "examples": [
719
- "$ 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"
720
- ],
721
- "flags": {
722
- "name": {
723
- "char": "n",
724
- "description": "Profile name (skip prompt if provided)",
725
- "name": "name",
726
- "required": false,
727
- "hasDynamicHelp": false,
728
- "multiple": false,
729
- "type": "option"
730
- },
731
- "origin": {
732
- "char": "o",
733
- "description": "Xano instance origin URL",
734
- "name": "origin",
643
+ "type": "option"
644
+ },
645
+ "order": {
646
+ "description": "Sort order",
647
+ "name": "order",
735
648
  "required": false,
736
- "default": "https://app.xano.com",
649
+ "default": "desc",
737
650
  "hasDynamicHelp": false,
738
651
  "multiple": false,
652
+ "options": [
653
+ "asc",
654
+ "desc"
655
+ ],
739
656
  "type": "option"
740
657
  }
741
658
  },
742
659
  "hasDynamicHelp": false,
743
660
  "hiddenAliases": [],
744
- "id": "profile:wizard",
661
+ "id": "function:list",
745
662
  "pluginAlias": "@xano/cli",
746
663
  "pluginName": "@xano/cli",
747
664
  "pluginType": "core",
@@ -751,20 +668,22 @@
751
668
  "relativePath": [
752
669
  "dist",
753
670
  "commands",
754
- "profile",
755
- "wizard",
671
+ "function",
672
+ "list",
756
673
  "index.js"
757
674
  ]
758
675
  },
759
- "workspace:list": {
676
+ "ephemeral:run:job": {
760
677
  "aliases": [],
761
678
  "args": {},
762
- "description": "List all workspaces from the Xano Metadata API",
679
+ "description": "Run an ephemeral job in a workspace",
763
680
  "examples": [
764
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
765
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
766
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
767
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\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"
768
687
  ],
769
688
  "flags": {
770
689
  "profile": {
@@ -777,6 +696,49 @@
777
696
  "multiple": false,
778
697
  "type": "option"
779
698
  },
699
+ "workspace": {
700
+ "char": "w",
701
+ "description": "Workspace ID (optional if set in profile)",
702
+ "name": "workspace",
703
+ "required": false,
704
+ "hasDynamicHelp": false,
705
+ "multiple": false,
706
+ "type": "option"
707
+ },
708
+ "file": {
709
+ "char": "f",
710
+ "description": "Path to file containing XanoScript code",
711
+ "exclusive": [
712
+ "stdin"
713
+ ],
714
+ "name": "file",
715
+ "required": false,
716
+ "hasDynamicHelp": false,
717
+ "multiple": false,
718
+ "type": "option"
719
+ },
720
+ "stdin": {
721
+ "char": "s",
722
+ "description": "Read XanoScript code from stdin",
723
+ "exclusive": [
724
+ "file"
725
+ ],
726
+ "name": "stdin",
727
+ "required": false,
728
+ "allowNo": false,
729
+ "type": "boolean"
730
+ },
731
+ "edit": {
732
+ "char": "e",
733
+ "dependsOn": [
734
+ "file"
735
+ ],
736
+ "description": "Open file in editor before running job (requires --file)",
737
+ "name": "edit",
738
+ "required": false,
739
+ "allowNo": false,
740
+ "type": "boolean"
741
+ },
780
742
  "output": {
781
743
  "char": "o",
782
744
  "description": "Output format",
@@ -790,11 +752,20 @@
790
752
  "json"
791
753
  ],
792
754
  "type": "option"
755
+ },
756
+ "args": {
757
+ "char": "a",
758
+ "description": "Path to JSON file containing input arguments",
759
+ "name": "args",
760
+ "required": false,
761
+ "hasDynamicHelp": false,
762
+ "multiple": false,
763
+ "type": "option"
793
764
  }
794
765
  },
795
766
  "hasDynamicHelp": false,
796
767
  "hiddenAliases": [],
797
- "id": "workspace:list",
768
+ "id": "ephemeral:run:job",
798
769
  "pluginAlias": "@xano/cli",
799
770
  "pluginName": "@xano/cli",
800
771
  "pluginType": "core",
@@ -804,8 +775,9 @@
804
775
  "relativePath": [
805
776
  "dist",
806
777
  "commands",
807
- "workspace",
808
- "list",
778
+ "ephemeral",
779
+ "run",
780
+ "job",
809
781
  "index.js"
810
782
  ]
811
783
  },
@@ -907,17 +879,16 @@
907
879
  "index.js"
908
880
  ]
909
881
  },
910
- "ephemeral:run:job": {
882
+ "function:create": {
911
883
  "aliases": [],
912
884
  "args": {},
913
- "description": "Run an ephemeral job in a workspace",
885
+ "description": "Create a new function in a workspace",
914
886
  "examples": [
915
- "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
916
- "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
917
- "$ 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",
918
- "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
919
- "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
920
- "$ 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"
921
892
  ],
922
893
  "flags": {
923
894
  "profile": {
@@ -967,7 +938,7 @@
967
938
  "dependsOn": [
968
939
  "file"
969
940
  ],
970
- "description": "Open file in editor before running job (requires --file)",
941
+ "description": "Open file in editor before creating function (requires --file)",
971
942
  "name": "edit",
972
943
  "required": false,
973
944
  "allowNo": false,
@@ -986,20 +957,11 @@
986
957
  "json"
987
958
  ],
988
959
  "type": "option"
989
- },
990
- "args": {
991
- "char": "a",
992
- "description": "Path to JSON file containing input arguments",
993
- "name": "args",
994
- "required": false,
995
- "hasDynamicHelp": false,
996
- "multiple": false,
997
- "type": "option"
998
960
  }
999
961
  },
1000
962
  "hasDynamicHelp": false,
1001
963
  "hiddenAliases": [],
1002
- "id": "ephemeral:run:job",
964
+ "id": "function:create",
1003
965
  "pluginAlias": "@xano/cli",
1004
966
  "pluginName": "@xano/cli",
1005
967
  "pluginType": "core",
@@ -1009,92 +971,130 @@
1009
971
  "relativePath": [
1010
972
  "dist",
1011
973
  "commands",
1012
- "ephemeral",
1013
- "run",
1014
- "job",
974
+ "function",
975
+ "create",
1015
976
  "index.js"
1016
977
  ]
1017
978
  },
1018
- "profile:edit": {
979
+ "static_host:list": {
1019
980
  "aliases": [],
1020
- "args": {
1021
- "name": {
1022
- "description": "Profile name to edit",
1023
- "name": "name",
1024
- "required": true
1025
- }
1026
- },
1027
- "description": "Edit an existing profile configuration",
981
+ "args": {},
982
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
1028
983
  "examples": [
1029
- "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
1030
- "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
1031
- "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
1032
- "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\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"
1033
988
  ],
1034
989
  "flags": {
1035
- "account_origin": {
1036
- "char": "a",
1037
- "description": "Update account origin URL",
1038
- "name": "account_origin",
990
+ "profile": {
991
+ "char": "p",
992
+ "description": "Profile to use for this command",
993
+ "env": "XANO_PROFILE",
994
+ "name": "profile",
1039
995
  "required": false,
1040
996
  "hasDynamicHelp": false,
1041
997
  "multiple": false,
1042
998
  "type": "option"
1043
999
  },
1044
- "instance_origin": {
1045
- "char": "i",
1046
- "description": "Update instance origin URL",
1047
- "name": "instance_origin",
1000
+ "workspace": {
1001
+ "char": "w",
1002
+ "description": "Workspace ID (optional if set in profile)",
1003
+ "name": "workspace",
1048
1004
  "required": false,
1049
1005
  "hasDynamicHelp": false,
1050
1006
  "multiple": false,
1051
1007
  "type": "option"
1052
1008
  },
1053
- "access_token": {
1054
- "char": "t",
1055
- "description": "Update access token for the Xano Metadata API",
1056
- "name": "access_token",
1009
+ "output": {
1010
+ "char": "o",
1011
+ "description": "Output format",
1012
+ "name": "output",
1057
1013
  "required": false,
1014
+ "default": "summary",
1058
1015
  "hasDynamicHelp": false,
1059
1016
  "multiple": false,
1017
+ "options": [
1018
+ "summary",
1019
+ "json"
1020
+ ],
1060
1021
  "type": "option"
1061
1022
  },
1062
- "workspace": {
1063
- "char": "w",
1064
- "description": "Update workspace name",
1065
- "name": "workspace",
1023
+ "page": {
1024
+ "description": "Page number for pagination",
1025
+ "name": "page",
1066
1026
  "required": false,
1027
+ "default": 1,
1067
1028
  "hasDynamicHelp": false,
1068
1029
  "multiple": false,
1069
1030
  "type": "option"
1070
1031
  },
1071
- "branch": {
1072
- "char": "b",
1073
- "description": "Update branch name",
1074
- "name": "branch",
1032
+ "per_page": {
1033
+ "description": "Number of results per page",
1034
+ "name": "per_page",
1075
1035
  "required": false,
1036
+ "default": 50,
1076
1037
  "hasDynamicHelp": false,
1077
1038
  "multiple": false,
1078
1039
  "type": "option"
1079
- },
1080
- "remove-workspace": {
1081
- "description": "Remove workspace from profile",
1082
- "name": "remove-workspace",
1040
+ }
1041
+ },
1042
+ "hasDynamicHelp": false,
1043
+ "hiddenAliases": [],
1044
+ "id": "static_host:list",
1045
+ "pluginAlias": "@xano/cli",
1046
+ "pluginName": "@xano/cli",
1047
+ "pluginType": "core",
1048
+ "strict": true,
1049
+ "enableJsonFlag": false,
1050
+ "isESM": true,
1051
+ "relativePath": [
1052
+ "dist",
1053
+ "commands",
1054
+ "static_host",
1055
+ "list",
1056
+ "index.js"
1057
+ ]
1058
+ },
1059
+ "workspace:list": {
1060
+ "aliases": [],
1061
+ "args": {},
1062
+ "description": "List all workspaces from the Xano Metadata API",
1063
+ "examples": [
1064
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1065
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1066
+ "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1067
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1068
+ ],
1069
+ "flags": {
1070
+ "profile": {
1071
+ "char": "p",
1072
+ "description": "Profile to use for this command",
1073
+ "env": "XANO_PROFILE",
1074
+ "name": "profile",
1083
1075
  "required": false,
1084
- "allowNo": false,
1085
- "type": "boolean"
1076
+ "hasDynamicHelp": false,
1077
+ "multiple": false,
1078
+ "type": "option"
1086
1079
  },
1087
- "remove-branch": {
1088
- "description": "Remove branch from profile",
1089
- "name": "remove-branch",
1080
+ "output": {
1081
+ "char": "o",
1082
+ "description": "Output format",
1083
+ "name": "output",
1090
1084
  "required": false,
1091
- "allowNo": false,
1092
- "type": "boolean"
1085
+ "default": "summary",
1086
+ "hasDynamicHelp": false,
1087
+ "multiple": false,
1088
+ "options": [
1089
+ "summary",
1090
+ "json"
1091
+ ],
1092
+ "type": "option"
1093
1093
  }
1094
1094
  },
1095
1095
  "hasDynamicHelp": false,
1096
1096
  "hiddenAliases": [],
1097
- "id": "profile:edit",
1097
+ "id": "workspace:list",
1098
1098
  "pluginAlias": "@xano/cli",
1099
1099
  "pluginName": "@xano/cli",
1100
1100
  "pluginType": "core",
@@ -1104,8 +1104,8 @@
1104
1104
  "relativePath": [
1105
1105
  "dist",
1106
1106
  "commands",
1107
- "profile",
1108
- "edit",
1107
+ "workspace",
1108
+ "list",
1109
1109
  "index.js"
1110
1110
  ]
1111
1111
  },
@@ -1366,5 +1366,5 @@
1366
1366
  ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.4"
1369
+ "version": "0.0.6"
1370
1370
  }