@xano/cli 0.0.2 → 0.0.3
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 +218 -218
- package/package.json +3 -3
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.3 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/git/xano-cli/blob/v0.0.
|
|
113
|
+
_See code: [src/commands/ephemeral/run/job/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
160
|
+
_See code: [src/commands/ephemeral/run/service/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
212
|
+
_See code: [src/commands/function/create/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
285
|
+
_See code: [src/commands/function/edit/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
348
|
+
_See code: [src/commands/function/get/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
404
|
+
_See code: [src/commands/function/list/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
753
|
+
_See code: [src/commands/profile/create/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
784
|
+
_See code: [src/commands/profile/delete/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
824
|
+
_See code: [src/commands/profile/edit/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
845
|
+
_See code: [src/commands/profile/get-default/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
892
|
+
_See code: [src/commands/profile/list/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
916
|
+
_See code: [src/commands/profile/set-default/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
944
|
+
_See code: [src/commands/profile/wizard/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
991
|
+
_See code: [src/commands/static_host/build/create/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
1040
|
+
_See code: [src/commands/static_host/build/get/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
1094
|
+
_See code: [src/commands/static_host/build/list/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
1144
|
+
_See code: [src/commands/static_host/list/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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/git/xano-cli/blob/v0.0.
|
|
1199
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/git/xano-cli/blob/v0.0.3/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
|
@@ -495,6 +495,42 @@
|
|
|
495
495
|
"index.js"
|
|
496
496
|
]
|
|
497
497
|
},
|
|
498
|
+
"profile:list": {
|
|
499
|
+
"aliases": [],
|
|
500
|
+
"args": {},
|
|
501
|
+
"description": "List all available profile configurations",
|
|
502
|
+
"examples": [
|
|
503
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
504
|
+
"$ 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",
|
|
505
|
+
"$ 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"
|
|
506
|
+
],
|
|
507
|
+
"flags": {
|
|
508
|
+
"details": {
|
|
509
|
+
"char": "d",
|
|
510
|
+
"description": "Show detailed information for each profile",
|
|
511
|
+
"name": "details",
|
|
512
|
+
"required": false,
|
|
513
|
+
"allowNo": false,
|
|
514
|
+
"type": "boolean"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"hasDynamicHelp": false,
|
|
518
|
+
"hiddenAliases": [],
|
|
519
|
+
"id": "profile:list",
|
|
520
|
+
"pluginAlias": "@xano/cli",
|
|
521
|
+
"pluginName": "@xano/cli",
|
|
522
|
+
"pluginType": "core",
|
|
523
|
+
"strict": true,
|
|
524
|
+
"enableJsonFlag": false,
|
|
525
|
+
"isESM": true,
|
|
526
|
+
"relativePath": [
|
|
527
|
+
"dist",
|
|
528
|
+
"commands",
|
|
529
|
+
"profile",
|
|
530
|
+
"list",
|
|
531
|
+
"index.js"
|
|
532
|
+
]
|
|
533
|
+
},
|
|
498
534
|
"profile:delete": {
|
|
499
535
|
"aliases": [],
|
|
500
536
|
"args": {
|
|
@@ -563,20 +599,110 @@
|
|
|
563
599
|
"index.js"
|
|
564
600
|
]
|
|
565
601
|
},
|
|
566
|
-
"profile:
|
|
602
|
+
"profile:set-default": {
|
|
567
603
|
"aliases": [],
|
|
568
|
-
"args": {
|
|
569
|
-
|
|
604
|
+
"args": {
|
|
605
|
+
"name": {
|
|
606
|
+
"description": "Profile name to set as default",
|
|
607
|
+
"name": "name",
|
|
608
|
+
"required": true
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"description": "Set the default profile",
|
|
570
612
|
"examples": [
|
|
571
|
-
"$ xano profile:
|
|
572
|
-
"$ xano profile:
|
|
573
|
-
|
|
613
|
+
"$ xano profile:set-default production\nDefault profile set to 'production'\n",
|
|
614
|
+
"$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
|
|
615
|
+
],
|
|
616
|
+
"flags": {},
|
|
617
|
+
"hasDynamicHelp": false,
|
|
618
|
+
"hiddenAliases": [],
|
|
619
|
+
"id": "profile:set-default",
|
|
620
|
+
"pluginAlias": "@xano/cli",
|
|
621
|
+
"pluginName": "@xano/cli",
|
|
622
|
+
"pluginType": "core",
|
|
623
|
+
"strict": true,
|
|
624
|
+
"enableJsonFlag": false,
|
|
625
|
+
"isESM": true,
|
|
626
|
+
"relativePath": [
|
|
627
|
+
"dist",
|
|
628
|
+
"commands",
|
|
629
|
+
"profile",
|
|
630
|
+
"set-default",
|
|
631
|
+
"index.js"
|
|
632
|
+
]
|
|
633
|
+
},
|
|
634
|
+
"profile:edit": {
|
|
635
|
+
"aliases": [],
|
|
636
|
+
"args": {
|
|
637
|
+
"name": {
|
|
638
|
+
"description": "Profile name to edit",
|
|
639
|
+
"name": "name",
|
|
640
|
+
"required": true
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"description": "Edit an existing profile configuration",
|
|
644
|
+
"examples": [
|
|
645
|
+
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
646
|
+
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
647
|
+
"$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
|
|
648
|
+
"$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
|
|
574
649
|
],
|
|
575
650
|
"flags": {
|
|
576
|
-
"
|
|
577
|
-
"char": "
|
|
578
|
-
"description": "
|
|
579
|
-
"name": "
|
|
651
|
+
"account_origin": {
|
|
652
|
+
"char": "a",
|
|
653
|
+
"description": "Update account origin URL",
|
|
654
|
+
"name": "account_origin",
|
|
655
|
+
"required": false,
|
|
656
|
+
"hasDynamicHelp": false,
|
|
657
|
+
"multiple": false,
|
|
658
|
+
"type": "option"
|
|
659
|
+
},
|
|
660
|
+
"instance_origin": {
|
|
661
|
+
"char": "i",
|
|
662
|
+
"description": "Update instance origin URL",
|
|
663
|
+
"name": "instance_origin",
|
|
664
|
+
"required": false,
|
|
665
|
+
"hasDynamicHelp": false,
|
|
666
|
+
"multiple": false,
|
|
667
|
+
"type": "option"
|
|
668
|
+
},
|
|
669
|
+
"access_token": {
|
|
670
|
+
"char": "t",
|
|
671
|
+
"description": "Update access token for the Xano Metadata API",
|
|
672
|
+
"name": "access_token",
|
|
673
|
+
"required": false,
|
|
674
|
+
"hasDynamicHelp": false,
|
|
675
|
+
"multiple": false,
|
|
676
|
+
"type": "option"
|
|
677
|
+
},
|
|
678
|
+
"workspace": {
|
|
679
|
+
"char": "w",
|
|
680
|
+
"description": "Update workspace name",
|
|
681
|
+
"name": "workspace",
|
|
682
|
+
"required": false,
|
|
683
|
+
"hasDynamicHelp": false,
|
|
684
|
+
"multiple": false,
|
|
685
|
+
"type": "option"
|
|
686
|
+
},
|
|
687
|
+
"branch": {
|
|
688
|
+
"char": "b",
|
|
689
|
+
"description": "Update branch name",
|
|
690
|
+
"name": "branch",
|
|
691
|
+
"required": false,
|
|
692
|
+
"hasDynamicHelp": false,
|
|
693
|
+
"multiple": false,
|
|
694
|
+
"type": "option"
|
|
695
|
+
},
|
|
696
|
+
"remove-workspace": {
|
|
697
|
+
"description": "Remove workspace from profile",
|
|
698
|
+
"name": "remove-workspace",
|
|
699
|
+
"required": false,
|
|
700
|
+
"allowNo": false,
|
|
701
|
+
"type": "boolean"
|
|
702
|
+
},
|
|
703
|
+
"remove-branch": {
|
|
704
|
+
"description": "Remove branch from profile",
|
|
705
|
+
"name": "remove-branch",
|
|
580
706
|
"required": false,
|
|
581
707
|
"allowNo": false,
|
|
582
708
|
"type": "boolean"
|
|
@@ -584,7 +710,7 @@
|
|
|
584
710
|
},
|
|
585
711
|
"hasDynamicHelp": false,
|
|
586
712
|
"hiddenAliases": [],
|
|
587
|
-
"id": "profile:
|
|
713
|
+
"id": "profile:edit",
|
|
588
714
|
"pluginAlias": "@xano/cli",
|
|
589
715
|
"pluginName": "@xano/cli",
|
|
590
716
|
"pluginType": "core",
|
|
@@ -595,7 +721,7 @@
|
|
|
595
721
|
"dist",
|
|
596
722
|
"commands",
|
|
597
723
|
"profile",
|
|
598
|
-
"
|
|
724
|
+
"edit",
|
|
599
725
|
"index.js"
|
|
600
726
|
]
|
|
601
727
|
},
|
|
@@ -777,17 +903,20 @@
|
|
|
777
903
|
"index.js"
|
|
778
904
|
]
|
|
779
905
|
},
|
|
780
|
-
"
|
|
906
|
+
"static_host:build:create": {
|
|
781
907
|
"aliases": [],
|
|
782
|
-
"args": {
|
|
783
|
-
|
|
908
|
+
"args": {
|
|
909
|
+
"static_host": {
|
|
910
|
+
"description": "Static Host name",
|
|
911
|
+
"name": "static_host",
|
|
912
|
+
"required": true
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"description": "Create a new build for a static host",
|
|
784
916
|
"examples": [
|
|
785
|
-
"$ xano
|
|
786
|
-
"$ xano
|
|
787
|
-
"$ xano
|
|
788
|
-
"$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
|
|
789
|
-
"$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
|
|
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"
|
|
917
|
+
"$ 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",
|
|
918
|
+
"$ 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",
|
|
919
|
+
"$ 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"
|
|
791
920
|
],
|
|
792
921
|
"flags": {
|
|
793
922
|
"profile": {
|
|
@@ -811,37 +940,30 @@
|
|
|
811
940
|
},
|
|
812
941
|
"file": {
|
|
813
942
|
"char": "f",
|
|
814
|
-
"description": "Path to file
|
|
815
|
-
"exclusive": [
|
|
816
|
-
"stdin"
|
|
817
|
-
],
|
|
943
|
+
"description": "Path to zip file to upload",
|
|
818
944
|
"name": "file",
|
|
819
|
-
"required":
|
|
945
|
+
"required": true,
|
|
820
946
|
"hasDynamicHelp": false,
|
|
821
947
|
"multiple": false,
|
|
822
948
|
"type": "option"
|
|
823
949
|
},
|
|
824
|
-
"
|
|
825
|
-
"char": "
|
|
826
|
-
"description": "
|
|
827
|
-
"
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
"
|
|
831
|
-
"
|
|
832
|
-
"allowNo": false,
|
|
833
|
-
"type": "boolean"
|
|
950
|
+
"name": {
|
|
951
|
+
"char": "n",
|
|
952
|
+
"description": "Build name",
|
|
953
|
+
"name": "name",
|
|
954
|
+
"required": true,
|
|
955
|
+
"hasDynamicHelp": false,
|
|
956
|
+
"multiple": false,
|
|
957
|
+
"type": "option"
|
|
834
958
|
},
|
|
835
|
-
"
|
|
836
|
-
"char": "
|
|
837
|
-
"
|
|
838
|
-
|
|
839
|
-
],
|
|
840
|
-
"description": "Open file in editor before running job (requires --file)",
|
|
841
|
-
"name": "edit",
|
|
959
|
+
"description": {
|
|
960
|
+
"char": "d",
|
|
961
|
+
"description": "Build description",
|
|
962
|
+
"name": "description",
|
|
842
963
|
"required": false,
|
|
843
|
-
"
|
|
844
|
-
"
|
|
964
|
+
"hasDynamicHelp": false,
|
|
965
|
+
"multiple": false,
|
|
966
|
+
"type": "option"
|
|
845
967
|
},
|
|
846
968
|
"output": {
|
|
847
969
|
"char": "o",
|
|
@@ -856,53 +978,11 @@
|
|
|
856
978
|
"json"
|
|
857
979
|
],
|
|
858
980
|
"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
981
|
}
|
|
869
982
|
},
|
|
870
983
|
"hasDynamicHelp": false,
|
|
871
984
|
"hiddenAliases": [],
|
|
872
|
-
"id": "
|
|
873
|
-
"pluginAlias": "@xano/cli",
|
|
874
|
-
"pluginName": "@xano/cli",
|
|
875
|
-
"pluginType": "core",
|
|
876
|
-
"strict": true,
|
|
877
|
-
"enableJsonFlag": false,
|
|
878
|
-
"isESM": true,
|
|
879
|
-
"relativePath": [
|
|
880
|
-
"dist",
|
|
881
|
-
"commands",
|
|
882
|
-
"ephemeral",
|
|
883
|
-
"run",
|
|
884
|
-
"job",
|
|
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",
|
|
985
|
+
"id": "static_host:build:create",
|
|
906
986
|
"pluginAlias": "@xano/cli",
|
|
907
987
|
"pluginName": "@xano/cli",
|
|
908
988
|
"pluginType": "core",
|
|
@@ -912,8 +992,9 @@
|
|
|
912
992
|
"relativePath": [
|
|
913
993
|
"dist",
|
|
914
994
|
"commands",
|
|
915
|
-
"
|
|
916
|
-
"
|
|
995
|
+
"static_host",
|
|
996
|
+
"build",
|
|
997
|
+
"create",
|
|
917
998
|
"index.js"
|
|
918
999
|
]
|
|
919
1000
|
},
|
|
@@ -1015,114 +1096,17 @@
|
|
|
1015
1096
|
"index.js"
|
|
1016
1097
|
]
|
|
1017
1098
|
},
|
|
1018
|
-
"
|
|
1019
|
-
"aliases": [],
|
|
1020
|
-
"args": {
|
|
1021
|
-
"name": {
|
|
1022
|
-
"description": "Profile name to edit",
|
|
1023
|
-
"name": "name",
|
|
1024
|
-
"required": true
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
"description": "Edit an existing profile configuration",
|
|
1028
|
-
"examples": [
|
|
1029
|
-
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1030
|
-
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1031
|
-
"$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1032
|
-
"$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
|
|
1033
|
-
],
|
|
1034
|
-
"flags": {
|
|
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",
|
|
1057
|
-
"required": false,
|
|
1058
|
-
"hasDynamicHelp": false,
|
|
1059
|
-
"multiple": false,
|
|
1060
|
-
"type": "option"
|
|
1061
|
-
},
|
|
1062
|
-
"workspace": {
|
|
1063
|
-
"char": "w",
|
|
1064
|
-
"description": "Update workspace name",
|
|
1065
|
-
"name": "workspace",
|
|
1066
|
-
"required": false,
|
|
1067
|
-
"hasDynamicHelp": false,
|
|
1068
|
-
"multiple": false,
|
|
1069
|
-
"type": "option"
|
|
1070
|
-
},
|
|
1071
|
-
"branch": {
|
|
1072
|
-
"char": "b",
|
|
1073
|
-
"description": "Update branch name",
|
|
1074
|
-
"name": "branch",
|
|
1075
|
-
"required": false,
|
|
1076
|
-
"hasDynamicHelp": false,
|
|
1077
|
-
"multiple": false,
|
|
1078
|
-
"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
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
"hasDynamicHelp": false,
|
|
1096
|
-
"hiddenAliases": [],
|
|
1097
|
-
"id": "profile:edit",
|
|
1098
|
-
"pluginAlias": "@xano/cli",
|
|
1099
|
-
"pluginName": "@xano/cli",
|
|
1100
|
-
"pluginType": "core",
|
|
1101
|
-
"strict": true,
|
|
1102
|
-
"enableJsonFlag": false,
|
|
1103
|
-
"isESM": true,
|
|
1104
|
-
"relativePath": [
|
|
1105
|
-
"dist",
|
|
1106
|
-
"commands",
|
|
1107
|
-
"profile",
|
|
1108
|
-
"edit",
|
|
1109
|
-
"index.js"
|
|
1110
|
-
]
|
|
1111
|
-
},
|
|
1112
|
-
"static_host:build:create": {
|
|
1099
|
+
"ephemeral:run:job": {
|
|
1113
1100
|
"aliases": [],
|
|
1114
|
-
"args": {
|
|
1115
|
-
|
|
1116
|
-
"description": "Static Host name",
|
|
1117
|
-
"name": "static_host",
|
|
1118
|
-
"required": true
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
"description": "Create a new build for a static host",
|
|
1101
|
+
"args": {},
|
|
1102
|
+
"description": "Run an ephemeral job in a workspace",
|
|
1122
1103
|
"examples": [
|
|
1123
|
-
"$ xano
|
|
1124
|
-
"$ xano
|
|
1125
|
-
"$ xano
|
|
1104
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
|
|
1105
|
+
"$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
|
|
1106
|
+
"$ 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",
|
|
1107
|
+
"$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
|
|
1108
|
+
"$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
|
|
1109
|
+
"$ 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"
|
|
1126
1110
|
],
|
|
1127
1111
|
"flags": {
|
|
1128
1112
|
"profile": {
|
|
@@ -1146,30 +1130,37 @@
|
|
|
1146
1130
|
},
|
|
1147
1131
|
"file": {
|
|
1148
1132
|
"char": "f",
|
|
1149
|
-
"description": "Path to
|
|
1133
|
+
"description": "Path to file containing XanoScript code",
|
|
1134
|
+
"exclusive": [
|
|
1135
|
+
"stdin"
|
|
1136
|
+
],
|
|
1150
1137
|
"name": "file",
|
|
1151
|
-
"required":
|
|
1138
|
+
"required": false,
|
|
1152
1139
|
"hasDynamicHelp": false,
|
|
1153
1140
|
"multiple": false,
|
|
1154
1141
|
"type": "option"
|
|
1155
1142
|
},
|
|
1156
|
-
"
|
|
1157
|
-
"char": "
|
|
1158
|
-
"description": "
|
|
1159
|
-
"
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
"
|
|
1163
|
-
"
|
|
1143
|
+
"stdin": {
|
|
1144
|
+
"char": "s",
|
|
1145
|
+
"description": "Read XanoScript code from stdin",
|
|
1146
|
+
"exclusive": [
|
|
1147
|
+
"file"
|
|
1148
|
+
],
|
|
1149
|
+
"name": "stdin",
|
|
1150
|
+
"required": false,
|
|
1151
|
+
"allowNo": false,
|
|
1152
|
+
"type": "boolean"
|
|
1164
1153
|
},
|
|
1165
|
-
"
|
|
1166
|
-
"char": "
|
|
1167
|
-
"
|
|
1168
|
-
|
|
1154
|
+
"edit": {
|
|
1155
|
+
"char": "e",
|
|
1156
|
+
"dependsOn": [
|
|
1157
|
+
"file"
|
|
1158
|
+
],
|
|
1159
|
+
"description": "Open file in editor before running job (requires --file)",
|
|
1160
|
+
"name": "edit",
|
|
1169
1161
|
"required": false,
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1172
|
-
"type": "option"
|
|
1162
|
+
"allowNo": false,
|
|
1163
|
+
"type": "boolean"
|
|
1173
1164
|
},
|
|
1174
1165
|
"output": {
|
|
1175
1166
|
"char": "o",
|
|
@@ -1184,11 +1175,20 @@
|
|
|
1184
1175
|
"json"
|
|
1185
1176
|
],
|
|
1186
1177
|
"type": "option"
|
|
1178
|
+
},
|
|
1179
|
+
"args": {
|
|
1180
|
+
"char": "a",
|
|
1181
|
+
"description": "Path to JSON file containing input arguments",
|
|
1182
|
+
"name": "args",
|
|
1183
|
+
"required": false,
|
|
1184
|
+
"hasDynamicHelp": false,
|
|
1185
|
+
"multiple": false,
|
|
1186
|
+
"type": "option"
|
|
1187
1187
|
}
|
|
1188
1188
|
},
|
|
1189
1189
|
"hasDynamicHelp": false,
|
|
1190
1190
|
"hiddenAliases": [],
|
|
1191
|
-
"id": "
|
|
1191
|
+
"id": "ephemeral:run:job",
|
|
1192
1192
|
"pluginAlias": "@xano/cli",
|
|
1193
1193
|
"pluginName": "@xano/cli",
|
|
1194
1194
|
"pluginType": "core",
|
|
@@ -1198,9 +1198,9 @@
|
|
|
1198
1198
|
"relativePath": [
|
|
1199
1199
|
"dist",
|
|
1200
1200
|
"commands",
|
|
1201
|
-
"
|
|
1202
|
-
"
|
|
1203
|
-
"
|
|
1201
|
+
"ephemeral",
|
|
1202
|
+
"run",
|
|
1203
|
+
"job",
|
|
1204
1204
|
"index.js"
|
|
1205
1205
|
]
|
|
1206
1206
|
},
|
|
@@ -1366,5 +1366,5 @@
|
|
|
1366
1366
|
]
|
|
1367
1367
|
}
|
|
1368
1368
|
},
|
|
1369
|
-
"version": "0.0.
|
|
1369
|
+
"version": "0.0.3"
|
|
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.3",
|
|
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
|
],
|