@xano/cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +19 -19
  2. package/oclif.manifest.json +222 -222
  3. package/package.json +1 -1
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.4 darwin-arm64 node-v22.19.0
23
+ @xano/cli/0.0.5 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/xano-inc/cli/blob/v0.0.4/src/commands/ephemeral/run/job/index.ts)_
113
+ _See code: [src/commands/ephemeral/run/job/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/ephemeral/run/service/index.ts)_
160
+ _See code: [src/commands/ephemeral/run/service/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/function/create/index.ts)_
212
+ _See code: [src/commands/function/create/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/function/edit/index.ts)_
285
+ _See code: [src/commands/function/edit/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/function/get/index.ts)_
348
+ _See code: [src/commands/function/get/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/function/list/index.ts)_
404
+ _See code: [src/commands/function/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/create/index.ts)_
753
+ _See code: [src/commands/profile/create/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/delete/index.ts)_
784
+ _See code: [src/commands/profile/delete/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/edit/index.ts)_
824
+ _See code: [src/commands/profile/edit/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/get-default/index.ts)_
845
+ _See code: [src/commands/profile/get-default/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/list/index.ts)_
892
+ _See code: [src/commands/profile/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/set-default/index.ts)_
916
+ _See code: [src/commands/profile/set-default/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/profile/wizard/index.ts)_
944
+ _See code: [src/commands/profile/wizard/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/static_host/build/create/index.ts)_
991
+ _See code: [src/commands/static_host/build/create/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/static_host/build/get/index.ts)_
1040
+ _See code: [src/commands/static_host/build/get/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/static_host/build/list/index.ts)_
1094
+ _See code: [src/commands/static_host/build/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/static_host/list/index.ts)_
1144
+ _See code: [src/commands/static_host/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/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/xano-inc/cli/blob/v0.0.4/src/commands/workspace/list/index.ts)_
1199
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/xano-inc/cli/blob/v0.0.5/src/commands/workspace/list/index.ts)_
1200
1200
  <!-- commandsstop -->
@@ -488,6 +488,100 @@
488
488
  "index.js"
489
489
  ]
490
490
  },
491
+ "profile:edit": {
492
+ "aliases": [],
493
+ "args": {
494
+ "name": {
495
+ "description": "Profile name to edit",
496
+ "name": "name",
497
+ "required": true
498
+ }
499
+ },
500
+ "description": "Edit an existing profile configuration",
501
+ "examples": [
502
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
503
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
504
+ "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
505
+ "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
506
+ ],
507
+ "flags": {
508
+ "account_origin": {
509
+ "char": "a",
510
+ "description": "Update account origin URL",
511
+ "name": "account_origin",
512
+ "required": false,
513
+ "hasDynamicHelp": false,
514
+ "multiple": false,
515
+ "type": "option"
516
+ },
517
+ "instance_origin": {
518
+ "char": "i",
519
+ "description": "Update instance origin URL",
520
+ "name": "instance_origin",
521
+ "required": false,
522
+ "hasDynamicHelp": false,
523
+ "multiple": false,
524
+ "type": "option"
525
+ },
526
+ "access_token": {
527
+ "char": "t",
528
+ "description": "Update access token for the Xano Metadata API",
529
+ "name": "access_token",
530
+ "required": false,
531
+ "hasDynamicHelp": false,
532
+ "multiple": false,
533
+ "type": "option"
534
+ },
535
+ "workspace": {
536
+ "char": "w",
537
+ "description": "Update workspace name",
538
+ "name": "workspace",
539
+ "required": false,
540
+ "hasDynamicHelp": false,
541
+ "multiple": false,
542
+ "type": "option"
543
+ },
544
+ "branch": {
545
+ "char": "b",
546
+ "description": "Update branch name",
547
+ "name": "branch",
548
+ "required": false,
549
+ "hasDynamicHelp": false,
550
+ "multiple": false,
551
+ "type": "option"
552
+ },
553
+ "remove-workspace": {
554
+ "description": "Remove workspace from profile",
555
+ "name": "remove-workspace",
556
+ "required": false,
557
+ "allowNo": false,
558
+ "type": "boolean"
559
+ },
560
+ "remove-branch": {
561
+ "description": "Remove branch from profile",
562
+ "name": "remove-branch",
563
+ "required": false,
564
+ "allowNo": false,
565
+ "type": "boolean"
566
+ }
567
+ },
568
+ "hasDynamicHelp": false,
569
+ "hiddenAliases": [],
570
+ "id": "profile:edit",
571
+ "pluginAlias": "@xano/cli",
572
+ "pluginName": "@xano/cli",
573
+ "pluginType": "core",
574
+ "strict": true,
575
+ "enableJsonFlag": false,
576
+ "isESM": true,
577
+ "relativePath": [
578
+ "dist",
579
+ "commands",
580
+ "profile",
581
+ "edit",
582
+ "index.js"
583
+ ]
584
+ },
491
585
  "profile:create": {
492
586
  "aliases": [],
493
587
  "args": {
@@ -756,69 +850,17 @@
756
850
  "index.js"
757
851
  ]
758
852
  },
759
- "workspace:list": {
760
- "aliases": [],
761
- "args": {},
762
- "description": "List all workspaces from the Xano Metadata API",
763
- "examples": [
764
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
765
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
766
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
767
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
768
- ],
769
- "flags": {
770
- "profile": {
771
- "char": "p",
772
- "description": "Profile to use for this command",
773
- "env": "XANO_PROFILE",
774
- "name": "profile",
775
- "required": false,
776
- "hasDynamicHelp": false,
777
- "multiple": false,
778
- "type": "option"
779
- },
780
- "output": {
781
- "char": "o",
782
- "description": "Output format",
783
- "name": "output",
784
- "required": false,
785
- "default": "summary",
786
- "hasDynamicHelp": false,
787
- "multiple": false,
788
- "options": [
789
- "summary",
790
- "json"
791
- ],
792
- "type": "option"
793
- }
794
- },
795
- "hasDynamicHelp": false,
796
- "hiddenAliases": [],
797
- "id": "workspace:list",
798
- "pluginAlias": "@xano/cli",
799
- "pluginName": "@xano/cli",
800
- "pluginType": "core",
801
- "strict": true,
802
- "enableJsonFlag": false,
803
- "isESM": true,
804
- "relativePath": [
805
- "dist",
806
- "commands",
807
- "workspace",
808
- "list",
809
- "index.js"
810
- ]
811
- },
812
- "ephemeral:run:service": {
853
+ "ephemeral:run:job": {
813
854
  "aliases": [],
814
855
  "args": {},
815
- "description": "Run an ephemeral service in a workspace",
856
+ "description": "Run an ephemeral job in a workspace",
816
857
  "examples": [
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"
858
+ "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
859
+ "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
860
+ "$ 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",
861
+ "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
862
+ "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
863
+ "$ 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"
822
864
  ],
823
865
  "flags": {
824
866
  "profile": {
@@ -868,7 +910,7 @@
868
910
  "dependsOn": [
869
911
  "file"
870
912
  ],
871
- "description": "Open file in editor before running service (requires --file)",
913
+ "description": "Open file in editor before running job (requires --file)",
872
914
  "name": "edit",
873
915
  "required": false,
874
916
  "allowNo": false,
@@ -887,11 +929,20 @@
887
929
  "json"
888
930
  ],
889
931
  "type": "option"
932
+ },
933
+ "args": {
934
+ "char": "a",
935
+ "description": "Path to JSON file containing input arguments",
936
+ "name": "args",
937
+ "required": false,
938
+ "hasDynamicHelp": false,
939
+ "multiple": false,
940
+ "type": "option"
890
941
  }
891
942
  },
892
943
  "hasDynamicHelp": false,
893
944
  "hiddenAliases": [],
894
- "id": "ephemeral:run:service",
945
+ "id": "ephemeral:run:job",
895
946
  "pluginAlias": "@xano/cli",
896
947
  "pluginName": "@xano/cli",
897
948
  "pluginType": "core",
@@ -903,21 +954,20 @@
903
954
  "commands",
904
955
  "ephemeral",
905
956
  "run",
906
- "service",
957
+ "job",
907
958
  "index.js"
908
959
  ]
909
960
  },
910
- "ephemeral:run:job": {
961
+ "ephemeral:run:service": {
911
962
  "aliases": [],
912
963
  "args": {},
913
- "description": "Run an ephemeral job in a workspace",
964
+ "description": "Run an ephemeral service in a workspace",
914
965
  "examples": [
915
- "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
916
- "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
917
- "$ xano ephemeral:run:job -w 1 -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
918
- "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
919
- "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
920
- "$ xano ephemeral:run:job -w 1 -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
966
+ "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
967
+ "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
968
+ "$ 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",
969
+ "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
970
+ "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
921
971
  ],
922
972
  "flags": {
923
973
  "profile": {
@@ -967,7 +1017,7 @@
967
1017
  "dependsOn": [
968
1018
  "file"
969
1019
  ],
970
- "description": "Open file in editor before running job (requires --file)",
1020
+ "description": "Open file in editor before running service (requires --file)",
971
1021
  "name": "edit",
972
1022
  "required": false,
973
1023
  "allowNo": false,
@@ -986,20 +1036,11 @@
986
1036
  "json"
987
1037
  ],
988
1038
  "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
1039
  }
999
1040
  },
1000
1041
  "hasDynamicHelp": false,
1001
1042
  "hiddenAliases": [],
1002
- "id": "ephemeral:run:job",
1043
+ "id": "ephemeral:run:service",
1003
1044
  "pluginAlias": "@xano/cli",
1004
1045
  "pluginName": "@xano/cli",
1005
1046
  "pluginType": "core",
@@ -1011,90 +1052,49 @@
1011
1052
  "commands",
1012
1053
  "ephemeral",
1013
1054
  "run",
1014
- "job",
1055
+ "service",
1015
1056
  "index.js"
1016
1057
  ]
1017
1058
  },
1018
- "profile:edit": {
1059
+ "workspace:list": {
1019
1060
  "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",
1061
+ "args": {},
1062
+ "description": "List all workspaces from the Xano Metadata API",
1028
1063
  "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"
1064
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1065
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1066
+ "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1067
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1033
1068
  ],
1034
1069
  "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",
1070
+ "profile": {
1071
+ "char": "p",
1072
+ "description": "Profile to use for this command",
1073
+ "env": "XANO_PROFILE",
1074
+ "name": "profile",
1066
1075
  "required": false,
1067
1076
  "hasDynamicHelp": false,
1068
1077
  "multiple": false,
1069
1078
  "type": "option"
1070
1079
  },
1071
- "branch": {
1072
- "char": "b",
1073
- "description": "Update branch name",
1074
- "name": "branch",
1080
+ "output": {
1081
+ "char": "o",
1082
+ "description": "Output format",
1083
+ "name": "output",
1075
1084
  "required": false,
1085
+ "default": "summary",
1076
1086
  "hasDynamicHelp": false,
1077
1087
  "multiple": false,
1088
+ "options": [
1089
+ "summary",
1090
+ "json"
1091
+ ],
1078
1092
  "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
1093
  }
1094
1094
  },
1095
1095
  "hasDynamicHelp": false,
1096
1096
  "hiddenAliases": [],
1097
- "id": "profile:edit",
1097
+ "id": "workspace:list",
1098
1098
  "pluginAlias": "@xano/cli",
1099
1099
  "pluginName": "@xano/cli",
1100
1100
  "pluginType": "core",
@@ -1104,25 +1104,31 @@
1104
1104
  "relativePath": [
1105
1105
  "dist",
1106
1106
  "commands",
1107
- "profile",
1108
- "edit",
1107
+ "workspace",
1108
+ "list",
1109
1109
  "index.js"
1110
1110
  ]
1111
1111
  },
1112
- "static_host:build:create": {
1112
+ "static_host:build:get": {
1113
1113
  "aliases": [],
1114
1114
  "args": {
1115
1115
  "static_host": {
1116
1116
  "description": "Static Host name",
1117
1117
  "name": "static_host",
1118
1118
  "required": true
1119
+ },
1120
+ "build_id": {
1121
+ "description": "Build ID",
1122
+ "name": "build_id",
1123
+ "required": true
1119
1124
  }
1120
1125
  },
1121
- "description": "Create a new build for a static host",
1126
+ "description": "Get details of a specific build for a static host",
1122
1127
  "examples": [
1123
- "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
1124
- "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
1125
- "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
1128
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1129
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1130
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1131
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1126
1132
  ],
1127
1133
  "flags": {
1128
1134
  "profile": {
@@ -1144,33 +1150,6 @@
1144
1150
  "multiple": false,
1145
1151
  "type": "option"
1146
1152
  },
1147
- "file": {
1148
- "char": "f",
1149
- "description": "Path to zip file to upload",
1150
- "name": "file",
1151
- "required": true,
1152
- "hasDynamicHelp": false,
1153
- "multiple": false,
1154
- "type": "option"
1155
- },
1156
- "name": {
1157
- "char": "n",
1158
- "description": "Build name",
1159
- "name": "name",
1160
- "required": true,
1161
- "hasDynamicHelp": false,
1162
- "multiple": false,
1163
- "type": "option"
1164
- },
1165
- "description": {
1166
- "char": "d",
1167
- "description": "Build description",
1168
- "name": "description",
1169
- "required": false,
1170
- "hasDynamicHelp": false,
1171
- "multiple": false,
1172
- "type": "option"
1173
- },
1174
1153
  "output": {
1175
1154
  "char": "o",
1176
1155
  "description": "Output format",
@@ -1188,7 +1167,7 @@
1188
1167
  },
1189
1168
  "hasDynamicHelp": false,
1190
1169
  "hiddenAliases": [],
1191
- "id": "static_host:build:create",
1170
+ "id": "static_host:build:get",
1192
1171
  "pluginAlias": "@xano/cli",
1193
1172
  "pluginName": "@xano/cli",
1194
1173
  "pluginType": "core",
@@ -1200,30 +1179,25 @@
1200
1179
  "commands",
1201
1180
  "static_host",
1202
1181
  "build",
1203
- "create",
1182
+ "get",
1204
1183
  "index.js"
1205
1184
  ]
1206
1185
  },
1207
- "static_host:build:get": {
1186
+ "static_host:build:list": {
1208
1187
  "aliases": [],
1209
1188
  "args": {
1210
1189
  "static_host": {
1211
1190
  "description": "Static Host name",
1212
1191
  "name": "static_host",
1213
1192
  "required": true
1214
- },
1215
- "build_id": {
1216
- "description": "Build ID",
1217
- "name": "build_id",
1218
- "required": true
1219
1193
  }
1220
1194
  },
1221
- "description": "Get details of a specific build for a static host",
1195
+ "description": "List all builds for a static host",
1222
1196
  "examples": [
1223
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1224
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1225
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1226
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1197
+ "$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
1198
+ "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
1199
+ "$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
1200
+ "$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
1227
1201
  ],
1228
1202
  "flags": {
1229
1203
  "profile": {
@@ -1258,11 +1232,29 @@
1258
1232
  "json"
1259
1233
  ],
1260
1234
  "type": "option"
1235
+ },
1236
+ "page": {
1237
+ "description": "Page number for pagination",
1238
+ "name": "page",
1239
+ "required": false,
1240
+ "default": 1,
1241
+ "hasDynamicHelp": false,
1242
+ "multiple": false,
1243
+ "type": "option"
1244
+ },
1245
+ "per_page": {
1246
+ "description": "Number of results per page",
1247
+ "name": "per_page",
1248
+ "required": false,
1249
+ "default": 50,
1250
+ "hasDynamicHelp": false,
1251
+ "multiple": false,
1252
+ "type": "option"
1261
1253
  }
1262
1254
  },
1263
1255
  "hasDynamicHelp": false,
1264
1256
  "hiddenAliases": [],
1265
- "id": "static_host:build:get",
1257
+ "id": "static_host:build:list",
1266
1258
  "pluginAlias": "@xano/cli",
1267
1259
  "pluginName": "@xano/cli",
1268
1260
  "pluginType": "core",
@@ -1274,11 +1266,11 @@
1274
1266
  "commands",
1275
1267
  "static_host",
1276
1268
  "build",
1277
- "get",
1269
+ "list",
1278
1270
  "index.js"
1279
1271
  ]
1280
1272
  },
1281
- "static_host:build:list": {
1273
+ "static_host:build:create": {
1282
1274
  "aliases": [],
1283
1275
  "args": {
1284
1276
  "static_host": {
@@ -1287,12 +1279,11 @@
1287
1279
  "required": true
1288
1280
  }
1289
1281
  },
1290
- "description": "List all builds for a static host",
1282
+ "description": "Create a new build for a static host",
1291
1283
  "examples": [
1292
- "$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
1293
- "$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
1294
- "$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
1295
- "$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
1284
+ "$ 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",
1285
+ "$ 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",
1286
+ "$ 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"
1296
1287
  ],
1297
1288
  "flags": {
1298
1289
  "profile": {
@@ -1314,42 +1305,51 @@
1314
1305
  "multiple": false,
1315
1306
  "type": "option"
1316
1307
  },
1317
- "output": {
1318
- "char": "o",
1319
- "description": "Output format",
1320
- "name": "output",
1321
- "required": false,
1322
- "default": "summary",
1308
+ "file": {
1309
+ "char": "f",
1310
+ "description": "Path to zip file to upload",
1311
+ "name": "file",
1312
+ "required": true,
1323
1313
  "hasDynamicHelp": false,
1324
1314
  "multiple": false,
1325
- "options": [
1326
- "summary",
1327
- "json"
1328
- ],
1329
1315
  "type": "option"
1330
1316
  },
1331
- "page": {
1332
- "description": "Page number for pagination",
1333
- "name": "page",
1317
+ "name": {
1318
+ "char": "n",
1319
+ "description": "Build name",
1320
+ "name": "name",
1321
+ "required": true,
1322
+ "hasDynamicHelp": false,
1323
+ "multiple": false,
1324
+ "type": "option"
1325
+ },
1326
+ "description": {
1327
+ "char": "d",
1328
+ "description": "Build description",
1329
+ "name": "description",
1334
1330
  "required": false,
1335
- "default": 1,
1336
1331
  "hasDynamicHelp": false,
1337
1332
  "multiple": false,
1338
1333
  "type": "option"
1339
1334
  },
1340
- "per_page": {
1341
- "description": "Number of results per page",
1342
- "name": "per_page",
1335
+ "output": {
1336
+ "char": "o",
1337
+ "description": "Output format",
1338
+ "name": "output",
1343
1339
  "required": false,
1344
- "default": 50,
1340
+ "default": "summary",
1345
1341
  "hasDynamicHelp": false,
1346
1342
  "multiple": false,
1343
+ "options": [
1344
+ "summary",
1345
+ "json"
1346
+ ],
1347
1347
  "type": "option"
1348
1348
  }
1349
1349
  },
1350
1350
  "hasDynamicHelp": false,
1351
1351
  "hiddenAliases": [],
1352
- "id": "static_host:build:list",
1352
+ "id": "static_host:build:create",
1353
1353
  "pluginAlias": "@xano/cli",
1354
1354
  "pluginName": "@xano/cli",
1355
1355
  "pluginType": "core",
@@ -1361,10 +1361,10 @@
1361
1361
  "commands",
1362
1362
  "static_host",
1363
1363
  "build",
1364
- "list",
1364
+ "create",
1365
1365
  "index.js"
1366
1366
  ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.4"
1369
+ "version": "0.0.5"
1370
1370
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xano/cli",
3
3
  "description": "XanoScript CLI for Xano's Metadata API",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "author": "Sean Montgomery",
6
6
  "bin": {
7
7
  "xano": "./bin/run.js"