@xano/cli 0.0.28 → 0.0.29

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.
@@ -405,20 +405,20 @@
405
405
  "index.js"
406
406
  ]
407
407
  },
408
- "branch:list": {
408
+ "branch:set-live": {
409
409
  "aliases": [],
410
410
  "args": {
411
- "workspace_id": {
412
- "description": "Workspace ID (uses profile workspace if not provided)",
413
- "name": "workspace_id",
414
- "required": false
411
+ "branch_label": {
412
+ "description": "Branch label to set as live (use \"v1\" for default branch)",
413
+ "name": "branch_label",
414
+ "required": true
415
415
  }
416
416
  },
417
- "description": "List all branches in a workspace",
417
+ "description": "Set a branch as the live (active) branch for API requests",
418
418
  "examples": [
419
- "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
420
- "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
421
- "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
419
+ "$ xano branch set-live staging\nAre you sure you want to set 'staging' as the live branch? (y/N) y\nBranch 'staging' is now live\n",
420
+ "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
421
+ "$ xano branch set-live production -f -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"production\",\n \"backup\": false,\n \"live\": true\n}\n"
422
422
  ],
423
423
  "flags": {
424
424
  "profile": {
@@ -440,6 +440,14 @@
440
440
  "allowNo": false,
441
441
  "type": "boolean"
442
442
  },
443
+ "force": {
444
+ "char": "f",
445
+ "description": "Skip confirmation prompt",
446
+ "name": "force",
447
+ "required": false,
448
+ "allowNo": false,
449
+ "type": "boolean"
450
+ },
443
451
  "output": {
444
452
  "char": "o",
445
453
  "description": "Output format",
@@ -453,11 +461,20 @@
453
461
  "json"
454
462
  ],
455
463
  "type": "option"
464
+ },
465
+ "workspace": {
466
+ "char": "w",
467
+ "description": "Workspace ID (uses profile workspace if not provided)",
468
+ "name": "workspace",
469
+ "required": false,
470
+ "hasDynamicHelp": false,
471
+ "multiple": false,
472
+ "type": "option"
456
473
  }
457
474
  },
458
475
  "hasDynamicHelp": false,
459
476
  "hiddenAliases": [],
460
- "id": "branch:list",
477
+ "id": "branch:set-live",
461
478
  "pluginAlias": "@xano/cli",
462
479
  "pluginName": "@xano/cli",
463
480
  "pluginType": "core",
@@ -468,28 +485,20 @@
468
485
  "dist",
469
486
  "commands",
470
487
  "branch",
471
- "list",
488
+ "set-live",
472
489
  "index.js"
473
490
  ]
474
491
  },
475
- "profile:edit": {
492
+ "function:create": {
476
493
  "aliases": [],
477
- "args": {
478
- "name": {
479
- "description": "Profile name to edit (uses default profile if not specified)",
480
- "name": "name",
481
- "required": false
482
- }
483
- },
484
- "description": "Edit an existing profile configuration",
494
+ "args": {},
495
+ "description": "Create a new function in a workspace",
485
496
  "examples": [
486
- "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
487
- "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
488
- "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
489
- "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
490
- "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
491
- "$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
492
- "$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
497
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
498
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
499
+ "$ xano function:create -w 40 -f function.xs --edit\n# Opens function.xs in $EDITOR, then creates function with edited content\nFunction created successfully!\nID: 123\nName: my_function\n",
500
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
501
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
493
502
  ],
494
503
  "flags": {
495
504
  "profile": {
@@ -511,91 +520,176 @@
511
520
  "allowNo": false,
512
521
  "type": "boolean"
513
522
  },
514
- "access_token": {
515
- "char": "t",
516
- "description": "Update access token for the Xano Metadata API",
517
- "name": "access_token",
523
+ "edit": {
524
+ "char": "e",
525
+ "dependsOn": [
526
+ "file"
527
+ ],
528
+ "description": "Open file in editor before creating function (requires --file)",
529
+ "name": "edit",
518
530
  "required": false,
519
- "hasDynamicHelp": false,
520
- "multiple": false,
521
- "type": "option"
531
+ "allowNo": false,
532
+ "type": "boolean"
522
533
  },
523
- "account_origin": {
524
- "char": "a",
525
- "description": "Update account origin URL",
526
- "name": "account_origin",
534
+ "file": {
535
+ "char": "f",
536
+ "description": "Path to file containing XanoScript code",
537
+ "exclusive": [
538
+ "stdin"
539
+ ],
540
+ "name": "file",
527
541
  "required": false,
528
542
  "hasDynamicHelp": false,
529
543
  "multiple": false,
530
544
  "type": "option"
531
545
  },
532
- "branch": {
533
- "char": "b",
534
- "description": "Update branch name",
535
- "name": "branch",
546
+ "output": {
547
+ "char": "o",
548
+ "description": "Output format",
549
+ "name": "output",
536
550
  "required": false,
551
+ "default": "summary",
537
552
  "hasDynamicHelp": false,
538
553
  "multiple": false,
554
+ "options": [
555
+ "summary",
556
+ "json"
557
+ ],
539
558
  "type": "option"
540
559
  },
541
- "instance_origin": {
542
- "char": "i",
543
- "description": "Update instance origin URL",
544
- "name": "instance_origin",
560
+ "stdin": {
561
+ "char": "s",
562
+ "description": "Read XanoScript code from stdin",
563
+ "exclusive": [
564
+ "file"
565
+ ],
566
+ "name": "stdin",
567
+ "required": false,
568
+ "allowNo": false,
569
+ "type": "boolean"
570
+ },
571
+ "workspace": {
572
+ "char": "w",
573
+ "description": "Workspace ID (optional if set in profile)",
574
+ "name": "workspace",
545
575
  "required": false,
546
576
  "hasDynamicHelp": false,
547
577
  "multiple": false,
548
578
  "type": "option"
549
- },
550
- "project": {
551
- "char": "j",
552
- "description": "Update project ID",
553
- "name": "project",
579
+ }
580
+ },
581
+ "hasDynamicHelp": false,
582
+ "hiddenAliases": [],
583
+ "id": "function:create",
584
+ "pluginAlias": "@xano/cli",
585
+ "pluginName": "@xano/cli",
586
+ "pluginType": "core",
587
+ "strict": true,
588
+ "enableJsonFlag": false,
589
+ "isESM": true,
590
+ "relativePath": [
591
+ "dist",
592
+ "commands",
593
+ "function",
594
+ "create",
595
+ "index.js"
596
+ ]
597
+ },
598
+ "function:edit": {
599
+ "aliases": [],
600
+ "args": {
601
+ "function_id": {
602
+ "description": "Function ID to edit",
603
+ "name": "function_id",
604
+ "required": false
605
+ }
606
+ },
607
+ "description": "Edit a function in a workspace",
608
+ "examples": [
609
+ "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
610
+ "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
611
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
612
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
613
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
614
+ "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
615
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
616
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
617
+ ],
618
+ "flags": {
619
+ "profile": {
620
+ "char": "p",
621
+ "description": "Profile to use for this command",
622
+ "env": "XANO_PROFILE",
623
+ "name": "profile",
554
624
  "required": false,
555
625
  "hasDynamicHelp": false,
556
626
  "multiple": false,
557
627
  "type": "option"
558
628
  },
559
- "remove-branch": {
560
- "description": "Remove branch from profile",
561
- "name": "remove-branch",
629
+ "verbose": {
630
+ "char": "v",
631
+ "description": "Show detailed request/response information",
632
+ "env": "XANO_VERBOSE",
633
+ "name": "verbose",
562
634
  "required": false,
563
635
  "allowNo": false,
564
636
  "type": "boolean"
565
637
  },
566
- "remove-project": {
567
- "description": "Remove project from profile",
568
- "name": "remove-project",
638
+ "edit": {
639
+ "char": "e",
640
+ "description": "Open file in editor before updating function (requires --file)",
641
+ "name": "edit",
569
642
  "required": false,
570
643
  "allowNo": false,
571
644
  "type": "boolean"
572
645
  },
573
- "remove-run-base-url": {
574
- "description": "Remove run_base_url from profile (use default)",
575
- "name": "remove-run-base-url",
646
+ "file": {
647
+ "char": "f",
648
+ "description": "Path to file containing XanoScript code",
649
+ "exclusive": [
650
+ "stdin"
651
+ ],
652
+ "name": "file",
576
653
  "required": false,
577
- "allowNo": false,
578
- "type": "boolean"
654
+ "hasDynamicHelp": false,
655
+ "multiple": false,
656
+ "type": "option"
579
657
  },
580
- "remove-workspace": {
581
- "description": "Remove workspace from profile",
582
- "name": "remove-workspace",
658
+ "output": {
659
+ "char": "o",
660
+ "description": "Output format",
661
+ "name": "output",
662
+ "required": false,
663
+ "default": "summary",
664
+ "hasDynamicHelp": false,
665
+ "multiple": false,
666
+ "options": [
667
+ "summary",
668
+ "json"
669
+ ],
670
+ "type": "option"
671
+ },
672
+ "publish": {
673
+ "description": "Publish the function after editing",
674
+ "name": "publish",
583
675
  "required": false,
584
676
  "allowNo": false,
585
677
  "type": "boolean"
586
678
  },
587
- "run_base_url": {
588
- "char": "r",
589
- "description": "Update Xano Run API base URL",
590
- "name": "run_base_url",
679
+ "stdin": {
680
+ "char": "s",
681
+ "description": "Read XanoScript code from stdin",
682
+ "exclusive": [
683
+ "file"
684
+ ],
685
+ "name": "stdin",
591
686
  "required": false,
592
- "hasDynamicHelp": false,
593
- "multiple": false,
594
- "type": "option"
687
+ "allowNo": false,
688
+ "type": "boolean"
595
689
  },
596
690
  "workspace": {
597
691
  "char": "w",
598
- "description": "Update workspace name",
692
+ "description": "Workspace ID (optional if set in profile)",
599
693
  "name": "workspace",
600
694
  "required": false,
601
695
  "hasDynamicHelp": false,
@@ -605,7 +699,7 @@
605
699
  },
606
700
  "hasDynamicHelp": false,
607
701
  "hiddenAliases": [],
608
- "id": "profile:edit",
702
+ "id": "function:edit",
609
703
  "pluginAlias": "@xano/cli",
610
704
  "pluginName": "@xano/cli",
611
705
  "pluginType": "core",
@@ -615,39 +709,64 @@
615
709
  "relativePath": [
616
710
  "dist",
617
711
  "commands",
618
- "profile",
712
+ "function",
619
713
  "edit",
620
714
  "index.js"
621
715
  ]
622
716
  },
623
- "profile:delete": {
717
+ "branch:list": {
624
718
  "aliases": [],
625
719
  "args": {
626
- "name": {
627
- "description": "Profile name to delete",
628
- "name": "name",
629
- "required": true
720
+ "workspace_id": {
721
+ "description": "Workspace ID (uses profile workspace if not provided)",
722
+ "name": "workspace_id",
723
+ "required": false
630
724
  }
631
725
  },
632
- "description": "Delete a profile configuration",
726
+ "description": "List all branches in a workspace",
633
727
  "examples": [
634
- "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
635
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
636
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
728
+ "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
729
+ "$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
730
+ "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
637
731
  ],
638
732
  "flags": {
639
- "force": {
640
- "char": "f",
641
- "description": "Skip confirmation prompt",
642
- "name": "force",
733
+ "profile": {
734
+ "char": "p",
735
+ "description": "Profile to use for this command",
736
+ "env": "XANO_PROFILE",
737
+ "name": "profile",
738
+ "required": false,
739
+ "hasDynamicHelp": false,
740
+ "multiple": false,
741
+ "type": "option"
742
+ },
743
+ "verbose": {
744
+ "char": "v",
745
+ "description": "Show detailed request/response information",
746
+ "env": "XANO_VERBOSE",
747
+ "name": "verbose",
643
748
  "required": false,
644
749
  "allowNo": false,
645
750
  "type": "boolean"
751
+ },
752
+ "output": {
753
+ "char": "o",
754
+ "description": "Output format",
755
+ "name": "output",
756
+ "required": false,
757
+ "default": "summary",
758
+ "hasDynamicHelp": false,
759
+ "multiple": false,
760
+ "options": [
761
+ "summary",
762
+ "json"
763
+ ],
764
+ "type": "option"
646
765
  }
647
766
  },
648
767
  "hasDynamicHelp": false,
649
768
  "hiddenAliases": [],
650
- "id": "profile:delete",
769
+ "id": "branch:list",
651
770
  "pluginAlias": "@xano/cli",
652
771
  "pluginName": "@xano/cli",
653
772
  "pluginType": "core",
@@ -657,93 +776,81 @@
657
776
  "relativePath": [
658
777
  "dist",
659
778
  "commands",
660
- "profile",
661
- "delete",
779
+ "branch",
780
+ "list",
662
781
  "index.js"
663
782
  ]
664
783
  },
665
- "profile:create": {
784
+ "function:get": {
666
785
  "aliases": [],
667
786
  "args": {
668
- "name": {
669
- "description": "Profile name",
670
- "name": "name",
671
- "required": true
787
+ "function_id": {
788
+ "description": "Function ID",
789
+ "name": "function_id",
790
+ "required": false
672
791
  }
673
792
  },
674
- "description": "Create a new profile configuration",
793
+ "description": "Get a specific function from a workspace",
675
794
  "examples": [
676
- "$ 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",
677
- "$ 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",
678
- "$ 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",
679
- "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch -j my-project\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
680
- "$ 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"
795
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
796
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
797
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
798
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
799
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
800
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
681
801
  ],
682
802
  "flags": {
683
- "access_token": {
684
- "char": "t",
685
- "description": "Access token for the Xano Metadata API",
686
- "name": "access_token",
687
- "required": true,
688
- "hasDynamicHelp": false,
689
- "multiple": false,
690
- "type": "option"
691
- },
692
- "account_origin": {
693
- "char": "a",
694
- "description": "Account origin URL. Optional for self hosted installs.",
695
- "name": "account_origin",
803
+ "profile": {
804
+ "char": "p",
805
+ "description": "Profile to use for this command",
806
+ "env": "XANO_PROFILE",
807
+ "name": "profile",
696
808
  "required": false,
697
809
  "hasDynamicHelp": false,
698
810
  "multiple": false,
699
811
  "type": "option"
700
812
  },
701
- "branch": {
702
- "char": "b",
703
- "description": "Branch name",
704
- "name": "branch",
813
+ "verbose": {
814
+ "char": "v",
815
+ "description": "Show detailed request/response information",
816
+ "env": "XANO_VERBOSE",
817
+ "name": "verbose",
705
818
  "required": false,
706
- "hasDynamicHelp": false,
707
- "multiple": false,
708
- "type": "option"
819
+ "allowNo": false,
820
+ "type": "boolean"
709
821
  },
710
- "default": {
711
- "description": "Set this profile as the default",
712
- "name": "default",
822
+ "include_draft": {
823
+ "description": "Include draft version",
824
+ "name": "include_draft",
713
825
  "required": false,
714
826
  "allowNo": false,
715
827
  "type": "boolean"
716
828
  },
717
- "instance_origin": {
718
- "char": "i",
719
- "description": "Instance origin URL",
720
- "name": "instance_origin",
721
- "required": true,
722
- "hasDynamicHelp": false,
723
- "multiple": false,
724
- "type": "option"
725
- },
726
- "project": {
727
- "char": "j",
728
- "description": "Project name",
729
- "name": "project",
829
+ "include_xanoscript": {
830
+ "description": "Include XanoScript in response",
831
+ "name": "include_xanoscript",
730
832
  "required": false,
731
- "hasDynamicHelp": false,
732
- "multiple": false,
733
- "type": "option"
833
+ "allowNo": false,
834
+ "type": "boolean"
734
835
  },
735
- "run_base_url": {
736
- "char": "r",
737
- "description": "Xano Run API base URL (default: https://app.xano.com/)",
738
- "name": "run_base_url",
836
+ "output": {
837
+ "char": "o",
838
+ "description": "Output format",
839
+ "name": "output",
739
840
  "required": false,
841
+ "default": "summary",
740
842
  "hasDynamicHelp": false,
741
843
  "multiple": false,
844
+ "options": [
845
+ "summary",
846
+ "json",
847
+ "xs"
848
+ ],
742
849
  "type": "option"
743
850
  },
744
851
  "workspace": {
745
852
  "char": "w",
746
- "description": "Workspace name",
853
+ "description": "Workspace ID (optional if set in profile)",
747
854
  "name": "workspace",
748
855
  "required": false,
749
856
  "hasDynamicHelp": false,
@@ -753,7 +860,7 @@
753
860
  },
754
861
  "hasDynamicHelp": false,
755
862
  "hiddenAliases": [],
756
- "id": "profile:create",
863
+ "id": "function:get",
757
864
  "pluginAlias": "@xano/cli",
758
865
  "pluginName": "@xano/cli",
759
866
  "pluginType": "core",
@@ -763,19 +870,20 @@
763
870
  "relativePath": [
764
871
  "dist",
765
872
  "commands",
766
- "profile",
767
- "create",
873
+ "function",
874
+ "get",
768
875
  "index.js"
769
876
  ]
770
877
  },
771
- "profile:me": {
878
+ "function:list": {
772
879
  "aliases": [],
773
880
  "args": {},
774
- "description": "Get information about the currently authenticated user",
881
+ "description": "List all functions in a workspace from the Xano Metadata API",
775
882
  "examples": [
776
- "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
777
- "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
778
- "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
883
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
884
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
885
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
886
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
779
887
  ],
780
888
  "flags": {
781
889
  "profile": {
@@ -797,6 +905,33 @@
797
905
  "allowNo": false,
798
906
  "type": "boolean"
799
907
  },
908
+ "include_draft": {
909
+ "description": "Include draft functions",
910
+ "name": "include_draft",
911
+ "required": false,
912
+ "allowNo": false,
913
+ "type": "boolean"
914
+ },
915
+ "include_xanoscript": {
916
+ "description": "Include XanoScript in response",
917
+ "name": "include_xanoscript",
918
+ "required": false,
919
+ "allowNo": false,
920
+ "type": "boolean"
921
+ },
922
+ "order": {
923
+ "description": "Sort order",
924
+ "name": "order",
925
+ "required": false,
926
+ "default": "desc",
927
+ "hasDynamicHelp": false,
928
+ "multiple": false,
929
+ "options": [
930
+ "asc",
931
+ "desc"
932
+ ],
933
+ "type": "option"
934
+ },
800
935
  "output": {
801
936
  "char": "o",
802
937
  "description": "Output format",
@@ -810,11 +945,47 @@
810
945
  "json"
811
946
  ],
812
947
  "type": "option"
948
+ },
949
+ "page": {
950
+ "description": "Page number for pagination",
951
+ "name": "page",
952
+ "required": false,
953
+ "default": 1,
954
+ "hasDynamicHelp": false,
955
+ "multiple": false,
956
+ "type": "option"
957
+ },
958
+ "per_page": {
959
+ "description": "Number of results per page",
960
+ "name": "per_page",
961
+ "required": false,
962
+ "default": 50,
963
+ "hasDynamicHelp": false,
964
+ "multiple": false,
965
+ "type": "option"
966
+ },
967
+ "sort": {
968
+ "description": "Sort field",
969
+ "name": "sort",
970
+ "required": false,
971
+ "default": "created_at",
972
+ "hasDynamicHelp": false,
973
+ "multiple": false,
974
+ "type": "option"
975
+ },
976
+ "workspace": {
977
+ "char": "w",
978
+ "description": "Workspace ID (optional if set in profile)",
979
+ "name": "workspace",
980
+ "required": false,
981
+ "hasDynamicHelp": false,
982
+ "multiple": false,
983
+ "type": "option"
813
984
  }
814
985
  },
815
986
  "hasDynamicHelp": false,
816
987
  "hiddenAliases": [],
817
- "id": "profile:me",
988
+ "id": "function:list",
818
989
  "pluginAlias": "@xano/cli",
819
990
  "pluginName": "@xano/cli",
820
991
  "pluginType": "core",
@@ -824,85 +995,103 @@
824
995
  "relativePath": [
825
996
  "dist",
826
997
  "commands",
827
- "profile",
828
- "me",
998
+ "function",
999
+ "list",
829
1000
  "index.js"
830
1001
  ]
831
1002
  },
832
- "profile:get-default": {
1003
+ "profile:create": {
833
1004
  "aliases": [],
834
- "args": {},
835
- "description": "Get the current default profile name",
1005
+ "args": {
1006
+ "name": {
1007
+ "description": "Profile name",
1008
+ "name": "name",
1009
+ "required": true
1010
+ }
1011
+ },
1012
+ "description": "Create a new profile configuration",
836
1013
  "examples": [
837
- "$ xano profile:get-default\nproduction\n",
838
- "$ xano profile:get-default\nNo default profile set\n"
839
- ],
840
- "flags": {},
841
- "hasDynamicHelp": false,
842
- "hiddenAliases": [],
843
- "id": "profile:get-default",
844
- "pluginAlias": "@xano/cli",
845
- "pluginName": "@xano/cli",
846
- "pluginType": "core",
847
- "strict": true,
848
- "enableJsonFlag": false,
849
- "isESM": true,
850
- "relativePath": [
851
- "dist",
852
- "commands",
853
- "profile",
854
- "get-default",
855
- "index.js"
856
- ]
857
- },
858
- "profile:list": {
859
- "aliases": [],
860
- "args": {},
861
- "description": "List all available profile configurations",
862
- "examples": [
863
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
864
- "$ 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 Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
865
- "$ 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 Project: my-project\n"
1014
+ "$ 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",
1015
+ "$ 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",
1016
+ "$ 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",
1017
+ "$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch -j my-project\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
1018
+ "$ 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"
866
1019
  ],
867
1020
  "flags": {
868
- "details": {
869
- "char": "d",
870
- "description": "Show detailed information for each profile",
871
- "name": "details",
1021
+ "access_token": {
1022
+ "char": "t",
1023
+ "description": "Access token for the Xano Metadata API",
1024
+ "name": "access_token",
1025
+ "required": true,
1026
+ "hasDynamicHelp": false,
1027
+ "multiple": false,
1028
+ "type": "option"
1029
+ },
1030
+ "account_origin": {
1031
+ "char": "a",
1032
+ "description": "Account origin URL. Optional for self hosted installs.",
1033
+ "name": "account_origin",
1034
+ "required": false,
1035
+ "hasDynamicHelp": false,
1036
+ "multiple": false,
1037
+ "type": "option"
1038
+ },
1039
+ "branch": {
1040
+ "char": "b",
1041
+ "description": "Branch name",
1042
+ "name": "branch",
1043
+ "required": false,
1044
+ "hasDynamicHelp": false,
1045
+ "multiple": false,
1046
+ "type": "option"
1047
+ },
1048
+ "default": {
1049
+ "description": "Set this profile as the default",
1050
+ "name": "default",
872
1051
  "required": false,
873
1052
  "allowNo": false,
874
1053
  "type": "boolean"
1054
+ },
1055
+ "instance_origin": {
1056
+ "char": "i",
1057
+ "description": "Instance origin URL",
1058
+ "name": "instance_origin",
1059
+ "required": true,
1060
+ "hasDynamicHelp": false,
1061
+ "multiple": false,
1062
+ "type": "option"
1063
+ },
1064
+ "project": {
1065
+ "char": "j",
1066
+ "description": "Project name",
1067
+ "name": "project",
1068
+ "required": false,
1069
+ "hasDynamicHelp": false,
1070
+ "multiple": false,
1071
+ "type": "option"
1072
+ },
1073
+ "run_base_url": {
1074
+ "char": "r",
1075
+ "description": "Xano Run API base URL (default: https://app.xano.com/)",
1076
+ "name": "run_base_url",
1077
+ "required": false,
1078
+ "hasDynamicHelp": false,
1079
+ "multiple": false,
1080
+ "type": "option"
1081
+ },
1082
+ "workspace": {
1083
+ "char": "w",
1084
+ "description": "Workspace name",
1085
+ "name": "workspace",
1086
+ "required": false,
1087
+ "hasDynamicHelp": false,
1088
+ "multiple": false,
1089
+ "type": "option"
875
1090
  }
876
1091
  },
877
1092
  "hasDynamicHelp": false,
878
1093
  "hiddenAliases": [],
879
- "id": "profile:list",
880
- "pluginAlias": "@xano/cli",
881
- "pluginName": "@xano/cli",
882
- "pluginType": "core",
883
- "strict": true,
884
- "enableJsonFlag": false,
885
- "isESM": true,
886
- "relativePath": [
887
- "dist",
888
- "commands",
889
- "profile",
890
- "list",
891
- "index.js"
892
- ]
893
- },
894
- "profile:project": {
895
- "aliases": [],
896
- "args": {},
897
- "description": "Print the project for the default profile",
898
- "examples": [
899
- "$ xano profile:project\nmy-project-id\n",
900
- "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
901
- ],
902
- "flags": {},
903
- "hasDynamicHelp": false,
904
- "hiddenAliases": [],
905
- "id": "profile:project",
1094
+ "id": "profile:create",
906
1095
  "pluginAlias": "@xano/cli",
907
1096
  "pluginName": "@xano/cli",
908
1097
  "pluginType": "core",
@@ -913,54 +1102,38 @@
913
1102
  "dist",
914
1103
  "commands",
915
1104
  "profile",
916
- "project",
1105
+ "create",
917
1106
  "index.js"
918
1107
  ]
919
1108
  },
920
- "profile:set-default": {
1109
+ "profile:delete": {
921
1110
  "aliases": [],
922
1111
  "args": {
923
1112
  "name": {
924
- "description": "Profile name to set as default",
1113
+ "description": "Profile name to delete",
925
1114
  "name": "name",
926
1115
  "required": true
927
1116
  }
928
1117
  },
929
- "description": "Set the default profile",
930
- "examples": [
931
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
932
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
933
- ],
934
- "flags": {},
935
- "hasDynamicHelp": false,
936
- "hiddenAliases": [],
937
- "id": "profile:set-default",
938
- "pluginAlias": "@xano/cli",
939
- "pluginName": "@xano/cli",
940
- "pluginType": "core",
941
- "strict": true,
942
- "enableJsonFlag": false,
943
- "isESM": true,
944
- "relativePath": [
945
- "dist",
946
- "commands",
947
- "profile",
948
- "set-default",
949
- "index.js"
950
- ]
951
- },
952
- "profile:token": {
953
- "aliases": [],
954
- "args": {},
955
- "description": "Print the access token for the default profile",
1118
+ "description": "Delete a profile configuration",
956
1119
  "examples": [
957
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
958
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1120
+ "$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
1121
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
1122
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
959
1123
  ],
960
- "flags": {},
1124
+ "flags": {
1125
+ "force": {
1126
+ "char": "f",
1127
+ "description": "Skip confirmation prompt",
1128
+ "name": "force",
1129
+ "required": false,
1130
+ "allowNo": false,
1131
+ "type": "boolean"
1132
+ }
1133
+ },
961
1134
  "hasDynamicHelp": false,
962
1135
  "hiddenAliases": [],
963
- "id": "profile:token",
1136
+ "id": "profile:delete",
964
1137
  "pluginAlias": "@xano/cli",
965
1138
  "pluginName": "@xano/cli",
966
1139
  "pluginType": "core",
@@ -971,24 +1144,28 @@
971
1144
  "dist",
972
1145
  "commands",
973
1146
  "profile",
974
- "token",
1147
+ "delete",
975
1148
  "index.js"
976
1149
  ]
977
1150
  },
978
- "branch:set-live": {
1151
+ "profile:edit": {
979
1152
  "aliases": [],
980
1153
  "args": {
981
- "branch_label": {
982
- "description": "Branch label to set as live (use \"v1\" for default branch)",
983
- "name": "branch_label",
984
- "required": true
1154
+ "name": {
1155
+ "description": "Profile name to edit (uses default profile if not specified)",
1156
+ "name": "name",
1157
+ "required": false
985
1158
  }
986
1159
  },
987
- "description": "Set a branch as the live (active) branch for API requests",
1160
+ "description": "Edit an existing profile configuration",
988
1161
  "examples": [
989
- "$ xano branch set-live staging\nAre you sure you want to set 'staging' as the live branch? (y/N) y\nBranch 'staging' is now live\n",
990
- "$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
991
- "$ xano branch set-live production -f -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"production\",\n \"backup\": false,\n \"live\": true\n}\n"
1162
+ "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1163
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
1164
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
1165
+ "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1166
+ "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1167
+ "$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1168
+ "$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
992
1169
  ],
993
1170
  "flags": {
994
1171
  "profile": {
@@ -1010,195 +1187,91 @@
1010
1187
  "allowNo": false,
1011
1188
  "type": "boolean"
1012
1189
  },
1013
- "force": {
1014
- "char": "f",
1015
- "description": "Skip confirmation prompt",
1016
- "name": "force",
1190
+ "access_token": {
1191
+ "char": "t",
1192
+ "description": "Update access token for the Xano Metadata API",
1193
+ "name": "access_token",
1017
1194
  "required": false,
1018
- "allowNo": false,
1019
- "type": "boolean"
1195
+ "hasDynamicHelp": false,
1196
+ "multiple": false,
1197
+ "type": "option"
1020
1198
  },
1021
- "output": {
1022
- "char": "o",
1023
- "description": "Output format",
1024
- "name": "output",
1199
+ "account_origin": {
1200
+ "char": "a",
1201
+ "description": "Update account origin URL",
1202
+ "name": "account_origin",
1025
1203
  "required": false,
1026
- "default": "summary",
1027
1204
  "hasDynamicHelp": false,
1028
1205
  "multiple": false,
1029
- "options": [
1030
- "summary",
1031
- "json"
1032
- ],
1033
1206
  "type": "option"
1034
1207
  },
1035
- "workspace": {
1036
- "char": "w",
1037
- "description": "Workspace ID (uses profile workspace if not provided)",
1038
- "name": "workspace",
1039
- "required": false,
1040
- "hasDynamicHelp": false,
1041
- "multiple": false,
1042
- "type": "option"
1043
- }
1044
- },
1045
- "hasDynamicHelp": false,
1046
- "hiddenAliases": [],
1047
- "id": "branch:set-live",
1048
- "pluginAlias": "@xano/cli",
1049
- "pluginName": "@xano/cli",
1050
- "pluginType": "core",
1051
- "strict": true,
1052
- "enableJsonFlag": false,
1053
- "isESM": true,
1054
- "relativePath": [
1055
- "dist",
1056
- "commands",
1057
- "branch",
1058
- "set-live",
1059
- "index.js"
1060
- ]
1061
- },
1062
- "profile:wizard": {
1063
- "aliases": [],
1064
- "args": {},
1065
- "description": "Create a new profile configuration using an interactive wizard",
1066
- "examples": [
1067
- "$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
1068
- ],
1069
- "flags": {
1070
- "name": {
1071
- "char": "n",
1072
- "description": "Profile name (skip prompt if provided)",
1073
- "name": "name",
1208
+ "branch": {
1209
+ "char": "b",
1210
+ "description": "Update branch name",
1211
+ "name": "branch",
1074
1212
  "required": false,
1075
1213
  "hasDynamicHelp": false,
1076
1214
  "multiple": false,
1077
1215
  "type": "option"
1078
1216
  },
1079
- "origin": {
1080
- "char": "o",
1081
- "description": "Xano instance origin URL",
1082
- "name": "origin",
1217
+ "instance_origin": {
1218
+ "char": "i",
1219
+ "description": "Update instance origin URL",
1220
+ "name": "instance_origin",
1083
1221
  "required": false,
1084
- "default": "https://app.xano.com",
1085
1222
  "hasDynamicHelp": false,
1086
1223
  "multiple": false,
1087
1224
  "type": "option"
1088
- }
1089
- },
1090
- "hasDynamicHelp": false,
1091
- "hiddenAliases": [],
1092
- "id": "profile:wizard",
1093
- "pluginAlias": "@xano/cli",
1094
- "pluginName": "@xano/cli",
1095
- "pluginType": "core",
1096
- "strict": true,
1097
- "enableJsonFlag": false,
1098
- "isESM": true,
1099
- "relativePath": [
1100
- "dist",
1101
- "commands",
1102
- "profile",
1103
- "wizard",
1104
- "index.js"
1105
- ]
1106
- },
1107
- "function:edit": {
1108
- "aliases": [],
1109
- "args": {
1110
- "function_id": {
1111
- "description": "Function ID to edit",
1112
- "name": "function_id",
1113
- "required": false
1114
- }
1115
- },
1116
- "description": "Edit a function in a workspace",
1117
- "examples": [
1118
- "$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
1119
- "$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
1120
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
1121
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
1122
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
1123
- "$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
1124
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
1125
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
1126
- ],
1127
- "flags": {
1128
- "profile": {
1129
- "char": "p",
1130
- "description": "Profile to use for this command",
1131
- "env": "XANO_PROFILE",
1132
- "name": "profile",
1225
+ },
1226
+ "project": {
1227
+ "char": "j",
1228
+ "description": "Update project ID",
1229
+ "name": "project",
1133
1230
  "required": false,
1134
1231
  "hasDynamicHelp": false,
1135
1232
  "multiple": false,
1136
1233
  "type": "option"
1137
1234
  },
1138
- "verbose": {
1139
- "char": "v",
1140
- "description": "Show detailed request/response information",
1141
- "env": "XANO_VERBOSE",
1142
- "name": "verbose",
1235
+ "remove-branch": {
1236
+ "description": "Remove branch from profile",
1237
+ "name": "remove-branch",
1143
1238
  "required": false,
1144
1239
  "allowNo": false,
1145
1240
  "type": "boolean"
1146
1241
  },
1147
- "edit": {
1148
- "char": "e",
1149
- "description": "Open file in editor before updating function (requires --file)",
1150
- "name": "edit",
1242
+ "remove-project": {
1243
+ "description": "Remove project from profile",
1244
+ "name": "remove-project",
1151
1245
  "required": false,
1152
1246
  "allowNo": false,
1153
1247
  "type": "boolean"
1154
1248
  },
1155
- "file": {
1156
- "char": "f",
1157
- "description": "Path to file containing XanoScript code",
1158
- "exclusive": [
1159
- "stdin"
1160
- ],
1161
- "name": "file",
1162
- "required": false,
1163
- "hasDynamicHelp": false,
1164
- "multiple": false,
1165
- "type": "option"
1166
- },
1167
- "output": {
1168
- "char": "o",
1169
- "description": "Output format",
1170
- "name": "output",
1171
- "required": false,
1172
- "default": "summary",
1173
- "hasDynamicHelp": false,
1174
- "multiple": false,
1175
- "options": [
1176
- "summary",
1177
- "json"
1178
- ],
1179
- "type": "option"
1180
- },
1181
- "publish": {
1182
- "description": "Publish the function after editing",
1183
- "name": "publish",
1249
+ "remove-run-base-url": {
1250
+ "description": "Remove run_base_url from profile (use default)",
1251
+ "name": "remove-run-base-url",
1184
1252
  "required": false,
1185
1253
  "allowNo": false,
1186
1254
  "type": "boolean"
1187
1255
  },
1188
- "stdin": {
1189
- "char": "s",
1190
- "description": "Read XanoScript code from stdin",
1191
- "exclusive": [
1192
- "file"
1193
- ],
1194
- "name": "stdin",
1256
+ "remove-workspace": {
1257
+ "description": "Remove workspace from profile",
1258
+ "name": "remove-workspace",
1195
1259
  "required": false,
1196
1260
  "allowNo": false,
1197
1261
  "type": "boolean"
1198
1262
  },
1263
+ "run_base_url": {
1264
+ "char": "r",
1265
+ "description": "Update Xano Run API base URL",
1266
+ "name": "run_base_url",
1267
+ "required": false,
1268
+ "hasDynamicHelp": false,
1269
+ "multiple": false,
1270
+ "type": "option"
1271
+ },
1199
1272
  "workspace": {
1200
1273
  "char": "w",
1201
- "description": "Workspace ID (optional if set in profile)",
1274
+ "description": "Update workspace name",
1202
1275
  "name": "workspace",
1203
1276
  "required": false,
1204
1277
  "hasDynamicHelp": false,
@@ -1208,7 +1281,7 @@
1208
1281
  },
1209
1282
  "hasDynamicHelp": false,
1210
1283
  "hiddenAliases": [],
1211
- "id": "function:edit",
1284
+ "id": "profile:edit",
1212
1285
  "pluginAlias": "@xano/cli",
1213
1286
  "pluginName": "@xano/cli",
1214
1287
  "pluginType": "core",
@@ -1218,103 +1291,59 @@
1218
1291
  "relativePath": [
1219
1292
  "dist",
1220
1293
  "commands",
1221
- "function",
1294
+ "profile",
1222
1295
  "edit",
1223
1296
  "index.js"
1224
1297
  ]
1225
1298
  },
1226
- "function:create": {
1299
+ "profile:get-default": {
1227
1300
  "aliases": [],
1228
1301
  "args": {},
1229
- "description": "Create a new function in a workspace",
1302
+ "description": "Get the current default profile name",
1230
1303
  "examples": [
1231
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
1232
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
1233
- "$ xano function:create -w 40 -f function.xs --edit\n# Opens function.xs in $EDITOR, then creates function with edited content\nFunction created successfully!\nID: 123\nName: my_function\n",
1234
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
1235
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
1304
+ "$ xano profile:get-default\nproduction\n",
1305
+ "$ xano profile:get-default\nNo default profile set\n"
1306
+ ],
1307
+ "flags": {},
1308
+ "hasDynamicHelp": false,
1309
+ "hiddenAliases": [],
1310
+ "id": "profile:get-default",
1311
+ "pluginAlias": "@xano/cli",
1312
+ "pluginName": "@xano/cli",
1313
+ "pluginType": "core",
1314
+ "strict": true,
1315
+ "enableJsonFlag": false,
1316
+ "isESM": true,
1317
+ "relativePath": [
1318
+ "dist",
1319
+ "commands",
1320
+ "profile",
1321
+ "get-default",
1322
+ "index.js"
1323
+ ]
1324
+ },
1325
+ "profile:list": {
1326
+ "aliases": [],
1327
+ "args": {},
1328
+ "description": "List all available profile configurations",
1329
+ "examples": [
1330
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1331
+ "$ 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 Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1332
+ "$ 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 Project: my-project\n"
1236
1333
  ],
1237
1334
  "flags": {
1238
- "profile": {
1239
- "char": "p",
1240
- "description": "Profile to use for this command",
1241
- "env": "XANO_PROFILE",
1242
- "name": "profile",
1243
- "required": false,
1244
- "hasDynamicHelp": false,
1245
- "multiple": false,
1246
- "type": "option"
1247
- },
1248
- "verbose": {
1249
- "char": "v",
1250
- "description": "Show detailed request/response information",
1251
- "env": "XANO_VERBOSE",
1252
- "name": "verbose",
1253
- "required": false,
1254
- "allowNo": false,
1255
- "type": "boolean"
1256
- },
1257
- "edit": {
1258
- "char": "e",
1259
- "dependsOn": [
1260
- "file"
1261
- ],
1262
- "description": "Open file in editor before creating function (requires --file)",
1263
- "name": "edit",
1264
- "required": false,
1265
- "allowNo": false,
1266
- "type": "boolean"
1267
- },
1268
- "file": {
1269
- "char": "f",
1270
- "description": "Path to file containing XanoScript code",
1271
- "exclusive": [
1272
- "stdin"
1273
- ],
1274
- "name": "file",
1275
- "required": false,
1276
- "hasDynamicHelp": false,
1277
- "multiple": false,
1278
- "type": "option"
1279
- },
1280
- "output": {
1281
- "char": "o",
1282
- "description": "Output format",
1283
- "name": "output",
1284
- "required": false,
1285
- "default": "summary",
1286
- "hasDynamicHelp": false,
1287
- "multiple": false,
1288
- "options": [
1289
- "summary",
1290
- "json"
1291
- ],
1292
- "type": "option"
1293
- },
1294
- "stdin": {
1295
- "char": "s",
1296
- "description": "Read XanoScript code from stdin",
1297
- "exclusive": [
1298
- "file"
1299
- ],
1300
- "name": "stdin",
1335
+ "details": {
1336
+ "char": "d",
1337
+ "description": "Show detailed information for each profile",
1338
+ "name": "details",
1301
1339
  "required": false,
1302
1340
  "allowNo": false,
1303
1341
  "type": "boolean"
1304
- },
1305
- "workspace": {
1306
- "char": "w",
1307
- "description": "Workspace ID (optional if set in profile)",
1308
- "name": "workspace",
1309
- "required": false,
1310
- "hasDynamicHelp": false,
1311
- "multiple": false,
1312
- "type": "option"
1313
1342
  }
1314
1343
  },
1315
1344
  "hasDynamicHelp": false,
1316
1345
  "hiddenAliases": [],
1317
- "id": "function:create",
1346
+ "id": "profile:list",
1318
1347
  "pluginAlias": "@xano/cli",
1319
1348
  "pluginName": "@xano/cli",
1320
1349
  "pluginType": "core",
@@ -1324,20 +1353,19 @@
1324
1353
  "relativePath": [
1325
1354
  "dist",
1326
1355
  "commands",
1327
- "function",
1328
- "create",
1356
+ "profile",
1357
+ "list",
1329
1358
  "index.js"
1330
1359
  ]
1331
1360
  },
1332
- "function:list": {
1361
+ "profile:me": {
1333
1362
  "aliases": [],
1334
1363
  "args": {},
1335
- "description": "List all functions in a workspace from the Xano Metadata API",
1364
+ "description": "Get information about the currently authenticated user",
1336
1365
  "examples": [
1337
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
1338
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
1339
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
1340
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
1366
+ "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
1367
+ "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
1368
+ "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
1341
1369
  ],
1342
1370
  "flags": {
1343
1371
  "profile": {
@@ -1359,33 +1387,6 @@
1359
1387
  "allowNo": false,
1360
1388
  "type": "boolean"
1361
1389
  },
1362
- "include_draft": {
1363
- "description": "Include draft functions",
1364
- "name": "include_draft",
1365
- "required": false,
1366
- "allowNo": false,
1367
- "type": "boolean"
1368
- },
1369
- "include_xanoscript": {
1370
- "description": "Include XanoScript in response",
1371
- "name": "include_xanoscript",
1372
- "required": false,
1373
- "allowNo": false,
1374
- "type": "boolean"
1375
- },
1376
- "order": {
1377
- "description": "Sort order",
1378
- "name": "order",
1379
- "required": false,
1380
- "default": "desc",
1381
- "hasDynamicHelp": false,
1382
- "multiple": false,
1383
- "options": [
1384
- "asc",
1385
- "desc"
1386
- ],
1387
- "type": "option"
1388
- },
1389
1390
  "output": {
1390
1391
  "char": "o",
1391
1392
  "description": "Output format",
@@ -1399,39 +1400,132 @@
1399
1400
  "json"
1400
1401
  ],
1401
1402
  "type": "option"
1402
- },
1403
- "page": {
1404
- "description": "Page number for pagination",
1405
- "name": "page",
1406
- "required": false,
1407
- "default": 1,
1408
- "hasDynamicHelp": false,
1409
- "multiple": false,
1410
- "type": "option"
1411
- },
1412
- "per_page": {
1413
- "description": "Number of results per page",
1414
- "name": "per_page",
1415
- "required": false,
1416
- "default": 50,
1417
- "hasDynamicHelp": false,
1418
- "multiple": false,
1419
- "type": "option"
1420
- },
1421
- "sort": {
1422
- "description": "Sort field",
1423
- "name": "sort",
1403
+ }
1404
+ },
1405
+ "hasDynamicHelp": false,
1406
+ "hiddenAliases": [],
1407
+ "id": "profile:me",
1408
+ "pluginAlias": "@xano/cli",
1409
+ "pluginName": "@xano/cli",
1410
+ "pluginType": "core",
1411
+ "strict": true,
1412
+ "enableJsonFlag": false,
1413
+ "isESM": true,
1414
+ "relativePath": [
1415
+ "dist",
1416
+ "commands",
1417
+ "profile",
1418
+ "me",
1419
+ "index.js"
1420
+ ]
1421
+ },
1422
+ "profile:project": {
1423
+ "aliases": [],
1424
+ "args": {},
1425
+ "description": "Print the project for the default profile",
1426
+ "examples": [
1427
+ "$ xano profile:project\nmy-project-id\n",
1428
+ "$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
1429
+ ],
1430
+ "flags": {},
1431
+ "hasDynamicHelp": false,
1432
+ "hiddenAliases": [],
1433
+ "id": "profile:project",
1434
+ "pluginAlias": "@xano/cli",
1435
+ "pluginName": "@xano/cli",
1436
+ "pluginType": "core",
1437
+ "strict": true,
1438
+ "enableJsonFlag": false,
1439
+ "isESM": true,
1440
+ "relativePath": [
1441
+ "dist",
1442
+ "commands",
1443
+ "profile",
1444
+ "project",
1445
+ "index.js"
1446
+ ]
1447
+ },
1448
+ "profile:set-default": {
1449
+ "aliases": [],
1450
+ "args": {
1451
+ "name": {
1452
+ "description": "Profile name to set as default",
1453
+ "name": "name",
1454
+ "required": true
1455
+ }
1456
+ },
1457
+ "description": "Set the default profile",
1458
+ "examples": [
1459
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
1460
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
1461
+ ],
1462
+ "flags": {},
1463
+ "hasDynamicHelp": false,
1464
+ "hiddenAliases": [],
1465
+ "id": "profile:set-default",
1466
+ "pluginAlias": "@xano/cli",
1467
+ "pluginName": "@xano/cli",
1468
+ "pluginType": "core",
1469
+ "strict": true,
1470
+ "enableJsonFlag": false,
1471
+ "isESM": true,
1472
+ "relativePath": [
1473
+ "dist",
1474
+ "commands",
1475
+ "profile",
1476
+ "set-default",
1477
+ "index.js"
1478
+ ]
1479
+ },
1480
+ "profile:token": {
1481
+ "aliases": [],
1482
+ "args": {},
1483
+ "description": "Print the access token for the default profile",
1484
+ "examples": [
1485
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
1486
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1487
+ ],
1488
+ "flags": {},
1489
+ "hasDynamicHelp": false,
1490
+ "hiddenAliases": [],
1491
+ "id": "profile:token",
1492
+ "pluginAlias": "@xano/cli",
1493
+ "pluginName": "@xano/cli",
1494
+ "pluginType": "core",
1495
+ "strict": true,
1496
+ "enableJsonFlag": false,
1497
+ "isESM": true,
1498
+ "relativePath": [
1499
+ "dist",
1500
+ "commands",
1501
+ "profile",
1502
+ "token",
1503
+ "index.js"
1504
+ ]
1505
+ },
1506
+ "profile:wizard": {
1507
+ "aliases": [],
1508
+ "args": {},
1509
+ "description": "Create a new profile configuration using an interactive wizard",
1510
+ "examples": [
1511
+ "$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
1512
+ ],
1513
+ "flags": {
1514
+ "name": {
1515
+ "char": "n",
1516
+ "description": "Profile name (skip prompt if provided)",
1517
+ "name": "name",
1424
1518
  "required": false,
1425
- "default": "created_at",
1426
1519
  "hasDynamicHelp": false,
1427
1520
  "multiple": false,
1428
1521
  "type": "option"
1429
1522
  },
1430
- "workspace": {
1431
- "char": "w",
1432
- "description": "Workspace ID (optional if set in profile)",
1433
- "name": "workspace",
1523
+ "origin": {
1524
+ "char": "o",
1525
+ "description": "Xano instance origin URL",
1526
+ "name": "origin",
1434
1527
  "required": false,
1528
+ "default": "https://app.xano.com",
1435
1529
  "hasDynamicHelp": false,
1436
1530
  "multiple": false,
1437
1531
  "type": "option"
@@ -1439,7 +1533,7 @@
1439
1533
  },
1440
1534
  "hasDynamicHelp": false,
1441
1535
  "hiddenAliases": [],
1442
- "id": "function:list",
1536
+ "id": "profile:wizard",
1443
1537
  "pluginAlias": "@xano/cli",
1444
1538
  "pluginName": "@xano/cli",
1445
1539
  "pluginType": "core",
@@ -1449,8 +1543,8 @@
1449
1543
  "relativePath": [
1450
1544
  "dist",
1451
1545
  "commands",
1452
- "function",
1453
- "list",
1546
+ "profile",
1547
+ "wizard",
1454
1548
  "index.js"
1455
1549
  ]
1456
1550
  },
@@ -1655,23 +1749,15 @@
1655
1749
  "index.js"
1656
1750
  ]
1657
1751
  },
1658
- "function:get": {
1752
+ "static_host:list": {
1659
1753
  "aliases": [],
1660
- "args": {
1661
- "function_id": {
1662
- "description": "Function ID",
1663
- "name": "function_id",
1664
- "required": false
1665
- }
1666
- },
1667
- "description": "Get a specific function from a workspace",
1754
+ "args": {},
1755
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
1668
1756
  "examples": [
1669
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
1670
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
1671
- "$ xano function:get\nSelect a function:\n yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
1672
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
1673
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
1674
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
1757
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1758
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1759
+ "$ 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",
1760
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1675
1761
  ],
1676
1762
  "flags": {
1677
1763
  "profile": {
@@ -1693,20 +1779,6 @@
1693
1779
  "allowNo": false,
1694
1780
  "type": "boolean"
1695
1781
  },
1696
- "include_draft": {
1697
- "description": "Include draft version",
1698
- "name": "include_draft",
1699
- "required": false,
1700
- "allowNo": false,
1701
- "type": "boolean"
1702
- },
1703
- "include_xanoscript": {
1704
- "description": "Include XanoScript in response",
1705
- "name": "include_xanoscript",
1706
- "required": false,
1707
- "allowNo": false,
1708
- "type": "boolean"
1709
- },
1710
1782
  "output": {
1711
1783
  "char": "o",
1712
1784
  "description": "Output format",
@@ -1717,11 +1789,28 @@
1717
1789
  "multiple": false,
1718
1790
  "options": [
1719
1791
  "summary",
1720
- "json",
1721
- "xs"
1792
+ "json"
1722
1793
  ],
1723
1794
  "type": "option"
1724
1795
  },
1796
+ "page": {
1797
+ "description": "Page number for pagination",
1798
+ "name": "page",
1799
+ "required": false,
1800
+ "default": 1,
1801
+ "hasDynamicHelp": false,
1802
+ "multiple": false,
1803
+ "type": "option"
1804
+ },
1805
+ "per_page": {
1806
+ "description": "Number of results per page",
1807
+ "name": "per_page",
1808
+ "required": false,
1809
+ "default": 50,
1810
+ "hasDynamicHelp": false,
1811
+ "multiple": false,
1812
+ "type": "option"
1813
+ },
1725
1814
  "workspace": {
1726
1815
  "char": "w",
1727
1816
  "description": "Workspace ID (optional if set in profile)",
@@ -1734,7 +1823,7 @@
1734
1823
  },
1735
1824
  "hasDynamicHelp": false,
1736
1825
  "hiddenAliases": [],
1737
- "id": "function:get",
1826
+ "id": "static_host:list",
1738
1827
  "pluginAlias": "@xano/cli",
1739
1828
  "pluginName": "@xano/cli",
1740
1829
  "pluginType": "core",
@@ -1744,8 +1833,8 @@
1744
1833
  "relativePath": [
1745
1834
  "dist",
1746
1835
  "commands",
1747
- "function",
1748
- "get",
1836
+ "static_host",
1837
+ "list",
1749
1838
  "index.js"
1750
1839
  ]
1751
1840
  },
@@ -1828,15 +1917,20 @@
1828
1917
  "index.js"
1829
1918
  ]
1830
1919
  },
1831
- "static_host:list": {
1920
+ "workspace:delete": {
1832
1921
  "aliases": [],
1833
- "args": {},
1834
- "description": "List all static hosts in a workspace from the Xano Metadata API",
1922
+ "args": {
1923
+ "workspace_id": {
1924
+ "description": "Workspace ID to delete",
1925
+ "name": "workspace_id",
1926
+ "required": true
1927
+ }
1928
+ },
1929
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
1835
1930
  "examples": [
1836
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1837
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
1838
- "$ 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",
1839
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1931
+ "$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
1932
+ "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
1933
+ "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
1840
1934
  ],
1841
1935
  "flags": {
1842
1936
  "profile": {
@@ -1858,6 +1952,14 @@
1858
1952
  "allowNo": false,
1859
1953
  "type": "boolean"
1860
1954
  },
1955
+ "force": {
1956
+ "char": "f",
1957
+ "description": "Skip confirmation prompt",
1958
+ "name": "force",
1959
+ "required": false,
1960
+ "allowNo": false,
1961
+ "type": "boolean"
1962
+ },
1861
1963
  "output": {
1862
1964
  "char": "o",
1863
1965
  "description": "Output format",
@@ -1871,38 +1973,11 @@
1871
1973
  "json"
1872
1974
  ],
1873
1975
  "type": "option"
1874
- },
1875
- "page": {
1876
- "description": "Page number for pagination",
1877
- "name": "page",
1878
- "required": false,
1879
- "default": 1,
1880
- "hasDynamicHelp": false,
1881
- "multiple": false,
1882
- "type": "option"
1883
- },
1884
- "per_page": {
1885
- "description": "Number of results per page",
1886
- "name": "per_page",
1887
- "required": false,
1888
- "default": 50,
1889
- "hasDynamicHelp": false,
1890
- "multiple": false,
1891
- "type": "option"
1892
- },
1893
- "workspace": {
1894
- "char": "w",
1895
- "description": "Workspace ID (optional if set in profile)",
1896
- "name": "workspace",
1897
- "required": false,
1898
- "hasDynamicHelp": false,
1899
- "multiple": false,
1900
- "type": "option"
1901
1976
  }
1902
1977
  },
1903
1978
  "hasDynamicHelp": false,
1904
1979
  "hiddenAliases": [],
1905
- "id": "static_host:list",
1980
+ "id": "workspace:delete",
1906
1981
  "pluginAlias": "@xano/cli",
1907
1982
  "pluginName": "@xano/cli",
1908
1983
  "pluginType": "core",
@@ -1912,8 +1987,8 @@
1912
1987
  "relativePath": [
1913
1988
  "dist",
1914
1989
  "commands",
1915
- "static_host",
1916
- "list",
1990
+ "workspace",
1991
+ "delete",
1917
1992
  "index.js"
1918
1993
  ]
1919
1994
  },
@@ -2017,15 +2092,20 @@
2017
2092
  "index.js"
2018
2093
  ]
2019
2094
  },
2020
- "workspace:list": {
2095
+ "workspace:get": {
2021
2096
  "aliases": [],
2022
- "args": {},
2023
- "description": "List all workspaces from the Xano Metadata API",
2097
+ "args": {
2098
+ "workspace_id": {
2099
+ "description": "Workspace ID to get details for (uses profile workspace if not provided)",
2100
+ "name": "workspace_id",
2101
+ "required": false
2102
+ }
2103
+ },
2104
+ "description": "Get details of a specific workspace from the Xano Metadata API",
2024
2105
  "examples": [
2025
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
2026
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
2027
- "$ 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",
2028
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
2106
+ "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
2107
+ "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
2108
+ "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
2029
2109
  ],
2030
2110
  "flags": {
2031
2111
  "profile": {
@@ -2064,7 +2144,7 @@
2064
2144
  },
2065
2145
  "hasDynamicHelp": false,
2066
2146
  "hiddenAliases": [],
2067
- "id": "workspace:list",
2147
+ "id": "workspace:get",
2068
2148
  "pluginAlias": "@xano/cli",
2069
2149
  "pluginName": "@xano/cli",
2070
2150
  "pluginType": "core",
@@ -2075,24 +2155,19 @@
2075
2155
  "dist",
2076
2156
  "commands",
2077
2157
  "workspace",
2078
- "list",
2158
+ "get",
2079
2159
  "index.js"
2080
2160
  ]
2081
2161
  },
2082
- "workspace:get": {
2162
+ "workspace:list": {
2083
2163
  "aliases": [],
2084
- "args": {
2085
- "workspace_id": {
2086
- "description": "Workspace ID to get details for (uses profile workspace if not provided)",
2087
- "name": "workspace_id",
2088
- "required": false
2089
- }
2090
- },
2091
- "description": "Get details of a specific workspace from the Xano Metadata API",
2164
+ "args": {},
2165
+ "description": "List all workspaces from the Xano Metadata API",
2092
2166
  "examples": [
2093
- "$ xano workspace get 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
2094
- "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
2095
- "$ xano workspace get 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
2167
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
2168
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
2169
+ "$ 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",
2170
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
2096
2171
  ],
2097
2172
  "flags": {
2098
2173
  "profile": {
@@ -2131,7 +2206,7 @@
2131
2206
  },
2132
2207
  "hasDynamicHelp": false,
2133
2208
  "hiddenAliases": [],
2134
- "id": "workspace:get",
2209
+ "id": "workspace:list",
2135
2210
  "pluginAlias": "@xano/cli",
2136
2211
  "pluginName": "@xano/cli",
2137
2212
  "pluginType": "core",
@@ -2142,7 +2217,7 @@
2142
2217
  "dist",
2143
2218
  "commands",
2144
2219
  "workspace",
2145
- "get",
2220
+ "list",
2146
2221
  "index.js"
2147
2222
  ]
2148
2223
  },
@@ -2175,8 +2250,7 @@
2175
2250
  },
2176
2251
  "verbose": {
2177
2252
  "char": "v",
2178
- "description": "Show detailed request/response information",
2179
- "env": "XANO_VERBOSE",
2253
+ "description": "Show request details",
2180
2254
  "name": "verbose",
2181
2255
  "required": false,
2182
2256
  "allowNo": false,
@@ -2261,8 +2335,7 @@
2261
2335
  },
2262
2336
  "verbose": {
2263
2337
  "char": "v",
2264
- "description": "Show detailed request/response information",
2265
- "env": "XANO_VERBOSE",
2338
+ "description": "Show request details",
2266
2339
  "name": "verbose",
2267
2340
  "required": false,
2268
2341
  "allowNo": false,
@@ -2299,85 +2372,24 @@
2299
2372
  "relativePath": [
2300
2373
  "dist",
2301
2374
  "commands",
2302
- "workspace",
2303
- "push",
2304
- "index.js"
2305
- ]
2306
- },
2307
- "run:env:delete": {
2308
- "aliases": [],
2309
- "args": {
2310
- "name": {
2311
- "description": "Environment variable name",
2312
- "name": "name",
2313
- "required": true
2314
- }
2315
- },
2316
- "description": "Delete an environment variable",
2317
- "examples": [
2318
- "$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
2319
- "$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
2320
- ],
2321
- "flags": {
2322
- "profile": {
2323
- "char": "p",
2324
- "description": "Profile to use for this command",
2325
- "env": "XANO_PROFILE",
2326
- "name": "profile",
2327
- "required": false,
2328
- "hasDynamicHelp": false,
2329
- "multiple": false,
2330
- "type": "option"
2331
- },
2332
- "verbose": {
2333
- "char": "v",
2334
- "description": "Show detailed request/response information",
2335
- "env": "XANO_VERBOSE",
2336
- "name": "verbose",
2337
- "required": false,
2338
- "allowNo": false,
2339
- "type": "boolean"
2340
- },
2341
- "force": {
2342
- "char": "f",
2343
- "description": "Skip confirmation prompt",
2344
- "name": "force",
2345
- "required": false,
2346
- "allowNo": false,
2347
- "type": "boolean"
2348
- }
2349
- },
2350
- "hasDynamicHelp": false,
2351
- "hiddenAliases": [],
2352
- "id": "run:env:delete",
2353
- "pluginAlias": "@xano/cli",
2354
- "pluginName": "@xano/cli",
2355
- "pluginType": "core",
2356
- "strict": true,
2357
- "isESM": true,
2358
- "relativePath": [
2359
- "dist",
2360
- "commands",
2361
- "run",
2362
- "env",
2363
- "delete",
2375
+ "workspace",
2376
+ "push",
2364
2377
  "index.js"
2365
2378
  ]
2366
2379
  },
2367
- "workspace:delete": {
2380
+ "run:env:delete": {
2368
2381
  "aliases": [],
2369
2382
  "args": {
2370
- "workspace_id": {
2371
- "description": "Workspace ID to delete",
2372
- "name": "workspace_id",
2383
+ "name": {
2384
+ "description": "Environment variable name",
2385
+ "name": "name",
2373
2386
  "required": true
2374
2387
  }
2375
2388
  },
2376
- "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
2389
+ "description": "Delete an environment variable",
2377
2390
  "examples": [
2378
- "$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
2379
- "$ xano workspace delete 123 --force\nDeleted workspace 123\n",
2380
- "$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
2391
+ "$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
2392
+ "$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
2381
2393
  ],
2382
2394
  "flags": {
2383
2395
  "profile": {
@@ -2406,35 +2418,21 @@
2406
2418
  "required": false,
2407
2419
  "allowNo": false,
2408
2420
  "type": "boolean"
2409
- },
2410
- "output": {
2411
- "char": "o",
2412
- "description": "Output format",
2413
- "name": "output",
2414
- "required": false,
2415
- "default": "summary",
2416
- "hasDynamicHelp": false,
2417
- "multiple": false,
2418
- "options": [
2419
- "summary",
2420
- "json"
2421
- ],
2422
- "type": "option"
2423
2421
  }
2424
2422
  },
2425
2423
  "hasDynamicHelp": false,
2426
2424
  "hiddenAliases": [],
2427
- "id": "workspace:delete",
2425
+ "id": "run:env:delete",
2428
2426
  "pluginAlias": "@xano/cli",
2429
2427
  "pluginName": "@xano/cli",
2430
2428
  "pluginType": "core",
2431
2429
  "strict": true,
2432
- "enableJsonFlag": false,
2433
2430
  "isESM": true,
2434
2431
  "relativePath": [
2435
2432
  "dist",
2436
2433
  "commands",
2437
- "workspace",
2434
+ "run",
2435
+ "env",
2438
2436
  "delete",
2439
2437
  "index.js"
2440
2438
  ]
@@ -2622,13 +2620,14 @@
2622
2620
  "index.js"
2623
2621
  ]
2624
2622
  },
2625
- "run:secrets:list": {
2623
+ "run:projects:create": {
2626
2624
  "aliases": [],
2627
2625
  "args": {},
2628
- "description": "List all secret keys",
2626
+ "description": "Create a new project",
2629
2627
  "examples": [
2630
- "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2631
- "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2628
+ "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2629
+ "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2630
+ "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
2632
2631
  ],
2633
2632
  "flags": {
2634
2633
  "profile": {
@@ -2650,16 +2649,35 @@
2650
2649
  "allowNo": false,
2651
2650
  "type": "boolean"
2652
2651
  },
2652
+ "description": {
2653
+ "char": "d",
2654
+ "description": "Project description",
2655
+ "name": "description",
2656
+ "required": false,
2657
+ "default": "",
2658
+ "hasDynamicHelp": false,
2659
+ "multiple": false,
2660
+ "type": "option"
2661
+ },
2662
+ "name": {
2663
+ "char": "n",
2664
+ "description": "Project name",
2665
+ "name": "name",
2666
+ "required": true,
2667
+ "hasDynamicHelp": false,
2668
+ "multiple": false,
2669
+ "type": "option"
2670
+ },
2653
2671
  "output": {
2654
2672
  "char": "o",
2655
2673
  "description": "Output format",
2656
2674
  "name": "output",
2657
2675
  "required": false,
2658
- "default": "table",
2676
+ "default": "summary",
2659
2677
  "hasDynamicHelp": false,
2660
2678
  "multiple": false,
2661
2679
  "options": [
2662
- "table",
2680
+ "summary",
2663
2681
  "json"
2664
2682
  ],
2665
2683
  "type": "option"
@@ -2667,7 +2685,7 @@
2667
2685
  },
2668
2686
  "hasDynamicHelp": false,
2669
2687
  "hiddenAliases": [],
2670
- "id": "run:secrets:list",
2688
+ "id": "run:projects:create",
2671
2689
  "pluginAlias": "@xano/cli",
2672
2690
  "pluginName": "@xano/cli",
2673
2691
  "pluginType": "core",
@@ -2677,24 +2695,78 @@
2677
2695
  "dist",
2678
2696
  "commands",
2679
2697
  "run",
2680
- "secrets",
2681
- "list",
2698
+ "projects",
2699
+ "create",
2682
2700
  "index.js"
2683
2701
  ]
2684
2702
  },
2685
- "run:secrets:get": {
2703
+ "run:projects:delete": {
2686
2704
  "aliases": [],
2687
2705
  "args": {
2688
- "name": {
2689
- "description": "Secret name",
2690
- "name": "name",
2706
+ "projectId": {
2707
+ "description": "Project ID to delete",
2708
+ "name": "projectId",
2691
2709
  "required": true
2692
2710
  }
2693
2711
  },
2694
- "description": "Get a secret value",
2712
+ "description": "Delete a project",
2695
2713
  "examples": [
2696
- "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
2697
- "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2714
+ "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
2715
+ "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
2716
+ ],
2717
+ "flags": {
2718
+ "profile": {
2719
+ "char": "p",
2720
+ "description": "Profile to use for this command",
2721
+ "env": "XANO_PROFILE",
2722
+ "name": "profile",
2723
+ "required": false,
2724
+ "hasDynamicHelp": false,
2725
+ "multiple": false,
2726
+ "type": "option"
2727
+ },
2728
+ "verbose": {
2729
+ "char": "v",
2730
+ "description": "Show detailed request/response information",
2731
+ "env": "XANO_VERBOSE",
2732
+ "name": "verbose",
2733
+ "required": false,
2734
+ "allowNo": false,
2735
+ "type": "boolean"
2736
+ },
2737
+ "force": {
2738
+ "char": "f",
2739
+ "description": "Skip confirmation prompt",
2740
+ "name": "force",
2741
+ "required": false,
2742
+ "allowNo": false,
2743
+ "type": "boolean"
2744
+ }
2745
+ },
2746
+ "hasDynamicHelp": false,
2747
+ "hiddenAliases": [],
2748
+ "id": "run:projects:delete",
2749
+ "pluginAlias": "@xano/cli",
2750
+ "pluginName": "@xano/cli",
2751
+ "pluginType": "core",
2752
+ "strict": true,
2753
+ "isESM": true,
2754
+ "relativePath": [
2755
+ "dist",
2756
+ "commands",
2757
+ "run",
2758
+ "projects",
2759
+ "delete",
2760
+ "index.js"
2761
+ ]
2762
+ },
2763
+ "run:projects:list": {
2764
+ "aliases": [],
2765
+ "args": {},
2766
+ "description": "List all projects",
2767
+ "examples": [
2768
+ "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
2769
+ "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
2698
2770
  ],
2699
2771
  "flags": {
2700
2772
  "profile": {
@@ -2721,11 +2793,11 @@
2721
2793
  "description": "Output format",
2722
2794
  "name": "output",
2723
2795
  "required": false,
2724
- "default": "value",
2796
+ "default": "table",
2725
2797
  "hasDynamicHelp": false,
2726
2798
  "multiple": false,
2727
2799
  "options": [
2728
- "value",
2800
+ "table",
2729
2801
  "json"
2730
2802
  ],
2731
2803
  "type": "option"
@@ -2733,7 +2805,7 @@
2733
2805
  },
2734
2806
  "hasDynamicHelp": false,
2735
2807
  "hiddenAliases": [],
2736
- "id": "run:secrets:get",
2808
+ "id": "run:projects:list",
2737
2809
  "pluginAlias": "@xano/cli",
2738
2810
  "pluginName": "@xano/cli",
2739
2811
  "pluginType": "core",
@@ -2743,24 +2815,25 @@
2743
2815
  "dist",
2744
2816
  "commands",
2745
2817
  "run",
2746
- "secrets",
2747
- "get",
2818
+ "projects",
2819
+ "list",
2748
2820
  "index.js"
2749
2821
  ]
2750
2822
  },
2751
- "run:secrets:set": {
2823
+ "run:projects:update": {
2752
2824
  "aliases": [],
2753
2825
  "args": {
2754
- "name": {
2755
- "description": "Secret name",
2756
- "name": "name",
2826
+ "projectId": {
2827
+ "description": "Project ID to update",
2828
+ "name": "projectId",
2757
2829
  "required": true
2758
2830
  }
2759
2831
  },
2760
- "description": "Set a secret",
2832
+ "description": "Update a project",
2761
2833
  "examples": [
2762
- "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
2763
- "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
2834
+ "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
2835
+ "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
2836
+ "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
2764
2837
  ],
2765
2838
  "flags": {
2766
2839
  "profile": {
@@ -2782,41 +2855,42 @@
2782
2855
  "allowNo": false,
2783
2856
  "type": "boolean"
2784
2857
  },
2785
- "repo": {
2786
- "char": "r",
2787
- "description": "Repository (for dockerconfigjson type)",
2788
- "name": "repo",
2858
+ "description": {
2859
+ "char": "d",
2860
+ "description": "New project description",
2861
+ "name": "description",
2789
2862
  "required": false,
2790
2863
  "hasDynamicHelp": false,
2791
2864
  "multiple": false,
2792
2865
  "type": "option"
2793
2866
  },
2794
- "type": {
2795
- "char": "t",
2796
- "description": "Secret type",
2797
- "name": "type",
2798
- "required": true,
2867
+ "name": {
2868
+ "char": "n",
2869
+ "description": "New project name",
2870
+ "name": "name",
2871
+ "required": false,
2799
2872
  "hasDynamicHelp": false,
2800
2873
  "multiple": false,
2801
- "options": [
2802
- "dockerconfigjson",
2803
- "service-account-token"
2804
- ],
2805
2874
  "type": "option"
2806
2875
  },
2807
- "value": {
2808
- "char": "v",
2809
- "description": "Secret value",
2810
- "name": "value",
2811
- "required": true,
2876
+ "output": {
2877
+ "char": "o",
2878
+ "description": "Output format",
2879
+ "name": "output",
2880
+ "required": false,
2881
+ "default": "summary",
2812
2882
  "hasDynamicHelp": false,
2813
2883
  "multiple": false,
2884
+ "options": [
2885
+ "summary",
2886
+ "json"
2887
+ ],
2814
2888
  "type": "option"
2815
2889
  }
2816
2890
  },
2817
2891
  "hasDynamicHelp": false,
2818
2892
  "hiddenAliases": [],
2819
- "id": "run:secrets:set",
2893
+ "id": "run:projects:update",
2820
2894
  "pluginAlias": "@xano/cli",
2821
2895
  "pluginName": "@xano/cli",
2822
2896
  "pluginType": "core",
@@ -2826,8 +2900,8 @@
2826
2900
  "dist",
2827
2901
  "commands",
2828
2902
  "run",
2829
- "secrets",
2830
- "set",
2903
+ "projects",
2904
+ "update",
2831
2905
  "index.js"
2832
2906
  ]
2833
2907
  },
@@ -2891,14 +2965,13 @@
2891
2965
  "index.js"
2892
2966
  ]
2893
2967
  },
2894
- "run:projects:create": {
2968
+ "run:secrets:list": {
2895
2969
  "aliases": [],
2896
2970
  "args": {},
2897
- "description": "Create a new project",
2971
+ "description": "List all secret keys",
2898
2972
  "examples": [
2899
- "$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2900
- "$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
2901
- "$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
2973
+ "$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
2974
+ "$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
2902
2975
  ],
2903
2976
  "flags": {
2904
2977
  "profile": {
@@ -2920,35 +2993,16 @@
2920
2993
  "allowNo": false,
2921
2994
  "type": "boolean"
2922
2995
  },
2923
- "description": {
2924
- "char": "d",
2925
- "description": "Project description",
2926
- "name": "description",
2927
- "required": false,
2928
- "default": "",
2929
- "hasDynamicHelp": false,
2930
- "multiple": false,
2931
- "type": "option"
2932
- },
2933
- "name": {
2934
- "char": "n",
2935
- "description": "Project name",
2936
- "name": "name",
2937
- "required": true,
2938
- "hasDynamicHelp": false,
2939
- "multiple": false,
2940
- "type": "option"
2941
- },
2942
2996
  "output": {
2943
2997
  "char": "o",
2944
2998
  "description": "Output format",
2945
2999
  "name": "output",
2946
3000
  "required": false,
2947
- "default": "summary",
3001
+ "default": "table",
2948
3002
  "hasDynamicHelp": false,
2949
3003
  "multiple": false,
2950
3004
  "options": [
2951
- "summary",
3005
+ "table",
2952
3006
  "json"
2953
3007
  ],
2954
3008
  "type": "option"
@@ -2956,7 +3010,7 @@
2956
3010
  },
2957
3011
  "hasDynamicHelp": false,
2958
3012
  "hiddenAliases": [],
2959
- "id": "run:projects:create",
3013
+ "id": "run:secrets:list",
2960
3014
  "pluginAlias": "@xano/cli",
2961
3015
  "pluginName": "@xano/cli",
2962
3016
  "pluginType": "core",
@@ -2966,18 +3020,24 @@
2966
3020
  "dist",
2967
3021
  "commands",
2968
3022
  "run",
2969
- "projects",
2970
- "create",
3023
+ "secrets",
3024
+ "list",
2971
3025
  "index.js"
2972
3026
  ]
2973
3027
  },
2974
- "run:projects:list": {
3028
+ "run:secrets:get": {
2975
3029
  "aliases": [],
2976
- "args": {},
2977
- "description": "List all projects",
3030
+ "args": {
3031
+ "name": {
3032
+ "description": "Secret name",
3033
+ "name": "name",
3034
+ "required": true
3035
+ }
3036
+ },
3037
+ "description": "Get a secret value",
2978
3038
  "examples": [
2979
- "$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
2980
- "$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
3039
+ "$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
3040
+ "$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
2981
3041
  ],
2982
3042
  "flags": {
2983
3043
  "profile": {
@@ -3004,11 +3064,11 @@
3004
3064
  "description": "Output format",
3005
3065
  "name": "output",
3006
3066
  "required": false,
3007
- "default": "table",
3067
+ "default": "value",
3008
3068
  "hasDynamicHelp": false,
3009
3069
  "multiple": false,
3010
3070
  "options": [
3011
- "table",
3071
+ "value",
3012
3072
  "json"
3013
3073
  ],
3014
3074
  "type": "option"
@@ -3016,7 +3076,7 @@
3016
3076
  },
3017
3077
  "hasDynamicHelp": false,
3018
3078
  "hiddenAliases": [],
3019
- "id": "run:projects:list",
3079
+ "id": "run:secrets:get",
3020
3080
  "pluginAlias": "@xano/cli",
3021
3081
  "pluginName": "@xano/cli",
3022
3082
  "pluginType": "core",
@@ -3026,24 +3086,24 @@
3026
3086
  "dist",
3027
3087
  "commands",
3028
3088
  "run",
3029
- "projects",
3030
- "list",
3089
+ "secrets",
3090
+ "get",
3031
3091
  "index.js"
3032
3092
  ]
3033
3093
  },
3034
- "run:projects:delete": {
3094
+ "run:sessions:delete": {
3035
3095
  "aliases": [],
3036
3096
  "args": {
3037
- "projectId": {
3038
- "description": "Project ID to delete",
3039
- "name": "projectId",
3097
+ "sessionId": {
3098
+ "description": "Session ID",
3099
+ "name": "sessionId",
3040
3100
  "required": true
3041
3101
  }
3042
3102
  },
3043
- "description": "Delete a project",
3103
+ "description": "Delete a session",
3044
3104
  "examples": [
3045
- "$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
3046
- "$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
3105
+ "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
3106
+ "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
3047
3107
  ],
3048
3108
  "flags": {
3049
3109
  "profile": {
@@ -3076,7 +3136,7 @@
3076
3136
  },
3077
3137
  "hasDynamicHelp": false,
3078
3138
  "hiddenAliases": [],
3079
- "id": "run:projects:delete",
3139
+ "id": "run:sessions:delete",
3080
3140
  "pluginAlias": "@xano/cli",
3081
3141
  "pluginName": "@xano/cli",
3082
3142
  "pluginType": "core",
@@ -3086,25 +3146,24 @@
3086
3146
  "dist",
3087
3147
  "commands",
3088
3148
  "run",
3089
- "projects",
3149
+ "sessions",
3090
3150
  "delete",
3091
3151
  "index.js"
3092
3152
  ]
3093
3153
  },
3094
- "run:projects:update": {
3154
+ "run:secrets:set": {
3095
3155
  "aliases": [],
3096
3156
  "args": {
3097
- "projectId": {
3098
- "description": "Project ID to update",
3099
- "name": "projectId",
3157
+ "name": {
3158
+ "description": "Secret name",
3159
+ "name": "name",
3100
3160
  "required": true
3101
3161
  }
3102
3162
  },
3103
- "description": "Update a project",
3163
+ "description": "Set a secret",
3104
3164
  "examples": [
3105
- "$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
3106
- "$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
3107
- "$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
3165
+ "$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
3166
+ "$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
3108
3167
  ],
3109
3168
  "flags": {
3110
3169
  "profile": {
@@ -3126,42 +3185,41 @@
3126
3185
  "allowNo": false,
3127
3186
  "type": "boolean"
3128
3187
  },
3129
- "description": {
3130
- "char": "d",
3131
- "description": "New project description",
3132
- "name": "description",
3188
+ "repo": {
3189
+ "char": "r",
3190
+ "description": "Repository (for dockerconfigjson type)",
3191
+ "name": "repo",
3133
3192
  "required": false,
3134
3193
  "hasDynamicHelp": false,
3135
3194
  "multiple": false,
3136
3195
  "type": "option"
3137
3196
  },
3138
- "name": {
3139
- "char": "n",
3140
- "description": "New project name",
3141
- "name": "name",
3142
- "required": false,
3197
+ "type": {
3198
+ "char": "t",
3199
+ "description": "Secret type",
3200
+ "name": "type",
3201
+ "required": true,
3143
3202
  "hasDynamicHelp": false,
3144
3203
  "multiple": false,
3204
+ "options": [
3205
+ "dockerconfigjson",
3206
+ "service-account-token"
3207
+ ],
3145
3208
  "type": "option"
3146
3209
  },
3147
- "output": {
3148
- "char": "o",
3149
- "description": "Output format",
3150
- "name": "output",
3151
- "required": false,
3152
- "default": "summary",
3210
+ "value": {
3211
+ "char": "v",
3212
+ "description": "Secret value",
3213
+ "name": "value",
3214
+ "required": true,
3153
3215
  "hasDynamicHelp": false,
3154
3216
  "multiple": false,
3155
- "options": [
3156
- "summary",
3157
- "json"
3158
- ],
3159
3217
  "type": "option"
3160
3218
  }
3161
3219
  },
3162
3220
  "hasDynamicHelp": false,
3163
3221
  "hiddenAliases": [],
3164
- "id": "run:projects:update",
3222
+ "id": "run:secrets:set",
3165
3223
  "pluginAlias": "@xano/cli",
3166
3224
  "pluginName": "@xano/cli",
3167
3225
  "pluginType": "core",
@@ -3171,12 +3229,12 @@
3171
3229
  "dist",
3172
3230
  "commands",
3173
3231
  "run",
3174
- "projects",
3175
- "update",
3232
+ "secrets",
3233
+ "set",
3176
3234
  "index.js"
3177
3235
  ]
3178
3236
  },
3179
- "run:sessions:delete": {
3237
+ "run:sessions:get": {
3180
3238
  "aliases": [],
3181
3239
  "args": {
3182
3240
  "sessionId": {
@@ -3185,10 +3243,10 @@
3185
3243
  "required": true
3186
3244
  }
3187
3245
  },
3188
- "description": "Delete a session",
3246
+ "description": "Get session details",
3189
3247
  "examples": [
3190
- "$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
3191
- "$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
3248
+ "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
3249
+ "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
3192
3250
  ],
3193
3251
  "flags": {
3194
3252
  "profile": {
@@ -3210,18 +3268,24 @@
3210
3268
  "allowNo": false,
3211
3269
  "type": "boolean"
3212
3270
  },
3213
- "force": {
3214
- "char": "f",
3215
- "description": "Skip confirmation prompt",
3216
- "name": "force",
3271
+ "output": {
3272
+ "char": "o",
3273
+ "description": "Output format",
3274
+ "name": "output",
3217
3275
  "required": false,
3218
- "allowNo": false,
3219
- "type": "boolean"
3276
+ "default": "summary",
3277
+ "hasDynamicHelp": false,
3278
+ "multiple": false,
3279
+ "options": [
3280
+ "summary",
3281
+ "json"
3282
+ ],
3283
+ "type": "option"
3220
3284
  }
3221
3285
  },
3222
3286
  "hasDynamicHelp": false,
3223
3287
  "hiddenAliases": [],
3224
- "id": "run:sessions:delete",
3288
+ "id": "run:sessions:get",
3225
3289
  "pluginAlias": "@xano/cli",
3226
3290
  "pluginName": "@xano/cli",
3227
3291
  "pluginType": "core",
@@ -3232,23 +3296,17 @@
3232
3296
  "commands",
3233
3297
  "run",
3234
3298
  "sessions",
3235
- "delete",
3299
+ "get",
3236
3300
  "index.js"
3237
3301
  ]
3238
3302
  },
3239
- "run:sessions:get": {
3303
+ "run:sessions:list": {
3240
3304
  "aliases": [],
3241
- "args": {
3242
- "sessionId": {
3243
- "description": "Session ID",
3244
- "name": "sessionId",
3245
- "required": true
3246
- }
3247
- },
3248
- "description": "Get session details",
3305
+ "args": {},
3306
+ "description": "List all sessions for the project",
3249
3307
  "examples": [
3250
- "$ xano run sessions get abc123-def456\nSession Details:\n ID: abc123-def456\n Name: My Session\n Status: running\n Access: private\n URL: https://session.xano.io/abc123\n Uptime: 3600s\n",
3251
- "$ xano run sessions get abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"name\": \"My Session\", \"status\": \"running\", ... }\n"
3308
+ "$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
3309
+ "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
3252
3310
  ],
3253
3311
  "flags": {
3254
3312
  "profile": {
@@ -3275,11 +3333,11 @@
3275
3333
  "description": "Output format",
3276
3334
  "name": "output",
3277
3335
  "required": false,
3278
- "default": "summary",
3336
+ "default": "table",
3279
3337
  "hasDynamicHelp": false,
3280
3338
  "multiple": false,
3281
3339
  "options": [
3282
- "summary",
3340
+ "table",
3283
3341
  "json"
3284
3342
  ],
3285
3343
  "type": "option"
@@ -3287,7 +3345,7 @@
3287
3345
  },
3288
3346
  "hasDynamicHelp": false,
3289
3347
  "hiddenAliases": [],
3290
- "id": "run:sessions:get",
3348
+ "id": "run:sessions:list",
3291
3349
  "pluginAlias": "@xano/cli",
3292
3350
  "pluginName": "@xano/cli",
3293
3351
  "pluginType": "core",
@@ -3298,7 +3356,7 @@
3298
3356
  "commands",
3299
3357
  "run",
3300
3358
  "sessions",
3301
- "get",
3359
+ "list",
3302
3360
  "index.js"
3303
3361
  ]
3304
3362
  },
@@ -3368,13 +3426,19 @@
3368
3426
  "index.js"
3369
3427
  ]
3370
3428
  },
3371
- "run:sessions:list": {
3429
+ "run:sessions:stop": {
3372
3430
  "aliases": [],
3373
- "args": {},
3374
- "description": "List all sessions for the project",
3431
+ "args": {
3432
+ "sessionId": {
3433
+ "description": "Session ID",
3434
+ "name": "sessionId",
3435
+ "required": true
3436
+ }
3437
+ },
3438
+ "description": "Stop a session",
3375
3439
  "examples": [
3376
- "$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
3377
- "$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
3440
+ "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
3441
+ "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
3378
3442
  ],
3379
3443
  "flags": {
3380
3444
  "profile": {
@@ -3401,11 +3465,11 @@
3401
3465
  "description": "Output format",
3402
3466
  "name": "output",
3403
3467
  "required": false,
3404
- "default": "table",
3468
+ "default": "summary",
3405
3469
  "hasDynamicHelp": false,
3406
3470
  "multiple": false,
3407
3471
  "options": [
3408
- "table",
3472
+ "summary",
3409
3473
  "json"
3410
3474
  ],
3411
3475
  "type": "option"
@@ -3413,7 +3477,7 @@
3413
3477
  },
3414
3478
  "hasDynamicHelp": false,
3415
3479
  "hiddenAliases": [],
3416
- "id": "run:sessions:list",
3480
+ "id": "run:sessions:stop",
3417
3481
  "pluginAlias": "@xano/cli",
3418
3482
  "pluginName": "@xano/cli",
3419
3483
  "pluginType": "core",
@@ -3424,11 +3488,11 @@
3424
3488
  "commands",
3425
3489
  "run",
3426
3490
  "sessions",
3427
- "list",
3491
+ "stop",
3428
3492
  "index.js"
3429
3493
  ]
3430
3494
  },
3431
- "run:sessions:stop": {
3495
+ "run:sink:get": {
3432
3496
  "aliases": [],
3433
3497
  "args": {
3434
3498
  "sessionId": {
@@ -3437,10 +3501,10 @@
3437
3501
  "required": true
3438
3502
  }
3439
3503
  },
3440
- "description": "Stop a session",
3504
+ "description": "Get sink data for a completed session",
3441
3505
  "examples": [
3442
- "$ xano run sessions stop abc123-def456\nSession stopped successfully!\n ID: abc123-def456\n State: stopped\n",
3443
- "$ xano run sessions stop abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"stopped\", ... }\n"
3506
+ "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
3507
+ "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
3444
3508
  ],
3445
3509
  "flags": {
3446
3510
  "profile": {
@@ -3479,7 +3543,7 @@
3479
3543
  },
3480
3544
  "hasDynamicHelp": false,
3481
3545
  "hiddenAliases": [],
3482
- "id": "run:sessions:stop",
3546
+ "id": "run:sink:get",
3483
3547
  "pluginAlias": "@xano/cli",
3484
3548
  "pluginName": "@xano/cli",
3485
3549
  "pluginType": "core",
@@ -3489,8 +3553,8 @@
3489
3553
  "dist",
3490
3554
  "commands",
3491
3555
  "run",
3492
- "sessions",
3493
- "stop",
3556
+ "sink",
3557
+ "get",
3494
3558
  "index.js"
3495
3559
  ]
3496
3560
  },
@@ -3598,72 +3662,6 @@
3598
3662
  "index.js"
3599
3663
  ]
3600
3664
  },
3601
- "run:sink:get": {
3602
- "aliases": [],
3603
- "args": {
3604
- "sessionId": {
3605
- "description": "Session ID",
3606
- "name": "sessionId",
3607
- "required": true
3608
- }
3609
- },
3610
- "description": "Get sink data for a completed session",
3611
- "examples": [
3612
- "$ xano run sink get abc123-def456\nSink Data:\n Tables: 3\n - users (5 rows)\n - orders (12 rows)\n - products (8 rows)\n Logs: 15 entries\n",
3613
- "$ xano run sink get abc123-def456 -o json\n{ \"tables\": [...], \"logs\": [...] }\n"
3614
- ],
3615
- "flags": {
3616
- "profile": {
3617
- "char": "p",
3618
- "description": "Profile to use for this command",
3619
- "env": "XANO_PROFILE",
3620
- "name": "profile",
3621
- "required": false,
3622
- "hasDynamicHelp": false,
3623
- "multiple": false,
3624
- "type": "option"
3625
- },
3626
- "verbose": {
3627
- "char": "v",
3628
- "description": "Show detailed request/response information",
3629
- "env": "XANO_VERBOSE",
3630
- "name": "verbose",
3631
- "required": false,
3632
- "allowNo": false,
3633
- "type": "boolean"
3634
- },
3635
- "output": {
3636
- "char": "o",
3637
- "description": "Output format",
3638
- "name": "output",
3639
- "required": false,
3640
- "default": "summary",
3641
- "hasDynamicHelp": false,
3642
- "multiple": false,
3643
- "options": [
3644
- "summary",
3645
- "json"
3646
- ],
3647
- "type": "option"
3648
- }
3649
- },
3650
- "hasDynamicHelp": false,
3651
- "hiddenAliases": [],
3652
- "id": "run:sink:get",
3653
- "pluginAlias": "@xano/cli",
3654
- "pluginName": "@xano/cli",
3655
- "pluginType": "core",
3656
- "strict": true,
3657
- "isESM": true,
3658
- "relativePath": [
3659
- "dist",
3660
- "commands",
3661
- "run",
3662
- "sink",
3663
- "get",
3664
- "index.js"
3665
- ]
3666
- },
3667
3665
  "static_host:build:get": {
3668
3666
  "aliases": [],
3669
3667
  "args": {
@@ -3844,5 +3842,5 @@
3844
3842
  ]
3845
3843
  }
3846
3844
  },
3847
- "version": "0.0.28"
3845
+ "version": "0.0.29"
3848
3846
  }