@xano/cli 1.0.2-beta.0 → 1.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/dist/commands/branch/list/index.d.ts +8 -0
- package/dist/commands/branch/list/index.js +16 -1
- package/dist/commands/sandbox/push/index.d.ts +0 -2
- package/dist/commands/sandbox/push/index.js +2 -24
- package/dist/utils/multidoc-push.d.ts +21 -0
- package/dist/utils/multidoc-push.js +44 -0
- package/oclif.manifest.json +1457 -1470
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -120,20 +120,20 @@
|
|
|
120
120
|
"index.js"
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
|
-
"branch:
|
|
123
|
+
"branch:delete": {
|
|
124
124
|
"aliases": [],
|
|
125
125
|
"args": {
|
|
126
|
-
"
|
|
127
|
-
"description": "
|
|
128
|
-
"name": "
|
|
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": "
|
|
132
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
133
133
|
"examples": [
|
|
134
|
-
"$ xano branch
|
|
135
|
-
"$ xano branch
|
|
136
|
-
"$ xano branch
|
|
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
|
-
"
|
|
169
|
-
"char": "
|
|
170
|
-
"description": "
|
|
171
|
-
"name": "
|
|
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": "Skip confirmation prompt",
|
|
171
|
+
"name": "force",
|
|
181
172
|
"required": false,
|
|
182
|
-
"
|
|
183
|
-
"
|
|
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:
|
|
202
|
+
"id": "branch:delete",
|
|
223
203
|
"pluginAlias": "@xano/cli",
|
|
224
204
|
"pluginName": "@xano/cli",
|
|
225
205
|
"pluginType": "core",
|
|
@@ -230,7 +210,7 @@
|
|
|
230
210
|
"dist",
|
|
231
211
|
"commands",
|
|
232
212
|
"branch",
|
|
233
|
-
"
|
|
213
|
+
"delete",
|
|
234
214
|
"index.js"
|
|
235
215
|
]
|
|
236
216
|
},
|
|
@@ -347,6 +327,120 @@
|
|
|
347
327
|
"index.js"
|
|
348
328
|
]
|
|
349
329
|
},
|
|
330
|
+
"branch:create": {
|
|
331
|
+
"aliases": [],
|
|
332
|
+
"args": {
|
|
333
|
+
"label": {
|
|
334
|
+
"description": "Label for the new branch",
|
|
335
|
+
"name": "label",
|
|
336
|
+
"required": true
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
340
|
+
"examples": [
|
|
341
|
+
"$ xano branch create dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
342
|
+
"$ xano branch create feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
343
|
+
"$ 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"
|
|
344
|
+
],
|
|
345
|
+
"flags": {
|
|
346
|
+
"config": {
|
|
347
|
+
"char": "c",
|
|
348
|
+
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
349
|
+
"env": "XANO_CONFIG",
|
|
350
|
+
"name": "config",
|
|
351
|
+
"required": false,
|
|
352
|
+
"hasDynamicHelp": false,
|
|
353
|
+
"multiple": false,
|
|
354
|
+
"type": "option"
|
|
355
|
+
},
|
|
356
|
+
"profile": {
|
|
357
|
+
"char": "p",
|
|
358
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
359
|
+
"env": "XANO_PROFILE",
|
|
360
|
+
"name": "profile",
|
|
361
|
+
"required": false,
|
|
362
|
+
"hasDynamicHelp": false,
|
|
363
|
+
"multiple": false,
|
|
364
|
+
"type": "option"
|
|
365
|
+
},
|
|
366
|
+
"verbose": {
|
|
367
|
+
"char": "v",
|
|
368
|
+
"description": "Show detailed request/response information",
|
|
369
|
+
"env": "XANO_VERBOSE",
|
|
370
|
+
"name": "verbose",
|
|
371
|
+
"required": false,
|
|
372
|
+
"allowNo": false,
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
},
|
|
375
|
+
"color": {
|
|
376
|
+
"char": "c",
|
|
377
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
378
|
+
"name": "color",
|
|
379
|
+
"required": false,
|
|
380
|
+
"hasDynamicHelp": false,
|
|
381
|
+
"multiple": false,
|
|
382
|
+
"type": "option"
|
|
383
|
+
},
|
|
384
|
+
"description": {
|
|
385
|
+
"char": "d",
|
|
386
|
+
"description": "Description for the new branch",
|
|
387
|
+
"name": "description",
|
|
388
|
+
"required": false,
|
|
389
|
+
"hasDynamicHelp": false,
|
|
390
|
+
"multiple": false,
|
|
391
|
+
"type": "option"
|
|
392
|
+
},
|
|
393
|
+
"output": {
|
|
394
|
+
"char": "o",
|
|
395
|
+
"description": "Output format",
|
|
396
|
+
"name": "output",
|
|
397
|
+
"required": false,
|
|
398
|
+
"default": "summary",
|
|
399
|
+
"hasDynamicHelp": false,
|
|
400
|
+
"multiple": false,
|
|
401
|
+
"options": [
|
|
402
|
+
"summary",
|
|
403
|
+
"json"
|
|
404
|
+
],
|
|
405
|
+
"type": "option"
|
|
406
|
+
},
|
|
407
|
+
"source": {
|
|
408
|
+
"char": "s",
|
|
409
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
410
|
+
"name": "source",
|
|
411
|
+
"required": false,
|
|
412
|
+
"default": "v1",
|
|
413
|
+
"hasDynamicHelp": false,
|
|
414
|
+
"multiple": false,
|
|
415
|
+
"type": "option"
|
|
416
|
+
},
|
|
417
|
+
"workspace": {
|
|
418
|
+
"char": "w",
|
|
419
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
420
|
+
"name": "workspace",
|
|
421
|
+
"required": false,
|
|
422
|
+
"hasDynamicHelp": false,
|
|
423
|
+
"multiple": false,
|
|
424
|
+
"type": "option"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"hasDynamicHelp": false,
|
|
428
|
+
"hiddenAliases": [],
|
|
429
|
+
"id": "branch:create",
|
|
430
|
+
"pluginAlias": "@xano/cli",
|
|
431
|
+
"pluginName": "@xano/cli",
|
|
432
|
+
"pluginType": "core",
|
|
433
|
+
"strict": true,
|
|
434
|
+
"enableJsonFlag": false,
|
|
435
|
+
"isESM": true,
|
|
436
|
+
"relativePath": [
|
|
437
|
+
"dist",
|
|
438
|
+
"commands",
|
|
439
|
+
"branch",
|
|
440
|
+
"create",
|
|
441
|
+
"index.js"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
350
444
|
"branch:get": {
|
|
351
445
|
"aliases": [],
|
|
352
446
|
"args": {
|
|
@@ -433,20 +527,16 @@
|
|
|
433
527
|
"index.js"
|
|
434
528
|
]
|
|
435
529
|
},
|
|
436
|
-
"
|
|
530
|
+
"function:create": {
|
|
437
531
|
"aliases": [],
|
|
438
|
-
"args": {
|
|
439
|
-
|
|
440
|
-
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
441
|
-
"name": "branch_label",
|
|
442
|
-
"required": true
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
532
|
+
"args": {},
|
|
533
|
+
"description": "Create a new function in a workspace",
|
|
446
534
|
"examples": [
|
|
447
|
-
"$ xano
|
|
448
|
-
"$ xano
|
|
449
|
-
"$ xano
|
|
535
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
536
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
537
|
+
"$ 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",
|
|
538
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
539
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
450
540
|
],
|
|
451
541
|
"flags": {
|
|
452
542
|
"config": {
|
|
@@ -478,14 +568,29 @@
|
|
|
478
568
|
"allowNo": false,
|
|
479
569
|
"type": "boolean"
|
|
480
570
|
},
|
|
481
|
-
"
|
|
482
|
-
"char": "
|
|
483
|
-
"
|
|
484
|
-
|
|
571
|
+
"edit": {
|
|
572
|
+
"char": "e",
|
|
573
|
+
"dependsOn": [
|
|
574
|
+
"file"
|
|
575
|
+
],
|
|
576
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
577
|
+
"name": "edit",
|
|
485
578
|
"required": false,
|
|
486
579
|
"allowNo": false,
|
|
487
580
|
"type": "boolean"
|
|
488
581
|
},
|
|
582
|
+
"file": {
|
|
583
|
+
"char": "f",
|
|
584
|
+
"description": "Path to file containing XanoScript code",
|
|
585
|
+
"exclusive": [
|
|
586
|
+
"stdin"
|
|
587
|
+
],
|
|
588
|
+
"name": "file",
|
|
589
|
+
"required": false,
|
|
590
|
+
"hasDynamicHelp": false,
|
|
591
|
+
"multiple": false,
|
|
592
|
+
"type": "option"
|
|
593
|
+
},
|
|
489
594
|
"output": {
|
|
490
595
|
"char": "o",
|
|
491
596
|
"description": "Output format",
|
|
@@ -500,9 +605,20 @@
|
|
|
500
605
|
],
|
|
501
606
|
"type": "option"
|
|
502
607
|
},
|
|
608
|
+
"stdin": {
|
|
609
|
+
"char": "s",
|
|
610
|
+
"description": "Read XanoScript code from stdin",
|
|
611
|
+
"exclusive": [
|
|
612
|
+
"file"
|
|
613
|
+
],
|
|
614
|
+
"name": "stdin",
|
|
615
|
+
"required": false,
|
|
616
|
+
"allowNo": false,
|
|
617
|
+
"type": "boolean"
|
|
618
|
+
},
|
|
503
619
|
"workspace": {
|
|
504
620
|
"char": "w",
|
|
505
|
-
"description": "Workspace ID (
|
|
621
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
506
622
|
"name": "workspace",
|
|
507
623
|
"required": false,
|
|
508
624
|
"hasDynamicHelp": false,
|
|
@@ -512,7 +628,7 @@
|
|
|
512
628
|
},
|
|
513
629
|
"hasDynamicHelp": false,
|
|
514
630
|
"hiddenAliases": [],
|
|
515
|
-
"id": "
|
|
631
|
+
"id": "function:create",
|
|
516
632
|
"pluginAlias": "@xano/cli",
|
|
517
633
|
"pluginName": "@xano/cli",
|
|
518
634
|
"pluginType": "core",
|
|
@@ -522,8 +638,8 @@
|
|
|
522
638
|
"relativePath": [
|
|
523
639
|
"dist",
|
|
524
640
|
"commands",
|
|
525
|
-
"
|
|
526
|
-
"
|
|
641
|
+
"function",
|
|
642
|
+
"create",
|
|
527
643
|
"index.js"
|
|
528
644
|
]
|
|
529
645
|
},
|
|
@@ -534,6 +650,7 @@
|
|
|
534
650
|
"examples": [
|
|
535
651
|
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
536
652
|
"$ xano branch list -w 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
653
|
+
"$ xano branch list --backups\nAvailable branches:\n - v1 (live)\n - dev\n - backup_2024_01_15 (backup)\n",
|
|
537
654
|
"$ 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"
|
|
538
655
|
],
|
|
539
656
|
"flags": {
|
|
@@ -566,6 +683,13 @@
|
|
|
566
683
|
"allowNo": false,
|
|
567
684
|
"type": "boolean"
|
|
568
685
|
},
|
|
686
|
+
"backups": {
|
|
687
|
+
"description": "Include backup branches in the output",
|
|
688
|
+
"name": "backups",
|
|
689
|
+
"required": false,
|
|
690
|
+
"allowNo": false,
|
|
691
|
+
"type": "boolean"
|
|
692
|
+
},
|
|
569
693
|
"output": {
|
|
570
694
|
"char": "o",
|
|
571
695
|
"description": "Output format",
|
|
@@ -830,139 +954,23 @@
|
|
|
830
954
|
"index.js"
|
|
831
955
|
]
|
|
832
956
|
},
|
|
833
|
-
"function:
|
|
957
|
+
"function:get": {
|
|
834
958
|
"aliases": [],
|
|
835
|
-
"args": {
|
|
836
|
-
|
|
959
|
+
"args": {
|
|
960
|
+
"function_id": {
|
|
961
|
+
"description": "Function ID",
|
|
962
|
+
"name": "function_id",
|
|
963
|
+
"required": false
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"description": "Get a specific function from a workspace",
|
|
837
967
|
"examples": [
|
|
838
|
-
"$ xano function:
|
|
839
|
-
"$ xano function:
|
|
840
|
-
"$ xano function:
|
|
841
|
-
"$
|
|
842
|
-
"$ xano function:
|
|
843
|
-
|
|
844
|
-
"flags": {
|
|
845
|
-
"config": {
|
|
846
|
-
"char": "c",
|
|
847
|
-
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
848
|
-
"env": "XANO_CONFIG",
|
|
849
|
-
"name": "config",
|
|
850
|
-
"required": false,
|
|
851
|
-
"hasDynamicHelp": false,
|
|
852
|
-
"multiple": false,
|
|
853
|
-
"type": "option"
|
|
854
|
-
},
|
|
855
|
-
"profile": {
|
|
856
|
-
"char": "p",
|
|
857
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
858
|
-
"env": "XANO_PROFILE",
|
|
859
|
-
"name": "profile",
|
|
860
|
-
"required": false,
|
|
861
|
-
"hasDynamicHelp": false,
|
|
862
|
-
"multiple": false,
|
|
863
|
-
"type": "option"
|
|
864
|
-
},
|
|
865
|
-
"verbose": {
|
|
866
|
-
"char": "v",
|
|
867
|
-
"description": "Show detailed request/response information",
|
|
868
|
-
"env": "XANO_VERBOSE",
|
|
869
|
-
"name": "verbose",
|
|
870
|
-
"required": false,
|
|
871
|
-
"allowNo": false,
|
|
872
|
-
"type": "boolean"
|
|
873
|
-
},
|
|
874
|
-
"edit": {
|
|
875
|
-
"char": "e",
|
|
876
|
-
"dependsOn": [
|
|
877
|
-
"file"
|
|
878
|
-
],
|
|
879
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
880
|
-
"name": "edit",
|
|
881
|
-
"required": false,
|
|
882
|
-
"allowNo": false,
|
|
883
|
-
"type": "boolean"
|
|
884
|
-
},
|
|
885
|
-
"file": {
|
|
886
|
-
"char": "f",
|
|
887
|
-
"description": "Path to file containing XanoScript code",
|
|
888
|
-
"exclusive": [
|
|
889
|
-
"stdin"
|
|
890
|
-
],
|
|
891
|
-
"name": "file",
|
|
892
|
-
"required": false,
|
|
893
|
-
"hasDynamicHelp": false,
|
|
894
|
-
"multiple": false,
|
|
895
|
-
"type": "option"
|
|
896
|
-
},
|
|
897
|
-
"output": {
|
|
898
|
-
"char": "o",
|
|
899
|
-
"description": "Output format",
|
|
900
|
-
"name": "output",
|
|
901
|
-
"required": false,
|
|
902
|
-
"default": "summary",
|
|
903
|
-
"hasDynamicHelp": false,
|
|
904
|
-
"multiple": false,
|
|
905
|
-
"options": [
|
|
906
|
-
"summary",
|
|
907
|
-
"json"
|
|
908
|
-
],
|
|
909
|
-
"type": "option"
|
|
910
|
-
},
|
|
911
|
-
"stdin": {
|
|
912
|
-
"char": "s",
|
|
913
|
-
"description": "Read XanoScript code from stdin",
|
|
914
|
-
"exclusive": [
|
|
915
|
-
"file"
|
|
916
|
-
],
|
|
917
|
-
"name": "stdin",
|
|
918
|
-
"required": false,
|
|
919
|
-
"allowNo": false,
|
|
920
|
-
"type": "boolean"
|
|
921
|
-
},
|
|
922
|
-
"workspace": {
|
|
923
|
-
"char": "w",
|
|
924
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
925
|
-
"name": "workspace",
|
|
926
|
-
"required": false,
|
|
927
|
-
"hasDynamicHelp": false,
|
|
928
|
-
"multiple": false,
|
|
929
|
-
"type": "option"
|
|
930
|
-
}
|
|
931
|
-
},
|
|
932
|
-
"hasDynamicHelp": false,
|
|
933
|
-
"hiddenAliases": [],
|
|
934
|
-
"id": "function:create",
|
|
935
|
-
"pluginAlias": "@xano/cli",
|
|
936
|
-
"pluginName": "@xano/cli",
|
|
937
|
-
"pluginType": "core",
|
|
938
|
-
"strict": true,
|
|
939
|
-
"enableJsonFlag": false,
|
|
940
|
-
"isESM": true,
|
|
941
|
-
"relativePath": [
|
|
942
|
-
"dist",
|
|
943
|
-
"commands",
|
|
944
|
-
"function",
|
|
945
|
-
"create",
|
|
946
|
-
"index.js"
|
|
947
|
-
]
|
|
948
|
-
},
|
|
949
|
-
"function:get": {
|
|
950
|
-
"aliases": [],
|
|
951
|
-
"args": {
|
|
952
|
-
"function_id": {
|
|
953
|
-
"description": "Function ID",
|
|
954
|
-
"name": "function_id",
|
|
955
|
-
"required": false
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
|
-
"description": "Get a specific function from a workspace",
|
|
959
|
-
"examples": [
|
|
960
|
-
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
961
|
-
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
962
|
-
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
963
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
964
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
965
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
968
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
969
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
970
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
971
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
972
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
973
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
966
974
|
],
|
|
967
975
|
"flags": {
|
|
968
976
|
"config": {
|
|
@@ -3028,14 +3036,13 @@
|
|
|
3028
3036
|
"index.js"
|
|
3029
3037
|
]
|
|
3030
3038
|
},
|
|
3031
|
-
"sandbox:
|
|
3039
|
+
"sandbox:get": {
|
|
3032
3040
|
"aliases": [],
|
|
3033
3041
|
"args": {},
|
|
3034
|
-
"description": "
|
|
3042
|
+
"description": "Get your sandbox environment (creates one if it does not exist)",
|
|
3035
3043
|
"examples": [
|
|
3036
|
-
"$ xano sandbox
|
|
3037
|
-
"$ xano sandbox
|
|
3038
|
-
"$ xano sandbox review -o json"
|
|
3044
|
+
"$ xano sandbox get\nSandbox Environment: (tc24-abcd-x1y2)\n State: ok\n License: tier1\n",
|
|
3045
|
+
"$ xano sandbox get -o json"
|
|
3039
3046
|
],
|
|
3040
3047
|
"flags": {
|
|
3041
3048
|
"config": {
|
|
@@ -3080,20 +3087,11 @@
|
|
|
3080
3087
|
"json"
|
|
3081
3088
|
],
|
|
3082
3089
|
"type": "option"
|
|
3083
|
-
},
|
|
3084
|
-
"url-only": {
|
|
3085
|
-
"char": "u",
|
|
3086
|
-
"description": "Print the URL without opening the browser",
|
|
3087
|
-
"name": "url-only",
|
|
3088
|
-
"required": false,
|
|
3089
|
-
"allowNo": false,
|
|
3090
|
-
"type": "boolean"
|
|
3091
3090
|
}
|
|
3092
3091
|
},
|
|
3093
3092
|
"hasDynamicHelp": false,
|
|
3094
|
-
"hidden": true,
|
|
3095
3093
|
"hiddenAliases": [],
|
|
3096
|
-
"id": "sandbox:
|
|
3094
|
+
"id": "sandbox:get",
|
|
3097
3095
|
"pluginAlias": "@xano/cli",
|
|
3098
3096
|
"pluginName": "@xano/cli",
|
|
3099
3097
|
"pluginType": "core",
|
|
@@ -3104,17 +3102,18 @@
|
|
|
3104
3102
|
"dist",
|
|
3105
3103
|
"commands",
|
|
3106
3104
|
"sandbox",
|
|
3107
|
-
"
|
|
3105
|
+
"get",
|
|
3108
3106
|
"index.js"
|
|
3109
3107
|
]
|
|
3110
3108
|
},
|
|
3111
|
-
"sandbox:
|
|
3109
|
+
"sandbox:impersonate": {
|
|
3112
3110
|
"aliases": [],
|
|
3113
3111
|
"args": {},
|
|
3114
|
-
"description": "
|
|
3112
|
+
"description": "Alias for \"sandbox review\"",
|
|
3115
3113
|
"examples": [
|
|
3116
|
-
"$ xano sandbox
|
|
3117
|
-
"$ xano sandbox
|
|
3114
|
+
"$ xano sandbox review\nOpening browser...\nReview session started!\n",
|
|
3115
|
+
"$ xano sandbox review -u",
|
|
3116
|
+
"$ xano sandbox review -o json"
|
|
3118
3117
|
],
|
|
3119
3118
|
"flags": {
|
|
3120
3119
|
"config": {
|
|
@@ -3159,11 +3158,20 @@
|
|
|
3159
3158
|
"json"
|
|
3160
3159
|
],
|
|
3161
3160
|
"type": "option"
|
|
3161
|
+
},
|
|
3162
|
+
"url-only": {
|
|
3163
|
+
"char": "u",
|
|
3164
|
+
"description": "Print the URL without opening the browser",
|
|
3165
|
+
"name": "url-only",
|
|
3166
|
+
"required": false,
|
|
3167
|
+
"allowNo": false,
|
|
3168
|
+
"type": "boolean"
|
|
3162
3169
|
}
|
|
3163
3170
|
},
|
|
3164
3171
|
"hasDynamicHelp": false,
|
|
3172
|
+
"hidden": true,
|
|
3165
3173
|
"hiddenAliases": [],
|
|
3166
|
-
"id": "sandbox:
|
|
3174
|
+
"id": "sandbox:impersonate",
|
|
3167
3175
|
"pluginAlias": "@xano/cli",
|
|
3168
3176
|
"pluginName": "@xano/cli",
|
|
3169
3177
|
"pluginType": "core",
|
|
@@ -3174,7 +3182,7 @@
|
|
|
3174
3182
|
"dist",
|
|
3175
3183
|
"commands",
|
|
3176
3184
|
"sandbox",
|
|
3177
|
-
"
|
|
3185
|
+
"impersonate",
|
|
3178
3186
|
"index.js"
|
|
3179
3187
|
]
|
|
3180
3188
|
},
|
|
@@ -3266,13 +3274,20 @@
|
|
|
3266
3274
|
"index.js"
|
|
3267
3275
|
]
|
|
3268
3276
|
},
|
|
3269
|
-
"sandbox:
|
|
3277
|
+
"sandbox:push": {
|
|
3270
3278
|
"aliases": [],
|
|
3271
3279
|
"args": {},
|
|
3272
|
-
"description": "
|
|
3280
|
+
"description": "Push local documents to your sandbox environment via multidoc import. By default, only changed files are pushed (partial mode). Use --sync to push all files. Shows a preview of changes before pushing unless --force is specified. Use --dry-run to preview only. Include/exclude glob filters are intentionally not supported on sandbox push — partial pushes can hide deletions during review and lead to data loss when promoted to the workspace. Large pushes against a sandbox loaded with a different workspace will prompt for confirmation; run `xano sandbox reset` first to start clean.",
|
|
3273
3281
|
"examples": [
|
|
3274
|
-
"$ xano sandbox
|
|
3275
|
-
"$ xano sandbox
|
|
3282
|
+
"$ xano sandbox push\nPush from current directory (default partial mode)\n",
|
|
3283
|
+
"$ xano sandbox push -d ./my-workspace\nPush from a specific directory\n",
|
|
3284
|
+
"$ xano sandbox push --sync\nPush all files to the sandbox\n",
|
|
3285
|
+
"$ xano sandbox push --sync --delete\nPush all files and delete remote objects not included\n",
|
|
3286
|
+
"$ xano sandbox push --dry-run\nPreview changes without pushing\n",
|
|
3287
|
+
"$ xano sandbox push --force\nSkip preview and push immediately\n",
|
|
3288
|
+
"$ xano sandbox push --records --env",
|
|
3289
|
+
"$ xano sandbox push --truncate",
|
|
3290
|
+
"$ xano sandbox push --review\nPush and open sandbox review in the browser\n"
|
|
3276
3291
|
],
|
|
3277
3292
|
"flags": {
|
|
3278
3293
|
"config": {
|
|
@@ -3304,89 +3319,82 @@
|
|
|
3304
3319
|
"allowNo": false,
|
|
3305
3320
|
"type": "boolean"
|
|
3306
3321
|
},
|
|
3307
|
-
"
|
|
3308
|
-
"char": "
|
|
3309
|
-
"description": "
|
|
3310
|
-
"name": "
|
|
3311
|
-
"required": false,
|
|
3312
|
-
"allowNo": false,
|
|
3313
|
-
"type": "boolean"
|
|
3314
|
-
}
|
|
3315
|
-
},
|
|
3316
|
-
"hasDynamicHelp": false,
|
|
3317
|
-
"hiddenAliases": [],
|
|
3318
|
-
"id": "sandbox:reset",
|
|
3319
|
-
"pluginAlias": "@xano/cli",
|
|
3320
|
-
"pluginName": "@xano/cli",
|
|
3321
|
-
"pluginType": "core",
|
|
3322
|
-
"strict": true,
|
|
3323
|
-
"enableJsonFlag": false,
|
|
3324
|
-
"isESM": true,
|
|
3325
|
-
"relativePath": [
|
|
3326
|
-
"dist",
|
|
3327
|
-
"commands",
|
|
3328
|
-
"sandbox",
|
|
3329
|
-
"reset",
|
|
3330
|
-
"index.js"
|
|
3331
|
-
]
|
|
3332
|
-
},
|
|
3333
|
-
"sandbox:review": {
|
|
3334
|
-
"aliases": [],
|
|
3335
|
-
"args": {},
|
|
3336
|
-
"description": "Open your sandbox environment in the browser to review and promote changes",
|
|
3337
|
-
"examples": [
|
|
3338
|
-
"$ xano sandbox review\nOpening browser...\nReview session started!\n",
|
|
3339
|
-
"$ xano sandbox review -u",
|
|
3340
|
-
"$ xano sandbox review -o json"
|
|
3341
|
-
],
|
|
3342
|
-
"flags": {
|
|
3343
|
-
"config": {
|
|
3344
|
-
"char": "c",
|
|
3345
|
-
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
3346
|
-
"env": "XANO_CONFIG",
|
|
3347
|
-
"name": "config",
|
|
3322
|
+
"directory": {
|
|
3323
|
+
"char": "d",
|
|
3324
|
+
"description": "Directory containing documents to push (defaults to current directory)",
|
|
3325
|
+
"name": "directory",
|
|
3348
3326
|
"required": false,
|
|
3327
|
+
"default": ".",
|
|
3349
3328
|
"hasDynamicHelp": false,
|
|
3350
3329
|
"multiple": false,
|
|
3351
3330
|
"type": "option"
|
|
3352
3331
|
},
|
|
3353
|
-
"
|
|
3354
|
-
"
|
|
3355
|
-
"
|
|
3356
|
-
"env": "XANO_PROFILE",
|
|
3357
|
-
"name": "profile",
|
|
3332
|
+
"delete": {
|
|
3333
|
+
"description": "Delete sandbox objects not included in the push (requires --sync)",
|
|
3334
|
+
"name": "delete",
|
|
3358
3335
|
"required": false,
|
|
3359
|
-
"
|
|
3360
|
-
"
|
|
3361
|
-
"type": "option"
|
|
3336
|
+
"allowNo": false,
|
|
3337
|
+
"type": "boolean"
|
|
3362
3338
|
},
|
|
3363
|
-
"
|
|
3364
|
-
"
|
|
3365
|
-
"
|
|
3366
|
-
"env": "XANO_VERBOSE",
|
|
3367
|
-
"name": "verbose",
|
|
3339
|
+
"dry-run": {
|
|
3340
|
+
"description": "Show preview of changes without pushing (exit after preview)",
|
|
3341
|
+
"name": "dry-run",
|
|
3368
3342
|
"required": false,
|
|
3369
3343
|
"allowNo": false,
|
|
3370
3344
|
"type": "boolean"
|
|
3371
3345
|
},
|
|
3372
|
-
"
|
|
3373
|
-
"
|
|
3374
|
-
"
|
|
3375
|
-
"name": "output",
|
|
3346
|
+
"env": {
|
|
3347
|
+
"description": "Include environment variables in import",
|
|
3348
|
+
"name": "env",
|
|
3376
3349
|
"required": false,
|
|
3377
|
-
"
|
|
3378
|
-
"
|
|
3379
|
-
"multiple": false,
|
|
3380
|
-
"options": [
|
|
3381
|
-
"summary",
|
|
3382
|
-
"json"
|
|
3383
|
-
],
|
|
3384
|
-
"type": "option"
|
|
3350
|
+
"allowNo": false,
|
|
3351
|
+
"type": "boolean"
|
|
3385
3352
|
},
|
|
3386
|
-
"
|
|
3387
|
-
"
|
|
3388
|
-
"
|
|
3389
|
-
"
|
|
3353
|
+
"force": {
|
|
3354
|
+
"description": "Skip preview and confirmation prompt (for CI/CD pipelines)",
|
|
3355
|
+
"name": "force",
|
|
3356
|
+
"required": false,
|
|
3357
|
+
"allowNo": false,
|
|
3358
|
+
"type": "boolean"
|
|
3359
|
+
},
|
|
3360
|
+
"guids": {
|
|
3361
|
+
"description": "Write server-assigned GUIDs back to local files (use --no-guids to skip)",
|
|
3362
|
+
"name": "guids",
|
|
3363
|
+
"required": false,
|
|
3364
|
+
"allowNo": true,
|
|
3365
|
+
"type": "boolean"
|
|
3366
|
+
},
|
|
3367
|
+
"records": {
|
|
3368
|
+
"description": "Include records in import",
|
|
3369
|
+
"name": "records",
|
|
3370
|
+
"required": false,
|
|
3371
|
+
"allowNo": false,
|
|
3372
|
+
"type": "boolean"
|
|
3373
|
+
},
|
|
3374
|
+
"review": {
|
|
3375
|
+
"description": "Open sandbox review in the browser after pushing",
|
|
3376
|
+
"name": "review",
|
|
3377
|
+
"required": false,
|
|
3378
|
+
"allowNo": false,
|
|
3379
|
+
"type": "boolean"
|
|
3380
|
+
},
|
|
3381
|
+
"sync": {
|
|
3382
|
+
"description": "Full push — send all files, not just changed ones. Required for --delete.",
|
|
3383
|
+
"name": "sync",
|
|
3384
|
+
"required": false,
|
|
3385
|
+
"allowNo": false,
|
|
3386
|
+
"type": "boolean"
|
|
3387
|
+
},
|
|
3388
|
+
"transaction": {
|
|
3389
|
+
"description": "Wrap import in a database transaction (use --no-transaction for debugging purposes)",
|
|
3390
|
+
"name": "transaction",
|
|
3391
|
+
"required": false,
|
|
3392
|
+
"allowNo": true,
|
|
3393
|
+
"type": "boolean"
|
|
3394
|
+
},
|
|
3395
|
+
"truncate": {
|
|
3396
|
+
"description": "Truncate all table records before importing",
|
|
3397
|
+
"name": "truncate",
|
|
3390
3398
|
"required": false,
|
|
3391
3399
|
"allowNo": false,
|
|
3392
3400
|
"type": "boolean"
|
|
@@ -3394,7 +3402,7 @@
|
|
|
3394
3402
|
},
|
|
3395
3403
|
"hasDynamicHelp": false,
|
|
3396
3404
|
"hiddenAliases": [],
|
|
3397
|
-
"id": "sandbox:
|
|
3405
|
+
"id": "sandbox:push",
|
|
3398
3406
|
"pluginAlias": "@xano/cli",
|
|
3399
3407
|
"pluginName": "@xano/cli",
|
|
3400
3408
|
"pluginType": "core",
|
|
@@ -3405,27 +3413,17 @@
|
|
|
3405
3413
|
"dist",
|
|
3406
3414
|
"commands",
|
|
3407
3415
|
"sandbox",
|
|
3408
|
-
"
|
|
3416
|
+
"push",
|
|
3409
3417
|
"index.js"
|
|
3410
3418
|
]
|
|
3411
3419
|
},
|
|
3412
|
-
"sandbox:
|
|
3420
|
+
"sandbox:reset": {
|
|
3413
3421
|
"aliases": [],
|
|
3414
3422
|
"args": {},
|
|
3415
|
-
"description": "
|
|
3423
|
+
"description": "Reset your sandbox environment (clears all workspace data and drafts)",
|
|
3416
3424
|
"examples": [
|
|
3417
|
-
"$ xano sandbox
|
|
3418
|
-
"$ xano sandbox
|
|
3419
|
-
"$ xano sandbox push --sync\nPush all files to the sandbox\n",
|
|
3420
|
-
"$ xano sandbox push --sync --delete\nPush all files and delete remote objects not included\n",
|
|
3421
|
-
"$ xano sandbox push --dry-run\nPreview changes without pushing\n",
|
|
3422
|
-
"$ xano sandbox push --force\nSkip preview and push immediately\n",
|
|
3423
|
-
"$ xano sandbox push --records --env",
|
|
3424
|
-
"$ xano sandbox push --truncate",
|
|
3425
|
-
"$ xano sandbox push -i \"**/func*\"\nPush only files matching the glob pattern\n",
|
|
3426
|
-
"$ xano sandbox push -i \"function/*\" -i \"table/*\"\nPush files matching multiple patterns\n",
|
|
3427
|
-
"$ xano sandbox push -e \"table/*\"\nPush all files except tables\n",
|
|
3428
|
-
"$ xano sandbox push --review\nPush and open sandbox review in the browser\n"
|
|
3425
|
+
"$ xano sandbox reset\nAre you sure you want to reset your sandbox environment? All workspace data and drafts will be cleared. (y/N) y\nSandbox environment has been reset.\n",
|
|
3426
|
+
"$ xano sandbox reset --force"
|
|
3429
3427
|
],
|
|
3430
3428
|
"flags": {
|
|
3431
3429
|
"config": {
|
|
@@ -3457,108 +3455,18 @@
|
|
|
3457
3455
|
"allowNo": false,
|
|
3458
3456
|
"type": "boolean"
|
|
3459
3457
|
},
|
|
3460
|
-
"directory": {
|
|
3461
|
-
"char": "d",
|
|
3462
|
-
"description": "Directory containing documents to push (defaults to current directory)",
|
|
3463
|
-
"name": "directory",
|
|
3464
|
-
"required": false,
|
|
3465
|
-
"default": ".",
|
|
3466
|
-
"hasDynamicHelp": false,
|
|
3467
|
-
"multiple": false,
|
|
3468
|
-
"type": "option"
|
|
3469
|
-
},
|
|
3470
|
-
"delete": {
|
|
3471
|
-
"description": "Delete sandbox objects not included in the push (requires --sync)",
|
|
3472
|
-
"name": "delete",
|
|
3473
|
-
"required": false,
|
|
3474
|
-
"allowNo": false,
|
|
3475
|
-
"type": "boolean"
|
|
3476
|
-
},
|
|
3477
|
-
"dry-run": {
|
|
3478
|
-
"description": "Show preview of changes without pushing (exit after preview)",
|
|
3479
|
-
"name": "dry-run",
|
|
3480
|
-
"required": false,
|
|
3481
|
-
"allowNo": false,
|
|
3482
|
-
"type": "boolean"
|
|
3483
|
-
},
|
|
3484
|
-
"env": {
|
|
3485
|
-
"description": "Include environment variables in import",
|
|
3486
|
-
"name": "env",
|
|
3487
|
-
"required": false,
|
|
3488
|
-
"allowNo": false,
|
|
3489
|
-
"type": "boolean"
|
|
3490
|
-
},
|
|
3491
|
-
"exclude": {
|
|
3492
|
-
"char": "e",
|
|
3493
|
-
"description": "Glob pattern to exclude files (e.g. \"table/*\", \"**/test*\"). Matched against relative paths from the push directory.",
|
|
3494
|
-
"name": "exclude",
|
|
3495
|
-
"required": false,
|
|
3496
|
-
"hasDynamicHelp": false,
|
|
3497
|
-
"multiple": true,
|
|
3498
|
-
"type": "option"
|
|
3499
|
-
},
|
|
3500
3458
|
"force": {
|
|
3501
|
-
"
|
|
3459
|
+
"char": "f",
|
|
3460
|
+
"description": "Skip confirmation prompt",
|
|
3502
3461
|
"name": "force",
|
|
3503
3462
|
"required": false,
|
|
3504
3463
|
"allowNo": false,
|
|
3505
3464
|
"type": "boolean"
|
|
3506
|
-
},
|
|
3507
|
-
"guids": {
|
|
3508
|
-
"description": "Write server-assigned GUIDs back to local files (use --no-guids to skip)",
|
|
3509
|
-
"name": "guids",
|
|
3510
|
-
"required": false,
|
|
3511
|
-
"allowNo": true,
|
|
3512
|
-
"type": "boolean"
|
|
3513
|
-
},
|
|
3514
|
-
"include": {
|
|
3515
|
-
"char": "i",
|
|
3516
|
-
"description": "Glob pattern to include files (e.g. \"**/func*\", \"table/*.xs\"). Matched against relative paths from the push directory.",
|
|
3517
|
-
"name": "include",
|
|
3518
|
-
"required": false,
|
|
3519
|
-
"hasDynamicHelp": false,
|
|
3520
|
-
"multiple": true,
|
|
3521
|
-
"type": "option"
|
|
3522
|
-
},
|
|
3523
|
-
"records": {
|
|
3524
|
-
"description": "Include records in import",
|
|
3525
|
-
"name": "records",
|
|
3526
|
-
"required": false,
|
|
3527
|
-
"allowNo": false,
|
|
3528
|
-
"type": "boolean"
|
|
3529
|
-
},
|
|
3530
|
-
"review": {
|
|
3531
|
-
"description": "Open sandbox review in the browser after pushing",
|
|
3532
|
-
"name": "review",
|
|
3533
|
-
"required": false,
|
|
3534
|
-
"allowNo": false,
|
|
3535
|
-
"type": "boolean"
|
|
3536
|
-
},
|
|
3537
|
-
"sync": {
|
|
3538
|
-
"description": "Full push — send all files, not just changed ones. Required for --delete.",
|
|
3539
|
-
"name": "sync",
|
|
3540
|
-
"required": false,
|
|
3541
|
-
"allowNo": false,
|
|
3542
|
-
"type": "boolean"
|
|
3543
|
-
},
|
|
3544
|
-
"transaction": {
|
|
3545
|
-
"description": "Wrap import in a database transaction (use --no-transaction for debugging purposes)",
|
|
3546
|
-
"name": "transaction",
|
|
3547
|
-
"required": false,
|
|
3548
|
-
"allowNo": true,
|
|
3549
|
-
"type": "boolean"
|
|
3550
|
-
},
|
|
3551
|
-
"truncate": {
|
|
3552
|
-
"description": "Truncate all table records before importing",
|
|
3553
|
-
"name": "truncate",
|
|
3554
|
-
"required": false,
|
|
3555
|
-
"allowNo": false,
|
|
3556
|
-
"type": "boolean"
|
|
3557
3465
|
}
|
|
3558
3466
|
},
|
|
3559
3467
|
"hasDynamicHelp": false,
|
|
3560
3468
|
"hiddenAliases": [],
|
|
3561
|
-
"id": "sandbox:
|
|
3469
|
+
"id": "sandbox:reset",
|
|
3562
3470
|
"pluginAlias": "@xano/cli",
|
|
3563
3471
|
"pluginName": "@xano/cli",
|
|
3564
3472
|
"pluginType": "core",
|
|
@@ -3569,19 +3477,18 @@
|
|
|
3569
3477
|
"dist",
|
|
3570
3478
|
"commands",
|
|
3571
3479
|
"sandbox",
|
|
3572
|
-
"
|
|
3480
|
+
"reset",
|
|
3573
3481
|
"index.js"
|
|
3574
3482
|
]
|
|
3575
3483
|
},
|
|
3576
|
-
"
|
|
3484
|
+
"sandbox:review": {
|
|
3577
3485
|
"aliases": [],
|
|
3578
3486
|
"args": {},
|
|
3579
|
-
"description": "
|
|
3487
|
+
"description": "Open your sandbox environment in the browser to review and promote changes",
|
|
3580
3488
|
"examples": [
|
|
3581
|
-
"$ xano
|
|
3582
|
-
"$ xano
|
|
3583
|
-
"$ xano
|
|
3584
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
3489
|
+
"$ xano sandbox review\nOpening browser...\nReview session started!\n",
|
|
3490
|
+
"$ xano sandbox review -u",
|
|
3491
|
+
"$ xano sandbox review -o json"
|
|
3585
3492
|
],
|
|
3586
3493
|
"flags": {
|
|
3587
3494
|
"config": {
|
|
@@ -3627,37 +3534,18 @@
|
|
|
3627
3534
|
],
|
|
3628
3535
|
"type": "option"
|
|
3629
3536
|
},
|
|
3630
|
-
"
|
|
3631
|
-
"
|
|
3632
|
-
"
|
|
3633
|
-
"
|
|
3634
|
-
"default": 1,
|
|
3635
|
-
"hasDynamicHelp": false,
|
|
3636
|
-
"multiple": false,
|
|
3637
|
-
"type": "option"
|
|
3638
|
-
},
|
|
3639
|
-
"per_page": {
|
|
3640
|
-
"description": "Number of results per page",
|
|
3641
|
-
"name": "per_page",
|
|
3642
|
-
"required": false,
|
|
3643
|
-
"default": 50,
|
|
3644
|
-
"hasDynamicHelp": false,
|
|
3645
|
-
"multiple": false,
|
|
3646
|
-
"type": "option"
|
|
3647
|
-
},
|
|
3648
|
-
"workspace": {
|
|
3649
|
-
"char": "w",
|
|
3650
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
3651
|
-
"name": "workspace",
|
|
3537
|
+
"url-only": {
|
|
3538
|
+
"char": "u",
|
|
3539
|
+
"description": "Print the URL without opening the browser",
|
|
3540
|
+
"name": "url-only",
|
|
3652
3541
|
"required": false,
|
|
3653
|
-
"
|
|
3654
|
-
"
|
|
3655
|
-
"type": "option"
|
|
3542
|
+
"allowNo": false,
|
|
3543
|
+
"type": "boolean"
|
|
3656
3544
|
}
|
|
3657
3545
|
},
|
|
3658
3546
|
"hasDynamicHelp": false,
|
|
3659
3547
|
"hiddenAliases": [],
|
|
3660
|
-
"id": "
|
|
3548
|
+
"id": "sandbox:review",
|
|
3661
3549
|
"pluginAlias": "@xano/cli",
|
|
3662
3550
|
"pluginName": "@xano/cli",
|
|
3663
3551
|
"pluginType": "core",
|
|
@@ -3667,25 +3555,19 @@
|
|
|
3667
3555
|
"relativePath": [
|
|
3668
3556
|
"dist",
|
|
3669
3557
|
"commands",
|
|
3670
|
-
"
|
|
3671
|
-
"
|
|
3558
|
+
"sandbox",
|
|
3559
|
+
"review",
|
|
3672
3560
|
"index.js"
|
|
3673
3561
|
]
|
|
3674
3562
|
},
|
|
3675
|
-
"
|
|
3563
|
+
"unit_test:list": {
|
|
3676
3564
|
"aliases": [],
|
|
3677
|
-
"args": {
|
|
3678
|
-
|
|
3679
|
-
"description": "Display name for the tenant",
|
|
3680
|
-
"name": "display",
|
|
3681
|
-
"required": true
|
|
3682
|
-
}
|
|
3683
|
-
},
|
|
3684
|
-
"description": "Create a new tenant in a workspace",
|
|
3565
|
+
"args": {},
|
|
3566
|
+
"description": "List all unit tests in a workspace",
|
|
3685
3567
|
"examples": [
|
|
3686
|
-
"$ xano
|
|
3687
|
-
"$ xano
|
|
3688
|
-
"$ xano
|
|
3568
|
+
"$ xano unit-test list\nUnit tests in workspace 5:\n - my-test (ID: abc-123) [function: math]\n - auth-check (ID: def-456) [query: /user/login]\n",
|
|
3569
|
+
"$ xano unit-test list -w 5 --output json",
|
|
3570
|
+
"$ xano unit-test list --obj-type function"
|
|
3689
3571
|
],
|
|
3690
3572
|
"flags": {
|
|
3691
3573
|
"config": {
|
|
@@ -3717,44 +3599,26 @@
|
|
|
3717
3599
|
"allowNo": false,
|
|
3718
3600
|
"type": "boolean"
|
|
3719
3601
|
},
|
|
3720
|
-
"
|
|
3721
|
-
"
|
|
3722
|
-
"
|
|
3723
|
-
"
|
|
3724
|
-
"hasDynamicHelp": false,
|
|
3725
|
-
"multiple": false,
|
|
3726
|
-
"type": "option"
|
|
3727
|
-
},
|
|
3728
|
-
"description": {
|
|
3729
|
-
"char": "d",
|
|
3730
|
-
"description": "Tenant description",
|
|
3731
|
-
"name": "description",
|
|
3732
|
-
"required": false,
|
|
3733
|
-
"hasDynamicHelp": false,
|
|
3734
|
-
"multiple": false,
|
|
3735
|
-
"type": "option"
|
|
3736
|
-
},
|
|
3737
|
-
"domain": {
|
|
3738
|
-
"description": "Custom domain for the tenant",
|
|
3739
|
-
"name": "domain",
|
|
3602
|
+
"branch": {
|
|
3603
|
+
"char": "b",
|
|
3604
|
+
"description": "Filter by branch name",
|
|
3605
|
+
"name": "branch",
|
|
3740
3606
|
"required": false,
|
|
3741
3607
|
"hasDynamicHelp": false,
|
|
3742
3608
|
"multiple": false,
|
|
3743
3609
|
"type": "option"
|
|
3744
3610
|
},
|
|
3745
|
-
"
|
|
3746
|
-
"description": "
|
|
3747
|
-
"name": "
|
|
3748
|
-
"allowNo": true,
|
|
3749
|
-
"type": "boolean"
|
|
3750
|
-
},
|
|
3751
|
-
"license": {
|
|
3752
|
-
"char": "l",
|
|
3753
|
-
"description": "Path to a license override file to apply during creation",
|
|
3754
|
-
"name": "license",
|
|
3611
|
+
"obj-type": {
|
|
3612
|
+
"description": "Filter by object type",
|
|
3613
|
+
"name": "obj-type",
|
|
3755
3614
|
"required": false,
|
|
3756
3615
|
"hasDynamicHelp": false,
|
|
3757
3616
|
"multiple": false,
|
|
3617
|
+
"options": [
|
|
3618
|
+
"function",
|
|
3619
|
+
"query",
|
|
3620
|
+
"middleware"
|
|
3621
|
+
],
|
|
3758
3622
|
"type": "option"
|
|
3759
3623
|
},
|
|
3760
3624
|
"output": {
|
|
@@ -3771,34 +3635,6 @@
|
|
|
3771
3635
|
],
|
|
3772
3636
|
"type": "option"
|
|
3773
3637
|
},
|
|
3774
|
-
"platform_id": {
|
|
3775
|
-
"description": "Platform ID to use",
|
|
3776
|
-
"name": "platform_id",
|
|
3777
|
-
"required": false,
|
|
3778
|
-
"hasDynamicHelp": false,
|
|
3779
|
-
"multiple": false,
|
|
3780
|
-
"type": "option"
|
|
3781
|
-
},
|
|
3782
|
-
"type": {
|
|
3783
|
-
"description": "Tenant type",
|
|
3784
|
-
"name": "type",
|
|
3785
|
-
"required": false,
|
|
3786
|
-
"default": "tier1",
|
|
3787
|
-
"hasDynamicHelp": false,
|
|
3788
|
-
"multiple": false,
|
|
3789
|
-
"options": [
|
|
3790
|
-
"tier1",
|
|
3791
|
-
"tier2",
|
|
3792
|
-
"tier3"
|
|
3793
|
-
],
|
|
3794
|
-
"type": "option"
|
|
3795
|
-
},
|
|
3796
|
-
"tasks": {
|
|
3797
|
-
"description": "Enable background tasks",
|
|
3798
|
-
"name": "tasks",
|
|
3799
|
-
"allowNo": true,
|
|
3800
|
-
"type": "boolean"
|
|
3801
|
-
},
|
|
3802
3638
|
"workspace": {
|
|
3803
3639
|
"char": "w",
|
|
3804
3640
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -3811,7 +3647,7 @@
|
|
|
3811
3647
|
},
|
|
3812
3648
|
"hasDynamicHelp": false,
|
|
3813
3649
|
"hiddenAliases": [],
|
|
3814
|
-
"id": "
|
|
3650
|
+
"id": "unit_test:list",
|
|
3815
3651
|
"pluginAlias": "@xano/cli",
|
|
3816
3652
|
"pluginName": "@xano/cli",
|
|
3817
3653
|
"pluginType": "core",
|
|
@@ -3821,25 +3657,24 @@
|
|
|
3821
3657
|
"relativePath": [
|
|
3822
3658
|
"dist",
|
|
3823
3659
|
"commands",
|
|
3824
|
-
"
|
|
3825
|
-
"
|
|
3660
|
+
"unit_test",
|
|
3661
|
+
"list",
|
|
3826
3662
|
"index.js"
|
|
3827
3663
|
]
|
|
3828
3664
|
},
|
|
3829
|
-
"
|
|
3665
|
+
"unit_test:run": {
|
|
3830
3666
|
"aliases": [],
|
|
3831
3667
|
"args": {
|
|
3832
|
-
"
|
|
3833
|
-
"description": "
|
|
3834
|
-
"name": "
|
|
3668
|
+
"unit_test_id": {
|
|
3669
|
+
"description": "ID of the unit test to run",
|
|
3670
|
+
"name": "unit_test_id",
|
|
3835
3671
|
"required": true
|
|
3836
3672
|
}
|
|
3837
3673
|
},
|
|
3838
|
-
"description": "
|
|
3674
|
+
"description": "Run a unit test",
|
|
3839
3675
|
"examples": [
|
|
3840
|
-
"$ xano
|
|
3841
|
-
"$ xano
|
|
3842
|
-
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
3676
|
+
"$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
|
|
3677
|
+
"$ xano unit-test run abc-123 -o json"
|
|
3843
3678
|
],
|
|
3844
3679
|
"flags": {
|
|
3845
3680
|
"config": {
|
|
@@ -3871,14 +3706,6 @@
|
|
|
3871
3706
|
"allowNo": false,
|
|
3872
3707
|
"type": "boolean"
|
|
3873
3708
|
},
|
|
3874
|
-
"force": {
|
|
3875
|
-
"char": "f",
|
|
3876
|
-
"description": "Skip confirmation prompt",
|
|
3877
|
-
"name": "force",
|
|
3878
|
-
"required": false,
|
|
3879
|
-
"allowNo": false,
|
|
3880
|
-
"type": "boolean"
|
|
3881
|
-
},
|
|
3882
3709
|
"output": {
|
|
3883
3710
|
"char": "o",
|
|
3884
3711
|
"description": "Output format",
|
|
@@ -3905,7 +3732,7 @@
|
|
|
3905
3732
|
},
|
|
3906
3733
|
"hasDynamicHelp": false,
|
|
3907
3734
|
"hiddenAliases": [],
|
|
3908
|
-
"id": "
|
|
3735
|
+
"id": "unit_test:run",
|
|
3909
3736
|
"pluginAlias": "@xano/cli",
|
|
3910
3737
|
"pluginName": "@xano/cli",
|
|
3911
3738
|
"pluginType": "core",
|
|
@@ -3915,25 +3742,18 @@
|
|
|
3915
3742
|
"relativePath": [
|
|
3916
3743
|
"dist",
|
|
3917
3744
|
"commands",
|
|
3918
|
-
"
|
|
3919
|
-
"
|
|
3745
|
+
"unit_test",
|
|
3746
|
+
"run",
|
|
3920
3747
|
"index.js"
|
|
3921
|
-
]
|
|
3922
|
-
},
|
|
3923
|
-
"
|
|
3924
|
-
"aliases": [],
|
|
3925
|
-
"args": {
|
|
3926
|
-
|
|
3927
|
-
"description": "Tenant name to deploy to",
|
|
3928
|
-
"name": "tenant_name",
|
|
3929
|
-
"required": true
|
|
3930
|
-
}
|
|
3931
|
-
},
|
|
3932
|
-
"description": "Deploy a platform version to a tenant",
|
|
3748
|
+
]
|
|
3749
|
+
},
|
|
3750
|
+
"unit_test:run_all": {
|
|
3751
|
+
"aliases": [],
|
|
3752
|
+
"args": {},
|
|
3753
|
+
"description": "Run all unit tests in a workspace",
|
|
3933
3754
|
"examples": [
|
|
3934
|
-
"$ xano
|
|
3935
|
-
"$ xano
|
|
3936
|
-
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 --license ./license.yaml"
|
|
3755
|
+
"$ xano unit-test run-all\nRunning 5 unit tests...\n\nPASS my-test [function: math]\nPASS auth-check [query: /user/login]\nFAIL data-validation [function: validate]\n Error: assertion failed\n\nResults: 2 passed, 1 failed\n",
|
|
3756
|
+
"$ xano unit-test run-all --obj-type function -o json"
|
|
3937
3757
|
],
|
|
3938
3758
|
"flags": {
|
|
3939
3759
|
"config": {
|
|
@@ -3965,13 +3785,26 @@
|
|
|
3965
3785
|
"allowNo": false,
|
|
3966
3786
|
"type": "boolean"
|
|
3967
3787
|
},
|
|
3968
|
-
"
|
|
3969
|
-
"char": "
|
|
3970
|
-
"description": "
|
|
3971
|
-
"name": "
|
|
3788
|
+
"branch": {
|
|
3789
|
+
"char": "b",
|
|
3790
|
+
"description": "Filter by branch name",
|
|
3791
|
+
"name": "branch",
|
|
3792
|
+
"required": false,
|
|
3793
|
+
"hasDynamicHelp": false,
|
|
3794
|
+
"multiple": false,
|
|
3795
|
+
"type": "option"
|
|
3796
|
+
},
|
|
3797
|
+
"obj-type": {
|
|
3798
|
+
"description": "Filter by object type",
|
|
3799
|
+
"name": "obj-type",
|
|
3972
3800
|
"required": false,
|
|
3973
3801
|
"hasDynamicHelp": false,
|
|
3974
3802
|
"multiple": false,
|
|
3803
|
+
"options": [
|
|
3804
|
+
"function",
|
|
3805
|
+
"query",
|
|
3806
|
+
"middleware"
|
|
3807
|
+
],
|
|
3975
3808
|
"type": "option"
|
|
3976
3809
|
},
|
|
3977
3810
|
"output": {
|
|
@@ -3988,14 +3821,6 @@
|
|
|
3988
3821
|
],
|
|
3989
3822
|
"type": "option"
|
|
3990
3823
|
},
|
|
3991
|
-
"platform_id": {
|
|
3992
|
-
"description": "Platform ID to deploy",
|
|
3993
|
-
"name": "platform_id",
|
|
3994
|
-
"required": true,
|
|
3995
|
-
"hasDynamicHelp": false,
|
|
3996
|
-
"multiple": false,
|
|
3997
|
-
"type": "option"
|
|
3998
|
-
},
|
|
3999
3824
|
"workspace": {
|
|
4000
3825
|
"char": "w",
|
|
4001
3826
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -4008,7 +3833,7 @@
|
|
|
4008
3833
|
},
|
|
4009
3834
|
"hasDynamicHelp": false,
|
|
4010
3835
|
"hiddenAliases": [],
|
|
4011
|
-
"id": "
|
|
3836
|
+
"id": "unit_test:run_all",
|
|
4012
3837
|
"pluginAlias": "@xano/cli",
|
|
4013
3838
|
"pluginName": "@xano/cli",
|
|
4014
3839
|
"pluginType": "core",
|
|
@@ -4018,24 +3843,25 @@
|
|
|
4018
3843
|
"relativePath": [
|
|
4019
3844
|
"dist",
|
|
4020
3845
|
"commands",
|
|
4021
|
-
"
|
|
4022
|
-
"
|
|
3846
|
+
"unit_test",
|
|
3847
|
+
"run_all",
|
|
4023
3848
|
"index.js"
|
|
4024
3849
|
]
|
|
4025
3850
|
},
|
|
4026
|
-
"tenant:
|
|
3851
|
+
"tenant:create": {
|
|
4027
3852
|
"aliases": [],
|
|
4028
3853
|
"args": {
|
|
4029
|
-
"
|
|
4030
|
-
"description": "
|
|
4031
|
-
"name": "
|
|
3854
|
+
"display": {
|
|
3855
|
+
"description": "Display name for the tenant",
|
|
3856
|
+
"name": "display",
|
|
4032
3857
|
"required": true
|
|
4033
3858
|
}
|
|
4034
3859
|
},
|
|
4035
|
-
"description": "
|
|
3860
|
+
"description": "Create a new tenant in a workspace",
|
|
4036
3861
|
"examples": [
|
|
4037
|
-
"$ xano tenant
|
|
4038
|
-
"$ xano tenant
|
|
3862
|
+
"$ xano tenant create \"Production\"\nCreated tenant: Production (production) - ID: 42\n",
|
|
3863
|
+
"$ xano tenant create \"Staging\" --description \"Staging env\" --cluster_id 1 --platform_id 1 --type tier2 -o json",
|
|
3864
|
+
"$ xano tenant create \"Staging\" --type tier2 --cluster_id 1 --license ./license.yaml"
|
|
4039
3865
|
],
|
|
4040
3866
|
"flags": {
|
|
4041
3867
|
"config": {
|
|
@@ -4067,6 +3893,46 @@
|
|
|
4067
3893
|
"allowNo": false,
|
|
4068
3894
|
"type": "boolean"
|
|
4069
3895
|
},
|
|
3896
|
+
"cluster_id": {
|
|
3897
|
+
"description": "Cluster ID to deploy to (required for tier2/tier3)",
|
|
3898
|
+
"name": "cluster_id",
|
|
3899
|
+
"required": false,
|
|
3900
|
+
"hasDynamicHelp": false,
|
|
3901
|
+
"multiple": false,
|
|
3902
|
+
"type": "option"
|
|
3903
|
+
},
|
|
3904
|
+
"description": {
|
|
3905
|
+
"char": "d",
|
|
3906
|
+
"description": "Tenant description",
|
|
3907
|
+
"name": "description",
|
|
3908
|
+
"required": false,
|
|
3909
|
+
"hasDynamicHelp": false,
|
|
3910
|
+
"multiple": false,
|
|
3911
|
+
"type": "option"
|
|
3912
|
+
},
|
|
3913
|
+
"domain": {
|
|
3914
|
+
"description": "Custom domain for the tenant",
|
|
3915
|
+
"name": "domain",
|
|
3916
|
+
"required": false,
|
|
3917
|
+
"hasDynamicHelp": false,
|
|
3918
|
+
"multiple": false,
|
|
3919
|
+
"type": "option"
|
|
3920
|
+
},
|
|
3921
|
+
"ingress": {
|
|
3922
|
+
"description": "Enable ingress",
|
|
3923
|
+
"name": "ingress",
|
|
3924
|
+
"allowNo": true,
|
|
3925
|
+
"type": "boolean"
|
|
3926
|
+
},
|
|
3927
|
+
"license": {
|
|
3928
|
+
"char": "l",
|
|
3929
|
+
"description": "Path to a license override file to apply during creation",
|
|
3930
|
+
"name": "license",
|
|
3931
|
+
"required": false,
|
|
3932
|
+
"hasDynamicHelp": false,
|
|
3933
|
+
"multiple": false,
|
|
3934
|
+
"type": "option"
|
|
3935
|
+
},
|
|
4070
3936
|
"output": {
|
|
4071
3937
|
"char": "o",
|
|
4072
3938
|
"description": "Output format",
|
|
@@ -4081,15 +3947,34 @@
|
|
|
4081
3947
|
],
|
|
4082
3948
|
"type": "option"
|
|
4083
3949
|
},
|
|
4084
|
-
"
|
|
4085
|
-
"
|
|
4086
|
-
"
|
|
4087
|
-
"
|
|
4088
|
-
"
|
|
3950
|
+
"platform_id": {
|
|
3951
|
+
"description": "Platform ID to use",
|
|
3952
|
+
"name": "platform_id",
|
|
3953
|
+
"required": false,
|
|
3954
|
+
"hasDynamicHelp": false,
|
|
3955
|
+
"multiple": false,
|
|
3956
|
+
"type": "option"
|
|
3957
|
+
},
|
|
3958
|
+
"type": {
|
|
3959
|
+
"description": "Tenant type",
|
|
3960
|
+
"name": "type",
|
|
3961
|
+
"required": false,
|
|
3962
|
+
"default": "tier1",
|
|
4089
3963
|
"hasDynamicHelp": false,
|
|
4090
3964
|
"multiple": false,
|
|
3965
|
+
"options": [
|
|
3966
|
+
"tier1",
|
|
3967
|
+
"tier2",
|
|
3968
|
+
"tier3"
|
|
3969
|
+
],
|
|
4091
3970
|
"type": "option"
|
|
4092
3971
|
},
|
|
3972
|
+
"tasks": {
|
|
3973
|
+
"description": "Enable background tasks",
|
|
3974
|
+
"name": "tasks",
|
|
3975
|
+
"allowNo": true,
|
|
3976
|
+
"type": "boolean"
|
|
3977
|
+
},
|
|
4093
3978
|
"workspace": {
|
|
4094
3979
|
"char": "w",
|
|
4095
3980
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -4102,7 +3987,7 @@
|
|
|
4102
3987
|
},
|
|
4103
3988
|
"hasDynamicHelp": false,
|
|
4104
3989
|
"hiddenAliases": [],
|
|
4105
|
-
"id": "tenant:
|
|
3990
|
+
"id": "tenant:create",
|
|
4106
3991
|
"pluginAlias": "@xano/cli",
|
|
4107
3992
|
"pluginName": "@xano/cli",
|
|
4108
3993
|
"pluginType": "core",
|
|
@@ -4113,23 +3998,24 @@
|
|
|
4113
3998
|
"dist",
|
|
4114
3999
|
"commands",
|
|
4115
4000
|
"tenant",
|
|
4116
|
-
"
|
|
4001
|
+
"create",
|
|
4117
4002
|
"index.js"
|
|
4118
4003
|
]
|
|
4119
4004
|
},
|
|
4120
|
-
"tenant:
|
|
4005
|
+
"tenant:delete": {
|
|
4121
4006
|
"aliases": [],
|
|
4122
4007
|
"args": {
|
|
4123
4008
|
"tenant_name": {
|
|
4124
|
-
"description": "Tenant name to
|
|
4009
|
+
"description": "Tenant name to delete",
|
|
4125
4010
|
"name": "tenant_name",
|
|
4126
4011
|
"required": true
|
|
4127
4012
|
}
|
|
4128
4013
|
},
|
|
4129
|
-
"description": "
|
|
4014
|
+
"description": "Delete a tenant permanently. This destroys all associated infrastructure and cannot be undone.",
|
|
4130
4015
|
"examples": [
|
|
4131
|
-
"$ xano tenant
|
|
4132
|
-
"$ xano tenant
|
|
4016
|
+
"$ xano tenant delete t1234-abcd-xyz1\nAre you sure you want to delete tenant t1234-abcd-xyz1? This action cannot be undone. (y/N) y\nDeleted tenant t1234-abcd-xyz1\n",
|
|
4017
|
+
"$ xano tenant delete t1234-abcd-xyz1 --force\nDeleted tenant t1234-abcd-xyz1\n",
|
|
4018
|
+
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
4133
4019
|
],
|
|
4134
4020
|
"flags": {
|
|
4135
4021
|
"config": {
|
|
@@ -4161,36 +4047,12 @@
|
|
|
4161
4047
|
"allowNo": false,
|
|
4162
4048
|
"type": "boolean"
|
|
4163
4049
|
},
|
|
4164
|
-
"
|
|
4165
|
-
"char": "
|
|
4166
|
-
"description": "
|
|
4167
|
-
"name": "
|
|
4168
|
-
"required": false,
|
|
4169
|
-
"hasDynamicHelp": false,
|
|
4170
|
-
"multiple": false,
|
|
4171
|
-
"type": "option"
|
|
4172
|
-
},
|
|
4173
|
-
"display": {
|
|
4174
|
-
"description": "New display name",
|
|
4175
|
-
"name": "display",
|
|
4176
|
-
"required": false,
|
|
4177
|
-
"hasDynamicHelp": false,
|
|
4178
|
-
"multiple": false,
|
|
4179
|
-
"type": "option"
|
|
4180
|
-
},
|
|
4181
|
-
"domain": {
|
|
4182
|
-
"description": "Custom domain",
|
|
4183
|
-
"name": "domain",
|
|
4184
|
-
"required": false,
|
|
4185
|
-
"hasDynamicHelp": false,
|
|
4186
|
-
"multiple": false,
|
|
4187
|
-
"type": "option"
|
|
4188
|
-
},
|
|
4189
|
-
"ingress": {
|
|
4190
|
-
"description": "Enable/disable ingress",
|
|
4191
|
-
"name": "ingress",
|
|
4050
|
+
"force": {
|
|
4051
|
+
"char": "f",
|
|
4052
|
+
"description": "Skip confirmation prompt",
|
|
4053
|
+
"name": "force",
|
|
4192
4054
|
"required": false,
|
|
4193
|
-
"allowNo":
|
|
4055
|
+
"allowNo": false,
|
|
4194
4056
|
"type": "boolean"
|
|
4195
4057
|
},
|
|
4196
4058
|
"output": {
|
|
@@ -4207,28 +4069,6 @@
|
|
|
4207
4069
|
],
|
|
4208
4070
|
"type": "option"
|
|
4209
4071
|
},
|
|
4210
|
-
"proxy": {
|
|
4211
|
-
"description": "Proxy URL",
|
|
4212
|
-
"name": "proxy",
|
|
4213
|
-
"required": false,
|
|
4214
|
-
"hasDynamicHelp": false,
|
|
4215
|
-
"multiple": false,
|
|
4216
|
-
"type": "option"
|
|
4217
|
-
},
|
|
4218
|
-
"rbac": {
|
|
4219
|
-
"description": "Enable/disable RBAC",
|
|
4220
|
-
"name": "rbac",
|
|
4221
|
-
"required": false,
|
|
4222
|
-
"allowNo": true,
|
|
4223
|
-
"type": "boolean"
|
|
4224
|
-
},
|
|
4225
|
-
"tasks": {
|
|
4226
|
-
"description": "Enable/disable background tasks",
|
|
4227
|
-
"name": "tasks",
|
|
4228
|
-
"required": false,
|
|
4229
|
-
"allowNo": true,
|
|
4230
|
-
"type": "boolean"
|
|
4231
|
-
},
|
|
4232
4072
|
"workspace": {
|
|
4233
4073
|
"char": "w",
|
|
4234
4074
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -4241,7 +4081,7 @@
|
|
|
4241
4081
|
},
|
|
4242
4082
|
"hasDynamicHelp": false,
|
|
4243
4083
|
"hiddenAliases": [],
|
|
4244
|
-
"id": "tenant:
|
|
4084
|
+
"id": "tenant:delete",
|
|
4245
4085
|
"pluginAlias": "@xano/cli",
|
|
4246
4086
|
"pluginName": "@xano/cli",
|
|
4247
4087
|
"pluginType": "core",
|
|
@@ -4252,23 +4092,24 @@
|
|
|
4252
4092
|
"dist",
|
|
4253
4093
|
"commands",
|
|
4254
4094
|
"tenant",
|
|
4255
|
-
"
|
|
4095
|
+
"delete",
|
|
4256
4096
|
"index.js"
|
|
4257
4097
|
]
|
|
4258
4098
|
},
|
|
4259
|
-
"tenant:
|
|
4099
|
+
"tenant:deploy_platform": {
|
|
4260
4100
|
"aliases": [],
|
|
4261
4101
|
"args": {
|
|
4262
4102
|
"tenant_name": {
|
|
4263
|
-
"description": "Tenant name to
|
|
4103
|
+
"description": "Tenant name to deploy to",
|
|
4264
4104
|
"name": "tenant_name",
|
|
4265
4105
|
"required": true
|
|
4266
4106
|
}
|
|
4267
4107
|
},
|
|
4268
|
-
"description": "
|
|
4108
|
+
"description": "Deploy a platform version to a tenant",
|
|
4269
4109
|
"examples": [
|
|
4270
|
-
"$ xano tenant
|
|
4271
|
-
"$ xano tenant
|
|
4110
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
4111
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json",
|
|
4112
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 --license ./license.yaml"
|
|
4272
4113
|
],
|
|
4273
4114
|
"flags": {
|
|
4274
4115
|
"config": {
|
|
@@ -4300,6 +4141,15 @@
|
|
|
4300
4141
|
"allowNo": false,
|
|
4301
4142
|
"type": "boolean"
|
|
4302
4143
|
},
|
|
4144
|
+
"license": {
|
|
4145
|
+
"char": "l",
|
|
4146
|
+
"description": "Path to a license override file to apply after deploy",
|
|
4147
|
+
"name": "license",
|
|
4148
|
+
"required": false,
|
|
4149
|
+
"hasDynamicHelp": false,
|
|
4150
|
+
"multiple": false,
|
|
4151
|
+
"type": "option"
|
|
4152
|
+
},
|
|
4303
4153
|
"output": {
|
|
4304
4154
|
"char": "o",
|
|
4305
4155
|
"description": "Output format",
|
|
@@ -4314,6 +4164,14 @@
|
|
|
4314
4164
|
],
|
|
4315
4165
|
"type": "option"
|
|
4316
4166
|
},
|
|
4167
|
+
"platform_id": {
|
|
4168
|
+
"description": "Platform ID to deploy",
|
|
4169
|
+
"name": "platform_id",
|
|
4170
|
+
"required": true,
|
|
4171
|
+
"hasDynamicHelp": false,
|
|
4172
|
+
"multiple": false,
|
|
4173
|
+
"type": "option"
|
|
4174
|
+
},
|
|
4317
4175
|
"workspace": {
|
|
4318
4176
|
"char": "w",
|
|
4319
4177
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -4326,7 +4184,7 @@
|
|
|
4326
4184
|
},
|
|
4327
4185
|
"hasDynamicHelp": false,
|
|
4328
4186
|
"hiddenAliases": [],
|
|
4329
|
-
"id": "tenant:
|
|
4187
|
+
"id": "tenant:deploy_platform",
|
|
4330
4188
|
"pluginAlias": "@xano/cli",
|
|
4331
4189
|
"pluginName": "@xano/cli",
|
|
4332
4190
|
"pluginType": "core",
|
|
@@ -4337,23 +4195,23 @@
|
|
|
4337
4195
|
"dist",
|
|
4338
4196
|
"commands",
|
|
4339
4197
|
"tenant",
|
|
4340
|
-
"
|
|
4198
|
+
"deploy_platform",
|
|
4341
4199
|
"index.js"
|
|
4342
4200
|
]
|
|
4343
4201
|
},
|
|
4344
|
-
"tenant:
|
|
4202
|
+
"tenant:deploy_release": {
|
|
4345
4203
|
"aliases": [],
|
|
4346
4204
|
"args": {
|
|
4347
4205
|
"tenant_name": {
|
|
4348
|
-
"description": "Tenant name to
|
|
4206
|
+
"description": "Tenant name to deploy to",
|
|
4349
4207
|
"name": "tenant_name",
|
|
4350
4208
|
"required": true
|
|
4351
4209
|
}
|
|
4352
4210
|
},
|
|
4353
|
-
"description": "
|
|
4211
|
+
"description": "Deploy a release to a tenant",
|
|
4354
4212
|
"examples": [
|
|
4355
|
-
"$ xano tenant
|
|
4356
|
-
"$ xano tenant
|
|
4213
|
+
"$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0\nDeployed release \"v1.0\" to tenant: My Tenant (my-tenant)\n",
|
|
4214
|
+
"$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 -o json"
|
|
4357
4215
|
],
|
|
4358
4216
|
"flags": {
|
|
4359
4217
|
"config": {
|
|
@@ -4399,13 +4257,14 @@
|
|
|
4399
4257
|
],
|
|
4400
4258
|
"type": "option"
|
|
4401
4259
|
},
|
|
4402
|
-
"
|
|
4403
|
-
"char": "
|
|
4404
|
-
"description": "
|
|
4405
|
-
"name": "
|
|
4406
|
-
"required":
|
|
4407
|
-
"
|
|
4408
|
-
"
|
|
4260
|
+
"release": {
|
|
4261
|
+
"char": "r",
|
|
4262
|
+
"description": "Release name to deploy",
|
|
4263
|
+
"name": "release",
|
|
4264
|
+
"required": true,
|
|
4265
|
+
"hasDynamicHelp": false,
|
|
4266
|
+
"multiple": false,
|
|
4267
|
+
"type": "option"
|
|
4409
4268
|
},
|
|
4410
4269
|
"workspace": {
|
|
4411
4270
|
"char": "w",
|
|
@@ -4419,7 +4278,7 @@
|
|
|
4419
4278
|
},
|
|
4420
4279
|
"hasDynamicHelp": false,
|
|
4421
4280
|
"hiddenAliases": [],
|
|
4422
|
-
"id": "tenant:
|
|
4281
|
+
"id": "tenant:deploy_release",
|
|
4423
4282
|
"pluginAlias": "@xano/cli",
|
|
4424
4283
|
"pluginName": "@xano/cli",
|
|
4425
4284
|
"pluginType": "core",
|
|
@@ -4430,17 +4289,23 @@
|
|
|
4430
4289
|
"dist",
|
|
4431
4290
|
"commands",
|
|
4432
4291
|
"tenant",
|
|
4433
|
-
"
|
|
4292
|
+
"deploy_release",
|
|
4434
4293
|
"index.js"
|
|
4435
4294
|
]
|
|
4436
4295
|
},
|
|
4437
|
-
"tenant:
|
|
4296
|
+
"tenant:edit": {
|
|
4438
4297
|
"aliases": [],
|
|
4439
|
-
"args": {
|
|
4440
|
-
|
|
4298
|
+
"args": {
|
|
4299
|
+
"tenant_name": {
|
|
4300
|
+
"description": "Tenant name to edit",
|
|
4301
|
+
"name": "tenant_name",
|
|
4302
|
+
"required": true
|
|
4303
|
+
}
|
|
4304
|
+
},
|
|
4305
|
+
"description": "Edit an existing tenant",
|
|
4441
4306
|
"examples": [
|
|
4442
|
-
"$ xano tenant
|
|
4443
|
-
"$ xano tenant
|
|
4307
|
+
"$ xano tenant edit t1234-abcd-xyz1 --display \"New Name\" --description \"Updated description\"\nUpdated tenant: New Name (my-tenant) - ID: 42\n",
|
|
4308
|
+
"$ xano tenant edit t1234-abcd-xyz1 --no-tasks --no-ingress -o json"
|
|
4444
4309
|
],
|
|
4445
4310
|
"flags": {
|
|
4446
4311
|
"config": {
|
|
@@ -4472,6 +4337,38 @@
|
|
|
4472
4337
|
"allowNo": false,
|
|
4473
4338
|
"type": "boolean"
|
|
4474
4339
|
},
|
|
4340
|
+
"description": {
|
|
4341
|
+
"char": "d",
|
|
4342
|
+
"description": "New description",
|
|
4343
|
+
"name": "description",
|
|
4344
|
+
"required": false,
|
|
4345
|
+
"hasDynamicHelp": false,
|
|
4346
|
+
"multiple": false,
|
|
4347
|
+
"type": "option"
|
|
4348
|
+
},
|
|
4349
|
+
"display": {
|
|
4350
|
+
"description": "New display name",
|
|
4351
|
+
"name": "display",
|
|
4352
|
+
"required": false,
|
|
4353
|
+
"hasDynamicHelp": false,
|
|
4354
|
+
"multiple": false,
|
|
4355
|
+
"type": "option"
|
|
4356
|
+
},
|
|
4357
|
+
"domain": {
|
|
4358
|
+
"description": "Custom domain",
|
|
4359
|
+
"name": "domain",
|
|
4360
|
+
"required": false,
|
|
4361
|
+
"hasDynamicHelp": false,
|
|
4362
|
+
"multiple": false,
|
|
4363
|
+
"type": "option"
|
|
4364
|
+
},
|
|
4365
|
+
"ingress": {
|
|
4366
|
+
"description": "Enable/disable ingress",
|
|
4367
|
+
"name": "ingress",
|
|
4368
|
+
"required": false,
|
|
4369
|
+
"allowNo": true,
|
|
4370
|
+
"type": "boolean"
|
|
4371
|
+
},
|
|
4475
4372
|
"output": {
|
|
4476
4373
|
"char": "o",
|
|
4477
4374
|
"description": "Output format",
|
|
@@ -4486,6 +4383,28 @@
|
|
|
4486
4383
|
],
|
|
4487
4384
|
"type": "option"
|
|
4488
4385
|
},
|
|
4386
|
+
"proxy": {
|
|
4387
|
+
"description": "Proxy URL",
|
|
4388
|
+
"name": "proxy",
|
|
4389
|
+
"required": false,
|
|
4390
|
+
"hasDynamicHelp": false,
|
|
4391
|
+
"multiple": false,
|
|
4392
|
+
"type": "option"
|
|
4393
|
+
},
|
|
4394
|
+
"rbac": {
|
|
4395
|
+
"description": "Enable/disable RBAC",
|
|
4396
|
+
"name": "rbac",
|
|
4397
|
+
"required": false,
|
|
4398
|
+
"allowNo": true,
|
|
4399
|
+
"type": "boolean"
|
|
4400
|
+
},
|
|
4401
|
+
"tasks": {
|
|
4402
|
+
"description": "Enable/disable background tasks",
|
|
4403
|
+
"name": "tasks",
|
|
4404
|
+
"required": false,
|
|
4405
|
+
"allowNo": true,
|
|
4406
|
+
"type": "boolean"
|
|
4407
|
+
},
|
|
4489
4408
|
"workspace": {
|
|
4490
4409
|
"char": "w",
|
|
4491
4410
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -4498,29 +4417,7 @@
|
|
|
4498
4417
|
},
|
|
4499
4418
|
"hasDynamicHelp": false,
|
|
4500
4419
|
"hiddenAliases": [],
|
|
4501
|
-
"id": "tenant:
|
|
4502
|
-
"pluginAlias": "@xano/cli",
|
|
4503
|
-
"pluginName": "@xano/cli",
|
|
4504
|
-
"pluginType": "core",
|
|
4505
|
-
"strict": true,
|
|
4506
|
-
"enableJsonFlag": false,
|
|
4507
|
-
"isESM": true,
|
|
4508
|
-
"relativePath": [
|
|
4509
|
-
"dist",
|
|
4510
|
-
"commands",
|
|
4511
|
-
"tenant",
|
|
4512
|
-
"list",
|
|
4513
|
-
"index.js"
|
|
4514
|
-
]
|
|
4515
|
-
},
|
|
4516
|
-
"tenant:push": {
|
|
4517
|
-
"aliases": [],
|
|
4518
|
-
"args": {},
|
|
4519
|
-
"description": "Direct tenant push is not supported. Deploy through a release or use the sandbox (xano sandbox push).",
|
|
4520
|
-
"flags": {},
|
|
4521
|
-
"hasDynamicHelp": false,
|
|
4522
|
-
"hiddenAliases": [],
|
|
4523
|
-
"id": "tenant:push",
|
|
4420
|
+
"id": "tenant:edit",
|
|
4524
4421
|
"pluginAlias": "@xano/cli",
|
|
4525
4422
|
"pluginName": "@xano/cli",
|
|
4526
4423
|
"pluginType": "core",
|
|
@@ -4531,20 +4428,23 @@
|
|
|
4531
4428
|
"dist",
|
|
4532
4429
|
"commands",
|
|
4533
4430
|
"tenant",
|
|
4534
|
-
"
|
|
4431
|
+
"edit",
|
|
4535
4432
|
"index.js"
|
|
4536
4433
|
]
|
|
4537
4434
|
},
|
|
4538
|
-
"tenant:
|
|
4435
|
+
"tenant:get": {
|
|
4539
4436
|
"aliases": [],
|
|
4540
|
-
"args": {
|
|
4541
|
-
|
|
4437
|
+
"args": {
|
|
4438
|
+
"tenant_name": {
|
|
4439
|
+
"description": "Tenant name to retrieve",
|
|
4440
|
+
"name": "tenant_name",
|
|
4441
|
+
"required": true
|
|
4442
|
+
}
|
|
4443
|
+
},
|
|
4444
|
+
"description": "Get details of a specific tenant",
|
|
4542
4445
|
"examples": [
|
|
4543
|
-
"$ xano tenant
|
|
4544
|
-
"$ xano tenant
|
|
4545
|
-
"$ xano tenant pull -d ./output -t my-tenant -w 40\nPulled 15 documents from tenant my-tenant to ./output\n",
|
|
4546
|
-
"$ xano tenant pull -t my-tenant --profile production --env --records\nPulled 58 documents from tenant my-tenant\n",
|
|
4547
|
-
"$ xano tenant pull -t my-tenant --draft"
|
|
4446
|
+
"$ xano tenant get t1234-abcd-xyz1\nTenant: My Tenant (my-tenant)\n State: ok\n License: tier1\n Domain: my-tenant.xano.io\n Cluster: default\n Release: v1.0\n",
|
|
4447
|
+
"$ xano tenant get t1234-abcd-xyz1 -w 5 -o json"
|
|
4548
4448
|
],
|
|
4549
4449
|
"flags": {
|
|
4550
4450
|
"config": {
|
|
@@ -4576,49 +4476,23 @@
|
|
|
4576
4476
|
"allowNo": false,
|
|
4577
4477
|
"type": "boolean"
|
|
4578
4478
|
},
|
|
4579
|
-
"
|
|
4580
|
-
"char": "
|
|
4581
|
-
"description": "Output
|
|
4582
|
-
"name": "
|
|
4583
|
-
"required": false,
|
|
4584
|
-
"default": ".",
|
|
4585
|
-
"hasDynamicHelp": false,
|
|
4586
|
-
"multiple": false,
|
|
4587
|
-
"type": "option"
|
|
4588
|
-
},
|
|
4589
|
-
"draft": {
|
|
4590
|
-
"description": "Include draft versions",
|
|
4591
|
-
"name": "draft",
|
|
4592
|
-
"required": false,
|
|
4593
|
-
"allowNo": false,
|
|
4594
|
-
"type": "boolean"
|
|
4595
|
-
},
|
|
4596
|
-
"env": {
|
|
4597
|
-
"description": "Include environment variables",
|
|
4598
|
-
"name": "env",
|
|
4599
|
-
"required": false,
|
|
4600
|
-
"allowNo": false,
|
|
4601
|
-
"type": "boolean"
|
|
4602
|
-
},
|
|
4603
|
-
"records": {
|
|
4604
|
-
"description": "Include records",
|
|
4605
|
-
"name": "records",
|
|
4479
|
+
"output": {
|
|
4480
|
+
"char": "o",
|
|
4481
|
+
"description": "Output format",
|
|
4482
|
+
"name": "output",
|
|
4606
4483
|
"required": false,
|
|
4607
|
-
"
|
|
4608
|
-
"type": "boolean"
|
|
4609
|
-
},
|
|
4610
|
-
"tenant": {
|
|
4611
|
-
"char": "t",
|
|
4612
|
-
"description": "Tenant name to pull from",
|
|
4613
|
-
"name": "tenant",
|
|
4614
|
-
"required": true,
|
|
4484
|
+
"default": "summary",
|
|
4615
4485
|
"hasDynamicHelp": false,
|
|
4616
4486
|
"multiple": false,
|
|
4487
|
+
"options": [
|
|
4488
|
+
"summary",
|
|
4489
|
+
"json"
|
|
4490
|
+
],
|
|
4617
4491
|
"type": "option"
|
|
4618
4492
|
},
|
|
4619
4493
|
"workspace": {
|
|
4620
4494
|
"char": "w",
|
|
4621
|
-
"description": "Workspace ID (
|
|
4495
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4622
4496
|
"name": "workspace",
|
|
4623
4497
|
"required": false,
|
|
4624
4498
|
"hasDynamicHelp": false,
|
|
@@ -4628,7 +4502,7 @@
|
|
|
4628
4502
|
},
|
|
4629
4503
|
"hasDynamicHelp": false,
|
|
4630
4504
|
"hiddenAliases": [],
|
|
4631
|
-
"id": "tenant:
|
|
4505
|
+
"id": "tenant:get",
|
|
4632
4506
|
"pluginAlias": "@xano/cli",
|
|
4633
4507
|
"pluginName": "@xano/cli",
|
|
4634
4508
|
"pluginType": "core",
|
|
@@ -4639,23 +4513,23 @@
|
|
|
4639
4513
|
"dist",
|
|
4640
4514
|
"commands",
|
|
4641
4515
|
"tenant",
|
|
4642
|
-
"
|
|
4516
|
+
"get",
|
|
4643
4517
|
"index.js"
|
|
4644
4518
|
]
|
|
4645
4519
|
},
|
|
4646
|
-
"
|
|
4520
|
+
"tenant:impersonate": {
|
|
4647
4521
|
"aliases": [],
|
|
4648
4522
|
"args": {
|
|
4649
|
-
"
|
|
4650
|
-
"description": "
|
|
4651
|
-
"name": "
|
|
4523
|
+
"tenant_name": {
|
|
4524
|
+
"description": "Tenant name to impersonate",
|
|
4525
|
+
"name": "tenant_name",
|
|
4652
4526
|
"required": true
|
|
4653
4527
|
}
|
|
4654
4528
|
},
|
|
4655
|
-
"description": "
|
|
4529
|
+
"description": "Impersonate a tenant and open it in the browser",
|
|
4656
4530
|
"examples": [
|
|
4657
|
-
"$ xano
|
|
4658
|
-
"$ xano
|
|
4531
|
+
"$ xano tenant impersonate my-tenant\nOpening browser...\nImpersonation successful!\n",
|
|
4532
|
+
"$ xano tenant impersonate my-tenant -o json"
|
|
4659
4533
|
],
|
|
4660
4534
|
"flags": {
|
|
4661
4535
|
"config": {
|
|
@@ -4701,6 +4575,14 @@
|
|
|
4701
4575
|
],
|
|
4702
4576
|
"type": "option"
|
|
4703
4577
|
},
|
|
4578
|
+
"url-only": {
|
|
4579
|
+
"char": "u",
|
|
4580
|
+
"description": "Print the URL without opening the browser",
|
|
4581
|
+
"name": "url-only",
|
|
4582
|
+
"required": false,
|
|
4583
|
+
"allowNo": false,
|
|
4584
|
+
"type": "boolean"
|
|
4585
|
+
},
|
|
4704
4586
|
"workspace": {
|
|
4705
4587
|
"char": "w",
|
|
4706
4588
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -4713,7 +4595,7 @@
|
|
|
4713
4595
|
},
|
|
4714
4596
|
"hasDynamicHelp": false,
|
|
4715
4597
|
"hiddenAliases": [],
|
|
4716
|
-
"id": "
|
|
4598
|
+
"id": "tenant:impersonate",
|
|
4717
4599
|
"pluginAlias": "@xano/cli",
|
|
4718
4600
|
"pluginName": "@xano/cli",
|
|
4719
4601
|
"pluginType": "core",
|
|
@@ -4723,18 +4605,18 @@
|
|
|
4723
4605
|
"relativePath": [
|
|
4724
4606
|
"dist",
|
|
4725
4607
|
"commands",
|
|
4726
|
-
"
|
|
4727
|
-
"
|
|
4608
|
+
"tenant",
|
|
4609
|
+
"impersonate",
|
|
4728
4610
|
"index.js"
|
|
4729
4611
|
]
|
|
4730
4612
|
},
|
|
4731
|
-
"
|
|
4613
|
+
"tenant:list": {
|
|
4732
4614
|
"aliases": [],
|
|
4733
4615
|
"args": {},
|
|
4734
|
-
"description": "
|
|
4616
|
+
"description": "List all tenants in a workspace",
|
|
4735
4617
|
"examples": [
|
|
4736
|
-
"$ xano
|
|
4737
|
-
"$ xano
|
|
4618
|
+
"$ xano tenant list\nTenants in workspace 5:\n - My Tenant (my-tenant) [ok] - tier1\n Cluster: us-central\n Release: r1\n Platform: default\n - Staging (staging) [ok] - tier1\n Cluster: us-central\n Release: r1\n",
|
|
4619
|
+
"$ xano tenant list -w 5 --output json"
|
|
4738
4620
|
],
|
|
4739
4621
|
"flags": {
|
|
4740
4622
|
"config": {
|
|
@@ -4766,28 +4648,6 @@
|
|
|
4766
4648
|
"allowNo": false,
|
|
4767
4649
|
"type": "boolean"
|
|
4768
4650
|
},
|
|
4769
|
-
"branch": {
|
|
4770
|
-
"char": "b",
|
|
4771
|
-
"description": "Filter by branch name",
|
|
4772
|
-
"name": "branch",
|
|
4773
|
-
"required": false,
|
|
4774
|
-
"hasDynamicHelp": false,
|
|
4775
|
-
"multiple": false,
|
|
4776
|
-
"type": "option"
|
|
4777
|
-
},
|
|
4778
|
-
"obj-type": {
|
|
4779
|
-
"description": "Filter by object type",
|
|
4780
|
-
"name": "obj-type",
|
|
4781
|
-
"required": false,
|
|
4782
|
-
"hasDynamicHelp": false,
|
|
4783
|
-
"multiple": false,
|
|
4784
|
-
"options": [
|
|
4785
|
-
"function",
|
|
4786
|
-
"query",
|
|
4787
|
-
"middleware"
|
|
4788
|
-
],
|
|
4789
|
-
"type": "option"
|
|
4790
|
-
},
|
|
4791
4651
|
"output": {
|
|
4792
4652
|
"char": "o",
|
|
4793
4653
|
"description": "Output format",
|
|
@@ -4814,7 +4674,7 @@
|
|
|
4814
4674
|
},
|
|
4815
4675
|
"hasDynamicHelp": false,
|
|
4816
4676
|
"hiddenAliases": [],
|
|
4817
|
-
"id": "
|
|
4677
|
+
"id": "tenant:list",
|
|
4818
4678
|
"pluginAlias": "@xano/cli",
|
|
4819
4679
|
"pluginName": "@xano/cli",
|
|
4820
4680
|
"pluginType": "core",
|
|
@@ -4824,19 +4684,21 @@
|
|
|
4824
4684
|
"relativePath": [
|
|
4825
4685
|
"dist",
|
|
4826
4686
|
"commands",
|
|
4827
|
-
"
|
|
4828
|
-
"
|
|
4687
|
+
"tenant",
|
|
4688
|
+
"list",
|
|
4829
4689
|
"index.js"
|
|
4830
4690
|
]
|
|
4831
4691
|
},
|
|
4832
|
-
"
|
|
4692
|
+
"tenant:pull": {
|
|
4833
4693
|
"aliases": [],
|
|
4834
4694
|
"args": {},
|
|
4835
|
-
"description": "
|
|
4695
|
+
"description": "Pull a tenant multidoc from the Xano Metadata API and split into individual files",
|
|
4836
4696
|
"examples": [
|
|
4837
|
-
"$ xano
|
|
4838
|
-
"$ xano
|
|
4839
|
-
"$ xano
|
|
4697
|
+
"$ xano tenant pull -t my-tenant\nPulled 42 documents from tenant my-tenant to current directory\n",
|
|
4698
|
+
"$ xano tenant pull -d ./my-tenant -t my-tenant\nPulled 42 documents from tenant my-tenant to ./my-tenant\n",
|
|
4699
|
+
"$ xano tenant pull -d ./output -t my-tenant -w 40\nPulled 15 documents from tenant my-tenant to ./output\n",
|
|
4700
|
+
"$ xano tenant pull -t my-tenant --profile production --env --records\nPulled 58 documents from tenant my-tenant\n",
|
|
4701
|
+
"$ xano tenant pull -t my-tenant --draft"
|
|
4840
4702
|
],
|
|
4841
4703
|
"flags": {
|
|
4842
4704
|
"config": {
|
|
@@ -4867,46 +4729,50 @@
|
|
|
4867
4729
|
"required": false,
|
|
4868
4730
|
"allowNo": false,
|
|
4869
4731
|
"type": "boolean"
|
|
4870
|
-
},
|
|
4871
|
-
"
|
|
4872
|
-
"char": "
|
|
4873
|
-
"description": "
|
|
4874
|
-
"name": "
|
|
4732
|
+
},
|
|
4733
|
+
"directory": {
|
|
4734
|
+
"char": "d",
|
|
4735
|
+
"description": "Output directory for pulled documents (defaults to current directory)",
|
|
4736
|
+
"name": "directory",
|
|
4875
4737
|
"required": false,
|
|
4738
|
+
"default": ".",
|
|
4876
4739
|
"hasDynamicHelp": false,
|
|
4877
4740
|
"multiple": false,
|
|
4878
4741
|
"type": "option"
|
|
4879
4742
|
},
|
|
4880
|
-
"
|
|
4881
|
-
"description": "
|
|
4882
|
-
"name": "
|
|
4743
|
+
"draft": {
|
|
4744
|
+
"description": "Include draft versions",
|
|
4745
|
+
"name": "draft",
|
|
4883
4746
|
"required": false,
|
|
4884
|
-
"
|
|
4885
|
-
"
|
|
4886
|
-
"options": [
|
|
4887
|
-
"function",
|
|
4888
|
-
"query",
|
|
4889
|
-
"middleware"
|
|
4890
|
-
],
|
|
4891
|
-
"type": "option"
|
|
4747
|
+
"allowNo": false,
|
|
4748
|
+
"type": "boolean"
|
|
4892
4749
|
},
|
|
4893
|
-
"
|
|
4894
|
-
"
|
|
4895
|
-
"
|
|
4896
|
-
"name": "output",
|
|
4750
|
+
"env": {
|
|
4751
|
+
"description": "Include environment variables",
|
|
4752
|
+
"name": "env",
|
|
4897
4753
|
"required": false,
|
|
4898
|
-
"
|
|
4754
|
+
"allowNo": false,
|
|
4755
|
+
"type": "boolean"
|
|
4756
|
+
},
|
|
4757
|
+
"records": {
|
|
4758
|
+
"description": "Include records",
|
|
4759
|
+
"name": "records",
|
|
4760
|
+
"required": false,
|
|
4761
|
+
"allowNo": false,
|
|
4762
|
+
"type": "boolean"
|
|
4763
|
+
},
|
|
4764
|
+
"tenant": {
|
|
4765
|
+
"char": "t",
|
|
4766
|
+
"description": "Tenant name to pull from",
|
|
4767
|
+
"name": "tenant",
|
|
4768
|
+
"required": true,
|
|
4899
4769
|
"hasDynamicHelp": false,
|
|
4900
4770
|
"multiple": false,
|
|
4901
|
-
"options": [
|
|
4902
|
-
"summary",
|
|
4903
|
-
"json"
|
|
4904
|
-
],
|
|
4905
4771
|
"type": "option"
|
|
4906
4772
|
},
|
|
4907
4773
|
"workspace": {
|
|
4908
4774
|
"char": "w",
|
|
4909
|
-
"description": "Workspace ID (
|
|
4775
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
4910
4776
|
"name": "workspace",
|
|
4911
4777
|
"required": false,
|
|
4912
4778
|
"hasDynamicHelp": false,
|
|
@@ -4916,7 +4782,7 @@
|
|
|
4916
4782
|
},
|
|
4917
4783
|
"hasDynamicHelp": false,
|
|
4918
4784
|
"hiddenAliases": [],
|
|
4919
|
-
"id": "
|
|
4785
|
+
"id": "tenant:pull",
|
|
4920
4786
|
"pluginAlias": "@xano/cli",
|
|
4921
4787
|
"pluginName": "@xano/cli",
|
|
4922
4788
|
"pluginType": "core",
|
|
@@ -4926,8 +4792,30 @@
|
|
|
4926
4792
|
"relativePath": [
|
|
4927
4793
|
"dist",
|
|
4928
4794
|
"commands",
|
|
4929
|
-
"
|
|
4930
|
-
"
|
|
4795
|
+
"tenant",
|
|
4796
|
+
"pull",
|
|
4797
|
+
"index.js"
|
|
4798
|
+
]
|
|
4799
|
+
},
|
|
4800
|
+
"tenant:push": {
|
|
4801
|
+
"aliases": [],
|
|
4802
|
+
"args": {},
|
|
4803
|
+
"description": "Direct tenant push is not supported. Deploy through a release or use the sandbox (xano sandbox push).",
|
|
4804
|
+
"flags": {},
|
|
4805
|
+
"hasDynamicHelp": false,
|
|
4806
|
+
"hiddenAliases": [],
|
|
4807
|
+
"id": "tenant:push",
|
|
4808
|
+
"pluginAlias": "@xano/cli",
|
|
4809
|
+
"pluginName": "@xano/cli",
|
|
4810
|
+
"pluginType": "core",
|
|
4811
|
+
"strict": true,
|
|
4812
|
+
"enableJsonFlag": false,
|
|
4813
|
+
"isESM": true,
|
|
4814
|
+
"relativePath": [
|
|
4815
|
+
"dist",
|
|
4816
|
+
"commands",
|
|
4817
|
+
"tenant",
|
|
4818
|
+
"push",
|
|
4931
4819
|
"index.js"
|
|
4932
4820
|
]
|
|
4933
4821
|
},
|
|
@@ -5292,13 +5180,20 @@
|
|
|
5292
5180
|
"index.js"
|
|
5293
5181
|
]
|
|
5294
5182
|
},
|
|
5295
|
-
"
|
|
5183
|
+
"workspace:create": {
|
|
5296
5184
|
"aliases": [],
|
|
5297
|
-
"args": {
|
|
5298
|
-
|
|
5185
|
+
"args": {
|
|
5186
|
+
"name": {
|
|
5187
|
+
"description": "Name of the workspace",
|
|
5188
|
+
"name": "name",
|
|
5189
|
+
"required": true
|
|
5190
|
+
}
|
|
5191
|
+
},
|
|
5192
|
+
"description": "Create a new workspace via the Xano Metadata API",
|
|
5299
5193
|
"examples": [
|
|
5300
|
-
"$ xano
|
|
5301
|
-
"$ xano
|
|
5194
|
+
"$ xano workspace create my-workspace\nCreated workspace: my-workspace (ID: 123)\n",
|
|
5195
|
+
"$ xano workspace create my-app --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
|
|
5196
|
+
"$ 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"
|
|
5302
5197
|
],
|
|
5303
5198
|
"flags": {
|
|
5304
5199
|
"config": {
|
|
@@ -5330,10 +5225,10 @@
|
|
|
5330
5225
|
"allowNo": false,
|
|
5331
5226
|
"type": "boolean"
|
|
5332
5227
|
},
|
|
5333
|
-
"
|
|
5334
|
-
"char": "
|
|
5335
|
-
"description": "
|
|
5336
|
-
"name": "
|
|
5228
|
+
"description": {
|
|
5229
|
+
"char": "d",
|
|
5230
|
+
"description": "Description for the workspace",
|
|
5231
|
+
"name": "description",
|
|
5337
5232
|
"required": false,
|
|
5338
5233
|
"hasDynamicHelp": false,
|
|
5339
5234
|
"multiple": false,
|
|
@@ -5352,20 +5247,11 @@
|
|
|
5352
5247
|
"json"
|
|
5353
5248
|
],
|
|
5354
5249
|
"type": "option"
|
|
5355
|
-
},
|
|
5356
|
-
"workspace": {
|
|
5357
|
-
"char": "w",
|
|
5358
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5359
|
-
"name": "workspace",
|
|
5360
|
-
"required": false,
|
|
5361
|
-
"hasDynamicHelp": false,
|
|
5362
|
-
"multiple": false,
|
|
5363
|
-
"type": "option"
|
|
5364
5250
|
}
|
|
5365
5251
|
},
|
|
5366
5252
|
"hasDynamicHelp": false,
|
|
5367
5253
|
"hiddenAliases": [],
|
|
5368
|
-
"id": "
|
|
5254
|
+
"id": "workspace:create",
|
|
5369
5255
|
"pluginAlias": "@xano/cli",
|
|
5370
5256
|
"pluginName": "@xano/cli",
|
|
5371
5257
|
"pluginType": "core",
|
|
@@ -5375,25 +5261,18 @@
|
|
|
5375
5261
|
"relativePath": [
|
|
5376
5262
|
"dist",
|
|
5377
5263
|
"commands",
|
|
5378
|
-
"
|
|
5379
|
-
"
|
|
5264
|
+
"workspace",
|
|
5265
|
+
"create",
|
|
5380
5266
|
"index.js"
|
|
5381
5267
|
]
|
|
5382
5268
|
},
|
|
5383
|
-
"
|
|
5269
|
+
"workflow_test:run_all": {
|
|
5384
5270
|
"aliases": [],
|
|
5385
|
-
"args": {
|
|
5386
|
-
|
|
5387
|
-
"description": "Name of the workspace",
|
|
5388
|
-
"name": "name",
|
|
5389
|
-
"required": true
|
|
5390
|
-
}
|
|
5391
|
-
},
|
|
5392
|
-
"description": "Create a new workspace via the Xano Metadata API",
|
|
5271
|
+
"args": {},
|
|
5272
|
+
"description": "Run all workflow tests in a workspace",
|
|
5393
5273
|
"examples": [
|
|
5394
|
-
"$ xano
|
|
5395
|
-
"$ xano
|
|
5396
|
-
"$ 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"
|
|
5274
|
+
"$ 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",
|
|
5275
|
+
"$ xano workflow-test run-all --branch main -o json"
|
|
5397
5276
|
],
|
|
5398
5277
|
"flags": {
|
|
5399
5278
|
"config": {
|
|
@@ -5425,10 +5304,10 @@
|
|
|
5425
5304
|
"allowNo": false,
|
|
5426
5305
|
"type": "boolean"
|
|
5427
5306
|
},
|
|
5428
|
-
"
|
|
5429
|
-
"char": "
|
|
5430
|
-
"description": "
|
|
5431
|
-
"name": "
|
|
5307
|
+
"branch": {
|
|
5308
|
+
"char": "b",
|
|
5309
|
+
"description": "Filter by branch name",
|
|
5310
|
+
"name": "branch",
|
|
5432
5311
|
"required": false,
|
|
5433
5312
|
"hasDynamicHelp": false,
|
|
5434
5313
|
"multiple": false,
|
|
@@ -5447,11 +5326,20 @@
|
|
|
5447
5326
|
"json"
|
|
5448
5327
|
],
|
|
5449
5328
|
"type": "option"
|
|
5329
|
+
},
|
|
5330
|
+
"workspace": {
|
|
5331
|
+
"char": "w",
|
|
5332
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5333
|
+
"name": "workspace",
|
|
5334
|
+
"required": false,
|
|
5335
|
+
"hasDynamicHelp": false,
|
|
5336
|
+
"multiple": false,
|
|
5337
|
+
"type": "option"
|
|
5450
5338
|
}
|
|
5451
5339
|
},
|
|
5452
5340
|
"hasDynamicHelp": false,
|
|
5453
5341
|
"hiddenAliases": [],
|
|
5454
|
-
"id": "
|
|
5342
|
+
"id": "workflow_test:run_all",
|
|
5455
5343
|
"pluginAlias": "@xano/cli",
|
|
5456
5344
|
"pluginName": "@xano/cli",
|
|
5457
5345
|
"pluginType": "core",
|
|
@@ -5461,8 +5349,8 @@
|
|
|
5461
5349
|
"relativePath": [
|
|
5462
5350
|
"dist",
|
|
5463
5351
|
"commands",
|
|
5464
|
-
"
|
|
5465
|
-
"
|
|
5352
|
+
"workflow_test",
|
|
5353
|
+
"run_all",
|
|
5466
5354
|
"index.js"
|
|
5467
5355
|
]
|
|
5468
5356
|
},
|
|
@@ -6105,7 +5993,106 @@
|
|
|
6105
5993
|
},
|
|
6106
5994
|
"hasDynamicHelp": false,
|
|
6107
5995
|
"hiddenAliases": [],
|
|
6108
|
-
"id": "workspace:push",
|
|
5996
|
+
"id": "workspace:push",
|
|
5997
|
+
"pluginAlias": "@xano/cli",
|
|
5998
|
+
"pluginName": "@xano/cli",
|
|
5999
|
+
"pluginType": "core",
|
|
6000
|
+
"strict": true,
|
|
6001
|
+
"enableJsonFlag": false,
|
|
6002
|
+
"isESM": true,
|
|
6003
|
+
"relativePath": [
|
|
6004
|
+
"dist",
|
|
6005
|
+
"commands",
|
|
6006
|
+
"workspace",
|
|
6007
|
+
"push",
|
|
6008
|
+
"index.js"
|
|
6009
|
+
]
|
|
6010
|
+
},
|
|
6011
|
+
"static_host:list": {
|
|
6012
|
+
"aliases": [],
|
|
6013
|
+
"args": {},
|
|
6014
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
6015
|
+
"examples": [
|
|
6016
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
6017
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
6018
|
+
"$ xano static_host:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"my-static-host\",\n \"domain\": \"example.com\"\n }\n]\n",
|
|
6019
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
6020
|
+
],
|
|
6021
|
+
"flags": {
|
|
6022
|
+
"config": {
|
|
6023
|
+
"char": "c",
|
|
6024
|
+
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
6025
|
+
"env": "XANO_CONFIG",
|
|
6026
|
+
"name": "config",
|
|
6027
|
+
"required": false,
|
|
6028
|
+
"hasDynamicHelp": false,
|
|
6029
|
+
"multiple": false,
|
|
6030
|
+
"type": "option"
|
|
6031
|
+
},
|
|
6032
|
+
"profile": {
|
|
6033
|
+
"char": "p",
|
|
6034
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
6035
|
+
"env": "XANO_PROFILE",
|
|
6036
|
+
"name": "profile",
|
|
6037
|
+
"required": false,
|
|
6038
|
+
"hasDynamicHelp": false,
|
|
6039
|
+
"multiple": false,
|
|
6040
|
+
"type": "option"
|
|
6041
|
+
},
|
|
6042
|
+
"verbose": {
|
|
6043
|
+
"char": "v",
|
|
6044
|
+
"description": "Show detailed request/response information",
|
|
6045
|
+
"env": "XANO_VERBOSE",
|
|
6046
|
+
"name": "verbose",
|
|
6047
|
+
"required": false,
|
|
6048
|
+
"allowNo": false,
|
|
6049
|
+
"type": "boolean"
|
|
6050
|
+
},
|
|
6051
|
+
"output": {
|
|
6052
|
+
"char": "o",
|
|
6053
|
+
"description": "Output format",
|
|
6054
|
+
"name": "output",
|
|
6055
|
+
"required": false,
|
|
6056
|
+
"default": "summary",
|
|
6057
|
+
"hasDynamicHelp": false,
|
|
6058
|
+
"multiple": false,
|
|
6059
|
+
"options": [
|
|
6060
|
+
"summary",
|
|
6061
|
+
"json"
|
|
6062
|
+
],
|
|
6063
|
+
"type": "option"
|
|
6064
|
+
},
|
|
6065
|
+
"page": {
|
|
6066
|
+
"description": "Page number for pagination",
|
|
6067
|
+
"name": "page",
|
|
6068
|
+
"required": false,
|
|
6069
|
+
"default": 1,
|
|
6070
|
+
"hasDynamicHelp": false,
|
|
6071
|
+
"multiple": false,
|
|
6072
|
+
"type": "option"
|
|
6073
|
+
},
|
|
6074
|
+
"per_page": {
|
|
6075
|
+
"description": "Number of results per page",
|
|
6076
|
+
"name": "per_page",
|
|
6077
|
+
"required": false,
|
|
6078
|
+
"default": 50,
|
|
6079
|
+
"hasDynamicHelp": false,
|
|
6080
|
+
"multiple": false,
|
|
6081
|
+
"type": "option"
|
|
6082
|
+
},
|
|
6083
|
+
"workspace": {
|
|
6084
|
+
"char": "w",
|
|
6085
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
6086
|
+
"name": "workspace",
|
|
6087
|
+
"required": false,
|
|
6088
|
+
"hasDynamicHelp": false,
|
|
6089
|
+
"multiple": false,
|
|
6090
|
+
"type": "option"
|
|
6091
|
+
}
|
|
6092
|
+
},
|
|
6093
|
+
"hasDynamicHelp": false,
|
|
6094
|
+
"hiddenAliases": [],
|
|
6095
|
+
"id": "static_host:list",
|
|
6109
6096
|
"pluginAlias": "@xano/cli",
|
|
6110
6097
|
"pluginName": "@xano/cli",
|
|
6111
6098
|
"pluginType": "core",
|
|
@@ -6115,8 +6102,8 @@
|
|
|
6115
6102
|
"relativePath": [
|
|
6116
6103
|
"dist",
|
|
6117
6104
|
"commands",
|
|
6118
|
-
"
|
|
6119
|
-
"
|
|
6105
|
+
"static_host",
|
|
6106
|
+
"list",
|
|
6120
6107
|
"index.js"
|
|
6121
6108
|
]
|
|
6122
6109
|
},
|
|
@@ -6523,263 +6510,13 @@
|
|
|
6523
6510
|
"index.js"
|
|
6524
6511
|
]
|
|
6525
6512
|
},
|
|
6526
|
-
"sandbox:env:list": {
|
|
6527
|
-
"aliases": [],
|
|
6528
|
-
"args": {},
|
|
6529
|
-
"description": "List environment variable keys for a sandbox environment",
|
|
6530
|
-
"examples": [
|
|
6531
|
-
"$ xano sandbox env list\nEnvironment variables for sandbox environment:\n - DATABASE_URL\n - API_KEY\n",
|
|
6532
|
-
"$ xano sandbox env list -o json"
|
|
6533
|
-
],
|
|
6534
|
-
"flags": {
|
|
6535
|
-
"config": {
|
|
6536
|
-
"char": "c",
|
|
6537
|
-
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
6538
|
-
"env": "XANO_CONFIG",
|
|
6539
|
-
"name": "config",
|
|
6540
|
-
"required": false,
|
|
6541
|
-
"hasDynamicHelp": false,
|
|
6542
|
-
"multiple": false,
|
|
6543
|
-
"type": "option"
|
|
6544
|
-
},
|
|
6545
|
-
"profile": {
|
|
6546
|
-
"char": "p",
|
|
6547
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
6548
|
-
"env": "XANO_PROFILE",
|
|
6549
|
-
"name": "profile",
|
|
6550
|
-
"required": false,
|
|
6551
|
-
"hasDynamicHelp": false,
|
|
6552
|
-
"multiple": false,
|
|
6553
|
-
"type": "option"
|
|
6554
|
-
},
|
|
6555
|
-
"verbose": {
|
|
6556
|
-
"char": "v",
|
|
6557
|
-
"description": "Show detailed request/response information",
|
|
6558
|
-
"env": "XANO_VERBOSE",
|
|
6559
|
-
"name": "verbose",
|
|
6560
|
-
"required": false,
|
|
6561
|
-
"allowNo": false,
|
|
6562
|
-
"type": "boolean"
|
|
6563
|
-
},
|
|
6564
|
-
"output": {
|
|
6565
|
-
"char": "o",
|
|
6566
|
-
"description": "Output format",
|
|
6567
|
-
"name": "output",
|
|
6568
|
-
"required": false,
|
|
6569
|
-
"default": "summary",
|
|
6570
|
-
"hasDynamicHelp": false,
|
|
6571
|
-
"multiple": false,
|
|
6572
|
-
"options": [
|
|
6573
|
-
"summary",
|
|
6574
|
-
"json"
|
|
6575
|
-
],
|
|
6576
|
-
"type": "option"
|
|
6577
|
-
}
|
|
6578
|
-
},
|
|
6579
|
-
"hasDynamicHelp": false,
|
|
6580
|
-
"hiddenAliases": [],
|
|
6581
|
-
"id": "sandbox:env:list",
|
|
6582
|
-
"pluginAlias": "@xano/cli",
|
|
6583
|
-
"pluginName": "@xano/cli",
|
|
6584
|
-
"pluginType": "core",
|
|
6585
|
-
"strict": true,
|
|
6586
|
-
"enableJsonFlag": false,
|
|
6587
|
-
"isESM": true,
|
|
6588
|
-
"relativePath": [
|
|
6589
|
-
"dist",
|
|
6590
|
-
"commands",
|
|
6591
|
-
"sandbox",
|
|
6592
|
-
"env",
|
|
6593
|
-
"list",
|
|
6594
|
-
"index.js"
|
|
6595
|
-
]
|
|
6596
|
-
},
|
|
6597
|
-
"sandbox:env:set_all": {
|
|
6598
|
-
"aliases": [],
|
|
6599
|
-
"args": {},
|
|
6600
|
-
"description": "Set all environment variables for a sandbox environment from a YAML file (replaces all existing)",
|
|
6601
|
-
"examples": [
|
|
6602
|
-
"$ xano sandbox env set_all\nReads from env_<tenant>.yaml\n",
|
|
6603
|
-
"$ xano sandbox env set_all --file ./my-env.yaml",
|
|
6604
|
-
"$ xano sandbox env set_all -o json"
|
|
6605
|
-
],
|
|
6606
|
-
"flags": {
|
|
6607
|
-
"config": {
|
|
6608
|
-
"char": "c",
|
|
6609
|
-
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
6610
|
-
"env": "XANO_CONFIG",
|
|
6611
|
-
"name": "config",
|
|
6612
|
-
"required": false,
|
|
6613
|
-
"hasDynamicHelp": false,
|
|
6614
|
-
"multiple": false,
|
|
6615
|
-
"type": "option"
|
|
6616
|
-
},
|
|
6617
|
-
"profile": {
|
|
6618
|
-
"char": "p",
|
|
6619
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
6620
|
-
"env": "XANO_PROFILE",
|
|
6621
|
-
"name": "profile",
|
|
6622
|
-
"required": false,
|
|
6623
|
-
"hasDynamicHelp": false,
|
|
6624
|
-
"multiple": false,
|
|
6625
|
-
"type": "option"
|
|
6626
|
-
},
|
|
6627
|
-
"verbose": {
|
|
6628
|
-
"char": "v",
|
|
6629
|
-
"description": "Show detailed request/response information",
|
|
6630
|
-
"env": "XANO_VERBOSE",
|
|
6631
|
-
"name": "verbose",
|
|
6632
|
-
"required": false,
|
|
6633
|
-
"allowNo": false,
|
|
6634
|
-
"type": "boolean"
|
|
6635
|
-
},
|
|
6636
|
-
"clean": {
|
|
6637
|
-
"description": "Remove the source file after successful upload",
|
|
6638
|
-
"name": "clean",
|
|
6639
|
-
"required": false,
|
|
6640
|
-
"allowNo": false,
|
|
6641
|
-
"type": "boolean"
|
|
6642
|
-
},
|
|
6643
|
-
"file": {
|
|
6644
|
-
"char": "f",
|
|
6645
|
-
"description": "Path to env file (default: env_<sandbox_name>.yaml)",
|
|
6646
|
-
"name": "file",
|
|
6647
|
-
"required": false,
|
|
6648
|
-
"hasDynamicHelp": false,
|
|
6649
|
-
"multiple": false,
|
|
6650
|
-
"type": "option"
|
|
6651
|
-
},
|
|
6652
|
-
"output": {
|
|
6653
|
-
"char": "o",
|
|
6654
|
-
"description": "Output format",
|
|
6655
|
-
"name": "output",
|
|
6656
|
-
"required": false,
|
|
6657
|
-
"default": "summary",
|
|
6658
|
-
"hasDynamicHelp": false,
|
|
6659
|
-
"multiple": false,
|
|
6660
|
-
"options": [
|
|
6661
|
-
"summary",
|
|
6662
|
-
"json"
|
|
6663
|
-
],
|
|
6664
|
-
"type": "option"
|
|
6665
|
-
}
|
|
6666
|
-
},
|
|
6667
|
-
"hasDynamicHelp": false,
|
|
6668
|
-
"hiddenAliases": [],
|
|
6669
|
-
"id": "sandbox:env:set_all",
|
|
6670
|
-
"pluginAlias": "@xano/cli",
|
|
6671
|
-
"pluginName": "@xano/cli",
|
|
6672
|
-
"pluginType": "core",
|
|
6673
|
-
"strict": true,
|
|
6674
|
-
"enableJsonFlag": false,
|
|
6675
|
-
"isESM": true,
|
|
6676
|
-
"relativePath": [
|
|
6677
|
-
"dist",
|
|
6678
|
-
"commands",
|
|
6679
|
-
"sandbox",
|
|
6680
|
-
"env",
|
|
6681
|
-
"set_all",
|
|
6682
|
-
"index.js"
|
|
6683
|
-
]
|
|
6684
|
-
},
|
|
6685
|
-
"sandbox:license:get": {
|
|
6686
|
-
"aliases": [],
|
|
6687
|
-
"args": {},
|
|
6688
|
-
"description": "Get the license for a sandbox environment",
|
|
6689
|
-
"examples": [
|
|
6690
|
-
"$ xano sandbox license get\nLicense saved to license_<tenant>.yaml\n",
|
|
6691
|
-
"$ xano sandbox license get --file ./my-license.yaml",
|
|
6692
|
-
"$ xano sandbox license get --view",
|
|
6693
|
-
"$ xano sandbox license get -o json"
|
|
6694
|
-
],
|
|
6695
|
-
"flags": {
|
|
6696
|
-
"config": {
|
|
6697
|
-
"char": "c",
|
|
6698
|
-
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
6699
|
-
"env": "XANO_CONFIG",
|
|
6700
|
-
"name": "config",
|
|
6701
|
-
"required": false,
|
|
6702
|
-
"hasDynamicHelp": false,
|
|
6703
|
-
"multiple": false,
|
|
6704
|
-
"type": "option"
|
|
6705
|
-
},
|
|
6706
|
-
"profile": {
|
|
6707
|
-
"char": "p",
|
|
6708
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
6709
|
-
"env": "XANO_PROFILE",
|
|
6710
|
-
"name": "profile",
|
|
6711
|
-
"required": false,
|
|
6712
|
-
"hasDynamicHelp": false,
|
|
6713
|
-
"multiple": false,
|
|
6714
|
-
"type": "option"
|
|
6715
|
-
},
|
|
6716
|
-
"verbose": {
|
|
6717
|
-
"char": "v",
|
|
6718
|
-
"description": "Show detailed request/response information",
|
|
6719
|
-
"env": "XANO_VERBOSE",
|
|
6720
|
-
"name": "verbose",
|
|
6721
|
-
"required": false,
|
|
6722
|
-
"allowNo": false,
|
|
6723
|
-
"type": "boolean"
|
|
6724
|
-
},
|
|
6725
|
-
"file": {
|
|
6726
|
-
"char": "f",
|
|
6727
|
-
"description": "Output file path (default: license_<sandbox_name>.yaml)",
|
|
6728
|
-
"name": "file",
|
|
6729
|
-
"required": false,
|
|
6730
|
-
"hasDynamicHelp": false,
|
|
6731
|
-
"multiple": false,
|
|
6732
|
-
"type": "option"
|
|
6733
|
-
},
|
|
6734
|
-
"output": {
|
|
6735
|
-
"char": "o",
|
|
6736
|
-
"description": "Output format",
|
|
6737
|
-
"name": "output",
|
|
6738
|
-
"required": false,
|
|
6739
|
-
"default": "summary",
|
|
6740
|
-
"hasDynamicHelp": false,
|
|
6741
|
-
"multiple": false,
|
|
6742
|
-
"options": [
|
|
6743
|
-
"summary",
|
|
6744
|
-
"json"
|
|
6745
|
-
],
|
|
6746
|
-
"type": "option"
|
|
6747
|
-
},
|
|
6748
|
-
"view": {
|
|
6749
|
-
"description": "Print license to stdout instead of saving to file",
|
|
6750
|
-
"name": "view",
|
|
6751
|
-
"required": false,
|
|
6752
|
-
"allowNo": false,
|
|
6753
|
-
"type": "boolean"
|
|
6754
|
-
}
|
|
6755
|
-
},
|
|
6756
|
-
"hasDynamicHelp": false,
|
|
6757
|
-
"hiddenAliases": [],
|
|
6758
|
-
"id": "sandbox:license:get",
|
|
6759
|
-
"pluginAlias": "@xano/cli",
|
|
6760
|
-
"pluginName": "@xano/cli",
|
|
6761
|
-
"pluginType": "core",
|
|
6762
|
-
"strict": true,
|
|
6763
|
-
"enableJsonFlag": false,
|
|
6764
|
-
"isESM": true,
|
|
6765
|
-
"relativePath": [
|
|
6766
|
-
"dist",
|
|
6767
|
-
"commands",
|
|
6768
|
-
"sandbox",
|
|
6769
|
-
"license",
|
|
6770
|
-
"get",
|
|
6771
|
-
"index.js"
|
|
6772
|
-
]
|
|
6773
|
-
},
|
|
6774
|
-
"sandbox:license:set": {
|
|
6513
|
+
"sandbox:env:list": {
|
|
6775
6514
|
"aliases": [],
|
|
6776
6515
|
"args": {},
|
|
6777
|
-
"description": "
|
|
6516
|
+
"description": "List environment variable keys for a sandbox environment",
|
|
6778
6517
|
"examples": [
|
|
6779
|
-
"$ xano sandbox
|
|
6780
|
-
"$ xano sandbox
|
|
6781
|
-
"$ xano sandbox license set --value 'key: value'",
|
|
6782
|
-
"$ xano sandbox license set -o json"
|
|
6518
|
+
"$ xano sandbox env list\nEnvironment variables for sandbox environment:\n - DATABASE_URL\n - API_KEY\n",
|
|
6519
|
+
"$ xano sandbox env list -o json"
|
|
6783
6520
|
],
|
|
6784
6521
|
"flags": {
|
|
6785
6522
|
"config": {
|
|
@@ -6811,28 +6548,6 @@
|
|
|
6811
6548
|
"allowNo": false,
|
|
6812
6549
|
"type": "boolean"
|
|
6813
6550
|
},
|
|
6814
|
-
"clean": {
|
|
6815
|
-
"description": "Remove the source file after successful upload",
|
|
6816
|
-
"exclusive": [
|
|
6817
|
-
"value"
|
|
6818
|
-
],
|
|
6819
|
-
"name": "clean",
|
|
6820
|
-
"required": false,
|
|
6821
|
-
"allowNo": false,
|
|
6822
|
-
"type": "boolean"
|
|
6823
|
-
},
|
|
6824
|
-
"file": {
|
|
6825
|
-
"char": "f",
|
|
6826
|
-
"description": "Path to license file (default: license_<sandbox_name>.yaml)",
|
|
6827
|
-
"exclusive": [
|
|
6828
|
-
"value"
|
|
6829
|
-
],
|
|
6830
|
-
"name": "file",
|
|
6831
|
-
"required": false,
|
|
6832
|
-
"hasDynamicHelp": false,
|
|
6833
|
-
"multiple": false,
|
|
6834
|
-
"type": "option"
|
|
6835
|
-
},
|
|
6836
6551
|
"output": {
|
|
6837
6552
|
"char": "o",
|
|
6838
6553
|
"description": "Output format",
|
|
@@ -6846,23 +6561,11 @@
|
|
|
6846
6561
|
"json"
|
|
6847
6562
|
],
|
|
6848
6563
|
"type": "option"
|
|
6849
|
-
},
|
|
6850
|
-
"value": {
|
|
6851
|
-
"description": "Inline license value",
|
|
6852
|
-
"exclusive": [
|
|
6853
|
-
"file",
|
|
6854
|
-
"clean"
|
|
6855
|
-
],
|
|
6856
|
-
"name": "value",
|
|
6857
|
-
"required": false,
|
|
6858
|
-
"hasDynamicHelp": false,
|
|
6859
|
-
"multiple": false,
|
|
6860
|
-
"type": "option"
|
|
6861
6564
|
}
|
|
6862
6565
|
},
|
|
6863
6566
|
"hasDynamicHelp": false,
|
|
6864
6567
|
"hiddenAliases": [],
|
|
6865
|
-
"id": "sandbox:
|
|
6568
|
+
"id": "sandbox:env:list",
|
|
6866
6569
|
"pluginAlias": "@xano/cli",
|
|
6867
6570
|
"pluginName": "@xano/cli",
|
|
6868
6571
|
"pluginType": "core",
|
|
@@ -6873,18 +6576,19 @@
|
|
|
6873
6576
|
"dist",
|
|
6874
6577
|
"commands",
|
|
6875
6578
|
"sandbox",
|
|
6876
|
-
"
|
|
6877
|
-
"
|
|
6579
|
+
"env",
|
|
6580
|
+
"list",
|
|
6878
6581
|
"index.js"
|
|
6879
6582
|
]
|
|
6880
6583
|
},
|
|
6881
|
-
"sandbox:
|
|
6584
|
+
"sandbox:env:set_all": {
|
|
6882
6585
|
"aliases": [],
|
|
6883
6586
|
"args": {},
|
|
6884
|
-
"description": "
|
|
6587
|
+
"description": "Set all environment variables for a sandbox environment from a YAML file (replaces all existing)",
|
|
6885
6588
|
"examples": [
|
|
6886
|
-
"$ xano sandbox
|
|
6887
|
-
"$ xano sandbox
|
|
6589
|
+
"$ xano sandbox env set_all\nReads from env_<tenant>.yaml\n",
|
|
6590
|
+
"$ xano sandbox env set_all --file ./my-env.yaml",
|
|
6591
|
+
"$ xano sandbox env set_all -o json"
|
|
6888
6592
|
],
|
|
6889
6593
|
"flags": {
|
|
6890
6594
|
"config": {
|
|
@@ -6916,26 +6620,20 @@
|
|
|
6916
6620
|
"allowNo": false,
|
|
6917
6621
|
"type": "boolean"
|
|
6918
6622
|
},
|
|
6919
|
-
"
|
|
6920
|
-
"
|
|
6921
|
-
"
|
|
6922
|
-
"name": "branch",
|
|
6623
|
+
"clean": {
|
|
6624
|
+
"description": "Remove the source file after successful upload",
|
|
6625
|
+
"name": "clean",
|
|
6923
6626
|
"required": false,
|
|
6924
|
-
"
|
|
6925
|
-
"
|
|
6926
|
-
"type": "option"
|
|
6627
|
+
"allowNo": false,
|
|
6628
|
+
"type": "boolean"
|
|
6927
6629
|
},
|
|
6928
|
-
"
|
|
6929
|
-
"
|
|
6930
|
-
"
|
|
6630
|
+
"file": {
|
|
6631
|
+
"char": "f",
|
|
6632
|
+
"description": "Path to env file (default: env_<sandbox_name>.yaml)",
|
|
6633
|
+
"name": "file",
|
|
6931
6634
|
"required": false,
|
|
6932
6635
|
"hasDynamicHelp": false,
|
|
6933
6636
|
"multiple": false,
|
|
6934
|
-
"options": [
|
|
6935
|
-
"function",
|
|
6936
|
-
"query",
|
|
6937
|
-
"middleware"
|
|
6938
|
-
],
|
|
6939
6637
|
"type": "option"
|
|
6940
6638
|
},
|
|
6941
6639
|
"output": {
|
|
@@ -6955,7 +6653,7 @@
|
|
|
6955
6653
|
},
|
|
6956
6654
|
"hasDynamicHelp": false,
|
|
6957
6655
|
"hiddenAliases": [],
|
|
6958
|
-
"id": "sandbox:
|
|
6656
|
+
"id": "sandbox:env:set_all",
|
|
6959
6657
|
"pluginAlias": "@xano/cli",
|
|
6960
6658
|
"pluginName": "@xano/cli",
|
|
6961
6659
|
"pluginType": "core",
|
|
@@ -6966,24 +6664,20 @@
|
|
|
6966
6664
|
"dist",
|
|
6967
6665
|
"commands",
|
|
6968
6666
|
"sandbox",
|
|
6969
|
-
"
|
|
6970
|
-
"
|
|
6667
|
+
"env",
|
|
6668
|
+
"set_all",
|
|
6971
6669
|
"index.js"
|
|
6972
6670
|
]
|
|
6973
6671
|
},
|
|
6974
|
-
"sandbox:
|
|
6672
|
+
"sandbox:license:get": {
|
|
6975
6673
|
"aliases": [],
|
|
6976
|
-
"args": {
|
|
6977
|
-
|
|
6978
|
-
"description": "ID of the unit test to run",
|
|
6979
|
-
"name": "unit_test_id",
|
|
6980
|
-
"required": true
|
|
6981
|
-
}
|
|
6982
|
-
},
|
|
6983
|
-
"description": "Run a unit test for a sandbox environment",
|
|
6674
|
+
"args": {},
|
|
6675
|
+
"description": "Get the license for a sandbox environment",
|
|
6984
6676
|
"examples": [
|
|
6985
|
-
"$ xano sandbox
|
|
6986
|
-
"$ xano sandbox
|
|
6677
|
+
"$ xano sandbox license get\nLicense saved to license_<tenant>.yaml\n",
|
|
6678
|
+
"$ xano sandbox license get --file ./my-license.yaml",
|
|
6679
|
+
"$ xano sandbox license get --view",
|
|
6680
|
+
"$ xano sandbox license get -o json"
|
|
6987
6681
|
],
|
|
6988
6682
|
"flags": {
|
|
6989
6683
|
"config": {
|
|
@@ -7015,6 +6709,15 @@
|
|
|
7015
6709
|
"allowNo": false,
|
|
7016
6710
|
"type": "boolean"
|
|
7017
6711
|
},
|
|
6712
|
+
"file": {
|
|
6713
|
+
"char": "f",
|
|
6714
|
+
"description": "Output file path (default: license_<sandbox_name>.yaml)",
|
|
6715
|
+
"name": "file",
|
|
6716
|
+
"required": false,
|
|
6717
|
+
"hasDynamicHelp": false,
|
|
6718
|
+
"multiple": false,
|
|
6719
|
+
"type": "option"
|
|
6720
|
+
},
|
|
7018
6721
|
"output": {
|
|
7019
6722
|
"char": "o",
|
|
7020
6723
|
"description": "Output format",
|
|
@@ -7028,11 +6731,18 @@
|
|
|
7028
6731
|
"json"
|
|
7029
6732
|
],
|
|
7030
6733
|
"type": "option"
|
|
6734
|
+
},
|
|
6735
|
+
"view": {
|
|
6736
|
+
"description": "Print license to stdout instead of saving to file",
|
|
6737
|
+
"name": "view",
|
|
6738
|
+
"required": false,
|
|
6739
|
+
"allowNo": false,
|
|
6740
|
+
"type": "boolean"
|
|
7031
6741
|
}
|
|
7032
6742
|
},
|
|
7033
6743
|
"hasDynamicHelp": false,
|
|
7034
6744
|
"hiddenAliases": [],
|
|
7035
|
-
"id": "sandbox:
|
|
6745
|
+
"id": "sandbox:license:get",
|
|
7036
6746
|
"pluginAlias": "@xano/cli",
|
|
7037
6747
|
"pluginName": "@xano/cli",
|
|
7038
6748
|
"pluginType": "core",
|
|
@@ -7043,18 +6753,18 @@
|
|
|
7043
6753
|
"dist",
|
|
7044
6754
|
"commands",
|
|
7045
6755
|
"sandbox",
|
|
7046
|
-
"
|
|
7047
|
-
"
|
|
6756
|
+
"license",
|
|
6757
|
+
"get",
|
|
7048
6758
|
"index.js"
|
|
7049
6759
|
]
|
|
7050
6760
|
},
|
|
7051
|
-
"sandbox:unit_test:
|
|
6761
|
+
"sandbox:unit_test:list": {
|
|
7052
6762
|
"aliases": [],
|
|
7053
6763
|
"args": {},
|
|
7054
|
-
"description": "
|
|
6764
|
+
"description": "List all unit tests for a sandbox environment",
|
|
7055
6765
|
"examples": [
|
|
7056
|
-
"$ xano sandbox unit-test
|
|
7057
|
-
"$ xano sandbox unit-test
|
|
6766
|
+
"$ xano sandbox unit-test list\nUnit tests:\n - my-test (ID: abc-123) [function: math]\n",
|
|
6767
|
+
"$ xano sandbox unit-test list -o json"
|
|
7058
6768
|
],
|
|
7059
6769
|
"flags": {
|
|
7060
6770
|
"config": {
|
|
@@ -7125,7 +6835,7 @@
|
|
|
7125
6835
|
},
|
|
7126
6836
|
"hasDynamicHelp": false,
|
|
7127
6837
|
"hiddenAliases": [],
|
|
7128
|
-
"id": "sandbox:unit_test:
|
|
6838
|
+
"id": "sandbox:unit_test:list",
|
|
7129
6839
|
"pluginAlias": "@xano/cli",
|
|
7130
6840
|
"pluginName": "@xano/cli",
|
|
7131
6841
|
"pluginType": "core",
|
|
@@ -7137,23 +6847,19 @@
|
|
|
7137
6847
|
"commands",
|
|
7138
6848
|
"sandbox",
|
|
7139
6849
|
"unit_test",
|
|
7140
|
-
"
|
|
6850
|
+
"list",
|
|
7141
6851
|
"index.js"
|
|
7142
6852
|
]
|
|
7143
6853
|
},
|
|
7144
|
-
"sandbox:
|
|
6854
|
+
"sandbox:license:set": {
|
|
7145
6855
|
"aliases": [],
|
|
7146
|
-
"args": {
|
|
7147
|
-
|
|
7148
|
-
"description": "ID of the workflow test to run",
|
|
7149
|
-
"name": "workflow_test_id",
|
|
7150
|
-
"required": true
|
|
7151
|
-
}
|
|
7152
|
-
},
|
|
7153
|
-
"description": "Run a workflow test for a sandbox environment",
|
|
6856
|
+
"args": {},
|
|
6857
|
+
"description": "Set/update the license for a sandbox environment",
|
|
7154
6858
|
"examples": [
|
|
7155
|
-
"$ xano sandbox
|
|
7156
|
-
"$ xano sandbox
|
|
6859
|
+
"$ xano sandbox license set\nReads from license_<tenant>.yaml\n",
|
|
6860
|
+
"$ xano sandbox license set --file ./license.yaml",
|
|
6861
|
+
"$ xano sandbox license set --value 'key: value'",
|
|
6862
|
+
"$ xano sandbox license set -o json"
|
|
7157
6863
|
],
|
|
7158
6864
|
"flags": {
|
|
7159
6865
|
"config": {
|
|
@@ -7185,6 +6891,28 @@
|
|
|
7185
6891
|
"allowNo": false,
|
|
7186
6892
|
"type": "boolean"
|
|
7187
6893
|
},
|
|
6894
|
+
"clean": {
|
|
6895
|
+
"description": "Remove the source file after successful upload",
|
|
6896
|
+
"exclusive": [
|
|
6897
|
+
"value"
|
|
6898
|
+
],
|
|
6899
|
+
"name": "clean",
|
|
6900
|
+
"required": false,
|
|
6901
|
+
"allowNo": false,
|
|
6902
|
+
"type": "boolean"
|
|
6903
|
+
},
|
|
6904
|
+
"file": {
|
|
6905
|
+
"char": "f",
|
|
6906
|
+
"description": "Path to license file (default: license_<sandbox_name>.yaml)",
|
|
6907
|
+
"exclusive": [
|
|
6908
|
+
"value"
|
|
6909
|
+
],
|
|
6910
|
+
"name": "file",
|
|
6911
|
+
"required": false,
|
|
6912
|
+
"hasDynamicHelp": false,
|
|
6913
|
+
"multiple": false,
|
|
6914
|
+
"type": "option"
|
|
6915
|
+
},
|
|
7188
6916
|
"output": {
|
|
7189
6917
|
"char": "o",
|
|
7190
6918
|
"description": "Output format",
|
|
@@ -7198,11 +6926,23 @@
|
|
|
7198
6926
|
"json"
|
|
7199
6927
|
],
|
|
7200
6928
|
"type": "option"
|
|
6929
|
+
},
|
|
6930
|
+
"value": {
|
|
6931
|
+
"description": "Inline license value",
|
|
6932
|
+
"exclusive": [
|
|
6933
|
+
"file",
|
|
6934
|
+
"clean"
|
|
6935
|
+
],
|
|
6936
|
+
"name": "value",
|
|
6937
|
+
"required": false,
|
|
6938
|
+
"hasDynamicHelp": false,
|
|
6939
|
+
"multiple": false,
|
|
6940
|
+
"type": "option"
|
|
7201
6941
|
}
|
|
7202
6942
|
},
|
|
7203
6943
|
"hasDynamicHelp": false,
|
|
7204
6944
|
"hiddenAliases": [],
|
|
7205
|
-
"id": "sandbox:
|
|
6945
|
+
"id": "sandbox:license:set",
|
|
7206
6946
|
"pluginAlias": "@xano/cli",
|
|
7207
6947
|
"pluginName": "@xano/cli",
|
|
7208
6948
|
"pluginType": "core",
|
|
@@ -7213,18 +6953,24 @@
|
|
|
7213
6953
|
"dist",
|
|
7214
6954
|
"commands",
|
|
7215
6955
|
"sandbox",
|
|
7216
|
-
"
|
|
7217
|
-
"
|
|
6956
|
+
"license",
|
|
6957
|
+
"set",
|
|
7218
6958
|
"index.js"
|
|
7219
6959
|
]
|
|
7220
6960
|
},
|
|
7221
|
-
"sandbox:
|
|
6961
|
+
"sandbox:unit_test:run": {
|
|
7222
6962
|
"aliases": [],
|
|
7223
|
-
"args": {
|
|
7224
|
-
|
|
6963
|
+
"args": {
|
|
6964
|
+
"unit_test_id": {
|
|
6965
|
+
"description": "ID of the unit test to run",
|
|
6966
|
+
"name": "unit_test_id",
|
|
6967
|
+
"required": true
|
|
6968
|
+
}
|
|
6969
|
+
},
|
|
6970
|
+
"description": "Run a unit test for a sandbox environment",
|
|
7225
6971
|
"examples": [
|
|
7226
|
-
"$ xano sandbox
|
|
7227
|
-
"$ xano sandbox
|
|
6972
|
+
"$ xano sandbox unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
|
|
6973
|
+
"$ xano sandbox unit-test run abc-123 -o json"
|
|
7228
6974
|
],
|
|
7229
6975
|
"flags": {
|
|
7230
6976
|
"config": {
|
|
@@ -7256,15 +7002,6 @@
|
|
|
7256
7002
|
"allowNo": false,
|
|
7257
7003
|
"type": "boolean"
|
|
7258
7004
|
},
|
|
7259
|
-
"branch": {
|
|
7260
|
-
"char": "b",
|
|
7261
|
-
"description": "Filter by branch name",
|
|
7262
|
-
"name": "branch",
|
|
7263
|
-
"required": false,
|
|
7264
|
-
"hasDynamicHelp": false,
|
|
7265
|
-
"multiple": false,
|
|
7266
|
-
"type": "option"
|
|
7267
|
-
},
|
|
7268
7005
|
"output": {
|
|
7269
7006
|
"char": "o",
|
|
7270
7007
|
"description": "Output format",
|
|
@@ -7282,7 +7019,7 @@
|
|
|
7282
7019
|
},
|
|
7283
7020
|
"hasDynamicHelp": false,
|
|
7284
7021
|
"hiddenAliases": [],
|
|
7285
|
-
"id": "sandbox:
|
|
7022
|
+
"id": "sandbox:unit_test:run",
|
|
7286
7023
|
"pluginAlias": "@xano/cli",
|
|
7287
7024
|
"pluginName": "@xano/cli",
|
|
7288
7025
|
"pluginType": "core",
|
|
@@ -7293,25 +7030,18 @@
|
|
|
7293
7030
|
"dist",
|
|
7294
7031
|
"commands",
|
|
7295
7032
|
"sandbox",
|
|
7296
|
-
"
|
|
7297
|
-
"
|
|
7033
|
+
"unit_test",
|
|
7034
|
+
"run",
|
|
7298
7035
|
"index.js"
|
|
7299
7036
|
]
|
|
7300
7037
|
},
|
|
7301
|
-
"
|
|
7038
|
+
"sandbox:unit_test:run_all": {
|
|
7302
7039
|
"aliases": [],
|
|
7303
|
-
"args": {
|
|
7304
|
-
|
|
7305
|
-
"description": "Static Host name",
|
|
7306
|
-
"name": "static_host",
|
|
7307
|
-
"required": true
|
|
7308
|
-
}
|
|
7309
|
-
},
|
|
7310
|
-
"description": "Create a new build for a static host",
|
|
7040
|
+
"args": {},
|
|
7041
|
+
"description": "Run all unit tests for a sandbox environment",
|
|
7311
7042
|
"examples": [
|
|
7312
|
-
"$ xano
|
|
7313
|
-
"$ xano
|
|
7314
|
-
"$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
|
|
7043
|
+
"$ xano sandbox unit-test run-all\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",
|
|
7044
|
+
"$ xano sandbox unit-test run-all -o json"
|
|
7315
7045
|
],
|
|
7316
7046
|
"flags": {
|
|
7317
7047
|
"config": {
|
|
@@ -7338,36 +7068,31 @@
|
|
|
7338
7068
|
"char": "v",
|
|
7339
7069
|
"description": "Show detailed request/response information",
|
|
7340
7070
|
"env": "XANO_VERBOSE",
|
|
7341
|
-
"name": "verbose",
|
|
7342
|
-
"required": false,
|
|
7343
|
-
"allowNo": false,
|
|
7344
|
-
"type": "boolean"
|
|
7345
|
-
},
|
|
7346
|
-
"description": {
|
|
7347
|
-
"char": "d",
|
|
7348
|
-
"description": "Build description",
|
|
7349
|
-
"name": "description",
|
|
7071
|
+
"name": "verbose",
|
|
7350
7072
|
"required": false,
|
|
7351
|
-
"
|
|
7352
|
-
"
|
|
7353
|
-
"type": "option"
|
|
7073
|
+
"allowNo": false,
|
|
7074
|
+
"type": "boolean"
|
|
7354
7075
|
},
|
|
7355
|
-
"
|
|
7356
|
-
"char": "
|
|
7357
|
-
"description": "
|
|
7358
|
-
"name": "
|
|
7359
|
-
"required":
|
|
7076
|
+
"branch": {
|
|
7077
|
+
"char": "b",
|
|
7078
|
+
"description": "Filter by branch name",
|
|
7079
|
+
"name": "branch",
|
|
7080
|
+
"required": false,
|
|
7360
7081
|
"hasDynamicHelp": false,
|
|
7361
7082
|
"multiple": false,
|
|
7362
7083
|
"type": "option"
|
|
7363
7084
|
},
|
|
7364
|
-
"
|
|
7365
|
-
"
|
|
7366
|
-
"
|
|
7367
|
-
"
|
|
7368
|
-
"required": true,
|
|
7085
|
+
"obj-type": {
|
|
7086
|
+
"description": "Filter by object type",
|
|
7087
|
+
"name": "obj-type",
|
|
7088
|
+
"required": false,
|
|
7369
7089
|
"hasDynamicHelp": false,
|
|
7370
7090
|
"multiple": false,
|
|
7091
|
+
"options": [
|
|
7092
|
+
"function",
|
|
7093
|
+
"query",
|
|
7094
|
+
"middleware"
|
|
7095
|
+
],
|
|
7371
7096
|
"type": "option"
|
|
7372
7097
|
},
|
|
7373
7098
|
"output": {
|
|
@@ -7383,20 +7108,11 @@
|
|
|
7383
7108
|
"json"
|
|
7384
7109
|
],
|
|
7385
7110
|
"type": "option"
|
|
7386
|
-
},
|
|
7387
|
-
"workspace": {
|
|
7388
|
-
"char": "w",
|
|
7389
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
7390
|
-
"name": "workspace",
|
|
7391
|
-
"required": false,
|
|
7392
|
-
"hasDynamicHelp": false,
|
|
7393
|
-
"multiple": false,
|
|
7394
|
-
"type": "option"
|
|
7395
7111
|
}
|
|
7396
7112
|
},
|
|
7397
7113
|
"hasDynamicHelp": false,
|
|
7398
7114
|
"hiddenAliases": [],
|
|
7399
|
-
"id": "
|
|
7115
|
+
"id": "sandbox:unit_test:run_all",
|
|
7400
7116
|
"pluginAlias": "@xano/cli",
|
|
7401
7117
|
"pluginName": "@xano/cli",
|
|
7402
7118
|
"pluginType": "core",
|
|
@@ -7406,19 +7122,19 @@
|
|
|
7406
7122
|
"relativePath": [
|
|
7407
7123
|
"dist",
|
|
7408
7124
|
"commands",
|
|
7409
|
-
"
|
|
7410
|
-
"
|
|
7411
|
-
"
|
|
7125
|
+
"sandbox",
|
|
7126
|
+
"unit_test",
|
|
7127
|
+
"run_all",
|
|
7412
7128
|
"index.js"
|
|
7413
7129
|
]
|
|
7414
7130
|
},
|
|
7415
|
-
"sandbox:workflow_test:
|
|
7131
|
+
"sandbox:workflow_test:list": {
|
|
7416
7132
|
"aliases": [],
|
|
7417
7133
|
"args": {},
|
|
7418
|
-
"description": "
|
|
7134
|
+
"description": "List workflow tests for a sandbox environment",
|
|
7419
7135
|
"examples": [
|
|
7420
|
-
"$ xano sandbox workflow-test
|
|
7421
|
-
"$ xano sandbox workflow-test
|
|
7136
|
+
"$ xano sandbox workflow-test list\nWorkflow tests:\n - my-test (ID: 1)\n",
|
|
7137
|
+
"$ xano sandbox workflow-test list -o json"
|
|
7422
7138
|
],
|
|
7423
7139
|
"flags": {
|
|
7424
7140
|
"config": {
|
|
@@ -7476,7 +7192,7 @@
|
|
|
7476
7192
|
},
|
|
7477
7193
|
"hasDynamicHelp": false,
|
|
7478
7194
|
"hiddenAliases": [],
|
|
7479
|
-
"id": "sandbox:workflow_test:
|
|
7195
|
+
"id": "sandbox:workflow_test:list",
|
|
7480
7196
|
"pluginAlias": "@xano/cli",
|
|
7481
7197
|
"pluginName": "@xano/cli",
|
|
7482
7198
|
"pluginType": "core",
|
|
@@ -7488,30 +7204,23 @@
|
|
|
7488
7204
|
"commands",
|
|
7489
7205
|
"sandbox",
|
|
7490
7206
|
"workflow_test",
|
|
7491
|
-
"
|
|
7207
|
+
"list",
|
|
7492
7208
|
"index.js"
|
|
7493
7209
|
]
|
|
7494
7210
|
},
|
|
7495
|
-
"
|
|
7211
|
+
"sandbox:workflow_test:run": {
|
|
7496
7212
|
"aliases": [],
|
|
7497
7213
|
"args": {
|
|
7498
|
-
"
|
|
7499
|
-
"description": "
|
|
7500
|
-
"name": "
|
|
7501
|
-
"required": true
|
|
7502
|
-
},
|
|
7503
|
-
"static_host": {
|
|
7504
|
-
"description": "Static Host name",
|
|
7505
|
-
"name": "static_host",
|
|
7214
|
+
"workflow_test_id": {
|
|
7215
|
+
"description": "ID of the workflow test to run",
|
|
7216
|
+
"name": "workflow_test_id",
|
|
7506
7217
|
"required": true
|
|
7507
7218
|
}
|
|
7508
7219
|
},
|
|
7509
|
-
"description": "
|
|
7220
|
+
"description": "Run a workflow test for a sandbox environment",
|
|
7510
7221
|
"examples": [
|
|
7511
|
-
"$ xano
|
|
7512
|
-
"$ xano
|
|
7513
|
-
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
7514
|
-
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
7222
|
+
"$ xano sandbox workflow-test run 42\nRunning workflow test 42...\nResult: PASS (0.25s)\n",
|
|
7223
|
+
"$ xano sandbox workflow-test run 42 -o json"
|
|
7515
7224
|
],
|
|
7516
7225
|
"flags": {
|
|
7517
7226
|
"config": {
|
|
@@ -7556,20 +7265,11 @@
|
|
|
7556
7265
|
"json"
|
|
7557
7266
|
],
|
|
7558
7267
|
"type": "option"
|
|
7559
|
-
},
|
|
7560
|
-
"workspace": {
|
|
7561
|
-
"char": "w",
|
|
7562
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
7563
|
-
"name": "workspace",
|
|
7564
|
-
"required": false,
|
|
7565
|
-
"hasDynamicHelp": false,
|
|
7566
|
-
"multiple": false,
|
|
7567
|
-
"type": "option"
|
|
7568
7268
|
}
|
|
7569
7269
|
},
|
|
7570
7270
|
"hasDynamicHelp": false,
|
|
7571
7271
|
"hiddenAliases": [],
|
|
7572
|
-
"id": "
|
|
7272
|
+
"id": "sandbox:workflow_test:run",
|
|
7573
7273
|
"pluginAlias": "@xano/cli",
|
|
7574
7274
|
"pluginName": "@xano/cli",
|
|
7575
7275
|
"pluginType": "core",
|
|
@@ -7579,27 +7279,19 @@
|
|
|
7579
7279
|
"relativePath": [
|
|
7580
7280
|
"dist",
|
|
7581
7281
|
"commands",
|
|
7582
|
-
"
|
|
7583
|
-
"
|
|
7584
|
-
"
|
|
7282
|
+
"sandbox",
|
|
7283
|
+
"workflow_test",
|
|
7284
|
+
"run",
|
|
7585
7285
|
"index.js"
|
|
7586
7286
|
]
|
|
7587
7287
|
},
|
|
7588
|
-
"
|
|
7288
|
+
"sandbox:workflow_test:run_all": {
|
|
7589
7289
|
"aliases": [],
|
|
7590
|
-
"args": {
|
|
7591
|
-
|
|
7592
|
-
"description": "Static Host name",
|
|
7593
|
-
"name": "static_host",
|
|
7594
|
-
"required": true
|
|
7595
|
-
}
|
|
7596
|
-
},
|
|
7597
|
-
"description": "List all builds for a static host",
|
|
7290
|
+
"args": {},
|
|
7291
|
+
"description": "Run all workflow tests for a sandbox environment",
|
|
7598
7292
|
"examples": [
|
|
7599
|
-
"$ xano
|
|
7600
|
-
"$ xano
|
|
7601
|
-
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
7602
|
-
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
7293
|
+
"$ xano sandbox workflow-test run-all\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",
|
|
7294
|
+
"$ xano sandbox workflow-test run-all -o json"
|
|
7603
7295
|
],
|
|
7604
7296
|
"flags": {
|
|
7605
7297
|
"config": {
|
|
@@ -7631,6 +7323,15 @@
|
|
|
7631
7323
|
"allowNo": false,
|
|
7632
7324
|
"type": "boolean"
|
|
7633
7325
|
},
|
|
7326
|
+
"branch": {
|
|
7327
|
+
"char": "b",
|
|
7328
|
+
"description": "Filter by branch name",
|
|
7329
|
+
"name": "branch",
|
|
7330
|
+
"required": false,
|
|
7331
|
+
"hasDynamicHelp": false,
|
|
7332
|
+
"multiple": false,
|
|
7333
|
+
"type": "option"
|
|
7334
|
+
},
|
|
7634
7335
|
"output": {
|
|
7635
7336
|
"char": "o",
|
|
7636
7337
|
"description": "Output format",
|
|
@@ -7644,38 +7345,11 @@
|
|
|
7644
7345
|
"json"
|
|
7645
7346
|
],
|
|
7646
7347
|
"type": "option"
|
|
7647
|
-
},
|
|
7648
|
-
"page": {
|
|
7649
|
-
"description": "Page number for pagination",
|
|
7650
|
-
"name": "page",
|
|
7651
|
-
"required": false,
|
|
7652
|
-
"default": 1,
|
|
7653
|
-
"hasDynamicHelp": false,
|
|
7654
|
-
"multiple": false,
|
|
7655
|
-
"type": "option"
|
|
7656
|
-
},
|
|
7657
|
-
"per_page": {
|
|
7658
|
-
"description": "Number of results per page",
|
|
7659
|
-
"name": "per_page",
|
|
7660
|
-
"required": false,
|
|
7661
|
-
"default": 50,
|
|
7662
|
-
"hasDynamicHelp": false,
|
|
7663
|
-
"multiple": false,
|
|
7664
|
-
"type": "option"
|
|
7665
|
-
},
|
|
7666
|
-
"workspace": {
|
|
7667
|
-
"char": "w",
|
|
7668
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
7669
|
-
"name": "workspace",
|
|
7670
|
-
"required": false,
|
|
7671
|
-
"hasDynamicHelp": false,
|
|
7672
|
-
"multiple": false,
|
|
7673
|
-
"type": "option"
|
|
7674
7348
|
}
|
|
7675
7349
|
},
|
|
7676
7350
|
"hasDynamicHelp": false,
|
|
7677
7351
|
"hiddenAliases": [],
|
|
7678
|
-
"id": "
|
|
7352
|
+
"id": "sandbox:workflow_test:run_all",
|
|
7679
7353
|
"pluginAlias": "@xano/cli",
|
|
7680
7354
|
"pluginName": "@xano/cli",
|
|
7681
7355
|
"pluginType": "core",
|
|
@@ -7685,25 +7359,26 @@
|
|
|
7685
7359
|
"relativePath": [
|
|
7686
7360
|
"dist",
|
|
7687
7361
|
"commands",
|
|
7688
|
-
"
|
|
7689
|
-
"
|
|
7690
|
-
"
|
|
7362
|
+
"sandbox",
|
|
7363
|
+
"workflow_test",
|
|
7364
|
+
"run_all",
|
|
7691
7365
|
"index.js"
|
|
7692
7366
|
]
|
|
7693
7367
|
},
|
|
7694
|
-
"tenant:backup:
|
|
7368
|
+
"tenant:backup:delete": {
|
|
7695
7369
|
"aliases": [],
|
|
7696
7370
|
"args": {
|
|
7697
7371
|
"tenant_name": {
|
|
7698
|
-
"description": "Tenant name
|
|
7372
|
+
"description": "Tenant name that owns the backup",
|
|
7699
7373
|
"name": "tenant_name",
|
|
7700
7374
|
"required": true
|
|
7701
7375
|
}
|
|
7702
7376
|
},
|
|
7703
|
-
"description": "
|
|
7377
|
+
"description": "Delete a tenant backup permanently. This action cannot be undone.",
|
|
7704
7378
|
"examples": [
|
|
7705
|
-
"$ xano tenant backup
|
|
7706
|
-
"$ xano tenant backup
|
|
7379
|
+
"$ 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",
|
|
7380
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
|
|
7381
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
7707
7382
|
],
|
|
7708
7383
|
"flags": {
|
|
7709
7384
|
"config": {
|
|
@@ -7735,16 +7410,22 @@
|
|
|
7735
7410
|
"allowNo": false,
|
|
7736
7411
|
"type": "boolean"
|
|
7737
7412
|
},
|
|
7738
|
-
"
|
|
7739
|
-
"
|
|
7740
|
-
"
|
|
7741
|
-
"
|
|
7742
|
-
"required": false,
|
|
7743
|
-
"default": "",
|
|
7413
|
+
"backup_id": {
|
|
7414
|
+
"description": "Backup ID to delete",
|
|
7415
|
+
"name": "backup_id",
|
|
7416
|
+
"required": true,
|
|
7744
7417
|
"hasDynamicHelp": false,
|
|
7745
7418
|
"multiple": false,
|
|
7746
7419
|
"type": "option"
|
|
7747
7420
|
},
|
|
7421
|
+
"force": {
|
|
7422
|
+
"char": "f",
|
|
7423
|
+
"description": "Skip confirmation prompt",
|
|
7424
|
+
"name": "force",
|
|
7425
|
+
"required": false,
|
|
7426
|
+
"allowNo": false,
|
|
7427
|
+
"type": "boolean"
|
|
7428
|
+
},
|
|
7748
7429
|
"output": {
|
|
7749
7430
|
"char": "o",
|
|
7750
7431
|
"description": "Output format",
|
|
@@ -7771,7 +7452,7 @@
|
|
|
7771
7452
|
},
|
|
7772
7453
|
"hasDynamicHelp": false,
|
|
7773
7454
|
"hiddenAliases": [],
|
|
7774
|
-
"id": "tenant:backup:
|
|
7455
|
+
"id": "tenant:backup:delete",
|
|
7775
7456
|
"pluginAlias": "@xano/cli",
|
|
7776
7457
|
"pluginName": "@xano/cli",
|
|
7777
7458
|
"pluginType": "core",
|
|
@@ -7783,24 +7464,23 @@
|
|
|
7783
7464
|
"commands",
|
|
7784
7465
|
"tenant",
|
|
7785
7466
|
"backup",
|
|
7786
|
-
"
|
|
7467
|
+
"delete",
|
|
7787
7468
|
"index.js"
|
|
7788
7469
|
]
|
|
7789
7470
|
},
|
|
7790
|
-
"tenant:backup:
|
|
7471
|
+
"tenant:backup:create": {
|
|
7791
7472
|
"aliases": [],
|
|
7792
7473
|
"args": {
|
|
7793
7474
|
"tenant_name": {
|
|
7794
|
-
"description": "Tenant name
|
|
7475
|
+
"description": "Tenant name to back up",
|
|
7795
7476
|
"name": "tenant_name",
|
|
7796
7477
|
"required": true
|
|
7797
7478
|
}
|
|
7798
7479
|
},
|
|
7799
|
-
"description": "
|
|
7480
|
+
"description": "Create a backup for a tenant",
|
|
7800
7481
|
"examples": [
|
|
7801
|
-
"$ xano tenant backup
|
|
7802
|
-
"$ xano tenant backup
|
|
7803
|
-
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
7482
|
+
"$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
|
|
7483
|
+
"$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
|
|
7804
7484
|
],
|
|
7805
7485
|
"flags": {
|
|
7806
7486
|
"config": {
|
|
@@ -7832,22 +7512,16 @@
|
|
|
7832
7512
|
"allowNo": false,
|
|
7833
7513
|
"type": "boolean"
|
|
7834
7514
|
},
|
|
7835
|
-
"
|
|
7836
|
-
"
|
|
7837
|
-
"
|
|
7838
|
-
"
|
|
7515
|
+
"description": {
|
|
7516
|
+
"char": "d",
|
|
7517
|
+
"description": "Backup description",
|
|
7518
|
+
"name": "description",
|
|
7519
|
+
"required": false,
|
|
7520
|
+
"default": "",
|
|
7839
7521
|
"hasDynamicHelp": false,
|
|
7840
7522
|
"multiple": false,
|
|
7841
7523
|
"type": "option"
|
|
7842
7524
|
},
|
|
7843
|
-
"force": {
|
|
7844
|
-
"char": "f",
|
|
7845
|
-
"description": "Skip confirmation prompt",
|
|
7846
|
-
"name": "force",
|
|
7847
|
-
"required": false,
|
|
7848
|
-
"allowNo": false,
|
|
7849
|
-
"type": "boolean"
|
|
7850
|
-
},
|
|
7851
7525
|
"output": {
|
|
7852
7526
|
"char": "o",
|
|
7853
7527
|
"description": "Output format",
|
|
@@ -7874,7 +7548,7 @@
|
|
|
7874
7548
|
},
|
|
7875
7549
|
"hasDynamicHelp": false,
|
|
7876
7550
|
"hiddenAliases": [],
|
|
7877
|
-
"id": "tenant:backup:
|
|
7551
|
+
"id": "tenant:backup:create",
|
|
7878
7552
|
"pluginAlias": "@xano/cli",
|
|
7879
7553
|
"pluginName": "@xano/cli",
|
|
7880
7554
|
"pluginType": "core",
|
|
@@ -7886,7 +7560,7 @@
|
|
|
7886
7560
|
"commands",
|
|
7887
7561
|
"tenant",
|
|
7888
7562
|
"backup",
|
|
7889
|
-
"
|
|
7563
|
+
"create",
|
|
7890
7564
|
"index.js"
|
|
7891
7565
|
]
|
|
7892
7566
|
},
|
|
@@ -8880,7 +8554,7 @@
|
|
|
8880
8554
|
"index.js"
|
|
8881
8555
|
]
|
|
8882
8556
|
},
|
|
8883
|
-
"tenant:env:
|
|
8557
|
+
"tenant:env:get": {
|
|
8884
8558
|
"aliases": [],
|
|
8885
8559
|
"args": {
|
|
8886
8560
|
"tenant_name": {
|
|
@@ -8889,12 +8563,10 @@
|
|
|
8889
8563
|
"required": true
|
|
8890
8564
|
}
|
|
8891
8565
|
},
|
|
8892
|
-
"description": "Get
|
|
8566
|
+
"description": "Get a single environment variable for a tenant",
|
|
8893
8567
|
"examples": [
|
|
8894
|
-
"$ xano tenant env
|
|
8895
|
-
"$ xano tenant env
|
|
8896
|
-
"$ xano tenant env get_all my-tenant --view",
|
|
8897
|
-
"$ xano tenant env get_all my-tenant -o json"
|
|
8568
|
+
"$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
|
|
8569
|
+
"$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
|
|
8898
8570
|
],
|
|
8899
8571
|
"flags": {
|
|
8900
8572
|
"config": {
|
|
@@ -8926,11 +8598,11 @@
|
|
|
8926
8598
|
"allowNo": false,
|
|
8927
8599
|
"type": "boolean"
|
|
8928
8600
|
},
|
|
8929
|
-
"
|
|
8930
|
-
"char": "
|
|
8931
|
-
"description": "
|
|
8932
|
-
"name": "
|
|
8933
|
-
"required":
|
|
8601
|
+
"name": {
|
|
8602
|
+
"char": "n",
|
|
8603
|
+
"description": "Environment variable name",
|
|
8604
|
+
"name": "name",
|
|
8605
|
+
"required": true,
|
|
8934
8606
|
"hasDynamicHelp": false,
|
|
8935
8607
|
"multiple": false,
|
|
8936
8608
|
"type": "option"
|
|
@@ -8949,13 +8621,6 @@
|
|
|
8949
8621
|
],
|
|
8950
8622
|
"type": "option"
|
|
8951
8623
|
},
|
|
8952
|
-
"view": {
|
|
8953
|
-
"description": "Print environment variables to stdout instead of saving to file",
|
|
8954
|
-
"name": "view",
|
|
8955
|
-
"required": false,
|
|
8956
|
-
"allowNo": false,
|
|
8957
|
-
"type": "boolean"
|
|
8958
|
-
},
|
|
8959
8624
|
"workspace": {
|
|
8960
8625
|
"char": "w",
|
|
8961
8626
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -8968,7 +8633,7 @@
|
|
|
8968
8633
|
},
|
|
8969
8634
|
"hasDynamicHelp": false,
|
|
8970
8635
|
"hiddenAliases": [],
|
|
8971
|
-
"id": "tenant:env:
|
|
8636
|
+
"id": "tenant:env:get",
|
|
8972
8637
|
"pluginAlias": "@xano/cli",
|
|
8973
8638
|
"pluginName": "@xano/cli",
|
|
8974
8639
|
"pluginType": "core",
|
|
@@ -8980,11 +8645,11 @@
|
|
|
8980
8645
|
"commands",
|
|
8981
8646
|
"tenant",
|
|
8982
8647
|
"env",
|
|
8983
|
-
"
|
|
8648
|
+
"get",
|
|
8984
8649
|
"index.js"
|
|
8985
8650
|
]
|
|
8986
8651
|
},
|
|
8987
|
-
"tenant:env:
|
|
8652
|
+
"tenant:env:get_all": {
|
|
8988
8653
|
"aliases": [],
|
|
8989
8654
|
"args": {
|
|
8990
8655
|
"tenant_name": {
|
|
@@ -8993,10 +8658,12 @@
|
|
|
8993
8658
|
"required": true
|
|
8994
8659
|
}
|
|
8995
8660
|
},
|
|
8996
|
-
"description": "Get
|
|
8661
|
+
"description": "Get all environment variables for a tenant and save to a YAML file",
|
|
8997
8662
|
"examples": [
|
|
8998
|
-
"$ xano tenant env
|
|
8999
|
-
"$ xano tenant env
|
|
8663
|
+
"$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
|
|
8664
|
+
"$ xano tenant env get_all my-tenant --file ./my-env.yaml",
|
|
8665
|
+
"$ xano tenant env get_all my-tenant --view",
|
|
8666
|
+
"$ xano tenant env get_all my-tenant -o json"
|
|
9000
8667
|
],
|
|
9001
8668
|
"flags": {
|
|
9002
8669
|
"config": {
|
|
@@ -9028,11 +8695,11 @@
|
|
|
9028
8695
|
"allowNo": false,
|
|
9029
8696
|
"type": "boolean"
|
|
9030
8697
|
},
|
|
9031
|
-
"
|
|
9032
|
-
"char": "
|
|
9033
|
-
"description": "
|
|
9034
|
-
"name": "
|
|
9035
|
-
"required":
|
|
8698
|
+
"file": {
|
|
8699
|
+
"char": "f",
|
|
8700
|
+
"description": "Output file path (default: env_<tenant_name>.yaml)",
|
|
8701
|
+
"name": "file",
|
|
8702
|
+
"required": false,
|
|
9036
8703
|
"hasDynamicHelp": false,
|
|
9037
8704
|
"multiple": false,
|
|
9038
8705
|
"type": "option"
|
|
@@ -9051,6 +8718,13 @@
|
|
|
9051
8718
|
],
|
|
9052
8719
|
"type": "option"
|
|
9053
8720
|
},
|
|
8721
|
+
"view": {
|
|
8722
|
+
"description": "Print environment variables to stdout instead of saving to file",
|
|
8723
|
+
"name": "view",
|
|
8724
|
+
"required": false,
|
|
8725
|
+
"allowNo": false,
|
|
8726
|
+
"type": "boolean"
|
|
8727
|
+
},
|
|
9054
8728
|
"workspace": {
|
|
9055
8729
|
"char": "w",
|
|
9056
8730
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -9063,7 +8737,7 @@
|
|
|
9063
8737
|
},
|
|
9064
8738
|
"hasDynamicHelp": false,
|
|
9065
8739
|
"hiddenAliases": [],
|
|
9066
|
-
"id": "tenant:env:
|
|
8740
|
+
"id": "tenant:env:get_all",
|
|
9067
8741
|
"pluginAlias": "@xano/cli",
|
|
9068
8742
|
"pluginName": "@xano/cli",
|
|
9069
8743
|
"pluginType": "core",
|
|
@@ -9075,7 +8749,7 @@
|
|
|
9075
8749
|
"commands",
|
|
9076
8750
|
"tenant",
|
|
9077
8751
|
"env",
|
|
9078
|
-
"
|
|
8752
|
+
"get_all",
|
|
9079
8753
|
"index.js"
|
|
9080
8754
|
]
|
|
9081
8755
|
},
|
|
@@ -9475,6 +9149,128 @@
|
|
|
9475
9149
|
"index.js"
|
|
9476
9150
|
]
|
|
9477
9151
|
},
|
|
9152
|
+
"tenant:license:set": {
|
|
9153
|
+
"aliases": [],
|
|
9154
|
+
"args": {
|
|
9155
|
+
"tenant_name": {
|
|
9156
|
+
"description": "Tenant name",
|
|
9157
|
+
"name": "tenant_name",
|
|
9158
|
+
"required": true
|
|
9159
|
+
}
|
|
9160
|
+
},
|
|
9161
|
+
"description": "Set/update the license for a tenant",
|
|
9162
|
+
"examples": [
|
|
9163
|
+
"$ xano tenant license set my-tenant\nReads from license_my-tenant.yaml\n",
|
|
9164
|
+
"$ xano tenant license set my-tenant --file ./license.yaml",
|
|
9165
|
+
"$ xano tenant license set my-tenant --value 'key: value'",
|
|
9166
|
+
"$ xano tenant license set my-tenant -o json"
|
|
9167
|
+
],
|
|
9168
|
+
"flags": {
|
|
9169
|
+
"config": {
|
|
9170
|
+
"char": "c",
|
|
9171
|
+
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
9172
|
+
"env": "XANO_CONFIG",
|
|
9173
|
+
"name": "config",
|
|
9174
|
+
"required": false,
|
|
9175
|
+
"hasDynamicHelp": false,
|
|
9176
|
+
"multiple": false,
|
|
9177
|
+
"type": "option"
|
|
9178
|
+
},
|
|
9179
|
+
"profile": {
|
|
9180
|
+
"char": "p",
|
|
9181
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
9182
|
+
"env": "XANO_PROFILE",
|
|
9183
|
+
"name": "profile",
|
|
9184
|
+
"required": false,
|
|
9185
|
+
"hasDynamicHelp": false,
|
|
9186
|
+
"multiple": false,
|
|
9187
|
+
"type": "option"
|
|
9188
|
+
},
|
|
9189
|
+
"verbose": {
|
|
9190
|
+
"char": "v",
|
|
9191
|
+
"description": "Show detailed request/response information",
|
|
9192
|
+
"env": "XANO_VERBOSE",
|
|
9193
|
+
"name": "verbose",
|
|
9194
|
+
"required": false,
|
|
9195
|
+
"allowNo": false,
|
|
9196
|
+
"type": "boolean"
|
|
9197
|
+
},
|
|
9198
|
+
"clean": {
|
|
9199
|
+
"description": "Remove the source file after successful upload",
|
|
9200
|
+
"exclusive": [
|
|
9201
|
+
"value"
|
|
9202
|
+
],
|
|
9203
|
+
"name": "clean",
|
|
9204
|
+
"required": false,
|
|
9205
|
+
"allowNo": false,
|
|
9206
|
+
"type": "boolean"
|
|
9207
|
+
},
|
|
9208
|
+
"file": {
|
|
9209
|
+
"char": "f",
|
|
9210
|
+
"description": "Path to license file (default: license_<tenant_name>.yaml)",
|
|
9211
|
+
"exclusive": [
|
|
9212
|
+
"value"
|
|
9213
|
+
],
|
|
9214
|
+
"name": "file",
|
|
9215
|
+
"required": false,
|
|
9216
|
+
"hasDynamicHelp": false,
|
|
9217
|
+
"multiple": false,
|
|
9218
|
+
"type": "option"
|
|
9219
|
+
},
|
|
9220
|
+
"output": {
|
|
9221
|
+
"char": "o",
|
|
9222
|
+
"description": "Output format",
|
|
9223
|
+
"name": "output",
|
|
9224
|
+
"required": false,
|
|
9225
|
+
"default": "summary",
|
|
9226
|
+
"hasDynamicHelp": false,
|
|
9227
|
+
"multiple": false,
|
|
9228
|
+
"options": [
|
|
9229
|
+
"summary",
|
|
9230
|
+
"json"
|
|
9231
|
+
],
|
|
9232
|
+
"type": "option"
|
|
9233
|
+
},
|
|
9234
|
+
"value": {
|
|
9235
|
+
"description": "Inline license value",
|
|
9236
|
+
"exclusive": [
|
|
9237
|
+
"file",
|
|
9238
|
+
"clean"
|
|
9239
|
+
],
|
|
9240
|
+
"name": "value",
|
|
9241
|
+
"required": false,
|
|
9242
|
+
"hasDynamicHelp": false,
|
|
9243
|
+
"multiple": false,
|
|
9244
|
+
"type": "option"
|
|
9245
|
+
},
|
|
9246
|
+
"workspace": {
|
|
9247
|
+
"char": "w",
|
|
9248
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
9249
|
+
"name": "workspace",
|
|
9250
|
+
"required": false,
|
|
9251
|
+
"hasDynamicHelp": false,
|
|
9252
|
+
"multiple": false,
|
|
9253
|
+
"type": "option"
|
|
9254
|
+
}
|
|
9255
|
+
},
|
|
9256
|
+
"hasDynamicHelp": false,
|
|
9257
|
+
"hiddenAliases": [],
|
|
9258
|
+
"id": "tenant:license:set",
|
|
9259
|
+
"pluginAlias": "@xano/cli",
|
|
9260
|
+
"pluginName": "@xano/cli",
|
|
9261
|
+
"pluginType": "core",
|
|
9262
|
+
"strict": true,
|
|
9263
|
+
"enableJsonFlag": false,
|
|
9264
|
+
"isESM": true,
|
|
9265
|
+
"relativePath": [
|
|
9266
|
+
"dist",
|
|
9267
|
+
"commands",
|
|
9268
|
+
"tenant",
|
|
9269
|
+
"license",
|
|
9270
|
+
"set",
|
|
9271
|
+
"index.js"
|
|
9272
|
+
]
|
|
9273
|
+
},
|
|
9478
9274
|
"tenant:unit_test:list": {
|
|
9479
9275
|
"aliases": [],
|
|
9480
9276
|
"args": {},
|
|
@@ -9681,21 +9477,13 @@
|
|
|
9681
9477
|
"index.js"
|
|
9682
9478
|
]
|
|
9683
9479
|
},
|
|
9684
|
-
"tenant:
|
|
9480
|
+
"tenant:unit_test:run_all": {
|
|
9685
9481
|
"aliases": [],
|
|
9686
|
-
"args": {
|
|
9687
|
-
|
|
9688
|
-
"description": "Tenant name",
|
|
9689
|
-
"name": "tenant_name",
|
|
9690
|
-
"required": true
|
|
9691
|
-
}
|
|
9692
|
-
},
|
|
9693
|
-
"description": "Set/update the license for a tenant",
|
|
9482
|
+
"args": {},
|
|
9483
|
+
"description": "Run all unit tests for a tenant",
|
|
9694
9484
|
"examples": [
|
|
9695
|
-
"$ xano tenant
|
|
9696
|
-
"$ xano tenant
|
|
9697
|
-
"$ xano tenant license set my-tenant --value 'key: value'",
|
|
9698
|
-
"$ xano tenant license set my-tenant -o json"
|
|
9485
|
+
"$ 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",
|
|
9486
|
+
"$ xano tenant unit-test run-all -t my-tenant -o json"
|
|
9699
9487
|
],
|
|
9700
9488
|
"flags": {
|
|
9701
9489
|
"config": {
|
|
@@ -9727,26 +9515,26 @@
|
|
|
9727
9515
|
"allowNo": false,
|
|
9728
9516
|
"type": "boolean"
|
|
9729
9517
|
},
|
|
9730
|
-
"
|
|
9731
|
-
"
|
|
9732
|
-
"
|
|
9733
|
-
|
|
9734
|
-
],
|
|
9735
|
-
"name": "clean",
|
|
9518
|
+
"branch": {
|
|
9519
|
+
"char": "b",
|
|
9520
|
+
"description": "Filter by branch name",
|
|
9521
|
+
"name": "branch",
|
|
9736
9522
|
"required": false,
|
|
9737
|
-
"
|
|
9738
|
-
"
|
|
9523
|
+
"hasDynamicHelp": false,
|
|
9524
|
+
"multiple": false,
|
|
9525
|
+
"type": "option"
|
|
9739
9526
|
},
|
|
9740
|
-
"
|
|
9741
|
-
"
|
|
9742
|
-
"
|
|
9743
|
-
"exclusive": [
|
|
9744
|
-
"value"
|
|
9745
|
-
],
|
|
9746
|
-
"name": "file",
|
|
9527
|
+
"obj-type": {
|
|
9528
|
+
"description": "Filter by object type",
|
|
9529
|
+
"name": "obj-type",
|
|
9747
9530
|
"required": false,
|
|
9748
9531
|
"hasDynamicHelp": false,
|
|
9749
9532
|
"multiple": false,
|
|
9533
|
+
"options": [
|
|
9534
|
+
"function",
|
|
9535
|
+
"query",
|
|
9536
|
+
"middleware"
|
|
9537
|
+
],
|
|
9750
9538
|
"type": "option"
|
|
9751
9539
|
},
|
|
9752
9540
|
"output": {
|
|
@@ -9763,14 +9551,11 @@
|
|
|
9763
9551
|
],
|
|
9764
9552
|
"type": "option"
|
|
9765
9553
|
},
|
|
9766
|
-
"
|
|
9767
|
-
"
|
|
9768
|
-
"
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
],
|
|
9772
|
-
"name": "value",
|
|
9773
|
-
"required": false,
|
|
9554
|
+
"tenant": {
|
|
9555
|
+
"char": "t",
|
|
9556
|
+
"description": "Tenant name",
|
|
9557
|
+
"name": "tenant",
|
|
9558
|
+
"required": true,
|
|
9774
9559
|
"hasDynamicHelp": false,
|
|
9775
9560
|
"multiple": false,
|
|
9776
9561
|
"type": "option"
|
|
@@ -9787,7 +9572,7 @@
|
|
|
9787
9572
|
},
|
|
9788
9573
|
"hasDynamicHelp": false,
|
|
9789
9574
|
"hiddenAliases": [],
|
|
9790
|
-
"id": "tenant:
|
|
9575
|
+
"id": "tenant:unit_test:run_all",
|
|
9791
9576
|
"pluginAlias": "@xano/cli",
|
|
9792
9577
|
"pluginName": "@xano/cli",
|
|
9793
9578
|
"pluginType": "core",
|
|
@@ -9798,18 +9583,18 @@
|
|
|
9798
9583
|
"dist",
|
|
9799
9584
|
"commands",
|
|
9800
9585
|
"tenant",
|
|
9801
|
-
"
|
|
9802
|
-
"
|
|
9586
|
+
"unit_test",
|
|
9587
|
+
"run_all",
|
|
9803
9588
|
"index.js"
|
|
9804
9589
|
]
|
|
9805
9590
|
},
|
|
9806
|
-
"tenant:
|
|
9591
|
+
"tenant:workflow_test:list": {
|
|
9807
9592
|
"aliases": [],
|
|
9808
9593
|
"args": {},
|
|
9809
|
-
"description": "
|
|
9594
|
+
"description": "List workflow tests for a tenant",
|
|
9810
9595
|
"examples": [
|
|
9811
|
-
"$ xano tenant
|
|
9812
|
-
"$ xano tenant
|
|
9596
|
+
"$ xano tenant workflow-test list -t my-tenant\nWorkflow tests for tenant my-tenant:\n - my-test (ID: 1)\n",
|
|
9597
|
+
"$ xano tenant workflow-test list -t my-tenant -w 5 -o json"
|
|
9813
9598
|
],
|
|
9814
9599
|
"flags": {
|
|
9815
9600
|
"config": {
|
|
@@ -9850,19 +9635,6 @@
|
|
|
9850
9635
|
"multiple": false,
|
|
9851
9636
|
"type": "option"
|
|
9852
9637
|
},
|
|
9853
|
-
"obj-type": {
|
|
9854
|
-
"description": "Filter by object type",
|
|
9855
|
-
"name": "obj-type",
|
|
9856
|
-
"required": false,
|
|
9857
|
-
"hasDynamicHelp": false,
|
|
9858
|
-
"multiple": false,
|
|
9859
|
-
"options": [
|
|
9860
|
-
"function",
|
|
9861
|
-
"query",
|
|
9862
|
-
"middleware"
|
|
9863
|
-
],
|
|
9864
|
-
"type": "option"
|
|
9865
|
-
},
|
|
9866
9638
|
"output": {
|
|
9867
9639
|
"char": "o",
|
|
9868
9640
|
"description": "Output format",
|
|
@@ -9898,7 +9670,7 @@
|
|
|
9898
9670
|
},
|
|
9899
9671
|
"hasDynamicHelp": false,
|
|
9900
9672
|
"hiddenAliases": [],
|
|
9901
|
-
"id": "tenant:
|
|
9673
|
+
"id": "tenant:workflow_test:list",
|
|
9902
9674
|
"pluginAlias": "@xano/cli",
|
|
9903
9675
|
"pluginName": "@xano/cli",
|
|
9904
9676
|
"pluginType": "core",
|
|
@@ -9909,18 +9681,18 @@
|
|
|
9909
9681
|
"dist",
|
|
9910
9682
|
"commands",
|
|
9911
9683
|
"tenant",
|
|
9912
|
-
"
|
|
9913
|
-
"
|
|
9684
|
+
"workflow_test",
|
|
9685
|
+
"list",
|
|
9914
9686
|
"index.js"
|
|
9915
9687
|
]
|
|
9916
9688
|
},
|
|
9917
|
-
"tenant:workflow_test:
|
|
9689
|
+
"tenant:workflow_test:run_all": {
|
|
9918
9690
|
"aliases": [],
|
|
9919
9691
|
"args": {},
|
|
9920
|
-
"description": "
|
|
9692
|
+
"description": "Run all workflow tests for a tenant",
|
|
9921
9693
|
"examples": [
|
|
9922
|
-
"$ xano tenant workflow-test
|
|
9923
|
-
"$ xano tenant workflow-test
|
|
9694
|
+
"$ 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",
|
|
9695
|
+
"$ xano tenant workflow-test run-all -t my-tenant -o json"
|
|
9924
9696
|
],
|
|
9925
9697
|
"flags": {
|
|
9926
9698
|
"config": {
|
|
@@ -9996,7 +9768,7 @@
|
|
|
9996
9768
|
},
|
|
9997
9769
|
"hasDynamicHelp": false,
|
|
9998
9770
|
"hiddenAliases": [],
|
|
9999
|
-
"id": "tenant:workflow_test:
|
|
9771
|
+
"id": "tenant:workflow_test:run_all",
|
|
10000
9772
|
"pluginAlias": "@xano/cli",
|
|
10001
9773
|
"pluginName": "@xano/cli",
|
|
10002
9774
|
"pluginType": "core",
|
|
@@ -10008,7 +9780,7 @@
|
|
|
10008
9780
|
"commands",
|
|
10009
9781
|
"tenant",
|
|
10010
9782
|
"workflow_test",
|
|
10011
|
-
"
|
|
9783
|
+
"run_all",
|
|
10012
9784
|
"index.js"
|
|
10013
9785
|
]
|
|
10014
9786
|
},
|
|
@@ -10216,13 +9988,20 @@
|
|
|
10216
9988
|
"index.js"
|
|
10217
9989
|
]
|
|
10218
9990
|
},
|
|
10219
|
-
"
|
|
9991
|
+
"static_host:build:create": {
|
|
10220
9992
|
"aliases": [],
|
|
10221
|
-
"args": {
|
|
10222
|
-
|
|
9993
|
+
"args": {
|
|
9994
|
+
"static_host": {
|
|
9995
|
+
"description": "Static Host name",
|
|
9996
|
+
"name": "static_host",
|
|
9997
|
+
"required": true
|
|
9998
|
+
}
|
|
9999
|
+
},
|
|
10000
|
+
"description": "Create a new build for a static host",
|
|
10223
10001
|
"examples": [
|
|
10224
|
-
"$ xano
|
|
10225
|
-
"$ xano
|
|
10002
|
+
"$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
|
|
10003
|
+
"$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
|
|
10004
|
+
"$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
|
|
10226
10005
|
],
|
|
10227
10006
|
"flags": {
|
|
10228
10007
|
"config": {
|
|
@@ -10254,15 +10033,33 @@
|
|
|
10254
10033
|
"allowNo": false,
|
|
10255
10034
|
"type": "boolean"
|
|
10256
10035
|
},
|
|
10257
|
-
"
|
|
10258
|
-
"char": "
|
|
10259
|
-
"description": "
|
|
10260
|
-
"name": "
|
|
10036
|
+
"description": {
|
|
10037
|
+
"char": "d",
|
|
10038
|
+
"description": "Build description",
|
|
10039
|
+
"name": "description",
|
|
10261
10040
|
"required": false,
|
|
10262
10041
|
"hasDynamicHelp": false,
|
|
10263
10042
|
"multiple": false,
|
|
10264
10043
|
"type": "option"
|
|
10265
10044
|
},
|
|
10045
|
+
"file": {
|
|
10046
|
+
"char": "f",
|
|
10047
|
+
"description": "Path to zip file to upload",
|
|
10048
|
+
"name": "file",
|
|
10049
|
+
"required": true,
|
|
10050
|
+
"hasDynamicHelp": false,
|
|
10051
|
+
"multiple": false,
|
|
10052
|
+
"type": "option"
|
|
10053
|
+
},
|
|
10054
|
+
"name": {
|
|
10055
|
+
"char": "n",
|
|
10056
|
+
"description": "Build name",
|
|
10057
|
+
"name": "name",
|
|
10058
|
+
"required": true,
|
|
10059
|
+
"hasDynamicHelp": false,
|
|
10060
|
+
"multiple": false,
|
|
10061
|
+
"type": "option"
|
|
10062
|
+
},
|
|
10266
10063
|
"output": {
|
|
10267
10064
|
"char": "o",
|
|
10268
10065
|
"description": "Output format",
|
|
@@ -10277,18 +10074,102 @@
|
|
|
10277
10074
|
],
|
|
10278
10075
|
"type": "option"
|
|
10279
10076
|
},
|
|
10280
|
-
"
|
|
10281
|
-
"char": "
|
|
10282
|
-
"description": "
|
|
10283
|
-
"name": "
|
|
10284
|
-
"required":
|
|
10077
|
+
"workspace": {
|
|
10078
|
+
"char": "w",
|
|
10079
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
10080
|
+
"name": "workspace",
|
|
10081
|
+
"required": false,
|
|
10082
|
+
"hasDynamicHelp": false,
|
|
10083
|
+
"multiple": false,
|
|
10084
|
+
"type": "option"
|
|
10085
|
+
}
|
|
10086
|
+
},
|
|
10087
|
+
"hasDynamicHelp": false,
|
|
10088
|
+
"hiddenAliases": [],
|
|
10089
|
+
"id": "static_host:build:create",
|
|
10090
|
+
"pluginAlias": "@xano/cli",
|
|
10091
|
+
"pluginName": "@xano/cli",
|
|
10092
|
+
"pluginType": "core",
|
|
10093
|
+
"strict": true,
|
|
10094
|
+
"enableJsonFlag": false,
|
|
10095
|
+
"isESM": true,
|
|
10096
|
+
"relativePath": [
|
|
10097
|
+
"dist",
|
|
10098
|
+
"commands",
|
|
10099
|
+
"static_host",
|
|
10100
|
+
"build",
|
|
10101
|
+
"create",
|
|
10102
|
+
"index.js"
|
|
10103
|
+
]
|
|
10104
|
+
},
|
|
10105
|
+
"static_host:build:get": {
|
|
10106
|
+
"aliases": [],
|
|
10107
|
+
"args": {
|
|
10108
|
+
"build_id": {
|
|
10109
|
+
"description": "Build ID",
|
|
10110
|
+
"name": "build_id",
|
|
10111
|
+
"required": true
|
|
10112
|
+
},
|
|
10113
|
+
"static_host": {
|
|
10114
|
+
"description": "Static Host name",
|
|
10115
|
+
"name": "static_host",
|
|
10116
|
+
"required": true
|
|
10117
|
+
}
|
|
10118
|
+
},
|
|
10119
|
+
"description": "Get details of a specific build for a static host",
|
|
10120
|
+
"examples": [
|
|
10121
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
10122
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
10123
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
10124
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
10125
|
+
],
|
|
10126
|
+
"flags": {
|
|
10127
|
+
"config": {
|
|
10128
|
+
"char": "c",
|
|
10129
|
+
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
10130
|
+
"env": "XANO_CONFIG",
|
|
10131
|
+
"name": "config",
|
|
10132
|
+
"required": false,
|
|
10133
|
+
"hasDynamicHelp": false,
|
|
10134
|
+
"multiple": false,
|
|
10135
|
+
"type": "option"
|
|
10136
|
+
},
|
|
10137
|
+
"profile": {
|
|
10138
|
+
"char": "p",
|
|
10139
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
10140
|
+
"env": "XANO_PROFILE",
|
|
10141
|
+
"name": "profile",
|
|
10142
|
+
"required": false,
|
|
10143
|
+
"hasDynamicHelp": false,
|
|
10144
|
+
"multiple": false,
|
|
10145
|
+
"type": "option"
|
|
10146
|
+
},
|
|
10147
|
+
"verbose": {
|
|
10148
|
+
"char": "v",
|
|
10149
|
+
"description": "Show detailed request/response information",
|
|
10150
|
+
"env": "XANO_VERBOSE",
|
|
10151
|
+
"name": "verbose",
|
|
10152
|
+
"required": false,
|
|
10153
|
+
"allowNo": false,
|
|
10154
|
+
"type": "boolean"
|
|
10155
|
+
},
|
|
10156
|
+
"output": {
|
|
10157
|
+
"char": "o",
|
|
10158
|
+
"description": "Output format",
|
|
10159
|
+
"name": "output",
|
|
10160
|
+
"required": false,
|
|
10161
|
+
"default": "summary",
|
|
10285
10162
|
"hasDynamicHelp": false,
|
|
10286
10163
|
"multiple": false,
|
|
10164
|
+
"options": [
|
|
10165
|
+
"summary",
|
|
10166
|
+
"json"
|
|
10167
|
+
],
|
|
10287
10168
|
"type": "option"
|
|
10288
10169
|
},
|
|
10289
10170
|
"workspace": {
|
|
10290
10171
|
"char": "w",
|
|
10291
|
-
"description": "Workspace ID (
|
|
10172
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
10292
10173
|
"name": "workspace",
|
|
10293
10174
|
"required": false,
|
|
10294
10175
|
"hasDynamicHelp": false,
|
|
@@ -10298,7 +10179,7 @@
|
|
|
10298
10179
|
},
|
|
10299
10180
|
"hasDynamicHelp": false,
|
|
10300
10181
|
"hiddenAliases": [],
|
|
10301
|
-
"id": "
|
|
10182
|
+
"id": "static_host:build:get",
|
|
10302
10183
|
"pluginAlias": "@xano/cli",
|
|
10303
10184
|
"pluginName": "@xano/cli",
|
|
10304
10185
|
"pluginType": "core",
|
|
@@ -10308,9 +10189,115 @@
|
|
|
10308
10189
|
"relativePath": [
|
|
10309
10190
|
"dist",
|
|
10310
10191
|
"commands",
|
|
10311
|
-
"
|
|
10312
|
-
"
|
|
10313
|
-
"
|
|
10192
|
+
"static_host",
|
|
10193
|
+
"build",
|
|
10194
|
+
"get",
|
|
10195
|
+
"index.js"
|
|
10196
|
+
]
|
|
10197
|
+
},
|
|
10198
|
+
"static_host:build:list": {
|
|
10199
|
+
"aliases": [],
|
|
10200
|
+
"args": {
|
|
10201
|
+
"static_host": {
|
|
10202
|
+
"description": "Static Host name",
|
|
10203
|
+
"name": "static_host",
|
|
10204
|
+
"required": true
|
|
10205
|
+
}
|
|
10206
|
+
},
|
|
10207
|
+
"description": "List all builds for a static host",
|
|
10208
|
+
"examples": [
|
|
10209
|
+
"$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
|
|
10210
|
+
"$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
|
|
10211
|
+
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
10212
|
+
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
10213
|
+
],
|
|
10214
|
+
"flags": {
|
|
10215
|
+
"config": {
|
|
10216
|
+
"char": "c",
|
|
10217
|
+
"description": "Path to credentials file (default: ~/.xano/credentials.yaml)",
|
|
10218
|
+
"env": "XANO_CONFIG",
|
|
10219
|
+
"name": "config",
|
|
10220
|
+
"required": false,
|
|
10221
|
+
"hasDynamicHelp": false,
|
|
10222
|
+
"multiple": false,
|
|
10223
|
+
"type": "option"
|
|
10224
|
+
},
|
|
10225
|
+
"profile": {
|
|
10226
|
+
"char": "p",
|
|
10227
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
10228
|
+
"env": "XANO_PROFILE",
|
|
10229
|
+
"name": "profile",
|
|
10230
|
+
"required": false,
|
|
10231
|
+
"hasDynamicHelp": false,
|
|
10232
|
+
"multiple": false,
|
|
10233
|
+
"type": "option"
|
|
10234
|
+
},
|
|
10235
|
+
"verbose": {
|
|
10236
|
+
"char": "v",
|
|
10237
|
+
"description": "Show detailed request/response information",
|
|
10238
|
+
"env": "XANO_VERBOSE",
|
|
10239
|
+
"name": "verbose",
|
|
10240
|
+
"required": false,
|
|
10241
|
+
"allowNo": false,
|
|
10242
|
+
"type": "boolean"
|
|
10243
|
+
},
|
|
10244
|
+
"output": {
|
|
10245
|
+
"char": "o",
|
|
10246
|
+
"description": "Output format",
|
|
10247
|
+
"name": "output",
|
|
10248
|
+
"required": false,
|
|
10249
|
+
"default": "summary",
|
|
10250
|
+
"hasDynamicHelp": false,
|
|
10251
|
+
"multiple": false,
|
|
10252
|
+
"options": [
|
|
10253
|
+
"summary",
|
|
10254
|
+
"json"
|
|
10255
|
+
],
|
|
10256
|
+
"type": "option"
|
|
10257
|
+
},
|
|
10258
|
+
"page": {
|
|
10259
|
+
"description": "Page number for pagination",
|
|
10260
|
+
"name": "page",
|
|
10261
|
+
"required": false,
|
|
10262
|
+
"default": 1,
|
|
10263
|
+
"hasDynamicHelp": false,
|
|
10264
|
+
"multiple": false,
|
|
10265
|
+
"type": "option"
|
|
10266
|
+
},
|
|
10267
|
+
"per_page": {
|
|
10268
|
+
"description": "Number of results per page",
|
|
10269
|
+
"name": "per_page",
|
|
10270
|
+
"required": false,
|
|
10271
|
+
"default": 50,
|
|
10272
|
+
"hasDynamicHelp": false,
|
|
10273
|
+
"multiple": false,
|
|
10274
|
+
"type": "option"
|
|
10275
|
+
},
|
|
10276
|
+
"workspace": {
|
|
10277
|
+
"char": "w",
|
|
10278
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
10279
|
+
"name": "workspace",
|
|
10280
|
+
"required": false,
|
|
10281
|
+
"hasDynamicHelp": false,
|
|
10282
|
+
"multiple": false,
|
|
10283
|
+
"type": "option"
|
|
10284
|
+
}
|
|
10285
|
+
},
|
|
10286
|
+
"hasDynamicHelp": false,
|
|
10287
|
+
"hiddenAliases": [],
|
|
10288
|
+
"id": "static_host:build:list",
|
|
10289
|
+
"pluginAlias": "@xano/cli",
|
|
10290
|
+
"pluginName": "@xano/cli",
|
|
10291
|
+
"pluginType": "core",
|
|
10292
|
+
"strict": true,
|
|
10293
|
+
"enableJsonFlag": false,
|
|
10294
|
+
"isESM": true,
|
|
10295
|
+
"relativePath": [
|
|
10296
|
+
"dist",
|
|
10297
|
+
"commands",
|
|
10298
|
+
"static_host",
|
|
10299
|
+
"build",
|
|
10300
|
+
"list",
|
|
10314
10301
|
"index.js"
|
|
10315
10302
|
]
|
|
10316
10303
|
},
|
|
@@ -10525,5 +10512,5 @@
|
|
|
10525
10512
|
]
|
|
10526
10513
|
}
|
|
10527
10514
|
},
|
|
10528
|
-
"version": "1.0.2-beta.
|
|
10515
|
+
"version": "1.0.2-beta.2"
|
|
10529
10516
|
}
|