@xano/cli 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-command.d.ts +5 -0
- package/dist/base-command.js +31 -0
- package/dist/commands/branch/create/index.js +3 -3
- package/dist/commands/branch/delete/index.js +2 -2
- package/dist/commands/branch/edit/index.js +3 -3
- package/dist/commands/branch/get/index.js +2 -2
- package/dist/commands/branch/list/index.js +2 -2
- package/dist/commands/branch/set-live/index.js +2 -2
- package/dist/commands/function/create/index.js +2 -2
- package/dist/commands/function/edit/index.js +2 -2
- package/dist/commands/function/get/index.js +2 -2
- package/dist/commands/function/list/index.js +2 -2
- package/dist/commands/profile/me/index.js +2 -2
- package/dist/commands/static_host/build/create/index.js +2 -2
- package/dist/commands/static_host/build/get/index.js +2 -2
- package/dist/commands/static_host/build/list/index.js +2 -2
- package/dist/commands/static_host/list/index.js +2 -2
- package/dist/commands/workspace/create/index.js +3 -3
- package/dist/commands/workspace/delete/index.js +2 -2
- package/dist/commands/workspace/edit/index.js +3 -3
- package/dist/commands/workspace/get/index.js +2 -2
- package/dist/commands/workspace/list/index.js +2 -2
- package/dist/commands/workspace/pull/index.d.ts +1 -1
- package/dist/commands/workspace/pull/index.js +2 -16
- package/dist/commands/workspace/push/index.d.ts +1 -1
- package/dist/commands/workspace/push/index.js +2 -18
- package/oclif.manifest.json +640 -638
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -489,207 +489,88 @@
|
|
|
489
489
|
"index.js"
|
|
490
490
|
]
|
|
491
491
|
},
|
|
492
|
-
"
|
|
492
|
+
"profile:create": {
|
|
493
493
|
"aliases": [],
|
|
494
|
-
"args": {
|
|
495
|
-
|
|
494
|
+
"args": {
|
|
495
|
+
"name": {
|
|
496
|
+
"description": "Profile name",
|
|
497
|
+
"name": "name",
|
|
498
|
+
"required": true
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"description": "Create a new profile configuration",
|
|
496
502
|
"examples": [
|
|
497
|
-
"$ xano
|
|
498
|
-
"$ xano
|
|
499
|
-
"$ xano
|
|
500
|
-
"$
|
|
501
|
-
"$ xano
|
|
503
|
+
"$ 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",
|
|
504
|
+
"$ 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",
|
|
505
|
+
"$ 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",
|
|
506
|
+
"$ 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",
|
|
507
|
+
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
|
|
502
508
|
],
|
|
503
509
|
"flags": {
|
|
504
|
-
"
|
|
505
|
-
"char": "
|
|
506
|
-
"description": "
|
|
507
|
-
"
|
|
508
|
-
"
|
|
509
|
-
"required": false,
|
|
510
|
+
"access_token": {
|
|
511
|
+
"char": "t",
|
|
512
|
+
"description": "Access token for the Xano Metadata API",
|
|
513
|
+
"name": "access_token",
|
|
514
|
+
"required": true,
|
|
510
515
|
"hasDynamicHelp": false,
|
|
511
516
|
"multiple": false,
|
|
512
517
|
"type": "option"
|
|
513
518
|
},
|
|
514
|
-
"
|
|
515
|
-
"char": "
|
|
516
|
-
"description": "
|
|
517
|
-
"
|
|
518
|
-
"name": "verbose",
|
|
519
|
-
"required": false,
|
|
520
|
-
"allowNo": false,
|
|
521
|
-
"type": "boolean"
|
|
522
|
-
},
|
|
523
|
-
"edit": {
|
|
524
|
-
"char": "e",
|
|
525
|
-
"dependsOn": [
|
|
526
|
-
"file"
|
|
527
|
-
],
|
|
528
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
529
|
-
"name": "edit",
|
|
530
|
-
"required": false,
|
|
531
|
-
"allowNo": false,
|
|
532
|
-
"type": "boolean"
|
|
533
|
-
},
|
|
534
|
-
"file": {
|
|
535
|
-
"char": "f",
|
|
536
|
-
"description": "Path to file containing XanoScript code",
|
|
537
|
-
"exclusive": [
|
|
538
|
-
"stdin"
|
|
539
|
-
],
|
|
540
|
-
"name": "file",
|
|
519
|
+
"account_origin": {
|
|
520
|
+
"char": "a",
|
|
521
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
522
|
+
"name": "account_origin",
|
|
541
523
|
"required": false,
|
|
542
524
|
"hasDynamicHelp": false,
|
|
543
525
|
"multiple": false,
|
|
544
526
|
"type": "option"
|
|
545
527
|
},
|
|
546
|
-
"
|
|
547
|
-
"char": "
|
|
548
|
-
"description": "
|
|
549
|
-
"name": "
|
|
528
|
+
"branch": {
|
|
529
|
+
"char": "b",
|
|
530
|
+
"description": "Branch name",
|
|
531
|
+
"name": "branch",
|
|
550
532
|
"required": false,
|
|
551
|
-
"default": "summary",
|
|
552
533
|
"hasDynamicHelp": false,
|
|
553
534
|
"multiple": false,
|
|
554
|
-
"options": [
|
|
555
|
-
"summary",
|
|
556
|
-
"json"
|
|
557
|
-
],
|
|
558
535
|
"type": "option"
|
|
559
536
|
},
|
|
560
|
-
"
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"exclusive": [
|
|
564
|
-
"file"
|
|
565
|
-
],
|
|
566
|
-
"name": "stdin",
|
|
537
|
+
"default": {
|
|
538
|
+
"description": "Set this profile as the default",
|
|
539
|
+
"name": "default",
|
|
567
540
|
"required": false,
|
|
568
541
|
"allowNo": false,
|
|
569
542
|
"type": "boolean"
|
|
570
543
|
},
|
|
571
|
-
"
|
|
572
|
-
"char": "
|
|
573
|
-
"description": "
|
|
574
|
-
"name": "
|
|
575
|
-
"required":
|
|
576
|
-
"hasDynamicHelp": false,
|
|
577
|
-
"multiple": false,
|
|
578
|
-
"type": "option"
|
|
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",
|
|
624
|
-
"required": false,
|
|
544
|
+
"instance_origin": {
|
|
545
|
+
"char": "i",
|
|
546
|
+
"description": "Instance origin URL",
|
|
547
|
+
"name": "instance_origin",
|
|
548
|
+
"required": true,
|
|
625
549
|
"hasDynamicHelp": false,
|
|
626
550
|
"multiple": false,
|
|
627
551
|
"type": "option"
|
|
628
552
|
},
|
|
629
|
-
"
|
|
630
|
-
"char": "
|
|
631
|
-
"description": "
|
|
632
|
-
"
|
|
633
|
-
"name": "verbose",
|
|
634
|
-
"required": false,
|
|
635
|
-
"allowNo": false,
|
|
636
|
-
"type": "boolean"
|
|
637
|
-
},
|
|
638
|
-
"edit": {
|
|
639
|
-
"char": "e",
|
|
640
|
-
"description": "Open file in editor before updating function (requires --file)",
|
|
641
|
-
"name": "edit",
|
|
642
|
-
"required": false,
|
|
643
|
-
"allowNo": false,
|
|
644
|
-
"type": "boolean"
|
|
645
|
-
},
|
|
646
|
-
"file": {
|
|
647
|
-
"char": "f",
|
|
648
|
-
"description": "Path to file containing XanoScript code",
|
|
649
|
-
"exclusive": [
|
|
650
|
-
"stdin"
|
|
651
|
-
],
|
|
652
|
-
"name": "file",
|
|
553
|
+
"project": {
|
|
554
|
+
"char": "j",
|
|
555
|
+
"description": "Project name",
|
|
556
|
+
"name": "project",
|
|
653
557
|
"required": false,
|
|
654
558
|
"hasDynamicHelp": false,
|
|
655
559
|
"multiple": false,
|
|
656
560
|
"type": "option"
|
|
657
561
|
},
|
|
658
|
-
"
|
|
659
|
-
"char": "
|
|
660
|
-
"description": "
|
|
661
|
-
"name": "
|
|
562
|
+
"run_base_url": {
|
|
563
|
+
"char": "r",
|
|
564
|
+
"description": "Xano Run API base URL (default: https://app.xano.com/)",
|
|
565
|
+
"name": "run_base_url",
|
|
662
566
|
"required": false,
|
|
663
|
-
"default": "summary",
|
|
664
567
|
"hasDynamicHelp": false,
|
|
665
568
|
"multiple": false,
|
|
666
|
-
"options": [
|
|
667
|
-
"summary",
|
|
668
|
-
"json"
|
|
669
|
-
],
|
|
670
569
|
"type": "option"
|
|
671
570
|
},
|
|
672
|
-
"publish": {
|
|
673
|
-
"description": "Publish the function after editing",
|
|
674
|
-
"name": "publish",
|
|
675
|
-
"required": false,
|
|
676
|
-
"allowNo": false,
|
|
677
|
-
"type": "boolean"
|
|
678
|
-
},
|
|
679
|
-
"stdin": {
|
|
680
|
-
"char": "s",
|
|
681
|
-
"description": "Read XanoScript code from stdin",
|
|
682
|
-
"exclusive": [
|
|
683
|
-
"file"
|
|
684
|
-
],
|
|
685
|
-
"name": "stdin",
|
|
686
|
-
"required": false,
|
|
687
|
-
"allowNo": false,
|
|
688
|
-
"type": "boolean"
|
|
689
|
-
},
|
|
690
571
|
"workspace": {
|
|
691
572
|
"char": "w",
|
|
692
|
-
"description": "Workspace
|
|
573
|
+
"description": "Workspace name",
|
|
693
574
|
"name": "workspace",
|
|
694
575
|
"required": false,
|
|
695
576
|
"hasDynamicHelp": false,
|
|
@@ -699,7 +580,7 @@
|
|
|
699
580
|
},
|
|
700
581
|
"hasDynamicHelp": false,
|
|
701
582
|
"hiddenAliases": [],
|
|
702
|
-
"id": "
|
|
583
|
+
"id": "profile:create",
|
|
703
584
|
"pluginAlias": "@xano/cli",
|
|
704
585
|
"pluginName": "@xano/cli",
|
|
705
586
|
"pluginType": "core",
|
|
@@ -709,8 +590,8 @@
|
|
|
709
590
|
"relativePath": [
|
|
710
591
|
"dist",
|
|
711
592
|
"commands",
|
|
712
|
-
"
|
|
713
|
-
"
|
|
593
|
+
"profile",
|
|
594
|
+
"create",
|
|
714
595
|
"index.js"
|
|
715
596
|
]
|
|
716
597
|
},
|
|
@@ -781,23 +662,24 @@
|
|
|
781
662
|
"index.js"
|
|
782
663
|
]
|
|
783
664
|
},
|
|
784
|
-
"
|
|
665
|
+
"profile:edit": {
|
|
785
666
|
"aliases": [],
|
|
786
667
|
"args": {
|
|
787
|
-
"
|
|
788
|
-
"description": "
|
|
789
|
-
"name": "
|
|
668
|
+
"name": {
|
|
669
|
+
"description": "Profile name to edit (uses default profile if not specified)",
|
|
670
|
+
"name": "name",
|
|
790
671
|
"required": false
|
|
791
672
|
}
|
|
792
673
|
},
|
|
793
|
-
"description": "
|
|
674
|
+
"description": "Edit an existing profile configuration",
|
|
794
675
|
"examples": [
|
|
795
|
-
"$ xano
|
|
796
|
-
"$ xano
|
|
797
|
-
"$ xano
|
|
798
|
-
"$ xano
|
|
799
|
-
"$ xano
|
|
800
|
-
"$ xano
|
|
676
|
+
"$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
677
|
+
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
678
|
+
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
679
|
+
"$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
680
|
+
"$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
681
|
+
"$ xano profile:edit -j my-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
682
|
+
"$ xano profile:edit --remove-project\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
801
683
|
],
|
|
802
684
|
"flags": {
|
|
803
685
|
"profile": {
|
|
@@ -819,260 +701,82 @@
|
|
|
819
701
|
"allowNo": false,
|
|
820
702
|
"type": "boolean"
|
|
821
703
|
},
|
|
822
|
-
"
|
|
823
|
-
"
|
|
824
|
-
"
|
|
704
|
+
"access_token": {
|
|
705
|
+
"char": "t",
|
|
706
|
+
"description": "Update access token for the Xano Metadata API",
|
|
707
|
+
"name": "access_token",
|
|
825
708
|
"required": false,
|
|
826
|
-
"
|
|
827
|
-
"
|
|
709
|
+
"hasDynamicHelp": false,
|
|
710
|
+
"multiple": false,
|
|
711
|
+
"type": "option"
|
|
828
712
|
},
|
|
829
|
-
"
|
|
830
|
-
"
|
|
831
|
-
"
|
|
713
|
+
"account_origin": {
|
|
714
|
+
"char": "a",
|
|
715
|
+
"description": "Update account origin URL",
|
|
716
|
+
"name": "account_origin",
|
|
832
717
|
"required": false,
|
|
833
|
-
"
|
|
834
|
-
"
|
|
718
|
+
"hasDynamicHelp": false,
|
|
719
|
+
"multiple": false,
|
|
720
|
+
"type": "option"
|
|
835
721
|
},
|
|
836
|
-
"
|
|
837
|
-
"char": "
|
|
838
|
-
"description": "
|
|
839
|
-
"name": "
|
|
722
|
+
"branch": {
|
|
723
|
+
"char": "b",
|
|
724
|
+
"description": "Update branch name",
|
|
725
|
+
"name": "branch",
|
|
840
726
|
"required": false,
|
|
841
|
-
"default": "summary",
|
|
842
727
|
"hasDynamicHelp": false,
|
|
843
728
|
"multiple": false,
|
|
844
|
-
"options": [
|
|
845
|
-
"summary",
|
|
846
|
-
"json",
|
|
847
|
-
"xs"
|
|
848
|
-
],
|
|
849
729
|
"type": "option"
|
|
850
730
|
},
|
|
851
|
-
"
|
|
852
|
-
"char": "
|
|
853
|
-
"description": "
|
|
854
|
-
"name": "
|
|
731
|
+
"instance_origin": {
|
|
732
|
+
"char": "i",
|
|
733
|
+
"description": "Update instance origin URL",
|
|
734
|
+
"name": "instance_origin",
|
|
855
735
|
"required": false,
|
|
856
736
|
"hasDynamicHelp": false,
|
|
857
737
|
"multiple": false,
|
|
858
738
|
"type": "option"
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
"pluginAlias": "@xano/cli",
|
|
865
|
-
"pluginName": "@xano/cli",
|
|
866
|
-
"pluginType": "core",
|
|
867
|
-
"strict": true,
|
|
868
|
-
"enableJsonFlag": false,
|
|
869
|
-
"isESM": true,
|
|
870
|
-
"relativePath": [
|
|
871
|
-
"dist",
|
|
872
|
-
"commands",
|
|
873
|
-
"function",
|
|
874
|
-
"get",
|
|
875
|
-
"index.js"
|
|
876
|
-
]
|
|
877
|
-
},
|
|
878
|
-
"function:list": {
|
|
879
|
-
"aliases": [],
|
|
880
|
-
"args": {},
|
|
881
|
-
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
882
|
-
"examples": [
|
|
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"
|
|
887
|
-
],
|
|
888
|
-
"flags": {
|
|
889
|
-
"profile": {
|
|
890
|
-
"char": "p",
|
|
891
|
-
"description": "Profile to use for this command",
|
|
892
|
-
"env": "XANO_PROFILE",
|
|
893
|
-
"name": "profile",
|
|
739
|
+
},
|
|
740
|
+
"project": {
|
|
741
|
+
"char": "j",
|
|
742
|
+
"description": "Update project ID",
|
|
743
|
+
"name": "project",
|
|
894
744
|
"required": false,
|
|
895
745
|
"hasDynamicHelp": false,
|
|
896
746
|
"multiple": false,
|
|
897
747
|
"type": "option"
|
|
898
748
|
},
|
|
899
|
-
"
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"env": "XANO_VERBOSE",
|
|
903
|
-
"name": "verbose",
|
|
749
|
+
"remove-branch": {
|
|
750
|
+
"description": "Remove branch from profile",
|
|
751
|
+
"name": "remove-branch",
|
|
904
752
|
"required": false,
|
|
905
753
|
"allowNo": false,
|
|
906
754
|
"type": "boolean"
|
|
907
755
|
},
|
|
908
|
-
"
|
|
909
|
-
"description": "
|
|
910
|
-
"name": "
|
|
756
|
+
"remove-project": {
|
|
757
|
+
"description": "Remove project from profile",
|
|
758
|
+
"name": "remove-project",
|
|
911
759
|
"required": false,
|
|
912
760
|
"allowNo": false,
|
|
913
761
|
"type": "boolean"
|
|
914
762
|
},
|
|
915
|
-
"
|
|
916
|
-
"description": "
|
|
917
|
-
"name": "
|
|
763
|
+
"remove-run-base-url": {
|
|
764
|
+
"description": "Remove run_base_url from profile (use default)",
|
|
765
|
+
"name": "remove-run-base-url",
|
|
918
766
|
"required": false,
|
|
919
767
|
"allowNo": false,
|
|
920
768
|
"type": "boolean"
|
|
921
769
|
},
|
|
922
|
-
"
|
|
923
|
-
"description": "
|
|
924
|
-
"name": "
|
|
925
|
-
"required": false,
|
|
926
|
-
"default": "desc",
|
|
927
|
-
"hasDynamicHelp": false,
|
|
928
|
-
"multiple": false,
|
|
929
|
-
"options": [
|
|
930
|
-
"asc",
|
|
931
|
-
"desc"
|
|
932
|
-
],
|
|
933
|
-
"type": "option"
|
|
934
|
-
},
|
|
935
|
-
"output": {
|
|
936
|
-
"char": "o",
|
|
937
|
-
"description": "Output format",
|
|
938
|
-
"name": "output",
|
|
939
|
-
"required": false,
|
|
940
|
-
"default": "summary",
|
|
941
|
-
"hasDynamicHelp": false,
|
|
942
|
-
"multiple": false,
|
|
943
|
-
"options": [
|
|
944
|
-
"summary",
|
|
945
|
-
"json"
|
|
946
|
-
],
|
|
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"
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
"hasDynamicHelp": false,
|
|
987
|
-
"hiddenAliases": [],
|
|
988
|
-
"id": "function:list",
|
|
989
|
-
"pluginAlias": "@xano/cli",
|
|
990
|
-
"pluginName": "@xano/cli",
|
|
991
|
-
"pluginType": "core",
|
|
992
|
-
"strict": true,
|
|
993
|
-
"enableJsonFlag": false,
|
|
994
|
-
"isESM": true,
|
|
995
|
-
"relativePath": [
|
|
996
|
-
"dist",
|
|
997
|
-
"commands",
|
|
998
|
-
"function",
|
|
999
|
-
"list",
|
|
1000
|
-
"index.js"
|
|
1001
|
-
]
|
|
1002
|
-
},
|
|
1003
|
-
"profile:create": {
|
|
1004
|
-
"aliases": [],
|
|
1005
|
-
"args": {
|
|
1006
|
-
"name": {
|
|
1007
|
-
"description": "Profile name",
|
|
1008
|
-
"name": "name",
|
|
1009
|
-
"required": true
|
|
1010
|
-
}
|
|
1011
|
-
},
|
|
1012
|
-
"description": "Create a new profile configuration",
|
|
1013
|
-
"examples": [
|
|
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"
|
|
1019
|
-
],
|
|
1020
|
-
"flags": {
|
|
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",
|
|
770
|
+
"remove-workspace": {
|
|
771
|
+
"description": "Remove workspace from profile",
|
|
772
|
+
"name": "remove-workspace",
|
|
1051
773
|
"required": false,
|
|
1052
774
|
"allowNo": false,
|
|
1053
775
|
"type": "boolean"
|
|
1054
776
|
},
|
|
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
777
|
"run_base_url": {
|
|
1074
778
|
"char": "r",
|
|
1075
|
-
"description": "Xano Run API base URL
|
|
779
|
+
"description": "Update Xano Run API base URL",
|
|
1076
780
|
"name": "run_base_url",
|
|
1077
781
|
"required": false,
|
|
1078
782
|
"hasDynamicHelp": false,
|
|
@@ -1081,7 +785,7 @@
|
|
|
1081
785
|
},
|
|
1082
786
|
"workspace": {
|
|
1083
787
|
"char": "w",
|
|
1084
|
-
"description": "
|
|
788
|
+
"description": "Update workspace name",
|
|
1085
789
|
"name": "workspace",
|
|
1086
790
|
"required": false,
|
|
1087
791
|
"hasDynamicHelp": false,
|
|
@@ -1091,7 +795,7 @@
|
|
|
1091
795
|
},
|
|
1092
796
|
"hasDynamicHelp": false,
|
|
1093
797
|
"hiddenAliases": [],
|
|
1094
|
-
"id": "profile:
|
|
798
|
+
"id": "profile:edit",
|
|
1095
799
|
"pluginAlias": "@xano/cli",
|
|
1096
800
|
"pluginName": "@xano/cli",
|
|
1097
801
|
"pluginType": "core",
|
|
@@ -1102,7 +806,7 @@
|
|
|
1102
806
|
"dist",
|
|
1103
807
|
"commands",
|
|
1104
808
|
"profile",
|
|
1105
|
-
"
|
|
809
|
+
"edit",
|
|
1106
810
|
"index.js"
|
|
1107
811
|
]
|
|
1108
812
|
},
|
|
@@ -1148,158 +852,10 @@
|
|
|
1148
852
|
"index.js"
|
|
1149
853
|
]
|
|
1150
854
|
},
|
|
1151
|
-
"profile:
|
|
855
|
+
"profile:get-default": {
|
|
1152
856
|
"aliases": [],
|
|
1153
|
-
"args": {
|
|
1154
|
-
|
|
1155
|
-
"description": "Profile name to edit (uses default profile if not specified)",
|
|
1156
|
-
"name": "name",
|
|
1157
|
-
"required": false
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
"description": "Edit an existing profile configuration",
|
|
1161
|
-
"examples": [
|
|
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"
|
|
1169
|
-
],
|
|
1170
|
-
"flags": {
|
|
1171
|
-
"profile": {
|
|
1172
|
-
"char": "p",
|
|
1173
|
-
"description": "Profile to use for this command",
|
|
1174
|
-
"env": "XANO_PROFILE",
|
|
1175
|
-
"name": "profile",
|
|
1176
|
-
"required": false,
|
|
1177
|
-
"hasDynamicHelp": false,
|
|
1178
|
-
"multiple": false,
|
|
1179
|
-
"type": "option"
|
|
1180
|
-
},
|
|
1181
|
-
"verbose": {
|
|
1182
|
-
"char": "v",
|
|
1183
|
-
"description": "Show detailed request/response information",
|
|
1184
|
-
"env": "XANO_VERBOSE",
|
|
1185
|
-
"name": "verbose",
|
|
1186
|
-
"required": false,
|
|
1187
|
-
"allowNo": false,
|
|
1188
|
-
"type": "boolean"
|
|
1189
|
-
},
|
|
1190
|
-
"access_token": {
|
|
1191
|
-
"char": "t",
|
|
1192
|
-
"description": "Update access token for the Xano Metadata API",
|
|
1193
|
-
"name": "access_token",
|
|
1194
|
-
"required": false,
|
|
1195
|
-
"hasDynamicHelp": false,
|
|
1196
|
-
"multiple": false,
|
|
1197
|
-
"type": "option"
|
|
1198
|
-
},
|
|
1199
|
-
"account_origin": {
|
|
1200
|
-
"char": "a",
|
|
1201
|
-
"description": "Update account origin URL",
|
|
1202
|
-
"name": "account_origin",
|
|
1203
|
-
"required": false,
|
|
1204
|
-
"hasDynamicHelp": false,
|
|
1205
|
-
"multiple": false,
|
|
1206
|
-
"type": "option"
|
|
1207
|
-
},
|
|
1208
|
-
"branch": {
|
|
1209
|
-
"char": "b",
|
|
1210
|
-
"description": "Update branch name",
|
|
1211
|
-
"name": "branch",
|
|
1212
|
-
"required": false,
|
|
1213
|
-
"hasDynamicHelp": false,
|
|
1214
|
-
"multiple": false,
|
|
1215
|
-
"type": "option"
|
|
1216
|
-
},
|
|
1217
|
-
"instance_origin": {
|
|
1218
|
-
"char": "i",
|
|
1219
|
-
"description": "Update instance origin URL",
|
|
1220
|
-
"name": "instance_origin",
|
|
1221
|
-
"required": false,
|
|
1222
|
-
"hasDynamicHelp": false,
|
|
1223
|
-
"multiple": false,
|
|
1224
|
-
"type": "option"
|
|
1225
|
-
},
|
|
1226
|
-
"project": {
|
|
1227
|
-
"char": "j",
|
|
1228
|
-
"description": "Update project ID",
|
|
1229
|
-
"name": "project",
|
|
1230
|
-
"required": false,
|
|
1231
|
-
"hasDynamicHelp": false,
|
|
1232
|
-
"multiple": false,
|
|
1233
|
-
"type": "option"
|
|
1234
|
-
},
|
|
1235
|
-
"remove-branch": {
|
|
1236
|
-
"description": "Remove branch from profile",
|
|
1237
|
-
"name": "remove-branch",
|
|
1238
|
-
"required": false,
|
|
1239
|
-
"allowNo": false,
|
|
1240
|
-
"type": "boolean"
|
|
1241
|
-
},
|
|
1242
|
-
"remove-project": {
|
|
1243
|
-
"description": "Remove project from profile",
|
|
1244
|
-
"name": "remove-project",
|
|
1245
|
-
"required": false,
|
|
1246
|
-
"allowNo": false,
|
|
1247
|
-
"type": "boolean"
|
|
1248
|
-
},
|
|
1249
|
-
"remove-run-base-url": {
|
|
1250
|
-
"description": "Remove run_base_url from profile (use default)",
|
|
1251
|
-
"name": "remove-run-base-url",
|
|
1252
|
-
"required": false,
|
|
1253
|
-
"allowNo": false,
|
|
1254
|
-
"type": "boolean"
|
|
1255
|
-
},
|
|
1256
|
-
"remove-workspace": {
|
|
1257
|
-
"description": "Remove workspace from profile",
|
|
1258
|
-
"name": "remove-workspace",
|
|
1259
|
-
"required": false,
|
|
1260
|
-
"allowNo": false,
|
|
1261
|
-
"type": "boolean"
|
|
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
|
-
},
|
|
1272
|
-
"workspace": {
|
|
1273
|
-
"char": "w",
|
|
1274
|
-
"description": "Update workspace name",
|
|
1275
|
-
"name": "workspace",
|
|
1276
|
-
"required": false,
|
|
1277
|
-
"hasDynamicHelp": false,
|
|
1278
|
-
"multiple": false,
|
|
1279
|
-
"type": "option"
|
|
1280
|
-
}
|
|
1281
|
-
},
|
|
1282
|
-
"hasDynamicHelp": false,
|
|
1283
|
-
"hiddenAliases": [],
|
|
1284
|
-
"id": "profile:edit",
|
|
1285
|
-
"pluginAlias": "@xano/cli",
|
|
1286
|
-
"pluginName": "@xano/cli",
|
|
1287
|
-
"pluginType": "core",
|
|
1288
|
-
"strict": true,
|
|
1289
|
-
"enableJsonFlag": false,
|
|
1290
|
-
"isESM": true,
|
|
1291
|
-
"relativePath": [
|
|
1292
|
-
"dist",
|
|
1293
|
-
"commands",
|
|
1294
|
-
"profile",
|
|
1295
|
-
"edit",
|
|
1296
|
-
"index.js"
|
|
1297
|
-
]
|
|
1298
|
-
},
|
|
1299
|
-
"profile:get-default": {
|
|
1300
|
-
"aliases": [],
|
|
1301
|
-
"args": {},
|
|
1302
|
-
"description": "Get the current default profile name",
|
|
857
|
+
"args": {},
|
|
858
|
+
"description": "Get the current default profile name",
|
|
1303
859
|
"examples": [
|
|
1304
860
|
"$ xano profile:get-default\nproduction\n",
|
|
1305
861
|
"$ xano profile:get-default\nNo default profile set\n"
|
|
@@ -1520,12 +1076,456 @@
|
|
|
1520
1076
|
"multiple": false,
|
|
1521
1077
|
"type": "option"
|
|
1522
1078
|
},
|
|
1523
|
-
"origin": {
|
|
1079
|
+
"origin": {
|
|
1080
|
+
"char": "o",
|
|
1081
|
+
"description": "Xano instance origin URL",
|
|
1082
|
+
"name": "origin",
|
|
1083
|
+
"required": false,
|
|
1084
|
+
"default": "https://app.xano.com",
|
|
1085
|
+
"hasDynamicHelp": false,
|
|
1086
|
+
"multiple": false,
|
|
1087
|
+
"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:create": {
|
|
1108
|
+
"aliases": [],
|
|
1109
|
+
"args": {},
|
|
1110
|
+
"description": "Create a new function in a workspace",
|
|
1111
|
+
"examples": [
|
|
1112
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1113
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1114
|
+
"$ 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",
|
|
1115
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
1116
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
1117
|
+
],
|
|
1118
|
+
"flags": {
|
|
1119
|
+
"profile": {
|
|
1120
|
+
"char": "p",
|
|
1121
|
+
"description": "Profile to use for this command",
|
|
1122
|
+
"env": "XANO_PROFILE",
|
|
1123
|
+
"name": "profile",
|
|
1124
|
+
"required": false,
|
|
1125
|
+
"hasDynamicHelp": false,
|
|
1126
|
+
"multiple": false,
|
|
1127
|
+
"type": "option"
|
|
1128
|
+
},
|
|
1129
|
+
"verbose": {
|
|
1130
|
+
"char": "v",
|
|
1131
|
+
"description": "Show detailed request/response information",
|
|
1132
|
+
"env": "XANO_VERBOSE",
|
|
1133
|
+
"name": "verbose",
|
|
1134
|
+
"required": false,
|
|
1135
|
+
"allowNo": false,
|
|
1136
|
+
"type": "boolean"
|
|
1137
|
+
},
|
|
1138
|
+
"edit": {
|
|
1139
|
+
"char": "e",
|
|
1140
|
+
"dependsOn": [
|
|
1141
|
+
"file"
|
|
1142
|
+
],
|
|
1143
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
1144
|
+
"name": "edit",
|
|
1145
|
+
"required": false,
|
|
1146
|
+
"allowNo": false,
|
|
1147
|
+
"type": "boolean"
|
|
1148
|
+
},
|
|
1149
|
+
"file": {
|
|
1150
|
+
"char": "f",
|
|
1151
|
+
"description": "Path to file containing XanoScript code",
|
|
1152
|
+
"exclusive": [
|
|
1153
|
+
"stdin"
|
|
1154
|
+
],
|
|
1155
|
+
"name": "file",
|
|
1156
|
+
"required": false,
|
|
1157
|
+
"hasDynamicHelp": false,
|
|
1158
|
+
"multiple": false,
|
|
1159
|
+
"type": "option"
|
|
1160
|
+
},
|
|
1161
|
+
"output": {
|
|
1162
|
+
"char": "o",
|
|
1163
|
+
"description": "Output format",
|
|
1164
|
+
"name": "output",
|
|
1165
|
+
"required": false,
|
|
1166
|
+
"default": "summary",
|
|
1167
|
+
"hasDynamicHelp": false,
|
|
1168
|
+
"multiple": false,
|
|
1169
|
+
"options": [
|
|
1170
|
+
"summary",
|
|
1171
|
+
"json"
|
|
1172
|
+
],
|
|
1173
|
+
"type": "option"
|
|
1174
|
+
},
|
|
1175
|
+
"stdin": {
|
|
1176
|
+
"char": "s",
|
|
1177
|
+
"description": "Read XanoScript code from stdin",
|
|
1178
|
+
"exclusive": [
|
|
1179
|
+
"file"
|
|
1180
|
+
],
|
|
1181
|
+
"name": "stdin",
|
|
1182
|
+
"required": false,
|
|
1183
|
+
"allowNo": false,
|
|
1184
|
+
"type": "boolean"
|
|
1185
|
+
},
|
|
1186
|
+
"workspace": {
|
|
1187
|
+
"char": "w",
|
|
1188
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1189
|
+
"name": "workspace",
|
|
1190
|
+
"required": false,
|
|
1191
|
+
"hasDynamicHelp": false,
|
|
1192
|
+
"multiple": false,
|
|
1193
|
+
"type": "option"
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
"hasDynamicHelp": false,
|
|
1197
|
+
"hiddenAliases": [],
|
|
1198
|
+
"id": "function:create",
|
|
1199
|
+
"pluginAlias": "@xano/cli",
|
|
1200
|
+
"pluginName": "@xano/cli",
|
|
1201
|
+
"pluginType": "core",
|
|
1202
|
+
"strict": true,
|
|
1203
|
+
"enableJsonFlag": false,
|
|
1204
|
+
"isESM": true,
|
|
1205
|
+
"relativePath": [
|
|
1206
|
+
"dist",
|
|
1207
|
+
"commands",
|
|
1208
|
+
"function",
|
|
1209
|
+
"create",
|
|
1210
|
+
"index.js"
|
|
1211
|
+
]
|
|
1212
|
+
},
|
|
1213
|
+
"function:edit": {
|
|
1214
|
+
"aliases": [],
|
|
1215
|
+
"args": {
|
|
1216
|
+
"function_id": {
|
|
1217
|
+
"description": "Function ID to edit",
|
|
1218
|
+
"name": "function_id",
|
|
1219
|
+
"required": false
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"description": "Edit a function in a workspace",
|
|
1223
|
+
"examples": [
|
|
1224
|
+
"$ 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",
|
|
1225
|
+
"$ 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",
|
|
1226
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1227
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1228
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
1229
|
+
"$ 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",
|
|
1230
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
1231
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
1232
|
+
],
|
|
1233
|
+
"flags": {
|
|
1234
|
+
"profile": {
|
|
1235
|
+
"char": "p",
|
|
1236
|
+
"description": "Profile to use for this command",
|
|
1237
|
+
"env": "XANO_PROFILE",
|
|
1238
|
+
"name": "profile",
|
|
1239
|
+
"required": false,
|
|
1240
|
+
"hasDynamicHelp": false,
|
|
1241
|
+
"multiple": false,
|
|
1242
|
+
"type": "option"
|
|
1243
|
+
},
|
|
1244
|
+
"verbose": {
|
|
1245
|
+
"char": "v",
|
|
1246
|
+
"description": "Show detailed request/response information",
|
|
1247
|
+
"env": "XANO_VERBOSE",
|
|
1248
|
+
"name": "verbose",
|
|
1249
|
+
"required": false,
|
|
1250
|
+
"allowNo": false,
|
|
1251
|
+
"type": "boolean"
|
|
1252
|
+
},
|
|
1253
|
+
"edit": {
|
|
1254
|
+
"char": "e",
|
|
1255
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
1256
|
+
"name": "edit",
|
|
1257
|
+
"required": false,
|
|
1258
|
+
"allowNo": false,
|
|
1259
|
+
"type": "boolean"
|
|
1260
|
+
},
|
|
1261
|
+
"file": {
|
|
1262
|
+
"char": "f",
|
|
1263
|
+
"description": "Path to file containing XanoScript code",
|
|
1264
|
+
"exclusive": [
|
|
1265
|
+
"stdin"
|
|
1266
|
+
],
|
|
1267
|
+
"name": "file",
|
|
1268
|
+
"required": false,
|
|
1269
|
+
"hasDynamicHelp": false,
|
|
1270
|
+
"multiple": false,
|
|
1271
|
+
"type": "option"
|
|
1272
|
+
},
|
|
1273
|
+
"output": {
|
|
1274
|
+
"char": "o",
|
|
1275
|
+
"description": "Output format",
|
|
1276
|
+
"name": "output",
|
|
1277
|
+
"required": false,
|
|
1278
|
+
"default": "summary",
|
|
1279
|
+
"hasDynamicHelp": false,
|
|
1280
|
+
"multiple": false,
|
|
1281
|
+
"options": [
|
|
1282
|
+
"summary",
|
|
1283
|
+
"json"
|
|
1284
|
+
],
|
|
1285
|
+
"type": "option"
|
|
1286
|
+
},
|
|
1287
|
+
"publish": {
|
|
1288
|
+
"description": "Publish the function after editing",
|
|
1289
|
+
"name": "publish",
|
|
1290
|
+
"required": false,
|
|
1291
|
+
"allowNo": false,
|
|
1292
|
+
"type": "boolean"
|
|
1293
|
+
},
|
|
1294
|
+
"stdin": {
|
|
1295
|
+
"char": "s",
|
|
1296
|
+
"description": "Read XanoScript code from stdin",
|
|
1297
|
+
"exclusive": [
|
|
1298
|
+
"file"
|
|
1299
|
+
],
|
|
1300
|
+
"name": "stdin",
|
|
1301
|
+
"required": false,
|
|
1302
|
+
"allowNo": false,
|
|
1303
|
+
"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
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
"hasDynamicHelp": false,
|
|
1316
|
+
"hiddenAliases": [],
|
|
1317
|
+
"id": "function:edit",
|
|
1318
|
+
"pluginAlias": "@xano/cli",
|
|
1319
|
+
"pluginName": "@xano/cli",
|
|
1320
|
+
"pluginType": "core",
|
|
1321
|
+
"strict": true,
|
|
1322
|
+
"enableJsonFlag": false,
|
|
1323
|
+
"isESM": true,
|
|
1324
|
+
"relativePath": [
|
|
1325
|
+
"dist",
|
|
1326
|
+
"commands",
|
|
1327
|
+
"function",
|
|
1328
|
+
"edit",
|
|
1329
|
+
"index.js"
|
|
1330
|
+
]
|
|
1331
|
+
},
|
|
1332
|
+
"function:get": {
|
|
1333
|
+
"aliases": [],
|
|
1334
|
+
"args": {
|
|
1335
|
+
"function_id": {
|
|
1336
|
+
"description": "Function ID",
|
|
1337
|
+
"name": "function_id",
|
|
1338
|
+
"required": false
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"description": "Get a specific function from a workspace",
|
|
1342
|
+
"examples": [
|
|
1343
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
1344
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
1345
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
1346
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
1347
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
1348
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
1349
|
+
],
|
|
1350
|
+
"flags": {
|
|
1351
|
+
"profile": {
|
|
1352
|
+
"char": "p",
|
|
1353
|
+
"description": "Profile to use for this command",
|
|
1354
|
+
"env": "XANO_PROFILE",
|
|
1355
|
+
"name": "profile",
|
|
1356
|
+
"required": false,
|
|
1357
|
+
"hasDynamicHelp": false,
|
|
1358
|
+
"multiple": false,
|
|
1359
|
+
"type": "option"
|
|
1360
|
+
},
|
|
1361
|
+
"verbose": {
|
|
1362
|
+
"char": "v",
|
|
1363
|
+
"description": "Show detailed request/response information",
|
|
1364
|
+
"env": "XANO_VERBOSE",
|
|
1365
|
+
"name": "verbose",
|
|
1366
|
+
"required": false,
|
|
1367
|
+
"allowNo": false,
|
|
1368
|
+
"type": "boolean"
|
|
1369
|
+
},
|
|
1370
|
+
"include_draft": {
|
|
1371
|
+
"description": "Include draft version",
|
|
1372
|
+
"name": "include_draft",
|
|
1373
|
+
"required": false,
|
|
1374
|
+
"allowNo": false,
|
|
1375
|
+
"type": "boolean"
|
|
1376
|
+
},
|
|
1377
|
+
"include_xanoscript": {
|
|
1378
|
+
"description": "Include XanoScript in response",
|
|
1379
|
+
"name": "include_xanoscript",
|
|
1380
|
+
"required": false,
|
|
1381
|
+
"allowNo": false,
|
|
1382
|
+
"type": "boolean"
|
|
1383
|
+
},
|
|
1384
|
+
"output": {
|
|
1385
|
+
"char": "o",
|
|
1386
|
+
"description": "Output format",
|
|
1387
|
+
"name": "output",
|
|
1388
|
+
"required": false,
|
|
1389
|
+
"default": "summary",
|
|
1390
|
+
"hasDynamicHelp": false,
|
|
1391
|
+
"multiple": false,
|
|
1392
|
+
"options": [
|
|
1393
|
+
"summary",
|
|
1394
|
+
"json",
|
|
1395
|
+
"xs"
|
|
1396
|
+
],
|
|
1397
|
+
"type": "option"
|
|
1398
|
+
},
|
|
1399
|
+
"workspace": {
|
|
1400
|
+
"char": "w",
|
|
1401
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1402
|
+
"name": "workspace",
|
|
1403
|
+
"required": false,
|
|
1404
|
+
"hasDynamicHelp": false,
|
|
1405
|
+
"multiple": false,
|
|
1406
|
+
"type": "option"
|
|
1407
|
+
}
|
|
1408
|
+
},
|
|
1409
|
+
"hasDynamicHelp": false,
|
|
1410
|
+
"hiddenAliases": [],
|
|
1411
|
+
"id": "function:get",
|
|
1412
|
+
"pluginAlias": "@xano/cli",
|
|
1413
|
+
"pluginName": "@xano/cli",
|
|
1414
|
+
"pluginType": "core",
|
|
1415
|
+
"strict": true,
|
|
1416
|
+
"enableJsonFlag": false,
|
|
1417
|
+
"isESM": true,
|
|
1418
|
+
"relativePath": [
|
|
1419
|
+
"dist",
|
|
1420
|
+
"commands",
|
|
1421
|
+
"function",
|
|
1422
|
+
"get",
|
|
1423
|
+
"index.js"
|
|
1424
|
+
]
|
|
1425
|
+
},
|
|
1426
|
+
"function:list": {
|
|
1427
|
+
"aliases": [],
|
|
1428
|
+
"args": {},
|
|
1429
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
1430
|
+
"examples": [
|
|
1431
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
1432
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
1433
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
1434
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
1435
|
+
],
|
|
1436
|
+
"flags": {
|
|
1437
|
+
"profile": {
|
|
1438
|
+
"char": "p",
|
|
1439
|
+
"description": "Profile to use for this command",
|
|
1440
|
+
"env": "XANO_PROFILE",
|
|
1441
|
+
"name": "profile",
|
|
1442
|
+
"required": false,
|
|
1443
|
+
"hasDynamicHelp": false,
|
|
1444
|
+
"multiple": false,
|
|
1445
|
+
"type": "option"
|
|
1446
|
+
},
|
|
1447
|
+
"verbose": {
|
|
1448
|
+
"char": "v",
|
|
1449
|
+
"description": "Show detailed request/response information",
|
|
1450
|
+
"env": "XANO_VERBOSE",
|
|
1451
|
+
"name": "verbose",
|
|
1452
|
+
"required": false,
|
|
1453
|
+
"allowNo": false,
|
|
1454
|
+
"type": "boolean"
|
|
1455
|
+
},
|
|
1456
|
+
"include_draft": {
|
|
1457
|
+
"description": "Include draft functions",
|
|
1458
|
+
"name": "include_draft",
|
|
1459
|
+
"required": false,
|
|
1460
|
+
"allowNo": false,
|
|
1461
|
+
"type": "boolean"
|
|
1462
|
+
},
|
|
1463
|
+
"include_xanoscript": {
|
|
1464
|
+
"description": "Include XanoScript in response",
|
|
1465
|
+
"name": "include_xanoscript",
|
|
1466
|
+
"required": false,
|
|
1467
|
+
"allowNo": false,
|
|
1468
|
+
"type": "boolean"
|
|
1469
|
+
},
|
|
1470
|
+
"order": {
|
|
1471
|
+
"description": "Sort order",
|
|
1472
|
+
"name": "order",
|
|
1473
|
+
"required": false,
|
|
1474
|
+
"default": "desc",
|
|
1475
|
+
"hasDynamicHelp": false,
|
|
1476
|
+
"multiple": false,
|
|
1477
|
+
"options": [
|
|
1478
|
+
"asc",
|
|
1479
|
+
"desc"
|
|
1480
|
+
],
|
|
1481
|
+
"type": "option"
|
|
1482
|
+
},
|
|
1483
|
+
"output": {
|
|
1524
1484
|
"char": "o",
|
|
1525
|
-
"description": "
|
|
1526
|
-
"name": "
|
|
1485
|
+
"description": "Output format",
|
|
1486
|
+
"name": "output",
|
|
1487
|
+
"required": false,
|
|
1488
|
+
"default": "summary",
|
|
1489
|
+
"hasDynamicHelp": false,
|
|
1490
|
+
"multiple": false,
|
|
1491
|
+
"options": [
|
|
1492
|
+
"summary",
|
|
1493
|
+
"json"
|
|
1494
|
+
],
|
|
1495
|
+
"type": "option"
|
|
1496
|
+
},
|
|
1497
|
+
"page": {
|
|
1498
|
+
"description": "Page number for pagination",
|
|
1499
|
+
"name": "page",
|
|
1500
|
+
"required": false,
|
|
1501
|
+
"default": 1,
|
|
1502
|
+
"hasDynamicHelp": false,
|
|
1503
|
+
"multiple": false,
|
|
1504
|
+
"type": "option"
|
|
1505
|
+
},
|
|
1506
|
+
"per_page": {
|
|
1507
|
+
"description": "Number of results per page",
|
|
1508
|
+
"name": "per_page",
|
|
1509
|
+
"required": false,
|
|
1510
|
+
"default": 50,
|
|
1511
|
+
"hasDynamicHelp": false,
|
|
1512
|
+
"multiple": false,
|
|
1513
|
+
"type": "option"
|
|
1514
|
+
},
|
|
1515
|
+
"sort": {
|
|
1516
|
+
"description": "Sort field",
|
|
1517
|
+
"name": "sort",
|
|
1518
|
+
"required": false,
|
|
1519
|
+
"default": "created_at",
|
|
1520
|
+
"hasDynamicHelp": false,
|
|
1521
|
+
"multiple": false,
|
|
1522
|
+
"type": "option"
|
|
1523
|
+
},
|
|
1524
|
+
"workspace": {
|
|
1525
|
+
"char": "w",
|
|
1526
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1527
|
+
"name": "workspace",
|
|
1527
1528
|
"required": false,
|
|
1528
|
-
"default": "https://app.xano.com",
|
|
1529
1529
|
"hasDynamicHelp": false,
|
|
1530
1530
|
"multiple": false,
|
|
1531
1531
|
"type": "option"
|
|
@@ -1533,7 +1533,7 @@
|
|
|
1533
1533
|
},
|
|
1534
1534
|
"hasDynamicHelp": false,
|
|
1535
1535
|
"hiddenAliases": [],
|
|
1536
|
-
"id": "
|
|
1536
|
+
"id": "function:list",
|
|
1537
1537
|
"pluginAlias": "@xano/cli",
|
|
1538
1538
|
"pluginName": "@xano/cli",
|
|
1539
1539
|
"pluginType": "core",
|
|
@@ -1543,8 +1543,8 @@
|
|
|
1543
1543
|
"relativePath": [
|
|
1544
1544
|
"dist",
|
|
1545
1545
|
"commands",
|
|
1546
|
-
"
|
|
1547
|
-
"
|
|
1546
|
+
"function",
|
|
1547
|
+
"list",
|
|
1548
1548
|
"index.js"
|
|
1549
1549
|
]
|
|
1550
1550
|
},
|
|
@@ -2250,7 +2250,8 @@
|
|
|
2250
2250
|
},
|
|
2251
2251
|
"verbose": {
|
|
2252
2252
|
"char": "v",
|
|
2253
|
-
"description": "Show request
|
|
2253
|
+
"description": "Show detailed request/response information",
|
|
2254
|
+
"env": "XANO_VERBOSE",
|
|
2254
2255
|
"name": "verbose",
|
|
2255
2256
|
"required": false,
|
|
2256
2257
|
"allowNo": false,
|
|
@@ -2335,7 +2336,8 @@
|
|
|
2335
2336
|
},
|
|
2336
2337
|
"verbose": {
|
|
2337
2338
|
"char": "v",
|
|
2338
|
-
"description": "Show request
|
|
2339
|
+
"description": "Show detailed request/response information",
|
|
2340
|
+
"env": "XANO_VERBOSE",
|
|
2339
2341
|
"name": "verbose",
|
|
2340
2342
|
"required": false,
|
|
2341
2343
|
"allowNo": false,
|
|
@@ -2965,13 +2967,19 @@
|
|
|
2965
2967
|
"index.js"
|
|
2966
2968
|
]
|
|
2967
2969
|
},
|
|
2968
|
-
"run:secrets:
|
|
2970
|
+
"run:secrets:get": {
|
|
2969
2971
|
"aliases": [],
|
|
2970
|
-
"args": {
|
|
2971
|
-
|
|
2972
|
+
"args": {
|
|
2973
|
+
"name": {
|
|
2974
|
+
"description": "Secret name",
|
|
2975
|
+
"name": "name",
|
|
2976
|
+
"required": true
|
|
2977
|
+
}
|
|
2978
|
+
},
|
|
2979
|
+
"description": "Get a secret value",
|
|
2972
2980
|
"examples": [
|
|
2973
|
-
"$ xano run secrets
|
|
2974
|
-
"$ xano run secrets
|
|
2981
|
+
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
2982
|
+
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
2975
2983
|
],
|
|
2976
2984
|
"flags": {
|
|
2977
2985
|
"profile": {
|
|
@@ -2998,11 +3006,11 @@
|
|
|
2998
3006
|
"description": "Output format",
|
|
2999
3007
|
"name": "output",
|
|
3000
3008
|
"required": false,
|
|
3001
|
-
"default": "
|
|
3009
|
+
"default": "value",
|
|
3002
3010
|
"hasDynamicHelp": false,
|
|
3003
3011
|
"multiple": false,
|
|
3004
3012
|
"options": [
|
|
3005
|
-
"
|
|
3013
|
+
"value",
|
|
3006
3014
|
"json"
|
|
3007
3015
|
],
|
|
3008
3016
|
"type": "option"
|
|
@@ -3010,7 +3018,7 @@
|
|
|
3010
3018
|
},
|
|
3011
3019
|
"hasDynamicHelp": false,
|
|
3012
3020
|
"hiddenAliases": [],
|
|
3013
|
-
"id": "run:secrets:
|
|
3021
|
+
"id": "run:secrets:get",
|
|
3014
3022
|
"pluginAlias": "@xano/cli",
|
|
3015
3023
|
"pluginName": "@xano/cli",
|
|
3016
3024
|
"pluginType": "core",
|
|
@@ -3021,23 +3029,17 @@
|
|
|
3021
3029
|
"commands",
|
|
3022
3030
|
"run",
|
|
3023
3031
|
"secrets",
|
|
3024
|
-
"
|
|
3032
|
+
"get",
|
|
3025
3033
|
"index.js"
|
|
3026
3034
|
]
|
|
3027
3035
|
},
|
|
3028
|
-
"run:secrets:
|
|
3036
|
+
"run:secrets:list": {
|
|
3029
3037
|
"aliases": [],
|
|
3030
|
-
"args": {
|
|
3031
|
-
|
|
3032
|
-
"description": "Secret name",
|
|
3033
|
-
"name": "name",
|
|
3034
|
-
"required": true
|
|
3035
|
-
}
|
|
3036
|
-
},
|
|
3037
|
-
"description": "Get a secret value",
|
|
3038
|
+
"args": {},
|
|
3039
|
+
"description": "List all secret keys",
|
|
3038
3040
|
"examples": [
|
|
3039
|
-
"$ xano run secrets
|
|
3040
|
-
"$ xano run secrets
|
|
3041
|
+
"$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
|
|
3042
|
+
"$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
|
|
3041
3043
|
],
|
|
3042
3044
|
"flags": {
|
|
3043
3045
|
"profile": {
|
|
@@ -3064,11 +3066,11 @@
|
|
|
3064
3066
|
"description": "Output format",
|
|
3065
3067
|
"name": "output",
|
|
3066
3068
|
"required": false,
|
|
3067
|
-
"default": "
|
|
3069
|
+
"default": "table",
|
|
3068
3070
|
"hasDynamicHelp": false,
|
|
3069
3071
|
"multiple": false,
|
|
3070
3072
|
"options": [
|
|
3071
|
-
"
|
|
3073
|
+
"table",
|
|
3072
3074
|
"json"
|
|
3073
3075
|
],
|
|
3074
3076
|
"type": "option"
|
|
@@ -3076,7 +3078,7 @@
|
|
|
3076
3078
|
},
|
|
3077
3079
|
"hasDynamicHelp": false,
|
|
3078
3080
|
"hiddenAliases": [],
|
|
3079
|
-
"id": "run:secrets:
|
|
3081
|
+
"id": "run:secrets:list",
|
|
3080
3082
|
"pluginAlias": "@xano/cli",
|
|
3081
3083
|
"pluginName": "@xano/cli",
|
|
3082
3084
|
"pluginType": "core",
|
|
@@ -3087,23 +3089,23 @@
|
|
|
3087
3089
|
"commands",
|
|
3088
3090
|
"run",
|
|
3089
3091
|
"secrets",
|
|
3090
|
-
"
|
|
3092
|
+
"list",
|
|
3091
3093
|
"index.js"
|
|
3092
3094
|
]
|
|
3093
3095
|
},
|
|
3094
|
-
"run:
|
|
3096
|
+
"run:secrets:set": {
|
|
3095
3097
|
"aliases": [],
|
|
3096
3098
|
"args": {
|
|
3097
|
-
"
|
|
3098
|
-
"description": "
|
|
3099
|
-
"name": "
|
|
3099
|
+
"name": {
|
|
3100
|
+
"description": "Secret name",
|
|
3101
|
+
"name": "name",
|
|
3100
3102
|
"required": true
|
|
3101
3103
|
}
|
|
3102
3104
|
},
|
|
3103
|
-
"description": "
|
|
3105
|
+
"description": "Set a secret",
|
|
3104
3106
|
"examples": [
|
|
3105
|
-
"$ xano run
|
|
3106
|
-
"$ xano run
|
|
3107
|
+
"$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
|
|
3108
|
+
"$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
|
|
3107
3109
|
],
|
|
3108
3110
|
"flags": {
|
|
3109
3111
|
"profile": {
|
|
@@ -3125,18 +3127,41 @@
|
|
|
3125
3127
|
"allowNo": false,
|
|
3126
3128
|
"type": "boolean"
|
|
3127
3129
|
},
|
|
3128
|
-
"
|
|
3129
|
-
"char": "
|
|
3130
|
-
"description": "
|
|
3131
|
-
"name": "
|
|
3130
|
+
"repo": {
|
|
3131
|
+
"char": "r",
|
|
3132
|
+
"description": "Repository (for dockerconfigjson type)",
|
|
3133
|
+
"name": "repo",
|
|
3132
3134
|
"required": false,
|
|
3133
|
-
"
|
|
3134
|
-
"
|
|
3135
|
+
"hasDynamicHelp": false,
|
|
3136
|
+
"multiple": false,
|
|
3137
|
+
"type": "option"
|
|
3138
|
+
},
|
|
3139
|
+
"type": {
|
|
3140
|
+
"char": "t",
|
|
3141
|
+
"description": "Secret type",
|
|
3142
|
+
"name": "type",
|
|
3143
|
+
"required": true,
|
|
3144
|
+
"hasDynamicHelp": false,
|
|
3145
|
+
"multiple": false,
|
|
3146
|
+
"options": [
|
|
3147
|
+
"dockerconfigjson",
|
|
3148
|
+
"service-account-token"
|
|
3149
|
+
],
|
|
3150
|
+
"type": "option"
|
|
3151
|
+
},
|
|
3152
|
+
"value": {
|
|
3153
|
+
"char": "v",
|
|
3154
|
+
"description": "Secret value",
|
|
3155
|
+
"name": "value",
|
|
3156
|
+
"required": true,
|
|
3157
|
+
"hasDynamicHelp": false,
|
|
3158
|
+
"multiple": false,
|
|
3159
|
+
"type": "option"
|
|
3135
3160
|
}
|
|
3136
3161
|
},
|
|
3137
3162
|
"hasDynamicHelp": false,
|
|
3138
3163
|
"hiddenAliases": [],
|
|
3139
|
-
"id": "run:
|
|
3164
|
+
"id": "run:secrets:set",
|
|
3140
3165
|
"pluginAlias": "@xano/cli",
|
|
3141
3166
|
"pluginName": "@xano/cli",
|
|
3142
3167
|
"pluginType": "core",
|
|
@@ -3146,24 +3171,24 @@
|
|
|
3146
3171
|
"dist",
|
|
3147
3172
|
"commands",
|
|
3148
3173
|
"run",
|
|
3149
|
-
"
|
|
3150
|
-
"
|
|
3174
|
+
"secrets",
|
|
3175
|
+
"set",
|
|
3151
3176
|
"index.js"
|
|
3152
3177
|
]
|
|
3153
3178
|
},
|
|
3154
|
-
"run:
|
|
3179
|
+
"run:sessions:delete": {
|
|
3155
3180
|
"aliases": [],
|
|
3156
3181
|
"args": {
|
|
3157
|
-
"
|
|
3158
|
-
"description": "
|
|
3159
|
-
"name": "
|
|
3182
|
+
"sessionId": {
|
|
3183
|
+
"description": "Session ID",
|
|
3184
|
+
"name": "sessionId",
|
|
3160
3185
|
"required": true
|
|
3161
3186
|
}
|
|
3162
3187
|
},
|
|
3163
|
-
"description": "
|
|
3188
|
+
"description": "Delete a session",
|
|
3164
3189
|
"examples": [
|
|
3165
|
-
"$ xano run
|
|
3166
|
-
"$ xano run
|
|
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"
|
|
3167
3192
|
],
|
|
3168
3193
|
"flags": {
|
|
3169
3194
|
"profile": {
|
|
@@ -3185,41 +3210,18 @@
|
|
|
3185
3210
|
"allowNo": false,
|
|
3186
3211
|
"type": "boolean"
|
|
3187
3212
|
},
|
|
3188
|
-
"
|
|
3189
|
-
"char": "
|
|
3190
|
-
"description": "
|
|
3191
|
-
"name": "
|
|
3213
|
+
"force": {
|
|
3214
|
+
"char": "f",
|
|
3215
|
+
"description": "Skip confirmation prompt",
|
|
3216
|
+
"name": "force",
|
|
3192
3217
|
"required": false,
|
|
3193
|
-
"
|
|
3194
|
-
"
|
|
3195
|
-
"type": "option"
|
|
3196
|
-
},
|
|
3197
|
-
"type": {
|
|
3198
|
-
"char": "t",
|
|
3199
|
-
"description": "Secret type",
|
|
3200
|
-
"name": "type",
|
|
3201
|
-
"required": true,
|
|
3202
|
-
"hasDynamicHelp": false,
|
|
3203
|
-
"multiple": false,
|
|
3204
|
-
"options": [
|
|
3205
|
-
"dockerconfigjson",
|
|
3206
|
-
"service-account-token"
|
|
3207
|
-
],
|
|
3208
|
-
"type": "option"
|
|
3209
|
-
},
|
|
3210
|
-
"value": {
|
|
3211
|
-
"char": "v",
|
|
3212
|
-
"description": "Secret value",
|
|
3213
|
-
"name": "value",
|
|
3214
|
-
"required": true,
|
|
3215
|
-
"hasDynamicHelp": false,
|
|
3216
|
-
"multiple": false,
|
|
3217
|
-
"type": "option"
|
|
3218
|
+
"allowNo": false,
|
|
3219
|
+
"type": "boolean"
|
|
3218
3220
|
}
|
|
3219
3221
|
},
|
|
3220
3222
|
"hasDynamicHelp": false,
|
|
3221
3223
|
"hiddenAliases": [],
|
|
3222
|
-
"id": "run:
|
|
3224
|
+
"id": "run:sessions:delete",
|
|
3223
3225
|
"pluginAlias": "@xano/cli",
|
|
3224
3226
|
"pluginName": "@xano/cli",
|
|
3225
3227
|
"pluginType": "core",
|
|
@@ -3229,8 +3231,8 @@
|
|
|
3229
3231
|
"dist",
|
|
3230
3232
|
"commands",
|
|
3231
3233
|
"run",
|
|
3232
|
-
"
|
|
3233
|
-
"
|
|
3234
|
+
"sessions",
|
|
3235
|
+
"delete",
|
|
3234
3236
|
"index.js"
|
|
3235
3237
|
]
|
|
3236
3238
|
},
|
|
@@ -3842,5 +3844,5 @@
|
|
|
3842
3844
|
]
|
|
3843
3845
|
}
|
|
3844
3846
|
},
|
|
3845
|
-
"version": "0.0.
|
|
3847
|
+
"version": "0.0.30"
|
|
3846
3848
|
}
|