@xano/cli 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oclif.manifest.json +247 -247
  2. package/package.json +1 -1
@@ -1,33 +1,17 @@
1
1
  {
2
2
  "commands": {
3
- "profile:delete": {
3
+ "profile:get-default": {
4
4
  "aliases": [],
5
- "args": {
6
- "name": {
7
- "description": "Profile name to delete",
8
- "name": "name",
9
- "required": true
10
- }
11
- },
12
- "description": "Delete a profile configuration",
5
+ "args": {},
6
+ "description": "Get the current default profile name",
13
7
  "examples": [
14
- "$ 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",
15
- "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
16
- "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
8
+ "$ xano profile:get-default\nproduction\n",
9
+ "$ xano profile:get-default\nNo default profile set\n"
17
10
  ],
18
- "flags": {
19
- "force": {
20
- "char": "f",
21
- "description": "Skip confirmation prompt",
22
- "name": "force",
23
- "required": false,
24
- "allowNo": false,
25
- "type": "boolean"
26
- }
27
- },
11
+ "flags": {},
28
12
  "hasDynamicHelp": false,
29
13
  "hiddenAliases": [],
30
- "id": "profile:delete",
14
+ "id": "profile:get-default",
31
15
  "pluginAlias": "@xano/cli",
32
16
  "pluginName": "@xano/cli",
33
17
  "pluginType": "core",
@@ -38,7 +22,7 @@
38
22
  "dist",
39
23
  "commands",
40
24
  "profile",
41
- "delete",
25
+ "get-default",
42
26
  "index.js"
43
27
  ]
44
28
  },
@@ -223,50 +207,34 @@
223
207
  "index.js"
224
208
  ]
225
209
  },
226
- "profile:get-default": {
227
- "aliases": [],
228
- "args": {},
229
- "description": "Get the current default profile name",
230
- "examples": [
231
- "$ xano profile:get-default\nproduction\n",
232
- "$ xano profile:get-default\nNo default profile set\n"
233
- ],
234
- "flags": {},
235
- "hasDynamicHelp": false,
236
- "hiddenAliases": [],
237
- "id": "profile:get-default",
238
- "pluginAlias": "@xano/cli",
239
- "pluginName": "@xano/cli",
240
- "pluginType": "core",
241
- "strict": true,
242
- "enableJsonFlag": false,
243
- "isESM": true,
244
- "relativePath": [
245
- "dist",
246
- "commands",
247
- "profile",
248
- "get-default",
249
- "index.js"
250
- ]
251
- },
252
- "profile:set-default": {
210
+ "profile:delete": {
253
211
  "aliases": [],
254
212
  "args": {
255
213
  "name": {
256
- "description": "Profile name to set as default",
214
+ "description": "Profile name to delete",
257
215
  "name": "name",
258
216
  "required": true
259
217
  }
260
218
  },
261
- "description": "Set the default profile",
219
+ "description": "Delete a profile configuration",
262
220
  "examples": [
263
- "$ xano profile:set-default production\nDefault profile set to 'production'\n",
264
- "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
221
+ "$ 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",
222
+ "$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
223
+ "$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
265
224
  ],
266
- "flags": {},
225
+ "flags": {
226
+ "force": {
227
+ "char": "f",
228
+ "description": "Skip confirmation prompt",
229
+ "name": "force",
230
+ "required": false,
231
+ "allowNo": false,
232
+ "type": "boolean"
233
+ }
234
+ },
267
235
  "hasDynamicHelp": false,
268
236
  "hiddenAliases": [],
269
- "id": "profile:set-default",
237
+ "id": "profile:delete",
270
238
  "pluginAlias": "@xano/cli",
271
239
  "pluginName": "@xano/cli",
272
240
  "pluginType": "core",
@@ -277,7 +245,7 @@
277
245
  "dist",
278
246
  "commands",
279
247
  "profile",
280
- "set-default",
248
+ "delete",
281
249
  "index.js"
282
250
  ]
283
251
  },
@@ -317,6 +285,38 @@
317
285
  "index.js"
318
286
  ]
319
287
  },
288
+ "profile:set-default": {
289
+ "aliases": [],
290
+ "args": {
291
+ "name": {
292
+ "description": "Profile name to set as default",
293
+ "name": "name",
294
+ "required": true
295
+ }
296
+ },
297
+ "description": "Set the default profile",
298
+ "examples": [
299
+ "$ xano profile:set-default production\nDefault profile set to 'production'\n",
300
+ "$ xano profile:set-default staging\nDefault profile set to 'staging'\n"
301
+ ],
302
+ "flags": {},
303
+ "hasDynamicHelp": false,
304
+ "hiddenAliases": [],
305
+ "id": "profile:set-default",
306
+ "pluginAlias": "@xano/cli",
307
+ "pluginName": "@xano/cli",
308
+ "pluginType": "core",
309
+ "strict": true,
310
+ "enableJsonFlag": false,
311
+ "isESM": true,
312
+ "relativePath": [
313
+ "dist",
314
+ "commands",
315
+ "profile",
316
+ "set-default",
317
+ "index.js"
318
+ ]
319
+ },
320
320
  "profile:wizard": {
321
321
  "aliases": [],
322
322
  "args": {},
@@ -362,6 +362,91 @@
362
362
  "index.js"
363
363
  ]
364
364
  },
365
+ "function:get": {
366
+ "aliases": [],
367
+ "args": {
368
+ "function_id": {
369
+ "description": "Function ID",
370
+ "name": "function_id",
371
+ "required": false
372
+ }
373
+ },
374
+ "description": "Get a specific function from a workspace",
375
+ "examples": [
376
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
377
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
378
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
379
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
380
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
381
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
382
+ ],
383
+ "flags": {
384
+ "profile": {
385
+ "char": "p",
386
+ "description": "Profile to use for this command",
387
+ "env": "XANO_PROFILE",
388
+ "name": "profile",
389
+ "required": false,
390
+ "hasDynamicHelp": false,
391
+ "multiple": false,
392
+ "type": "option"
393
+ },
394
+ "workspace": {
395
+ "char": "w",
396
+ "description": "Workspace ID (optional if set in profile)",
397
+ "name": "workspace",
398
+ "required": false,
399
+ "hasDynamicHelp": false,
400
+ "multiple": false,
401
+ "type": "option"
402
+ },
403
+ "output": {
404
+ "char": "o",
405
+ "description": "Output format",
406
+ "name": "output",
407
+ "required": false,
408
+ "default": "summary",
409
+ "hasDynamicHelp": false,
410
+ "multiple": false,
411
+ "options": [
412
+ "summary",
413
+ "json",
414
+ "xs"
415
+ ],
416
+ "type": "option"
417
+ },
418
+ "include_draft": {
419
+ "description": "Include draft version",
420
+ "name": "include_draft",
421
+ "required": false,
422
+ "allowNo": false,
423
+ "type": "boolean"
424
+ },
425
+ "include_xanoscript": {
426
+ "description": "Include XanoScript in response",
427
+ "name": "include_xanoscript",
428
+ "required": false,
429
+ "allowNo": false,
430
+ "type": "boolean"
431
+ }
432
+ },
433
+ "hasDynamicHelp": false,
434
+ "hiddenAliases": [],
435
+ "id": "function:get",
436
+ "pluginAlias": "@xano/cli",
437
+ "pluginName": "@xano/cli",
438
+ "pluginType": "core",
439
+ "strict": true,
440
+ "enableJsonFlag": false,
441
+ "isESM": true,
442
+ "relativePath": [
443
+ "dist",
444
+ "commands",
445
+ "function",
446
+ "get",
447
+ "index.js"
448
+ ]
449
+ },
365
450
  "function:edit": {
366
451
  "aliases": [],
367
452
  "args": {
@@ -472,23 +557,15 @@
472
557
  "index.js"
473
558
  ]
474
559
  },
475
- "function:get": {
560
+ "function:list": {
476
561
  "aliases": [],
477
- "args": {
478
- "function_id": {
479
- "description": "Function ID",
480
- "name": "function_id",
481
- "required": false
482
- }
483
- },
484
- "description": "Get a specific function from a workspace",
562
+ "args": {},
563
+ "description": "List all functions in a workspace from the Xano Metadata API",
485
564
  "examples": [
486
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
487
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
488
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
489
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
490
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
491
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
565
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
566
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
567
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
568
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
492
569
  ],
493
570
  "flags": {
494
571
  "profile": {
@@ -520,13 +597,12 @@
520
597
  "multiple": false,
521
598
  "options": [
522
599
  "summary",
523
- "json",
524
- "xs"
600
+ "json"
525
601
  ],
526
602
  "type": "option"
527
603
  },
528
604
  "include_draft": {
529
- "description": "Include draft version",
605
+ "description": "Include draft functions",
530
606
  "name": "include_draft",
531
607
  "required": false,
532
608
  "allowNo": false,
@@ -538,11 +614,51 @@
538
614
  "required": false,
539
615
  "allowNo": false,
540
616
  "type": "boolean"
617
+ },
618
+ "page": {
619
+ "description": "Page number for pagination",
620
+ "name": "page",
621
+ "required": false,
622
+ "default": 1,
623
+ "hasDynamicHelp": false,
624
+ "multiple": false,
625
+ "type": "option"
626
+ },
627
+ "per_page": {
628
+ "description": "Number of results per page",
629
+ "name": "per_page",
630
+ "required": false,
631
+ "default": 50,
632
+ "hasDynamicHelp": false,
633
+ "multiple": false,
634
+ "type": "option"
635
+ },
636
+ "sort": {
637
+ "description": "Sort field",
638
+ "name": "sort",
639
+ "required": false,
640
+ "default": "created_at",
641
+ "hasDynamicHelp": false,
642
+ "multiple": false,
643
+ "type": "option"
644
+ },
645
+ "order": {
646
+ "description": "Sort order",
647
+ "name": "order",
648
+ "required": false,
649
+ "default": "desc",
650
+ "hasDynamicHelp": false,
651
+ "multiple": false,
652
+ "options": [
653
+ "asc",
654
+ "desc"
655
+ ],
656
+ "type": "option"
541
657
  }
542
658
  },
543
659
  "hasDynamicHelp": false,
544
660
  "hiddenAliases": [],
545
- "id": "function:get",
661
+ "id": "function:list",
546
662
  "pluginAlias": "@xano/cli",
547
663
  "pluginName": "@xano/cli",
548
664
  "pluginType": "core",
@@ -553,19 +669,19 @@
553
669
  "dist",
554
670
  "commands",
555
671
  "function",
556
- "get",
672
+ "list",
557
673
  "index.js"
558
674
  ]
559
675
  },
560
- "function:list": {
676
+ "static_host:list": {
561
677
  "aliases": [],
562
678
  "args": {},
563
- "description": "List all functions in a workspace from the Xano Metadata API",
679
+ "description": "List all static hosts in a workspace from the Xano Metadata API",
564
680
  "examples": [
565
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
566
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
567
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
568
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
681
+ "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
682
+ "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
683
+ "$ 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",
684
+ "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
569
685
  ],
570
686
  "flags": {
571
687
  "profile": {
@@ -601,20 +717,6 @@
601
717
  ],
602
718
  "type": "option"
603
719
  },
604
- "include_draft": {
605
- "description": "Include draft functions",
606
- "name": "include_draft",
607
- "required": false,
608
- "allowNo": false,
609
- "type": "boolean"
610
- },
611
- "include_xanoscript": {
612
- "description": "Include XanoScript in response",
613
- "name": "include_xanoscript",
614
- "required": false,
615
- "allowNo": false,
616
- "type": "boolean"
617
- },
618
720
  "page": {
619
721
  "description": "Page number for pagination",
620
722
  "name": "page",
@@ -632,33 +734,11 @@
632
734
  "hasDynamicHelp": false,
633
735
  "multiple": false,
634
736
  "type": "option"
635
- },
636
- "sort": {
637
- "description": "Sort field",
638
- "name": "sort",
639
- "required": false,
640
- "default": "created_at",
641
- "hasDynamicHelp": false,
642
- "multiple": false,
643
- "type": "option"
644
- },
645
- "order": {
646
- "description": "Sort order",
647
- "name": "order",
648
- "required": false,
649
- "default": "desc",
650
- "hasDynamicHelp": false,
651
- "multiple": false,
652
- "options": [
653
- "asc",
654
- "desc"
655
- ],
656
- "type": "option"
657
737
  }
658
738
  },
659
739
  "hasDynamicHelp": false,
660
740
  "hiddenAliases": [],
661
- "id": "function:list",
741
+ "id": "static_host:list",
662
742
  "pluginAlias": "@xano/cli",
663
743
  "pluginName": "@xano/cli",
664
744
  "pluginType": "core",
@@ -668,7 +748,7 @@
668
748
  "relativePath": [
669
749
  "dist",
670
750
  "commands",
671
- "function",
751
+ "static_host",
672
752
  "list",
673
753
  "index.js"
674
754
  ]
@@ -879,16 +959,15 @@
879
959
  "index.js"
880
960
  ]
881
961
  },
882
- "function:create": {
962
+ "workspace:list": {
883
963
  "aliases": [],
884
964
  "args": {},
885
- "description": "Create a new function in a workspace",
965
+ "description": "List all workspaces from the Xano Metadata API",
886
966
  "examples": [
887
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
888
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
889
- "$ 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",
890
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
891
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
967
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
968
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
969
+ "$ 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",
970
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
892
971
  ],
893
972
  "flags": {
894
973
  "profile": {
@@ -901,49 +980,6 @@
901
980
  "multiple": false,
902
981
  "type": "option"
903
982
  },
904
- "workspace": {
905
- "char": "w",
906
- "description": "Workspace ID (optional if set in profile)",
907
- "name": "workspace",
908
- "required": false,
909
- "hasDynamicHelp": false,
910
- "multiple": false,
911
- "type": "option"
912
- },
913
- "file": {
914
- "char": "f",
915
- "description": "Path to file containing XanoScript code",
916
- "exclusive": [
917
- "stdin"
918
- ],
919
- "name": "file",
920
- "required": false,
921
- "hasDynamicHelp": false,
922
- "multiple": false,
923
- "type": "option"
924
- },
925
- "stdin": {
926
- "char": "s",
927
- "description": "Read XanoScript code from stdin",
928
- "exclusive": [
929
- "file"
930
- ],
931
- "name": "stdin",
932
- "required": false,
933
- "allowNo": false,
934
- "type": "boolean"
935
- },
936
- "edit": {
937
- "char": "e",
938
- "dependsOn": [
939
- "file"
940
- ],
941
- "description": "Open file in editor before creating function (requires --file)",
942
- "name": "edit",
943
- "required": false,
944
- "allowNo": false,
945
- "type": "boolean"
946
- },
947
983
  "output": {
948
984
  "char": "o",
949
985
  "description": "Output format",
@@ -961,7 +997,7 @@
961
997
  },
962
998
  "hasDynamicHelp": false,
963
999
  "hiddenAliases": [],
964
- "id": "function:create",
1000
+ "id": "workspace:list",
965
1001
  "pluginAlias": "@xano/cli",
966
1002
  "pluginName": "@xano/cli",
967
1003
  "pluginType": "core",
@@ -971,20 +1007,21 @@
971
1007
  "relativePath": [
972
1008
  "dist",
973
1009
  "commands",
974
- "function",
975
- "create",
1010
+ "workspace",
1011
+ "list",
976
1012
  "index.js"
977
1013
  ]
978
1014
  },
979
- "static_host:list": {
1015
+ "function:create": {
980
1016
  "aliases": [],
981
1017
  "args": {},
982
- "description": "List all static hosts in a workspace from the Xano Metadata API",
1018
+ "description": "Create a new function in a workspace",
983
1019
  "examples": [
984
- "$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
985
- "$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
986
- "$ 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",
987
- "$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
1020
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
1021
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
1022
+ "$ 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",
1023
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
1024
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
988
1025
  ],
989
1026
  "flags": {
990
1027
  "profile": {
@@ -1006,76 +1043,39 @@
1006
1043
  "multiple": false,
1007
1044
  "type": "option"
1008
1045
  },
1009
- "output": {
1010
- "char": "o",
1011
- "description": "Output format",
1012
- "name": "output",
1013
- "required": false,
1014
- "default": "summary",
1015
- "hasDynamicHelp": false,
1016
- "multiple": false,
1017
- "options": [
1018
- "summary",
1019
- "json"
1046
+ "file": {
1047
+ "char": "f",
1048
+ "description": "Path to file containing XanoScript code",
1049
+ "exclusive": [
1050
+ "stdin"
1020
1051
  ],
1021
- "type": "option"
1022
- },
1023
- "page": {
1024
- "description": "Page number for pagination",
1025
- "name": "page",
1052
+ "name": "file",
1026
1053
  "required": false,
1027
- "default": 1,
1028
1054
  "hasDynamicHelp": false,
1029
1055
  "multiple": false,
1030
1056
  "type": "option"
1031
1057
  },
1032
- "per_page": {
1033
- "description": "Number of results per page",
1034
- "name": "per_page",
1058
+ "stdin": {
1059
+ "char": "s",
1060
+ "description": "Read XanoScript code from stdin",
1061
+ "exclusive": [
1062
+ "file"
1063
+ ],
1064
+ "name": "stdin",
1035
1065
  "required": false,
1036
- "default": 50,
1037
- "hasDynamicHelp": false,
1038
- "multiple": false,
1039
- "type": "option"
1040
- }
1041
- },
1042
- "hasDynamicHelp": false,
1043
- "hiddenAliases": [],
1044
- "id": "static_host:list",
1045
- "pluginAlias": "@xano/cli",
1046
- "pluginName": "@xano/cli",
1047
- "pluginType": "core",
1048
- "strict": true,
1049
- "enableJsonFlag": false,
1050
- "isESM": true,
1051
- "relativePath": [
1052
- "dist",
1053
- "commands",
1054
- "static_host",
1055
- "list",
1056
- "index.js"
1057
- ]
1058
- },
1059
- "workspace:list": {
1060
- "aliases": [],
1061
- "args": {},
1062
- "description": "List all workspaces from the Xano Metadata API",
1063
- "examples": [
1064
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
1065
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
1066
- "$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
1067
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
1068
- ],
1069
- "flags": {
1070
- "profile": {
1071
- "char": "p",
1072
- "description": "Profile to use for this command",
1073
- "env": "XANO_PROFILE",
1074
- "name": "profile",
1066
+ "allowNo": false,
1067
+ "type": "boolean"
1068
+ },
1069
+ "edit": {
1070
+ "char": "e",
1071
+ "dependsOn": [
1072
+ "file"
1073
+ ],
1074
+ "description": "Open file in editor before creating function (requires --file)",
1075
+ "name": "edit",
1075
1076
  "required": false,
1076
- "hasDynamicHelp": false,
1077
- "multiple": false,
1078
- "type": "option"
1077
+ "allowNo": false,
1078
+ "type": "boolean"
1079
1079
  },
1080
1080
  "output": {
1081
1081
  "char": "o",
@@ -1094,7 +1094,7 @@
1094
1094
  },
1095
1095
  "hasDynamicHelp": false,
1096
1096
  "hiddenAliases": [],
1097
- "id": "workspace:list",
1097
+ "id": "function:create",
1098
1098
  "pluginAlias": "@xano/cli",
1099
1099
  "pluginName": "@xano/cli",
1100
1100
  "pluginType": "core",
@@ -1104,8 +1104,8 @@
1104
1104
  "relativePath": [
1105
1105
  "dist",
1106
1106
  "commands",
1107
- "workspace",
1108
- "list",
1107
+ "function",
1108
+ "create",
1109
1109
  "index.js"
1110
1110
  ]
1111
1111
  },
@@ -1366,5 +1366,5 @@
1366
1366
  ]
1367
1367
  }
1368
1368
  },
1369
- "version": "0.0.6"
1369
+ "version": "0.0.7"
1370
1370
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xano/cli",
3
3
  "description": "CLI for Xano's Metadata API",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "author": "Sean Montgomery",
6
6
  "bin": {
7
7
  "xano": "./bin/run.js"