@xano/cli 0.0.11 → 0.0.12
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 +0 -1
- package/dist/commands/ephemeral/run/job/index.js +6 -28
- package/dist/commands/ephemeral/run/service/index.d.ts +0 -1
- package/dist/commands/ephemeral/run/service/index.js +5 -27
- package/dist/commands/profile/edit/index.d.ts +4 -3
- package/dist/commands/profile/edit/index.js +20 -13
- package/dist/commands/profile/me/index.d.ts +12 -0
- package/dist/commands/profile/me/index.js +146 -0
- package/oclif.manifest.json +448 -405
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"function:
|
|
3
|
+
"function:create": {
|
|
4
4
|
"aliases": [],
|
|
5
|
-
"args": {
|
|
6
|
-
|
|
7
|
-
"description": "Function ID to edit",
|
|
8
|
-
"name": "function_id",
|
|
9
|
-
"required": false
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"description": "Edit a function in a workspace",
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Create a new function in a workspace",
|
|
13
7
|
"examples": [
|
|
14
|
-
"$ xano function:
|
|
15
|
-
"$ xano function:
|
|
16
|
-
"$ xano function:
|
|
17
|
-
"$ xano function:
|
|
18
|
-
"$ xano function:
|
|
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"
|
|
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"
|
|
22
13
|
],
|
|
23
14
|
"flags": {
|
|
24
15
|
"profile": {
|
|
@@ -65,19 +56,15 @@
|
|
|
65
56
|
},
|
|
66
57
|
"edit": {
|
|
67
58
|
"char": "e",
|
|
68
|
-
"
|
|
59
|
+
"dependsOn": [
|
|
60
|
+
"file"
|
|
61
|
+
],
|
|
62
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
69
63
|
"name": "edit",
|
|
70
64
|
"required": false,
|
|
71
65
|
"allowNo": false,
|
|
72
66
|
"type": "boolean"
|
|
73
67
|
},
|
|
74
|
-
"publish": {
|
|
75
|
-
"description": "Publish the function after editing",
|
|
76
|
-
"name": "publish",
|
|
77
|
-
"required": false,
|
|
78
|
-
"allowNo": false,
|
|
79
|
-
"type": "boolean"
|
|
80
|
-
},
|
|
81
68
|
"output": {
|
|
82
69
|
"char": "o",
|
|
83
70
|
"description": "Output format",
|
|
@@ -95,7 +82,7 @@
|
|
|
95
82
|
},
|
|
96
83
|
"hasDynamicHelp": false,
|
|
97
84
|
"hiddenAliases": [],
|
|
98
|
-
"id": "function:
|
|
85
|
+
"id": "function:create",
|
|
99
86
|
"pluginAlias": "@xano/cli",
|
|
100
87
|
"pluginName": "@xano/cli",
|
|
101
88
|
"pluginType": "core",
|
|
@@ -106,20 +93,29 @@
|
|
|
106
93
|
"dist",
|
|
107
94
|
"commands",
|
|
108
95
|
"function",
|
|
109
|
-
"
|
|
96
|
+
"create",
|
|
110
97
|
"index.js"
|
|
111
98
|
]
|
|
112
99
|
},
|
|
113
|
-
"function:
|
|
100
|
+
"function:edit": {
|
|
114
101
|
"aliases": [],
|
|
115
|
-
"args": {
|
|
116
|
-
|
|
102
|
+
"args": {
|
|
103
|
+
"function_id": {
|
|
104
|
+
"description": "Function ID to edit",
|
|
105
|
+
"name": "function_id",
|
|
106
|
+
"required": false
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"description": "Edit a function in a workspace",
|
|
117
110
|
"examples": [
|
|
118
|
-
"$ xano function:
|
|
119
|
-
"$ xano function:
|
|
120
|
-
"$ xano function:
|
|
121
|
-
"$
|
|
122
|
-
"$ xano function:
|
|
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"
|
|
123
119
|
],
|
|
124
120
|
"flags": {
|
|
125
121
|
"profile": {
|
|
@@ -166,15 +162,19 @@
|
|
|
166
162
|
},
|
|
167
163
|
"edit": {
|
|
168
164
|
"char": "e",
|
|
169
|
-
"
|
|
170
|
-
"file"
|
|
171
|
-
],
|
|
172
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
165
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
173
166
|
"name": "edit",
|
|
174
167
|
"required": false,
|
|
175
168
|
"allowNo": false,
|
|
176
169
|
"type": "boolean"
|
|
177
170
|
},
|
|
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:edit",
|
|
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
|
+
"edit",
|
|
207
207
|
"index.js"
|
|
208
208
|
]
|
|
209
209
|
},
|
|
@@ -408,17 +408,15 @@
|
|
|
408
408
|
"index.js"
|
|
409
409
|
]
|
|
410
410
|
},
|
|
411
|
-
"
|
|
411
|
+
"static_host:list": {
|
|
412
412
|
"aliases": [],
|
|
413
413
|
"args": {},
|
|
414
|
-
"description": "
|
|
414
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
415
415
|
"examples": [
|
|
416
|
-
"$ xano
|
|
417
|
-
"$ xano
|
|
418
|
-
"$ xano
|
|
419
|
-
"$
|
|
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"
|
|
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"
|
|
422
420
|
],
|
|
423
421
|
"flags": {
|
|
424
422
|
"profile": {
|
|
@@ -440,40 +438,6 @@
|
|
|
440
438
|
"multiple": false,
|
|
441
439
|
"type": "option"
|
|
442
440
|
},
|
|
443
|
-
"file": {
|
|
444
|
-
"char": "f",
|
|
445
|
-
"description": "Path or URL to file containing XanoScript code",
|
|
446
|
-
"exclusive": [
|
|
447
|
-
"stdin"
|
|
448
|
-
],
|
|
449
|
-
"name": "file",
|
|
450
|
-
"required": false,
|
|
451
|
-
"hasDynamicHelp": false,
|
|
452
|
-
"multiple": false,
|
|
453
|
-
"type": "option"
|
|
454
|
-
},
|
|
455
|
-
"stdin": {
|
|
456
|
-
"char": "s",
|
|
457
|
-
"description": "Read XanoScript code from stdin",
|
|
458
|
-
"exclusive": [
|
|
459
|
-
"file"
|
|
460
|
-
],
|
|
461
|
-
"name": "stdin",
|
|
462
|
-
"required": false,
|
|
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
441
|
"output": {
|
|
478
442
|
"char": "o",
|
|
479
443
|
"description": "Output format",
|
|
@@ -488,11 +452,20 @@
|
|
|
488
452
|
],
|
|
489
453
|
"type": "option"
|
|
490
454
|
},
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
"
|
|
494
|
-
"
|
|
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",
|
|
495
467
|
"required": false,
|
|
468
|
+
"default": 50,
|
|
496
469
|
"hasDynamicHelp": false,
|
|
497
470
|
"multiple": false,
|
|
498
471
|
"type": "option"
|
|
@@ -500,7 +473,7 @@
|
|
|
500
473
|
},
|
|
501
474
|
"hasDynamicHelp": false,
|
|
502
475
|
"hiddenAliases": [],
|
|
503
|
-
"id": "
|
|
476
|
+
"id": "static_host:list",
|
|
504
477
|
"pluginAlias": "@xano/cli",
|
|
505
478
|
"pluginName": "@xano/cli",
|
|
506
479
|
"pluginType": "core",
|
|
@@ -510,51 +483,84 @@
|
|
|
510
483
|
"relativePath": [
|
|
511
484
|
"dist",
|
|
512
485
|
"commands",
|
|
513
|
-
"
|
|
514
|
-
"
|
|
515
|
-
"job",
|
|
486
|
+
"static_host",
|
|
487
|
+
"list",
|
|
516
488
|
"index.js"
|
|
517
489
|
]
|
|
518
490
|
},
|
|
519
|
-
"
|
|
491
|
+
"profile:create": {
|
|
520
492
|
"aliases": [],
|
|
521
|
-
"args": {
|
|
522
|
-
|
|
493
|
+
"args": {
|
|
494
|
+
"name": {
|
|
495
|
+
"description": "Profile name",
|
|
496
|
+
"name": "name",
|
|
497
|
+
"required": true
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"description": "Create a new profile configuration",
|
|
523
501
|
"examples": [
|
|
524
|
-
"$ xano
|
|
525
|
-
"$ xano
|
|
526
|
-
"$ xano
|
|
527
|
-
"$ xano
|
|
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"
|
|
528
506
|
],
|
|
529
507
|
"flags": {
|
|
530
|
-
"
|
|
531
|
-
"char": "
|
|
532
|
-
"description": "
|
|
533
|
-
"
|
|
534
|
-
"name": "profile",
|
|
508
|
+
"account_origin": {
|
|
509
|
+
"char": "a",
|
|
510
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
511
|
+
"name": "account_origin",
|
|
535
512
|
"required": false,
|
|
536
513
|
"hasDynamicHelp": false,
|
|
537
514
|
"multiple": false,
|
|
538
515
|
"type": "option"
|
|
539
516
|
},
|
|
540
|
-
"
|
|
541
|
-
"char": "
|
|
542
|
-
"description": "
|
|
543
|
-
"name": "
|
|
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",
|
|
544
539
|
"required": false,
|
|
545
|
-
"default": "summary",
|
|
546
540
|
"hasDynamicHelp": false,
|
|
547
541
|
"multiple": false,
|
|
548
|
-
"options": [
|
|
549
|
-
"summary",
|
|
550
|
-
"json"
|
|
551
|
-
],
|
|
552
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"
|
|
553
559
|
}
|
|
554
560
|
},
|
|
555
561
|
"hasDynamicHelp": false,
|
|
556
562
|
"hiddenAliases": [],
|
|
557
|
-
"id": "
|
|
563
|
+
"id": "profile:create",
|
|
558
564
|
"pluginAlias": "@xano/cli",
|
|
559
565
|
"pluginName": "@xano/cli",
|
|
560
566
|
"pluginType": "core",
|
|
@@ -564,77 +570,144 @@
|
|
|
564
570
|
"relativePath": [
|
|
565
571
|
"dist",
|
|
566
572
|
"commands",
|
|
567
|
-
"
|
|
568
|
-
"
|
|
573
|
+
"profile",
|
|
574
|
+
"create",
|
|
569
575
|
"index.js"
|
|
570
576
|
]
|
|
571
577
|
},
|
|
572
|
-
"
|
|
578
|
+
"profile:delete": {
|
|
573
579
|
"aliases": [],
|
|
574
|
-
"args": {
|
|
575
|
-
|
|
580
|
+
"args": {
|
|
581
|
+
"name": {
|
|
582
|
+
"description": "Profile name to delete",
|
|
583
|
+
"name": "name",
|
|
584
|
+
"required": true
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"description": "Delete a profile configuration",
|
|
576
588
|
"examples": [
|
|
577
|
-
"$ xano
|
|
578
|
-
"$ xano
|
|
579
|
-
"$ xano
|
|
580
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
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"
|
|
581
592
|
],
|
|
582
593
|
"flags": {
|
|
583
|
-
"
|
|
584
|
-
"char": "
|
|
585
|
-
"description": "
|
|
586
|
-
"
|
|
587
|
-
"
|
|
588
|
-
"
|
|
589
|
-
"
|
|
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:edit": {
|
|
621
|
+
"aliases": [],
|
|
622
|
+
"args": {
|
|
623
|
+
"name": {
|
|
624
|
+
"description": "Profile name to edit (uses default profile if not specified)",
|
|
625
|
+
"name": "name",
|
|
626
|
+
"required": false
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"description": "Edit an existing profile configuration",
|
|
630
|
+
"examples": [
|
|
631
|
+
"$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
632
|
+
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
633
|
+
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
634
|
+
"$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
635
|
+
"$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
636
|
+
],
|
|
637
|
+
"flags": {
|
|
638
|
+
"profile": {
|
|
639
|
+
"char": "p",
|
|
640
|
+
"description": "Profile to use for this command",
|
|
641
|
+
"env": "XANO_PROFILE",
|
|
642
|
+
"name": "profile",
|
|
643
|
+
"required": false,
|
|
644
|
+
"hasDynamicHelp": false,
|
|
590
645
|
"multiple": false,
|
|
591
646
|
"type": "option"
|
|
592
647
|
},
|
|
593
|
-
"
|
|
594
|
-
"char": "
|
|
595
|
-
"description": "
|
|
596
|
-
"name": "
|
|
648
|
+
"account_origin": {
|
|
649
|
+
"char": "a",
|
|
650
|
+
"description": "Update account origin URL",
|
|
651
|
+
"name": "account_origin",
|
|
597
652
|
"required": false,
|
|
598
653
|
"hasDynamicHelp": false,
|
|
599
654
|
"multiple": false,
|
|
600
655
|
"type": "option"
|
|
601
656
|
},
|
|
602
|
-
"
|
|
603
|
-
"char": "
|
|
604
|
-
"description": "
|
|
605
|
-
"name": "
|
|
657
|
+
"instance_origin": {
|
|
658
|
+
"char": "i",
|
|
659
|
+
"description": "Update instance origin URL",
|
|
660
|
+
"name": "instance_origin",
|
|
606
661
|
"required": false,
|
|
607
|
-
"default": "summary",
|
|
608
662
|
"hasDynamicHelp": false,
|
|
609
663
|
"multiple": false,
|
|
610
|
-
"options": [
|
|
611
|
-
"summary",
|
|
612
|
-
"json"
|
|
613
|
-
],
|
|
614
664
|
"type": "option"
|
|
615
665
|
},
|
|
616
|
-
"
|
|
617
|
-
"
|
|
618
|
-
"
|
|
666
|
+
"access_token": {
|
|
667
|
+
"char": "t",
|
|
668
|
+
"description": "Update access token for the Xano Metadata API",
|
|
669
|
+
"name": "access_token",
|
|
619
670
|
"required": false,
|
|
620
|
-
"default": 1,
|
|
621
671
|
"hasDynamicHelp": false,
|
|
622
672
|
"multiple": false,
|
|
623
673
|
"type": "option"
|
|
624
674
|
},
|
|
625
|
-
"
|
|
626
|
-
"
|
|
627
|
-
"
|
|
675
|
+
"workspace": {
|
|
676
|
+
"char": "w",
|
|
677
|
+
"description": "Update workspace name",
|
|
678
|
+
"name": "workspace",
|
|
679
|
+
"required": false,
|
|
680
|
+
"hasDynamicHelp": false,
|
|
681
|
+
"multiple": false,
|
|
682
|
+
"type": "option"
|
|
683
|
+
},
|
|
684
|
+
"branch": {
|
|
685
|
+
"char": "b",
|
|
686
|
+
"description": "Update branch name",
|
|
687
|
+
"name": "branch",
|
|
628
688
|
"required": false,
|
|
629
|
-
"default": 50,
|
|
630
689
|
"hasDynamicHelp": false,
|
|
631
690
|
"multiple": false,
|
|
632
691
|
"type": "option"
|
|
692
|
+
},
|
|
693
|
+
"remove-workspace": {
|
|
694
|
+
"description": "Remove workspace from profile",
|
|
695
|
+
"name": "remove-workspace",
|
|
696
|
+
"required": false,
|
|
697
|
+
"allowNo": false,
|
|
698
|
+
"type": "boolean"
|
|
699
|
+
},
|
|
700
|
+
"remove-branch": {
|
|
701
|
+
"description": "Remove branch from profile",
|
|
702
|
+
"name": "remove-branch",
|
|
703
|
+
"required": false,
|
|
704
|
+
"allowNo": false,
|
|
705
|
+
"type": "boolean"
|
|
633
706
|
}
|
|
634
707
|
},
|
|
635
708
|
"hasDynamicHelp": false,
|
|
636
709
|
"hiddenAliases": [],
|
|
637
|
-
"id": "
|
|
710
|
+
"id": "profile:edit",
|
|
638
711
|
"pluginAlias": "@xano/cli",
|
|
639
712
|
"pluginName": "@xano/cli",
|
|
640
713
|
"pluginType": "core",
|
|
@@ -644,21 +717,19 @@
|
|
|
644
717
|
"relativePath": [
|
|
645
718
|
"dist",
|
|
646
719
|
"commands",
|
|
647
|
-
"
|
|
648
|
-
"
|
|
720
|
+
"profile",
|
|
721
|
+
"edit",
|
|
649
722
|
"index.js"
|
|
650
723
|
]
|
|
651
724
|
},
|
|
652
|
-
"
|
|
725
|
+
"profile:me": {
|
|
653
726
|
"aliases": [],
|
|
654
727
|
"args": {},
|
|
655
|
-
"description": "
|
|
728
|
+
"description": "Get information about the currently authenticated user",
|
|
656
729
|
"examples": [
|
|
657
|
-
"$ xano
|
|
658
|
-
"$ xano
|
|
659
|
-
"$ xano
|
|
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"
|
|
730
|
+
"$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
|
|
731
|
+
"$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
|
|
732
|
+
"$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
|
|
662
733
|
],
|
|
663
734
|
"flags": {
|
|
664
735
|
"profile": {
|
|
@@ -671,49 +742,6 @@
|
|
|
671
742
|
"multiple": false,
|
|
672
743
|
"type": "option"
|
|
673
744
|
},
|
|
674
|
-
"workspace": {
|
|
675
|
-
"char": "w",
|
|
676
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
677
|
-
"name": "workspace",
|
|
678
|
-
"required": false,
|
|
679
|
-
"hasDynamicHelp": false,
|
|
680
|
-
"multiple": false,
|
|
681
|
-
"type": "option"
|
|
682
|
-
},
|
|
683
|
-
"file": {
|
|
684
|
-
"char": "f",
|
|
685
|
-
"description": "Path or URL to file containing XanoScript code",
|
|
686
|
-
"exclusive": [
|
|
687
|
-
"stdin"
|
|
688
|
-
],
|
|
689
|
-
"name": "file",
|
|
690
|
-
"required": false,
|
|
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
745
|
"output": {
|
|
718
746
|
"char": "o",
|
|
719
747
|
"description": "Output format",
|
|
@@ -731,7 +759,7 @@
|
|
|
731
759
|
},
|
|
732
760
|
"hasDynamicHelp": false,
|
|
733
761
|
"hiddenAliases": [],
|
|
734
|
-
"id": "
|
|
762
|
+
"id": "profile:me",
|
|
735
763
|
"pluginAlias": "@xano/cli",
|
|
736
764
|
"pluginName": "@xano/cli",
|
|
737
765
|
"pluginType": "core",
|
|
@@ -741,24 +769,33 @@
|
|
|
741
769
|
"relativePath": [
|
|
742
770
|
"dist",
|
|
743
771
|
"commands",
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"service",
|
|
772
|
+
"profile",
|
|
773
|
+
"me",
|
|
747
774
|
"index.js"
|
|
748
775
|
]
|
|
749
776
|
},
|
|
750
|
-
"profile:
|
|
777
|
+
"profile:list": {
|
|
751
778
|
"aliases": [],
|
|
752
779
|
"args": {},
|
|
753
|
-
"description": "
|
|
780
|
+
"description": "List all available profile configurations",
|
|
754
781
|
"examples": [
|
|
755
|
-
"$ xano profile:
|
|
756
|
-
"$ xano profile:
|
|
782
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
783
|
+
"$ 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",
|
|
784
|
+
"$ 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"
|
|
757
785
|
],
|
|
758
|
-
"flags": {
|
|
786
|
+
"flags": {
|
|
787
|
+
"details": {
|
|
788
|
+
"char": "d",
|
|
789
|
+
"description": "Show detailed information for each profile",
|
|
790
|
+
"name": "details",
|
|
791
|
+
"required": false,
|
|
792
|
+
"allowNo": false,
|
|
793
|
+
"type": "boolean"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
759
796
|
"hasDynamicHelp": false,
|
|
760
797
|
"hiddenAliases": [],
|
|
761
|
-
"id": "profile:
|
|
798
|
+
"id": "profile:list",
|
|
762
799
|
"pluginAlias": "@xano/cli",
|
|
763
800
|
"pluginName": "@xano/cli",
|
|
764
801
|
"pluginType": "core",
|
|
@@ -769,38 +806,28 @@
|
|
|
769
806
|
"dist",
|
|
770
807
|
"commands",
|
|
771
808
|
"profile",
|
|
772
|
-
"
|
|
809
|
+
"list",
|
|
773
810
|
"index.js"
|
|
774
811
|
]
|
|
775
812
|
},
|
|
776
|
-
"profile:
|
|
813
|
+
"profile:set-default": {
|
|
777
814
|
"aliases": [],
|
|
778
815
|
"args": {
|
|
779
816
|
"name": {
|
|
780
|
-
"description": "Profile name to
|
|
817
|
+
"description": "Profile name to set as default",
|
|
781
818
|
"name": "name",
|
|
782
819
|
"required": true
|
|
783
820
|
}
|
|
784
821
|
},
|
|
785
|
-
"description": "
|
|
822
|
+
"description": "Set the default profile",
|
|
786
823
|
"examples": [
|
|
787
|
-
"$ xano profile:
|
|
788
|
-
"$ xano profile:
|
|
789
|
-
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
824
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
825
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
790
826
|
],
|
|
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
|
-
},
|
|
827
|
+
"flags": {},
|
|
801
828
|
"hasDynamicHelp": false,
|
|
802
829
|
"hiddenAliases": [],
|
|
803
|
-
"id": "profile:
|
|
830
|
+
"id": "profile:set-default",
|
|
804
831
|
"pluginAlias": "@xano/cli",
|
|
805
832
|
"pluginName": "@xano/cli",
|
|
806
833
|
"pluginType": "core",
|
|
@@ -811,115 +838,41 @@
|
|
|
811
838
|
"dist",
|
|
812
839
|
"commands",
|
|
813
840
|
"profile",
|
|
814
|
-
"
|
|
841
|
+
"set-default",
|
|
815
842
|
"index.js"
|
|
816
843
|
]
|
|
817
844
|
},
|
|
818
|
-
"profile:
|
|
845
|
+
"profile:wizard": {
|
|
819
846
|
"aliases": [],
|
|
820
|
-
"args": {
|
|
821
|
-
|
|
822
|
-
"description": "Profile name",
|
|
823
|
-
"name": "name",
|
|
824
|
-
"required": true
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
"description": "Create a new profile configuration",
|
|
847
|
+
"args": {},
|
|
848
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
828
849
|
"examples": [
|
|
829
|
-
"$ xano profile:
|
|
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"
|
|
850
|
+
"$ 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"
|
|
833
851
|
],
|
|
834
852
|
"flags": {
|
|
835
|
-
"
|
|
836
|
-
"char": "
|
|
837
|
-
"description": "
|
|
838
|
-
"name": "
|
|
853
|
+
"name": {
|
|
854
|
+
"char": "n",
|
|
855
|
+
"description": "Profile name (skip prompt if provided)",
|
|
856
|
+
"name": "name",
|
|
839
857
|
"required": false,
|
|
840
858
|
"hasDynamicHelp": false,
|
|
841
859
|
"multiple": false,
|
|
842
860
|
"type": "option"
|
|
843
861
|
},
|
|
844
|
-
"
|
|
845
|
-
"char": "
|
|
846
|
-
"description": "
|
|
847
|
-
"name": "
|
|
848
|
-
"required":
|
|
862
|
+
"origin": {
|
|
863
|
+
"char": "o",
|
|
864
|
+
"description": "Xano instance origin URL",
|
|
865
|
+
"name": "origin",
|
|
866
|
+
"required": false,
|
|
867
|
+
"default": "https://app.xano.com",
|
|
849
868
|
"hasDynamicHelp": false,
|
|
850
869
|
"multiple": false,
|
|
851
870
|
"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",
|
|
866
|
-
"required": false,
|
|
867
|
-
"hasDynamicHelp": false,
|
|
868
|
-
"multiple": false,
|
|
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"
|
|
886
871
|
}
|
|
887
872
|
},
|
|
888
873
|
"hasDynamicHelp": false,
|
|
889
874
|
"hiddenAliases": [],
|
|
890
|
-
"id": "profile:
|
|
891
|
-
"pluginAlias": "@xano/cli",
|
|
892
|
-
"pluginName": "@xano/cli",
|
|
893
|
-
"pluginType": "core",
|
|
894
|
-
"strict": true,
|
|
895
|
-
"enableJsonFlag": false,
|
|
896
|
-
"isESM": true,
|
|
897
|
-
"relativePath": [
|
|
898
|
-
"dist",
|
|
899
|
-
"commands",
|
|
900
|
-
"profile",
|
|
901
|
-
"create",
|
|
902
|
-
"index.js"
|
|
903
|
-
]
|
|
904
|
-
},
|
|
905
|
-
"profile:set-default": {
|
|
906
|
-
"aliases": [],
|
|
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",
|
|
915
|
-
"examples": [
|
|
916
|
-
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
917
|
-
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
918
|
-
],
|
|
919
|
-
"flags": {},
|
|
920
|
-
"hasDynamicHelp": false,
|
|
921
|
-
"hiddenAliases": [],
|
|
922
|
-
"id": "profile:set-default",
|
|
875
|
+
"id": "profile:wizard",
|
|
923
876
|
"pluginAlias": "@xano/cli",
|
|
924
877
|
"pluginName": "@xano/cli",
|
|
925
878
|
"pluginType": "core",
|
|
@@ -930,32 +883,49 @@
|
|
|
930
883
|
"dist",
|
|
931
884
|
"commands",
|
|
932
885
|
"profile",
|
|
933
|
-
"
|
|
886
|
+
"wizard",
|
|
934
887
|
"index.js"
|
|
935
888
|
]
|
|
936
889
|
},
|
|
937
|
-
"
|
|
890
|
+
"workspace:list": {
|
|
938
891
|
"aliases": [],
|
|
939
892
|
"args": {},
|
|
940
|
-
"description": "List all
|
|
893
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
941
894
|
"examples": [
|
|
942
|
-
"$ xano
|
|
943
|
-
"$ xano
|
|
944
|
-
"$ xano
|
|
895
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
896
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
897
|
+
"$ 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",
|
|
898
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
945
899
|
],
|
|
946
900
|
"flags": {
|
|
947
|
-
"
|
|
948
|
-
"char": "
|
|
949
|
-
"description": "
|
|
950
|
-
"
|
|
901
|
+
"profile": {
|
|
902
|
+
"char": "p",
|
|
903
|
+
"description": "Profile to use for this command",
|
|
904
|
+
"env": "XANO_PROFILE",
|
|
905
|
+
"name": "profile",
|
|
951
906
|
"required": false,
|
|
952
|
-
"
|
|
953
|
-
"
|
|
907
|
+
"hasDynamicHelp": false,
|
|
908
|
+
"multiple": false,
|
|
909
|
+
"type": "option"
|
|
910
|
+
},
|
|
911
|
+
"output": {
|
|
912
|
+
"char": "o",
|
|
913
|
+
"description": "Output format",
|
|
914
|
+
"name": "output",
|
|
915
|
+
"required": false,
|
|
916
|
+
"default": "summary",
|
|
917
|
+
"hasDynamicHelp": false,
|
|
918
|
+
"multiple": false,
|
|
919
|
+
"options": [
|
|
920
|
+
"summary",
|
|
921
|
+
"json"
|
|
922
|
+
],
|
|
923
|
+
"type": "option"
|
|
954
924
|
}
|
|
955
925
|
},
|
|
956
926
|
"hasDynamicHelp": false,
|
|
957
927
|
"hiddenAliases": [],
|
|
958
|
-
"id": "
|
|
928
|
+
"id": "workspace:list",
|
|
959
929
|
"pluginAlias": "@xano/cli",
|
|
960
930
|
"pluginName": "@xano/cli",
|
|
961
931
|
"pluginType": "core",
|
|
@@ -965,34 +935,86 @@
|
|
|
965
935
|
"relativePath": [
|
|
966
936
|
"dist",
|
|
967
937
|
"commands",
|
|
968
|
-
"
|
|
938
|
+
"workspace",
|
|
969
939
|
"list",
|
|
970
940
|
"index.js"
|
|
971
941
|
]
|
|
972
942
|
},
|
|
973
|
-
"
|
|
943
|
+
"ephemeral:run:job": {
|
|
974
944
|
"aliases": [],
|
|
975
945
|
"args": {},
|
|
976
|
-
"description": "
|
|
946
|
+
"description": "Run an ephemeral job",
|
|
977
947
|
"examples": [
|
|
978
|
-
"$ xano
|
|
948
|
+
"$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
|
|
949
|
+
"$ xano ephemeral:run:job -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
|
|
950
|
+
"$ cat script.xs | xano ephemeral:run:job --stdin\nJob executed successfully!\n...\n",
|
|
951
|
+
"$ xano ephemeral:run:job -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
|
|
952
|
+
"$ xano ephemeral:run:job -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
|
|
979
953
|
],
|
|
980
954
|
"flags": {
|
|
981
|
-
"
|
|
982
|
-
"char": "
|
|
983
|
-
"description": "Profile
|
|
984
|
-
"
|
|
955
|
+
"profile": {
|
|
956
|
+
"char": "p",
|
|
957
|
+
"description": "Profile to use for this command",
|
|
958
|
+
"env": "XANO_PROFILE",
|
|
959
|
+
"name": "profile",
|
|
985
960
|
"required": false,
|
|
986
961
|
"hasDynamicHelp": false,
|
|
987
962
|
"multiple": false,
|
|
988
963
|
"type": "option"
|
|
989
964
|
},
|
|
990
|
-
"
|
|
965
|
+
"file": {
|
|
966
|
+
"char": "f",
|
|
967
|
+
"description": "Path or URL to file containing XanoScript code",
|
|
968
|
+
"exclusive": [
|
|
969
|
+
"stdin"
|
|
970
|
+
],
|
|
971
|
+
"name": "file",
|
|
972
|
+
"required": false,
|
|
973
|
+
"hasDynamicHelp": false,
|
|
974
|
+
"multiple": false,
|
|
975
|
+
"type": "option"
|
|
976
|
+
},
|
|
977
|
+
"stdin": {
|
|
978
|
+
"char": "s",
|
|
979
|
+
"description": "Read XanoScript code from stdin",
|
|
980
|
+
"exclusive": [
|
|
981
|
+
"file"
|
|
982
|
+
],
|
|
983
|
+
"name": "stdin",
|
|
984
|
+
"required": false,
|
|
985
|
+
"allowNo": false,
|
|
986
|
+
"type": "boolean"
|
|
987
|
+
},
|
|
988
|
+
"edit": {
|
|
989
|
+
"char": "e",
|
|
990
|
+
"dependsOn": [
|
|
991
|
+
"file"
|
|
992
|
+
],
|
|
993
|
+
"description": "Open file in editor before running job (requires --file)",
|
|
994
|
+
"name": "edit",
|
|
995
|
+
"required": false,
|
|
996
|
+
"allowNo": false,
|
|
997
|
+
"type": "boolean"
|
|
998
|
+
},
|
|
999
|
+
"output": {
|
|
991
1000
|
"char": "o",
|
|
992
|
-
"description": "
|
|
993
|
-
"name": "
|
|
1001
|
+
"description": "Output format",
|
|
1002
|
+
"name": "output",
|
|
1003
|
+
"required": false,
|
|
1004
|
+
"default": "summary",
|
|
1005
|
+
"hasDynamicHelp": false,
|
|
1006
|
+
"multiple": false,
|
|
1007
|
+
"options": [
|
|
1008
|
+
"summary",
|
|
1009
|
+
"json"
|
|
1010
|
+
],
|
|
1011
|
+
"type": "option"
|
|
1012
|
+
},
|
|
1013
|
+
"args": {
|
|
1014
|
+
"char": "a",
|
|
1015
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
1016
|
+
"name": "args",
|
|
994
1017
|
"required": false,
|
|
995
|
-
"default": "https://app.xano.com",
|
|
996
1018
|
"hasDynamicHelp": false,
|
|
997
1019
|
"multiple": false,
|
|
998
1020
|
"type": "option"
|
|
@@ -1000,7 +1022,7 @@
|
|
|
1000
1022
|
},
|
|
1001
1023
|
"hasDynamicHelp": false,
|
|
1002
1024
|
"hiddenAliases": [],
|
|
1003
|
-
"id": "
|
|
1025
|
+
"id": "ephemeral:run:job",
|
|
1004
1026
|
"pluginAlias": "@xano/cli",
|
|
1005
1027
|
"pluginName": "@xano/cli",
|
|
1006
1028
|
"pluginType": "core",
|
|
@@ -1010,91 +1032,112 @@
|
|
|
1010
1032
|
"relativePath": [
|
|
1011
1033
|
"dist",
|
|
1012
1034
|
"commands",
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1035
|
+
"ephemeral",
|
|
1036
|
+
"run",
|
|
1037
|
+
"job",
|
|
1015
1038
|
"index.js"
|
|
1016
1039
|
]
|
|
1017
1040
|
},
|
|
1018
|
-
"
|
|
1041
|
+
"ephemeral:run:service": {
|
|
1019
1042
|
"aliases": [],
|
|
1020
|
-
"args": {
|
|
1021
|
-
|
|
1022
|
-
"description": "Profile name to edit",
|
|
1023
|
-
"name": "name",
|
|
1024
|
-
"required": true
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
"description": "Edit an existing profile configuration",
|
|
1043
|
+
"args": {},
|
|
1044
|
+
"description": "Run an ephemeral service",
|
|
1028
1045
|
"examples": [
|
|
1029
|
-
"$ xano
|
|
1030
|
-
"$ xano
|
|
1031
|
-
"$
|
|
1032
|
-
"$ xano
|
|
1046
|
+
"$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
|
|
1047
|
+
"$ xano ephemeral:run:service -f service.xs --edit\n# Opens service.xs in $EDITOR, then creates service with edited content\nService created successfully!\n...\n",
|
|
1048
|
+
"$ cat service.xs | xano ephemeral:run:service --stdin\nService created successfully!\n...\n",
|
|
1049
|
+
"$ xano ephemeral:run:service -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
|
|
1033
1050
|
],
|
|
1034
1051
|
"flags": {
|
|
1035
|
-
"
|
|
1036
|
-
"char": "
|
|
1037
|
-
"description": "
|
|
1038
|
-
"
|
|
1052
|
+
"profile": {
|
|
1053
|
+
"char": "p",
|
|
1054
|
+
"description": "Profile to use for this command",
|
|
1055
|
+
"env": "XANO_PROFILE",
|
|
1056
|
+
"name": "profile",
|
|
1039
1057
|
"required": false,
|
|
1040
1058
|
"hasDynamicHelp": false,
|
|
1041
1059
|
"multiple": false,
|
|
1042
1060
|
"type": "option"
|
|
1043
1061
|
},
|
|
1044
|
-
"
|
|
1045
|
-
"char": "
|
|
1046
|
-
"description": "
|
|
1047
|
-
"
|
|
1062
|
+
"file": {
|
|
1063
|
+
"char": "f",
|
|
1064
|
+
"description": "Path or URL to file containing XanoScript code",
|
|
1065
|
+
"exclusive": [
|
|
1066
|
+
"stdin"
|
|
1067
|
+
],
|
|
1068
|
+
"name": "file",
|
|
1048
1069
|
"required": false,
|
|
1049
1070
|
"hasDynamicHelp": false,
|
|
1050
1071
|
"multiple": false,
|
|
1051
1072
|
"type": "option"
|
|
1052
1073
|
},
|
|
1053
|
-
"
|
|
1054
|
-
"char": "
|
|
1055
|
-
"description": "
|
|
1056
|
-
"
|
|
1074
|
+
"stdin": {
|
|
1075
|
+
"char": "s",
|
|
1076
|
+
"description": "Read XanoScript code from stdin",
|
|
1077
|
+
"exclusive": [
|
|
1078
|
+
"file"
|
|
1079
|
+
],
|
|
1080
|
+
"name": "stdin",
|
|
1057
1081
|
"required": false,
|
|
1058
|
-
"
|
|
1059
|
-
"
|
|
1060
|
-
"type": "option"
|
|
1082
|
+
"allowNo": false,
|
|
1083
|
+
"type": "boolean"
|
|
1061
1084
|
},
|
|
1062
|
-
"
|
|
1063
|
-
"char": "
|
|
1064
|
-
"
|
|
1065
|
-
|
|
1085
|
+
"edit": {
|
|
1086
|
+
"char": "e",
|
|
1087
|
+
"dependsOn": [
|
|
1088
|
+
"file"
|
|
1089
|
+
],
|
|
1090
|
+
"description": "Open file in editor before running service (requires --file)",
|
|
1091
|
+
"name": "edit",
|
|
1066
1092
|
"required": false,
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
1069
|
-
"type": "option"
|
|
1093
|
+
"allowNo": false,
|
|
1094
|
+
"type": "boolean"
|
|
1070
1095
|
},
|
|
1071
|
-
"
|
|
1072
|
-
"char": "
|
|
1073
|
-
"description": "
|
|
1074
|
-
"name": "
|
|
1096
|
+
"output": {
|
|
1097
|
+
"char": "o",
|
|
1098
|
+
"description": "Output format",
|
|
1099
|
+
"name": "output",
|
|
1075
1100
|
"required": false,
|
|
1101
|
+
"default": "summary",
|
|
1076
1102
|
"hasDynamicHelp": false,
|
|
1077
1103
|
"multiple": false,
|
|
1104
|
+
"options": [
|
|
1105
|
+
"summary",
|
|
1106
|
+
"json"
|
|
1107
|
+
],
|
|
1078
1108
|
"type": "option"
|
|
1079
|
-
},
|
|
1080
|
-
"remove-workspace": {
|
|
1081
|
-
"description": "Remove workspace from profile",
|
|
1082
|
-
"name": "remove-workspace",
|
|
1083
|
-
"required": false,
|
|
1084
|
-
"allowNo": false,
|
|
1085
|
-
"type": "boolean"
|
|
1086
|
-
},
|
|
1087
|
-
"remove-branch": {
|
|
1088
|
-
"description": "Remove branch from profile",
|
|
1089
|
-
"name": "remove-branch",
|
|
1090
|
-
"required": false,
|
|
1091
|
-
"allowNo": false,
|
|
1092
|
-
"type": "boolean"
|
|
1093
1109
|
}
|
|
1094
1110
|
},
|
|
1095
1111
|
"hasDynamicHelp": false,
|
|
1096
1112
|
"hiddenAliases": [],
|
|
1097
|
-
"id": "
|
|
1113
|
+
"id": "ephemeral:run:service",
|
|
1114
|
+
"pluginAlias": "@xano/cli",
|
|
1115
|
+
"pluginName": "@xano/cli",
|
|
1116
|
+
"pluginType": "core",
|
|
1117
|
+
"strict": true,
|
|
1118
|
+
"enableJsonFlag": false,
|
|
1119
|
+
"isESM": true,
|
|
1120
|
+
"relativePath": [
|
|
1121
|
+
"dist",
|
|
1122
|
+
"commands",
|
|
1123
|
+
"ephemeral",
|
|
1124
|
+
"run",
|
|
1125
|
+
"service",
|
|
1126
|
+
"index.js"
|
|
1127
|
+
]
|
|
1128
|
+
},
|
|
1129
|
+
"profile:get-default": {
|
|
1130
|
+
"aliases": [],
|
|
1131
|
+
"args": {},
|
|
1132
|
+
"description": "Get the current default profile name",
|
|
1133
|
+
"examples": [
|
|
1134
|
+
"$ xano profile:get-default\nproduction\n",
|
|
1135
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
1136
|
+
],
|
|
1137
|
+
"flags": {},
|
|
1138
|
+
"hasDynamicHelp": false,
|
|
1139
|
+
"hiddenAliases": [],
|
|
1140
|
+
"id": "profile:get-default",
|
|
1098
1141
|
"pluginAlias": "@xano/cli",
|
|
1099
1142
|
"pluginName": "@xano/cli",
|
|
1100
1143
|
"pluginType": "core",
|
|
@@ -1105,7 +1148,7 @@
|
|
|
1105
1148
|
"dist",
|
|
1106
1149
|
"commands",
|
|
1107
1150
|
"profile",
|
|
1108
|
-
"
|
|
1151
|
+
"get-default",
|
|
1109
1152
|
"index.js"
|
|
1110
1153
|
]
|
|
1111
1154
|
},
|
|
@@ -1366,5 +1409,5 @@
|
|
|
1366
1409
|
]
|
|
1367
1410
|
}
|
|
1368
1411
|
},
|
|
1369
|
-
"version": "0.0.
|
|
1412
|
+
"version": "0.0.12"
|
|
1370
1413
|
}
|