@xano/cli 0.0.11 → 0.0.13

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.
@@ -1,24 +1,15 @@
1
1
  {
2
2
  "commands": {
3
- "function:edit": {
3
+ "function:create": {
4
4
  "aliases": [],
5
- "args": {
6
- "function_id": {
7
- "description": "Function ID to edit",
8
- "name": "function_id",
9
- "required": false
10
- }
11
- },
12
- "description": "Edit a function in a workspace",
5
+ "args": {},
6
+ "description": "Create a new function in a workspace",
13
7
  "examples": [
14
- "$ 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",
15
- "$ 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",
16
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
17
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
18
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
19
- "$ 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",
20
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
21
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
8
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
9
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
10
+ "$ 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",
11
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
12
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
22
13
  ],
23
14
  "flags": {
24
15
  "profile": {
@@ -65,19 +56,15 @@
65
56
  },
66
57
  "edit": {
67
58
  "char": "e",
68
- "description": "Open file in editor before updating function (requires --file)",
59
+ "dependsOn": [
60
+ "file"
61
+ ],
62
+ "description": "Open file in editor before creating function (requires --file)",
69
63
  "name": "edit",
70
64
  "required": false,
71
65
  "allowNo": false,
72
66
  "type": "boolean"
73
67
  },
74
- "publish": {
75
- "description": "Publish the function after editing",
76
- "name": "publish",
77
- "required": false,
78
- "allowNo": false,
79
- "type": "boolean"
80
- },
81
68
  "output": {
82
69
  "char": "o",
83
70
  "description": "Output format",
@@ -95,7 +82,7 @@
95
82
  },
96
83
  "hasDynamicHelp": false,
97
84
  "hiddenAliases": [],
98
- "id": "function:edit",
85
+ "id": "function:create",
99
86
  "pluginAlias": "@xano/cli",
100
87
  "pluginName": "@xano/cli",
101
88
  "pluginType": "core",
@@ -106,20 +93,29 @@
106
93
  "dist",
107
94
  "commands",
108
95
  "function",
109
- "edit",
96
+ "create",
110
97
  "index.js"
111
98
  ]
112
99
  },
113
- "function:create": {
100
+ "function:edit": {
114
101
  "aliases": [],
115
- "args": {},
116
- "description": "Create a new function in a workspace",
102
+ "args": {
103
+ "function_id": {
104
+ "description": "Function ID to edit",
105
+ "name": "function_id",
106
+ "required": false
107
+ }
108
+ },
109
+ "description": "Edit a function in a workspace",
117
110
  "examples": [
118
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
119
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
120
- "$ 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",
121
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
122
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
111
+ "$ 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",
112
+ "$ 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",
113
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
114
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
115
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
116
+ "$ 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",
117
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
118
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
123
119
  ],
124
120
  "flags": {
125
121
  "profile": {
@@ -166,15 +162,19 @@
166
162
  },
167
163
  "edit": {
168
164
  "char": "e",
169
- "dependsOn": [
170
- "file"
171
- ],
172
- "description": "Open file in editor before creating function (requires --file)",
165
+ "description": "Open file in editor before updating function (requires --file)",
173
166
  "name": "edit",
174
167
  "required": false,
175
168
  "allowNo": false,
176
169
  "type": "boolean"
177
170
  },
171
+ "publish": {
172
+ "description": "Publish the function after editing",
173
+ "name": "publish",
174
+ "required": false,
175
+ "allowNo": false,
176
+ "type": "boolean"
177
+ },
178
178
  "output": {
179
179
  "char": "o",
180
180
  "description": "Output format",
@@ -192,7 +192,7 @@
192
192
  },
193
193
  "hasDynamicHelp": false,
194
194
  "hiddenAliases": [],
195
- "id": "function:create",
195
+ "id": "function:edit",
196
196
  "pluginAlias": "@xano/cli",
197
197
  "pluginName": "@xano/cli",
198
198
  "pluginType": "core",
@@ -203,7 +203,7 @@
203
203
  "dist",
204
204
  "commands",
205
205
  "function",
206
- "create",
206
+ "edit",
207
207
  "index.js"
208
208
  ]
209
209
  },
@@ -408,17 +408,15 @@
408
408
  "index.js"
409
409
  ]
410
410
  },
411
- "ephemeral:run:job": {
411
+ "static_host:list": {
412
412
  "aliases": [],
413
413
  "args": {},
414
- "description": "Run an ephemeral job in a workspace",
414
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
415
415
  "examples": [
416
- "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
417
- "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
418
- "$ xano ephemeral:run:job -w 1 -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
419
- "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
420
- "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
421
- "$ xano ephemeral:run:job -w 1 -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
416
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
417
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
418
+ "$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
419
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
422
420
  ],
423
421
  "flags": {
424
422
  "profile": {
@@ -440,40 +438,6 @@
440
438
  "multiple": false,
441
439
  "type": "option"
442
440
  },
443
- "file": {
444
- "char": "f",
445
- "description": "Path or URL to file containing XanoScript code",
446
- "exclusive": [
447
- "stdin"
448
- ],
449
- "name": "file",
450
- "required": false,
451
- "hasDynamicHelp": false,
452
- "multiple": false,
453
- "type": "option"
454
- },
455
- "stdin": {
456
- "char": "s",
457
- "description": "Read XanoScript code from stdin",
458
- "exclusive": [
459
- "file"
460
- ],
461
- "name": "stdin",
462
- "required": false,
463
- "allowNo": false,
464
- "type": "boolean"
465
- },
466
- "edit": {
467
- "char": "e",
468
- "dependsOn": [
469
- "file"
470
- ],
471
- "description": "Open file in editor before running job (requires --file)",
472
- "name": "edit",
473
- "required": false,
474
- "allowNo": false,
475
- "type": "boolean"
476
- },
477
441
  "output": {
478
442
  "char": "o",
479
443
  "description": "Output format",
@@ -488,11 +452,20 @@
488
452
  ],
489
453
  "type": "option"
490
454
  },
491
- "args": {
492
- "char": "a",
493
- "description": "Path or URL to JSON file containing input arguments",
494
- "name": "args",
455
+ "page": {
456
+ "description": "Page number for pagination",
457
+ "name": "page",
458
+ "required": false,
459
+ "default": 1,
460
+ "hasDynamicHelp": false,
461
+ "multiple": false,
462
+ "type": "option"
463
+ },
464
+ "per_page": {
465
+ "description": "Number of results per page",
466
+ "name": "per_page",
495
467
  "required": false,
468
+ "default": 50,
496
469
  "hasDynamicHelp": false,
497
470
  "multiple": false,
498
471
  "type": "option"
@@ -500,7 +473,7 @@
500
473
  },
501
474
  "hasDynamicHelp": false,
502
475
  "hiddenAliases": [],
503
- "id": "ephemeral:run:job",
476
+ "id": "static_host:list",
504
477
  "pluginAlias": "@xano/cli",
505
478
  "pluginName": "@xano/cli",
506
479
  "pluginType": "core",
@@ -510,51 +483,39 @@
510
483
  "relativePath": [
511
484
  "dist",
512
485
  "commands",
513
- "ephemeral",
514
- "run",
515
- "job",
486
+ "static_host",
487
+ "list",
516
488
  "index.js"
517
489
  ]
518
490
  },
519
- "workspace:list": {
491
+ "profile:delete": {
520
492
  "aliases": [],
521
- "args": {},
522
- "description": "List all workspaces from the Xano Metadata API",
493
+ "args": {
494
+ "name": {
495
+ "description": "Profile name to delete",
496
+ "name": "name",
497
+ "required": true
498
+ }
499
+ },
500
+ "description": "Delete a profile configuration",
523
501
  "examples": [
524
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
525
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
526
- "$ 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",
527
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
502
+ "$ 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",
503
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
504
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
528
505
  ],
529
506
  "flags": {
530
- "profile": {
531
- "char": "p",
532
- "description": "Profile to use for this command",
533
- "env": "XANO_PROFILE",
534
- "name": "profile",
535
- "required": false,
536
- "hasDynamicHelp": false,
537
- "multiple": false,
538
- "type": "option"
539
- },
540
- "output": {
541
- "char": "o",
542
- "description": "Output format",
543
- "name": "output",
507
+ "force": {
508
+ "char": "f",
509
+ "description": "Skip confirmation prompt",
510
+ "name": "force",
544
511
  "required": false,
545
- "default": "summary",
546
- "hasDynamicHelp": false,
547
- "multiple": false,
548
- "options": [
549
- "summary",
550
- "json"
551
- ],
552
- "type": "option"
512
+ "allowNo": false,
513
+ "type": "boolean"
553
514
  }
554
515
  },
555
516
  "hasDynamicHelp": false,
556
517
  "hiddenAliases": [],
557
- "id": "workspace:list",
518
+ "id": "profile:delete",
558
519
  "pluginAlias": "@xano/cli",
559
520
  "pluginName": "@xano/cli",
560
521
  "pluginType": "core",
@@ -564,174 +525,84 @@
564
525
  "relativePath": [
565
526
  "dist",
566
527
  "commands",
567
- "workspace",
568
- "list",
528
+ "profile",
529
+ "delete",
569
530
  "index.js"
570
531
  ]
571
532
  },
572
- "static_host:list": {
533
+ "profile:create": {
573
534
  "aliases": [],
574
- "args": {},
575
- "description": "List all static hosts in a workspace from the Xano Metadata API",
535
+ "args": {
536
+ "name": {
537
+ "description": "Profile name",
538
+ "name": "name",
539
+ "required": true
540
+ }
541
+ },
542
+ "description": "Create a new profile configuration",
576
543
  "examples": [
577
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
578
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
579
- "$ 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",
580
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
544
+ "$ 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",
545
+ "$ 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",
546
+ "$ 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",
547
+ "$ 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"
581
548
  ],
582
549
  "flags": {
583
- "profile": {
584
- "char": "p",
585
- "description": "Profile to use for this command",
586
- "env": "XANO_PROFILE",
587
- "name": "profile",
550
+ "account_origin": {
551
+ "char": "a",
552
+ "description": "Account origin URL. Optional for self hosted installs.",
553
+ "name": "account_origin",
588
554
  "required": false,
589
555
  "hasDynamicHelp": false,
590
556
  "multiple": false,
591
557
  "type": "option"
592
558
  },
593
- "workspace": {
594
- "char": "w",
595
- "description": "Workspace ID (optional if set in profile)",
596
- "name": "workspace",
597
- "required": false,
559
+ "instance_origin": {
560
+ "char": "i",
561
+ "description": "Instance origin URL",
562
+ "name": "instance_origin",
563
+ "required": true,
598
564
  "hasDynamicHelp": false,
599
565
  "multiple": false,
600
566
  "type": "option"
601
567
  },
602
- "output": {
603
- "char": "o",
604
- "description": "Output format",
605
- "name": "output",
606
- "required": false,
607
- "default": "summary",
608
- "hasDynamicHelp": false,
609
- "multiple": false,
610
- "options": [
611
- "summary",
612
- "json"
613
- ],
614
- "type": "option"
615
- },
616
- "page": {
617
- "description": "Page number for pagination",
618
- "name": "page",
619
- "required": false,
620
- "default": 1,
621
- "hasDynamicHelp": false,
622
- "multiple": false,
623
- "type": "option"
624
- },
625
- "per_page": {
626
- "description": "Number of results per page",
627
- "name": "per_page",
628
- "required": false,
629
- "default": 50,
630
- "hasDynamicHelp": false,
631
- "multiple": false,
632
- "type": "option"
633
- }
634
- },
635
- "hasDynamicHelp": false,
636
- "hiddenAliases": [],
637
- "id": "static_host:list",
638
- "pluginAlias": "@xano/cli",
639
- "pluginName": "@xano/cli",
640
- "pluginType": "core",
641
- "strict": true,
642
- "enableJsonFlag": false,
643
- "isESM": true,
644
- "relativePath": [
645
- "dist",
646
- "commands",
647
- "static_host",
648
- "list",
649
- "index.js"
650
- ]
651
- },
652
- "ephemeral:run:service": {
653
- "aliases": [],
654
- "args": {},
655
- "description": "Run an ephemeral service in a workspace",
656
- "examples": [
657
- "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
658
- "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
659
- "$ xano ephemeral:run:service -w 1 -f service.xs --edit\n# Opens service.xs in $EDITOR, then creates service with edited content\nService created successfully!\n...\n",
660
- "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
661
- "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
662
- ],
663
- "flags": {
664
- "profile": {
665
- "char": "p",
666
- "description": "Profile to use for this command",
667
- "env": "XANO_PROFILE",
668
- "name": "profile",
669
- "required": false,
568
+ "access_token": {
569
+ "char": "t",
570
+ "description": "Access token for the Xano Metadata API",
571
+ "name": "access_token",
572
+ "required": true,
670
573
  "hasDynamicHelp": false,
671
574
  "multiple": false,
672
575
  "type": "option"
673
576
  },
674
577
  "workspace": {
675
578
  "char": "w",
676
- "description": "Workspace ID (optional if set in profile)",
579
+ "description": "Workspace name",
677
580
  "name": "workspace",
678
581
  "required": false,
679
582
  "hasDynamicHelp": false,
680
583
  "multiple": false,
681
584
  "type": "option"
682
585
  },
683
- "file": {
684
- "char": "f",
685
- "description": "Path or URL to file containing XanoScript code",
686
- "exclusive": [
687
- "stdin"
688
- ],
689
- "name": "file",
586
+ "branch": {
587
+ "char": "b",
588
+ "description": "Branch name",
589
+ "name": "branch",
690
590
  "required": false,
691
591
  "hasDynamicHelp": false,
692
592
  "multiple": false,
693
593
  "type": "option"
694
594
  },
695
- "stdin": {
696
- "char": "s",
697
- "description": "Read XanoScript code from stdin",
698
- "exclusive": [
699
- "file"
700
- ],
701
- "name": "stdin",
702
- "required": false,
703
- "allowNo": false,
704
- "type": "boolean"
705
- },
706
- "edit": {
707
- "char": "e",
708
- "dependsOn": [
709
- "file"
710
- ],
711
- "description": "Open file in editor before running service (requires --file)",
712
- "name": "edit",
595
+ "default": {
596
+ "description": "Set this profile as the default",
597
+ "name": "default",
713
598
  "required": false,
714
599
  "allowNo": false,
715
600
  "type": "boolean"
716
- },
717
- "output": {
718
- "char": "o",
719
- "description": "Output format",
720
- "name": "output",
721
- "required": false,
722
- "default": "summary",
723
- "hasDynamicHelp": false,
724
- "multiple": false,
725
- "options": [
726
- "summary",
727
- "json"
728
- ],
729
- "type": "option"
730
601
  }
731
602
  },
732
603
  "hasDynamicHelp": false,
733
604
  "hiddenAliases": [],
734
- "id": "ephemeral:run:service",
605
+ "id": "profile:create",
735
606
  "pluginAlias": "@xano/cli",
736
607
  "pluginName": "@xano/cli",
737
608
  "pluginType": "core",
@@ -741,9 +612,8 @@
741
612
  "relativePath": [
742
613
  "dist",
743
614
  "commands",
744
- "ephemeral",
745
- "run",
746
- "service",
615
+ "profile",
616
+ "create",
747
617
  "index.js"
748
618
  ]
749
619
  },
@@ -773,26 +643,20 @@
773
643
  "index.js"
774
644
  ]
775
645
  },
776
- "profile:delete": {
646
+ "profile:list": {
777
647
  "aliases": [],
778
- "args": {
779
- "name": {
780
- "description": "Profile name to delete",
781
- "name": "name",
782
- "required": true
783
- }
784
- },
785
- "description": "Delete a profile configuration",
648
+ "args": {},
649
+ "description": "List all available profile configurations",
786
650
  "examples": [
787
- "$ 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",
788
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
789
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
651
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
652
+ "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
653
+ "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n"
790
654
  ],
791
655
  "flags": {
792
- "force": {
793
- "char": "f",
794
- "description": "Skip confirmation prompt",
795
- "name": "force",
656
+ "details": {
657
+ "char": "d",
658
+ "description": "Show detailed information for each profile",
659
+ "name": "details",
796
660
  "required": false,
797
661
  "allowNo": false,
798
662
  "type": "boolean"
@@ -800,7 +664,7 @@
800
664
  },
801
665
  "hasDynamicHelp": false,
802
666
  "hiddenAliases": [],
803
- "id": "profile:delete",
667
+ "id": "profile:list",
804
668
  "pluginAlias": "@xano/cli",
805
669
  "pluginName": "@xano/cli",
806
670
  "pluginType": "core",
@@ -811,83 +675,93 @@
811
675
  "dist",
812
676
  "commands",
813
677
  "profile",
814
- "delete",
678
+ "list",
815
679
  "index.js"
816
680
  ]
817
681
  },
818
- "profile:create": {
682
+ "profile:me": {
819
683
  "aliases": [],
820
- "args": {
821
- "name": {
822
- "description": "Profile name",
823
- "name": "name",
824
- "required": true
825
- }
826
- },
827
- "description": "Create a new profile configuration",
684
+ "args": {},
685
+ "description": "Get information about the currently authenticated user",
828
686
  "examples": [
829
- "$ 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",
830
- "$ 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",
831
- "$ 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",
832
- "$ 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"
687
+ "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
688
+ "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
689
+ "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
833
690
  ],
834
691
  "flags": {
835
- "account_origin": {
836
- "char": "a",
837
- "description": "Account origin URL. Optional for self hosted installs.",
838
- "name": "account_origin",
692
+ "profile": {
693
+ "char": "p",
694
+ "description": "Profile to use for this command",
695
+ "env": "XANO_PROFILE",
696
+ "name": "profile",
839
697
  "required": false,
840
698
  "hasDynamicHelp": false,
841
699
  "multiple": false,
842
700
  "type": "option"
843
701
  },
844
- "instance_origin": {
845
- "char": "i",
846
- "description": "Instance origin URL",
847
- "name": "instance_origin",
848
- "required": true,
849
- "hasDynamicHelp": false,
850
- "multiple": false,
851
- "type": "option"
852
- },
853
- "access_token": {
854
- "char": "t",
855
- "description": "Access token for the Xano Metadata API",
856
- "name": "access_token",
857
- "required": true,
702
+ "output": {
703
+ "char": "o",
704
+ "description": "Output format",
705
+ "name": "output",
706
+ "required": false,
707
+ "default": "summary",
858
708
  "hasDynamicHelp": false,
859
709
  "multiple": false,
710
+ "options": [
711
+ "summary",
712
+ "json"
713
+ ],
860
714
  "type": "option"
861
- },
862
- "workspace": {
863
- "char": "w",
864
- "description": "Workspace name",
865
- "name": "workspace",
715
+ }
716
+ },
717
+ "hasDynamicHelp": false,
718
+ "hiddenAliases": [],
719
+ "id": "profile:me",
720
+ "pluginAlias": "@xano/cli",
721
+ "pluginName": "@xano/cli",
722
+ "pluginType": "core",
723
+ "strict": true,
724
+ "enableJsonFlag": false,
725
+ "isESM": true,
726
+ "relativePath": [
727
+ "dist",
728
+ "commands",
729
+ "profile",
730
+ "me",
731
+ "index.js"
732
+ ]
733
+ },
734
+ "profile:wizard": {
735
+ "aliases": [],
736
+ "args": {},
737
+ "description": "Create a new profile configuration using an interactive wizard",
738
+ "examples": [
739
+ "$ 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"
740
+ ],
741
+ "flags": {
742
+ "name": {
743
+ "char": "n",
744
+ "description": "Profile name (skip prompt if provided)",
745
+ "name": "name",
866
746
  "required": false,
867
747
  "hasDynamicHelp": false,
868
748
  "multiple": false,
869
749
  "type": "option"
870
750
  },
871
- "branch": {
872
- "char": "b",
873
- "description": "Branch name",
874
- "name": "branch",
751
+ "origin": {
752
+ "char": "o",
753
+ "description": "Xano instance origin URL",
754
+ "name": "origin",
875
755
  "required": false,
756
+ "default": "https://app.xano.com",
876
757
  "hasDynamicHelp": false,
877
758
  "multiple": false,
878
759
  "type": "option"
879
- },
880
- "default": {
881
- "description": "Set this profile as the default",
882
- "name": "default",
883
- "required": false,
884
- "allowNo": false,
885
- "type": "boolean"
886
760
  }
887
761
  },
888
762
  "hasDynamicHelp": false,
889
763
  "hiddenAliases": [],
890
- "id": "profile:create",
764
+ "id": "profile:wizard",
891
765
  "pluginAlias": "@xano/cli",
892
766
  "pluginName": "@xano/cli",
893
767
  "pluginType": "core",
@@ -898,7 +772,7 @@
898
772
  "dist",
899
773
  "commands",
900
774
  "profile",
901
- "create",
775
+ "wizard",
902
776
  "index.js"
903
777
  ]
904
778
  },
@@ -934,28 +808,142 @@
934
808
  "index.js"
935
809
  ]
936
810
  },
937
- "profile:list": {
811
+ "workspace:list": {
938
812
  "aliases": [],
939
813
  "args": {},
940
- "description": "List all available profile configurations",
814
+ "description": "List all workspaces from the Xano Metadata API",
941
815
  "examples": [
942
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
943
- "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
944
- "$ 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"
816
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
817
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
818
+ "$ 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",
819
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
945
820
  ],
946
821
  "flags": {
947
- "details": {
948
- "char": "d",
949
- "description": "Show detailed information for each profile",
950
- "name": "details",
822
+ "profile": {
823
+ "char": "p",
824
+ "description": "Profile to use for this command",
825
+ "env": "XANO_PROFILE",
826
+ "name": "profile",
827
+ "required": false,
828
+ "hasDynamicHelp": false,
829
+ "multiple": false,
830
+ "type": "option"
831
+ },
832
+ "output": {
833
+ "char": "o",
834
+ "description": "Output format",
835
+ "name": "output",
836
+ "required": false,
837
+ "default": "summary",
838
+ "hasDynamicHelp": false,
839
+ "multiple": false,
840
+ "options": [
841
+ "summary",
842
+ "json"
843
+ ],
844
+ "type": "option"
845
+ }
846
+ },
847
+ "hasDynamicHelp": false,
848
+ "hiddenAliases": [],
849
+ "id": "workspace:list",
850
+ "pluginAlias": "@xano/cli",
851
+ "pluginName": "@xano/cli",
852
+ "pluginType": "core",
853
+ "strict": true,
854
+ "enableJsonFlag": false,
855
+ "isESM": true,
856
+ "relativePath": [
857
+ "dist",
858
+ "commands",
859
+ "workspace",
860
+ "list",
861
+ "index.js"
862
+ ]
863
+ },
864
+ "ephemeral:run:job": {
865
+ "aliases": [],
866
+ "args": {},
867
+ "description": "Run an ephemeral job",
868
+ "examples": [
869
+ "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
870
+ "$ xano ephemeral:run:job -f script.xs --edit\n# Opens script.xs in $EDITOR, then runs job with edited content\nJob executed successfully!\n...\n",
871
+ "$ cat script.xs | xano ephemeral:run:job --stdin\nJob executed successfully!\n...\n",
872
+ "$ xano ephemeral:run:job -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
873
+ "$ xano ephemeral:run:job -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
874
+ ],
875
+ "flags": {
876
+ "profile": {
877
+ "char": "p",
878
+ "description": "Profile to use for this command",
879
+ "env": "XANO_PROFILE",
880
+ "name": "profile",
881
+ "required": false,
882
+ "hasDynamicHelp": false,
883
+ "multiple": false,
884
+ "type": "option"
885
+ },
886
+ "file": {
887
+ "char": "f",
888
+ "description": "Path or URL to file containing XanoScript code",
889
+ "exclusive": [
890
+ "stdin"
891
+ ],
892
+ "name": "file",
893
+ "required": false,
894
+ "hasDynamicHelp": false,
895
+ "multiple": false,
896
+ "type": "option"
897
+ },
898
+ "stdin": {
899
+ "char": "s",
900
+ "description": "Read XanoScript code from stdin",
901
+ "exclusive": [
902
+ "file"
903
+ ],
904
+ "name": "stdin",
951
905
  "required": false,
952
906
  "allowNo": false,
953
907
  "type": "boolean"
908
+ },
909
+ "edit": {
910
+ "char": "e",
911
+ "dependsOn": [
912
+ "file"
913
+ ],
914
+ "description": "Open file in editor before running job (requires --file)",
915
+ "name": "edit",
916
+ "required": false,
917
+ "allowNo": false,
918
+ "type": "boolean"
919
+ },
920
+ "output": {
921
+ "char": "o",
922
+ "description": "Output format",
923
+ "name": "output",
924
+ "required": false,
925
+ "default": "summary",
926
+ "hasDynamicHelp": false,
927
+ "multiple": false,
928
+ "options": [
929
+ "summary",
930
+ "json"
931
+ ],
932
+ "type": "option"
933
+ },
934
+ "args": {
935
+ "char": "a",
936
+ "description": "Path or URL to JSON file containing input arguments",
937
+ "name": "args",
938
+ "required": false,
939
+ "hasDynamicHelp": false,
940
+ "multiple": false,
941
+ "type": "option"
954
942
  }
955
943
  },
956
944
  "hasDynamicHelp": false,
957
945
  "hiddenAliases": [],
958
- "id": "profile:list",
946
+ "id": "ephemeral:run:job",
959
947
  "pluginAlias": "@xano/cli",
960
948
  "pluginName": "@xano/cli",
961
949
  "pluginType": "core",
@@ -965,42 +953,85 @@
965
953
  "relativePath": [
966
954
  "dist",
967
955
  "commands",
968
- "profile",
969
- "list",
956
+ "ephemeral",
957
+ "run",
958
+ "job",
970
959
  "index.js"
971
960
  ]
972
961
  },
973
- "profile:wizard": {
962
+ "ephemeral:run:service": {
974
963
  "aliases": [],
975
964
  "args": {},
976
- "description": "Create a new profile configuration using an interactive wizard",
965
+ "description": "Run an ephemeral service",
977
966
  "examples": [
978
- "$ 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"
967
+ "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
968
+ "$ xano ephemeral:run:service -f service.xs --edit\n# Opens service.xs in $EDITOR, then creates service with edited content\nService created successfully!\n...\n",
969
+ "$ cat service.xs | xano ephemeral:run:service --stdin\nService created successfully!\n...\n",
970
+ "$ xano ephemeral:run:service -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
979
971
  ],
980
972
  "flags": {
981
- "name": {
982
- "char": "n",
983
- "description": "Profile name (skip prompt if provided)",
984
- "name": "name",
973
+ "profile": {
974
+ "char": "p",
975
+ "description": "Profile to use for this command",
976
+ "env": "XANO_PROFILE",
977
+ "name": "profile",
985
978
  "required": false,
986
979
  "hasDynamicHelp": false,
987
980
  "multiple": false,
988
981
  "type": "option"
989
982
  },
990
- "origin": {
983
+ "file": {
984
+ "char": "f",
985
+ "description": "Path or URL to file containing XanoScript code",
986
+ "exclusive": [
987
+ "stdin"
988
+ ],
989
+ "name": "file",
990
+ "required": false,
991
+ "hasDynamicHelp": false,
992
+ "multiple": false,
993
+ "type": "option"
994
+ },
995
+ "stdin": {
996
+ "char": "s",
997
+ "description": "Read XanoScript code from stdin",
998
+ "exclusive": [
999
+ "file"
1000
+ ],
1001
+ "name": "stdin",
1002
+ "required": false,
1003
+ "allowNo": false,
1004
+ "type": "boolean"
1005
+ },
1006
+ "edit": {
1007
+ "char": "e",
1008
+ "dependsOn": [
1009
+ "file"
1010
+ ],
1011
+ "description": "Open file in editor before running service (requires --file)",
1012
+ "name": "edit",
1013
+ "required": false,
1014
+ "allowNo": false,
1015
+ "type": "boolean"
1016
+ },
1017
+ "output": {
991
1018
  "char": "o",
992
- "description": "Xano instance origin URL",
993
- "name": "origin",
1019
+ "description": "Output format",
1020
+ "name": "output",
994
1021
  "required": false,
995
- "default": "https://app.xano.com",
1022
+ "default": "summary",
996
1023
  "hasDynamicHelp": false,
997
1024
  "multiple": false,
1025
+ "options": [
1026
+ "summary",
1027
+ "json"
1028
+ ],
998
1029
  "type": "option"
999
1030
  }
1000
1031
  },
1001
1032
  "hasDynamicHelp": false,
1002
1033
  "hiddenAliases": [],
1003
- "id": "profile:wizard",
1034
+ "id": "ephemeral:run:service",
1004
1035
  "pluginAlias": "@xano/cli",
1005
1036
  "pluginName": "@xano/cli",
1006
1037
  "pluginType": "core",
@@ -1010,8 +1041,9 @@
1010
1041
  "relativePath": [
1011
1042
  "dist",
1012
1043
  "commands",
1013
- "profile",
1014
- "wizard",
1044
+ "ephemeral",
1045
+ "run",
1046
+ "service",
1015
1047
  "index.js"
1016
1048
  ]
1017
1049
  },
@@ -1019,19 +1051,30 @@
1019
1051
  "aliases": [],
1020
1052
  "args": {
1021
1053
  "name": {
1022
- "description": "Profile name to edit",
1054
+ "description": "Profile name to edit (uses default profile if not specified)",
1023
1055
  "name": "name",
1024
- "required": true
1056
+ "required": false
1025
1057
  }
1026
1058
  },
1027
1059
  "description": "Edit an existing profile configuration",
1028
1060
  "examples": [
1061
+ "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1029
1062
  "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
1030
1063
  "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
1031
- "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
1032
- "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
1064
+ "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
1065
+ "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
1033
1066
  ],
1034
1067
  "flags": {
1068
+ "profile": {
1069
+ "char": "p",
1070
+ "description": "Profile to use for this command",
1071
+ "env": "XANO_PROFILE",
1072
+ "name": "profile",
1073
+ "required": false,
1074
+ "hasDynamicHelp": false,
1075
+ "multiple": false,
1076
+ "type": "option"
1077
+ },
1035
1078
  "account_origin": {
1036
1079
  "char": "a",
1037
1080
  "description": "Update account origin URL",
@@ -1366,5 +1409,5 @@
1366
1409
  ]
1367
1410
  }
1368
1411
  },
1369
- "version": "0.0.11"
1412
+ "version": "0.0.13"
1370
1413
  }