@xano/cli 0.0.3 → 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.
Files changed (3) hide show
  1. package/README.md +19 -19
  2. package/oclif.manifest.json +296 -296
  3. package/package.json +2 -2
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.3 darwin-arm64 node-v22.19.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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/src/commands/function/create/index.ts)_
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/git/xano-cli/blob/v0.0.3/src/commands/function/edit/index.ts)_
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/git/xano-cli/blob/v0.0.3/src/commands/function/get/index.ts)_
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/git/xano-cli/blob/v0.0.3/src/commands/function/list/index.ts)_
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/git/xano-cli/blob/v0.0.3/src/commands/profile/create/index.ts)_
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/git/xano-cli/blob/v0.0.3/src/commands/profile/delete/index.ts)_
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/git/xano-cli/blob/v0.0.3/src/commands/profile/edit/index.ts)_
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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/src/commands/profile/list/index.ts)_
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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/src/commands/profile/wizard/index.ts)_
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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/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.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/git/xano-cli/blob/v0.0.3/src/commands/workspace/list/index.ts)_
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 -->
@@ -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": {
@@ -495,42 +575,6 @@
495
575
  "index.js"
496
576
  ]
497
577
  },
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
- },
534
578
  "profile:delete": {
535
579
  "aliases": [],
536
580
  "args": {
@@ -599,24 +643,28 @@
599
643
  "index.js"
600
644
  ]
601
645
  },
602
- "profile:set-default": {
646
+ "profile:list": {
603
647
  "aliases": [],
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",
648
+ "args": {},
649
+ "description": "List all available profile configurations",
612
650
  "examples": [
613
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
614
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
651
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
652
+ "$ 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",
653
+ "$ 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"
615
654
  ],
616
- "flags": {},
655
+ "flags": {
656
+ "details": {
657
+ "char": "d",
658
+ "description": "Show detailed information for each profile",
659
+ "name": "details",
660
+ "required": false,
661
+ "allowNo": false,
662
+ "type": "boolean"
663
+ }
664
+ },
617
665
  "hasDynamicHelp": false,
618
666
  "hiddenAliases": [],
619
- "id": "profile:set-default",
667
+ "id": "profile:list",
620
668
  "pluginAlias": "@xano/cli",
621
669
  "pluginName": "@xano/cli",
622
670
  "pluginType": "core",
@@ -627,90 +675,28 @@
627
675
  "dist",
628
676
  "commands",
629
677
  "profile",
630
- "set-default",
678
+ "list",
631
679
  "index.js"
632
680
  ]
633
681
  },
634
- "profile:edit": {
682
+ "profile:set-default": {
635
683
  "aliases": [],
636
684
  "args": {
637
685
  "name": {
638
- "description": "Profile name to edit",
686
+ "description": "Profile name to set as default",
639
687
  "name": "name",
640
688
  "required": true
641
689
  }
642
690
  },
643
- "description": "Edit an existing profile configuration",
691
+ "description": "Set the default profile",
644
692
  "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"
693
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
694
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
649
695
  ],
650
- "flags": {
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",
706
- "required": false,
707
- "allowNo": false,
708
- "type": "boolean"
709
- }
710
- },
696
+ "flags": {},
711
697
  "hasDynamicHelp": false,
712
698
  "hiddenAliases": [],
713
- "id": "profile:edit",
699
+ "id": "profile:set-default",
714
700
  "pluginAlias": "@xano/cli",
715
701
  "pluginName": "@xano/cli",
716
702
  "pluginType": "core",
@@ -721,7 +707,7 @@
721
707
  "dist",
722
708
  "commands",
723
709
  "profile",
724
- "edit",
710
+ "set-default",
725
711
  "index.js"
726
712
  ]
727
713
  },
@@ -770,95 +756,15 @@
770
756
  "index.js"
771
757
  ]
772
758
  },
773
- "static_host:list": {
759
+ "workspace:list": {
774
760
  "aliases": [],
775
761
  "args": {},
776
- "description": "List all static hosts in a workspace from the Xano Metadata API",
762
+ "description": "List all workspaces from the Xano Metadata API",
777
763
  "examples": [
778
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
779
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
780
- "$ 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",
781
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
782
- ],
783
- "flags": {
784
- "profile": {
785
- "char": "p",
786
- "description": "Profile to use for this command",
787
- "env": "XANO_PROFILE",
788
- "name": "profile",
789
- "required": false,
790
- "hasDynamicHelp": false,
791
- "multiple": false,
792
- "type": "option"
793
- },
794
- "workspace": {
795
- "char": "w",
796
- "description": "Workspace ID (optional if set in profile)",
797
- "name": "workspace",
798
- "required": false,
799
- "hasDynamicHelp": false,
800
- "multiple": false,
801
- "type": "option"
802
- },
803
- "output": {
804
- "char": "o",
805
- "description": "Output format",
806
- "name": "output",
807
- "required": false,
808
- "default": "summary",
809
- "hasDynamicHelp": false,
810
- "multiple": false,
811
- "options": [
812
- "summary",
813
- "json"
814
- ],
815
- "type": "option"
816
- },
817
- "page": {
818
- "description": "Page number for pagination",
819
- "name": "page",
820
- "required": false,
821
- "default": 1,
822
- "hasDynamicHelp": false,
823
- "multiple": false,
824
- "type": "option"
825
- },
826
- "per_page": {
827
- "description": "Number of results per page",
828
- "name": "per_page",
829
- "required": false,
830
- "default": 50,
831
- "hasDynamicHelp": false,
832
- "multiple": false,
833
- "type": "option"
834
- }
835
- },
836
- "hasDynamicHelp": false,
837
- "hiddenAliases": [],
838
- "id": "static_host:list",
839
- "pluginAlias": "@xano/cli",
840
- "pluginName": "@xano/cli",
841
- "pluginType": "core",
842
- "strict": true,
843
- "enableJsonFlag": false,
844
- "isESM": true,
845
- "relativePath": [
846
- "dist",
847
- "commands",
848
- "static_host",
849
- "list",
850
- "index.js"
851
- ]
852
- },
853
- "workspace:list": {
854
- "aliases": [],
855
- "args": {},
856
- "description": "List all workspaces from the Xano Metadata API",
857
- "examples": [
858
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
859
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
860
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
861
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
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"
862
768
  ],
863
769
  "flags": {
864
770
  "profile": {
@@ -903,20 +809,16 @@
903
809
  "index.js"
904
810
  ]
905
811
  },
906
- "static_host:build:create": {
812
+ "ephemeral:run:service": {
907
813
  "aliases": [],
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",
814
+ "args": {},
815
+ "description": "Run an ephemeral service in a workspace",
916
816
  "examples": [
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"
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"
920
822
  ],
921
823
  "flags": {
922
824
  "profile": {
@@ -940,30 +842,37 @@
940
842
  },
941
843
  "file": {
942
844
  "char": "f",
943
- "description": "Path to zip file to upload",
845
+ "description": "Path to file containing XanoScript code",
846
+ "exclusive": [
847
+ "stdin"
848
+ ],
944
849
  "name": "file",
945
- "required": true,
850
+ "required": false,
946
851
  "hasDynamicHelp": false,
947
852
  "multiple": false,
948
853
  "type": "option"
949
854
  },
950
- "name": {
951
- "char": "n",
952
- "description": "Build name",
953
- "name": "name",
954
- "required": true,
955
- "hasDynamicHelp": false,
956
- "multiple": false,
957
- "type": "option"
855
+ "stdin": {
856
+ "char": "s",
857
+ "description": "Read XanoScript code from stdin",
858
+ "exclusive": [
859
+ "file"
860
+ ],
861
+ "name": "stdin",
862
+ "required": false,
863
+ "allowNo": false,
864
+ "type": "boolean"
958
865
  },
959
- "description": {
960
- "char": "d",
961
- "description": "Build description",
962
- "name": "description",
866
+ "edit": {
867
+ "char": "e",
868
+ "dependsOn": [
869
+ "file"
870
+ ],
871
+ "description": "Open file in editor before running service (requires --file)",
872
+ "name": "edit",
963
873
  "required": false,
964
- "hasDynamicHelp": false,
965
- "multiple": false,
966
- "type": "option"
874
+ "allowNo": false,
875
+ "type": "boolean"
967
876
  },
968
877
  "output": {
969
878
  "char": "o",
@@ -982,7 +891,7 @@
982
891
  },
983
892
  "hasDynamicHelp": false,
984
893
  "hiddenAliases": [],
985
- "id": "static_host:build:create",
894
+ "id": "ephemeral:run:service",
986
895
  "pluginAlias": "@xano/cli",
987
896
  "pluginName": "@xano/cli",
988
897
  "pluginType": "core",
@@ -992,22 +901,23 @@
992
901
  "relativePath": [
993
902
  "dist",
994
903
  "commands",
995
- "static_host",
996
- "build",
997
- "create",
904
+ "ephemeral",
905
+ "run",
906
+ "service",
998
907
  "index.js"
999
908
  ]
1000
909
  },
1001
- "ephemeral:run:service": {
910
+ "ephemeral:run:job": {
1002
911
  "aliases": [],
1003
912
  "args": {},
1004
- "description": "Run an ephemeral service in a workspace",
913
+ "description": "Run an ephemeral job in a workspace",
1005
914
  "examples": [
1006
- "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
1007
- "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
1008
- "$ 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",
1009
- "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
1010
- "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
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"
1011
921
  ],
1012
922
  "flags": {
1013
923
  "profile": {
@@ -1057,7 +967,7 @@
1057
967
  "dependsOn": [
1058
968
  "file"
1059
969
  ],
1060
- "description": "Open file in editor before running service (requires --file)",
970
+ "description": "Open file in editor before running job (requires --file)",
1061
971
  "name": "edit",
1062
972
  "required": false,
1063
973
  "allowNo": false,
@@ -1076,11 +986,20 @@
1076
986
  "json"
1077
987
  ],
1078
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"
1079
998
  }
1080
999
  },
1081
1000
  "hasDynamicHelp": false,
1082
1001
  "hiddenAliases": [],
1083
- "id": "ephemeral:run:service",
1002
+ "id": "ephemeral:run:job",
1084
1003
  "pluginAlias": "@xano/cli",
1085
1004
  "pluginName": "@xano/cli",
1086
1005
  "pluginType": "core",
@@ -1092,21 +1011,118 @@
1092
1011
  "commands",
1093
1012
  "ephemeral",
1094
1013
  "run",
1095
- "service",
1014
+ "job",
1096
1015
  "index.js"
1097
1016
  ]
1098
1017
  },
1099
- "ephemeral:run:job": {
1018
+ "profile:edit": {
1100
1019
  "aliases": [],
1101
- "args": {},
1102
- "description": "Run an ephemeral job in a workspace",
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",
1103
1028
  "examples": [
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"
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": {
1113
+ "aliases": [],
1114
+ "args": {
1115
+ "static_host": {
1116
+ "description": "Static Host name",
1117
+ "name": "static_host",
1118
+ "required": true
1119
+ }
1120
+ },
1121
+ "description": "Create a new build for a static host",
1122
+ "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"
1110
1126
  ],
1111
1127
  "flags": {
1112
1128
  "profile": {
@@ -1130,37 +1146,30 @@
1130
1146
  },
1131
1147
  "file": {
1132
1148
  "char": "f",
1133
- "description": "Path to file containing XanoScript code",
1134
- "exclusive": [
1135
- "stdin"
1136
- ],
1149
+ "description": "Path to zip file to upload",
1137
1150
  "name": "file",
1138
- "required": false,
1151
+ "required": true,
1139
1152
  "hasDynamicHelp": false,
1140
1153
  "multiple": false,
1141
1154
  "type": "option"
1142
1155
  },
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"
1156
+ "name": {
1157
+ "char": "n",
1158
+ "description": "Build name",
1159
+ "name": "name",
1160
+ "required": true,
1161
+ "hasDynamicHelp": false,
1162
+ "multiple": false,
1163
+ "type": "option"
1153
1164
  },
1154
- "edit": {
1155
- "char": "e",
1156
- "dependsOn": [
1157
- "file"
1158
- ],
1159
- "description": "Open file in editor before running job (requires --file)",
1160
- "name": "edit",
1165
+ "description": {
1166
+ "char": "d",
1167
+ "description": "Build description",
1168
+ "name": "description",
1161
1169
  "required": false,
1162
- "allowNo": false,
1163
- "type": "boolean"
1170
+ "hasDynamicHelp": false,
1171
+ "multiple": false,
1172
+ "type": "option"
1164
1173
  },
1165
1174
  "output": {
1166
1175
  "char": "o",
@@ -1175,20 +1184,11 @@
1175
1184
  "json"
1176
1185
  ],
1177
1186
  "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": "ephemeral:run:job",
1191
+ "id": "static_host:build:create",
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
- "ephemeral",
1202
- "run",
1203
- "job",
1201
+ "static_host",
1202
+ "build",
1203
+ "create",
1204
1204
  "index.js"
1205
1205
  ]
1206
1206
  },
@@ -1366,5 +1366,5 @@
1366
1366
  ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.3"
1369
+ "version": "0.0.4"
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.3",
4
+ "version": "0.0.4",
5
5
  "author": "Sean Montgomery",
6
6
  "bin": {
7
7
  "xano": "./bin/run.js"
@@ -64,7 +64,7 @@
64
64
  }
65
65
  }
66
66
  },
67
- "repository": "git/xano-cli",
67
+ "repository": "xano-inc/cli",
68
68
  "scripts": {
69
69
  "build": "shx rm -rf dist && tsc -b",
70
70
  "dev": "./bin/dev.js",