@xano/cli 0.0.3 → 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 +352 -352
  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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.5/src/commands/workspace/list/index.ts)_
1200
1200
  <!-- commandsstop -->
@@ -408,26 +408,106 @@
408
408
  "index.js"
409
409
  ]
410
410
  },
411
- "profile:create": {
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
+ },
491
+ "profile:edit": {
412
492
  "aliases": [],
413
493
  "args": {
414
494
  "name": {
415
- "description": "Profile name",
495
+ "description": "Profile name to edit",
416
496
  "name": "name",
417
497
  "required": true
418
498
  }
419
499
  },
420
- "description": "Create a new profile configuration",
500
+ "description": "Edit an existing profile configuration",
421
501
  "examples": [
422
- "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
423
- "$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
424
- "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
425
- "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
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"
426
506
  ],
427
507
  "flags": {
428
508
  "account_origin": {
429
509
  "char": "a",
430
- "description": "Account origin URL. Optional for self hosted installs.",
510
+ "description": "Update account origin URL",
431
511
  "name": "account_origin",
432
512
  "required": false,
433
513
  "hasDynamicHelp": false,
@@ -436,25 +516,25 @@
436
516
  },
437
517
  "instance_origin": {
438
518
  "char": "i",
439
- "description": "Instance origin URL",
519
+ "description": "Update instance origin URL",
440
520
  "name": "instance_origin",
441
- "required": true,
521
+ "required": false,
442
522
  "hasDynamicHelp": false,
443
523
  "multiple": false,
444
524
  "type": "option"
445
525
  },
446
526
  "access_token": {
447
527
  "char": "t",
448
- "description": "Access token for the Xano Metadata API",
528
+ "description": "Update access token for the Xano Metadata API",
449
529
  "name": "access_token",
450
- "required": true,
530
+ "required": false,
451
531
  "hasDynamicHelp": false,
452
532
  "multiple": false,
453
533
  "type": "option"
454
534
  },
455
535
  "workspace": {
456
536
  "char": "w",
457
- "description": "Workspace name",
537
+ "description": "Update workspace name",
458
538
  "name": "workspace",
459
539
  "required": false,
460
540
  "hasDynamicHelp": false,
@@ -463,16 +543,23 @@
463
543
  },
464
544
  "branch": {
465
545
  "char": "b",
466
- "description": "Branch name",
546
+ "description": "Update branch name",
467
547
  "name": "branch",
468
548
  "required": false,
469
549
  "hasDynamicHelp": false,
470
550
  "multiple": false,
471
551
  "type": "option"
472
552
  },
473
- "default": {
474
- "description": "Set this profile as the default",
475
- "name": "default",
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",
476
563
  "required": false,
477
564
  "allowNo": false,
478
565
  "type": "boolean"
@@ -480,7 +567,7 @@
480
567
  },
481
568
  "hasDynamicHelp": false,
482
569
  "hiddenAliases": [],
483
- "id": "profile:create",
570
+ "id": "profile:edit",
484
571
  "pluginAlias": "@xano/cli",
485
572
  "pluginName": "@xano/cli",
486
573
  "pluginType": "core",
@@ -491,24 +578,75 @@
491
578
  "dist",
492
579
  "commands",
493
580
  "profile",
494
- "create",
581
+ "edit",
495
582
  "index.js"
496
583
  ]
497
584
  },
498
- "profile:list": {
585
+ "profile:create": {
499
586
  "aliases": [],
500
- "args": {},
501
- "description": "List all available profile configurations",
587
+ "args": {
588
+ "name": {
589
+ "description": "Profile name",
590
+ "name": "name",
591
+ "required": true
592
+ }
593
+ },
594
+ "description": "Create a new profile configuration",
502
595
  "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"
596
+ "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
597
+ "$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
598
+ "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
599
+ "$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
506
600
  ],
507
601
  "flags": {
508
- "details": {
509
- "char": "d",
510
- "description": "Show detailed information for each profile",
511
- "name": "details",
602
+ "account_origin": {
603
+ "char": "a",
604
+ "description": "Account origin URL. Optional for self hosted installs.",
605
+ "name": "account_origin",
606
+ "required": false,
607
+ "hasDynamicHelp": false,
608
+ "multiple": false,
609
+ "type": "option"
610
+ },
611
+ "instance_origin": {
612
+ "char": "i",
613
+ "description": "Instance origin URL",
614
+ "name": "instance_origin",
615
+ "required": true,
616
+ "hasDynamicHelp": false,
617
+ "multiple": false,
618
+ "type": "option"
619
+ },
620
+ "access_token": {
621
+ "char": "t",
622
+ "description": "Access token for the Xano Metadata API",
623
+ "name": "access_token",
624
+ "required": true,
625
+ "hasDynamicHelp": false,
626
+ "multiple": false,
627
+ "type": "option"
628
+ },
629
+ "workspace": {
630
+ "char": "w",
631
+ "description": "Workspace name",
632
+ "name": "workspace",
633
+ "required": false,
634
+ "hasDynamicHelp": false,
635
+ "multiple": false,
636
+ "type": "option"
637
+ },
638
+ "branch": {
639
+ "char": "b",
640
+ "description": "Branch name",
641
+ "name": "branch",
642
+ "required": false,
643
+ "hasDynamicHelp": false,
644
+ "multiple": false,
645
+ "type": "option"
646
+ },
647
+ "default": {
648
+ "description": "Set this profile as the default",
649
+ "name": "default",
512
650
  "required": false,
513
651
  "allowNo": false,
514
652
  "type": "boolean"
@@ -516,7 +654,7 @@
516
654
  },
517
655
  "hasDynamicHelp": false,
518
656
  "hiddenAliases": [],
519
- "id": "profile:list",
657
+ "id": "profile:create",
520
658
  "pluginAlias": "@xano/cli",
521
659
  "pluginName": "@xano/cli",
522
660
  "pluginType": "core",
@@ -527,7 +665,7 @@
527
665
  "dist",
528
666
  "commands",
529
667
  "profile",
530
- "list",
668
+ "create",
531
669
  "index.js"
532
670
  ]
533
671
  },
@@ -599,24 +737,28 @@
599
737
  "index.js"
600
738
  ]
601
739
  },
602
- "profile:set-default": {
740
+ "profile:list": {
603
741
  "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",
742
+ "args": {},
743
+ "description": "List all available profile configurations",
612
744
  "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"
745
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
746
+ "$ 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",
747
+ "$ 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
748
  ],
616
- "flags": {},
749
+ "flags": {
750
+ "details": {
751
+ "char": "d",
752
+ "description": "Show detailed information for each profile",
753
+ "name": "details",
754
+ "required": false,
755
+ "allowNo": false,
756
+ "type": "boolean"
757
+ }
758
+ },
617
759
  "hasDynamicHelp": false,
618
760
  "hiddenAliases": [],
619
- "id": "profile:set-default",
761
+ "id": "profile:list",
620
762
  "pluginAlias": "@xano/cli",
621
763
  "pluginName": "@xano/cli",
622
764
  "pluginType": "core",
@@ -627,90 +769,28 @@
627
769
  "dist",
628
770
  "commands",
629
771
  "profile",
630
- "set-default",
772
+ "list",
631
773
  "index.js"
632
774
  ]
633
775
  },
634
- "profile:edit": {
776
+ "profile:set-default": {
635
777
  "aliases": [],
636
778
  "args": {
637
779
  "name": {
638
- "description": "Profile name to edit",
780
+ "description": "Profile name to set as default",
639
781
  "name": "name",
640
782
  "required": true
641
783
  }
642
784
  },
643
- "description": "Edit an existing profile configuration",
785
+ "description": "Set the default profile",
644
786
  "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"
787
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
788
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
649
789
  ],
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
- },
790
+ "flags": {},
711
791
  "hasDynamicHelp": false,
712
792
  "hiddenAliases": [],
713
- "id": "profile:edit",
793
+ "id": "profile:set-default",
714
794
  "pluginAlias": "@xano/cli",
715
795
  "pluginName": "@xano/cli",
716
796
  "pluginType": "core",
@@ -721,7 +801,7 @@
721
801
  "dist",
722
802
  "commands",
723
803
  "profile",
724
- "edit",
804
+ "set-default",
725
805
  "index.js"
726
806
  ]
727
807
  },
@@ -747,148 +827,15 @@
747
827
  "description": "Xano instance origin URL",
748
828
  "name": "origin",
749
829
  "required": false,
750
- "default": "https://app.xano.com",
751
- "hasDynamicHelp": false,
752
- "multiple": false,
753
- "type": "option"
754
- }
755
- },
756
- "hasDynamicHelp": false,
757
- "hiddenAliases": [],
758
- "id": "profile:wizard",
759
- "pluginAlias": "@xano/cli",
760
- "pluginName": "@xano/cli",
761
- "pluginType": "core",
762
- "strict": true,
763
- "enableJsonFlag": false,
764
- "isESM": true,
765
- "relativePath": [
766
- "dist",
767
- "commands",
768
- "profile",
769
- "wizard",
770
- "index.js"
771
- ]
772
- },
773
- "static_host:list": {
774
- "aliases": [],
775
- "args": {},
776
- "description": "List all static hosts in a workspace from the Xano Metadata API",
777
- "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"
862
- ],
863
- "flags": {
864
- "profile": {
865
- "char": "p",
866
- "description": "Profile to use for this command",
867
- "env": "XANO_PROFILE",
868
- "name": "profile",
869
- "required": false,
870
- "hasDynamicHelp": false,
871
- "multiple": false,
872
- "type": "option"
873
- },
874
- "output": {
875
- "char": "o",
876
- "description": "Output format",
877
- "name": "output",
878
- "required": false,
879
- "default": "summary",
880
- "hasDynamicHelp": false,
881
- "multiple": false,
882
- "options": [
883
- "summary",
884
- "json"
885
- ],
830
+ "default": "https://app.xano.com",
831
+ "hasDynamicHelp": false,
832
+ "multiple": false,
886
833
  "type": "option"
887
834
  }
888
835
  },
889
836
  "hasDynamicHelp": false,
890
837
  "hiddenAliases": [],
891
- "id": "workspace:list",
838
+ "id": "profile:wizard",
892
839
  "pluginAlias": "@xano/cli",
893
840
  "pluginName": "@xano/cli",
894
841
  "pluginType": "core",
@@ -898,25 +845,22 @@
898
845
  "relativePath": [
899
846
  "dist",
900
847
  "commands",
901
- "workspace",
902
- "list",
848
+ "profile",
849
+ "wizard",
903
850
  "index.js"
904
851
  ]
905
852
  },
906
- "static_host:build:create": {
853
+ "ephemeral:run:job": {
907
854
  "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",
855
+ "args": {},
856
+ "description": "Run an ephemeral job in a workspace",
916
857
  "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"
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"
920
864
  ],
921
865
  "flags": {
922
866
  "profile": {
@@ -940,30 +884,37 @@
940
884
  },
941
885
  "file": {
942
886
  "char": "f",
943
- "description": "Path to zip file to upload",
887
+ "description": "Path to file containing XanoScript code",
888
+ "exclusive": [
889
+ "stdin"
890
+ ],
944
891
  "name": "file",
945
- "required": true,
892
+ "required": false,
946
893
  "hasDynamicHelp": false,
947
894
  "multiple": false,
948
895
  "type": "option"
949
896
  },
950
- "name": {
951
- "char": "n",
952
- "description": "Build name",
953
- "name": "name",
954
- "required": true,
955
- "hasDynamicHelp": false,
956
- "multiple": false,
957
- "type": "option"
897
+ "stdin": {
898
+ "char": "s",
899
+ "description": "Read XanoScript code from stdin",
900
+ "exclusive": [
901
+ "file"
902
+ ],
903
+ "name": "stdin",
904
+ "required": false,
905
+ "allowNo": false,
906
+ "type": "boolean"
958
907
  },
959
- "description": {
960
- "char": "d",
961
- "description": "Build description",
962
- "name": "description",
908
+ "edit": {
909
+ "char": "e",
910
+ "dependsOn": [
911
+ "file"
912
+ ],
913
+ "description": "Open file in editor before running job (requires --file)",
914
+ "name": "edit",
963
915
  "required": false,
964
- "hasDynamicHelp": false,
965
- "multiple": false,
966
- "type": "option"
916
+ "allowNo": false,
917
+ "type": "boolean"
967
918
  },
968
919
  "output": {
969
920
  "char": "o",
@@ -978,11 +929,20 @@
978
929
  "json"
979
930
  ],
980
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"
981
941
  }
982
942
  },
983
943
  "hasDynamicHelp": false,
984
944
  "hiddenAliases": [],
985
- "id": "static_host:build:create",
945
+ "id": "ephemeral:run:job",
986
946
  "pluginAlias": "@xano/cli",
987
947
  "pluginName": "@xano/cli",
988
948
  "pluginType": "core",
@@ -992,9 +952,9 @@
992
952
  "relativePath": [
993
953
  "dist",
994
954
  "commands",
995
- "static_host",
996
- "build",
997
- "create",
955
+ "ephemeral",
956
+ "run",
957
+ "job",
998
958
  "index.js"
999
959
  ]
1000
960
  },
@@ -1096,17 +1056,15 @@
1096
1056
  "index.js"
1097
1057
  ]
1098
1058
  },
1099
- "ephemeral:run:job": {
1059
+ "workspace:list": {
1100
1060
  "aliases": [],
1101
1061
  "args": {},
1102
- "description": "Run an ephemeral job in a workspace",
1062
+ "description": "List all workspaces from the Xano Metadata API",
1103
1063
  "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"
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"
1110
1068
  ],
1111
1069
  "flags": {
1112
1070
  "profile": {
@@ -1119,49 +1077,6 @@
1119
1077
  "multiple": false,
1120
1078
  "type": "option"
1121
1079
  },
1122
- "workspace": {
1123
- "char": "w",
1124
- "description": "Workspace ID (optional if set in profile)",
1125
- "name": "workspace",
1126
- "required": false,
1127
- "hasDynamicHelp": false,
1128
- "multiple": false,
1129
- "type": "option"
1130
- },
1131
- "file": {
1132
- "char": "f",
1133
- "description": "Path to file containing XanoScript code",
1134
- "exclusive": [
1135
- "stdin"
1136
- ],
1137
- "name": "file",
1138
- "required": false,
1139
- "hasDynamicHelp": false,
1140
- "multiple": false,
1141
- "type": "option"
1142
- },
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"
1153
- },
1154
- "edit": {
1155
- "char": "e",
1156
- "dependsOn": [
1157
- "file"
1158
- ],
1159
- "description": "Open file in editor before running job (requires --file)",
1160
- "name": "edit",
1161
- "required": false,
1162
- "allowNo": false,
1163
- "type": "boolean"
1164
- },
1165
1080
  "output": {
1166
1081
  "char": "o",
1167
1082
  "description": "Output format",
@@ -1175,20 +1090,11 @@
1175
1090
  "json"
1176
1091
  ],
1177
1092
  "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
1093
  }
1188
1094
  },
1189
1095
  "hasDynamicHelp": false,
1190
1096
  "hiddenAliases": [],
1191
- "id": "ephemeral:run:job",
1097
+ "id": "workspace:list",
1192
1098
  "pluginAlias": "@xano/cli",
1193
1099
  "pluginName": "@xano/cli",
1194
1100
  "pluginType": "core",
@@ -1198,9 +1104,8 @@
1198
1104
  "relativePath": [
1199
1105
  "dist",
1200
1106
  "commands",
1201
- "ephemeral",
1202
- "run",
1203
- "job",
1107
+ "workspace",
1108
+ "list",
1204
1109
  "index.js"
1205
1110
  ]
1206
1111
  },
@@ -1364,7 +1269,102 @@
1364
1269
  "list",
1365
1270
  "index.js"
1366
1271
  ]
1272
+ },
1273
+ "static_host:build:create": {
1274
+ "aliases": [],
1275
+ "args": {
1276
+ "static_host": {
1277
+ "description": "Static Host name",
1278
+ "name": "static_host",
1279
+ "required": true
1280
+ }
1281
+ },
1282
+ "description": "Create a new build for a static host",
1283
+ "examples": [
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"
1287
+ ],
1288
+ "flags": {
1289
+ "profile": {
1290
+ "char": "p",
1291
+ "description": "Profile to use for this command",
1292
+ "env": "XANO_PROFILE",
1293
+ "name": "profile",
1294
+ "required": false,
1295
+ "hasDynamicHelp": false,
1296
+ "multiple": false,
1297
+ "type": "option"
1298
+ },
1299
+ "workspace": {
1300
+ "char": "w",
1301
+ "description": "Workspace ID (optional if set in profile)",
1302
+ "name": "workspace",
1303
+ "required": false,
1304
+ "hasDynamicHelp": false,
1305
+ "multiple": false,
1306
+ "type": "option"
1307
+ },
1308
+ "file": {
1309
+ "char": "f",
1310
+ "description": "Path to zip file to upload",
1311
+ "name": "file",
1312
+ "required": true,
1313
+ "hasDynamicHelp": false,
1314
+ "multiple": false,
1315
+ "type": "option"
1316
+ },
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",
1330
+ "required": false,
1331
+ "hasDynamicHelp": false,
1332
+ "multiple": false,
1333
+ "type": "option"
1334
+ },
1335
+ "output": {
1336
+ "char": "o",
1337
+ "description": "Output format",
1338
+ "name": "output",
1339
+ "required": false,
1340
+ "default": "summary",
1341
+ "hasDynamicHelp": false,
1342
+ "multiple": false,
1343
+ "options": [
1344
+ "summary",
1345
+ "json"
1346
+ ],
1347
+ "type": "option"
1348
+ }
1349
+ },
1350
+ "hasDynamicHelp": false,
1351
+ "hiddenAliases": [],
1352
+ "id": "static_host:build:create",
1353
+ "pluginAlias": "@xano/cli",
1354
+ "pluginName": "@xano/cli",
1355
+ "pluginType": "core",
1356
+ "strict": true,
1357
+ "enableJsonFlag": false,
1358
+ "isESM": true,
1359
+ "relativePath": [
1360
+ "dist",
1361
+ "commands",
1362
+ "static_host",
1363
+ "build",
1364
+ "create",
1365
+ "index.js"
1366
+ ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.3"
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.3",
4
+ "version": "0.0.5",
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",