@xano/cli 0.0.10 → 0.0.12

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.
@@ -292,128 +292,108 @@
292
292
  "index.js"
293
293
  ]
294
294
  },
295
- "profile:delete": {
296
- "aliases": [],
297
- "args": {
298
- "name": {
299
- "description": "Profile name to delete",
300
- "name": "name",
301
- "required": true
302
- }
303
- },
304
- "description": "Delete a profile configuration",
305
- "examples": [
306
- "$ 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",
307
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
308
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
309
- ],
310
- "flags": {
311
- "force": {
312
- "char": "f",
313
- "description": "Skip confirmation prompt",
314
- "name": "force",
315
- "required": false,
316
- "allowNo": false,
317
- "type": "boolean"
318
- }
319
- },
320
- "hasDynamicHelp": false,
321
- "hiddenAliases": [],
322
- "id": "profile:delete",
323
- "pluginAlias": "@xano/cli",
324
- "pluginName": "@xano/cli",
325
- "pluginType": "core",
326
- "strict": true,
327
- "enableJsonFlag": false,
328
- "isESM": true,
329
- "relativePath": [
330
- "dist",
331
- "commands",
332
- "profile",
333
- "delete",
334
- "index.js"
335
- ]
336
- },
337
- "profile:edit": {
295
+ "function:list": {
338
296
  "aliases": [],
339
- "args": {
340
- "name": {
341
- "description": "Profile name to edit",
342
- "name": "name",
343
- "required": true
344
- }
345
- },
346
- "description": "Edit an existing profile configuration",
297
+ "args": {},
298
+ "description": "List all functions in a workspace from the Xano Metadata API",
347
299
  "examples": [
348
- "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
349
- "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
350
- "$ xano profile:edit dev -w new-workspace -b new-branch\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n",
351
- "$ xano profile:edit dev --remove-workspace\nProfile 'dev' updated successfully at ~/.xano/credentials.yaml\n"
300
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
301
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
302
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
303
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
352
304
  ],
353
305
  "flags": {
354
- "account_origin": {
355
- "char": "a",
356
- "description": "Update account origin URL",
357
- "name": "account_origin",
306
+ "profile": {
307
+ "char": "p",
308
+ "description": "Profile to use for this command",
309
+ "env": "XANO_PROFILE",
310
+ "name": "profile",
358
311
  "required": false,
359
312
  "hasDynamicHelp": false,
360
313
  "multiple": false,
361
314
  "type": "option"
362
315
  },
363
- "instance_origin": {
364
- "char": "i",
365
- "description": "Update instance origin URL",
366
- "name": "instance_origin",
316
+ "workspace": {
317
+ "char": "w",
318
+ "description": "Workspace ID (optional if set in profile)",
319
+ "name": "workspace",
367
320
  "required": false,
368
321
  "hasDynamicHelp": false,
369
322
  "multiple": false,
370
323
  "type": "option"
371
324
  },
372
- "access_token": {
373
- "char": "t",
374
- "description": "Update access token for the Xano Metadata API",
375
- "name": "access_token",
325
+ "output": {
326
+ "char": "o",
327
+ "description": "Output format",
328
+ "name": "output",
376
329
  "required": false,
330
+ "default": "summary",
377
331
  "hasDynamicHelp": false,
378
332
  "multiple": false,
333
+ "options": [
334
+ "summary",
335
+ "json"
336
+ ],
379
337
  "type": "option"
380
338
  },
381
- "workspace": {
382
- "char": "w",
383
- "description": "Update workspace name",
384
- "name": "workspace",
339
+ "include_draft": {
340
+ "description": "Include draft functions",
341
+ "name": "include_draft",
342
+ "required": false,
343
+ "allowNo": false,
344
+ "type": "boolean"
345
+ },
346
+ "include_xanoscript": {
347
+ "description": "Include XanoScript in response",
348
+ "name": "include_xanoscript",
385
349
  "required": false,
350
+ "allowNo": false,
351
+ "type": "boolean"
352
+ },
353
+ "page": {
354
+ "description": "Page number for pagination",
355
+ "name": "page",
356
+ "required": false,
357
+ "default": 1,
386
358
  "hasDynamicHelp": false,
387
359
  "multiple": false,
388
360
  "type": "option"
389
361
  },
390
- "branch": {
391
- "char": "b",
392
- "description": "Update branch name",
393
- "name": "branch",
362
+ "per_page": {
363
+ "description": "Number of results per page",
364
+ "name": "per_page",
394
365
  "required": false,
366
+ "default": 50,
395
367
  "hasDynamicHelp": false,
396
368
  "multiple": false,
397
369
  "type": "option"
398
370
  },
399
- "remove-workspace": {
400
- "description": "Remove workspace from profile",
401
- "name": "remove-workspace",
371
+ "sort": {
372
+ "description": "Sort field",
373
+ "name": "sort",
402
374
  "required": false,
403
- "allowNo": false,
404
- "type": "boolean"
375
+ "default": "created_at",
376
+ "hasDynamicHelp": false,
377
+ "multiple": false,
378
+ "type": "option"
405
379
  },
406
- "remove-branch": {
407
- "description": "Remove branch from profile",
408
- "name": "remove-branch",
380
+ "order": {
381
+ "description": "Sort order",
382
+ "name": "order",
409
383
  "required": false,
410
- "allowNo": false,
411
- "type": "boolean"
384
+ "default": "desc",
385
+ "hasDynamicHelp": false,
386
+ "multiple": false,
387
+ "options": [
388
+ "asc",
389
+ "desc"
390
+ ],
391
+ "type": "option"
412
392
  }
413
393
  },
414
394
  "hasDynamicHelp": false,
415
395
  "hiddenAliases": [],
416
- "id": "profile:edit",
396
+ "id": "function:list",
417
397
  "pluginAlias": "@xano/cli",
418
398
  "pluginName": "@xano/cli",
419
399
  "pluginType": "core",
@@ -423,8 +403,8 @@
423
403
  "relativePath": [
424
404
  "dist",
425
405
  "commands",
426
- "profile",
427
- "edit",
406
+ "function",
407
+ "list",
428
408
  "index.js"
429
409
  ]
430
410
  },
@@ -595,15 +575,64 @@
595
575
  "index.js"
596
576
  ]
597
577
  },
598
- "function:list": {
578
+ "profile:delete": {
599
579
  "aliases": [],
600
- "args": {},
601
- "description": "List all functions in a workspace from the Xano Metadata API",
580
+ "args": {
581
+ "name": {
582
+ "description": "Profile name to delete",
583
+ "name": "name",
584
+ "required": true
585
+ }
586
+ },
587
+ "description": "Delete a profile configuration",
602
588
  "examples": [
603
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
604
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
605
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
606
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
589
+ "$ 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",
590
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
591
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
592
+ ],
593
+ "flags": {
594
+ "force": {
595
+ "char": "f",
596
+ "description": "Skip confirmation prompt",
597
+ "name": "force",
598
+ "required": false,
599
+ "allowNo": false,
600
+ "type": "boolean"
601
+ }
602
+ },
603
+ "hasDynamicHelp": false,
604
+ "hiddenAliases": [],
605
+ "id": "profile:delete",
606
+ "pluginAlias": "@xano/cli",
607
+ "pluginName": "@xano/cli",
608
+ "pluginType": "core",
609
+ "strict": true,
610
+ "enableJsonFlag": false,
611
+ "isESM": true,
612
+ "relativePath": [
613
+ "dist",
614
+ "commands",
615
+ "profile",
616
+ "delete",
617
+ "index.js"
618
+ ]
619
+ },
620
+ "profile:edit": {
621
+ "aliases": [],
622
+ "args": {
623
+ "name": {
624
+ "description": "Profile name to edit (uses default profile if not specified)",
625
+ "name": "name",
626
+ "required": false
627
+ }
628
+ },
629
+ "description": "Edit an existing profile configuration",
630
+ "examples": [
631
+ "$ xano profile:edit --access_token new_token123\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
632
+ "$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
633
+ "$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
634
+ "$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
635
+ "$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
607
636
  ],
608
637
  "flags": {
609
638
  "profile": {
@@ -616,87 +645,157 @@
616
645
  "multiple": false,
617
646
  "type": "option"
618
647
  },
648
+ "account_origin": {
649
+ "char": "a",
650
+ "description": "Update account origin URL",
651
+ "name": "account_origin",
652
+ "required": false,
653
+ "hasDynamicHelp": false,
654
+ "multiple": false,
655
+ "type": "option"
656
+ },
657
+ "instance_origin": {
658
+ "char": "i",
659
+ "description": "Update instance origin URL",
660
+ "name": "instance_origin",
661
+ "required": false,
662
+ "hasDynamicHelp": false,
663
+ "multiple": false,
664
+ "type": "option"
665
+ },
666
+ "access_token": {
667
+ "char": "t",
668
+ "description": "Update access token for the Xano Metadata API",
669
+ "name": "access_token",
670
+ "required": false,
671
+ "hasDynamicHelp": false,
672
+ "multiple": false,
673
+ "type": "option"
674
+ },
619
675
  "workspace": {
620
676
  "char": "w",
621
- "description": "Workspace ID (optional if set in profile)",
677
+ "description": "Update workspace name",
622
678
  "name": "workspace",
623
679
  "required": false,
624
680
  "hasDynamicHelp": false,
625
681
  "multiple": false,
626
682
  "type": "option"
627
683
  },
628
- "output": {
629
- "char": "o",
630
- "description": "Output format",
631
- "name": "output",
684
+ "branch": {
685
+ "char": "b",
686
+ "description": "Update branch name",
687
+ "name": "branch",
632
688
  "required": false,
633
- "default": "summary",
634
689
  "hasDynamicHelp": false,
635
690
  "multiple": false,
636
- "options": [
637
- "summary",
638
- "json"
639
- ],
640
691
  "type": "option"
641
692
  },
642
- "include_draft": {
643
- "description": "Include draft functions",
644
- "name": "include_draft",
693
+ "remove-workspace": {
694
+ "description": "Remove workspace from profile",
695
+ "name": "remove-workspace",
645
696
  "required": false,
646
697
  "allowNo": false,
647
698
  "type": "boolean"
648
699
  },
649
- "include_xanoscript": {
650
- "description": "Include XanoScript in response",
651
- "name": "include_xanoscript",
700
+ "remove-branch": {
701
+ "description": "Remove branch from profile",
702
+ "name": "remove-branch",
652
703
  "required": false,
653
704
  "allowNo": false,
654
705
  "type": "boolean"
655
- },
656
- "page": {
657
- "description": "Page number for pagination",
658
- "name": "page",
659
- "required": false,
660
- "default": 1,
661
- "hasDynamicHelp": false,
662
- "multiple": false,
663
- "type": "option"
664
- },
665
- "per_page": {
666
- "description": "Number of results per page",
667
- "name": "per_page",
706
+ }
707
+ },
708
+ "hasDynamicHelp": false,
709
+ "hiddenAliases": [],
710
+ "id": "profile:edit",
711
+ "pluginAlias": "@xano/cli",
712
+ "pluginName": "@xano/cli",
713
+ "pluginType": "core",
714
+ "strict": true,
715
+ "enableJsonFlag": false,
716
+ "isESM": true,
717
+ "relativePath": [
718
+ "dist",
719
+ "commands",
720
+ "profile",
721
+ "edit",
722
+ "index.js"
723
+ ]
724
+ },
725
+ "profile:me": {
726
+ "aliases": [],
727
+ "args": {},
728
+ "description": "Get information about the currently authenticated user",
729
+ "examples": [
730
+ "$ xano profile:me\nUser Information:\n ID: 1\n Name: John Doe\n Email: john@example.com\n",
731
+ "$ xano profile:me --profile production\nUser Information:\n ID: 42\n Name: Admin User\n Email: admin@example.com\n",
732
+ "$ xano profile:me --output json\n{\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}\n"
733
+ ],
734
+ "flags": {
735
+ "profile": {
736
+ "char": "p",
737
+ "description": "Profile to use for this command",
738
+ "env": "XANO_PROFILE",
739
+ "name": "profile",
668
740
  "required": false,
669
- "default": 50,
670
741
  "hasDynamicHelp": false,
671
742
  "multiple": false,
672
743
  "type": "option"
673
744
  },
674
- "sort": {
675
- "description": "Sort field",
676
- "name": "sort",
745
+ "output": {
746
+ "char": "o",
747
+ "description": "Output format",
748
+ "name": "output",
677
749
  "required": false,
678
- "default": "created_at",
750
+ "default": "summary",
679
751
  "hasDynamicHelp": false,
680
752
  "multiple": false,
753
+ "options": [
754
+ "summary",
755
+ "json"
756
+ ],
681
757
  "type": "option"
682
- },
683
- "order": {
684
- "description": "Sort order",
685
- "name": "order",
758
+ }
759
+ },
760
+ "hasDynamicHelp": false,
761
+ "hiddenAliases": [],
762
+ "id": "profile:me",
763
+ "pluginAlias": "@xano/cli",
764
+ "pluginName": "@xano/cli",
765
+ "pluginType": "core",
766
+ "strict": true,
767
+ "enableJsonFlag": false,
768
+ "isESM": true,
769
+ "relativePath": [
770
+ "dist",
771
+ "commands",
772
+ "profile",
773
+ "me",
774
+ "index.js"
775
+ ]
776
+ },
777
+ "profile:list": {
778
+ "aliases": [],
779
+ "args": {},
780
+ "description": "List all available profile configurations",
781
+ "examples": [
782
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
783
+ "$ 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",
784
+ "$ 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"
785
+ ],
786
+ "flags": {
787
+ "details": {
788
+ "char": "d",
789
+ "description": "Show detailed information for each profile",
790
+ "name": "details",
686
791
  "required": false,
687
- "default": "desc",
688
- "hasDynamicHelp": false,
689
- "multiple": false,
690
- "options": [
691
- "asc",
692
- "desc"
693
- ],
694
- "type": "option"
792
+ "allowNo": false,
793
+ "type": "boolean"
695
794
  }
696
795
  },
697
796
  "hasDynamicHelp": false,
698
797
  "hiddenAliases": [],
699
- "id": "function:list",
798
+ "id": "profile:list",
700
799
  "pluginAlias": "@xano/cli",
701
800
  "pluginName": "@xano/cli",
702
801
  "pluginType": "core",
@@ -706,7 +805,7 @@
706
805
  "relativePath": [
707
806
  "dist",
708
807
  "commands",
709
- "function",
808
+ "profile",
710
809
  "list",
711
810
  "index.js"
712
811
  ]
@@ -788,68 +887,6 @@
788
887
  "index.js"
789
888
  ]
790
889
  },
791
- "profile:get-default": {
792
- "aliases": [],
793
- "args": {},
794
- "description": "Get the current default profile name",
795
- "examples": [
796
- "$ xano profile:get-default\nproduction\n",
797
- "$ xano profile:get-default\nNo default profile set\n"
798
- ],
799
- "flags": {},
800
- "hasDynamicHelp": false,
801
- "hiddenAliases": [],
802
- "id": "profile:get-default",
803
- "pluginAlias": "@xano/cli",
804
- "pluginName": "@xano/cli",
805
- "pluginType": "core",
806
- "strict": true,
807
- "enableJsonFlag": false,
808
- "isESM": true,
809
- "relativePath": [
810
- "dist",
811
- "commands",
812
- "profile",
813
- "get-default",
814
- "index.js"
815
- ]
816
- },
817
- "profile:list": {
818
- "aliases": [],
819
- "args": {},
820
- "description": "List all available profile configurations",
821
- "examples": [
822
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
823
- "$ 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",
824
- "$ 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"
825
- ],
826
- "flags": {
827
- "details": {
828
- "char": "d",
829
- "description": "Show detailed information for each profile",
830
- "name": "details",
831
- "required": false,
832
- "allowNo": false,
833
- "type": "boolean"
834
- }
835
- },
836
- "hasDynamicHelp": false,
837
- "hiddenAliases": [],
838
- "id": "profile:list",
839
- "pluginAlias": "@xano/cli",
840
- "pluginName": "@xano/cli",
841
- "pluginType": "core",
842
- "strict": true,
843
- "enableJsonFlag": false,
844
- "isESM": true,
845
- "relativePath": [
846
- "dist",
847
- "commands",
848
- "profile",
849
- "list",
850
- "index.js"
851
- ]
852
- },
853
890
  "workspace:list": {
854
891
  "aliases": [],
855
892
  "args": {},
@@ -903,16 +940,16 @@
903
940
  "index.js"
904
941
  ]
905
942
  },
906
- "ephemeral:run:service": {
943
+ "ephemeral:run:job": {
907
944
  "aliases": [],
908
945
  "args": {},
909
- "description": "Run an ephemeral service in a workspace",
946
+ "description": "Run an ephemeral job",
910
947
  "examples": [
911
- "$ xano ephemeral:run:service -w 1 -f service.xs\nService created successfully!\n...\n",
912
- "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
913
- "$ 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",
914
- "$ cat service.xs | xano ephemeral:run:service -w 1 --stdin\nService created successfully!\n...\n",
915
- "$ xano ephemeral:run:service -w 1 -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
948
+ "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
949
+ "$ 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",
950
+ "$ cat script.xs | xano ephemeral:run:job --stdin\nJob executed successfully!\n...\n",
951
+ "$ xano ephemeral:run:job -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
952
+ "$ xano ephemeral:run:job -f script.xs -a args.json\n# Runs job with input arguments from args.json\nJob executed successfully!\n...\n"
916
953
  ],
917
954
  "flags": {
918
955
  "profile": {
@@ -925,15 +962,6 @@
925
962
  "multiple": false,
926
963
  "type": "option"
927
964
  },
928
- "workspace": {
929
- "char": "w",
930
- "description": "Workspace ID (optional if set in profile)",
931
- "name": "workspace",
932
- "required": false,
933
- "hasDynamicHelp": false,
934
- "multiple": false,
935
- "type": "option"
936
- },
937
965
  "file": {
938
966
  "char": "f",
939
967
  "description": "Path or URL to file containing XanoScript code",
@@ -962,7 +990,7 @@
962
990
  "dependsOn": [
963
991
  "file"
964
992
  ],
965
- "description": "Open file in editor before running service (requires --file)",
993
+ "description": "Open file in editor before running job (requires --file)",
966
994
  "name": "edit",
967
995
  "required": false,
968
996
  "allowNo": false,
@@ -981,11 +1009,20 @@
981
1009
  "json"
982
1010
  ],
983
1011
  "type": "option"
1012
+ },
1013
+ "args": {
1014
+ "char": "a",
1015
+ "description": "Path or URL to JSON file containing input arguments",
1016
+ "name": "args",
1017
+ "required": false,
1018
+ "hasDynamicHelp": false,
1019
+ "multiple": false,
1020
+ "type": "option"
984
1021
  }
985
1022
  },
986
1023
  "hasDynamicHelp": false,
987
1024
  "hiddenAliases": [],
988
- "id": "ephemeral:run:service",
1025
+ "id": "ephemeral:run:job",
989
1026
  "pluginAlias": "@xano/cli",
990
1027
  "pluginName": "@xano/cli",
991
1028
  "pluginType": "core",
@@ -997,21 +1034,19 @@
997
1034
  "commands",
998
1035
  "ephemeral",
999
1036
  "run",
1000
- "service",
1037
+ "job",
1001
1038
  "index.js"
1002
1039
  ]
1003
1040
  },
1004
- "ephemeral:run:job": {
1041
+ "ephemeral:run:service": {
1005
1042
  "aliases": [],
1006
1043
  "args": {},
1007
- "description": "Run an ephemeral job in a workspace",
1044
+ "description": "Run an ephemeral service",
1008
1045
  "examples": [
1009
- "$ xano ephemeral:run:job -w 1 -f script.xs\nJob executed successfully!\n...\n",
1010
- "$ xano ephemeral:run:job -f script.xs\nJob executed successfully!\n...\n",
1011
- "$ 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",
1012
- "$ cat script.xs | xano ephemeral:run:job -w 1 --stdin\nJob executed successfully!\n...\n",
1013
- "$ xano ephemeral:run:job -w 1 -f script.xs -o json\n{\n \"job\": { \"id\": 1, \"run\": { \"id\": 1 } },\n \"result\": { ... }\n}\n",
1014
- "$ 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"
1046
+ "$ xano ephemeral:run:service -f service.xs\nService created successfully!\n...\n",
1047
+ "$ 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",
1048
+ "$ cat service.xs | xano ephemeral:run:service --stdin\nService created successfully!\n...\n",
1049
+ "$ xano ephemeral:run:service -f service.xs -o json\n{\n \"service\": { \"id\": 1 },\n ...\n}\n"
1015
1050
  ],
1016
1051
  "flags": {
1017
1052
  "profile": {
@@ -1024,15 +1059,6 @@
1024
1059
  "multiple": false,
1025
1060
  "type": "option"
1026
1061
  },
1027
- "workspace": {
1028
- "char": "w",
1029
- "description": "Workspace ID (optional if set in profile)",
1030
- "name": "workspace",
1031
- "required": false,
1032
- "hasDynamicHelp": false,
1033
- "multiple": false,
1034
- "type": "option"
1035
- },
1036
1062
  "file": {
1037
1063
  "char": "f",
1038
1064
  "description": "Path or URL to file containing XanoScript code",
@@ -1061,7 +1087,7 @@
1061
1087
  "dependsOn": [
1062
1088
  "file"
1063
1089
  ],
1064
- "description": "Open file in editor before running job (requires --file)",
1090
+ "description": "Open file in editor before running service (requires --file)",
1065
1091
  "name": "edit",
1066
1092
  "required": false,
1067
1093
  "allowNo": false,
@@ -1080,20 +1106,11 @@
1080
1106
  "json"
1081
1107
  ],
1082
1108
  "type": "option"
1083
- },
1084
- "args": {
1085
- "char": "a",
1086
- "description": "Path or URL to JSON file containing input arguments",
1087
- "name": "args",
1088
- "required": false,
1089
- "hasDynamicHelp": false,
1090
- "multiple": false,
1091
- "type": "option"
1092
1109
  }
1093
1110
  },
1094
1111
  "hasDynamicHelp": false,
1095
1112
  "hiddenAliases": [],
1096
- "id": "ephemeral:run:job",
1113
+ "id": "ephemeral:run:service",
1097
1114
  "pluginAlias": "@xano/cli",
1098
1115
  "pluginName": "@xano/cli",
1099
1116
  "pluginType": "core",
@@ -1105,30 +1122,50 @@
1105
1122
  "commands",
1106
1123
  "ephemeral",
1107
1124
  "run",
1108
- "job",
1125
+ "service",
1109
1126
  "index.js"
1110
1127
  ]
1111
1128
  },
1112
- "static_host:build:get": {
1129
+ "profile:get-default": {
1130
+ "aliases": [],
1131
+ "args": {},
1132
+ "description": "Get the current default profile name",
1133
+ "examples": [
1134
+ "$ xano profile:get-default\nproduction\n",
1135
+ "$ xano profile:get-default\nNo default profile set\n"
1136
+ ],
1137
+ "flags": {},
1138
+ "hasDynamicHelp": false,
1139
+ "hiddenAliases": [],
1140
+ "id": "profile:get-default",
1141
+ "pluginAlias": "@xano/cli",
1142
+ "pluginName": "@xano/cli",
1143
+ "pluginType": "core",
1144
+ "strict": true,
1145
+ "enableJsonFlag": false,
1146
+ "isESM": true,
1147
+ "relativePath": [
1148
+ "dist",
1149
+ "commands",
1150
+ "profile",
1151
+ "get-default",
1152
+ "index.js"
1153
+ ]
1154
+ },
1155
+ "static_host:build:create": {
1113
1156
  "aliases": [],
1114
1157
  "args": {
1115
1158
  "static_host": {
1116
1159
  "description": "Static Host name",
1117
1160
  "name": "static_host",
1118
1161
  "required": true
1119
- },
1120
- "build_id": {
1121
- "description": "Build ID",
1122
- "name": "build_id",
1123
- "required": true
1124
1162
  }
1125
1163
  },
1126
- "description": "Get details of a specific build for a static host",
1164
+ "description": "Create a new build for a static host",
1127
1165
  "examples": [
1128
- "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1129
- "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1130
- "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1131
- "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1166
+ "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
1167
+ "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
1168
+ "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
1132
1169
  ],
1133
1170
  "flags": {
1134
1171
  "profile": {
@@ -1150,6 +1187,33 @@
1150
1187
  "multiple": false,
1151
1188
  "type": "option"
1152
1189
  },
1190
+ "file": {
1191
+ "char": "f",
1192
+ "description": "Path to zip file to upload",
1193
+ "name": "file",
1194
+ "required": true,
1195
+ "hasDynamicHelp": false,
1196
+ "multiple": false,
1197
+ "type": "option"
1198
+ },
1199
+ "name": {
1200
+ "char": "n",
1201
+ "description": "Build name",
1202
+ "name": "name",
1203
+ "required": true,
1204
+ "hasDynamicHelp": false,
1205
+ "multiple": false,
1206
+ "type": "option"
1207
+ },
1208
+ "description": {
1209
+ "char": "d",
1210
+ "description": "Build description",
1211
+ "name": "description",
1212
+ "required": false,
1213
+ "hasDynamicHelp": false,
1214
+ "multiple": false,
1215
+ "type": "option"
1216
+ },
1153
1217
  "output": {
1154
1218
  "char": "o",
1155
1219
  "description": "Output format",
@@ -1167,7 +1231,7 @@
1167
1231
  },
1168
1232
  "hasDynamicHelp": false,
1169
1233
  "hiddenAliases": [],
1170
- "id": "static_host:build:get",
1234
+ "id": "static_host:build:create",
1171
1235
  "pluginAlias": "@xano/cli",
1172
1236
  "pluginName": "@xano/cli",
1173
1237
  "pluginType": "core",
@@ -1179,24 +1243,30 @@
1179
1243
  "commands",
1180
1244
  "static_host",
1181
1245
  "build",
1182
- "get",
1246
+ "create",
1183
1247
  "index.js"
1184
1248
  ]
1185
1249
  },
1186
- "static_host:build:create": {
1250
+ "static_host:build:get": {
1187
1251
  "aliases": [],
1188
1252
  "args": {
1189
1253
  "static_host": {
1190
1254
  "description": "Static Host name",
1191
1255
  "name": "static_host",
1192
1256
  "required": true
1257
+ },
1258
+ "build_id": {
1259
+ "description": "Build ID",
1260
+ "name": "build_id",
1261
+ "required": true
1193
1262
  }
1194
1263
  },
1195
- "description": "Create a new build for a static host",
1264
+ "description": "Get details of a specific build for a static host",
1196
1265
  "examples": [
1197
- "$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
1198
- "$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
1199
- "$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
1266
+ "$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1267
+ "$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
1268
+ "$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
1269
+ "$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
1200
1270
  ],
1201
1271
  "flags": {
1202
1272
  "profile": {
@@ -1218,33 +1288,6 @@
1218
1288
  "multiple": false,
1219
1289
  "type": "option"
1220
1290
  },
1221
- "file": {
1222
- "char": "f",
1223
- "description": "Path to zip file to upload",
1224
- "name": "file",
1225
- "required": true,
1226
- "hasDynamicHelp": false,
1227
- "multiple": false,
1228
- "type": "option"
1229
- },
1230
- "name": {
1231
- "char": "n",
1232
- "description": "Build name",
1233
- "name": "name",
1234
- "required": true,
1235
- "hasDynamicHelp": false,
1236
- "multiple": false,
1237
- "type": "option"
1238
- },
1239
- "description": {
1240
- "char": "d",
1241
- "description": "Build description",
1242
- "name": "description",
1243
- "required": false,
1244
- "hasDynamicHelp": false,
1245
- "multiple": false,
1246
- "type": "option"
1247
- },
1248
1291
  "output": {
1249
1292
  "char": "o",
1250
1293
  "description": "Output format",
@@ -1262,7 +1305,7 @@
1262
1305
  },
1263
1306
  "hasDynamicHelp": false,
1264
1307
  "hiddenAliases": [],
1265
- "id": "static_host:build:create",
1308
+ "id": "static_host:build:get",
1266
1309
  "pluginAlias": "@xano/cli",
1267
1310
  "pluginName": "@xano/cli",
1268
1311
  "pluginType": "core",
@@ -1274,7 +1317,7 @@
1274
1317
  "commands",
1275
1318
  "static_host",
1276
1319
  "build",
1277
- "create",
1320
+ "get",
1278
1321
  "index.js"
1279
1322
  ]
1280
1323
  },
@@ -1366,5 +1409,5 @@
1366
1409
  ]
1367
1410
  }
1368
1411
  },
1369
- "version": "0.0.10"
1412
+ "version": "0.0.12"
1370
1413
  }