@xano/cli 1.0.3-beta.5 → 1.0.3-beta.6

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.
@@ -120,20 +120,20 @@
120
120
  "index.js"
121
121
  ]
122
122
  },
123
- "branch:create": {
123
+ "branch:delete": {
124
124
  "aliases": [],
125
125
  "args": {
126
- "label": {
127
- "description": "Label for the new branch",
128
- "name": "label",
126
+ "branch_label": {
127
+ "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
128
+ "name": "branch_label",
129
129
  "required": true
130
130
  }
131
131
  },
132
- "description": "Create a new branch by cloning from an existing branch",
132
+ "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
133
133
  "examples": [
134
- "$ xano branch create dev\nCreated branch: dev\n Cloned from: v1\n",
135
- "$ xano branch create feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
136
- "$ xano branch create staging --color \"#ebc346\" --output json\n{\n \"created_at\": \"2024-02-11T10:00:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
134
+ "$ xano branch delete feature-old\nAre you sure you want to delete branch 'feature-old'? This action cannot be undone. (y/N) y\nDeleted branch: feature-old\n",
135
+ "$ xano branch delete dev --force\nDeleted branch: dev\n",
136
+ "$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
137
137
  ],
138
138
  "flags": {
139
139
  "config": {
@@ -165,23 +165,13 @@
165
165
  "allowNo": false,
166
166
  "type": "boolean"
167
167
  },
168
- "color": {
169
- "char": "c",
170
- "description": "Color hex code for the branch (e.g., \"#ebc346\")",
171
- "name": "color",
172
- "required": false,
173
- "hasDynamicHelp": false,
174
- "multiple": false,
175
- "type": "option"
176
- },
177
- "description": {
178
- "char": "d",
179
- "description": "Description for the new branch",
180
- "name": "description",
168
+ "force": {
169
+ "char": "f",
170
+ "description": "[CRITICAL] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
171
+ "name": "force",
181
172
  "required": false,
182
- "hasDynamicHelp": false,
183
- "multiple": false,
184
- "type": "option"
173
+ "allowNo": false,
174
+ "type": "boolean"
185
175
  },
186
176
  "output": {
187
177
  "char": "o",
@@ -197,16 +187,6 @@
197
187
  ],
198
188
  "type": "option"
199
189
  },
200
- "source": {
201
- "char": "s",
202
- "description": "Source branch to clone from (defaults to \"v1\")",
203
- "name": "source",
204
- "required": false,
205
- "default": "v1",
206
- "hasDynamicHelp": false,
207
- "multiple": false,
208
- "type": "option"
209
- },
210
190
  "workspace": {
211
191
  "char": "w",
212
192
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -219,7 +199,7 @@
219
199
  },
220
200
  "hasDynamicHelp": false,
221
201
  "hiddenAliases": [],
222
- "id": "branch:create",
202
+ "id": "branch:delete",
223
203
  "pluginAlias": "@xano/cli",
224
204
  "pluginName": "@xano/cli",
225
205
  "pluginType": "core",
@@ -230,24 +210,24 @@
230
210
  "dist",
231
211
  "commands",
232
212
  "branch",
233
- "create",
213
+ "delete",
234
214
  "index.js"
235
215
  ]
236
216
  },
237
- "branch:delete": {
217
+ "branch:create": {
238
218
  "aliases": [],
239
219
  "args": {
240
- "branch_label": {
241
- "description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
242
- "name": "branch_label",
220
+ "label": {
221
+ "description": "Label for the new branch",
222
+ "name": "label",
243
223
  "required": true
244
224
  }
245
225
  },
246
- "description": "Delete a branch (cannot delete \"v1\" or the live branch)",
226
+ "description": "Create a new branch by cloning from an existing branch",
247
227
  "examples": [
248
- "$ xano branch delete feature-old\nAre you sure you want to delete branch 'feature-old'? This action cannot be undone. (y/N) y\nDeleted branch: feature-old\n",
249
- "$ xano branch delete dev --force\nDeleted branch: dev\n",
250
- "$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
228
+ "$ xano branch create dev\nCreated branch: dev\n Cloned from: v1\n",
229
+ "$ xano branch create feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
230
+ "$ xano branch create staging --color \"#ebc346\" --output json\n{\n \"created_at\": \"2024-02-11T10:00:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
251
231
  ],
252
232
  "flags": {
253
233
  "config": {
@@ -279,13 +259,23 @@
279
259
  "allowNo": false,
280
260
  "type": "boolean"
281
261
  },
282
- "force": {
283
- "char": "f",
284
- "description": "[CRITICAL] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
285
- "name": "force",
262
+ "color": {
263
+ "char": "c",
264
+ "description": "Color hex code for the branch (e.g., \"#ebc346\")",
265
+ "name": "color",
286
266
  "required": false,
287
- "allowNo": false,
288
- "type": "boolean"
267
+ "hasDynamicHelp": false,
268
+ "multiple": false,
269
+ "type": "option"
270
+ },
271
+ "description": {
272
+ "char": "d",
273
+ "description": "Description for the new branch",
274
+ "name": "description",
275
+ "required": false,
276
+ "hasDynamicHelp": false,
277
+ "multiple": false,
278
+ "type": "option"
289
279
  },
290
280
  "output": {
291
281
  "char": "o",
@@ -301,6 +291,16 @@
301
291
  ],
302
292
  "type": "option"
303
293
  },
294
+ "source": {
295
+ "char": "s",
296
+ "description": "Source branch to clone from (defaults to \"v1\")",
297
+ "name": "source",
298
+ "required": false,
299
+ "default": "v1",
300
+ "hasDynamicHelp": false,
301
+ "multiple": false,
302
+ "type": "option"
303
+ },
304
304
  "workspace": {
305
305
  "char": "w",
306
306
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -313,7 +313,7 @@
313
313
  },
314
314
  "hasDynamicHelp": false,
315
315
  "hiddenAliases": [],
316
- "id": "branch:delete",
316
+ "id": "branch:create",
317
317
  "pluginAlias": "@xano/cli",
318
318
  "pluginName": "@xano/cli",
319
319
  "pluginType": "core",
@@ -324,7 +324,7 @@
324
324
  "dist",
325
325
  "commands",
326
326
  "branch",
327
- "delete",
327
+ "create",
328
328
  "index.js"
329
329
  ]
330
330
  },
@@ -441,15 +441,20 @@
441
441
  "index.js"
442
442
  ]
443
443
  },
444
- "branch:list": {
444
+ "branch:get": {
445
445
  "aliases": [],
446
- "args": {},
447
- "description": "List all branches in a workspace",
446
+ "args": {
447
+ "branch_label": {
448
+ "description": "Branch label (e.g., \"v1\", \"dev\")",
449
+ "name": "branch_label",
450
+ "required": true
451
+ }
452
+ },
453
+ "description": "Get details for a specific branch",
448
454
  "examples": [
449
- "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
450
- "$ xano branch list -w 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
451
- "$ xano branch list --backups\nAvailable branches:\n - v1 (live)\n - dev\n - backup_2024_01_15 (backup)\n",
452
- "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
455
+ "$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
456
+ "$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
457
+ "$ xano branch get staging --output json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
453
458
  ],
454
459
  "flags": {
455
460
  "config": {
@@ -481,13 +486,6 @@
481
486
  "allowNo": false,
482
487
  "type": "boolean"
483
488
  },
484
- "backups": {
485
- "description": "Include backup branches in the output",
486
- "name": "backups",
487
- "required": false,
488
- "allowNo": false,
489
- "type": "boolean"
490
- },
491
489
  "output": {
492
490
  "char": "o",
493
491
  "description": "Output format",
@@ -514,7 +512,7 @@
514
512
  },
515
513
  "hasDynamicHelp": false,
516
514
  "hiddenAliases": [],
517
- "id": "branch:list",
515
+ "id": "branch:get",
518
516
  "pluginAlias": "@xano/cli",
519
517
  "pluginName": "@xano/cli",
520
518
  "pluginType": "core",
@@ -525,20 +523,19 @@
525
523
  "dist",
526
524
  "commands",
527
525
  "branch",
528
- "list",
526
+ "get",
529
527
  "index.js"
530
528
  ]
531
529
  },
532
- "function:create": {
530
+ "branch:list": {
533
531
  "aliases": [],
534
532
  "args": {},
535
- "description": "Create a new function in a workspace",
533
+ "description": "List all branches in a workspace",
536
534
  "examples": [
537
- "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
538
- "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
539
- "$ 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",
540
- "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
541
- "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
535
+ "$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
536
+ "$ xano branch list -w 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
537
+ "$ xano branch list --backups\nAvailable branches:\n - v1 (live)\n - dev\n - backup_2024_01_15 (backup)\n",
538
+ "$ xano branch list --output json\n[\n {\n \"created_at\": \"2024-01-15T10:30:00Z\",\n \"label\": \"v1\",\n \"backup\": false,\n \"live\": true\n }\n]\n"
542
539
  ],
543
540
  "flags": {
544
541
  "config": {
@@ -570,29 +567,13 @@
570
567
  "allowNo": false,
571
568
  "type": "boolean"
572
569
  },
573
- "edit": {
574
- "char": "e",
575
- "dependsOn": [
576
- "file"
577
- ],
578
- "description": "Open file in editor before creating function (requires --file)",
579
- "name": "edit",
570
+ "backups": {
571
+ "description": "Include backup branches in the output",
572
+ "name": "backups",
580
573
  "required": false,
581
574
  "allowNo": false,
582
575
  "type": "boolean"
583
576
  },
584
- "file": {
585
- "char": "f",
586
- "description": "Path to file containing XanoScript code",
587
- "exclusive": [
588
- "stdin"
589
- ],
590
- "name": "file",
591
- "required": false,
592
- "hasDynamicHelp": false,
593
- "multiple": false,
594
- "type": "option"
595
- },
596
577
  "output": {
597
578
  "char": "o",
598
579
  "description": "Output format",
@@ -607,20 +588,9 @@
607
588
  ],
608
589
  "type": "option"
609
590
  },
610
- "stdin": {
611
- "char": "s",
612
- "description": "Read XanoScript code from stdin",
613
- "exclusive": [
614
- "file"
615
- ],
616
- "name": "stdin",
617
- "required": false,
618
- "allowNo": false,
619
- "type": "boolean"
620
- },
621
591
  "workspace": {
622
592
  "char": "w",
623
- "description": "Workspace ID (optional if set in profile)",
593
+ "description": "Workspace ID (uses profile workspace if not provided)",
624
594
  "name": "workspace",
625
595
  "required": false,
626
596
  "hasDynamicHelp": false,
@@ -630,7 +600,7 @@
630
600
  },
631
601
  "hasDynamicHelp": false,
632
602
  "hiddenAliases": [],
633
- "id": "function:create",
603
+ "id": "branch:list",
634
604
  "pluginAlias": "@xano/cli",
635
605
  "pluginName": "@xano/cli",
636
606
  "pluginType": "core",
@@ -640,8 +610,8 @@
640
610
  "relativePath": [
641
611
  "dist",
642
612
  "commands",
643
- "function",
644
- "create",
613
+ "branch",
614
+ "list",
645
615
  "index.js"
646
616
  ]
647
617
  },
@@ -739,25 +709,19 @@
739
709
  "index.js"
740
710
  ]
741
711
  },
742
- "function:edit": {
712
+ "platform:get": {
743
713
  "aliases": [],
744
714
  "args": {
745
- "function_id": {
746
- "description": "Function ID to edit",
747
- "name": "function_id",
748
- "required": false
715
+ "platform_id": {
716
+ "description": "Platform ID to retrieve",
717
+ "name": "platform_id",
718
+ "required": true
749
719
  }
750
720
  },
751
- "description": "Edit a function in a workspace",
721
+ "description": "Get details of a specific platform",
752
722
  "examples": [
753
- "$ 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",
754
- "$ 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",
755
- "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
756
- "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
757
- "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
758
- "$ 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",
759
- "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
760
- "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
723
+ "$ xano platform get 23629\nPlatform ID: 23629\n Created: 2025-11-28\n Helm: 0.1.356\n Images:\n backend 0.0.2985\n frontend 0.1.3427\n database 0.1.6\n node 0.1.192\n deno 0.0.212\n redis 0.1.34\n realtime 0.1.149\n standalone 0.0.2456\n playwright 0.0.992\n static 0.0.10\n static-build 0.0.4\n backend-encoded 0.0.1396\n",
724
+ "$ xano platform get 23629 -o json"
761
725
  ],
762
726
  "flags": {
763
727
  "config": {
@@ -789,26 +753,6 @@
789
753
  "allowNo": false,
790
754
  "type": "boolean"
791
755
  },
792
- "edit": {
793
- "char": "e",
794
- "description": "Open file in editor before updating function (requires --file)",
795
- "name": "edit",
796
- "required": false,
797
- "allowNo": false,
798
- "type": "boolean"
799
- },
800
- "file": {
801
- "char": "f",
802
- "description": "Path to file containing XanoScript code",
803
- "exclusive": [
804
- "stdin"
805
- ],
806
- "name": "file",
807
- "required": false,
808
- "hasDynamicHelp": false,
809
- "multiple": false,
810
- "type": "option"
811
- },
812
756
  "output": {
813
757
  "char": "o",
814
758
  "description": "Output format",
@@ -822,38 +766,11 @@
822
766
  "json"
823
767
  ],
824
768
  "type": "option"
825
- },
826
- "publish": {
827
- "description": "Publish the function after editing",
828
- "name": "publish",
829
- "required": false,
830
- "allowNo": false,
831
- "type": "boolean"
832
- },
833
- "stdin": {
834
- "char": "s",
835
- "description": "Read XanoScript code from stdin",
836
- "exclusive": [
837
- "file"
838
- ],
839
- "name": "stdin",
840
- "required": false,
841
- "allowNo": false,
842
- "type": "boolean"
843
- },
844
- "workspace": {
845
- "char": "w",
846
- "description": "Workspace ID (optional if set in profile)",
847
- "name": "workspace",
848
- "required": false,
849
- "hasDynamicHelp": false,
850
- "multiple": false,
851
- "type": "option"
852
769
  }
853
770
  },
854
771
  "hasDynamicHelp": false,
855
772
  "hiddenAliases": [],
856
- "id": "function:edit",
773
+ "id": "platform:get",
857
774
  "pluginAlias": "@xano/cli",
858
775
  "pluginName": "@xano/cli",
859
776
  "pluginType": "core",
@@ -863,28 +780,18 @@
863
780
  "relativePath": [
864
781
  "dist",
865
782
  "commands",
866
- "function",
867
- "edit",
783
+ "platform",
784
+ "get",
868
785
  "index.js"
869
786
  ]
870
787
  },
871
- "function:get": {
788
+ "platform:list": {
872
789
  "aliases": [],
873
- "args": {
874
- "function_id": {
875
- "description": "Function ID",
876
- "name": "function_id",
877
- "required": false
878
- }
879
- },
880
- "description": "Get a specific function from a workspace",
790
+ "args": {},
791
+ "description": "List all platforms",
881
792
  "examples": [
882
- "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
883
- "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
884
- "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
885
- "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
886
- "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
887
- "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
793
+ "$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
794
+ "$ xano platform list --output json"
888
795
  ],
889
796
  "flags": {
890
797
  "config": {
@@ -916,20 +823,102 @@
916
823
  "allowNo": false,
917
824
  "type": "boolean"
918
825
  },
919
- "include_draft": {
920
- "description": "Include draft version",
921
- "name": "include_draft",
826
+ "output": {
827
+ "char": "o",
828
+ "description": "Output format",
829
+ "name": "output",
830
+ "required": false,
831
+ "default": "summary",
832
+ "hasDynamicHelp": false,
833
+ "multiple": false,
834
+ "options": [
835
+ "summary",
836
+ "json"
837
+ ],
838
+ "type": "option"
839
+ }
840
+ },
841
+ "hasDynamicHelp": false,
842
+ "hiddenAliases": [],
843
+ "id": "platform:list",
844
+ "pluginAlias": "@xano/cli",
845
+ "pluginName": "@xano/cli",
846
+ "pluginType": "core",
847
+ "strict": true,
848
+ "enableJsonFlag": false,
849
+ "isESM": true,
850
+ "relativePath": [
851
+ "dist",
852
+ "commands",
853
+ "platform",
854
+ "list",
855
+ "index.js"
856
+ ]
857
+ },
858
+ "function:create": {
859
+ "aliases": [],
860
+ "args": {},
861
+ "description": "Create a new function in a workspace",
862
+ "examples": [
863
+ "$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
864
+ "$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
865
+ "$ 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",
866
+ "$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
867
+ "$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
868
+ ],
869
+ "flags": {
870
+ "config": {
871
+ "char": "c",
872
+ "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
873
+ "env": "XANO_CONFIG",
874
+ "name": "config",
875
+ "required": false,
876
+ "hasDynamicHelp": false,
877
+ "multiple": false,
878
+ "type": "option"
879
+ },
880
+ "profile": {
881
+ "char": "p",
882
+ "description": "Profile to use (uses default profile if not specified)",
883
+ "env": "XANO_PROFILE",
884
+ "name": "profile",
885
+ "required": false,
886
+ "hasDynamicHelp": false,
887
+ "multiple": false,
888
+ "type": "option"
889
+ },
890
+ "verbose": {
891
+ "char": "v",
892
+ "description": "Show detailed request/response information",
893
+ "env": "XANO_VERBOSE",
894
+ "name": "verbose",
922
895
  "required": false,
923
896
  "allowNo": false,
924
897
  "type": "boolean"
925
898
  },
926
- "include_xanoscript": {
927
- "description": "Include XanoScript in response",
928
- "name": "include_xanoscript",
899
+ "edit": {
900
+ "char": "e",
901
+ "dependsOn": [
902
+ "file"
903
+ ],
904
+ "description": "Open file in editor before creating function (requires --file)",
905
+ "name": "edit",
929
906
  "required": false,
930
907
  "allowNo": false,
931
908
  "type": "boolean"
932
909
  },
910
+ "file": {
911
+ "char": "f",
912
+ "description": "Path to file containing XanoScript code",
913
+ "exclusive": [
914
+ "stdin"
915
+ ],
916
+ "name": "file",
917
+ "required": false,
918
+ "hasDynamicHelp": false,
919
+ "multiple": false,
920
+ "type": "option"
921
+ },
933
922
  "output": {
934
923
  "char": "o",
935
924
  "description": "Output format",
@@ -940,11 +929,21 @@
940
929
  "multiple": false,
941
930
  "options": [
942
931
  "summary",
943
- "json",
944
- "xs"
932
+ "json"
945
933
  ],
946
934
  "type": "option"
947
935
  },
936
+ "stdin": {
937
+ "char": "s",
938
+ "description": "Read XanoScript code from stdin",
939
+ "exclusive": [
940
+ "file"
941
+ ],
942
+ "name": "stdin",
943
+ "required": false,
944
+ "allowNo": false,
945
+ "type": "boolean"
946
+ },
948
947
  "workspace": {
949
948
  "char": "w",
950
949
  "description": "Workspace ID (optional if set in profile)",
@@ -957,7 +956,7 @@
957
956
  },
958
957
  "hasDynamicHelp": false,
959
958
  "hiddenAliases": [],
960
- "id": "function:get",
959
+ "id": "function:create",
961
960
  "pluginAlias": "@xano/cli",
962
961
  "pluginName": "@xano/cli",
963
962
  "pluginType": "core",
@@ -968,19 +967,29 @@
968
967
  "dist",
969
968
  "commands",
970
969
  "function",
971
- "get",
970
+ "create",
972
971
  "index.js"
973
972
  ]
974
973
  },
975
- "function:list": {
974
+ "function:edit": {
976
975
  "aliases": [],
977
- "args": {},
978
- "description": "List all functions in a workspace from the Xano Metadata API",
976
+ "args": {
977
+ "function_id": {
978
+ "description": "Function ID to edit",
979
+ "name": "function_id",
980
+ "required": false
981
+ }
982
+ },
983
+ "description": "Edit a function in a workspace",
979
984
  "examples": [
980
- "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
981
- "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
982
- "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
983
- "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
985
+ "$ 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",
986
+ "$ 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",
987
+ "$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
988
+ "$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
989
+ "$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
990
+ "$ 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",
991
+ "$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
992
+ "$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
984
993
  ],
985
994
  "flags": {
986
995
  "config": {
@@ -1012,31 +1021,24 @@
1012
1021
  "allowNo": false,
1013
1022
  "type": "boolean"
1014
1023
  },
1015
- "include_draft": {
1016
- "description": "Include draft functions",
1017
- "name": "include_draft",
1018
- "required": false,
1019
- "allowNo": false,
1020
- "type": "boolean"
1021
- },
1022
- "include_xanoscript": {
1023
- "description": "Include XanoScript in response",
1024
- "name": "include_xanoscript",
1024
+ "edit": {
1025
+ "char": "e",
1026
+ "description": "Open file in editor before updating function (requires --file)",
1027
+ "name": "edit",
1025
1028
  "required": false,
1026
1029
  "allowNo": false,
1027
1030
  "type": "boolean"
1028
1031
  },
1029
- "order": {
1030
- "description": "Sort order",
1031
- "name": "order",
1032
+ "file": {
1033
+ "char": "f",
1034
+ "description": "Path to file containing XanoScript code",
1035
+ "exclusive": [
1036
+ "stdin"
1037
+ ],
1038
+ "name": "file",
1032
1039
  "required": false,
1033
- "default": "desc",
1034
1040
  "hasDynamicHelp": false,
1035
1041
  "multiple": false,
1036
- "options": [
1037
- "asc",
1038
- "desc"
1039
- ],
1040
1042
  "type": "option"
1041
1043
  },
1042
1044
  "output": {
@@ -1053,32 +1055,23 @@
1053
1055
  ],
1054
1056
  "type": "option"
1055
1057
  },
1056
- "page": {
1057
- "description": "Page number for pagination",
1058
- "name": "page",
1059
- "required": false,
1060
- "default": 1,
1061
- "hasDynamicHelp": false,
1062
- "multiple": false,
1063
- "type": "option"
1064
- },
1065
- "per_page": {
1066
- "description": "Number of results per page",
1067
- "name": "per_page",
1058
+ "publish": {
1059
+ "description": "Publish the function after editing",
1060
+ "name": "publish",
1068
1061
  "required": false,
1069
- "default": 50,
1070
- "hasDynamicHelp": false,
1071
- "multiple": false,
1072
- "type": "option"
1062
+ "allowNo": false,
1063
+ "type": "boolean"
1073
1064
  },
1074
- "sort": {
1075
- "description": "Sort field",
1076
- "name": "sort",
1065
+ "stdin": {
1066
+ "char": "s",
1067
+ "description": "Read XanoScript code from stdin",
1068
+ "exclusive": [
1069
+ "file"
1070
+ ],
1071
+ "name": "stdin",
1077
1072
  "required": false,
1078
- "default": "created_at",
1079
- "hasDynamicHelp": false,
1080
- "multiple": false,
1081
- "type": "option"
1073
+ "allowNo": false,
1074
+ "type": "boolean"
1082
1075
  },
1083
1076
  "workspace": {
1084
1077
  "char": "w",
@@ -1092,7 +1085,7 @@
1092
1085
  },
1093
1086
  "hasDynamicHelp": false,
1094
1087
  "hiddenAliases": [],
1095
- "id": "function:list",
1088
+ "id": "function:edit",
1096
1089
  "pluginAlias": "@xano/cli",
1097
1090
  "pluginName": "@xano/cli",
1098
1091
  "pluginType": "core",
@@ -1103,23 +1096,27 @@
1103
1096
  "dist",
1104
1097
  "commands",
1105
1098
  "function",
1106
- "list",
1099
+ "edit",
1107
1100
  "index.js"
1108
1101
  ]
1109
1102
  },
1110
- "platform:get": {
1103
+ "function:get": {
1111
1104
  "aliases": [],
1112
1105
  "args": {
1113
- "platform_id": {
1114
- "description": "Platform ID to retrieve",
1115
- "name": "platform_id",
1116
- "required": true
1106
+ "function_id": {
1107
+ "description": "Function ID",
1108
+ "name": "function_id",
1109
+ "required": false
1117
1110
  }
1118
1111
  },
1119
- "description": "Get details of a specific platform",
1112
+ "description": "Get a specific function from a workspace",
1120
1113
  "examples": [
1121
- "$ xano platform get 23629\nPlatform ID: 23629\n Created: 2025-11-28\n Helm: 0.1.356\n Images:\n backend 0.0.2985\n frontend 0.1.3427\n database 0.1.6\n node 0.1.192\n deno 0.0.212\n redis 0.1.34\n realtime 0.1.149\n standalone 0.0.2456\n playwright 0.0.992\n static 0.0.10\n static-build 0.0.4\n backend-encoded 0.0.1396\n",
1122
- "$ xano platform get 23629 -o json"
1114
+ "$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
1115
+ "$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
1116
+ "$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
1117
+ "$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
1118
+ "$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
1119
+ "$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
1123
1120
  ],
1124
1121
  "flags": {
1125
1122
  "config": {
@@ -1151,6 +1148,20 @@
1151
1148
  "allowNo": false,
1152
1149
  "type": "boolean"
1153
1150
  },
1151
+ "include_draft": {
1152
+ "description": "Include draft version",
1153
+ "name": "include_draft",
1154
+ "required": false,
1155
+ "allowNo": false,
1156
+ "type": "boolean"
1157
+ },
1158
+ "include_xanoscript": {
1159
+ "description": "Include XanoScript in response",
1160
+ "name": "include_xanoscript",
1161
+ "required": false,
1162
+ "allowNo": false,
1163
+ "type": "boolean"
1164
+ },
1154
1165
  "output": {
1155
1166
  "char": "o",
1156
1167
  "description": "Output format",
@@ -1161,14 +1172,24 @@
1161
1172
  "multiple": false,
1162
1173
  "options": [
1163
1174
  "summary",
1164
- "json"
1175
+ "json",
1176
+ "xs"
1165
1177
  ],
1166
1178
  "type": "option"
1179
+ },
1180
+ "workspace": {
1181
+ "char": "w",
1182
+ "description": "Workspace ID (optional if set in profile)",
1183
+ "name": "workspace",
1184
+ "required": false,
1185
+ "hasDynamicHelp": false,
1186
+ "multiple": false,
1187
+ "type": "option"
1167
1188
  }
1168
1189
  },
1169
1190
  "hasDynamicHelp": false,
1170
1191
  "hiddenAliases": [],
1171
- "id": "platform:get",
1192
+ "id": "function:get",
1172
1193
  "pluginAlias": "@xano/cli",
1173
1194
  "pluginName": "@xano/cli",
1174
1195
  "pluginType": "core",
@@ -1178,18 +1199,20 @@
1178
1199
  "relativePath": [
1179
1200
  "dist",
1180
1201
  "commands",
1181
- "platform",
1202
+ "function",
1182
1203
  "get",
1183
1204
  "index.js"
1184
1205
  ]
1185
1206
  },
1186
- "platform:list": {
1207
+ "function:list": {
1187
1208
  "aliases": [],
1188
1209
  "args": {},
1189
- "description": "List all platforms",
1210
+ "description": "List all functions in a workspace from the Xano Metadata API",
1190
1211
  "examples": [
1191
- "$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
1192
- "$ xano platform list --output json"
1212
+ "$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
1213
+ "$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
1214
+ "$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
1215
+ "$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
1193
1216
  ],
1194
1217
  "flags": {
1195
1218
  "config": {
@@ -1202,43 +1225,106 @@
1202
1225
  "multiple": false,
1203
1226
  "type": "option"
1204
1227
  },
1205
- "profile": {
1206
- "char": "p",
1207
- "description": "Profile to use (uses default profile if not specified)",
1208
- "env": "XANO_PROFILE",
1209
- "name": "profile",
1228
+ "profile": {
1229
+ "char": "p",
1230
+ "description": "Profile to use (uses default profile if not specified)",
1231
+ "env": "XANO_PROFILE",
1232
+ "name": "profile",
1233
+ "required": false,
1234
+ "hasDynamicHelp": false,
1235
+ "multiple": false,
1236
+ "type": "option"
1237
+ },
1238
+ "verbose": {
1239
+ "char": "v",
1240
+ "description": "Show detailed request/response information",
1241
+ "env": "XANO_VERBOSE",
1242
+ "name": "verbose",
1243
+ "required": false,
1244
+ "allowNo": false,
1245
+ "type": "boolean"
1246
+ },
1247
+ "include_draft": {
1248
+ "description": "Include draft functions",
1249
+ "name": "include_draft",
1250
+ "required": false,
1251
+ "allowNo": false,
1252
+ "type": "boolean"
1253
+ },
1254
+ "include_xanoscript": {
1255
+ "description": "Include XanoScript in response",
1256
+ "name": "include_xanoscript",
1257
+ "required": false,
1258
+ "allowNo": false,
1259
+ "type": "boolean"
1260
+ },
1261
+ "order": {
1262
+ "description": "Sort order",
1263
+ "name": "order",
1264
+ "required": false,
1265
+ "default": "desc",
1266
+ "hasDynamicHelp": false,
1267
+ "multiple": false,
1268
+ "options": [
1269
+ "asc",
1270
+ "desc"
1271
+ ],
1272
+ "type": "option"
1273
+ },
1274
+ "output": {
1275
+ "char": "o",
1276
+ "description": "Output format",
1277
+ "name": "output",
1278
+ "required": false,
1279
+ "default": "summary",
1280
+ "hasDynamicHelp": false,
1281
+ "multiple": false,
1282
+ "options": [
1283
+ "summary",
1284
+ "json"
1285
+ ],
1286
+ "type": "option"
1287
+ },
1288
+ "page": {
1289
+ "description": "Page number for pagination",
1290
+ "name": "page",
1291
+ "required": false,
1292
+ "default": 1,
1293
+ "hasDynamicHelp": false,
1294
+ "multiple": false,
1295
+ "type": "option"
1296
+ },
1297
+ "per_page": {
1298
+ "description": "Number of results per page",
1299
+ "name": "per_page",
1300
+ "required": false,
1301
+ "default": 50,
1302
+ "hasDynamicHelp": false,
1303
+ "multiple": false,
1304
+ "type": "option"
1305
+ },
1306
+ "sort": {
1307
+ "description": "Sort field",
1308
+ "name": "sort",
1210
1309
  "required": false,
1310
+ "default": "created_at",
1211
1311
  "hasDynamicHelp": false,
1212
1312
  "multiple": false,
1213
1313
  "type": "option"
1214
1314
  },
1215
- "verbose": {
1216
- "char": "v",
1217
- "description": "Show detailed request/response information",
1218
- "env": "XANO_VERBOSE",
1219
- "name": "verbose",
1220
- "required": false,
1221
- "allowNo": false,
1222
- "type": "boolean"
1223
- },
1224
- "output": {
1225
- "char": "o",
1226
- "description": "Output format",
1227
- "name": "output",
1315
+ "workspace": {
1316
+ "char": "w",
1317
+ "description": "Workspace ID (optional if set in profile)",
1318
+ "name": "workspace",
1228
1319
  "required": false,
1229
- "default": "summary",
1230
1320
  "hasDynamicHelp": false,
1231
1321
  "multiple": false,
1232
- "options": [
1233
- "summary",
1234
- "json"
1235
- ],
1236
1322
  "type": "option"
1237
1323
  }
1238
1324
  },
1239
1325
  "hasDynamicHelp": false,
1240
1326
  "hiddenAliases": [],
1241
- "id": "platform:list",
1327
+ "id": "function:list",
1242
1328
  "pluginAlias": "@xano/cli",
1243
1329
  "pluginName": "@xano/cli",
1244
1330
  "pluginType": "core",
@@ -1248,7 +1334,7 @@
1248
1334
  "relativePath": [
1249
1335
  "dist",
1250
1336
  "commands",
1251
- "platform",
1337
+ "function",
1252
1338
  "list",
1253
1339
  "index.js"
1254
1340
  ]
@@ -1359,92 +1445,6 @@
1359
1445
  "index.js"
1360
1446
  ]
1361
1447
  },
1362
- "branch:get": {
1363
- "aliases": [],
1364
- "args": {
1365
- "branch_label": {
1366
- "description": "Branch label (e.g., \"v1\", \"dev\")",
1367
- "name": "branch_label",
1368
- "required": true
1369
- }
1370
- },
1371
- "description": "Get details for a specific branch",
1372
- "examples": [
1373
- "$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
1374
- "$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
1375
- "$ xano branch get staging --output json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
1376
- ],
1377
- "flags": {
1378
- "config": {
1379
- "char": "c",
1380
- "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
1381
- "env": "XANO_CONFIG",
1382
- "name": "config",
1383
- "required": false,
1384
- "hasDynamicHelp": false,
1385
- "multiple": false,
1386
- "type": "option"
1387
- },
1388
- "profile": {
1389
- "char": "p",
1390
- "description": "Profile to use (uses default profile if not specified)",
1391
- "env": "XANO_PROFILE",
1392
- "name": "profile",
1393
- "required": false,
1394
- "hasDynamicHelp": false,
1395
- "multiple": false,
1396
- "type": "option"
1397
- },
1398
- "verbose": {
1399
- "char": "v",
1400
- "description": "Show detailed request/response information",
1401
- "env": "XANO_VERBOSE",
1402
- "name": "verbose",
1403
- "required": false,
1404
- "allowNo": false,
1405
- "type": "boolean"
1406
- },
1407
- "output": {
1408
- "char": "o",
1409
- "description": "Output format",
1410
- "name": "output",
1411
- "required": false,
1412
- "default": "summary",
1413
- "hasDynamicHelp": false,
1414
- "multiple": false,
1415
- "options": [
1416
- "summary",
1417
- "json"
1418
- ],
1419
- "type": "option"
1420
- },
1421
- "workspace": {
1422
- "char": "w",
1423
- "description": "Workspace ID (uses profile workspace if not provided)",
1424
- "name": "workspace",
1425
- "required": false,
1426
- "hasDynamicHelp": false,
1427
- "multiple": false,
1428
- "type": "option"
1429
- }
1430
- },
1431
- "hasDynamicHelp": false,
1432
- "hiddenAliases": [],
1433
- "id": "branch:get",
1434
- "pluginAlias": "@xano/cli",
1435
- "pluginName": "@xano/cli",
1436
- "pluginType": "core",
1437
- "strict": true,
1438
- "enableJsonFlag": false,
1439
- "isESM": true,
1440
- "relativePath": [
1441
- "dist",
1442
- "commands",
1443
- "branch",
1444
- "get",
1445
- "index.js"
1446
- ]
1447
- },
1448
1448
  "profile:delete": {
1449
1449
  "aliases": [],
1450
1450
  "args": {
@@ -1637,6 +1637,52 @@
1637
1637
  "index.js"
1638
1638
  ]
1639
1639
  },
1640
+ "profile:list": {
1641
+ "aliases": [],
1642
+ "args": {},
1643
+ "description": "List all available profile configurations",
1644
+ "examples": [
1645
+ "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
1646
+ "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
1647
+ "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
1648
+ ],
1649
+ "flags": {
1650
+ "config": {
1651
+ "char": "c",
1652
+ "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
1653
+ "env": "XANO_CONFIG",
1654
+ "name": "config",
1655
+ "required": false,
1656
+ "hasDynamicHelp": false,
1657
+ "multiple": false,
1658
+ "type": "option"
1659
+ },
1660
+ "details": {
1661
+ "char": "d",
1662
+ "description": "Show detailed information for each profile",
1663
+ "name": "details",
1664
+ "required": false,
1665
+ "allowNo": false,
1666
+ "type": "boolean"
1667
+ }
1668
+ },
1669
+ "hasDynamicHelp": false,
1670
+ "hiddenAliases": [],
1671
+ "id": "profile:list",
1672
+ "pluginAlias": "@xano/cli",
1673
+ "pluginName": "@xano/cli",
1674
+ "pluginType": "core",
1675
+ "strict": true,
1676
+ "enableJsonFlag": false,
1677
+ "isESM": true,
1678
+ "relativePath": [
1679
+ "dist",
1680
+ "commands",
1681
+ "profile",
1682
+ "list",
1683
+ "index.js"
1684
+ ]
1685
+ },
1640
1686
  "profile:get": {
1641
1687
  "aliases": [],
1642
1688
  "args": {},
@@ -1786,6 +1832,43 @@
1786
1832
  "index.js"
1787
1833
  ]
1788
1834
  },
1835
+ "profile:token": {
1836
+ "aliases": [],
1837
+ "args": {},
1838
+ "description": "Print the access token for the default profile",
1839
+ "examples": [
1840
+ "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
1841
+ "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1842
+ ],
1843
+ "flags": {
1844
+ "config": {
1845
+ "char": "c",
1846
+ "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
1847
+ "env": "XANO_CONFIG",
1848
+ "name": "config",
1849
+ "required": false,
1850
+ "hasDynamicHelp": false,
1851
+ "multiple": false,
1852
+ "type": "option"
1853
+ }
1854
+ },
1855
+ "hasDynamicHelp": false,
1856
+ "hiddenAliases": [],
1857
+ "id": "profile:token",
1858
+ "pluginAlias": "@xano/cli",
1859
+ "pluginName": "@xano/cli",
1860
+ "pluginType": "core",
1861
+ "strict": true,
1862
+ "enableJsonFlag": false,
1863
+ "isESM": true,
1864
+ "relativePath": [
1865
+ "dist",
1866
+ "commands",
1867
+ "profile",
1868
+ "token",
1869
+ "index.js"
1870
+ ]
1871
+ },
1789
1872
  "profile:use": {
1790
1873
  "aliases": [],
1791
1874
  "args": {
@@ -1901,56 +1984,19 @@
1901
1984
  },
1902
1985
  "name": {
1903
1986
  "char": "n",
1904
- "description": "Profile name (skip prompt if provided)",
1905
- "name": "name",
1906
- "required": false,
1907
- "hasDynamicHelp": false,
1908
- "multiple": false,
1909
- "type": "option"
1910
- },
1911
- "origin": {
1912
- "char": "o",
1913
- "description": "Xano instance origin URL",
1914
- "name": "origin",
1915
- "required": false,
1916
- "default": "https://app.xano.com",
1917
- "hasDynamicHelp": false,
1918
- "multiple": false,
1919
- "type": "option"
1920
- }
1921
- },
1922
- "hasDynamicHelp": false,
1923
- "hiddenAliases": [],
1924
- "id": "profile:wizard",
1925
- "pluginAlias": "@xano/cli",
1926
- "pluginName": "@xano/cli",
1927
- "pluginType": "core",
1928
- "strict": true,
1929
- "enableJsonFlag": false,
1930
- "isESM": true,
1931
- "relativePath": [
1932
- "dist",
1933
- "commands",
1934
- "profile",
1935
- "wizard",
1936
- "index.js"
1937
- ]
1938
- },
1939
- "profile:token": {
1940
- "aliases": [],
1941
- "args": {},
1942
- "description": "Print the access token for the default profile",
1943
- "examples": [
1944
- "$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
1945
- "$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
1946
- ],
1947
- "flags": {
1948
- "config": {
1949
- "char": "c",
1950
- "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
1951
- "env": "XANO_CONFIG",
1952
- "name": "config",
1987
+ "description": "Profile name (skip prompt if provided)",
1988
+ "name": "name",
1989
+ "required": false,
1990
+ "hasDynamicHelp": false,
1991
+ "multiple": false,
1992
+ "type": "option"
1993
+ },
1994
+ "origin": {
1995
+ "char": "o",
1996
+ "description": "Xano instance origin URL",
1997
+ "name": "origin",
1953
1998
  "required": false,
1999
+ "default": "https://app.xano.com",
1954
2000
  "hasDynamicHelp": false,
1955
2001
  "multiple": false,
1956
2002
  "type": "option"
@@ -1958,7 +2004,7 @@
1958
2004
  },
1959
2005
  "hasDynamicHelp": false,
1960
2006
  "hiddenAliases": [],
1961
- "id": "profile:token",
2007
+ "id": "profile:wizard",
1962
2008
  "pluginAlias": "@xano/cli",
1963
2009
  "pluginName": "@xano/cli",
1964
2010
  "pluginType": "core",
@@ -1969,7 +2015,7 @@
1969
2015
  "dist",
1970
2016
  "commands",
1971
2017
  "profile",
1972
- "token",
2018
+ "wizard",
1973
2019
  "index.js"
1974
2020
  ]
1975
2021
  },
@@ -2333,14 +2379,19 @@
2333
2379
  "index.js"
2334
2380
  ]
2335
2381
  },
2336
- "profile:list": {
2382
+ "release:edit": {
2337
2383
  "aliases": [],
2338
- "args": {},
2339
- "description": "List all available profile configurations",
2384
+ "args": {
2385
+ "release_name": {
2386
+ "description": "Release name to edit",
2387
+ "name": "release_name",
2388
+ "required": true
2389
+ }
2390
+ },
2391
+ "description": "Edit an existing release",
2340
2392
  "examples": [
2341
- "$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
2342
- "$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
2343
- "$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
2393
+ "$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
2394
+ "$ xano release edit v1.0 --description \"New description\" -o json"
2344
2395
  ],
2345
2396
  "flags": {
2346
2397
  "config": {
@@ -2353,18 +2404,70 @@
2353
2404
  "multiple": false,
2354
2405
  "type": "option"
2355
2406
  },
2356
- "details": {
2357
- "char": "d",
2358
- "description": "Show detailed information for each profile",
2359
- "name": "details",
2407
+ "profile": {
2408
+ "char": "p",
2409
+ "description": "Profile to use (uses default profile if not specified)",
2410
+ "env": "XANO_PROFILE",
2411
+ "name": "profile",
2412
+ "required": false,
2413
+ "hasDynamicHelp": false,
2414
+ "multiple": false,
2415
+ "type": "option"
2416
+ },
2417
+ "verbose": {
2418
+ "char": "v",
2419
+ "description": "Show detailed request/response information",
2420
+ "env": "XANO_VERBOSE",
2421
+ "name": "verbose",
2360
2422
  "required": false,
2361
2423
  "allowNo": false,
2362
2424
  "type": "boolean"
2425
+ },
2426
+ "description": {
2427
+ "char": "d",
2428
+ "description": "New description",
2429
+ "name": "description",
2430
+ "required": false,
2431
+ "hasDynamicHelp": false,
2432
+ "multiple": false,
2433
+ "type": "option"
2434
+ },
2435
+ "name": {
2436
+ "char": "n",
2437
+ "description": "New name for the release",
2438
+ "name": "name",
2439
+ "required": false,
2440
+ "hasDynamicHelp": false,
2441
+ "multiple": false,
2442
+ "type": "option"
2443
+ },
2444
+ "output": {
2445
+ "char": "o",
2446
+ "description": "Output format",
2447
+ "name": "output",
2448
+ "required": false,
2449
+ "default": "summary",
2450
+ "hasDynamicHelp": false,
2451
+ "multiple": false,
2452
+ "options": [
2453
+ "summary",
2454
+ "json"
2455
+ ],
2456
+ "type": "option"
2457
+ },
2458
+ "workspace": {
2459
+ "char": "w",
2460
+ "description": "Workspace ID (uses profile workspace if not provided)",
2461
+ "name": "workspace",
2462
+ "required": false,
2463
+ "hasDynamicHelp": false,
2464
+ "multiple": false,
2465
+ "type": "option"
2363
2466
  }
2364
2467
  },
2365
2468
  "hasDynamicHelp": false,
2366
2469
  "hiddenAliases": [],
2367
- "id": "profile:list",
2470
+ "id": "release:edit",
2368
2471
  "pluginAlias": "@xano/cli",
2369
2472
  "pluginName": "@xano/cli",
2370
2473
  "pluginType": "core",
@@ -2374,8 +2477,8 @@
2374
2477
  "relativePath": [
2375
2478
  "dist",
2376
2479
  "commands",
2377
- "profile",
2378
- "list",
2480
+ "release",
2481
+ "edit",
2379
2482
  "index.js"
2380
2483
  ]
2381
2484
  },
@@ -2473,19 +2576,19 @@
2473
2576
  "index.js"
2474
2577
  ]
2475
2578
  },
2476
- "release:edit": {
2579
+ "release:get": {
2477
2580
  "aliases": [],
2478
2581
  "args": {
2479
2582
  "release_name": {
2480
- "description": "Release name to edit",
2583
+ "description": "Release name to retrieve",
2481
2584
  "name": "release_name",
2482
2585
  "required": true
2483
2586
  }
2484
2587
  },
2485
- "description": "Edit an existing release",
2588
+ "description": "Get details of a specific release",
2486
2589
  "examples": [
2487
- "$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
2488
- "$ xano release edit v1.0 --description \"New description\" -o json"
2590
+ "$ xano release get v1.0\nRelease: v1.0 - ID: 10\n Branch: main\n Description: Initial release\n Hotfix: false\n",
2591
+ "$ xano release get v1.0 -w 5 -o json"
2489
2592
  ],
2490
2593
  "flags": {
2491
2594
  "config": {
@@ -2517,24 +2620,6 @@
2517
2620
  "allowNo": false,
2518
2621
  "type": "boolean"
2519
2622
  },
2520
- "description": {
2521
- "char": "d",
2522
- "description": "New description",
2523
- "name": "description",
2524
- "required": false,
2525
- "hasDynamicHelp": false,
2526
- "multiple": false,
2527
- "type": "option"
2528
- },
2529
- "name": {
2530
- "char": "n",
2531
- "description": "New name for the release",
2532
- "name": "name",
2533
- "required": false,
2534
- "hasDynamicHelp": false,
2535
- "multiple": false,
2536
- "type": "option"
2537
- },
2538
2623
  "output": {
2539
2624
  "char": "o",
2540
2625
  "description": "Output format",
@@ -2561,7 +2646,7 @@
2561
2646
  },
2562
2647
  "hasDynamicHelp": false,
2563
2648
  "hiddenAliases": [],
2564
- "id": "release:edit",
2649
+ "id": "release:get",
2565
2650
  "pluginAlias": "@xano/cli",
2566
2651
  "pluginName": "@xano/cli",
2567
2652
  "pluginType": "core",
@@ -2572,23 +2657,17 @@
2572
2657
  "dist",
2573
2658
  "commands",
2574
2659
  "release",
2575
- "edit",
2660
+ "get",
2576
2661
  "index.js"
2577
2662
  ]
2578
2663
  },
2579
- "release:get": {
2664
+ "release:import": {
2580
2665
  "aliases": [],
2581
- "args": {
2582
- "release_name": {
2583
- "description": "Release name to retrieve",
2584
- "name": "release_name",
2585
- "required": true
2586
- }
2587
- },
2588
- "description": "Get details of a specific release",
2666
+ "args": {},
2667
+ "description": "[IMPORTANT] ALWAYS confirm with the user before importing a release. Imports a release file into a workspace.",
2589
2668
  "examples": [
2590
- "$ xano release get v1.0\nRelease: v1.0 - ID: 10\n Branch: main\n Description: Initial release\n Hotfix: false\n",
2591
- "$ xano release get v1.0 -w 5 -o json"
2669
+ "$ xano release import --file ./my-release.tar.gz\nImported release as #15\n",
2670
+ "$ xano release import --file ./my-release.tar.gz -o json"
2592
2671
  ],
2593
2672
  "flags": {
2594
2673
  "config": {
@@ -2620,6 +2699,15 @@
2620
2699
  "allowNo": false,
2621
2700
  "type": "boolean"
2622
2701
  },
2702
+ "file": {
2703
+ "char": "f",
2704
+ "description": "Path to the release file (.tar.gz)",
2705
+ "name": "file",
2706
+ "required": true,
2707
+ "hasDynamicHelp": false,
2708
+ "multiple": false,
2709
+ "type": "option"
2710
+ },
2623
2711
  "output": {
2624
2712
  "char": "o",
2625
2713
  "description": "Output format",
@@ -2646,7 +2734,7 @@
2646
2734
  },
2647
2735
  "hasDynamicHelp": false,
2648
2736
  "hiddenAliases": [],
2649
- "id": "release:get",
2737
+ "id": "release:import",
2650
2738
  "pluginAlias": "@xano/cli",
2651
2739
  "pluginName": "@xano/cli",
2652
2740
  "pluginType": "core",
@@ -2657,7 +2745,7 @@
2657
2745
  "dist",
2658
2746
  "commands",
2659
2747
  "release",
2660
- "get",
2748
+ "import",
2661
2749
  "index.js"
2662
2750
  ]
2663
2751
  },
@@ -3577,13 +3665,20 @@
3577
3665
  "index.js"
3578
3666
  ]
3579
3667
  },
3580
- "release:import": {
3668
+ "static_host:create": {
3581
3669
  "aliases": [],
3582
- "args": {},
3583
- "description": "[IMPORTANT] ALWAYS confirm with the user before importing a release. Imports a release file into a workspace.",
3670
+ "args": {
3671
+ "name": {
3672
+ "description": "Name for the new static host",
3673
+ "name": "name",
3674
+ "required": true
3675
+ }
3676
+ },
3677
+ "description": "Create a new static host in the workspace",
3584
3678
  "examples": [
3585
- "$ xano release import --file ./my-release.tar.gz\nImported release as #15\n",
3586
- "$ xano release import --file ./my-release.tar.gz -o json"
3679
+ "$ xano static_host create marketing\nCreated static host 'marketing' (ID: 7)\n",
3680
+ "$ xano static_host create marketing --description \"Marketing site\" -w 40\nCreated static host 'marketing' (ID: 7)\n",
3681
+ "$ xano static_host create marketing -o json"
3587
3682
  ],
3588
3683
  "flags": {
3589
3684
  "config": {
@@ -3615,11 +3710,10 @@
3615
3710
  "allowNo": false,
3616
3711
  "type": "boolean"
3617
3712
  },
3618
- "file": {
3619
- "char": "f",
3620
- "description": "Path to the release file (.tar.gz)",
3621
- "name": "file",
3622
- "required": true,
3713
+ "description": {
3714
+ "description": "Description for the static host",
3715
+ "name": "description",
3716
+ "required": false,
3623
3717
  "hasDynamicHelp": false,
3624
3718
  "multiple": false,
3625
3719
  "type": "option"
@@ -3640,7 +3734,7 @@
3640
3734
  },
3641
3735
  "workspace": {
3642
3736
  "char": "w",
3643
- "description": "Workspace ID (uses profile workspace if not provided)",
3737
+ "description": "Workspace ID (optional if set in profile)",
3644
3738
  "name": "workspace",
3645
3739
  "required": false,
3646
3740
  "hasDynamicHelp": false,
@@ -3650,7 +3744,7 @@
3650
3744
  },
3651
3745
  "hasDynamicHelp": false,
3652
3746
  "hiddenAliases": [],
3653
- "id": "release:import",
3747
+ "id": "static_host:create",
3654
3748
  "pluginAlias": "@xano/cli",
3655
3749
  "pluginName": "@xano/cli",
3656
3750
  "pluginType": "core",
@@ -3660,25 +3754,26 @@
3660
3754
  "relativePath": [
3661
3755
  "dist",
3662
3756
  "commands",
3663
- "release",
3664
- "import",
3757
+ "static_host",
3758
+ "create",
3665
3759
  "index.js"
3666
3760
  ]
3667
3761
  },
3668
- "static_host:edit": {
3762
+ "static_host:deploy": {
3669
3763
  "aliases": [],
3670
3764
  "args": {
3671
3765
  "static_host": {
3672
- "description": "Static Host name to edit",
3766
+ "description": "Static Host name",
3673
3767
  "name": "static_host",
3674
3768
  "required": true
3675
3769
  }
3676
3770
  },
3677
- "description": "Update a static host's name, description, or git configuration",
3771
+ "description": "Deploy a static host build to an environment",
3678
3772
  "examples": [
3679
- "$ xano static_host edit newsite --description \"Marketing site\"\nUpdated static host 'newsite'\n",
3680
- "$ xano static_host edit newsite --name newsite-v2\nUpdated static host 'newsite' (renamed to 'newsite-v2')\n",
3681
- "$ xano static_host edit newsite --git-repo git@github.com:me/site.git --git-private-key-file ./deploy_key\nUpdated static host 'newsite'\n"
3773
+ "$ xano static_host deploy default --build_id 52 --env dev\nDeployed build 52 to dev\nURL: https://x1234-abcd.static.xano.io\n",
3774
+ "$ xano static_host deploy default --build_id 52 --env prod\nDeployed build 52 to prod\nURL: https://x1234-abcd.static.xano.io\n",
3775
+ "$ xano static_host deploy myhost --build_id 123 --env dev -w 40\nDeployed build 123 to dev\n",
3776
+ "$ xano static_host deploy default --build_id 52 --env prod -o json"
3682
3777
  ],
3683
3778
  "flags": {
3684
3779
  "config": {
@@ -3710,44 +3805,24 @@
3710
3805
  "allowNo": false,
3711
3806
  "type": "boolean"
3712
3807
  },
3713
- "description": {
3714
- "description": "New description for the static host",
3715
- "name": "description",
3716
- "required": false,
3717
- "hasDynamicHelp": false,
3718
- "multiple": false,
3719
- "type": "option"
3720
- },
3721
- "git-private-key-file": {
3722
- "description": "Path to a file containing the git SSH private key (read from disk; never passed on the command line)",
3723
- "name": "git-private-key-file",
3724
- "required": false,
3725
- "hasDynamicHelp": false,
3726
- "multiple": false,
3727
- "type": "option"
3728
- },
3729
- "git-public-key": {
3730
- "description": "Git SSH public key",
3731
- "name": "git-public-key",
3732
- "required": false,
3733
- "hasDynamicHelp": false,
3734
- "multiple": false,
3735
- "type": "option"
3736
- },
3737
- "git-repo": {
3738
- "description": "Git repository URL (e.g. git@github.com:org/repo.git)",
3739
- "name": "git-repo",
3740
- "required": false,
3808
+ "build_id": {
3809
+ "description": "Build ID to deploy",
3810
+ "name": "build_id",
3811
+ "required": true,
3741
3812
  "hasDynamicHelp": false,
3742
3813
  "multiple": false,
3743
3814
  "type": "option"
3744
3815
  },
3745
- "name": {
3746
- "description": "New name for the static host (renaming changes the deployed hostname)",
3747
- "name": "name",
3748
- "required": false,
3816
+ "env": {
3817
+ "description": "Target environment",
3818
+ "name": "env",
3819
+ "required": true,
3749
3820
  "hasDynamicHelp": false,
3750
3821
  "multiple": false,
3822
+ "options": [
3823
+ "dev",
3824
+ "prod"
3825
+ ],
3751
3826
  "type": "option"
3752
3827
  },
3753
3828
  "output": {
@@ -3776,7 +3851,7 @@
3776
3851
  },
3777
3852
  "hasDynamicHelp": false,
3778
3853
  "hiddenAliases": [],
3779
- "id": "static_host:edit",
3854
+ "id": "static_host:deploy",
3780
3855
  "pluginAlias": "@xano/cli",
3781
3856
  "pluginName": "@xano/cli",
3782
3857
  "pluginType": "core",
@@ -3787,25 +3862,24 @@
3787
3862
  "dist",
3788
3863
  "commands",
3789
3864
  "static_host",
3790
- "edit",
3865
+ "deploy",
3791
3866
  "index.js"
3792
3867
  ]
3793
3868
  },
3794
- "static_host:deploy": {
3869
+ "static_host:edit": {
3795
3870
  "aliases": [],
3796
3871
  "args": {
3797
3872
  "static_host": {
3798
- "description": "Static Host name",
3873
+ "description": "Static Host name to edit",
3799
3874
  "name": "static_host",
3800
3875
  "required": true
3801
3876
  }
3802
3877
  },
3803
- "description": "Deploy a static host build to an environment",
3878
+ "description": "Update a static host's name, description, or git configuration",
3804
3879
  "examples": [
3805
- "$ xano static_host deploy default --build_id 52 --env dev\nDeployed build 52 to dev\nURL: https://x1234-abcd.static.xano.io\n",
3806
- "$ xano static_host deploy default --build_id 52 --env prod\nDeployed build 52 to prod\nURL: https://x1234-abcd.static.xano.io\n",
3807
- "$ xano static_host deploy myhost --build_id 123 --env dev -w 40\nDeployed build 123 to dev\n",
3808
- "$ xano static_host deploy default --build_id 52 --env prod -o json"
3880
+ "$ xano static_host edit newsite --description \"Marketing site\"\nUpdated static host 'newsite'\n",
3881
+ "$ xano static_host edit newsite --name newsite-v2\nUpdated static host 'newsite' (renamed to 'newsite-v2')\n",
3882
+ "$ xano static_host edit newsite --git-repo git@github.com:me/site.git --git-private-key-file ./deploy_key\nUpdated static host 'newsite'\n"
3809
3883
  ],
3810
3884
  "flags": {
3811
3885
  "config": {
@@ -3837,24 +3911,44 @@
3837
3911
  "allowNo": false,
3838
3912
  "type": "boolean"
3839
3913
  },
3840
- "build_id": {
3841
- "description": "Build ID to deploy",
3842
- "name": "build_id",
3843
- "required": true,
3914
+ "description": {
3915
+ "description": "New description for the static host",
3916
+ "name": "description",
3917
+ "required": false,
3844
3918
  "hasDynamicHelp": false,
3845
3919
  "multiple": false,
3846
3920
  "type": "option"
3847
3921
  },
3848
- "env": {
3849
- "description": "Target environment",
3850
- "name": "env",
3851
- "required": true,
3922
+ "git-private-key-file": {
3923
+ "description": "Path to a file containing the git SSH private key (read from disk; never passed on the command line)",
3924
+ "name": "git-private-key-file",
3925
+ "required": false,
3926
+ "hasDynamicHelp": false,
3927
+ "multiple": false,
3928
+ "type": "option"
3929
+ },
3930
+ "git-public-key": {
3931
+ "description": "Git SSH public key",
3932
+ "name": "git-public-key",
3933
+ "required": false,
3934
+ "hasDynamicHelp": false,
3935
+ "multiple": false,
3936
+ "type": "option"
3937
+ },
3938
+ "git-repo": {
3939
+ "description": "Git repository URL (e.g. git@github.com:org/repo.git)",
3940
+ "name": "git-repo",
3941
+ "required": false,
3942
+ "hasDynamicHelp": false,
3943
+ "multiple": false,
3944
+ "type": "option"
3945
+ },
3946
+ "name": {
3947
+ "description": "New name for the static host (renaming changes the deployed hostname)",
3948
+ "name": "name",
3949
+ "required": false,
3852
3950
  "hasDynamicHelp": false,
3853
3951
  "multiple": false,
3854
- "options": [
3855
- "dev",
3856
- "prod"
3857
- ],
3858
3952
  "type": "option"
3859
3953
  },
3860
3954
  "output": {
@@ -3883,7 +3977,7 @@
3883
3977
  },
3884
3978
  "hasDynamicHelp": false,
3885
3979
  "hiddenAliases": [],
3886
- "id": "static_host:deploy",
3980
+ "id": "static_host:edit",
3887
3981
  "pluginAlias": "@xano/cli",
3888
3982
  "pluginName": "@xano/cli",
3889
3983
  "pluginType": "core",
@@ -3894,7 +3988,7 @@
3894
3988
  "dist",
3895
3989
  "commands",
3896
3990
  "static_host",
3897
- "deploy",
3991
+ "edit",
3898
3992
  "index.js"
3899
3993
  ]
3900
3994
  },
@@ -4195,100 +4289,6 @@
4195
4289
  "index.js"
4196
4290
  ]
4197
4291
  },
4198
- "static_host:create": {
4199
- "aliases": [],
4200
- "args": {
4201
- "name": {
4202
- "description": "Name for the new static host",
4203
- "name": "name",
4204
- "required": true
4205
- }
4206
- },
4207
- "description": "Create a new static host in the workspace",
4208
- "examples": [
4209
- "$ xano static_host create marketing\nCreated static host 'marketing' (ID: 7)\n",
4210
- "$ xano static_host create marketing --description \"Marketing site\" -w 40\nCreated static host 'marketing' (ID: 7)\n",
4211
- "$ xano static_host create marketing -o json"
4212
- ],
4213
- "flags": {
4214
- "config": {
4215
- "char": "c",
4216
- "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
4217
- "env": "XANO_CONFIG",
4218
- "name": "config",
4219
- "required": false,
4220
- "hasDynamicHelp": false,
4221
- "multiple": false,
4222
- "type": "option"
4223
- },
4224
- "profile": {
4225
- "char": "p",
4226
- "description": "Profile to use (uses default profile if not specified)",
4227
- "env": "XANO_PROFILE",
4228
- "name": "profile",
4229
- "required": false,
4230
- "hasDynamicHelp": false,
4231
- "multiple": false,
4232
- "type": "option"
4233
- },
4234
- "verbose": {
4235
- "char": "v",
4236
- "description": "Show detailed request/response information",
4237
- "env": "XANO_VERBOSE",
4238
- "name": "verbose",
4239
- "required": false,
4240
- "allowNo": false,
4241
- "type": "boolean"
4242
- },
4243
- "description": {
4244
- "description": "Description for the static host",
4245
- "name": "description",
4246
- "required": false,
4247
- "hasDynamicHelp": false,
4248
- "multiple": false,
4249
- "type": "option"
4250
- },
4251
- "output": {
4252
- "char": "o",
4253
- "description": "Output format",
4254
- "name": "output",
4255
- "required": false,
4256
- "default": "summary",
4257
- "hasDynamicHelp": false,
4258
- "multiple": false,
4259
- "options": [
4260
- "summary",
4261
- "json"
4262
- ],
4263
- "type": "option"
4264
- },
4265
- "workspace": {
4266
- "char": "w",
4267
- "description": "Workspace ID (optional if set in profile)",
4268
- "name": "workspace",
4269
- "required": false,
4270
- "hasDynamicHelp": false,
4271
- "multiple": false,
4272
- "type": "option"
4273
- }
4274
- },
4275
- "hasDynamicHelp": false,
4276
- "hiddenAliases": [],
4277
- "id": "static_host:create",
4278
- "pluginAlias": "@xano/cli",
4279
- "pluginName": "@xano/cli",
4280
- "pluginType": "core",
4281
- "strict": true,
4282
- "enableJsonFlag": false,
4283
- "isESM": true,
4284
- "relativePath": [
4285
- "dist",
4286
- "commands",
4287
- "static_host",
4288
- "create",
4289
- "index.js"
4290
- ]
4291
- },
4292
4292
  "tenant:create": {
4293
4293
  "aliases": [],
4294
4294
  "args": {
@@ -4595,10 +4595,113 @@
4595
4595
  ],
4596
4596
  "type": "option"
4597
4597
  },
4598
- "release": {
4599
- "char": "r",
4600
- "description": "Release name to deploy",
4601
- "name": "release",
4598
+ "release": {
4599
+ "char": "r",
4600
+ "description": "Release name to deploy",
4601
+ "name": "release",
4602
+ "required": true,
4603
+ "hasDynamicHelp": false,
4604
+ "multiple": false,
4605
+ "type": "option"
4606
+ },
4607
+ "workspace": {
4608
+ "char": "w",
4609
+ "description": "Workspace ID (uses profile workspace if not provided)",
4610
+ "name": "workspace",
4611
+ "required": false,
4612
+ "hasDynamicHelp": false,
4613
+ "multiple": false,
4614
+ "type": "option"
4615
+ }
4616
+ },
4617
+ "hasDynamicHelp": false,
4618
+ "hiddenAliases": [],
4619
+ "id": "tenant:deploy_release",
4620
+ "pluginAlias": "@xano/cli",
4621
+ "pluginName": "@xano/cli",
4622
+ "pluginType": "core",
4623
+ "strict": true,
4624
+ "enableJsonFlag": false,
4625
+ "isESM": true,
4626
+ "relativePath": [
4627
+ "dist",
4628
+ "commands",
4629
+ "tenant",
4630
+ "deploy_release",
4631
+ "index.js"
4632
+ ]
4633
+ },
4634
+ "tenant:deploy_platform": {
4635
+ "aliases": [],
4636
+ "args": {
4637
+ "tenant_name": {
4638
+ "description": "Tenant name to deploy to",
4639
+ "name": "tenant_name",
4640
+ "required": true
4641
+ }
4642
+ },
4643
+ "description": "[CRITICAL] STOP and confirm with the user before deploying a platform version to a tenant; this mutates the live tenant. Deploys a platform version to a tenant.",
4644
+ "examples": [
4645
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
4646
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json",
4647
+ "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 --license ./license.yaml"
4648
+ ],
4649
+ "flags": {
4650
+ "config": {
4651
+ "char": "c",
4652
+ "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
4653
+ "env": "XANO_CONFIG",
4654
+ "name": "config",
4655
+ "required": false,
4656
+ "hasDynamicHelp": false,
4657
+ "multiple": false,
4658
+ "type": "option"
4659
+ },
4660
+ "profile": {
4661
+ "char": "p",
4662
+ "description": "Profile to use (uses default profile if not specified)",
4663
+ "env": "XANO_PROFILE",
4664
+ "name": "profile",
4665
+ "required": false,
4666
+ "hasDynamicHelp": false,
4667
+ "multiple": false,
4668
+ "type": "option"
4669
+ },
4670
+ "verbose": {
4671
+ "char": "v",
4672
+ "description": "Show detailed request/response information",
4673
+ "env": "XANO_VERBOSE",
4674
+ "name": "verbose",
4675
+ "required": false,
4676
+ "allowNo": false,
4677
+ "type": "boolean"
4678
+ },
4679
+ "license": {
4680
+ "char": "l",
4681
+ "description": "Path to a license override file to apply after deploy",
4682
+ "name": "license",
4683
+ "required": false,
4684
+ "hasDynamicHelp": false,
4685
+ "multiple": false,
4686
+ "type": "option"
4687
+ },
4688
+ "output": {
4689
+ "char": "o",
4690
+ "description": "Output format",
4691
+ "name": "output",
4692
+ "required": false,
4693
+ "default": "summary",
4694
+ "hasDynamicHelp": false,
4695
+ "multiple": false,
4696
+ "options": [
4697
+ "summary",
4698
+ "json"
4699
+ ],
4700
+ "type": "option"
4701
+ },
4702
+ "platform_id": {
4703
+ "description": "Platform ID to deploy",
4704
+ "name": "platform_id",
4602
4705
  "required": true,
4603
4706
  "hasDynamicHelp": false,
4604
4707
  "multiple": false,
@@ -4616,7 +4719,7 @@
4616
4719
  },
4617
4720
  "hasDynamicHelp": false,
4618
4721
  "hiddenAliases": [],
4619
- "id": "tenant:deploy_release",
4722
+ "id": "tenant:deploy_platform",
4620
4723
  "pluginAlias": "@xano/cli",
4621
4724
  "pluginName": "@xano/cli",
4622
4725
  "pluginType": "core",
@@ -4627,7 +4730,7 @@
4627
4730
  "dist",
4628
4731
  "commands",
4629
4732
  "tenant",
4630
- "deploy_release",
4733
+ "deploy_platform",
4631
4734
  "index.js"
4632
4735
  ]
4633
4736
  },
@@ -4948,109 +5051,6 @@
4948
5051
  "index.js"
4949
5052
  ]
4950
5053
  },
4951
- "tenant:deploy_platform": {
4952
- "aliases": [],
4953
- "args": {
4954
- "tenant_name": {
4955
- "description": "Tenant name to deploy to",
4956
- "name": "tenant_name",
4957
- "required": true
4958
- }
4959
- },
4960
- "description": "[CRITICAL] STOP and confirm with the user before deploying a platform version to a tenant; this mutates the live tenant. Deploys a platform version to a tenant.",
4961
- "examples": [
4962
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
4963
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json",
4964
- "$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 --license ./license.yaml"
4965
- ],
4966
- "flags": {
4967
- "config": {
4968
- "char": "c",
4969
- "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
4970
- "env": "XANO_CONFIG",
4971
- "name": "config",
4972
- "required": false,
4973
- "hasDynamicHelp": false,
4974
- "multiple": false,
4975
- "type": "option"
4976
- },
4977
- "profile": {
4978
- "char": "p",
4979
- "description": "Profile to use (uses default profile if not specified)",
4980
- "env": "XANO_PROFILE",
4981
- "name": "profile",
4982
- "required": false,
4983
- "hasDynamicHelp": false,
4984
- "multiple": false,
4985
- "type": "option"
4986
- },
4987
- "verbose": {
4988
- "char": "v",
4989
- "description": "Show detailed request/response information",
4990
- "env": "XANO_VERBOSE",
4991
- "name": "verbose",
4992
- "required": false,
4993
- "allowNo": false,
4994
- "type": "boolean"
4995
- },
4996
- "license": {
4997
- "char": "l",
4998
- "description": "Path to a license override file to apply after deploy",
4999
- "name": "license",
5000
- "required": false,
5001
- "hasDynamicHelp": false,
5002
- "multiple": false,
5003
- "type": "option"
5004
- },
5005
- "output": {
5006
- "char": "o",
5007
- "description": "Output format",
5008
- "name": "output",
5009
- "required": false,
5010
- "default": "summary",
5011
- "hasDynamicHelp": false,
5012
- "multiple": false,
5013
- "options": [
5014
- "summary",
5015
- "json"
5016
- ],
5017
- "type": "option"
5018
- },
5019
- "platform_id": {
5020
- "description": "Platform ID to deploy",
5021
- "name": "platform_id",
5022
- "required": true,
5023
- "hasDynamicHelp": false,
5024
- "multiple": false,
5025
- "type": "option"
5026
- },
5027
- "workspace": {
5028
- "char": "w",
5029
- "description": "Workspace ID (uses profile workspace if not provided)",
5030
- "name": "workspace",
5031
- "required": false,
5032
- "hasDynamicHelp": false,
5033
- "multiple": false,
5034
- "type": "option"
5035
- }
5036
- },
5037
- "hasDynamicHelp": false,
5038
- "hiddenAliases": [],
5039
- "id": "tenant:deploy_platform",
5040
- "pluginAlias": "@xano/cli",
5041
- "pluginName": "@xano/cli",
5042
- "pluginType": "core",
5043
- "strict": true,
5044
- "enableJsonFlag": false,
5045
- "isESM": true,
5046
- "relativePath": [
5047
- "dist",
5048
- "commands",
5049
- "tenant",
5050
- "deploy_platform",
5051
- "index.js"
5052
- ]
5053
- },
5054
5054
  "tenant:list": {
5055
5055
  "aliases": [],
5056
5056
  "args": {},
@@ -5260,91 +5260,6 @@
5260
5260
  "index.js"
5261
5261
  ]
5262
5262
  },
5263
- "unit_test:run": {
5264
- "aliases": [],
5265
- "args": {
5266
- "unit_test_id": {
5267
- "description": "ID of the unit test to run",
5268
- "name": "unit_test_id",
5269
- "required": true
5270
- }
5271
- },
5272
- "description": "Run a unit test",
5273
- "examples": [
5274
- "$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
5275
- "$ xano unit-test run abc-123 -o json"
5276
- ],
5277
- "flags": {
5278
- "config": {
5279
- "char": "c",
5280
- "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
5281
- "env": "XANO_CONFIG",
5282
- "name": "config",
5283
- "required": false,
5284
- "hasDynamicHelp": false,
5285
- "multiple": false,
5286
- "type": "option"
5287
- },
5288
- "profile": {
5289
- "char": "p",
5290
- "description": "Profile to use (uses default profile if not specified)",
5291
- "env": "XANO_PROFILE",
5292
- "name": "profile",
5293
- "required": false,
5294
- "hasDynamicHelp": false,
5295
- "multiple": false,
5296
- "type": "option"
5297
- },
5298
- "verbose": {
5299
- "char": "v",
5300
- "description": "Show detailed request/response information",
5301
- "env": "XANO_VERBOSE",
5302
- "name": "verbose",
5303
- "required": false,
5304
- "allowNo": false,
5305
- "type": "boolean"
5306
- },
5307
- "output": {
5308
- "char": "o",
5309
- "description": "Output format",
5310
- "name": "output",
5311
- "required": false,
5312
- "default": "summary",
5313
- "hasDynamicHelp": false,
5314
- "multiple": false,
5315
- "options": [
5316
- "summary",
5317
- "json"
5318
- ],
5319
- "type": "option"
5320
- },
5321
- "workspace": {
5322
- "char": "w",
5323
- "description": "Workspace ID (uses profile workspace if not provided)",
5324
- "name": "workspace",
5325
- "required": false,
5326
- "hasDynamicHelp": false,
5327
- "multiple": false,
5328
- "type": "option"
5329
- }
5330
- },
5331
- "hasDynamicHelp": false,
5332
- "hiddenAliases": [],
5333
- "id": "unit_test:run",
5334
- "pluginAlias": "@xano/cli",
5335
- "pluginName": "@xano/cli",
5336
- "pluginType": "core",
5337
- "strict": true,
5338
- "enableJsonFlag": false,
5339
- "isESM": true,
5340
- "relativePath": [
5341
- "dist",
5342
- "commands",
5343
- "unit_test",
5344
- "run",
5345
- "index.js"
5346
- ]
5347
- },
5348
5263
  "unit_test:list": {
5349
5264
  "aliases": [],
5350
5265
  "args": {},
@@ -5641,14 +5556,19 @@
5641
5556
  "index.js"
5642
5557
  ]
5643
5558
  },
5644
- "workflow_test:list": {
5559
+ "unit_test:run": {
5645
5560
  "aliases": [],
5646
- "args": {},
5647
- "description": "List all workflow tests in a workspace",
5561
+ "args": {
5562
+ "unit_test_id": {
5563
+ "description": "ID of the unit test to run",
5564
+ "name": "unit_test_id",
5565
+ "required": true
5566
+ }
5567
+ },
5568
+ "description": "Run a unit test",
5648
5569
  "examples": [
5649
- "$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
5650
- "$ xano workflow-test list -w 5 --output json",
5651
- "$ xano workflow-test list --branch main"
5570
+ "$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
5571
+ "$ xano unit-test run abc-123 -o json"
5652
5572
  ],
5653
5573
  "flags": {
5654
5574
  "config": {
@@ -5680,15 +5600,6 @@
5680
5600
  "allowNo": false,
5681
5601
  "type": "boolean"
5682
5602
  },
5683
- "branch": {
5684
- "char": "b",
5685
- "description": "Filter by branch name",
5686
- "name": "branch",
5687
- "required": false,
5688
- "hasDynamicHelp": false,
5689
- "multiple": false,
5690
- "type": "option"
5691
- },
5692
5603
  "output": {
5693
5604
  "char": "o",
5694
5605
  "description": "Output format",
@@ -5715,7 +5626,7 @@
5715
5626
  },
5716
5627
  "hasDynamicHelp": false,
5717
5628
  "hiddenAliases": [],
5718
- "id": "workflow_test:list",
5629
+ "id": "unit_test:run",
5719
5630
  "pluginAlias": "@xano/cli",
5720
5631
  "pluginName": "@xano/cli",
5721
5632
  "pluginType": "core",
@@ -5725,8 +5636,8 @@
5725
5636
  "relativePath": [
5726
5637
  "dist",
5727
5638
  "commands",
5728
- "workflow_test",
5729
- "list",
5639
+ "unit_test",
5640
+ "run",
5730
5641
  "index.js"
5731
5642
  ]
5732
5643
  },
@@ -5824,13 +5735,14 @@
5824
5735
  "index.js"
5825
5736
  ]
5826
5737
  },
5827
- "workflow_test:run_all": {
5738
+ "workflow_test:list": {
5828
5739
  "aliases": [],
5829
5740
  "args": {},
5830
- "description": "Run all workflow tests in a workspace",
5741
+ "description": "List all workflow tests in a workspace",
5831
5742
  "examples": [
5832
- "$ xano workflow-test run-all\nRunning 3 workflow tests...\n\nPASS my-test (1.234s)\nPASS auth-flow (0.567s)\nFAIL data-validation (0.890s)\n Error: assertion failed at step 3\n\nResults: 2 passed, 1 failed (2.691s total)\n",
5833
- "$ xano workflow-test run-all --branch main -o json"
5743
+ "$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
5744
+ "$ xano workflow-test list -w 5 --output json",
5745
+ "$ xano workflow-test list --branch main"
5834
5746
  ],
5835
5747
  "flags": {
5836
5748
  "config": {
@@ -5897,7 +5809,7 @@
5897
5809
  },
5898
5810
  "hasDynamicHelp": false,
5899
5811
  "hiddenAliases": [],
5900
- "id": "workflow_test:run_all",
5812
+ "id": "workflow_test:list",
5901
5813
  "pluginAlias": "@xano/cli",
5902
5814
  "pluginName": "@xano/cli",
5903
5815
  "pluginType": "core",
@@ -5908,24 +5820,23 @@
5908
5820
  "dist",
5909
5821
  "commands",
5910
5822
  "workflow_test",
5911
- "run_all",
5823
+ "list",
5912
5824
  "index.js"
5913
5825
  ]
5914
5826
  },
5915
- "workspace:create": {
5827
+ "workflow_test:run": {
5916
5828
  "aliases": [],
5917
5829
  "args": {
5918
- "name": {
5919
- "description": "Name of the workspace",
5920
- "name": "name",
5830
+ "workflow_test_id": {
5831
+ "description": "ID of the workflow test to run",
5832
+ "name": "workflow_test_id",
5921
5833
  "required": true
5922
5834
  }
5923
5835
  },
5924
- "description": "Create a new workspace via the Xano Metadata API",
5836
+ "description": "Run a workflow test",
5925
5837
  "examples": [
5926
- "$ xano workspace create my-workspace\nCreated workspace: my-workspace (ID: 123)\n",
5927
- "$ xano workspace create my-app --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
5928
- "$ xano workspace create new-project -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
5838
+ "$ xano workflow-test run 1\nRunning workflow test 1...\nResult: PASS (1.234s)\n",
5839
+ "$ xano workflow-test run 1 -o json"
5929
5840
  ],
5930
5841
  "flags": {
5931
5842
  "config": {
@@ -5957,15 +5868,6 @@
5957
5868
  "allowNo": false,
5958
5869
  "type": "boolean"
5959
5870
  },
5960
- "description": {
5961
- "char": "d",
5962
- "description": "Description for the workspace",
5963
- "name": "description",
5964
- "required": false,
5965
- "hasDynamicHelp": false,
5966
- "multiple": false,
5967
- "type": "option"
5968
- },
5969
5871
  "output": {
5970
5872
  "char": "o",
5971
5873
  "description": "Output format",
@@ -5979,11 +5881,20 @@
5979
5881
  "json"
5980
5882
  ],
5981
5883
  "type": "option"
5884
+ },
5885
+ "workspace": {
5886
+ "char": "w",
5887
+ "description": "Workspace ID (uses profile workspace if not provided)",
5888
+ "name": "workspace",
5889
+ "required": false,
5890
+ "hasDynamicHelp": false,
5891
+ "multiple": false,
5892
+ "type": "option"
5982
5893
  }
5983
5894
  },
5984
5895
  "hasDynamicHelp": false,
5985
5896
  "hiddenAliases": [],
5986
- "id": "workspace:create",
5897
+ "id": "workflow_test:run",
5987
5898
  "pluginAlias": "@xano/cli",
5988
5899
  "pluginName": "@xano/cli",
5989
5900
  "pluginType": "core",
@@ -5993,19 +5904,18 @@
5993
5904
  "relativePath": [
5994
5905
  "dist",
5995
5906
  "commands",
5996
- "workspace",
5997
- "create",
5907
+ "workflow_test",
5908
+ "run",
5998
5909
  "index.js"
5999
5910
  ]
6000
5911
  },
6001
- "workspace:delete": {
5912
+ "workflow_test:run_all": {
6002
5913
  "aliases": [],
6003
5914
  "args": {},
6004
- "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
5915
+ "description": "Run all workflow tests in a workspace",
6005
5916
  "examples": [
6006
- "$ xano workspace delete -w 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
6007
- "$ xano workspace delete -w 123 --force\nDeleted workspace 123\n",
6008
- "$ xano workspace delete -w 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
5917
+ "$ xano workflow-test run-all\nRunning 3 workflow tests...\n\nPASS my-test (1.234s)\nPASS auth-flow (0.567s)\nFAIL data-validation (0.890s)\n Error: assertion failed at step 3\n\nResults: 2 passed, 1 failed (2.691s total)\n",
5918
+ "$ xano workflow-test run-all --branch main -o json"
6009
5919
  ],
6010
5920
  "flags": {
6011
5921
  "config": {
@@ -6037,13 +5947,14 @@
6037
5947
  "allowNo": false,
6038
5948
  "type": "boolean"
6039
5949
  },
6040
- "force": {
6041
- "char": "f",
6042
- "description": "[CRITICAL] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
6043
- "name": "force",
5950
+ "branch": {
5951
+ "char": "b",
5952
+ "description": "Filter by branch name",
5953
+ "name": "branch",
6044
5954
  "required": false,
6045
- "allowNo": false,
6046
- "type": "boolean"
5955
+ "hasDynamicHelp": false,
5956
+ "multiple": false,
5957
+ "type": "option"
6047
5958
  },
6048
5959
  "output": {
6049
5960
  "char": "o",
@@ -6061,7 +5972,7 @@
6061
5972
  },
6062
5973
  "workspace": {
6063
5974
  "char": "w",
6064
- "description": "Workspace ID to delete (uses profile workspace if not provided)",
5975
+ "description": "Workspace ID (uses profile workspace if not provided)",
6065
5976
  "name": "workspace",
6066
5977
  "required": false,
6067
5978
  "hasDynamicHelp": false,
@@ -6071,7 +5982,7 @@
6071
5982
  },
6072
5983
  "hasDynamicHelp": false,
6073
5984
  "hiddenAliases": [],
6074
- "id": "workspace:delete",
5985
+ "id": "workflow_test:run_all",
6075
5986
  "pluginAlias": "@xano/cli",
6076
5987
  "pluginName": "@xano/cli",
6077
5988
  "pluginType": "core",
@@ -6081,24 +5992,19 @@
6081
5992
  "relativePath": [
6082
5993
  "dist",
6083
5994
  "commands",
6084
- "workspace",
6085
- "delete",
5995
+ "workflow_test",
5996
+ "run_all",
6086
5997
  "index.js"
6087
5998
  ]
6088
5999
  },
6089
- "workflow_test:run": {
6000
+ "workspace:delete": {
6090
6001
  "aliases": [],
6091
- "args": {
6092
- "workflow_test_id": {
6093
- "description": "ID of the workflow test to run",
6094
- "name": "workflow_test_id",
6095
- "required": true
6096
- }
6097
- },
6098
- "description": "Run a workflow test",
6002
+ "args": {},
6003
+ "description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
6099
6004
  "examples": [
6100
- "$ xano workflow-test run 1\nRunning workflow test 1...\nResult: PASS (1.234s)\n",
6101
- "$ xano workflow-test run 1 -o json"
6005
+ "$ xano workspace delete -w 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
6006
+ "$ xano workspace delete -w 123 --force\nDeleted workspace 123\n",
6007
+ "$ xano workspace delete -w 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
6102
6008
  ],
6103
6009
  "flags": {
6104
6010
  "config": {
@@ -6130,6 +6036,14 @@
6130
6036
  "allowNo": false,
6131
6037
  "type": "boolean"
6132
6038
  },
6039
+ "force": {
6040
+ "char": "f",
6041
+ "description": "[CRITICAL] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
6042
+ "name": "force",
6043
+ "required": false,
6044
+ "allowNo": false,
6045
+ "type": "boolean"
6046
+ },
6133
6047
  "output": {
6134
6048
  "char": "o",
6135
6049
  "description": "Output format",
@@ -6146,7 +6060,7 @@
6146
6060
  },
6147
6061
  "workspace": {
6148
6062
  "char": "w",
6149
- "description": "Workspace ID (uses profile workspace if not provided)",
6063
+ "description": "Workspace ID to delete (uses profile workspace if not provided)",
6150
6064
  "name": "workspace",
6151
6065
  "required": false,
6152
6066
  "hasDynamicHelp": false,
@@ -6156,7 +6070,7 @@
6156
6070
  },
6157
6071
  "hasDynamicHelp": false,
6158
6072
  "hiddenAliases": [],
6159
- "id": "workflow_test:run",
6073
+ "id": "workspace:delete",
6160
6074
  "pluginAlias": "@xano/cli",
6161
6075
  "pluginName": "@xano/cli",
6162
6076
  "pluginType": "core",
@@ -6166,8 +6080,8 @@
6166
6080
  "relativePath": [
6167
6081
  "dist",
6168
6082
  "commands",
6169
- "workflow_test",
6170
- "run",
6083
+ "workspace",
6084
+ "delete",
6171
6085
  "index.js"
6172
6086
  ]
6173
6087
  },
@@ -6291,14 +6205,20 @@
6291
6205
  "index.js"
6292
6206
  ]
6293
6207
  },
6294
- "workspace:get": {
6208
+ "workspace:create": {
6295
6209
  "aliases": [],
6296
- "args": {},
6297
- "description": "Get details of a specific workspace from the Xano Metadata API",
6210
+ "args": {
6211
+ "name": {
6212
+ "description": "Name of the workspace",
6213
+ "name": "name",
6214
+ "required": true
6215
+ }
6216
+ },
6217
+ "description": "Create a new workspace via the Xano Metadata API",
6298
6218
  "examples": [
6299
- "$ xano workspace get -w 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
6300
- "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
6301
- "$ xano workspace get -w 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
6219
+ "$ xano workspace create my-workspace\nCreated workspace: my-workspace (ID: 123)\n",
6220
+ "$ xano workspace create my-app --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
6221
+ "$ xano workspace create new-project -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
6302
6222
  ],
6303
6223
  "flags": {
6304
6224
  "config": {
@@ -6330,6 +6250,15 @@
6330
6250
  "allowNo": false,
6331
6251
  "type": "boolean"
6332
6252
  },
6253
+ "description": {
6254
+ "char": "d",
6255
+ "description": "Description for the workspace",
6256
+ "name": "description",
6257
+ "required": false,
6258
+ "hasDynamicHelp": false,
6259
+ "multiple": false,
6260
+ "type": "option"
6261
+ },
6333
6262
  "output": {
6334
6263
  "char": "o",
6335
6264
  "description": "Output format",
@@ -6343,20 +6272,11 @@
6343
6272
  "json"
6344
6273
  ],
6345
6274
  "type": "option"
6346
- },
6347
- "workspace": {
6348
- "char": "w",
6349
- "description": "Workspace ID (uses profile workspace if not provided)",
6350
- "name": "workspace",
6351
- "required": false,
6352
- "hasDynamicHelp": false,
6353
- "multiple": false,
6354
- "type": "option"
6355
6275
  }
6356
6276
  },
6357
6277
  "hasDynamicHelp": false,
6358
6278
  "hiddenAliases": [],
6359
- "id": "workspace:get",
6279
+ "id": "workspace:create",
6360
6280
  "pluginAlias": "@xano/cli",
6361
6281
  "pluginName": "@xano/cli",
6362
6282
  "pluginType": "core",
@@ -6367,19 +6287,18 @@
6367
6287
  "dist",
6368
6288
  "commands",
6369
6289
  "workspace",
6370
- "get",
6290
+ "create",
6371
6291
  "index.js"
6372
6292
  ]
6373
6293
  },
6374
- "workspace:list": {
6294
+ "workspace:get": {
6375
6295
  "aliases": [],
6376
6296
  "args": {},
6377
- "description": "List all workspaces from the Xano Metadata API",
6297
+ "description": "Get details of a specific workspace from the Xano Metadata API",
6378
6298
  "examples": [
6379
- "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
6380
- "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
6381
- "$ 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",
6382
- "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
6299
+ "$ xano workspace get -w 123\nWorkspace: my-workspace (ID: 123)\n Description: My workspace description\n Created: 2024-01-15\n",
6300
+ "$ xano workspace get --output json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"description\": \"My workspace description\"\n}\n",
6301
+ "$ xano workspace get -w 456 -p production -o json\n{\n \"id\": 456,\n \"name\": \"production-workspace\"\n}\n"
6383
6302
  ],
6384
6303
  "flags": {
6385
6304
  "config": {
@@ -6411,12 +6330,6 @@
6411
6330
  "allowNo": false,
6412
6331
  "type": "boolean"
6413
6332
  },
6414
- "latest": {
6415
- "description": "Sort by newest first (descending ID)",
6416
- "name": "latest",
6417
- "allowNo": false,
6418
- "type": "boolean"
6419
- },
6420
6333
  "output": {
6421
6334
  "char": "o",
6422
6335
  "description": "Output format",
@@ -6430,11 +6343,20 @@
6430
6343
  "json"
6431
6344
  ],
6432
6345
  "type": "option"
6346
+ },
6347
+ "workspace": {
6348
+ "char": "w",
6349
+ "description": "Workspace ID (uses profile workspace if not provided)",
6350
+ "name": "workspace",
6351
+ "required": false,
6352
+ "hasDynamicHelp": false,
6353
+ "multiple": false,
6354
+ "type": "option"
6433
6355
  }
6434
6356
  },
6435
6357
  "hasDynamicHelp": false,
6436
6358
  "hiddenAliases": [],
6437
- "id": "workspace:list",
6359
+ "id": "workspace:get",
6438
6360
  "pluginAlias": "@xano/cli",
6439
6361
  "pluginName": "@xano/cli",
6440
6362
  "pluginType": "core",
@@ -6445,7 +6367,7 @@
6445
6367
  "dist",
6446
6368
  "commands",
6447
6369
  "workspace",
6448
- "list",
6370
+ "get",
6449
6371
  "index.js"
6450
6372
  ]
6451
6373
  },
@@ -6794,14 +6716,15 @@
6794
6716
  "index.js"
6795
6717
  ]
6796
6718
  },
6797
- "sandbox:env:delete": {
6719
+ "workspace:list": {
6798
6720
  "aliases": [],
6799
6721
  "args": {},
6800
- "description": "Delete an environment variable from a sandbox environment",
6722
+ "description": "List all workspaces from the Xano Metadata API",
6801
6723
  "examples": [
6802
- "$ xano sandbox env delete --name DATABASE_URL\nAre you sure you want to delete environment variable 'DATABASE_URL'? (y/N) y\nEnvironment variable 'DATABASE_URL' deleted\n",
6803
- "$ xano sandbox env delete --name DATABASE_URL --force",
6804
- "$ xano sandbox env delete --name DATABASE_URL -f -o json"
6724
+ "$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
6725
+ "$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
6726
+ "$ 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",
6727
+ "$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
6805
6728
  ],
6806
6729
  "flags": {
6807
6730
  "config": {
@@ -6833,10 +6756,78 @@
6833
6756
  "allowNo": false,
6834
6757
  "type": "boolean"
6835
6758
  },
6836
- "force": {
6837
- "char": "f",
6838
- "description": "[IMPORTANT] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
6839
- "name": "force",
6759
+ "latest": {
6760
+ "description": "Sort by newest first (descending ID)",
6761
+ "name": "latest",
6762
+ "allowNo": false,
6763
+ "type": "boolean"
6764
+ },
6765
+ "output": {
6766
+ "char": "o",
6767
+ "description": "Output format",
6768
+ "name": "output",
6769
+ "required": false,
6770
+ "default": "summary",
6771
+ "hasDynamicHelp": false,
6772
+ "multiple": false,
6773
+ "options": [
6774
+ "summary",
6775
+ "json"
6776
+ ],
6777
+ "type": "option"
6778
+ }
6779
+ },
6780
+ "hasDynamicHelp": false,
6781
+ "hiddenAliases": [],
6782
+ "id": "workspace:list",
6783
+ "pluginAlias": "@xano/cli",
6784
+ "pluginName": "@xano/cli",
6785
+ "pluginType": "core",
6786
+ "strict": true,
6787
+ "enableJsonFlag": false,
6788
+ "isESM": true,
6789
+ "relativePath": [
6790
+ "dist",
6791
+ "commands",
6792
+ "workspace",
6793
+ "list",
6794
+ "index.js"
6795
+ ]
6796
+ },
6797
+ "sandbox:env:get": {
6798
+ "aliases": [],
6799
+ "args": {},
6800
+ "description": "Get a single environment variable for a sandbox environment",
6801
+ "examples": [
6802
+ "$ xano sandbox env get --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
6803
+ "$ xano sandbox env get --name DATABASE_URL -o json"
6804
+ ],
6805
+ "flags": {
6806
+ "config": {
6807
+ "char": "c",
6808
+ "description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
6809
+ "env": "XANO_CONFIG",
6810
+ "name": "config",
6811
+ "required": false,
6812
+ "hasDynamicHelp": false,
6813
+ "multiple": false,
6814
+ "type": "option"
6815
+ },
6816
+ "profile": {
6817
+ "char": "p",
6818
+ "description": "Profile to use (uses default profile if not specified)",
6819
+ "env": "XANO_PROFILE",
6820
+ "name": "profile",
6821
+ "required": false,
6822
+ "hasDynamicHelp": false,
6823
+ "multiple": false,
6824
+ "type": "option"
6825
+ },
6826
+ "verbose": {
6827
+ "char": "v",
6828
+ "description": "Show detailed request/response information",
6829
+ "env": "XANO_VERBOSE",
6830
+ "name": "verbose",
6840
6831
  "required": false,
6841
6832
  "allowNo": false,
6842
6833
  "type": "boolean"
@@ -6867,7 +6858,7 @@
6867
6858
  },
6868
6859
  "hasDynamicHelp": false,
6869
6860
  "hiddenAliases": [],
6870
- "id": "sandbox:env:delete",
6861
+ "id": "sandbox:env:get",
6871
6862
  "pluginAlias": "@xano/cli",
6872
6863
  "pluginName": "@xano/cli",
6873
6864
  "pluginType": "core",
@@ -6879,17 +6870,19 @@
6879
6870
  "commands",
6880
6871
  "sandbox",
6881
6872
  "env",
6882
- "delete",
6873
+ "get",
6883
6874
  "index.js"
6884
6875
  ]
6885
6876
  },
6886
- "sandbox:env:get": {
6877
+ "sandbox:env:get_all": {
6887
6878
  "aliases": [],
6888
6879
  "args": {},
6889
- "description": "Get a single environment variable for a sandbox environment",
6880
+ "description": "Get all environment variables for a sandbox environment and save to a YAML file",
6890
6881
  "examples": [
6891
- "$ xano sandbox env get --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
6892
- "$ xano sandbox env get --name DATABASE_URL -o json"
6882
+ "$ xano sandbox env get_all\nEnvironment variables saved to env_<tenant>.yaml\n",
6883
+ "$ xano sandbox env get_all --file ./my-env.yaml",
6884
+ "$ xano sandbox env get_all --view",
6885
+ "$ xano sandbox env get_all -o json"
6893
6886
  ],
6894
6887
  "flags": {
6895
6888
  "config": {
@@ -6921,11 +6914,11 @@
6921
6914
  "allowNo": false,
6922
6915
  "type": "boolean"
6923
6916
  },
6924
- "name": {
6925
- "char": "n",
6926
- "description": "Environment variable name",
6927
- "name": "name",
6928
- "required": true,
6917
+ "file": {
6918
+ "char": "f",
6919
+ "description": "Output file path (default: env_<sandbox_name>.yaml)",
6920
+ "name": "file",
6921
+ "required": false,
6929
6922
  "hasDynamicHelp": false,
6930
6923
  "multiple": false,
6931
6924
  "type": "option"
@@ -6943,11 +6936,18 @@
6943
6936
  "json"
6944
6937
  ],
6945
6938
  "type": "option"
6939
+ },
6940
+ "view": {
6941
+ "description": "Print environment variables to stdout instead of saving to file",
6942
+ "name": "view",
6943
+ "required": false,
6944
+ "allowNo": false,
6945
+ "type": "boolean"
6946
6946
  }
6947
6947
  },
6948
6948
  "hasDynamicHelp": false,
6949
6949
  "hiddenAliases": [],
6950
- "id": "sandbox:env:get",
6950
+ "id": "sandbox:env:get_all",
6951
6951
  "pluginAlias": "@xano/cli",
6952
6952
  "pluginName": "@xano/cli",
6953
6953
  "pluginType": "core",
@@ -6959,19 +6959,17 @@
6959
6959
  "commands",
6960
6960
  "sandbox",
6961
6961
  "env",
6962
- "get",
6962
+ "get_all",
6963
6963
  "index.js"
6964
6964
  ]
6965
6965
  },
6966
- "sandbox:env:get_all": {
6966
+ "sandbox:env:list": {
6967
6967
  "aliases": [],
6968
6968
  "args": {},
6969
- "description": "Get all environment variables for a sandbox environment and save to a YAML file",
6969
+ "description": "List environment variable keys for a sandbox environment",
6970
6970
  "examples": [
6971
- "$ xano sandbox env get_all\nEnvironment variables saved to env_<tenant>.yaml\n",
6972
- "$ xano sandbox env get_all --file ./my-env.yaml",
6973
- "$ xano sandbox env get_all --view",
6974
- "$ xano sandbox env get_all -o json"
6971
+ "$ xano sandbox env list\nEnvironment variables for sandbox environment:\n - DATABASE_URL\n - API_KEY\n",
6972
+ "$ xano sandbox env list -o json"
6975
6973
  ],
6976
6974
  "flags": {
6977
6975
  "config": {
@@ -7003,15 +7001,6 @@
7003
7001
  "allowNo": false,
7004
7002
  "type": "boolean"
7005
7003
  },
7006
- "file": {
7007
- "char": "f",
7008
- "description": "Output file path (default: env_<sandbox_name>.yaml)",
7009
- "name": "file",
7010
- "required": false,
7011
- "hasDynamicHelp": false,
7012
- "multiple": false,
7013
- "type": "option"
7014
- },
7015
7004
  "output": {
7016
7005
  "char": "o",
7017
7006
  "description": "Output format",
@@ -7025,18 +7014,11 @@
7025
7014
  "json"
7026
7015
  ],
7027
7016
  "type": "option"
7028
- },
7029
- "view": {
7030
- "description": "Print environment variables to stdout instead of saving to file",
7031
- "name": "view",
7032
- "required": false,
7033
- "allowNo": false,
7034
- "type": "boolean"
7035
7017
  }
7036
7018
  },
7037
7019
  "hasDynamicHelp": false,
7038
7020
  "hiddenAliases": [],
7039
- "id": "sandbox:env:get_all",
7021
+ "id": "sandbox:env:list",
7040
7022
  "pluginAlias": "@xano/cli",
7041
7023
  "pluginName": "@xano/cli",
7042
7024
  "pluginType": "core",
@@ -7048,17 +7030,18 @@
7048
7030
  "commands",
7049
7031
  "sandbox",
7050
7032
  "env",
7051
- "get_all",
7033
+ "list",
7052
7034
  "index.js"
7053
7035
  ]
7054
7036
  },
7055
- "sandbox:env:list": {
7037
+ "sandbox:env:delete": {
7056
7038
  "aliases": [],
7057
7039
  "args": {},
7058
- "description": "List environment variable keys for a sandbox environment",
7040
+ "description": "Delete an environment variable from a sandbox environment",
7059
7041
  "examples": [
7060
- "$ xano sandbox env list\nEnvironment variables for sandbox environment:\n - DATABASE_URL\n - API_KEY\n",
7061
- "$ xano sandbox env list -o json"
7042
+ "$ xano sandbox env delete --name DATABASE_URL\nAre you sure you want to delete environment variable 'DATABASE_URL'? (y/N) y\nEnvironment variable 'DATABASE_URL' deleted\n",
7043
+ "$ xano sandbox env delete --name DATABASE_URL --force",
7044
+ "$ xano sandbox env delete --name DATABASE_URL -f -o json"
7062
7045
  ],
7063
7046
  "flags": {
7064
7047
  "config": {
@@ -7090,6 +7073,23 @@
7090
7073
  "allowNo": false,
7091
7074
  "type": "boolean"
7092
7075
  },
7076
+ "force": {
7077
+ "char": "f",
7078
+ "description": "[IMPORTANT] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
7079
+ "name": "force",
7080
+ "required": false,
7081
+ "allowNo": false,
7082
+ "type": "boolean"
7083
+ },
7084
+ "name": {
7085
+ "char": "n",
7086
+ "description": "Environment variable name",
7087
+ "name": "name",
7088
+ "required": true,
7089
+ "hasDynamicHelp": false,
7090
+ "multiple": false,
7091
+ "type": "option"
7092
+ },
7093
7093
  "output": {
7094
7094
  "char": "o",
7095
7095
  "description": "Output format",
@@ -7107,7 +7107,7 @@
7107
7107
  },
7108
7108
  "hasDynamicHelp": false,
7109
7109
  "hiddenAliases": [],
7110
- "id": "sandbox:env:list",
7110
+ "id": "sandbox:env:delete",
7111
7111
  "pluginAlias": "@xano/cli",
7112
7112
  "pluginName": "@xano/cli",
7113
7113
  "pluginType": "core",
@@ -7119,7 +7119,7 @@
7119
7119
  "commands",
7120
7120
  "sandbox",
7121
7121
  "env",
7122
- "list",
7122
+ "delete",
7123
7123
  "index.js"
7124
7124
  ]
7125
7125
  },
@@ -7495,13 +7495,13 @@
7495
7495
  "index.js"
7496
7496
  ]
7497
7497
  },
7498
- "sandbox:workflow_test:list": {
7498
+ "sandbox:unit_test:list": {
7499
7499
  "aliases": [],
7500
7500
  "args": {},
7501
- "description": "List workflow tests for a sandbox environment",
7501
+ "description": "List all unit tests for a sandbox environment",
7502
7502
  "examples": [
7503
- "$ xano sandbox workflow-test list\nWorkflow tests:\n - my-test (ID: 1)\n",
7504
- "$ xano sandbox workflow-test list -o json"
7503
+ "$ xano sandbox unit-test list\nUnit tests:\n - my-test (ID: abc-123) [function: math]\n",
7504
+ "$ xano sandbox unit-test list -o json"
7505
7505
  ],
7506
7506
  "flags": {
7507
7507
  "config": {
@@ -7542,6 +7542,19 @@
7542
7542
  "multiple": false,
7543
7543
  "type": "option"
7544
7544
  },
7545
+ "obj-type": {
7546
+ "description": "Filter by object type",
7547
+ "name": "obj-type",
7548
+ "required": false,
7549
+ "hasDynamicHelp": false,
7550
+ "multiple": false,
7551
+ "options": [
7552
+ "function",
7553
+ "query",
7554
+ "middleware"
7555
+ ],
7556
+ "type": "option"
7557
+ },
7545
7558
  "output": {
7546
7559
  "char": "o",
7547
7560
  "description": "Output format",
@@ -7559,7 +7572,7 @@
7559
7572
  },
7560
7573
  "hasDynamicHelp": false,
7561
7574
  "hiddenAliases": [],
7562
- "id": "sandbox:workflow_test:list",
7575
+ "id": "sandbox:unit_test:list",
7563
7576
  "pluginAlias": "@xano/cli",
7564
7577
  "pluginName": "@xano/cli",
7565
7578
  "pluginType": "core",
@@ -7570,7 +7583,7 @@
7570
7583
  "dist",
7571
7584
  "commands",
7572
7585
  "sandbox",
7573
- "workflow_test",
7586
+ "unit_test",
7574
7587
  "list",
7575
7588
  "index.js"
7576
7589
  ]
@@ -7745,13 +7758,13 @@
7745
7758
  "index.js"
7746
7759
  ]
7747
7760
  },
7748
- "sandbox:unit_test:list": {
7761
+ "sandbox:workflow_test:list": {
7749
7762
  "aliases": [],
7750
7763
  "args": {},
7751
- "description": "List all unit tests for a sandbox environment",
7764
+ "description": "List workflow tests for a sandbox environment",
7752
7765
  "examples": [
7753
- "$ xano sandbox unit-test list\nUnit tests:\n - my-test (ID: abc-123) [function: math]\n",
7754
- "$ xano sandbox unit-test list -o json"
7766
+ "$ xano sandbox workflow-test list\nWorkflow tests:\n - my-test (ID: 1)\n",
7767
+ "$ xano sandbox workflow-test list -o json"
7755
7768
  ],
7756
7769
  "flags": {
7757
7770
  "config": {
@@ -7792,19 +7805,6 @@
7792
7805
  "multiple": false,
7793
7806
  "type": "option"
7794
7807
  },
7795
- "obj-type": {
7796
- "description": "Filter by object type",
7797
- "name": "obj-type",
7798
- "required": false,
7799
- "hasDynamicHelp": false,
7800
- "multiple": false,
7801
- "options": [
7802
- "function",
7803
- "query",
7804
- "middleware"
7805
- ],
7806
- "type": "option"
7807
- },
7808
7808
  "output": {
7809
7809
  "char": "o",
7810
7810
  "description": "Output format",
@@ -7822,7 +7822,7 @@
7822
7822
  },
7823
7823
  "hasDynamicHelp": false,
7824
7824
  "hiddenAliases": [],
7825
- "id": "sandbox:unit_test:list",
7825
+ "id": "sandbox:workflow_test:list",
7826
7826
  "pluginAlias": "@xano/cli",
7827
7827
  "pluginName": "@xano/cli",
7828
7828
  "pluginType": "core",
@@ -7833,7 +7833,7 @@
7833
7833
  "dist",
7834
7834
  "commands",
7835
7835
  "sandbox",
7836
- "unit_test",
7836
+ "workflow_test",
7837
7837
  "list",
7838
7838
  "index.js"
7839
7839
  ]
@@ -8118,7 +8118,7 @@
8118
8118
  "index.js"
8119
8119
  ]
8120
8120
  },
8121
- "static_host:build:delete": {
8121
+ "static_host:build:get": {
8122
8122
  "aliases": [],
8123
8123
  "args": {
8124
8124
  "static_host": {
@@ -8127,12 +8127,12 @@
8127
8127
  "required": true
8128
8128
  }
8129
8129
  },
8130
- "description": "Delete a static host build permanently. This action cannot be undone.",
8130
+ "description": "Get details of a specific build for a static host",
8131
8131
  "examples": [
8132
- "$ xano static_host build delete default --build_id 52\nAre you sure you want to delete build 52 from static host 'default'? This action cannot be undone. (y/N) y\nDeleted build 52 from static host 'default'\n",
8133
- "$ xano static_host build delete default --build_id 52 --force\nDeleted build 52 from static host 'default'\n",
8134
- "$ xano static_host build delete myhost --build_id 123 -w 40 -f\nDeleted build 123 from static host 'myhost'\n",
8135
- "$ xano static_host build delete default --build_id 52 -f -o json"
8132
+ "$ xano static_host:build:get default --build_id 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
8133
+ "$ xano static_host:build:get default --build_id 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
8134
+ "$ xano static_host:build:get myhost --build_id 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
8135
+ "$ xano static_host:build:get default --build_id 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
8136
8136
  ],
8137
8137
  "flags": {
8138
8138
  "config": {
@@ -8165,21 +8165,13 @@
8165
8165
  "type": "boolean"
8166
8166
  },
8167
8167
  "build_id": {
8168
- "description": "Build ID to delete",
8168
+ "description": "Build ID",
8169
8169
  "name": "build_id",
8170
8170
  "required": true,
8171
8171
  "hasDynamicHelp": false,
8172
8172
  "multiple": false,
8173
8173
  "type": "option"
8174
8174
  },
8175
- "force": {
8176
- "char": "f",
8177
- "description": "[CRITICAL] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
8178
- "name": "force",
8179
- "required": false,
8180
- "allowNo": false,
8181
- "type": "boolean"
8182
- },
8183
8175
  "output": {
8184
8176
  "char": "o",
8185
8177
  "description": "Output format",
@@ -8206,7 +8198,7 @@
8206
8198
  },
8207
8199
  "hasDynamicHelp": false,
8208
8200
  "hiddenAliases": [],
8209
- "id": "static_host:build:delete",
8201
+ "id": "static_host:build:get",
8210
8202
  "pluginAlias": "@xano/cli",
8211
8203
  "pluginName": "@xano/cli",
8212
8204
  "pluginType": "core",
@@ -8218,11 +8210,11 @@
8218
8210
  "commands",
8219
8211
  "static_host",
8220
8212
  "build",
8221
- "delete",
8213
+ "get",
8222
8214
  "index.js"
8223
8215
  ]
8224
8216
  },
8225
- "static_host:build:get": {
8217
+ "static_host:build:delete": {
8226
8218
  "aliases": [],
8227
8219
  "args": {
8228
8220
  "static_host": {
@@ -8231,12 +8223,12 @@
8231
8223
  "required": true
8232
8224
  }
8233
8225
  },
8234
- "description": "Get details of a specific build for a static host",
8226
+ "description": "Delete a static host build permanently. This action cannot be undone.",
8235
8227
  "examples": [
8236
- "$ xano static_host:build:get default --build_id 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
8237
- "$ xano static_host:build:get default --build_id 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
8238
- "$ xano static_host:build:get myhost --build_id 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
8239
- "$ xano static_host:build:get default --build_id 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
8228
+ "$ xano static_host build delete default --build_id 52\nAre you sure you want to delete build 52 from static host 'default'? This action cannot be undone. (y/N) y\nDeleted build 52 from static host 'default'\n",
8229
+ "$ xano static_host build delete default --build_id 52 --force\nDeleted build 52 from static host 'default'\n",
8230
+ "$ xano static_host build delete myhost --build_id 123 -w 40 -f\nDeleted build 123 from static host 'myhost'\n",
8231
+ "$ xano static_host build delete default --build_id 52 -f -o json"
8240
8232
  ],
8241
8233
  "flags": {
8242
8234
  "config": {
@@ -8269,13 +8261,21 @@
8269
8261
  "type": "boolean"
8270
8262
  },
8271
8263
  "build_id": {
8272
- "description": "Build ID",
8264
+ "description": "Build ID to delete",
8273
8265
  "name": "build_id",
8274
8266
  "required": true,
8275
8267
  "hasDynamicHelp": false,
8276
8268
  "multiple": false,
8277
8269
  "type": "option"
8278
8270
  },
8271
+ "force": {
8272
+ "char": "f",
8273
+ "description": "[CRITICAL] NEVER run without explicit user confirmation. Skips the confirmation prompt.",
8274
+ "name": "force",
8275
+ "required": false,
8276
+ "allowNo": false,
8277
+ "type": "boolean"
8278
+ },
8279
8279
  "output": {
8280
8280
  "char": "o",
8281
8281
  "description": "Output format",
@@ -8302,7 +8302,7 @@
8302
8302
  },
8303
8303
  "hasDynamicHelp": false,
8304
8304
  "hiddenAliases": [],
8305
- "id": "static_host:build:get",
8305
+ "id": "static_host:build:delete",
8306
8306
  "pluginAlias": "@xano/cli",
8307
8307
  "pluginName": "@xano/cli",
8308
8308
  "pluginType": "core",
@@ -8314,7 +8314,7 @@
8314
8314
  "commands",
8315
8315
  "static_host",
8316
8316
  "build",
8317
- "get",
8317
+ "delete",
8318
8318
  "index.js"
8319
8319
  ]
8320
8320
  },
@@ -8699,19 +8699,20 @@
8699
8699
  "index.js"
8700
8700
  ]
8701
8701
  },
8702
- "tenant:backup:create": {
8702
+ "tenant:backup:delete": {
8703
8703
  "aliases": [],
8704
8704
  "args": {
8705
8705
  "tenant_name": {
8706
- "description": "Tenant name to back up",
8706
+ "description": "Tenant name that owns the backup",
8707
8707
  "name": "tenant_name",
8708
8708
  "required": true
8709
8709
  }
8710
8710
  },
8711
- "description": "Create a backup for a tenant",
8711
+ "description": "[CRITICAL] NEVER delete a backup without explicit user confirmation; this removes your restore point. Deletes a tenant backup permanently.",
8712
8712
  "examples": [
8713
- "$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
8714
- "$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
8713
+ "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to delete backup #10? This action cannot be undone. (y/N) y\nDeleted backup #10\n",
8714
+ "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
8715
+ "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
8715
8716
  ],
8716
8717
  "flags": {
8717
8718
  "config": {
@@ -8743,16 +8744,22 @@
8743
8744
  "allowNo": false,
8744
8745
  "type": "boolean"
8745
8746
  },
8746
- "description": {
8747
- "char": "d",
8748
- "description": "Backup description",
8749
- "name": "description",
8750
- "required": false,
8751
- "default": "",
8747
+ "backup_id": {
8748
+ "description": "Backup ID to delete",
8749
+ "name": "backup_id",
8750
+ "required": true,
8752
8751
  "hasDynamicHelp": false,
8753
8752
  "multiple": false,
8754
8753
  "type": "option"
8755
8754
  },
8755
+ "force": {
8756
+ "char": "f",
8757
+ "description": "[CRITICAL] Skips the confirmation prompt.",
8758
+ "name": "force",
8759
+ "required": false,
8760
+ "allowNo": false,
8761
+ "type": "boolean"
8762
+ },
8756
8763
  "output": {
8757
8764
  "char": "o",
8758
8765
  "description": "Output format",
@@ -8779,7 +8786,7 @@
8779
8786
  },
8780
8787
  "hasDynamicHelp": false,
8781
8788
  "hiddenAliases": [],
8782
- "id": "tenant:backup:create",
8789
+ "id": "tenant:backup:delete",
8783
8790
  "pluginAlias": "@xano/cli",
8784
8791
  "pluginName": "@xano/cli",
8785
8792
  "pluginType": "core",
@@ -8791,24 +8798,23 @@
8791
8798
  "commands",
8792
8799
  "tenant",
8793
8800
  "backup",
8794
- "create",
8801
+ "delete",
8795
8802
  "index.js"
8796
8803
  ]
8797
8804
  },
8798
- "tenant:backup:delete": {
8805
+ "tenant:backup:create": {
8799
8806
  "aliases": [],
8800
8807
  "args": {
8801
8808
  "tenant_name": {
8802
- "description": "Tenant name that owns the backup",
8809
+ "description": "Tenant name to back up",
8803
8810
  "name": "tenant_name",
8804
8811
  "required": true
8805
8812
  }
8806
8813
  },
8807
- "description": "[CRITICAL] NEVER delete a backup without explicit user confirmation; this removes your restore point. Deletes a tenant backup permanently.",
8814
+ "description": "Create a backup for a tenant",
8808
8815
  "examples": [
8809
- "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to delete backup #10? This action cannot be undone. (y/N) y\nDeleted backup #10\n",
8810
- "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
8811
- "$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
8816
+ "$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
8817
+ "$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
8812
8818
  ],
8813
8819
  "flags": {
8814
8820
  "config": {
@@ -8840,22 +8846,16 @@
8840
8846
  "allowNo": false,
8841
8847
  "type": "boolean"
8842
8848
  },
8843
- "backup_id": {
8844
- "description": "Backup ID to delete",
8845
- "name": "backup_id",
8846
- "required": true,
8849
+ "description": {
8850
+ "char": "d",
8851
+ "description": "Backup description",
8852
+ "name": "description",
8853
+ "required": false,
8854
+ "default": "",
8847
8855
  "hasDynamicHelp": false,
8848
8856
  "multiple": false,
8849
8857
  "type": "option"
8850
8858
  },
8851
- "force": {
8852
- "char": "f",
8853
- "description": "[CRITICAL] Skips the confirmation prompt.",
8854
- "name": "force",
8855
- "required": false,
8856
- "allowNo": false,
8857
- "type": "boolean"
8858
- },
8859
8859
  "output": {
8860
8860
  "char": "o",
8861
8861
  "description": "Output format",
@@ -8882,7 +8882,7 @@
8882
8882
  },
8883
8883
  "hasDynamicHelp": false,
8884
8884
  "hiddenAliases": [],
8885
- "id": "tenant:backup:delete",
8885
+ "id": "tenant:backup:create",
8886
8886
  "pluginAlias": "@xano/cli",
8887
8887
  "pluginName": "@xano/cli",
8888
8888
  "pluginType": "core",
@@ -8894,7 +8894,7 @@
8894
8894
  "commands",
8895
8895
  "tenant",
8896
8896
  "backup",
8897
- "delete",
8897
+ "create",
8898
8898
  "index.js"
8899
8899
  ]
8900
8900
  },
@@ -9888,7 +9888,7 @@
9888
9888
  "index.js"
9889
9889
  ]
9890
9890
  },
9891
- "tenant:env:get_all": {
9891
+ "tenant:env:get": {
9892
9892
  "aliases": [],
9893
9893
  "args": {
9894
9894
  "tenant_name": {
@@ -9897,12 +9897,10 @@
9897
9897
  "required": true
9898
9898
  }
9899
9899
  },
9900
- "description": "Get all environment variables for a tenant and save to a YAML file",
9900
+ "description": "Get a single environment variable for a tenant",
9901
9901
  "examples": [
9902
- "$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
9903
- "$ xano tenant env get_all my-tenant --file ./my-env.yaml",
9904
- "$ xano tenant env get_all my-tenant --view",
9905
- "$ xano tenant env get_all my-tenant -o json"
9902
+ "$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
9903
+ "$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
9906
9904
  ],
9907
9905
  "flags": {
9908
9906
  "config": {
@@ -9934,11 +9932,11 @@
9934
9932
  "allowNo": false,
9935
9933
  "type": "boolean"
9936
9934
  },
9937
- "file": {
9938
- "char": "f",
9939
- "description": "Output file path (default: env_<tenant_name>.yaml)",
9940
- "name": "file",
9941
- "required": false,
9935
+ "name": {
9936
+ "char": "n",
9937
+ "description": "Environment variable name",
9938
+ "name": "name",
9939
+ "required": true,
9942
9940
  "hasDynamicHelp": false,
9943
9941
  "multiple": false,
9944
9942
  "type": "option"
@@ -9957,13 +9955,6 @@
9957
9955
  ],
9958
9956
  "type": "option"
9959
9957
  },
9960
- "view": {
9961
- "description": "Print environment variables to stdout instead of saving to file",
9962
- "name": "view",
9963
- "required": false,
9964
- "allowNo": false,
9965
- "type": "boolean"
9966
- },
9967
9958
  "workspace": {
9968
9959
  "char": "w",
9969
9960
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -9976,7 +9967,7 @@
9976
9967
  },
9977
9968
  "hasDynamicHelp": false,
9978
9969
  "hiddenAliases": [],
9979
- "id": "tenant:env:get_all",
9970
+ "id": "tenant:env:get",
9980
9971
  "pluginAlias": "@xano/cli",
9981
9972
  "pluginName": "@xano/cli",
9982
9973
  "pluginType": "core",
@@ -9988,11 +9979,11 @@
9988
9979
  "commands",
9989
9980
  "tenant",
9990
9981
  "env",
9991
- "get_all",
9982
+ "get",
9992
9983
  "index.js"
9993
9984
  ]
9994
9985
  },
9995
- "tenant:env:get": {
9986
+ "tenant:env:get_all": {
9996
9987
  "aliases": [],
9997
9988
  "args": {
9998
9989
  "tenant_name": {
@@ -10001,10 +9992,12 @@
10001
9992
  "required": true
10002
9993
  }
10003
9994
  },
10004
- "description": "Get a single environment variable for a tenant",
9995
+ "description": "Get all environment variables for a tenant and save to a YAML file",
10005
9996
  "examples": [
10006
- "$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
10007
- "$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
9997
+ "$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
9998
+ "$ xano tenant env get_all my-tenant --file ./my-env.yaml",
9999
+ "$ xano tenant env get_all my-tenant --view",
10000
+ "$ xano tenant env get_all my-tenant -o json"
10008
10001
  ],
10009
10002
  "flags": {
10010
10003
  "config": {
@@ -10036,11 +10029,11 @@
10036
10029
  "allowNo": false,
10037
10030
  "type": "boolean"
10038
10031
  },
10039
- "name": {
10040
- "char": "n",
10041
- "description": "Environment variable name",
10042
- "name": "name",
10043
- "required": true,
10032
+ "file": {
10033
+ "char": "f",
10034
+ "description": "Output file path (default: env_<tenant_name>.yaml)",
10035
+ "name": "file",
10036
+ "required": false,
10044
10037
  "hasDynamicHelp": false,
10045
10038
  "multiple": false,
10046
10039
  "type": "option"
@@ -10059,6 +10052,13 @@
10059
10052
  ],
10060
10053
  "type": "option"
10061
10054
  },
10055
+ "view": {
10056
+ "description": "Print environment variables to stdout instead of saving to file",
10057
+ "name": "view",
10058
+ "required": false,
10059
+ "allowNo": false,
10060
+ "type": "boolean"
10061
+ },
10062
10062
  "workspace": {
10063
10063
  "char": "w",
10064
10064
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -10071,7 +10071,7 @@
10071
10071
  },
10072
10072
  "hasDynamicHelp": false,
10073
10073
  "hiddenAliases": [],
10074
- "id": "tenant:env:get",
10074
+ "id": "tenant:env:get_all",
10075
10075
  "pluginAlias": "@xano/cli",
10076
10076
  "pluginName": "@xano/cli",
10077
10077
  "pluginType": "core",
@@ -10083,11 +10083,11 @@
10083
10083
  "commands",
10084
10084
  "tenant",
10085
10085
  "env",
10086
- "get",
10086
+ "get_all",
10087
10087
  "index.js"
10088
10088
  ]
10089
10089
  },
10090
- "tenant:env:set": {
10090
+ "tenant:env:list": {
10091
10091
  "aliases": [],
10092
10092
  "args": {
10093
10093
  "tenant_name": {
@@ -10096,10 +10096,10 @@
10096
10096
  "required": true
10097
10097
  }
10098
10098
  },
10099
- "description": "Set (create or update) an environment variable for a tenant",
10099
+ "description": "List environment variable keys for a tenant",
10100
10100
  "examples": [
10101
- "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
10102
- "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
10101
+ "$ xano tenant env list my-tenant\nEnvironment variables for tenant my-tenant:\n - DATABASE_URL\n - API_KEY\n - SECRET_TOKEN\n",
10102
+ "$ xano tenant env list my-tenant -w 5 -o json"
10103
10103
  ],
10104
10104
  "flags": {
10105
10105
  "config": {
@@ -10131,15 +10131,6 @@
10131
10131
  "allowNo": false,
10132
10132
  "type": "boolean"
10133
10133
  },
10134
- "name": {
10135
- "char": "n",
10136
- "description": "Environment variable name",
10137
- "name": "name",
10138
- "required": true,
10139
- "hasDynamicHelp": false,
10140
- "multiple": false,
10141
- "type": "option"
10142
- },
10143
10134
  "output": {
10144
10135
  "char": "o",
10145
10136
  "description": "Output format",
@@ -10154,14 +10145,6 @@
10154
10145
  ],
10155
10146
  "type": "option"
10156
10147
  },
10157
- "value": {
10158
- "description": "Environment variable value",
10159
- "name": "value",
10160
- "required": true,
10161
- "hasDynamicHelp": false,
10162
- "multiple": false,
10163
- "type": "option"
10164
- },
10165
10148
  "workspace": {
10166
10149
  "char": "w",
10167
10150
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -10174,7 +10157,7 @@
10174
10157
  },
10175
10158
  "hasDynamicHelp": false,
10176
10159
  "hiddenAliases": [],
10177
- "id": "tenant:env:set",
10160
+ "id": "tenant:env:list",
10178
10161
  "pluginAlias": "@xano/cli",
10179
10162
  "pluginName": "@xano/cli",
10180
10163
  "pluginType": "core",
@@ -10186,11 +10169,11 @@
10186
10169
  "commands",
10187
10170
  "tenant",
10188
10171
  "env",
10189
- "set",
10172
+ "list",
10190
10173
  "index.js"
10191
10174
  ]
10192
10175
  },
10193
- "tenant:env:list": {
10176
+ "tenant:env:set": {
10194
10177
  "aliases": [],
10195
10178
  "args": {
10196
10179
  "tenant_name": {
@@ -10199,10 +10182,10 @@
10199
10182
  "required": true
10200
10183
  }
10201
10184
  },
10202
- "description": "List environment variable keys for a tenant",
10185
+ "description": "Set (create or update) an environment variable for a tenant",
10203
10186
  "examples": [
10204
- "$ xano tenant env list my-tenant\nEnvironment variables for tenant my-tenant:\n - DATABASE_URL\n - API_KEY\n - SECRET_TOKEN\n",
10205
- "$ xano tenant env list my-tenant -w 5 -o json"
10187
+ "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
10188
+ "$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
10206
10189
  ],
10207
10190
  "flags": {
10208
10191
  "config": {
@@ -10234,6 +10217,15 @@
10234
10217
  "allowNo": false,
10235
10218
  "type": "boolean"
10236
10219
  },
10220
+ "name": {
10221
+ "char": "n",
10222
+ "description": "Environment variable name",
10223
+ "name": "name",
10224
+ "required": true,
10225
+ "hasDynamicHelp": false,
10226
+ "multiple": false,
10227
+ "type": "option"
10228
+ },
10237
10229
  "output": {
10238
10230
  "char": "o",
10239
10231
  "description": "Output format",
@@ -10248,6 +10240,14 @@
10248
10240
  ],
10249
10241
  "type": "option"
10250
10242
  },
10243
+ "value": {
10244
+ "description": "Environment variable value",
10245
+ "name": "value",
10246
+ "required": true,
10247
+ "hasDynamicHelp": false,
10248
+ "multiple": false,
10249
+ "type": "option"
10250
+ },
10251
10251
  "workspace": {
10252
10252
  "char": "w",
10253
10253
  "description": "Workspace ID (uses profile workspace if not provided)",
@@ -10260,7 +10260,7 @@
10260
10260
  },
10261
10261
  "hasDynamicHelp": false,
10262
10262
  "hiddenAliases": [],
10263
- "id": "tenant:env:list",
10263
+ "id": "tenant:env:set",
10264
10264
  "pluginAlias": "@xano/cli",
10265
10265
  "pluginName": "@xano/cli",
10266
10266
  "pluginType": "core",
@@ -10272,7 +10272,7 @@
10272
10272
  "commands",
10273
10273
  "tenant",
10274
10274
  "env",
10275
- "list",
10275
+ "set",
10276
10276
  "index.js"
10277
10277
  ]
10278
10278
  },
@@ -10605,13 +10605,13 @@
10605
10605
  "index.js"
10606
10606
  ]
10607
10607
  },
10608
- "tenant:workflow_test:list": {
10608
+ "tenant:unit_test:list": {
10609
10609
  "aliases": [],
10610
10610
  "args": {},
10611
- "description": "List workflow tests for a tenant",
10611
+ "description": "List all unit tests for a tenant",
10612
10612
  "examples": [
10613
- "$ xano tenant workflow-test list -t my-tenant\nWorkflow tests for tenant my-tenant:\n - my-test (ID: 1)\n",
10614
- "$ xano tenant workflow-test list -t my-tenant -w 5 -o json"
10613
+ "$ xano tenant unit-test list -t my-tenant\nUnit tests for tenant my-tenant:\n - my-test (ID: abc-123) [function: math]\n",
10614
+ "$ xano tenant unit-test list -t my-tenant -w 5 -o json"
10615
10615
  ],
10616
10616
  "flags": {
10617
10617
  "config": {
@@ -10652,6 +10652,19 @@
10652
10652
  "multiple": false,
10653
10653
  "type": "option"
10654
10654
  },
10655
+ "obj-type": {
10656
+ "description": "Filter by object type",
10657
+ "name": "obj-type",
10658
+ "required": false,
10659
+ "hasDynamicHelp": false,
10660
+ "multiple": false,
10661
+ "options": [
10662
+ "function",
10663
+ "query",
10664
+ "middleware"
10665
+ ],
10666
+ "type": "option"
10667
+ },
10655
10668
  "output": {
10656
10669
  "char": "o",
10657
10670
  "description": "Output format",
@@ -10687,7 +10700,7 @@
10687
10700
  },
10688
10701
  "hasDynamicHelp": false,
10689
10702
  "hiddenAliases": [],
10690
- "id": "tenant:workflow_test:list",
10703
+ "id": "tenant:unit_test:list",
10691
10704
  "pluginAlias": "@xano/cli",
10692
10705
  "pluginName": "@xano/cli",
10693
10706
  "pluginType": "core",
@@ -10698,24 +10711,24 @@
10698
10711
  "dist",
10699
10712
  "commands",
10700
10713
  "tenant",
10701
- "workflow_test",
10714
+ "unit_test",
10702
10715
  "list",
10703
10716
  "index.js"
10704
10717
  ]
10705
10718
  },
10706
- "tenant:workflow_test:run": {
10719
+ "tenant:unit_test:run": {
10707
10720
  "aliases": [],
10708
10721
  "args": {
10709
- "workflow_test_id": {
10710
- "description": "ID of the workflow test to run",
10711
- "name": "workflow_test_id",
10722
+ "unit_test_id": {
10723
+ "description": "ID of the unit test to run",
10724
+ "name": "unit_test_id",
10712
10725
  "required": true
10713
10726
  }
10714
10727
  },
10715
- "description": "Run a workflow test for a tenant",
10728
+ "description": "Run a unit test for a tenant",
10716
10729
  "examples": [
10717
- "$ xano tenant workflow-test run 42 -t my-tenant\nRunning workflow test 42...\nResult: PASS (0.25s)\n",
10718
- "$ xano tenant workflow-test run 42 -t my-tenant -o json"
10730
+ "$ xano tenant unit-test run abc-123 -t my-tenant\nRunning unit test abc-123...\nResult: PASS\n",
10731
+ "$ xano tenant unit-test run abc-123 -t my-tenant -o json"
10719
10732
  ],
10720
10733
  "flags": {
10721
10734
  "config": {
@@ -10782,7 +10795,7 @@
10782
10795
  },
10783
10796
  "hasDynamicHelp": false,
10784
10797
  "hiddenAliases": [],
10785
- "id": "tenant:workflow_test:run",
10798
+ "id": "tenant:unit_test:run",
10786
10799
  "pluginAlias": "@xano/cli",
10787
10800
  "pluginName": "@xano/cli",
10788
10801
  "pluginType": "core",
@@ -10793,18 +10806,18 @@
10793
10806
  "dist",
10794
10807
  "commands",
10795
10808
  "tenant",
10796
- "workflow_test",
10809
+ "unit_test",
10797
10810
  "run",
10798
10811
  "index.js"
10799
10812
  ]
10800
10813
  },
10801
- "tenant:workflow_test:run_all": {
10814
+ "tenant:unit_test:run_all": {
10802
10815
  "aliases": [],
10803
10816
  "args": {},
10804
- "description": "Run all workflow tests for a tenant",
10817
+ "description": "Run all unit tests for a tenant",
10805
10818
  "examples": [
10806
- "$ xano tenant workflow-test run-all -t my-tenant\nRunning 3 workflow tests...\n\nPASS my-test (0.25s)\nFAIL data-check (0.10s)\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
10807
- "$ xano tenant workflow-test run-all -t my-tenant -o json"
10819
+ "$ xano tenant unit-test run-all -t my-tenant\nRunning 5 unit tests...\n\nPASS my-test [function: math]\nFAIL data-validation [function: validate]\n Error: assertion failed\n\nResults: 4 passed, 1 failed\n",
10820
+ "$ xano tenant unit-test run-all -t my-tenant -o json"
10808
10821
  ],
10809
10822
  "flags": {
10810
10823
  "config": {
@@ -10845,6 +10858,19 @@
10845
10858
  "multiple": false,
10846
10859
  "type": "option"
10847
10860
  },
10861
+ "obj-type": {
10862
+ "description": "Filter by object type",
10863
+ "name": "obj-type",
10864
+ "required": false,
10865
+ "hasDynamicHelp": false,
10866
+ "multiple": false,
10867
+ "options": [
10868
+ "function",
10869
+ "query",
10870
+ "middleware"
10871
+ ],
10872
+ "type": "option"
10873
+ },
10848
10874
  "output": {
10849
10875
  "char": "o",
10850
10876
  "description": "Output format",
@@ -10880,7 +10906,7 @@
10880
10906
  },
10881
10907
  "hasDynamicHelp": false,
10882
10908
  "hiddenAliases": [],
10883
- "id": "tenant:workflow_test:run_all",
10909
+ "id": "tenant:unit_test:run_all",
10884
10910
  "pluginAlias": "@xano/cli",
10885
10911
  "pluginName": "@xano/cli",
10886
10912
  "pluginType": "core",
@@ -10891,18 +10917,18 @@
10891
10917
  "dist",
10892
10918
  "commands",
10893
10919
  "tenant",
10894
- "workflow_test",
10920
+ "unit_test",
10895
10921
  "run_all",
10896
10922
  "index.js"
10897
10923
  ]
10898
10924
  },
10899
- "tenant:unit_test:list": {
10925
+ "tenant:workflow_test:list": {
10900
10926
  "aliases": [],
10901
10927
  "args": {},
10902
- "description": "List all unit tests for a tenant",
10928
+ "description": "List workflow tests for a tenant",
10903
10929
  "examples": [
10904
- "$ xano tenant unit-test list -t my-tenant\nUnit tests for tenant my-tenant:\n - my-test (ID: abc-123) [function: math]\n",
10905
- "$ xano tenant unit-test list -t my-tenant -w 5 -o json"
10930
+ "$ xano tenant workflow-test list -t my-tenant\nWorkflow tests for tenant my-tenant:\n - my-test (ID: 1)\n",
10931
+ "$ xano tenant workflow-test list -t my-tenant -w 5 -o json"
10906
10932
  ],
10907
10933
  "flags": {
10908
10934
  "config": {
@@ -10943,19 +10969,6 @@
10943
10969
  "multiple": false,
10944
10970
  "type": "option"
10945
10971
  },
10946
- "obj-type": {
10947
- "description": "Filter by object type",
10948
- "name": "obj-type",
10949
- "required": false,
10950
- "hasDynamicHelp": false,
10951
- "multiple": false,
10952
- "options": [
10953
- "function",
10954
- "query",
10955
- "middleware"
10956
- ],
10957
- "type": "option"
10958
- },
10959
10972
  "output": {
10960
10973
  "char": "o",
10961
10974
  "description": "Output format",
@@ -10991,7 +11004,7 @@
10991
11004
  },
10992
11005
  "hasDynamicHelp": false,
10993
11006
  "hiddenAliases": [],
10994
- "id": "tenant:unit_test:list",
11007
+ "id": "tenant:workflow_test:list",
10995
11008
  "pluginAlias": "@xano/cli",
10996
11009
  "pluginName": "@xano/cli",
10997
11010
  "pluginType": "core",
@@ -11002,24 +11015,24 @@
11002
11015
  "dist",
11003
11016
  "commands",
11004
11017
  "tenant",
11005
- "unit_test",
11018
+ "workflow_test",
11006
11019
  "list",
11007
11020
  "index.js"
11008
11021
  ]
11009
11022
  },
11010
- "tenant:unit_test:run": {
11023
+ "tenant:workflow_test:run": {
11011
11024
  "aliases": [],
11012
11025
  "args": {
11013
- "unit_test_id": {
11014
- "description": "ID of the unit test to run",
11015
- "name": "unit_test_id",
11026
+ "workflow_test_id": {
11027
+ "description": "ID of the workflow test to run",
11028
+ "name": "workflow_test_id",
11016
11029
  "required": true
11017
11030
  }
11018
11031
  },
11019
- "description": "Run a unit test for a tenant",
11032
+ "description": "Run a workflow test for a tenant",
11020
11033
  "examples": [
11021
- "$ xano tenant unit-test run abc-123 -t my-tenant\nRunning unit test abc-123...\nResult: PASS\n",
11022
- "$ xano tenant unit-test run abc-123 -t my-tenant -o json"
11034
+ "$ xano tenant workflow-test run 42 -t my-tenant\nRunning workflow test 42...\nResult: PASS (0.25s)\n",
11035
+ "$ xano tenant workflow-test run 42 -t my-tenant -o json"
11023
11036
  ],
11024
11037
  "flags": {
11025
11038
  "config": {
@@ -11086,7 +11099,7 @@
11086
11099
  },
11087
11100
  "hasDynamicHelp": false,
11088
11101
  "hiddenAliases": [],
11089
- "id": "tenant:unit_test:run",
11102
+ "id": "tenant:workflow_test:run",
11090
11103
  "pluginAlias": "@xano/cli",
11091
11104
  "pluginName": "@xano/cli",
11092
11105
  "pluginType": "core",
@@ -11097,18 +11110,18 @@
11097
11110
  "dist",
11098
11111
  "commands",
11099
11112
  "tenant",
11100
- "unit_test",
11113
+ "workflow_test",
11101
11114
  "run",
11102
11115
  "index.js"
11103
11116
  ]
11104
11117
  },
11105
- "tenant:unit_test:run_all": {
11118
+ "tenant:workflow_test:run_all": {
11106
11119
  "aliases": [],
11107
11120
  "args": {},
11108
- "description": "Run all unit tests for a tenant",
11121
+ "description": "Run all workflow tests for a tenant",
11109
11122
  "examples": [
11110
- "$ xano tenant unit-test run-all -t my-tenant\nRunning 5 unit tests...\n\nPASS my-test [function: math]\nFAIL data-validation [function: validate]\n Error: assertion failed\n\nResults: 4 passed, 1 failed\n",
11111
- "$ xano tenant unit-test run-all -t my-tenant -o json"
11123
+ "$ xano tenant workflow-test run-all -t my-tenant\nRunning 3 workflow tests...\n\nPASS my-test (0.25s)\nFAIL data-check (0.10s)\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
11124
+ "$ xano tenant workflow-test run-all -t my-tenant -o json"
11112
11125
  ],
11113
11126
  "flags": {
11114
11127
  "config": {
@@ -11149,19 +11162,6 @@
11149
11162
  "multiple": false,
11150
11163
  "type": "option"
11151
11164
  },
11152
- "obj-type": {
11153
- "description": "Filter by object type",
11154
- "name": "obj-type",
11155
- "required": false,
11156
- "hasDynamicHelp": false,
11157
- "multiple": false,
11158
- "options": [
11159
- "function",
11160
- "query",
11161
- "middleware"
11162
- ],
11163
- "type": "option"
11164
- },
11165
11165
  "output": {
11166
11166
  "char": "o",
11167
11167
  "description": "Output format",
@@ -11197,7 +11197,7 @@
11197
11197
  },
11198
11198
  "hasDynamicHelp": false,
11199
11199
  "hiddenAliases": [],
11200
- "id": "tenant:unit_test:run_all",
11200
+ "id": "tenant:workflow_test:run_all",
11201
11201
  "pluginAlias": "@xano/cli",
11202
11202
  "pluginName": "@xano/cli",
11203
11203
  "pluginType": "core",
@@ -11208,7 +11208,7 @@
11208
11208
  "dist",
11209
11209
  "commands",
11210
11210
  "tenant",
11211
- "unit_test",
11211
+ "workflow_test",
11212
11212
  "run_all",
11213
11213
  "index.js"
11214
11214
  ]
@@ -11533,5 +11533,5 @@
11533
11533
  ]
11534
11534
  }
11535
11535
  },
11536
- "version": "1.0.3-beta.5"
11536
+ "version": "1.0.3-beta.6"
11537
11537
  }