@xano/cli 0.0.2 → 0.0.4
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/README.md +19 -19
- package/dist/commands/ephemeral/run/service/index.js +12 -8
- package/oclif.manifest.json +137 -137
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @xano/cli
|
|
|
20
20
|
$ xano COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ xano (--version)
|
|
23
|
-
@xano/cli/0.0.
|
|
23
|
+
@xano/cli/0.0.4 darwin-arm64 node-v22.19.0
|
|
24
24
|
$ xano --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ xano COMMAND
|
|
@@ -110,7 +110,7 @@ EXAMPLES
|
|
|
110
110
|
...
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
_See code: [src/commands/ephemeral/run/job/index.ts](https://github.com/
|
|
113
|
+
_See code: [src/commands/ephemeral/run/job/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/ephemeral/run/job/index.ts)_
|
|
114
114
|
|
|
115
115
|
## `xano ephemeral run service`
|
|
116
116
|
|
|
@@ -157,7 +157,7 @@ EXAMPLES
|
|
|
157
157
|
}
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
_See code: [src/commands/ephemeral/run/service/index.ts](https://github.com/
|
|
160
|
+
_See code: [src/commands/ephemeral/run/service/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/ephemeral/run/service/index.ts)_
|
|
161
161
|
|
|
162
162
|
## `xano function create`
|
|
163
163
|
|
|
@@ -209,7 +209,7 @@ EXAMPLES
|
|
|
209
209
|
}
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
_See code: [src/commands/function/create/index.ts](https://github.com/
|
|
212
|
+
_See code: [src/commands/function/create/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/function/create/index.ts)_
|
|
213
213
|
|
|
214
214
|
## `xano function edit [FUNCTION_ID]`
|
|
215
215
|
|
|
@@ -282,7 +282,7 @@ EXAMPLES
|
|
|
282
282
|
}
|
|
283
283
|
```
|
|
284
284
|
|
|
285
|
-
_See code: [src/commands/function/edit/index.ts](https://github.com/
|
|
285
|
+
_See code: [src/commands/function/edit/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/function/edit/index.ts)_
|
|
286
286
|
|
|
287
287
|
## `xano function get [FUNCTION_ID]`
|
|
288
288
|
|
|
@@ -345,7 +345,7 @@ EXAMPLES
|
|
|
345
345
|
}
|
|
346
346
|
```
|
|
347
347
|
|
|
348
|
-
_See code: [src/commands/function/get/index.ts](https://github.com/
|
|
348
|
+
_See code: [src/commands/function/get/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/function/get/index.ts)_
|
|
349
349
|
|
|
350
350
|
## `xano function list`
|
|
351
351
|
|
|
@@ -401,7 +401,7 @@ EXAMPLES
|
|
|
401
401
|
]
|
|
402
402
|
```
|
|
403
403
|
|
|
404
|
-
_See code: [src/commands/function/list/index.ts](https://github.com/
|
|
404
|
+
_See code: [src/commands/function/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/function/list/index.ts)_
|
|
405
405
|
|
|
406
406
|
## `xano help [COMMAND]`
|
|
407
407
|
|
|
@@ -750,7 +750,7 @@ EXAMPLES
|
|
|
750
750
|
Default profile set to 'production'
|
|
751
751
|
```
|
|
752
752
|
|
|
753
|
-
_See code: [src/commands/profile/create/index.ts](https://github.com/
|
|
753
|
+
_See code: [src/commands/profile/create/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/create/index.ts)_
|
|
754
754
|
|
|
755
755
|
## `xano profile delete NAME`
|
|
756
756
|
|
|
@@ -781,7 +781,7 @@ EXAMPLES
|
|
|
781
781
|
Profile 'old-profile' deleted successfully from ~/.xano/credentials.yaml
|
|
782
782
|
```
|
|
783
783
|
|
|
784
|
-
_See code: [src/commands/profile/delete/index.ts](https://github.com/
|
|
784
|
+
_See code: [src/commands/profile/delete/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/delete/index.ts)_
|
|
785
785
|
|
|
786
786
|
## `xano profile edit NAME`
|
|
787
787
|
|
|
@@ -821,7 +821,7 @@ EXAMPLES
|
|
|
821
821
|
Profile 'dev' updated successfully at ~/.xano/credentials.yaml
|
|
822
822
|
```
|
|
823
823
|
|
|
824
|
-
_See code: [src/commands/profile/edit/index.ts](https://github.com/
|
|
824
|
+
_See code: [src/commands/profile/edit/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/edit/index.ts)_
|
|
825
825
|
|
|
826
826
|
## `xano profile get-default`
|
|
827
827
|
|
|
@@ -842,7 +842,7 @@ EXAMPLES
|
|
|
842
842
|
No default profile set
|
|
843
843
|
```
|
|
844
844
|
|
|
845
|
-
_See code: [src/commands/profile/get-default/index.ts](https://github.com/
|
|
845
|
+
_See code: [src/commands/profile/get-default/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/get-default/index.ts)_
|
|
846
846
|
|
|
847
847
|
## `xano profile list`
|
|
848
848
|
|
|
@@ -889,7 +889,7 @@ EXAMPLES
|
|
|
889
889
|
Branch: main
|
|
890
890
|
```
|
|
891
891
|
|
|
892
|
-
_See code: [src/commands/profile/list/index.ts](https://github.com/
|
|
892
|
+
_See code: [src/commands/profile/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/list/index.ts)_
|
|
893
893
|
|
|
894
894
|
## `xano profile set-default NAME`
|
|
895
895
|
|
|
@@ -913,7 +913,7 @@ EXAMPLES
|
|
|
913
913
|
Default profile set to 'staging'
|
|
914
914
|
```
|
|
915
915
|
|
|
916
|
-
_See code: [src/commands/profile/set-default/index.ts](https://github.com/
|
|
916
|
+
_See code: [src/commands/profile/set-default/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/set-default/index.ts)_
|
|
917
917
|
|
|
918
918
|
## `xano profile wizard`
|
|
919
919
|
|
|
@@ -941,7 +941,7 @@ EXAMPLES
|
|
|
941
941
|
Profile 'production' created successfully at ~/.xano/credentials.yaml
|
|
942
942
|
```
|
|
943
943
|
|
|
944
|
-
_See code: [src/commands/profile/wizard/index.ts](https://github.com/
|
|
944
|
+
_See code: [src/commands/profile/wizard/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/profile/wizard/index.ts)_
|
|
945
945
|
|
|
946
946
|
## `xano static_host build create STATIC_HOST`
|
|
947
947
|
|
|
@@ -988,7 +988,7 @@ EXAMPLES
|
|
|
988
988
|
}
|
|
989
989
|
```
|
|
990
990
|
|
|
991
|
-
_See code: [src/commands/static_host/build/create/index.ts](https://github.com/
|
|
991
|
+
_See code: [src/commands/static_host/build/create/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/static_host/build/create/index.ts)_
|
|
992
992
|
|
|
993
993
|
## `xano static_host build get STATIC_HOST BUILD_ID`
|
|
994
994
|
|
|
@@ -1037,7 +1037,7 @@ EXAMPLES
|
|
|
1037
1037
|
}
|
|
1038
1038
|
```
|
|
1039
1039
|
|
|
1040
|
-
_See code: [src/commands/static_host/build/get/index.ts](https://github.com/
|
|
1040
|
+
_See code: [src/commands/static_host/build/get/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/static_host/build/get/index.ts)_
|
|
1041
1041
|
|
|
1042
1042
|
## `xano static_host build list STATIC_HOST`
|
|
1043
1043
|
|
|
@@ -1091,7 +1091,7 @@ EXAMPLES
|
|
|
1091
1091
|
]
|
|
1092
1092
|
```
|
|
1093
1093
|
|
|
1094
|
-
_See code: [src/commands/static_host/build/list/index.ts](https://github.com/
|
|
1094
|
+
_See code: [src/commands/static_host/build/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/static_host/build/list/index.ts)_
|
|
1095
1095
|
|
|
1096
1096
|
## `xano static_host list`
|
|
1097
1097
|
|
|
@@ -1141,7 +1141,7 @@ EXAMPLES
|
|
|
1141
1141
|
]
|
|
1142
1142
|
```
|
|
1143
1143
|
|
|
1144
|
-
_See code: [src/commands/static_host/list/index.ts](https://github.com/
|
|
1144
|
+
_See code: [src/commands/static_host/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/static_host/list/index.ts)_
|
|
1145
1145
|
|
|
1146
1146
|
## `xano workspace list`
|
|
1147
1147
|
|
|
@@ -1196,5 +1196,5 @@ EXAMPLES
|
|
|
1196
1196
|
}
|
|
1197
1197
|
```
|
|
1198
1198
|
|
|
1199
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/
|
|
1199
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.4/src/commands/workspace/list/index.ts)_
|
|
1200
1200
|
<!-- commandsstop -->
|
|
@@ -176,14 +176,18 @@ Service created successfully!
|
|
|
176
176
|
this.log(` Boot: ${formatTime(result.result.boot_time)}`);
|
|
177
177
|
this.log(` Pre: ${formatTime(result.result.pre_time)}`);
|
|
178
178
|
this.log('');
|
|
179
|
-
if (result.result.
|
|
180
|
-
this.log('
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
if (result.result.endpoints && result.result.endpoints.length > 0) {
|
|
180
|
+
this.log(' Endpoints:');
|
|
181
|
+
for (const endpoint of result.result.endpoints) {
|
|
182
|
+
this.log(` ${endpoint.verb.padEnd(6)} ${endpoint.url}`);
|
|
183
|
+
if (endpoint.input.length > 0) {
|
|
184
|
+
for (const input of endpoint.input) {
|
|
185
|
+
const required = input.required ? '*' : '';
|
|
186
|
+
const nullable = input.nullable ? '?' : '';
|
|
187
|
+
this.log(` └─ ${input.name}${required}: ${input.type}${nullable} (${input.source})`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
187
191
|
}
|
|
188
192
|
}
|
|
189
193
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -408,6 +408,86 @@
|
|
|
408
408
|
"index.js"
|
|
409
409
|
]
|
|
410
410
|
},
|
|
411
|
+
"static_host:list": {
|
|
412
|
+
"aliases": [],
|
|
413
|
+
"args": {},
|
|
414
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
415
|
+
"examples": [
|
|
416
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
417
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
418
|
+
"$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
|
|
419
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
420
|
+
],
|
|
421
|
+
"flags": {
|
|
422
|
+
"profile": {
|
|
423
|
+
"char": "p",
|
|
424
|
+
"description": "Profile to use for this command",
|
|
425
|
+
"env": "XANO_PROFILE",
|
|
426
|
+
"name": "profile",
|
|
427
|
+
"required": false,
|
|
428
|
+
"hasDynamicHelp": false,
|
|
429
|
+
"multiple": false,
|
|
430
|
+
"type": "option"
|
|
431
|
+
},
|
|
432
|
+
"workspace": {
|
|
433
|
+
"char": "w",
|
|
434
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
435
|
+
"name": "workspace",
|
|
436
|
+
"required": false,
|
|
437
|
+
"hasDynamicHelp": false,
|
|
438
|
+
"multiple": false,
|
|
439
|
+
"type": "option"
|
|
440
|
+
},
|
|
441
|
+
"output": {
|
|
442
|
+
"char": "o",
|
|
443
|
+
"description": "Output format",
|
|
444
|
+
"name": "output",
|
|
445
|
+
"required": false,
|
|
446
|
+
"default": "summary",
|
|
447
|
+
"hasDynamicHelp": false,
|
|
448
|
+
"multiple": false,
|
|
449
|
+
"options": [
|
|
450
|
+
"summary",
|
|
451
|
+
"json"
|
|
452
|
+
],
|
|
453
|
+
"type": "option"
|
|
454
|
+
},
|
|
455
|
+
"page": {
|
|
456
|
+
"description": "Page number for pagination",
|
|
457
|
+
"name": "page",
|
|
458
|
+
"required": false,
|
|
459
|
+
"default": 1,
|
|
460
|
+
"hasDynamicHelp": false,
|
|
461
|
+
"multiple": false,
|
|
462
|
+
"type": "option"
|
|
463
|
+
},
|
|
464
|
+
"per_page": {
|
|
465
|
+
"description": "Number of results per page",
|
|
466
|
+
"name": "per_page",
|
|
467
|
+
"required": false,
|
|
468
|
+
"default": 50,
|
|
469
|
+
"hasDynamicHelp": false,
|
|
470
|
+
"multiple": false,
|
|
471
|
+
"type": "option"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"hasDynamicHelp": false,
|
|
475
|
+
"hiddenAliases": [],
|
|
476
|
+
"id": "static_host:list",
|
|
477
|
+
"pluginAlias": "@xano/cli",
|
|
478
|
+
"pluginName": "@xano/cli",
|
|
479
|
+
"pluginType": "core",
|
|
480
|
+
"strict": true,
|
|
481
|
+
"enableJsonFlag": false,
|
|
482
|
+
"isESM": true,
|
|
483
|
+
"relativePath": [
|
|
484
|
+
"dist",
|
|
485
|
+
"commands",
|
|
486
|
+
"static_host",
|
|
487
|
+
"list",
|
|
488
|
+
"index.js"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
411
491
|
"profile:create": {
|
|
412
492
|
"aliases": [],
|
|
413
493
|
"args": {
|
|
@@ -599,37 +679,24 @@
|
|
|
599
679
|
"index.js"
|
|
600
680
|
]
|
|
601
681
|
},
|
|
602
|
-
"profile:
|
|
682
|
+
"profile:set-default": {
|
|
603
683
|
"aliases": [],
|
|
604
|
-
"args": {
|
|
605
|
-
"description": "Create a new profile configuration using an interactive wizard",
|
|
606
|
-
"examples": [
|
|
607
|
-
"$ 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"
|
|
608
|
-
],
|
|
609
|
-
"flags": {
|
|
684
|
+
"args": {
|
|
610
685
|
"name": {
|
|
611
|
-
"
|
|
612
|
-
"description": "Profile name (skip prompt if provided)",
|
|
686
|
+
"description": "Profile name to set as default",
|
|
613
687
|
"name": "name",
|
|
614
|
-
"required":
|
|
615
|
-
"hasDynamicHelp": false,
|
|
616
|
-
"multiple": false,
|
|
617
|
-
"type": "option"
|
|
618
|
-
},
|
|
619
|
-
"origin": {
|
|
620
|
-
"char": "o",
|
|
621
|
-
"description": "Xano instance origin URL",
|
|
622
|
-
"name": "origin",
|
|
623
|
-
"required": false,
|
|
624
|
-
"default": "https://app.xano.com",
|
|
625
|
-
"hasDynamicHelp": false,
|
|
626
|
-
"multiple": false,
|
|
627
|
-
"type": "option"
|
|
688
|
+
"required": true
|
|
628
689
|
}
|
|
629
690
|
},
|
|
691
|
+
"description": "Set the default profile",
|
|
692
|
+
"examples": [
|
|
693
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
694
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
695
|
+
],
|
|
696
|
+
"flags": {},
|
|
630
697
|
"hasDynamicHelp": false,
|
|
631
698
|
"hiddenAliases": [],
|
|
632
|
-
"id": "profile:
|
|
699
|
+
"id": "profile:set-default",
|
|
633
700
|
"pluginAlias": "@xano/cli",
|
|
634
701
|
"pluginName": "@xano/cli",
|
|
635
702
|
"pluginType": "core",
|
|
@@ -640,68 +707,33 @@
|
|
|
640
707
|
"dist",
|
|
641
708
|
"commands",
|
|
642
709
|
"profile",
|
|
643
|
-
"
|
|
710
|
+
"set-default",
|
|
644
711
|
"index.js"
|
|
645
712
|
]
|
|
646
713
|
},
|
|
647
|
-
"
|
|
714
|
+
"profile:wizard": {
|
|
648
715
|
"aliases": [],
|
|
649
716
|
"args": {},
|
|
650
|
-
"description": "
|
|
717
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
651
718
|
"examples": [
|
|
652
|
-
"$ xano
|
|
653
|
-
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
654
|
-
"$ 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",
|
|
655
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
719
|
+
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
656
720
|
],
|
|
657
721
|
"flags": {
|
|
658
|
-
"
|
|
659
|
-
"char": "
|
|
660
|
-
"description": "Profile
|
|
661
|
-
"
|
|
662
|
-
"name": "profile",
|
|
663
|
-
"required": false,
|
|
664
|
-
"hasDynamicHelp": false,
|
|
665
|
-
"multiple": false,
|
|
666
|
-
"type": "option"
|
|
667
|
-
},
|
|
668
|
-
"workspace": {
|
|
669
|
-
"char": "w",
|
|
670
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
671
|
-
"name": "workspace",
|
|
722
|
+
"name": {
|
|
723
|
+
"char": "n",
|
|
724
|
+
"description": "Profile name (skip prompt if provided)",
|
|
725
|
+
"name": "name",
|
|
672
726
|
"required": false,
|
|
673
727
|
"hasDynamicHelp": false,
|
|
674
728
|
"multiple": false,
|
|
675
729
|
"type": "option"
|
|
676
730
|
},
|
|
677
|
-
"
|
|
731
|
+
"origin": {
|
|
678
732
|
"char": "o",
|
|
679
|
-
"description": "
|
|
680
|
-
"name": "
|
|
681
|
-
"required": false,
|
|
682
|
-
"default": "summary",
|
|
683
|
-
"hasDynamicHelp": false,
|
|
684
|
-
"multiple": false,
|
|
685
|
-
"options": [
|
|
686
|
-
"summary",
|
|
687
|
-
"json"
|
|
688
|
-
],
|
|
689
|
-
"type": "option"
|
|
690
|
-
},
|
|
691
|
-
"page": {
|
|
692
|
-
"description": "Page number for pagination",
|
|
693
|
-
"name": "page",
|
|
694
|
-
"required": false,
|
|
695
|
-
"default": 1,
|
|
696
|
-
"hasDynamicHelp": false,
|
|
697
|
-
"multiple": false,
|
|
698
|
-
"type": "option"
|
|
699
|
-
},
|
|
700
|
-
"per_page": {
|
|
701
|
-
"description": "Number of results per page",
|
|
702
|
-
"name": "per_page",
|
|
733
|
+
"description": "Xano instance origin URL",
|
|
734
|
+
"name": "origin",
|
|
703
735
|
"required": false,
|
|
704
|
-
"default":
|
|
736
|
+
"default": "https://app.xano.com",
|
|
705
737
|
"hasDynamicHelp": false,
|
|
706
738
|
"multiple": false,
|
|
707
739
|
"type": "option"
|
|
@@ -709,7 +741,7 @@
|
|
|
709
741
|
},
|
|
710
742
|
"hasDynamicHelp": false,
|
|
711
743
|
"hiddenAliases": [],
|
|
712
|
-
"id": "
|
|
744
|
+
"id": "profile:wizard",
|
|
713
745
|
"pluginAlias": "@xano/cli",
|
|
714
746
|
"pluginName": "@xano/cli",
|
|
715
747
|
"pluginType": "core",
|
|
@@ -719,8 +751,8 @@
|
|
|
719
751
|
"relativePath": [
|
|
720
752
|
"dist",
|
|
721
753
|
"commands",
|
|
722
|
-
"
|
|
723
|
-
"
|
|
754
|
+
"profile",
|
|
755
|
+
"wizard",
|
|
724
756
|
"index.js"
|
|
725
757
|
]
|
|
726
758
|
},
|
|
@@ -777,17 +809,16 @@
|
|
|
777
809
|
"index.js"
|
|
778
810
|
]
|
|
779
811
|
},
|
|
780
|
-
"ephemeral:run:
|
|
812
|
+
"ephemeral:run:service": {
|
|
781
813
|
"aliases": [],
|
|
782
814
|
"args": {},
|
|
783
|
-
"description": "Run an ephemeral
|
|
815
|
+
"description": "Run an ephemeral service in a workspace",
|
|
784
816
|
"examples": [
|
|
785
|
-
"$ xano ephemeral:run:
|
|
786
|
-
"$ xano ephemeral:run:
|
|
787
|
-
"$ xano ephemeral:run:
|
|
788
|
-
"$ cat
|
|
789
|
-
"$ xano ephemeral:run:
|
|
790
|
-
"$ 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"
|
|
817
|
+
"$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
|
|
818
|
+
"$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
|
|
819
|
+
"$ 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",
|
|
820
|
+
"$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
|
|
821
|
+
"$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
|
|
791
822
|
],
|
|
792
823
|
"flags": {
|
|
793
824
|
"profile": {
|
|
@@ -837,7 +868,7 @@
|
|
|
837
868
|
"dependsOn": [
|
|
838
869
|
"file"
|
|
839
870
|
],
|
|
840
|
-
"description": "Open file in editor before running
|
|
871
|
+
"description": "Open file in editor before running service (requires --file)",
|
|
841
872
|
"name": "edit",
|
|
842
873
|
"required": false,
|
|
843
874
|
"allowNo": false,
|
|
@@ -856,20 +887,11 @@
|
|
|
856
887
|
"json"
|
|
857
888
|
],
|
|
858
889
|
"type": "option"
|
|
859
|
-
},
|
|
860
|
-
"args": {
|
|
861
|
-
"char": "a",
|
|
862
|
-
"description": "Path to JSON file containing input arguments",
|
|
863
|
-
"name": "args",
|
|
864
|
-
"required": false,
|
|
865
|
-
"hasDynamicHelp": false,
|
|
866
|
-
"multiple": false,
|
|
867
|
-
"type": "option"
|
|
868
890
|
}
|
|
869
891
|
},
|
|
870
892
|
"hasDynamicHelp": false,
|
|
871
893
|
"hiddenAliases": [],
|
|
872
|
-
"id": "ephemeral:run:
|
|
894
|
+
"id": "ephemeral:run:service",
|
|
873
895
|
"pluginAlias": "@xano/cli",
|
|
874
896
|
"pluginName": "@xano/cli",
|
|
875
897
|
"pluginType": "core",
|
|
@@ -881,52 +903,21 @@
|
|
|
881
903
|
"commands",
|
|
882
904
|
"ephemeral",
|
|
883
905
|
"run",
|
|
884
|
-
"
|
|
885
|
-
"index.js"
|
|
886
|
-
]
|
|
887
|
-
},
|
|
888
|
-
"profile:set-default": {
|
|
889
|
-
"aliases": [],
|
|
890
|
-
"args": {
|
|
891
|
-
"name": {
|
|
892
|
-
"description": "Profile name to set as default",
|
|
893
|
-
"name": "name",
|
|
894
|
-
"required": true
|
|
895
|
-
}
|
|
896
|
-
},
|
|
897
|
-
"description": "Set the default profile",
|
|
898
|
-
"examples": [
|
|
899
|
-
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
900
|
-
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
901
|
-
],
|
|
902
|
-
"flags": {},
|
|
903
|
-
"hasDynamicHelp": false,
|
|
904
|
-
"hiddenAliases": [],
|
|
905
|
-
"id": "profile:set-default",
|
|
906
|
-
"pluginAlias": "@xano/cli",
|
|
907
|
-
"pluginName": "@xano/cli",
|
|
908
|
-
"pluginType": "core",
|
|
909
|
-
"strict": true,
|
|
910
|
-
"enableJsonFlag": false,
|
|
911
|
-
"isESM": true,
|
|
912
|
-
"relativePath": [
|
|
913
|
-
"dist",
|
|
914
|
-
"commands",
|
|
915
|
-
"profile",
|
|
916
|
-
"set-default",
|
|
906
|
+
"service",
|
|
917
907
|
"index.js"
|
|
918
908
|
]
|
|
919
909
|
},
|
|
920
|
-
"ephemeral:run:
|
|
910
|
+
"ephemeral:run:job": {
|
|
921
911
|
"aliases": [],
|
|
922
912
|
"args": {},
|
|
923
|
-
"description": "Run an ephemeral
|
|
913
|
+
"description": "Run an ephemeral job in a workspace",
|
|
924
914
|
"examples": [
|
|
925
|
-
"$ xano ephemeral:run:
|
|
926
|
-
"$ xano ephemeral:run:
|
|
927
|
-
"$ xano ephemeral:run:
|
|
928
|
-
"$ cat
|
|
929
|
-
"$ xano ephemeral:run:
|
|
915
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
|
|
916
|
+
"$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
|
|
917
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
|
|
918
|
+
"$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
|
|
919
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
|
|
920
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
|
|
930
921
|
],
|
|
931
922
|
"flags": {
|
|
932
923
|
"profile": {
|
|
@@ -976,7 +967,7 @@
|
|
|
976
967
|
"dependsOn": [
|
|
977
968
|
"file"
|
|
978
969
|
],
|
|
979
|
-
"description": "Open file in editor before running
|
|
970
|
+
"description": "Open file in editor before running job (requires --file)",
|
|
980
971
|
"name": "edit",
|
|
981
972
|
"required": false,
|
|
982
973
|
"allowNo": false,
|
|
@@ -995,11 +986,20 @@
|
|
|
995
986
|
"json"
|
|
996
987
|
],
|
|
997
988
|
"type": "option"
|
|
989
|
+
},
|
|
990
|
+
"args": {
|
|
991
|
+
"char": "a",
|
|
992
|
+
"description": "Path to JSON file containing input arguments",
|
|
993
|
+
"name": "args",
|
|
994
|
+
"required": false,
|
|
995
|
+
"hasDynamicHelp": false,
|
|
996
|
+
"multiple": false,
|
|
997
|
+
"type": "option"
|
|
998
998
|
}
|
|
999
999
|
},
|
|
1000
1000
|
"hasDynamicHelp": false,
|
|
1001
1001
|
"hiddenAliases": [],
|
|
1002
|
-
"id": "ephemeral:run:
|
|
1002
|
+
"id": "ephemeral:run:job",
|
|
1003
1003
|
"pluginAlias": "@xano/cli",
|
|
1004
1004
|
"pluginName": "@xano/cli",
|
|
1005
1005
|
"pluginType": "core",
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
"commands",
|
|
1012
1012
|
"ephemeral",
|
|
1013
1013
|
"run",
|
|
1014
|
-
"
|
|
1014
|
+
"job",
|
|
1015
1015
|
"index.js"
|
|
1016
1016
|
]
|
|
1017
1017
|
},
|
|
@@ -1366,5 +1366,5 @@
|
|
|
1366
1366
|
]
|
|
1367
1367
|
}
|
|
1368
1368
|
},
|
|
1369
|
-
"version": "0.0.
|
|
1369
|
+
"version": "0.0.4"
|
|
1370
1370
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xano/cli",
|
|
3
3
|
"description": "XanoScript CLI for Xano's Metadata API",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"author": "Sean Montgomery",
|
|
6
6
|
"bin": {
|
|
7
7
|
"xano": "./bin/run.js"
|
|
8
8
|
},
|
|
9
|
-
"bugs": "https://github.com/
|
|
9
|
+
"bugs": "https://github.com/xano-inc/cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@oclif/core": "^4",
|
|
12
12
|
"@oclif/plugin-help": "^6",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./dist",
|
|
42
42
|
"./oclif.manifest.json"
|
|
43
43
|
],
|
|
44
|
-
"homepage": "https://github.com/
|
|
44
|
+
"homepage": "https://github.com/xano-inc/cli",
|
|
45
45
|
"keywords": [
|
|
46
46
|
"oclif"
|
|
47
47
|
],
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"repository": "
|
|
67
|
+
"repository": "xano-inc/cli",
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "shx rm -rf dist && tsc -b",
|
|
70
70
|
"dev": "./bin/dev.js",
|