@xano/cli 0.0.10 → 0.0.11
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.
- package/dist/commands/ephemeral/run/job/index.d.ts +1 -2
- package/dist/commands/ephemeral/run/job/index.js +48 -52
- package/dist/commands/ephemeral/run/service/index.d.ts +1 -2
- package/dist/commands/ephemeral/run/service/index.js +33 -33
- package/oclif.manifest.json +510 -510
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"function:
|
|
3
|
+
"function:edit": {
|
|
4
4
|
"aliases": [],
|
|
5
|
-
"args": {
|
|
6
|
-
|
|
5
|
+
"args": {
|
|
6
|
+
"function_id": {
|
|
7
|
+
"description": "Function ID to edit",
|
|
8
|
+
"name": "function_id",
|
|
9
|
+
"required": false
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"description": "Edit a function in a workspace",
|
|
7
13
|
"examples": [
|
|
8
|
-
"$ xano function:
|
|
9
|
-
"$ xano function:
|
|
10
|
-
"$ xano function:
|
|
11
|
-
"$
|
|
12
|
-
"$ xano function:
|
|
14
|
+
"$ 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",
|
|
15
|
+
"$ 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",
|
|
16
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
17
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
18
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
19
|
+
"$ 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",
|
|
20
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
21
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
13
22
|
],
|
|
14
23
|
"flags": {
|
|
15
24
|
"profile": {
|
|
@@ -56,15 +65,19 @@
|
|
|
56
65
|
},
|
|
57
66
|
"edit": {
|
|
58
67
|
"char": "e",
|
|
59
|
-
"
|
|
60
|
-
"file"
|
|
61
|
-
],
|
|
62
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
68
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
63
69
|
"name": "edit",
|
|
64
70
|
"required": false,
|
|
65
71
|
"allowNo": false,
|
|
66
72
|
"type": "boolean"
|
|
67
73
|
},
|
|
74
|
+
"publish": {
|
|
75
|
+
"description": "Publish the function after editing",
|
|
76
|
+
"name": "publish",
|
|
77
|
+
"required": false,
|
|
78
|
+
"allowNo": false,
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
},
|
|
68
81
|
"output": {
|
|
69
82
|
"char": "o",
|
|
70
83
|
"description": "Output format",
|
|
@@ -82,7 +95,7 @@
|
|
|
82
95
|
},
|
|
83
96
|
"hasDynamicHelp": false,
|
|
84
97
|
"hiddenAliases": [],
|
|
85
|
-
"id": "function:
|
|
98
|
+
"id": "function:edit",
|
|
86
99
|
"pluginAlias": "@xano/cli",
|
|
87
100
|
"pluginName": "@xano/cli",
|
|
88
101
|
"pluginType": "core",
|
|
@@ -93,29 +106,20 @@
|
|
|
93
106
|
"dist",
|
|
94
107
|
"commands",
|
|
95
108
|
"function",
|
|
96
|
-
"
|
|
109
|
+
"edit",
|
|
97
110
|
"index.js"
|
|
98
111
|
]
|
|
99
112
|
},
|
|
100
|
-
"function:
|
|
113
|
+
"function:create": {
|
|
101
114
|
"aliases": [],
|
|
102
|
-
"args": {
|
|
103
|
-
|
|
104
|
-
"description": "Function ID to edit",
|
|
105
|
-
"name": "function_id",
|
|
106
|
-
"required": false
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"description": "Edit a function in a workspace",
|
|
115
|
+
"args": {},
|
|
116
|
+
"description": "Create a new function in a workspace",
|
|
110
117
|
"examples": [
|
|
111
|
-
"$ xano function:
|
|
112
|
-
"$ xano function:
|
|
113
|
-
"$ xano function:
|
|
114
|
-
"$ xano function:
|
|
115
|
-
"$ xano function:
|
|
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"
|
|
118
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
119
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
120
|
+
"$ 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",
|
|
121
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
122
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
119
123
|
],
|
|
120
124
|
"flags": {
|
|
121
125
|
"profile": {
|
|
@@ -162,19 +166,15 @@
|
|
|
162
166
|
},
|
|
163
167
|
"edit": {
|
|
164
168
|
"char": "e",
|
|
165
|
-
"
|
|
169
|
+
"dependsOn": [
|
|
170
|
+
"file"
|
|
171
|
+
],
|
|
172
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
166
173
|
"name": "edit",
|
|
167
174
|
"required": false,
|
|
168
175
|
"allowNo": false,
|
|
169
176
|
"type": "boolean"
|
|
170
177
|
},
|
|
171
|
-
"publish": {
|
|
172
|
-
"description": "Publish the function after editing",
|
|
173
|
-
"name": "publish",
|
|
174
|
-
"required": false,
|
|
175
|
-
"allowNo": false,
|
|
176
|
-
"type": "boolean"
|
|
177
|
-
},
|
|
178
178
|
"output": {
|
|
179
179
|
"char": "o",
|
|
180
180
|
"description": "Output format",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
},
|
|
193
193
|
"hasDynamicHelp": false,
|
|
194
194
|
"hiddenAliases": [],
|
|
195
|
-
"id": "function:
|
|
195
|
+
"id": "function:create",
|
|
196
196
|
"pluginAlias": "@xano/cli",
|
|
197
197
|
"pluginName": "@xano/cli",
|
|
198
198
|
"pluginType": "core",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"dist",
|
|
204
204
|
"commands",
|
|
205
205
|
"function",
|
|
206
|
-
"
|
|
206
|
+
"create",
|
|
207
207
|
"index.js"
|
|
208
208
|
]
|
|
209
209
|
},
|
|
@@ -292,128 +292,108 @@
|
|
|
292
292
|
"index.js"
|
|
293
293
|
]
|
|
294
294
|
},
|
|
295
|
-
"
|
|
296
|
-
"aliases": [],
|
|
297
|
-
"args": {
|
|
298
|
-
"name": {
|
|
299
|
-
"description": "Profile name to delete",
|
|
300
|
-
"name": "name",
|
|
301
|
-
"required": true
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
"description": "Delete a profile configuration",
|
|
305
|
-
"examples": [
|
|
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"
|
|
309
|
-
],
|
|
310
|
-
"flags": {
|
|
311
|
-
"force": {
|
|
312
|
-
"char": "f",
|
|
313
|
-
"description": "Skip confirmation prompt",
|
|
314
|
-
"name": "force",
|
|
315
|
-
"required": false,
|
|
316
|
-
"allowNo": false,
|
|
317
|
-
"type": "boolean"
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"hasDynamicHelp": false,
|
|
321
|
-
"hiddenAliases": [],
|
|
322
|
-
"id": "profile:delete",
|
|
323
|
-
"pluginAlias": "@xano/cli",
|
|
324
|
-
"pluginName": "@xano/cli",
|
|
325
|
-
"pluginType": "core",
|
|
326
|
-
"strict": true,
|
|
327
|
-
"enableJsonFlag": false,
|
|
328
|
-
"isESM": true,
|
|
329
|
-
"relativePath": [
|
|
330
|
-
"dist",
|
|
331
|
-
"commands",
|
|
332
|
-
"profile",
|
|
333
|
-
"delete",
|
|
334
|
-
"index.js"
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
"profile:edit": {
|
|
295
|
+
"function:list": {
|
|
338
296
|
"aliases": [],
|
|
339
|
-
"args": {
|
|
340
|
-
|
|
341
|
-
"description": "Profile name to edit",
|
|
342
|
-
"name": "name",
|
|
343
|
-
"required": true
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
"description": "Edit an existing profile configuration",
|
|
297
|
+
"args": {},
|
|
298
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
347
299
|
"examples": [
|
|
348
|
-
"$ xano
|
|
349
|
-
"$ xano
|
|
350
|
-
"$ xano
|
|
351
|
-
"$ xano
|
|
300
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
301
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
302
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
303
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
352
304
|
],
|
|
353
305
|
"flags": {
|
|
354
|
-
"
|
|
355
|
-
"char": "
|
|
356
|
-
"description": "
|
|
357
|
-
"
|
|
306
|
+
"profile": {
|
|
307
|
+
"char": "p",
|
|
308
|
+
"description": "Profile to use for this command",
|
|
309
|
+
"env": "XANO_PROFILE",
|
|
310
|
+
"name": "profile",
|
|
358
311
|
"required": false,
|
|
359
312
|
"hasDynamicHelp": false,
|
|
360
313
|
"multiple": false,
|
|
361
314
|
"type": "option"
|
|
362
315
|
},
|
|
363
|
-
"
|
|
364
|
-
"char": "
|
|
365
|
-
"description": "
|
|
366
|
-
"name": "
|
|
316
|
+
"workspace": {
|
|
317
|
+
"char": "w",
|
|
318
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
319
|
+
"name": "workspace",
|
|
367
320
|
"required": false,
|
|
368
321
|
"hasDynamicHelp": false,
|
|
369
322
|
"multiple": false,
|
|
370
323
|
"type": "option"
|
|
371
324
|
},
|
|
372
|
-
"
|
|
373
|
-
"char": "
|
|
374
|
-
"description": "
|
|
375
|
-
"name": "
|
|
325
|
+
"output": {
|
|
326
|
+
"char": "o",
|
|
327
|
+
"description": "Output format",
|
|
328
|
+
"name": "output",
|
|
376
329
|
"required": false,
|
|
330
|
+
"default": "summary",
|
|
377
331
|
"hasDynamicHelp": false,
|
|
378
332
|
"multiple": false,
|
|
333
|
+
"options": [
|
|
334
|
+
"summary",
|
|
335
|
+
"json"
|
|
336
|
+
],
|
|
379
337
|
"type": "option"
|
|
380
338
|
},
|
|
381
|
-
"
|
|
382
|
-
"
|
|
383
|
-
"
|
|
384
|
-
"
|
|
339
|
+
"include_draft": {
|
|
340
|
+
"description": "Include draft functions",
|
|
341
|
+
"name": "include_draft",
|
|
342
|
+
"required": false,
|
|
343
|
+
"allowNo": false,
|
|
344
|
+
"type": "boolean"
|
|
345
|
+
},
|
|
346
|
+
"include_xanoscript": {
|
|
347
|
+
"description": "Include XanoScript in response",
|
|
348
|
+
"name": "include_xanoscript",
|
|
349
|
+
"required": false,
|
|
350
|
+
"allowNo": false,
|
|
351
|
+
"type": "boolean"
|
|
352
|
+
},
|
|
353
|
+
"page": {
|
|
354
|
+
"description": "Page number for pagination",
|
|
355
|
+
"name": "page",
|
|
385
356
|
"required": false,
|
|
357
|
+
"default": 1,
|
|
386
358
|
"hasDynamicHelp": false,
|
|
387
359
|
"multiple": false,
|
|
388
360
|
"type": "option"
|
|
389
361
|
},
|
|
390
|
-
"
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"name": "branch",
|
|
362
|
+
"per_page": {
|
|
363
|
+
"description": "Number of results per page",
|
|
364
|
+
"name": "per_page",
|
|
394
365
|
"required": false,
|
|
366
|
+
"default": 50,
|
|
395
367
|
"hasDynamicHelp": false,
|
|
396
368
|
"multiple": false,
|
|
397
369
|
"type": "option"
|
|
398
370
|
},
|
|
399
|
-
"
|
|
400
|
-
"description": "
|
|
401
|
-
"name": "
|
|
371
|
+
"sort": {
|
|
372
|
+
"description": "Sort field",
|
|
373
|
+
"name": "sort",
|
|
402
374
|
"required": false,
|
|
403
|
-
"
|
|
404
|
-
"
|
|
375
|
+
"default": "created_at",
|
|
376
|
+
"hasDynamicHelp": false,
|
|
377
|
+
"multiple": false,
|
|
378
|
+
"type": "option"
|
|
405
379
|
},
|
|
406
|
-
"
|
|
407
|
-
"description": "
|
|
408
|
-
"name": "
|
|
380
|
+
"order": {
|
|
381
|
+
"description": "Sort order",
|
|
382
|
+
"name": "order",
|
|
409
383
|
"required": false,
|
|
410
|
-
"
|
|
411
|
-
"
|
|
384
|
+
"default": "desc",
|
|
385
|
+
"hasDynamicHelp": false,
|
|
386
|
+
"multiple": false,
|
|
387
|
+
"options": [
|
|
388
|
+
"asc",
|
|
389
|
+
"desc"
|
|
390
|
+
],
|
|
391
|
+
"type": "option"
|
|
412
392
|
}
|
|
413
393
|
},
|
|
414
394
|
"hasDynamicHelp": false,
|
|
415
395
|
"hiddenAliases": [],
|
|
416
|
-
"id": "
|
|
396
|
+
"id": "function:list",
|
|
417
397
|
"pluginAlias": "@xano/cli",
|
|
418
398
|
"pluginName": "@xano/cli",
|
|
419
399
|
"pluginType": "core",
|
|
@@ -423,20 +403,22 @@
|
|
|
423
403
|
"relativePath": [
|
|
424
404
|
"dist",
|
|
425
405
|
"commands",
|
|
426
|
-
"
|
|
427
|
-
"
|
|
406
|
+
"function",
|
|
407
|
+
"list",
|
|
428
408
|
"index.js"
|
|
429
409
|
]
|
|
430
410
|
},
|
|
431
|
-
"
|
|
411
|
+
"ephemeral:run:job": {
|
|
432
412
|
"aliases": [],
|
|
433
413
|
"args": {},
|
|
434
|
-
"description": "
|
|
414
|
+
"description": "Run an ephemeral job in a workspace",
|
|
435
415
|
"examples": [
|
|
436
|
-
"$ xano
|
|
437
|
-
"$ xano
|
|
438
|
-
"$ xano
|
|
439
|
-
"$ xano
|
|
416
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
|
|
417
|
+
"$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
|
|
418
|
+
"$ 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",
|
|
419
|
+
"$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
|
|
420
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
|
|
421
|
+
"$ 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"
|
|
440
422
|
],
|
|
441
423
|
"flags": {
|
|
442
424
|
"profile": {
|
|
@@ -458,34 +440,59 @@
|
|
|
458
440
|
"multiple": false,
|
|
459
441
|
"type": "option"
|
|
460
442
|
},
|
|
461
|
-
"
|
|
462
|
-
"char": "
|
|
463
|
-
"description": "
|
|
464
|
-
"
|
|
443
|
+
"file": {
|
|
444
|
+
"char": "f",
|
|
445
|
+
"description": "Path or URL to file containing XanoScript code",
|
|
446
|
+
"exclusive": [
|
|
447
|
+
"stdin"
|
|
448
|
+
],
|
|
449
|
+
"name": "file",
|
|
465
450
|
"required": false,
|
|
466
|
-
"default": "summary",
|
|
467
451
|
"hasDynamicHelp": false,
|
|
468
452
|
"multiple": false,
|
|
469
|
-
"options": [
|
|
470
|
-
"summary",
|
|
471
|
-
"json"
|
|
472
|
-
],
|
|
473
453
|
"type": "option"
|
|
474
454
|
},
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
"
|
|
455
|
+
"stdin": {
|
|
456
|
+
"char": "s",
|
|
457
|
+
"description": "Read XanoScript code from stdin",
|
|
458
|
+
"exclusive": [
|
|
459
|
+
"file"
|
|
460
|
+
],
|
|
461
|
+
"name": "stdin",
|
|
478
462
|
"required": false,
|
|
479
|
-
"
|
|
463
|
+
"allowNo": false,
|
|
464
|
+
"type": "boolean"
|
|
465
|
+
},
|
|
466
|
+
"edit": {
|
|
467
|
+
"char": "e",
|
|
468
|
+
"dependsOn": [
|
|
469
|
+
"file"
|
|
470
|
+
],
|
|
471
|
+
"description": "Open file in editor before running job (requires --file)",
|
|
472
|
+
"name": "edit",
|
|
473
|
+
"required": false,
|
|
474
|
+
"allowNo": false,
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
477
|
+
"output": {
|
|
478
|
+
"char": "o",
|
|
479
|
+
"description": "Output format",
|
|
480
|
+
"name": "output",
|
|
481
|
+
"required": false,
|
|
482
|
+
"default": "summary",
|
|
480
483
|
"hasDynamicHelp": false,
|
|
481
484
|
"multiple": false,
|
|
485
|
+
"options": [
|
|
486
|
+
"summary",
|
|
487
|
+
"json"
|
|
488
|
+
],
|
|
482
489
|
"type": "option"
|
|
483
490
|
},
|
|
484
|
-
"
|
|
485
|
-
"
|
|
486
|
-
"
|
|
491
|
+
"args": {
|
|
492
|
+
"char": "a",
|
|
493
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
494
|
+
"name": "args",
|
|
487
495
|
"required": false,
|
|
488
|
-
"default": 50,
|
|
489
496
|
"hasDynamicHelp": false,
|
|
490
497
|
"multiple": false,
|
|
491
498
|
"type": "option"
|
|
@@ -493,7 +500,7 @@
|
|
|
493
500
|
},
|
|
494
501
|
"hasDynamicHelp": false,
|
|
495
502
|
"hiddenAliases": [],
|
|
496
|
-
"id": "
|
|
503
|
+
"id": "ephemeral:run:job",
|
|
497
504
|
"pluginAlias": "@xano/cli",
|
|
498
505
|
"pluginName": "@xano/cli",
|
|
499
506
|
"pluginType": "core",
|
|
@@ -503,84 +510,51 @@
|
|
|
503
510
|
"relativePath": [
|
|
504
511
|
"dist",
|
|
505
512
|
"commands",
|
|
506
|
-
"
|
|
507
|
-
"
|
|
513
|
+
"ephemeral",
|
|
514
|
+
"run",
|
|
515
|
+
"job",
|
|
508
516
|
"index.js"
|
|
509
517
|
]
|
|
510
518
|
},
|
|
511
|
-
"
|
|
519
|
+
"workspace:list": {
|
|
512
520
|
"aliases": [],
|
|
513
|
-
"args": {
|
|
514
|
-
|
|
515
|
-
"description": "Profile name",
|
|
516
|
-
"name": "name",
|
|
517
|
-
"required": true
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"description": "Create a new profile configuration",
|
|
521
|
+
"args": {},
|
|
522
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
521
523
|
"examples": [
|
|
522
|
-
"$ xano
|
|
523
|
-
"$ xano
|
|
524
|
-
"$ xano
|
|
525
|
-
"$ xano
|
|
524
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
525
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
526
|
+
"$ 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",
|
|
527
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
526
528
|
],
|
|
527
529
|
"flags": {
|
|
528
|
-
"
|
|
529
|
-
"char": "
|
|
530
|
-
"description": "
|
|
531
|
-
"
|
|
532
|
-
"
|
|
533
|
-
"hasDynamicHelp": false,
|
|
534
|
-
"multiple": false,
|
|
535
|
-
"type": "option"
|
|
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
|
-
},
|
|
555
|
-
"workspace": {
|
|
556
|
-
"char": "w",
|
|
557
|
-
"description": "Workspace name",
|
|
558
|
-
"name": "workspace",
|
|
530
|
+
"profile": {
|
|
531
|
+
"char": "p",
|
|
532
|
+
"description": "Profile to use for this command",
|
|
533
|
+
"env": "XANO_PROFILE",
|
|
534
|
+
"name": "profile",
|
|
559
535
|
"required": false,
|
|
560
536
|
"hasDynamicHelp": false,
|
|
561
537
|
"multiple": false,
|
|
562
538
|
"type": "option"
|
|
563
539
|
},
|
|
564
|
-
"
|
|
565
|
-
"char": "
|
|
566
|
-
"description": "
|
|
567
|
-
"name": "
|
|
540
|
+
"output": {
|
|
541
|
+
"char": "o",
|
|
542
|
+
"description": "Output format",
|
|
543
|
+
"name": "output",
|
|
568
544
|
"required": false,
|
|
545
|
+
"default": "summary",
|
|
569
546
|
"hasDynamicHelp": false,
|
|
570
547
|
"multiple": false,
|
|
548
|
+
"options": [
|
|
549
|
+
"summary",
|
|
550
|
+
"json"
|
|
551
|
+
],
|
|
571
552
|
"type": "option"
|
|
572
|
-
},
|
|
573
|
-
"default": {
|
|
574
|
-
"description": "Set this profile as the default",
|
|
575
|
-
"name": "default",
|
|
576
|
-
"required": false,
|
|
577
|
-
"allowNo": false,
|
|
578
|
-
"type": "boolean"
|
|
579
553
|
}
|
|
580
554
|
},
|
|
581
555
|
"hasDynamicHelp": false,
|
|
582
556
|
"hiddenAliases": [],
|
|
583
|
-
"id": "
|
|
557
|
+
"id": "workspace:list",
|
|
584
558
|
"pluginAlias": "@xano/cli",
|
|
585
559
|
"pluginName": "@xano/cli",
|
|
586
560
|
"pluginType": "core",
|
|
@@ -590,20 +564,20 @@
|
|
|
590
564
|
"relativePath": [
|
|
591
565
|
"dist",
|
|
592
566
|
"commands",
|
|
593
|
-
"
|
|
594
|
-
"
|
|
567
|
+
"workspace",
|
|
568
|
+
"list",
|
|
595
569
|
"index.js"
|
|
596
570
|
]
|
|
597
571
|
},
|
|
598
|
-
"
|
|
572
|
+
"static_host:list": {
|
|
599
573
|
"aliases": [],
|
|
600
574
|
"args": {},
|
|
601
|
-
"description": "List all
|
|
575
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
602
576
|
"examples": [
|
|
603
|
-
"$ xano
|
|
604
|
-
"$ xano
|
|
605
|
-
"$ xano
|
|
606
|
-
"$ xano
|
|
577
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
578
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
579
|
+
"$ 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",
|
|
580
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
607
581
|
],
|
|
608
582
|
"flags": {
|
|
609
583
|
"profile": {
|
|
@@ -639,20 +613,6 @@
|
|
|
639
613
|
],
|
|
640
614
|
"type": "option"
|
|
641
615
|
},
|
|
642
|
-
"include_draft": {
|
|
643
|
-
"description": "Include draft functions",
|
|
644
|
-
"name": "include_draft",
|
|
645
|
-
"required": false,
|
|
646
|
-
"allowNo": false,
|
|
647
|
-
"type": "boolean"
|
|
648
|
-
},
|
|
649
|
-
"include_xanoscript": {
|
|
650
|
-
"description": "Include XanoScript in response",
|
|
651
|
-
"name": "include_xanoscript",
|
|
652
|
-
"required": false,
|
|
653
|
-
"allowNo": false,
|
|
654
|
-
"type": "boolean"
|
|
655
|
-
},
|
|
656
616
|
"page": {
|
|
657
617
|
"description": "Page number for pagination",
|
|
658
618
|
"name": "page",
|
|
@@ -670,33 +630,108 @@
|
|
|
670
630
|
"hasDynamicHelp": false,
|
|
671
631
|
"multiple": false,
|
|
672
632
|
"type": "option"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"hasDynamicHelp": false,
|
|
636
|
+
"hiddenAliases": [],
|
|
637
|
+
"id": "static_host:list",
|
|
638
|
+
"pluginAlias": "@xano/cli",
|
|
639
|
+
"pluginName": "@xano/cli",
|
|
640
|
+
"pluginType": "core",
|
|
641
|
+
"strict": true,
|
|
642
|
+
"enableJsonFlag": false,
|
|
643
|
+
"isESM": true,
|
|
644
|
+
"relativePath": [
|
|
645
|
+
"dist",
|
|
646
|
+
"commands",
|
|
647
|
+
"static_host",
|
|
648
|
+
"list",
|
|
649
|
+
"index.js"
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
"ephemeral:run:service": {
|
|
653
|
+
"aliases": [],
|
|
654
|
+
"args": {},
|
|
655
|
+
"description": "Run an ephemeral service in a workspace",
|
|
656
|
+
"examples": [
|
|
657
|
+
"$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
|
|
658
|
+
"$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
|
|
659
|
+
"$ 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",
|
|
660
|
+
"$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
|
|
661
|
+
"$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
|
|
662
|
+
],
|
|
663
|
+
"flags": {
|
|
664
|
+
"profile": {
|
|
665
|
+
"char": "p",
|
|
666
|
+
"description": "Profile to use for this command",
|
|
667
|
+
"env": "XANO_PROFILE",
|
|
668
|
+
"name": "profile",
|
|
669
|
+
"required": false,
|
|
670
|
+
"hasDynamicHelp": false,
|
|
671
|
+
"multiple": false,
|
|
672
|
+
"type": "option"
|
|
673
673
|
},
|
|
674
|
-
"
|
|
675
|
-
"
|
|
676
|
-
"
|
|
674
|
+
"workspace": {
|
|
675
|
+
"char": "w",
|
|
676
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
677
|
+
"name": "workspace",
|
|
677
678
|
"required": false,
|
|
678
|
-
"default": "created_at",
|
|
679
679
|
"hasDynamicHelp": false,
|
|
680
680
|
"multiple": false,
|
|
681
681
|
"type": "option"
|
|
682
682
|
},
|
|
683
|
-
"
|
|
684
|
-
"
|
|
685
|
-
"
|
|
683
|
+
"file": {
|
|
684
|
+
"char": "f",
|
|
685
|
+
"description": "Path or URL to file containing XanoScript code",
|
|
686
|
+
"exclusive": [
|
|
687
|
+
"stdin"
|
|
688
|
+
],
|
|
689
|
+
"name": "file",
|
|
686
690
|
"required": false,
|
|
687
|
-
"
|
|
691
|
+
"hasDynamicHelp": false,
|
|
692
|
+
"multiple": false,
|
|
693
|
+
"type": "option"
|
|
694
|
+
},
|
|
695
|
+
"stdin": {
|
|
696
|
+
"char": "s",
|
|
697
|
+
"description": "Read XanoScript code from stdin",
|
|
698
|
+
"exclusive": [
|
|
699
|
+
"file"
|
|
700
|
+
],
|
|
701
|
+
"name": "stdin",
|
|
702
|
+
"required": false,
|
|
703
|
+
"allowNo": false,
|
|
704
|
+
"type": "boolean"
|
|
705
|
+
},
|
|
706
|
+
"edit": {
|
|
707
|
+
"char": "e",
|
|
708
|
+
"dependsOn": [
|
|
709
|
+
"file"
|
|
710
|
+
],
|
|
711
|
+
"description": "Open file in editor before running service (requires --file)",
|
|
712
|
+
"name": "edit",
|
|
713
|
+
"required": false,
|
|
714
|
+
"allowNo": false,
|
|
715
|
+
"type": "boolean"
|
|
716
|
+
},
|
|
717
|
+
"output": {
|
|
718
|
+
"char": "o",
|
|
719
|
+
"description": "Output format",
|
|
720
|
+
"name": "output",
|
|
721
|
+
"required": false,
|
|
722
|
+
"default": "summary",
|
|
688
723
|
"hasDynamicHelp": false,
|
|
689
724
|
"multiple": false,
|
|
690
725
|
"options": [
|
|
691
|
-
"
|
|
692
|
-
"
|
|
726
|
+
"summary",
|
|
727
|
+
"json"
|
|
693
728
|
],
|
|
694
729
|
"type": "option"
|
|
695
730
|
}
|
|
696
731
|
},
|
|
697
732
|
"hasDynamicHelp": false,
|
|
698
733
|
"hiddenAliases": [],
|
|
699
|
-
"id": "
|
|
734
|
+
"id": "ephemeral:run:service",
|
|
700
735
|
"pluginAlias": "@xano/cli",
|
|
701
736
|
"pluginName": "@xano/cli",
|
|
702
737
|
"pluginType": "core",
|
|
@@ -706,29 +741,66 @@
|
|
|
706
741
|
"relativePath": [
|
|
707
742
|
"dist",
|
|
708
743
|
"commands",
|
|
709
|
-
"
|
|
710
|
-
"
|
|
744
|
+
"ephemeral",
|
|
745
|
+
"run",
|
|
746
|
+
"service",
|
|
711
747
|
"index.js"
|
|
712
748
|
]
|
|
713
749
|
},
|
|
714
|
-
"profile:
|
|
750
|
+
"profile:get-default": {
|
|
751
|
+
"aliases": [],
|
|
752
|
+
"args": {},
|
|
753
|
+
"description": "Get the current default profile name",
|
|
754
|
+
"examples": [
|
|
755
|
+
"$ xano profile:get-default\nproduction\n",
|
|
756
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
757
|
+
],
|
|
758
|
+
"flags": {},
|
|
759
|
+
"hasDynamicHelp": false,
|
|
760
|
+
"hiddenAliases": [],
|
|
761
|
+
"id": "profile:get-default",
|
|
762
|
+
"pluginAlias": "@xano/cli",
|
|
763
|
+
"pluginName": "@xano/cli",
|
|
764
|
+
"pluginType": "core",
|
|
765
|
+
"strict": true,
|
|
766
|
+
"enableJsonFlag": false,
|
|
767
|
+
"isESM": true,
|
|
768
|
+
"relativePath": [
|
|
769
|
+
"dist",
|
|
770
|
+
"commands",
|
|
771
|
+
"profile",
|
|
772
|
+
"get-default",
|
|
773
|
+
"index.js"
|
|
774
|
+
]
|
|
775
|
+
},
|
|
776
|
+
"profile:delete": {
|
|
715
777
|
"aliases": [],
|
|
716
778
|
"args": {
|
|
717
779
|
"name": {
|
|
718
|
-
"description": "Profile name to
|
|
780
|
+
"description": "Profile name to delete",
|
|
719
781
|
"name": "name",
|
|
720
782
|
"required": true
|
|
721
783
|
}
|
|
722
784
|
},
|
|
723
|
-
"description": "
|
|
785
|
+
"description": "Delete a profile configuration",
|
|
724
786
|
"examples": [
|
|
725
|
-
"$ xano profile:
|
|
726
|
-
"$ xano profile:
|
|
787
|
+
"$ 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",
|
|
788
|
+
"$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
789
|
+
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
727
790
|
],
|
|
728
|
-
"flags": {
|
|
791
|
+
"flags": {
|
|
792
|
+
"force": {
|
|
793
|
+
"char": "f",
|
|
794
|
+
"description": "Skip confirmation prompt",
|
|
795
|
+
"name": "force",
|
|
796
|
+
"required": false,
|
|
797
|
+
"allowNo": false,
|
|
798
|
+
"type": "boolean"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
729
801
|
"hasDynamicHelp": false,
|
|
730
802
|
"hiddenAliases": [],
|
|
731
|
-
"id": "profile:
|
|
803
|
+
"id": "profile:delete",
|
|
732
804
|
"pluginAlias": "@xano/cli",
|
|
733
805
|
"pluginName": "@xano/cli",
|
|
734
806
|
"pluginType": "core",
|
|
@@ -739,41 +811,83 @@
|
|
|
739
811
|
"dist",
|
|
740
812
|
"commands",
|
|
741
813
|
"profile",
|
|
742
|
-
"
|
|
814
|
+
"delete",
|
|
743
815
|
"index.js"
|
|
744
816
|
]
|
|
745
817
|
},
|
|
746
|
-
"profile:
|
|
818
|
+
"profile:create": {
|
|
747
819
|
"aliases": [],
|
|
748
|
-
"args": {
|
|
749
|
-
|
|
820
|
+
"args": {
|
|
821
|
+
"name": {
|
|
822
|
+
"description": "Profile name",
|
|
823
|
+
"name": "name",
|
|
824
|
+
"required": true
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
"description": "Create a new profile configuration",
|
|
750
828
|
"examples": [
|
|
751
|
-
"$ xano profile:
|
|
829
|
+
"$ 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",
|
|
830
|
+
"$ 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",
|
|
831
|
+
"$ 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",
|
|
832
|
+
"$ 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"
|
|
752
833
|
],
|
|
753
834
|
"flags": {
|
|
754
|
-
"
|
|
755
|
-
"char": "
|
|
756
|
-
"description": "
|
|
757
|
-
"name": "
|
|
835
|
+
"account_origin": {
|
|
836
|
+
"char": "a",
|
|
837
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
838
|
+
"name": "account_origin",
|
|
758
839
|
"required": false,
|
|
759
840
|
"hasDynamicHelp": false,
|
|
760
841
|
"multiple": false,
|
|
761
842
|
"type": "option"
|
|
762
843
|
},
|
|
763
|
-
"
|
|
764
|
-
"char": "
|
|
765
|
-
"description": "
|
|
766
|
-
"name": "
|
|
844
|
+
"instance_origin": {
|
|
845
|
+
"char": "i",
|
|
846
|
+
"description": "Instance origin URL",
|
|
847
|
+
"name": "instance_origin",
|
|
848
|
+
"required": true,
|
|
849
|
+
"hasDynamicHelp": false,
|
|
850
|
+
"multiple": false,
|
|
851
|
+
"type": "option"
|
|
852
|
+
},
|
|
853
|
+
"access_token": {
|
|
854
|
+
"char": "t",
|
|
855
|
+
"description": "Access token for the Xano Metadata API",
|
|
856
|
+
"name": "access_token",
|
|
857
|
+
"required": true,
|
|
858
|
+
"hasDynamicHelp": false,
|
|
859
|
+
"multiple": false,
|
|
860
|
+
"type": "option"
|
|
861
|
+
},
|
|
862
|
+
"workspace": {
|
|
863
|
+
"char": "w",
|
|
864
|
+
"description": "Workspace name",
|
|
865
|
+
"name": "workspace",
|
|
767
866
|
"required": false,
|
|
768
|
-
"default": "https://app.xano.com",
|
|
769
867
|
"hasDynamicHelp": false,
|
|
770
868
|
"multiple": false,
|
|
771
869
|
"type": "option"
|
|
870
|
+
},
|
|
871
|
+
"branch": {
|
|
872
|
+
"char": "b",
|
|
873
|
+
"description": "Branch name",
|
|
874
|
+
"name": "branch",
|
|
875
|
+
"required": false,
|
|
876
|
+
"hasDynamicHelp": false,
|
|
877
|
+
"multiple": false,
|
|
878
|
+
"type": "option"
|
|
879
|
+
},
|
|
880
|
+
"default": {
|
|
881
|
+
"description": "Set this profile as the default",
|
|
882
|
+
"name": "default",
|
|
883
|
+
"required": false,
|
|
884
|
+
"allowNo": false,
|
|
885
|
+
"type": "boolean"
|
|
772
886
|
}
|
|
773
887
|
},
|
|
774
888
|
"hasDynamicHelp": false,
|
|
775
889
|
"hiddenAliases": [],
|
|
776
|
-
"id": "profile:
|
|
890
|
+
"id": "profile:create",
|
|
777
891
|
"pluginAlias": "@xano/cli",
|
|
778
892
|
"pluginName": "@xano/cli",
|
|
779
893
|
"pluginType": "core",
|
|
@@ -784,22 +898,28 @@
|
|
|
784
898
|
"dist",
|
|
785
899
|
"commands",
|
|
786
900
|
"profile",
|
|
787
|
-
"
|
|
901
|
+
"create",
|
|
788
902
|
"index.js"
|
|
789
903
|
]
|
|
790
904
|
},
|
|
791
|
-
"profile:
|
|
905
|
+
"profile:set-default": {
|
|
792
906
|
"aliases": [],
|
|
793
|
-
"args": {
|
|
794
|
-
|
|
907
|
+
"args": {
|
|
908
|
+
"name": {
|
|
909
|
+
"description": "Profile name to set as default",
|
|
910
|
+
"name": "name",
|
|
911
|
+
"required": true
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"description": "Set the default profile",
|
|
795
915
|
"examples": [
|
|
796
|
-
"$ xano profile:
|
|
797
|
-
"$ xano profile:
|
|
916
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
917
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
798
918
|
],
|
|
799
919
|
"flags": {},
|
|
800
920
|
"hasDynamicHelp": false,
|
|
801
921
|
"hiddenAliases": [],
|
|
802
|
-
"id": "profile:
|
|
922
|
+
"id": "profile:set-default",
|
|
803
923
|
"pluginAlias": "@xano/cli",
|
|
804
924
|
"pluginName": "@xano/cli",
|
|
805
925
|
"pluginType": "core",
|
|
@@ -810,7 +930,7 @@
|
|
|
810
930
|
"dist",
|
|
811
931
|
"commands",
|
|
812
932
|
"profile",
|
|
813
|
-
"
|
|
933
|
+
"set-default",
|
|
814
934
|
"index.js"
|
|
815
935
|
]
|
|
816
936
|
},
|
|
@@ -850,142 +970,37 @@
|
|
|
850
970
|
"index.js"
|
|
851
971
|
]
|
|
852
972
|
},
|
|
853
|
-
"
|
|
854
|
-
"aliases": [],
|
|
855
|
-
"args": {},
|
|
856
|
-
"description": "List all workspaces from the Xano Metadata API",
|
|
857
|
-
"examples": [
|
|
858
|
-
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
859
|
-
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
860
|
-
"$ 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",
|
|
861
|
-
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
862
|
-
],
|
|
863
|
-
"flags": {
|
|
864
|
-
"profile": {
|
|
865
|
-
"char": "p",
|
|
866
|
-
"description": "Profile to use for this command",
|
|
867
|
-
"env": "XANO_PROFILE",
|
|
868
|
-
"name": "profile",
|
|
869
|
-
"required": false,
|
|
870
|
-
"hasDynamicHelp": false,
|
|
871
|
-
"multiple": false,
|
|
872
|
-
"type": "option"
|
|
873
|
-
},
|
|
874
|
-
"output": {
|
|
875
|
-
"char": "o",
|
|
876
|
-
"description": "Output format",
|
|
877
|
-
"name": "output",
|
|
878
|
-
"required": false,
|
|
879
|
-
"default": "summary",
|
|
880
|
-
"hasDynamicHelp": false,
|
|
881
|
-
"multiple": false,
|
|
882
|
-
"options": [
|
|
883
|
-
"summary",
|
|
884
|
-
"json"
|
|
885
|
-
],
|
|
886
|
-
"type": "option"
|
|
887
|
-
}
|
|
888
|
-
},
|
|
889
|
-
"hasDynamicHelp": false,
|
|
890
|
-
"hiddenAliases": [],
|
|
891
|
-
"id": "workspace:list",
|
|
892
|
-
"pluginAlias": "@xano/cli",
|
|
893
|
-
"pluginName": "@xano/cli",
|
|
894
|
-
"pluginType": "core",
|
|
895
|
-
"strict": true,
|
|
896
|
-
"enableJsonFlag": false,
|
|
897
|
-
"isESM": true,
|
|
898
|
-
"relativePath": [
|
|
899
|
-
"dist",
|
|
900
|
-
"commands",
|
|
901
|
-
"workspace",
|
|
902
|
-
"list",
|
|
903
|
-
"index.js"
|
|
904
|
-
]
|
|
905
|
-
},
|
|
906
|
-
"ephemeral:run:service": {
|
|
973
|
+
"profile:wizard": {
|
|
907
974
|
"aliases": [],
|
|
908
975
|
"args": {},
|
|
909
|
-
"description": "
|
|
910
|
-
"examples": [
|
|
911
|
-
"$ xano
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
"
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
"profile": {
|
|
919
|
-
"char": "p",
|
|
920
|
-
"description": "Profile to use for this command",
|
|
921
|
-
"env": "XANO_PROFILE",
|
|
922
|
-
"name": "profile",
|
|
923
|
-
"required": false,
|
|
924
|
-
"hasDynamicHelp": false,
|
|
925
|
-
"multiple": false,
|
|
926
|
-
"type": "option"
|
|
927
|
-
},
|
|
928
|
-
"workspace": {
|
|
929
|
-
"char": "w",
|
|
930
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
931
|
-
"name": "workspace",
|
|
932
|
-
"required": false,
|
|
933
|
-
"hasDynamicHelp": false,
|
|
934
|
-
"multiple": false,
|
|
935
|
-
"type": "option"
|
|
936
|
-
},
|
|
937
|
-
"file": {
|
|
938
|
-
"char": "f",
|
|
939
|
-
"description": "Path or URL to file containing XanoScript code",
|
|
940
|
-
"exclusive": [
|
|
941
|
-
"stdin"
|
|
942
|
-
],
|
|
943
|
-
"name": "file",
|
|
976
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
977
|
+
"examples": [
|
|
978
|
+
"$ 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"
|
|
979
|
+
],
|
|
980
|
+
"flags": {
|
|
981
|
+
"name": {
|
|
982
|
+
"char": "n",
|
|
983
|
+
"description": "Profile name (skip prompt if provided)",
|
|
984
|
+
"name": "name",
|
|
944
985
|
"required": false,
|
|
945
986
|
"hasDynamicHelp": false,
|
|
946
987
|
"multiple": false,
|
|
947
988
|
"type": "option"
|
|
948
989
|
},
|
|
949
|
-
"
|
|
950
|
-
"char": "s",
|
|
951
|
-
"description": "Read XanoScript code from stdin",
|
|
952
|
-
"exclusive": [
|
|
953
|
-
"file"
|
|
954
|
-
],
|
|
955
|
-
"name": "stdin",
|
|
956
|
-
"required": false,
|
|
957
|
-
"allowNo": false,
|
|
958
|
-
"type": "boolean"
|
|
959
|
-
},
|
|
960
|
-
"edit": {
|
|
961
|
-
"char": "e",
|
|
962
|
-
"dependsOn": [
|
|
963
|
-
"file"
|
|
964
|
-
],
|
|
965
|
-
"description": "Open file in editor before running service (requires --file)",
|
|
966
|
-
"name": "edit",
|
|
967
|
-
"required": false,
|
|
968
|
-
"allowNo": false,
|
|
969
|
-
"type": "boolean"
|
|
970
|
-
},
|
|
971
|
-
"output": {
|
|
990
|
+
"origin": {
|
|
972
991
|
"char": "o",
|
|
973
|
-
"description": "
|
|
974
|
-
"name": "
|
|
992
|
+
"description": "Xano instance origin URL",
|
|
993
|
+
"name": "origin",
|
|
975
994
|
"required": false,
|
|
976
|
-
"default": "
|
|
995
|
+
"default": "https://app.xano.com",
|
|
977
996
|
"hasDynamicHelp": false,
|
|
978
997
|
"multiple": false,
|
|
979
|
-
"options": [
|
|
980
|
-
"summary",
|
|
981
|
-
"json"
|
|
982
|
-
],
|
|
983
998
|
"type": "option"
|
|
984
999
|
}
|
|
985
1000
|
},
|
|
986
1001
|
"hasDynamicHelp": false,
|
|
987
1002
|
"hiddenAliases": [],
|
|
988
|
-
"id": "
|
|
1003
|
+
"id": "profile:wizard",
|
|
989
1004
|
"pluginAlias": "@xano/cli",
|
|
990
1005
|
"pluginName": "@xano/cli",
|
|
991
1006
|
"pluginType": "core",
|
|
@@ -995,30 +1010,50 @@
|
|
|
995
1010
|
"relativePath": [
|
|
996
1011
|
"dist",
|
|
997
1012
|
"commands",
|
|
998
|
-
"
|
|
999
|
-
"
|
|
1000
|
-
"service",
|
|
1013
|
+
"profile",
|
|
1014
|
+
"wizard",
|
|
1001
1015
|
"index.js"
|
|
1002
1016
|
]
|
|
1003
1017
|
},
|
|
1004
|
-
"
|
|
1018
|
+
"profile:edit": {
|
|
1005
1019
|
"aliases": [],
|
|
1006
|
-
"args": {
|
|
1007
|
-
|
|
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",
|
|
1008
1028
|
"examples": [
|
|
1009
|
-
"$ xano
|
|
1010
|
-
"$ xano
|
|
1011
|
-
"$ xano
|
|
1012
|
-
"$
|
|
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"
|
|
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"
|
|
1015
1033
|
],
|
|
1016
1034
|
"flags": {
|
|
1017
|
-
"
|
|
1018
|
-
"char": "
|
|
1019
|
-
"description": "
|
|
1020
|
-
"
|
|
1021
|
-
"
|
|
1035
|
+
"account_origin": {
|
|
1036
|
+
"char": "a",
|
|
1037
|
+
"description": "Update account origin URL",
|
|
1038
|
+
"name": "account_origin",
|
|
1039
|
+
"required": false,
|
|
1040
|
+
"hasDynamicHelp": false,
|
|
1041
|
+
"multiple": false,
|
|
1042
|
+
"type": "option"
|
|
1043
|
+
},
|
|
1044
|
+
"instance_origin": {
|
|
1045
|
+
"char": "i",
|
|
1046
|
+
"description": "Update instance origin URL",
|
|
1047
|
+
"name": "instance_origin",
|
|
1048
|
+
"required": false,
|
|
1049
|
+
"hasDynamicHelp": false,
|
|
1050
|
+
"multiple": false,
|
|
1051
|
+
"type": "option"
|
|
1052
|
+
},
|
|
1053
|
+
"access_token": {
|
|
1054
|
+
"char": "t",
|
|
1055
|
+
"description": "Update access token for the Xano Metadata API",
|
|
1056
|
+
"name": "access_token",
|
|
1022
1057
|
"required": false,
|
|
1023
1058
|
"hasDynamicHelp": false,
|
|
1024
1059
|
"multiple": false,
|
|
@@ -1026,74 +1061,40 @@
|
|
|
1026
1061
|
},
|
|
1027
1062
|
"workspace": {
|
|
1028
1063
|
"char": "w",
|
|
1029
|
-
"description": "
|
|
1064
|
+
"description": "Update workspace name",
|
|
1030
1065
|
"name": "workspace",
|
|
1031
1066
|
"required": false,
|
|
1032
1067
|
"hasDynamicHelp": false,
|
|
1033
1068
|
"multiple": false,
|
|
1034
1069
|
"type": "option"
|
|
1035
1070
|
},
|
|
1036
|
-
"
|
|
1037
|
-
"char": "
|
|
1038
|
-
"description": "
|
|
1039
|
-
"
|
|
1040
|
-
"stdin"
|
|
1041
|
-
],
|
|
1042
|
-
"name": "file",
|
|
1071
|
+
"branch": {
|
|
1072
|
+
"char": "b",
|
|
1073
|
+
"description": "Update branch name",
|
|
1074
|
+
"name": "branch",
|
|
1043
1075
|
"required": false,
|
|
1044
1076
|
"hasDynamicHelp": false,
|
|
1045
1077
|
"multiple": false,
|
|
1046
1078
|
"type": "option"
|
|
1047
1079
|
},
|
|
1048
|
-
"
|
|
1049
|
-
"
|
|
1050
|
-
"
|
|
1051
|
-
"exclusive": [
|
|
1052
|
-
"file"
|
|
1053
|
-
],
|
|
1054
|
-
"name": "stdin",
|
|
1080
|
+
"remove-workspace": {
|
|
1081
|
+
"description": "Remove workspace from profile",
|
|
1082
|
+
"name": "remove-workspace",
|
|
1055
1083
|
"required": false,
|
|
1056
1084
|
"allowNo": false,
|
|
1057
1085
|
"type": "boolean"
|
|
1058
1086
|
},
|
|
1059
|
-
"
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1062
|
-
"file"
|
|
1063
|
-
],
|
|
1064
|
-
"description": "Open file in editor before running job (requires --file)",
|
|
1065
|
-
"name": "edit",
|
|
1087
|
+
"remove-branch": {
|
|
1088
|
+
"description": "Remove branch from profile",
|
|
1089
|
+
"name": "remove-branch",
|
|
1066
1090
|
"required": false,
|
|
1067
1091
|
"allowNo": false,
|
|
1068
1092
|
"type": "boolean"
|
|
1069
|
-
},
|
|
1070
|
-
"output": {
|
|
1071
|
-
"char": "o",
|
|
1072
|
-
"description": "Output format",
|
|
1073
|
-
"name": "output",
|
|
1074
|
-
"required": false,
|
|
1075
|
-
"default": "summary",
|
|
1076
|
-
"hasDynamicHelp": false,
|
|
1077
|
-
"multiple": false,
|
|
1078
|
-
"options": [
|
|
1079
|
-
"summary",
|
|
1080
|
-
"json"
|
|
1081
|
-
],
|
|
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
1093
|
}
|
|
1093
1094
|
},
|
|
1094
1095
|
"hasDynamicHelp": false,
|
|
1095
1096
|
"hiddenAliases": [],
|
|
1096
|
-
"id": "
|
|
1097
|
+
"id": "profile:edit",
|
|
1097
1098
|
"pluginAlias": "@xano/cli",
|
|
1098
1099
|
"pluginName": "@xano/cli",
|
|
1099
1100
|
"pluginType": "core",
|
|
@@ -1103,32 +1104,25 @@
|
|
|
1103
1104
|
"relativePath": [
|
|
1104
1105
|
"dist",
|
|
1105
1106
|
"commands",
|
|
1106
|
-
"
|
|
1107
|
-
"
|
|
1108
|
-
"job",
|
|
1107
|
+
"profile",
|
|
1108
|
+
"edit",
|
|
1109
1109
|
"index.js"
|
|
1110
1110
|
]
|
|
1111
1111
|
},
|
|
1112
|
-
"static_host:build:
|
|
1112
|
+
"static_host:build:create": {
|
|
1113
1113
|
"aliases": [],
|
|
1114
1114
|
"args": {
|
|
1115
1115
|
"static_host": {
|
|
1116
1116
|
"description": "Static Host name",
|
|
1117
1117
|
"name": "static_host",
|
|
1118
1118
|
"required": true
|
|
1119
|
-
},
|
|
1120
|
-
"build_id": {
|
|
1121
|
-
"description": "Build ID",
|
|
1122
|
-
"name": "build_id",
|
|
1123
|
-
"required": true
|
|
1124
1119
|
}
|
|
1125
1120
|
},
|
|
1126
|
-
"description": "
|
|
1121
|
+
"description": "Create a new build for a static host",
|
|
1127
1122
|
"examples": [
|
|
1128
|
-
"$ xano static_host:build:
|
|
1129
|
-
"$ xano static_host:build:
|
|
1130
|
-
"$ xano static_host:build:
|
|
1131
|
-
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
1123
|
+
"$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
|
|
1124
|
+
"$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
|
|
1125
|
+
"$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
|
|
1132
1126
|
],
|
|
1133
1127
|
"flags": {
|
|
1134
1128
|
"profile": {
|
|
@@ -1150,6 +1144,33 @@
|
|
|
1150
1144
|
"multiple": false,
|
|
1151
1145
|
"type": "option"
|
|
1152
1146
|
},
|
|
1147
|
+
"file": {
|
|
1148
|
+
"char": "f",
|
|
1149
|
+
"description": "Path to zip file to upload",
|
|
1150
|
+
"name": "file",
|
|
1151
|
+
"required": true,
|
|
1152
|
+
"hasDynamicHelp": false,
|
|
1153
|
+
"multiple": false,
|
|
1154
|
+
"type": "option"
|
|
1155
|
+
},
|
|
1156
|
+
"name": {
|
|
1157
|
+
"char": "n",
|
|
1158
|
+
"description": "Build name",
|
|
1159
|
+
"name": "name",
|
|
1160
|
+
"required": true,
|
|
1161
|
+
"hasDynamicHelp": false,
|
|
1162
|
+
"multiple": false,
|
|
1163
|
+
"type": "option"
|
|
1164
|
+
},
|
|
1165
|
+
"description": {
|
|
1166
|
+
"char": "d",
|
|
1167
|
+
"description": "Build description",
|
|
1168
|
+
"name": "description",
|
|
1169
|
+
"required": false,
|
|
1170
|
+
"hasDynamicHelp": false,
|
|
1171
|
+
"multiple": false,
|
|
1172
|
+
"type": "option"
|
|
1173
|
+
},
|
|
1153
1174
|
"output": {
|
|
1154
1175
|
"char": "o",
|
|
1155
1176
|
"description": "Output format",
|
|
@@ -1167,7 +1188,7 @@
|
|
|
1167
1188
|
},
|
|
1168
1189
|
"hasDynamicHelp": false,
|
|
1169
1190
|
"hiddenAliases": [],
|
|
1170
|
-
"id": "static_host:build:
|
|
1191
|
+
"id": "static_host:build:create",
|
|
1171
1192
|
"pluginAlias": "@xano/cli",
|
|
1172
1193
|
"pluginName": "@xano/cli",
|
|
1173
1194
|
"pluginType": "core",
|
|
@@ -1179,24 +1200,30 @@
|
|
|
1179
1200
|
"commands",
|
|
1180
1201
|
"static_host",
|
|
1181
1202
|
"build",
|
|
1182
|
-
"
|
|
1203
|
+
"create",
|
|
1183
1204
|
"index.js"
|
|
1184
1205
|
]
|
|
1185
1206
|
},
|
|
1186
|
-
"static_host:build:
|
|
1207
|
+
"static_host:build:get": {
|
|
1187
1208
|
"aliases": [],
|
|
1188
1209
|
"args": {
|
|
1189
1210
|
"static_host": {
|
|
1190
1211
|
"description": "Static Host name",
|
|
1191
1212
|
"name": "static_host",
|
|
1192
1213
|
"required": true
|
|
1214
|
+
},
|
|
1215
|
+
"build_id": {
|
|
1216
|
+
"description": "Build ID",
|
|
1217
|
+
"name": "build_id",
|
|
1218
|
+
"required": true
|
|
1193
1219
|
}
|
|
1194
1220
|
},
|
|
1195
|
-
"description": "
|
|
1221
|
+
"description": "Get details of a specific build for a static host",
|
|
1196
1222
|
"examples": [
|
|
1197
|
-
"$ xano static_host:build:
|
|
1198
|
-
"$ xano static_host:build:
|
|
1199
|
-
"$ xano static_host:build:
|
|
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"
|
|
1200
1227
|
],
|
|
1201
1228
|
"flags": {
|
|
1202
1229
|
"profile": {
|
|
@@ -1218,33 +1245,6 @@
|
|
|
1218
1245
|
"multiple": false,
|
|
1219
1246
|
"type": "option"
|
|
1220
1247
|
},
|
|
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:
|
|
1265
|
+
"id": "static_host:build:get",
|
|
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
|
-
"
|
|
1277
|
+
"get",
|
|
1278
1278
|
"index.js"
|
|
1279
1279
|
]
|
|
1280
1280
|
},
|
|
@@ -1366,5 +1366,5 @@
|
|
|
1366
1366
|
]
|
|
1367
1367
|
}
|
|
1368
1368
|
},
|
|
1369
|
-
"version": "0.0.
|
|
1369
|
+
"version": "0.0.11"
|
|
1370
1370
|
}
|