@xano/cli 0.0.65 → 0.0.67
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 +29 -0
- package/dist/base-command.d.ts +25 -0
- package/dist/base-command.js +53 -11
- package/dist/commands/auth/index.d.ts +2 -0
- package/dist/commands/auth/index.js +44 -22
- package/dist/commands/function/edit/index.js +17 -18
- package/dist/commands/function/get/index.js +11 -11
- package/dist/commands/profile/create/index.d.ts +1 -0
- package/dist/commands/profile/create/index.js +10 -0
- package/dist/commands/profile/edit/index.d.ts +2 -0
- package/dist/commands/profile/edit/index.js +23 -1
- package/dist/commands/profile/list/index.js +3 -0
- package/dist/commands/profile/wizard/index.d.ts +2 -0
- package/dist/commands/profile/wizard/index.js +23 -12
- package/dist/commands/profile/workspace/set/index.d.ts +11 -0
- package/dist/commands/profile/workspace/set/index.js +87 -0
- package/dist/commands/release/export/index.js +14 -13
- package/dist/commands/tenant/backup/export/index.js +4 -2
- package/dist/commands/workspace/git/pull/index.js +2 -2
- package/oclif.manifest.json +1368 -1281
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
"$ xano auth --origin https://custom.xano.com\nOpening browser for Xano login at https://custom.xano.com..."
|
|
10
10
|
],
|
|
11
11
|
"flags": {
|
|
12
|
+
"insecure": {
|
|
13
|
+
"char": "k",
|
|
14
|
+
"description": "Skip TLS certificate verification (for self-signed certificates)",
|
|
15
|
+
"name": "insecure",
|
|
16
|
+
"allowNo": false,
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
12
19
|
"origin": {
|
|
13
20
|
"char": "o",
|
|
14
21
|
"description": "Xano account origin URL",
|
|
@@ -86,14 +93,20 @@
|
|
|
86
93
|
"index.js"
|
|
87
94
|
]
|
|
88
95
|
},
|
|
89
|
-
"branch:
|
|
96
|
+
"branch:edit": {
|
|
90
97
|
"aliases": [],
|
|
91
|
-
"args": {
|
|
92
|
-
|
|
98
|
+
"args": {
|
|
99
|
+
"branch_label": {
|
|
100
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
101
|
+
"name": "branch_label",
|
|
102
|
+
"required": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
93
106
|
"examples": [
|
|
94
|
-
"$ xano branch
|
|
95
|
-
"$ xano branch
|
|
96
|
-
"$ xano branch
|
|
107
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
108
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
109
|
+
"$ xano branch edit staging --description \"Staging environment\" -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false\n}\n"
|
|
97
110
|
],
|
|
98
111
|
"flags": {
|
|
99
112
|
"profile": {
|
|
@@ -117,7 +130,7 @@
|
|
|
117
130
|
},
|
|
118
131
|
"color": {
|
|
119
132
|
"char": "c",
|
|
120
|
-
"description": "
|
|
133
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
121
134
|
"name": "color",
|
|
122
135
|
"required": false,
|
|
123
136
|
"hasDynamicHelp": false,
|
|
@@ -126,7 +139,7 @@
|
|
|
126
139
|
},
|
|
127
140
|
"description": {
|
|
128
141
|
"char": "d",
|
|
129
|
-
"description": "
|
|
142
|
+
"description": "New description for the branch",
|
|
130
143
|
"name": "description",
|
|
131
144
|
"required": false,
|
|
132
145
|
"hasDynamicHelp": false,
|
|
@@ -135,9 +148,9 @@
|
|
|
135
148
|
},
|
|
136
149
|
"label": {
|
|
137
150
|
"char": "l",
|
|
138
|
-
"description": "
|
|
151
|
+
"description": "New label for the branch",
|
|
139
152
|
"name": "label",
|
|
140
|
-
"required":
|
|
153
|
+
"required": false,
|
|
141
154
|
"hasDynamicHelp": false,
|
|
142
155
|
"multiple": false,
|
|
143
156
|
"type": "option"
|
|
@@ -156,16 +169,6 @@
|
|
|
156
169
|
],
|
|
157
170
|
"type": "option"
|
|
158
171
|
},
|
|
159
|
-
"source": {
|
|
160
|
-
"char": "s",
|
|
161
|
-
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
162
|
-
"name": "source",
|
|
163
|
-
"required": false,
|
|
164
|
-
"default": "v1",
|
|
165
|
-
"hasDynamicHelp": false,
|
|
166
|
-
"multiple": false,
|
|
167
|
-
"type": "option"
|
|
168
|
-
},
|
|
169
172
|
"workspace": {
|
|
170
173
|
"char": "w",
|
|
171
174
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -178,7 +181,7 @@
|
|
|
178
181
|
},
|
|
179
182
|
"hasDynamicHelp": false,
|
|
180
183
|
"hiddenAliases": [],
|
|
181
|
-
"id": "branch:
|
|
184
|
+
"id": "branch:edit",
|
|
182
185
|
"pluginAlias": "@xano/cli",
|
|
183
186
|
"pluginName": "@xano/cli",
|
|
184
187
|
"pluginType": "core",
|
|
@@ -189,7 +192,7 @@
|
|
|
189
192
|
"dist",
|
|
190
193
|
"commands",
|
|
191
194
|
"branch",
|
|
192
|
-
"
|
|
195
|
+
"edit",
|
|
193
196
|
"index.js"
|
|
194
197
|
]
|
|
195
198
|
},
|
|
@@ -277,20 +280,127 @@
|
|
|
277
280
|
"index.js"
|
|
278
281
|
]
|
|
279
282
|
},
|
|
280
|
-
"branch:
|
|
283
|
+
"branch:create": {
|
|
281
284
|
"aliases": [],
|
|
282
|
-
"args": {
|
|
283
|
-
|
|
285
|
+
"args": {},
|
|
286
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
287
|
+
"examples": [
|
|
288
|
+
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
289
|
+
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
290
|
+
"$ xano branch create --label 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"
|
|
291
|
+
],
|
|
292
|
+
"flags": {
|
|
293
|
+
"profile": {
|
|
294
|
+
"char": "p",
|
|
295
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
296
|
+
"env": "XANO_PROFILE",
|
|
297
|
+
"name": "profile",
|
|
298
|
+
"required": false,
|
|
299
|
+
"hasDynamicHelp": false,
|
|
300
|
+
"multiple": false,
|
|
301
|
+
"type": "option"
|
|
302
|
+
},
|
|
303
|
+
"verbose": {
|
|
304
|
+
"char": "v",
|
|
305
|
+
"description": "Show detailed request/response information",
|
|
306
|
+
"env": "XANO_VERBOSE",
|
|
307
|
+
"name": "verbose",
|
|
308
|
+
"required": false,
|
|
309
|
+
"allowNo": false,
|
|
310
|
+
"type": "boolean"
|
|
311
|
+
},
|
|
312
|
+
"color": {
|
|
313
|
+
"char": "c",
|
|
314
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
315
|
+
"name": "color",
|
|
316
|
+
"required": false,
|
|
317
|
+
"hasDynamicHelp": false,
|
|
318
|
+
"multiple": false,
|
|
319
|
+
"type": "option"
|
|
320
|
+
},
|
|
321
|
+
"description": {
|
|
322
|
+
"char": "d",
|
|
323
|
+
"description": "Description for the new branch",
|
|
324
|
+
"name": "description",
|
|
325
|
+
"required": false,
|
|
326
|
+
"hasDynamicHelp": false,
|
|
327
|
+
"multiple": false,
|
|
328
|
+
"type": "option"
|
|
329
|
+
},
|
|
330
|
+
"label": {
|
|
331
|
+
"char": "l",
|
|
332
|
+
"description": "Label for the new branch",
|
|
333
|
+
"name": "label",
|
|
334
|
+
"required": true,
|
|
335
|
+
"hasDynamicHelp": false,
|
|
336
|
+
"multiple": false,
|
|
337
|
+
"type": "option"
|
|
338
|
+
},
|
|
339
|
+
"output": {
|
|
340
|
+
"char": "o",
|
|
341
|
+
"description": "Output format",
|
|
342
|
+
"name": "output",
|
|
343
|
+
"required": false,
|
|
344
|
+
"default": "summary",
|
|
345
|
+
"hasDynamicHelp": false,
|
|
346
|
+
"multiple": false,
|
|
347
|
+
"options": [
|
|
348
|
+
"summary",
|
|
349
|
+
"json"
|
|
350
|
+
],
|
|
351
|
+
"type": "option"
|
|
352
|
+
},
|
|
353
|
+
"source": {
|
|
354
|
+
"char": "s",
|
|
355
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
356
|
+
"name": "source",
|
|
357
|
+
"required": false,
|
|
358
|
+
"default": "v1",
|
|
359
|
+
"hasDynamicHelp": false,
|
|
360
|
+
"multiple": false,
|
|
361
|
+
"type": "option"
|
|
362
|
+
},
|
|
363
|
+
"workspace": {
|
|
364
|
+
"char": "w",
|
|
284
365
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
285
|
-
"name": "
|
|
286
|
-
"required": false
|
|
366
|
+
"name": "workspace",
|
|
367
|
+
"required": false,
|
|
368
|
+
"hasDynamicHelp": false,
|
|
369
|
+
"multiple": false,
|
|
370
|
+
"type": "option"
|
|
287
371
|
}
|
|
288
372
|
},
|
|
289
|
-
"
|
|
373
|
+
"hasDynamicHelp": false,
|
|
374
|
+
"hiddenAliases": [],
|
|
375
|
+
"id": "branch:create",
|
|
376
|
+
"pluginAlias": "@xano/cli",
|
|
377
|
+
"pluginName": "@xano/cli",
|
|
378
|
+
"pluginType": "core",
|
|
379
|
+
"strict": true,
|
|
380
|
+
"enableJsonFlag": false,
|
|
381
|
+
"isESM": true,
|
|
382
|
+
"relativePath": [
|
|
383
|
+
"dist",
|
|
384
|
+
"commands",
|
|
385
|
+
"branch",
|
|
386
|
+
"create",
|
|
387
|
+
"index.js"
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"branch:get": {
|
|
391
|
+
"aliases": [],
|
|
392
|
+
"args": {
|
|
393
|
+
"branch_label": {
|
|
394
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
395
|
+
"name": "branch_label",
|
|
396
|
+
"required": true
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"description": "Get details for a specific branch",
|
|
290
400
|
"examples": [
|
|
291
|
-
"$ xano branch
|
|
292
|
-
"$ xano branch
|
|
293
|
-
"$ xano branch
|
|
401
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
402
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
403
|
+
"$ xano branch get staging --output json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false,\n \"live\": false\n}\n"
|
|
294
404
|
],
|
|
295
405
|
"flags": {
|
|
296
406
|
"profile": {
|
|
@@ -325,11 +435,20 @@
|
|
|
325
435
|
"json"
|
|
326
436
|
],
|
|
327
437
|
"type": "option"
|
|
438
|
+
},
|
|
439
|
+
"workspace": {
|
|
440
|
+
"char": "w",
|
|
441
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
442
|
+
"name": "workspace",
|
|
443
|
+
"required": false,
|
|
444
|
+
"hasDynamicHelp": false,
|
|
445
|
+
"multiple": false,
|
|
446
|
+
"type": "option"
|
|
328
447
|
}
|
|
329
448
|
},
|
|
330
449
|
"hasDynamicHelp": false,
|
|
331
450
|
"hiddenAliases": [],
|
|
332
|
-
"id": "branch:
|
|
451
|
+
"id": "branch:get",
|
|
333
452
|
"pluginAlias": "@xano/cli",
|
|
334
453
|
"pluginName": "@xano/cli",
|
|
335
454
|
"pluginType": "core",
|
|
@@ -340,7 +459,7 @@
|
|
|
340
459
|
"dist",
|
|
341
460
|
"commands",
|
|
342
461
|
"branch",
|
|
343
|
-
"
|
|
462
|
+
"get",
|
|
344
463
|
"index.js"
|
|
345
464
|
]
|
|
346
465
|
},
|
|
@@ -428,19 +547,20 @@
|
|
|
428
547
|
"index.js"
|
|
429
548
|
]
|
|
430
549
|
},
|
|
431
|
-
"
|
|
550
|
+
"branch:list": {
|
|
432
551
|
"aliases": [],
|
|
433
552
|
"args": {
|
|
434
|
-
"
|
|
435
|
-
"description": "
|
|
436
|
-
"name": "
|
|
437
|
-
"required":
|
|
553
|
+
"workspace_id": {
|
|
554
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
555
|
+
"name": "workspace_id",
|
|
556
|
+
"required": false
|
|
438
557
|
}
|
|
439
558
|
},
|
|
440
|
-
"description": "
|
|
559
|
+
"description": "List all branches in a workspace",
|
|
441
560
|
"examples": [
|
|
442
|
-
"$ xano
|
|
443
|
-
"$ xano
|
|
561
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
562
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
563
|
+
"$ 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"
|
|
444
564
|
],
|
|
445
565
|
"flags": {
|
|
446
566
|
"profile": {
|
|
@@ -479,7 +599,7 @@
|
|
|
479
599
|
},
|
|
480
600
|
"hasDynamicHelp": false,
|
|
481
601
|
"hiddenAliases": [],
|
|
482
|
-
"id": "
|
|
602
|
+
"id": "branch:list",
|
|
483
603
|
"pluginAlias": "@xano/cli",
|
|
484
604
|
"pluginName": "@xano/cli",
|
|
485
605
|
"pluginType": "core",
|
|
@@ -489,18 +609,24 @@
|
|
|
489
609
|
"relativePath": [
|
|
490
610
|
"dist",
|
|
491
611
|
"commands",
|
|
492
|
-
"
|
|
493
|
-
"
|
|
612
|
+
"branch",
|
|
613
|
+
"list",
|
|
494
614
|
"index.js"
|
|
495
615
|
]
|
|
496
616
|
},
|
|
497
|
-
"platform:
|
|
617
|
+
"platform:get": {
|
|
498
618
|
"aliases": [],
|
|
499
|
-
"args": {
|
|
500
|
-
|
|
619
|
+
"args": {
|
|
620
|
+
"platform_id": {
|
|
621
|
+
"description": "Platform ID to retrieve",
|
|
622
|
+
"name": "platform_id",
|
|
623
|
+
"required": true
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"description": "Get details of a specific platform",
|
|
501
627
|
"examples": [
|
|
502
|
-
"$ xano platform
|
|
503
|
-
"$ xano platform
|
|
628
|
+
"$ xano platform get 23629\nPlatform ID: 23629\n Created: 2025-11-28\n Helm: 0.1.356\n Images:\n backend 0.0.2985\n frontend 0.1.3427\n database 0.1.6\n node 0.1.192\n deno 0.0.212\n redis 0.1.34\n realtime 0.1.149\n standalone 0.0.2456\n playwright 0.0.992\n static 0.0.10\n static-build 0.0.4\n backend-encoded 0.0.1396\n",
|
|
629
|
+
"$ xano platform get 23629 -o json"
|
|
504
630
|
],
|
|
505
631
|
"flags": {
|
|
506
632
|
"profile": {
|
|
@@ -539,7 +665,7 @@
|
|
|
539
665
|
},
|
|
540
666
|
"hasDynamicHelp": false,
|
|
541
667
|
"hiddenAliases": [],
|
|
542
|
-
"id": "platform:
|
|
668
|
+
"id": "platform:get",
|
|
543
669
|
"pluginAlias": "@xano/cli",
|
|
544
670
|
"pluginName": "@xano/cli",
|
|
545
671
|
"pluginType": "core",
|
|
@@ -550,7 +676,7 @@
|
|
|
550
676
|
"dist",
|
|
551
677
|
"commands",
|
|
552
678
|
"platform",
|
|
553
|
-
"
|
|
679
|
+
"get",
|
|
554
680
|
"index.js"
|
|
555
681
|
]
|
|
556
682
|
},
|
|
@@ -779,20 +905,13 @@
|
|
|
779
905
|
"index.js"
|
|
780
906
|
]
|
|
781
907
|
},
|
|
782
|
-
"
|
|
908
|
+
"platform:list": {
|
|
783
909
|
"aliases": [],
|
|
784
|
-
"args": {
|
|
785
|
-
|
|
786
|
-
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
787
|
-
"name": "branch_label",
|
|
788
|
-
"required": true
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
910
|
+
"args": {},
|
|
911
|
+
"description": "List all platforms",
|
|
792
912
|
"examples": [
|
|
793
|
-
"$ xano
|
|
794
|
-
"$ xano
|
|
795
|
-
"$ xano branch edit staging --description \"Staging environment\" -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"staging\",\n \"backup\": false\n}\n"
|
|
913
|
+
"$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
|
|
914
|
+
"$ xano platform list --output json"
|
|
796
915
|
],
|
|
797
916
|
"flags": {
|
|
798
917
|
"profile": {
|
|
@@ -814,60 +933,24 @@
|
|
|
814
933
|
"allowNo": false,
|
|
815
934
|
"type": "boolean"
|
|
816
935
|
},
|
|
817
|
-
"
|
|
818
|
-
"char": "
|
|
819
|
-
"description": "
|
|
820
|
-
"name": "
|
|
821
|
-
"required": false,
|
|
822
|
-
"hasDynamicHelp": false,
|
|
823
|
-
"multiple": false,
|
|
824
|
-
"type": "option"
|
|
825
|
-
},
|
|
826
|
-
"description": {
|
|
827
|
-
"char": "d",
|
|
828
|
-
"description": "New description for the branch",
|
|
829
|
-
"name": "description",
|
|
830
|
-
"required": false,
|
|
831
|
-
"hasDynamicHelp": false,
|
|
832
|
-
"multiple": false,
|
|
833
|
-
"type": "option"
|
|
834
|
-
},
|
|
835
|
-
"label": {
|
|
836
|
-
"char": "l",
|
|
837
|
-
"description": "New label for the branch",
|
|
838
|
-
"name": "label",
|
|
839
|
-
"required": false,
|
|
840
|
-
"hasDynamicHelp": false,
|
|
841
|
-
"multiple": false,
|
|
842
|
-
"type": "option"
|
|
843
|
-
},
|
|
844
|
-
"output": {
|
|
845
|
-
"char": "o",
|
|
846
|
-
"description": "Output format",
|
|
847
|
-
"name": "output",
|
|
848
|
-
"required": false,
|
|
849
|
-
"default": "summary",
|
|
850
|
-
"hasDynamicHelp": false,
|
|
851
|
-
"multiple": false,
|
|
852
|
-
"options": [
|
|
853
|
-
"summary",
|
|
854
|
-
"json"
|
|
855
|
-
],
|
|
856
|
-
"type": "option"
|
|
857
|
-
},
|
|
858
|
-
"workspace": {
|
|
859
|
-
"char": "w",
|
|
860
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
861
|
-
"name": "workspace",
|
|
936
|
+
"output": {
|
|
937
|
+
"char": "o",
|
|
938
|
+
"description": "Output format",
|
|
939
|
+
"name": "output",
|
|
862
940
|
"required": false,
|
|
941
|
+
"default": "summary",
|
|
863
942
|
"hasDynamicHelp": false,
|
|
864
943
|
"multiple": false,
|
|
944
|
+
"options": [
|
|
945
|
+
"summary",
|
|
946
|
+
"json"
|
|
947
|
+
],
|
|
865
948
|
"type": "option"
|
|
866
949
|
}
|
|
867
950
|
},
|
|
868
951
|
"hasDynamicHelp": false,
|
|
869
952
|
"hiddenAliases": [],
|
|
870
|
-
"id": "
|
|
953
|
+
"id": "platform:list",
|
|
871
954
|
"pluginAlias": "@xano/cli",
|
|
872
955
|
"pluginName": "@xano/cli",
|
|
873
956
|
"pluginType": "core",
|
|
@@ -877,25 +960,28 @@
|
|
|
877
960
|
"relativePath": [
|
|
878
961
|
"dist",
|
|
879
962
|
"commands",
|
|
880
|
-
"
|
|
881
|
-
"
|
|
963
|
+
"platform",
|
|
964
|
+
"list",
|
|
882
965
|
"index.js"
|
|
883
966
|
]
|
|
884
967
|
},
|
|
885
|
-
"
|
|
968
|
+
"function:get": {
|
|
886
969
|
"aliases": [],
|
|
887
970
|
"args": {
|
|
888
|
-
"
|
|
889
|
-
"description": "
|
|
890
|
-
"name": "
|
|
891
|
-
"required":
|
|
971
|
+
"function_id": {
|
|
972
|
+
"description": "Function ID",
|
|
973
|
+
"name": "function_id",
|
|
974
|
+
"required": false
|
|
892
975
|
}
|
|
893
976
|
},
|
|
894
|
-
"description": "Get
|
|
977
|
+
"description": "Get a specific function from a workspace",
|
|
895
978
|
"examples": [
|
|
896
|
-
"$ xano
|
|
897
|
-
"$ xano
|
|
898
|
-
"$ xano
|
|
979
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
980
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
981
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
982
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
983
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
984
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
899
985
|
],
|
|
900
986
|
"flags": {
|
|
901
987
|
"profile": {
|
|
@@ -917,6 +1003,20 @@
|
|
|
917
1003
|
"allowNo": false,
|
|
918
1004
|
"type": "boolean"
|
|
919
1005
|
},
|
|
1006
|
+
"include_draft": {
|
|
1007
|
+
"description": "Include draft version",
|
|
1008
|
+
"name": "include_draft",
|
|
1009
|
+
"required": false,
|
|
1010
|
+
"allowNo": false,
|
|
1011
|
+
"type": "boolean"
|
|
1012
|
+
},
|
|
1013
|
+
"include_xanoscript": {
|
|
1014
|
+
"description": "Include XanoScript in response",
|
|
1015
|
+
"name": "include_xanoscript",
|
|
1016
|
+
"required": false,
|
|
1017
|
+
"allowNo": false,
|
|
1018
|
+
"type": "boolean"
|
|
1019
|
+
},
|
|
920
1020
|
"output": {
|
|
921
1021
|
"char": "o",
|
|
922
1022
|
"description": "Output format",
|
|
@@ -927,13 +1027,14 @@
|
|
|
927
1027
|
"multiple": false,
|
|
928
1028
|
"options": [
|
|
929
1029
|
"summary",
|
|
930
|
-
"json"
|
|
1030
|
+
"json",
|
|
1031
|
+
"xs"
|
|
931
1032
|
],
|
|
932
1033
|
"type": "option"
|
|
933
1034
|
},
|
|
934
1035
|
"workspace": {
|
|
935
1036
|
"char": "w",
|
|
936
|
-
"description": "Workspace ID (
|
|
1037
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
937
1038
|
"name": "workspace",
|
|
938
1039
|
"required": false,
|
|
939
1040
|
"hasDynamicHelp": false,
|
|
@@ -943,7 +1044,7 @@
|
|
|
943
1044
|
},
|
|
944
1045
|
"hasDynamicHelp": false,
|
|
945
1046
|
"hiddenAliases": [],
|
|
946
|
-
"id": "
|
|
1047
|
+
"id": "function:get",
|
|
947
1048
|
"pluginAlias": "@xano/cli",
|
|
948
1049
|
"pluginName": "@xano/cli",
|
|
949
1050
|
"pluginType": "core",
|
|
@@ -953,7 +1054,7 @@
|
|
|
953
1054
|
"relativePath": [
|
|
954
1055
|
"dist",
|
|
955
1056
|
"commands",
|
|
956
|
-
"
|
|
1057
|
+
"function",
|
|
957
1058
|
"get",
|
|
958
1059
|
"index.js"
|
|
959
1060
|
]
|
|
@@ -1083,111 +1184,34 @@
|
|
|
1083
1184
|
"index.js"
|
|
1084
1185
|
]
|
|
1085
1186
|
},
|
|
1086
|
-
"
|
|
1187
|
+
"profile:delete": {
|
|
1087
1188
|
"aliases": [],
|
|
1088
1189
|
"args": {
|
|
1089
|
-
"
|
|
1090
|
-
"description": "
|
|
1091
|
-
"name": "
|
|
1092
|
-
"required":
|
|
1190
|
+
"name": {
|
|
1191
|
+
"description": "Profile name to delete",
|
|
1192
|
+
"name": "name",
|
|
1193
|
+
"required": true
|
|
1093
1194
|
}
|
|
1094
1195
|
},
|
|
1095
|
-
"description": "
|
|
1196
|
+
"description": "Delete a profile configuration",
|
|
1096
1197
|
"examples": [
|
|
1097
|
-
"$ xano
|
|
1098
|
-
"$ xano
|
|
1099
|
-
"$ xano
|
|
1100
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
1101
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
1102
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
1198
|
+
"$ xano profile:delete old-profile\nAre you sure you want to delete profile 'old-profile'? (y/n): y\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
1199
|
+
"$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
1200
|
+
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
1103
1201
|
],
|
|
1104
1202
|
"flags": {
|
|
1105
|
-
"
|
|
1106
|
-
"char": "
|
|
1107
|
-
"description": "
|
|
1108
|
-
"
|
|
1109
|
-
"name": "profile",
|
|
1110
|
-
"required": false,
|
|
1111
|
-
"hasDynamicHelp": false,
|
|
1112
|
-
"multiple": false,
|
|
1113
|
-
"type": "option"
|
|
1114
|
-
},
|
|
1115
|
-
"verbose": {
|
|
1116
|
-
"char": "v",
|
|
1117
|
-
"description": "Show detailed request/response information",
|
|
1118
|
-
"env": "XANO_VERBOSE",
|
|
1119
|
-
"name": "verbose",
|
|
1120
|
-
"required": false,
|
|
1121
|
-
"allowNo": false,
|
|
1122
|
-
"type": "boolean"
|
|
1123
|
-
},
|
|
1124
|
-
"include_draft": {
|
|
1125
|
-
"description": "Include draft version",
|
|
1126
|
-
"name": "include_draft",
|
|
1127
|
-
"required": false,
|
|
1128
|
-
"allowNo": false,
|
|
1129
|
-
"type": "boolean"
|
|
1130
|
-
},
|
|
1131
|
-
"include_xanoscript": {
|
|
1132
|
-
"description": "Include XanoScript in response",
|
|
1133
|
-
"name": "include_xanoscript",
|
|
1203
|
+
"force": {
|
|
1204
|
+
"char": "f",
|
|
1205
|
+
"description": "Skip confirmation prompt",
|
|
1206
|
+
"name": "force",
|
|
1134
1207
|
"required": false,
|
|
1135
1208
|
"allowNo": false,
|
|
1136
1209
|
"type": "boolean"
|
|
1137
|
-
},
|
|
1138
|
-
"output": {
|
|
1139
|
-
"char": "o",
|
|
1140
|
-
"description": "Output format",
|
|
1141
|
-
"name": "output",
|
|
1142
|
-
"required": false,
|
|
1143
|
-
"default": "summary",
|
|
1144
|
-
"hasDynamicHelp": false,
|
|
1145
|
-
"multiple": false,
|
|
1146
|
-
"options": [
|
|
1147
|
-
"summary",
|
|
1148
|
-
"json",
|
|
1149
|
-
"xs"
|
|
1150
|
-
],
|
|
1151
|
-
"type": "option"
|
|
1152
|
-
},
|
|
1153
|
-
"workspace": {
|
|
1154
|
-
"char": "w",
|
|
1155
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
1156
|
-
"name": "workspace",
|
|
1157
|
-
"required": false,
|
|
1158
|
-
"hasDynamicHelp": false,
|
|
1159
|
-
"multiple": false,
|
|
1160
|
-
"type": "option"
|
|
1161
1210
|
}
|
|
1162
1211
|
},
|
|
1163
1212
|
"hasDynamicHelp": false,
|
|
1164
1213
|
"hiddenAliases": [],
|
|
1165
|
-
"id": "
|
|
1166
|
-
"pluginAlias": "@xano/cli",
|
|
1167
|
-
"pluginName": "@xano/cli",
|
|
1168
|
-
"pluginType": "core",
|
|
1169
|
-
"strict": true,
|
|
1170
|
-
"enableJsonFlag": false,
|
|
1171
|
-
"isESM": true,
|
|
1172
|
-
"relativePath": [
|
|
1173
|
-
"dist",
|
|
1174
|
-
"commands",
|
|
1175
|
-
"function",
|
|
1176
|
-
"get",
|
|
1177
|
-
"index.js"
|
|
1178
|
-
]
|
|
1179
|
-
},
|
|
1180
|
-
"profile:get": {
|
|
1181
|
-
"aliases": [],
|
|
1182
|
-
"args": {},
|
|
1183
|
-
"description": "Get the current default profile name",
|
|
1184
|
-
"examples": [
|
|
1185
|
-
"$ xano profile get\nproduction\n"
|
|
1186
|
-
],
|
|
1187
|
-
"flags": {},
|
|
1188
|
-
"hasDynamicHelp": false,
|
|
1189
|
-
"hiddenAliases": [],
|
|
1190
|
-
"id": "profile:get",
|
|
1214
|
+
"id": "profile:delete",
|
|
1191
1215
|
"pluginAlias": "@xano/cli",
|
|
1192
1216
|
"pluginName": "@xano/cli",
|
|
1193
1217
|
"pluginType": "core",
|
|
@@ -1198,7 +1222,7 @@
|
|
|
1198
1222
|
"dist",
|
|
1199
1223
|
"commands",
|
|
1200
1224
|
"profile",
|
|
1201
|
-
"
|
|
1225
|
+
"delete",
|
|
1202
1226
|
"index.js"
|
|
1203
1227
|
]
|
|
1204
1228
|
},
|
|
@@ -1217,7 +1241,9 @@
|
|
|
1217
1241
|
"$ xano profile:edit production --access_token new_token123\nProfile 'production' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1218
1242
|
"$ xano profile:edit staging -i https://new-staging-instance.xano.com -t new_token456\nProfile 'staging' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1219
1243
|
"$ xano profile:edit -b new-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1220
|
-
"$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
1244
|
+
"$ xano profile:edit --remove-branch\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1245
|
+
"$ xano profile:edit --insecure\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n",
|
|
1246
|
+
"$ xano profile:edit --remove-insecure\nProfile 'default' updated successfully at ~/.xano/credentials.yaml\n"
|
|
1221
1247
|
],
|
|
1222
1248
|
"flags": {
|
|
1223
1249
|
"profile": {
|
|
@@ -1266,6 +1292,13 @@
|
|
|
1266
1292
|
"multiple": false,
|
|
1267
1293
|
"type": "option"
|
|
1268
1294
|
},
|
|
1295
|
+
"insecure": {
|
|
1296
|
+
"description": "Enable insecure mode (skip TLS certificate verification)",
|
|
1297
|
+
"name": "insecure",
|
|
1298
|
+
"required": false,
|
|
1299
|
+
"allowNo": false,
|
|
1300
|
+
"type": "boolean"
|
|
1301
|
+
},
|
|
1269
1302
|
"instance_origin": {
|
|
1270
1303
|
"char": "i",
|
|
1271
1304
|
"description": "Update instance origin URL",
|
|
@@ -1282,6 +1315,13 @@
|
|
|
1282
1315
|
"allowNo": false,
|
|
1283
1316
|
"type": "boolean"
|
|
1284
1317
|
},
|
|
1318
|
+
"remove-insecure": {
|
|
1319
|
+
"description": "Remove insecure mode from profile",
|
|
1320
|
+
"name": "remove-insecure",
|
|
1321
|
+
"required": false,
|
|
1322
|
+
"allowNo": false,
|
|
1323
|
+
"type": "boolean"
|
|
1324
|
+
},
|
|
1285
1325
|
"remove-workspace": {
|
|
1286
1326
|
"description": "Remove workspace from profile",
|
|
1287
1327
|
"name": "remove-workspace",
|
|
@@ -1470,34 +1510,45 @@
|
|
|
1470
1510
|
"index.js"
|
|
1471
1511
|
]
|
|
1472
1512
|
},
|
|
1473
|
-
"profile:
|
|
1513
|
+
"profile:wizard": {
|
|
1474
1514
|
"aliases": [],
|
|
1475
|
-
"args": {
|
|
1476
|
-
|
|
1477
|
-
"description": "Profile name to delete",
|
|
1478
|
-
"name": "name",
|
|
1479
|
-
"required": true
|
|
1480
|
-
}
|
|
1481
|
-
},
|
|
1482
|
-
"description": "Delete a profile configuration",
|
|
1515
|
+
"args": {},
|
|
1516
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
1483
1517
|
"examples": [
|
|
1484
|
-
"$ xano profile:
|
|
1485
|
-
"$ xano profile:delete old-profile --force\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n",
|
|
1486
|
-
"$ xano profile:delete old-profile -f\nProfile 'old-profile' deleted successfully from ~/.xano/credentials.yaml\n"
|
|
1518
|
+
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
1487
1519
|
],
|
|
1488
1520
|
"flags": {
|
|
1489
|
-
"
|
|
1490
|
-
"char": "
|
|
1491
|
-
"description": "Skip
|
|
1492
|
-
"name": "
|
|
1521
|
+
"insecure": {
|
|
1522
|
+
"char": "k",
|
|
1523
|
+
"description": "Skip TLS certificate verification (for self-signed certificates)",
|
|
1524
|
+
"name": "insecure",
|
|
1493
1525
|
"required": false,
|
|
1494
1526
|
"allowNo": false,
|
|
1495
1527
|
"type": "boolean"
|
|
1528
|
+
},
|
|
1529
|
+
"name": {
|
|
1530
|
+
"char": "n",
|
|
1531
|
+
"description": "Profile name (skip prompt if provided)",
|
|
1532
|
+
"name": "name",
|
|
1533
|
+
"required": false,
|
|
1534
|
+
"hasDynamicHelp": false,
|
|
1535
|
+
"multiple": false,
|
|
1536
|
+
"type": "option"
|
|
1537
|
+
},
|
|
1538
|
+
"origin": {
|
|
1539
|
+
"char": "o",
|
|
1540
|
+
"description": "Xano instance origin URL",
|
|
1541
|
+
"name": "origin",
|
|
1542
|
+
"required": false,
|
|
1543
|
+
"default": "https://app.xano.com",
|
|
1544
|
+
"hasDynamicHelp": false,
|
|
1545
|
+
"multiple": false,
|
|
1546
|
+
"type": "option"
|
|
1496
1547
|
}
|
|
1497
1548
|
},
|
|
1498
1549
|
"hasDynamicHelp": false,
|
|
1499
1550
|
"hiddenAliases": [],
|
|
1500
|
-
"id": "profile:
|
|
1551
|
+
"id": "profile:wizard",
|
|
1501
1552
|
"pluginAlias": "@xano/cli",
|
|
1502
1553
|
"pluginName": "@xano/cli",
|
|
1503
1554
|
"pluginType": "core",
|
|
@@ -1508,25 +1559,51 @@
|
|
|
1508
1559
|
"dist",
|
|
1509
1560
|
"commands",
|
|
1510
1561
|
"profile",
|
|
1511
|
-
"
|
|
1562
|
+
"wizard",
|
|
1512
1563
|
"index.js"
|
|
1513
1564
|
]
|
|
1514
1565
|
},
|
|
1515
|
-
"profile:
|
|
1566
|
+
"profile:get": {
|
|
1516
1567
|
"aliases": [],
|
|
1517
|
-
"args": {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1568
|
+
"args": {},
|
|
1569
|
+
"description": "Get the current default profile name",
|
|
1570
|
+
"examples": [
|
|
1571
|
+
"$ xano profile get\nproduction\n"
|
|
1572
|
+
],
|
|
1573
|
+
"flags": {},
|
|
1574
|
+
"hasDynamicHelp": false,
|
|
1575
|
+
"hiddenAliases": [],
|
|
1576
|
+
"id": "profile:get",
|
|
1577
|
+
"pluginAlias": "@xano/cli",
|
|
1578
|
+
"pluginName": "@xano/cli",
|
|
1579
|
+
"pluginType": "core",
|
|
1580
|
+
"strict": true,
|
|
1581
|
+
"enableJsonFlag": false,
|
|
1582
|
+
"isESM": true,
|
|
1583
|
+
"relativePath": [
|
|
1584
|
+
"dist",
|
|
1585
|
+
"commands",
|
|
1586
|
+
"profile",
|
|
1587
|
+
"get",
|
|
1588
|
+
"index.js"
|
|
1589
|
+
]
|
|
1590
|
+
},
|
|
1591
|
+
"profile:create": {
|
|
1592
|
+
"aliases": [],
|
|
1593
|
+
"args": {
|
|
1594
|
+
"name": {
|
|
1595
|
+
"description": "Profile name",
|
|
1596
|
+
"name": "name",
|
|
1597
|
+
"required": true
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1524
1600
|
"description": "Create a new profile configuration",
|
|
1525
1601
|
"examples": [
|
|
1526
1602
|
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
|
|
1527
1603
|
"$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
|
|
1528
1604
|
"$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
|
|
1529
|
-
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
|
|
1605
|
+
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n",
|
|
1606
|
+
"$ xano profile:create selfhosted -i https://self-signed.example.com -t token123 --insecure\nProfile 'selfhosted' created successfully at ~/.xano/credentials.yaml\n"
|
|
1530
1607
|
],
|
|
1531
1608
|
"flags": {
|
|
1532
1609
|
"access_token": {
|
|
@@ -1563,6 +1640,14 @@
|
|
|
1563
1640
|
"allowNo": false,
|
|
1564
1641
|
"type": "boolean"
|
|
1565
1642
|
},
|
|
1643
|
+
"insecure": {
|
|
1644
|
+
"char": "k",
|
|
1645
|
+
"description": "Skip TLS certificate verification (for self-signed certificates)",
|
|
1646
|
+
"name": "insecure",
|
|
1647
|
+
"required": false,
|
|
1648
|
+
"allowNo": false,
|
|
1649
|
+
"type": "boolean"
|
|
1650
|
+
},
|
|
1566
1651
|
"instance_origin": {
|
|
1567
1652
|
"char": "i",
|
|
1568
1653
|
"description": "Instance origin URL",
|
|
@@ -1599,91 +1684,13 @@
|
|
|
1599
1684
|
"index.js"
|
|
1600
1685
|
]
|
|
1601
1686
|
},
|
|
1602
|
-
"
|
|
1603
|
-
"aliases": [],
|
|
1604
|
-
"args": {},
|
|
1605
|
-
"description": "Print the workspace ID for the default profile",
|
|
1606
|
-
"examples": [
|
|
1607
|
-
"$ xano profile:workspace\nabc123-workspace-id\n",
|
|
1608
|
-
"$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
|
|
1609
|
-
],
|
|
1610
|
-
"flags": {},
|
|
1611
|
-
"hasDynamicHelp": false,
|
|
1612
|
-
"hiddenAliases": [],
|
|
1613
|
-
"id": "profile:workspace",
|
|
1614
|
-
"pluginAlias": "@xano/cli",
|
|
1615
|
-
"pluginName": "@xano/cli",
|
|
1616
|
-
"pluginType": "core",
|
|
1617
|
-
"strict": true,
|
|
1618
|
-
"enableJsonFlag": false,
|
|
1619
|
-
"isESM": true,
|
|
1620
|
-
"relativePath": [
|
|
1621
|
-
"dist",
|
|
1622
|
-
"commands",
|
|
1623
|
-
"profile",
|
|
1624
|
-
"workspace",
|
|
1625
|
-
"index.js"
|
|
1626
|
-
]
|
|
1627
|
-
},
|
|
1628
|
-
"profile:wizard": {
|
|
1687
|
+
"release:create": {
|
|
1629
1688
|
"aliases": [],
|
|
1630
1689
|
"args": {},
|
|
1631
|
-
"description": "Create a new
|
|
1632
|
-
"examples": [
|
|
1633
|
-
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
1634
|
-
],
|
|
1635
|
-
"flags": {
|
|
1636
|
-
"name": {
|
|
1637
|
-
"char": "n",
|
|
1638
|
-
"description": "Profile name (skip prompt if provided)",
|
|
1639
|
-
"name": "name",
|
|
1640
|
-
"required": false,
|
|
1641
|
-
"hasDynamicHelp": false,
|
|
1642
|
-
"multiple": false,
|
|
1643
|
-
"type": "option"
|
|
1644
|
-
},
|
|
1645
|
-
"origin": {
|
|
1646
|
-
"char": "o",
|
|
1647
|
-
"description": "Xano instance origin URL",
|
|
1648
|
-
"name": "origin",
|
|
1649
|
-
"required": false,
|
|
1650
|
-
"default": "https://app.xano.com",
|
|
1651
|
-
"hasDynamicHelp": false,
|
|
1652
|
-
"multiple": false,
|
|
1653
|
-
"type": "option"
|
|
1654
|
-
}
|
|
1655
|
-
},
|
|
1656
|
-
"hasDynamicHelp": false,
|
|
1657
|
-
"hiddenAliases": [],
|
|
1658
|
-
"id": "profile:wizard",
|
|
1659
|
-
"pluginAlias": "@xano/cli",
|
|
1660
|
-
"pluginName": "@xano/cli",
|
|
1661
|
-
"pluginType": "core",
|
|
1662
|
-
"strict": true,
|
|
1663
|
-
"enableJsonFlag": false,
|
|
1664
|
-
"isESM": true,
|
|
1665
|
-
"relativePath": [
|
|
1666
|
-
"dist",
|
|
1667
|
-
"commands",
|
|
1668
|
-
"profile",
|
|
1669
|
-
"wizard",
|
|
1670
|
-
"index.js"
|
|
1671
|
-
]
|
|
1672
|
-
},
|
|
1673
|
-
"release:export": {
|
|
1674
|
-
"aliases": [],
|
|
1675
|
-
"args": {
|
|
1676
|
-
"release_name": {
|
|
1677
|
-
"description": "Release name to export",
|
|
1678
|
-
"name": "release_name",
|
|
1679
|
-
"required": true
|
|
1680
|
-
}
|
|
1681
|
-
},
|
|
1682
|
-
"description": "Export (download) a release to a local file",
|
|
1690
|
+
"description": "Create a new release in a workspace",
|
|
1683
1691
|
"examples": [
|
|
1684
|
-
"$ xano release
|
|
1685
|
-
"$ xano release
|
|
1686
|
-
"$ xano release export v1.0 -o json"
|
|
1692
|
+
"$ xano release create --name \"v1.0\" --branch main\nCreated release: v1.0 - ID: 10\n",
|
|
1693
|
+
"$ xano release create --name \"v1.1-hotfix\" --branch main --hotfix --description \"Critical fix\" -o json"
|
|
1687
1694
|
],
|
|
1688
1695
|
"flags": {
|
|
1689
1696
|
"profile": {
|
|
@@ -1705,10 +1712,44 @@
|
|
|
1705
1712
|
"allowNo": false,
|
|
1706
1713
|
"type": "boolean"
|
|
1707
1714
|
},
|
|
1708
|
-
"
|
|
1715
|
+
"branch": {
|
|
1716
|
+
"char": "b",
|
|
1717
|
+
"description": "Branch to create the release from",
|
|
1718
|
+
"name": "branch",
|
|
1719
|
+
"required": true,
|
|
1720
|
+
"hasDynamicHelp": false,
|
|
1721
|
+
"multiple": false,
|
|
1722
|
+
"type": "option"
|
|
1723
|
+
},
|
|
1724
|
+
"description": {
|
|
1725
|
+
"char": "d",
|
|
1726
|
+
"description": "Release description",
|
|
1727
|
+
"name": "description",
|
|
1728
|
+
"required": false,
|
|
1729
|
+
"hasDynamicHelp": false,
|
|
1730
|
+
"multiple": false,
|
|
1731
|
+
"type": "option"
|
|
1732
|
+
},
|
|
1733
|
+
"hotfix": {
|
|
1734
|
+
"description": "Mark as a hotfix release",
|
|
1735
|
+
"name": "hotfix",
|
|
1736
|
+
"required": false,
|
|
1737
|
+
"allowNo": false,
|
|
1738
|
+
"type": "boolean"
|
|
1739
|
+
},
|
|
1740
|
+
"name": {
|
|
1741
|
+
"char": "n",
|
|
1742
|
+
"description": "Name for the release",
|
|
1743
|
+
"name": "name",
|
|
1744
|
+
"required": true,
|
|
1745
|
+
"hasDynamicHelp": false,
|
|
1746
|
+
"multiple": false,
|
|
1747
|
+
"type": "option"
|
|
1748
|
+
},
|
|
1749
|
+
"output": {
|
|
1709
1750
|
"char": "o",
|
|
1710
1751
|
"description": "Output format",
|
|
1711
|
-
"name": "
|
|
1752
|
+
"name": "output",
|
|
1712
1753
|
"required": false,
|
|
1713
1754
|
"default": "summary",
|
|
1714
1755
|
"hasDynamicHelp": false,
|
|
@@ -1719,9 +1760,9 @@
|
|
|
1719
1760
|
],
|
|
1720
1761
|
"type": "option"
|
|
1721
1762
|
},
|
|
1722
|
-
"
|
|
1723
|
-
"description": "
|
|
1724
|
-
"name": "
|
|
1763
|
+
"table-ids": {
|
|
1764
|
+
"description": "Comma-separated table IDs to include",
|
|
1765
|
+
"name": "table-ids",
|
|
1725
1766
|
"required": false,
|
|
1726
1767
|
"hasDynamicHelp": false,
|
|
1727
1768
|
"multiple": false,
|
|
@@ -1739,7 +1780,7 @@
|
|
|
1739
1780
|
},
|
|
1740
1781
|
"hasDynamicHelp": false,
|
|
1741
1782
|
"hiddenAliases": [],
|
|
1742
|
-
"id": "release:
|
|
1783
|
+
"id": "release:create",
|
|
1743
1784
|
"pluginAlias": "@xano/cli",
|
|
1744
1785
|
"pluginName": "@xano/cli",
|
|
1745
1786
|
"pluginType": "core",
|
|
@@ -1750,23 +1791,50 @@
|
|
|
1750
1791
|
"dist",
|
|
1751
1792
|
"commands",
|
|
1752
1793
|
"release",
|
|
1753
|
-
"
|
|
1794
|
+
"create",
|
|
1754
1795
|
"index.js"
|
|
1755
1796
|
]
|
|
1756
1797
|
},
|
|
1757
|
-
"
|
|
1798
|
+
"profile:workspace": {
|
|
1799
|
+
"aliases": [],
|
|
1800
|
+
"args": {},
|
|
1801
|
+
"description": "Print the workspace ID for the default profile",
|
|
1802
|
+
"examples": [
|
|
1803
|
+
"$ xano profile:workspace\nabc123-workspace-id\n",
|
|
1804
|
+
"$ xano profile:workspace | pbcopy\n# Copies the workspace ID to clipboard on macOS\n"
|
|
1805
|
+
],
|
|
1806
|
+
"flags": {},
|
|
1807
|
+
"hasDynamicHelp": false,
|
|
1808
|
+
"hiddenAliases": [],
|
|
1809
|
+
"id": "profile:workspace",
|
|
1810
|
+
"pluginAlias": "@xano/cli",
|
|
1811
|
+
"pluginName": "@xano/cli",
|
|
1812
|
+
"pluginType": "core",
|
|
1813
|
+
"strict": true,
|
|
1814
|
+
"enableJsonFlag": false,
|
|
1815
|
+
"isESM": true,
|
|
1816
|
+
"relativePath": [
|
|
1817
|
+
"dist",
|
|
1818
|
+
"commands",
|
|
1819
|
+
"profile",
|
|
1820
|
+
"workspace",
|
|
1821
|
+
"index.js"
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1824
|
+
"release:delete": {
|
|
1758
1825
|
"aliases": [],
|
|
1759
1826
|
"args": {
|
|
1760
1827
|
"release_name": {
|
|
1761
|
-
"description": "Release name to
|
|
1828
|
+
"description": "Release name to delete",
|
|
1762
1829
|
"name": "release_name",
|
|
1763
1830
|
"required": true
|
|
1764
1831
|
}
|
|
1765
1832
|
},
|
|
1766
|
-
"description": "
|
|
1833
|
+
"description": "Delete a release permanently. This action cannot be undone.",
|
|
1767
1834
|
"examples": [
|
|
1768
|
-
"$ xano release
|
|
1769
|
-
"$ xano release
|
|
1835
|
+
"$ xano release delete v1.0\nAre you sure you want to delete release 'v1.0'? This action cannot be undone. (y/N) y\nDeleted release 'v1.0'\n",
|
|
1836
|
+
"$ xano release delete v1.0 --force\nDeleted release 'v1.0'\n",
|
|
1837
|
+
"$ xano release delete v1.0 -f -o json"
|
|
1770
1838
|
],
|
|
1771
1839
|
"flags": {
|
|
1772
1840
|
"profile": {
|
|
@@ -1788,23 +1856,13 @@
|
|
|
1788
1856
|
"allowNo": false,
|
|
1789
1857
|
"type": "boolean"
|
|
1790
1858
|
},
|
|
1791
|
-
"
|
|
1792
|
-
"char": "
|
|
1793
|
-
"description": "
|
|
1794
|
-
"name": "
|
|
1795
|
-
"required": false,
|
|
1796
|
-
"hasDynamicHelp": false,
|
|
1797
|
-
"multiple": false,
|
|
1798
|
-
"type": "option"
|
|
1799
|
-
},
|
|
1800
|
-
"name": {
|
|
1801
|
-
"char": "n",
|
|
1802
|
-
"description": "New name for the release",
|
|
1803
|
-
"name": "name",
|
|
1859
|
+
"force": {
|
|
1860
|
+
"char": "f",
|
|
1861
|
+
"description": "Skip confirmation prompt",
|
|
1862
|
+
"name": "force",
|
|
1804
1863
|
"required": false,
|
|
1805
|
-
"
|
|
1806
|
-
"
|
|
1807
|
-
"type": "option"
|
|
1864
|
+
"allowNo": false,
|
|
1865
|
+
"type": "boolean"
|
|
1808
1866
|
},
|
|
1809
1867
|
"output": {
|
|
1810
1868
|
"char": "o",
|
|
@@ -1832,7 +1890,7 @@
|
|
|
1832
1890
|
},
|
|
1833
1891
|
"hasDynamicHelp": false,
|
|
1834
1892
|
"hiddenAliases": [],
|
|
1835
|
-
"id": "release:
|
|
1893
|
+
"id": "release:delete",
|
|
1836
1894
|
"pluginAlias": "@xano/cli",
|
|
1837
1895
|
"pluginName": "@xano/cli",
|
|
1838
1896
|
"pluginType": "core",
|
|
@@ -1843,17 +1901,23 @@
|
|
|
1843
1901
|
"dist",
|
|
1844
1902
|
"commands",
|
|
1845
1903
|
"release",
|
|
1846
|
-
"
|
|
1904
|
+
"delete",
|
|
1847
1905
|
"index.js"
|
|
1848
1906
|
]
|
|
1849
1907
|
},
|
|
1850
|
-
"release:
|
|
1908
|
+
"release:edit": {
|
|
1851
1909
|
"aliases": [],
|
|
1852
|
-
"args": {
|
|
1853
|
-
|
|
1910
|
+
"args": {
|
|
1911
|
+
"release_name": {
|
|
1912
|
+
"description": "Release name to edit",
|
|
1913
|
+
"name": "release_name",
|
|
1914
|
+
"required": true
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1917
|
+
"description": "Edit an existing release",
|
|
1854
1918
|
"examples": [
|
|
1855
|
-
"$ xano release
|
|
1856
|
-
"$ xano release
|
|
1919
|
+
"$ xano release edit v1.0 --name \"v1.0-final\" --description \"Updated description\"\nUpdated release: v1.0-final - ID: 10\n",
|
|
1920
|
+
"$ xano release edit v1.0 --description \"New description\" -o json"
|
|
1857
1921
|
],
|
|
1858
1922
|
"flags": {
|
|
1859
1923
|
"profile": {
|
|
@@ -1875,36 +1939,20 @@
|
|
|
1875
1939
|
"allowNo": false,
|
|
1876
1940
|
"type": "boolean"
|
|
1877
1941
|
},
|
|
1878
|
-
"branch": {
|
|
1879
|
-
"char": "b",
|
|
1880
|
-
"description": "Branch to create the release from",
|
|
1881
|
-
"name": "branch",
|
|
1882
|
-
"required": true,
|
|
1883
|
-
"hasDynamicHelp": false,
|
|
1884
|
-
"multiple": false,
|
|
1885
|
-
"type": "option"
|
|
1886
|
-
},
|
|
1887
1942
|
"description": {
|
|
1888
1943
|
"char": "d",
|
|
1889
|
-
"description": "
|
|
1944
|
+
"description": "New description",
|
|
1890
1945
|
"name": "description",
|
|
1891
1946
|
"required": false,
|
|
1892
1947
|
"hasDynamicHelp": false,
|
|
1893
1948
|
"multiple": false,
|
|
1894
1949
|
"type": "option"
|
|
1895
1950
|
},
|
|
1896
|
-
"hotfix": {
|
|
1897
|
-
"description": "Mark as a hotfix release",
|
|
1898
|
-
"name": "hotfix",
|
|
1899
|
-
"required": false,
|
|
1900
|
-
"allowNo": false,
|
|
1901
|
-
"type": "boolean"
|
|
1902
|
-
},
|
|
1903
1951
|
"name": {
|
|
1904
1952
|
"char": "n",
|
|
1905
|
-
"description": "
|
|
1953
|
+
"description": "New name for the release",
|
|
1906
1954
|
"name": "name",
|
|
1907
|
-
"required":
|
|
1955
|
+
"required": false,
|
|
1908
1956
|
"hasDynamicHelp": false,
|
|
1909
1957
|
"multiple": false,
|
|
1910
1958
|
"type": "option"
|
|
@@ -1923,14 +1971,6 @@
|
|
|
1923
1971
|
],
|
|
1924
1972
|
"type": "option"
|
|
1925
1973
|
},
|
|
1926
|
-
"table-ids": {
|
|
1927
|
-
"description": "Comma-separated table IDs to include",
|
|
1928
|
-
"name": "table-ids",
|
|
1929
|
-
"required": false,
|
|
1930
|
-
"hasDynamicHelp": false,
|
|
1931
|
-
"multiple": false,
|
|
1932
|
-
"type": "option"
|
|
1933
|
-
},
|
|
1934
1974
|
"workspace": {
|
|
1935
1975
|
"char": "w",
|
|
1936
1976
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -1943,7 +1983,7 @@
|
|
|
1943
1983
|
},
|
|
1944
1984
|
"hasDynamicHelp": false,
|
|
1945
1985
|
"hiddenAliases": [],
|
|
1946
|
-
"id": "release:
|
|
1986
|
+
"id": "release:edit",
|
|
1947
1987
|
"pluginAlias": "@xano/cli",
|
|
1948
1988
|
"pluginName": "@xano/cli",
|
|
1949
1989
|
"pluginType": "core",
|
|
@@ -1954,24 +1994,24 @@
|
|
|
1954
1994
|
"dist",
|
|
1955
1995
|
"commands",
|
|
1956
1996
|
"release",
|
|
1957
|
-
"
|
|
1997
|
+
"edit",
|
|
1958
1998
|
"index.js"
|
|
1959
1999
|
]
|
|
1960
2000
|
},
|
|
1961
|
-
"release:
|
|
2001
|
+
"release:export": {
|
|
1962
2002
|
"aliases": [],
|
|
1963
2003
|
"args": {
|
|
1964
2004
|
"release_name": {
|
|
1965
|
-
"description": "Release name to
|
|
2005
|
+
"description": "Release name to export",
|
|
1966
2006
|
"name": "release_name",
|
|
1967
2007
|
"required": true
|
|
1968
2008
|
}
|
|
1969
2009
|
},
|
|
1970
|
-
"description": "
|
|
2010
|
+
"description": "Export (download) a release to a local file",
|
|
1971
2011
|
"examples": [
|
|
1972
|
-
"$ xano release
|
|
1973
|
-
"$ xano release
|
|
1974
|
-
"$ xano release
|
|
2012
|
+
"$ xano release export v1.0\nDownloaded release 'v1.0' to ./release-v1.0.tar.gz\n",
|
|
2013
|
+
"$ xano release export v1.0 --output ./backups/my-release.tar.gz",
|
|
2014
|
+
"$ xano release export v1.0 -o json"
|
|
1975
2015
|
],
|
|
1976
2016
|
"flags": {
|
|
1977
2017
|
"profile": {
|
|
@@ -1993,18 +2033,10 @@
|
|
|
1993
2033
|
"allowNo": false,
|
|
1994
2034
|
"type": "boolean"
|
|
1995
2035
|
},
|
|
1996
|
-
"
|
|
1997
|
-
"char": "f",
|
|
1998
|
-
"description": "Skip confirmation prompt",
|
|
1999
|
-
"name": "force",
|
|
2000
|
-
"required": false,
|
|
2001
|
-
"allowNo": false,
|
|
2002
|
-
"type": "boolean"
|
|
2003
|
-
},
|
|
2004
|
-
"output": {
|
|
2036
|
+
"format": {
|
|
2005
2037
|
"char": "o",
|
|
2006
2038
|
"description": "Output format",
|
|
2007
|
-
"name": "
|
|
2039
|
+
"name": "format",
|
|
2008
2040
|
"required": false,
|
|
2009
2041
|
"default": "summary",
|
|
2010
2042
|
"hasDynamicHelp": false,
|
|
@@ -2015,6 +2047,14 @@
|
|
|
2015
2047
|
],
|
|
2016
2048
|
"type": "option"
|
|
2017
2049
|
},
|
|
2050
|
+
"output": {
|
|
2051
|
+
"description": "Output file path (defaults to ./release-{name}.tar.gz)",
|
|
2052
|
+
"name": "output",
|
|
2053
|
+
"required": false,
|
|
2054
|
+
"hasDynamicHelp": false,
|
|
2055
|
+
"multiple": false,
|
|
2056
|
+
"type": "option"
|
|
2057
|
+
},
|
|
2018
2058
|
"workspace": {
|
|
2019
2059
|
"char": "w",
|
|
2020
2060
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2027,7 +2067,7 @@
|
|
|
2027
2067
|
},
|
|
2028
2068
|
"hasDynamicHelp": false,
|
|
2029
2069
|
"hiddenAliases": [],
|
|
2030
|
-
"id": "release:
|
|
2070
|
+
"id": "release:export",
|
|
2031
2071
|
"pluginAlias": "@xano/cli",
|
|
2032
2072
|
"pluginName": "@xano/cli",
|
|
2033
2073
|
"pluginType": "core",
|
|
@@ -2038,7 +2078,7 @@
|
|
|
2038
2078
|
"dist",
|
|
2039
2079
|
"commands",
|
|
2040
2080
|
"release",
|
|
2041
|
-
"
|
|
2081
|
+
"export",
|
|
2042
2082
|
"index.js"
|
|
2043
2083
|
]
|
|
2044
2084
|
},
|
|
@@ -2195,22 +2235,13 @@
|
|
|
2195
2235
|
"index.js"
|
|
2196
2236
|
]
|
|
2197
2237
|
},
|
|
2198
|
-
"release:
|
|
2238
|
+
"release:list": {
|
|
2199
2239
|
"aliases": [],
|
|
2200
|
-
"args": {
|
|
2201
|
-
|
|
2202
|
-
"description": "Directory containing .xs documents to create the release from",
|
|
2203
|
-
"name": "directory",
|
|
2204
|
-
"required": true
|
|
2205
|
-
}
|
|
2206
|
-
},
|
|
2207
|
-
"description": "Create a new release from local XanoScript files via the multidoc endpoint",
|
|
2240
|
+
"args": {},
|
|
2241
|
+
"description": "List all releases in a workspace",
|
|
2208
2242
|
"examples": [
|
|
2209
|
-
"$ xano release
|
|
2210
|
-
"$ xano release
|
|
2211
|
-
"$ xano release push ./backup -n \"v1.1-hotfix\" --hotfix --profile production\nCreated release: v1.1-hotfix - ID: 20\n",
|
|
2212
|
-
"$ xano release push ./my-release -n \"v1.0\" --no-records --no-env\nCreate release from schema only, skip records and environment variables\n",
|
|
2213
|
-
"$ xano release push ./my-release -n \"v1.0\" -o json\nOutput release details as JSON\n"
|
|
2243
|
+
"$ xano release list\nReleases in workspace 5:\n - v1.0 (ID: 10) - main\n - v1.1-hotfix (ID: 11) - main [hotfix]\n",
|
|
2244
|
+
"$ xano release list -w 5 --output json"
|
|
2214
2245
|
],
|
|
2215
2246
|
"flags": {
|
|
2216
2247
|
"profile": {
|
|
@@ -2232,39 +2263,6 @@
|
|
|
2232
2263
|
"allowNo": false,
|
|
2233
2264
|
"type": "boolean"
|
|
2234
2265
|
},
|
|
2235
|
-
"description": {
|
|
2236
|
-
"char": "d",
|
|
2237
|
-
"description": "Release description",
|
|
2238
|
-
"name": "description",
|
|
2239
|
-
"required": false,
|
|
2240
|
-
"default": "",
|
|
2241
|
-
"hasDynamicHelp": false,
|
|
2242
|
-
"multiple": false,
|
|
2243
|
-
"type": "option"
|
|
2244
|
-
},
|
|
2245
|
-
"env": {
|
|
2246
|
-
"description": "Include environment variables (default: true, use --no-env to exclude)",
|
|
2247
|
-
"name": "env",
|
|
2248
|
-
"required": false,
|
|
2249
|
-
"allowNo": true,
|
|
2250
|
-
"type": "boolean"
|
|
2251
|
-
},
|
|
2252
|
-
"hotfix": {
|
|
2253
|
-
"description": "Mark as a hotfix release",
|
|
2254
|
-
"name": "hotfix",
|
|
2255
|
-
"required": false,
|
|
2256
|
-
"allowNo": false,
|
|
2257
|
-
"type": "boolean"
|
|
2258
|
-
},
|
|
2259
|
-
"name": {
|
|
2260
|
-
"char": "n",
|
|
2261
|
-
"description": "Name for the release",
|
|
2262
|
-
"name": "name",
|
|
2263
|
-
"required": true,
|
|
2264
|
-
"hasDynamicHelp": false,
|
|
2265
|
-
"multiple": false,
|
|
2266
|
-
"type": "option"
|
|
2267
|
-
},
|
|
2268
2266
|
"output": {
|
|
2269
2267
|
"char": "o",
|
|
2270
2268
|
"description": "Output format",
|
|
@@ -2279,16 +2277,9 @@
|
|
|
2279
2277
|
],
|
|
2280
2278
|
"type": "option"
|
|
2281
2279
|
},
|
|
2282
|
-
"records": {
|
|
2283
|
-
"description": "Include records (default: true, use --no-records to exclude)",
|
|
2284
|
-
"name": "records",
|
|
2285
|
-
"required": false,
|
|
2286
|
-
"allowNo": true,
|
|
2287
|
-
"type": "boolean"
|
|
2288
|
-
},
|
|
2289
2280
|
"workspace": {
|
|
2290
2281
|
"char": "w",
|
|
2291
|
-
"description": "Workspace ID (
|
|
2282
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2292
2283
|
"name": "workspace",
|
|
2293
2284
|
"required": false,
|
|
2294
2285
|
"hasDynamicHelp": false,
|
|
@@ -2298,7 +2289,7 @@
|
|
|
2298
2289
|
},
|
|
2299
2290
|
"hasDynamicHelp": false,
|
|
2300
2291
|
"hiddenAliases": [],
|
|
2301
|
-
"id": "release:
|
|
2292
|
+
"id": "release:list",
|
|
2302
2293
|
"pluginAlias": "@xano/cli",
|
|
2303
2294
|
"pluginName": "@xano/cli",
|
|
2304
2295
|
"pluginType": "core",
|
|
@@ -2309,7 +2300,7 @@
|
|
|
2309
2300
|
"dist",
|
|
2310
2301
|
"commands",
|
|
2311
2302
|
"release",
|
|
2312
|
-
"
|
|
2303
|
+
"list",
|
|
2313
2304
|
"index.js"
|
|
2314
2305
|
]
|
|
2315
2306
|
},
|
|
@@ -2398,15 +2389,22 @@
|
|
|
2398
2389
|
"index.js"
|
|
2399
2390
|
]
|
|
2400
2391
|
},
|
|
2401
|
-
"
|
|
2392
|
+
"release:push": {
|
|
2402
2393
|
"aliases": [],
|
|
2403
|
-
"args": {
|
|
2404
|
-
|
|
2394
|
+
"args": {
|
|
2395
|
+
"directory": {
|
|
2396
|
+
"description": "Directory containing .xs documents to create the release from",
|
|
2397
|
+
"name": "directory",
|
|
2398
|
+
"required": true
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
"description": "Create a new release from local XanoScript files via the multidoc endpoint",
|
|
2405
2402
|
"examples": [
|
|
2406
|
-
"$ xano
|
|
2407
|
-
"$ xano
|
|
2408
|
-
"$ xano
|
|
2409
|
-
"$ xano
|
|
2403
|
+
"$ xano release push ./my-release -n \"v1.0\"\nCreated release: v1.0 - ID: 10\n",
|
|
2404
|
+
"$ xano release push ./output -n \"v2.0\" -w 40 -d \"Major update\"\nCreated release: v2.0 - ID: 15\n",
|
|
2405
|
+
"$ xano release push ./backup -n \"v1.1-hotfix\" --hotfix --profile production\nCreated release: v1.1-hotfix - ID: 20\n",
|
|
2406
|
+
"$ xano release push ./my-release -n \"v1.0\" --no-records --no-env\nCreate release from schema only, skip records and environment variables\n",
|
|
2407
|
+
"$ xano release push ./my-release -n \"v1.0\" -o json\nOutput release details as JSON\n"
|
|
2410
2408
|
],
|
|
2411
2409
|
"flags": {
|
|
2412
2410
|
"profile": {
|
|
@@ -2428,6 +2426,39 @@
|
|
|
2428
2426
|
"allowNo": false,
|
|
2429
2427
|
"type": "boolean"
|
|
2430
2428
|
},
|
|
2429
|
+
"description": {
|
|
2430
|
+
"char": "d",
|
|
2431
|
+
"description": "Release description",
|
|
2432
|
+
"name": "description",
|
|
2433
|
+
"required": false,
|
|
2434
|
+
"default": "",
|
|
2435
|
+
"hasDynamicHelp": false,
|
|
2436
|
+
"multiple": false,
|
|
2437
|
+
"type": "option"
|
|
2438
|
+
},
|
|
2439
|
+
"env": {
|
|
2440
|
+
"description": "Include environment variables (default: true, use --no-env to exclude)",
|
|
2441
|
+
"name": "env",
|
|
2442
|
+
"required": false,
|
|
2443
|
+
"allowNo": true,
|
|
2444
|
+
"type": "boolean"
|
|
2445
|
+
},
|
|
2446
|
+
"hotfix": {
|
|
2447
|
+
"description": "Mark as a hotfix release",
|
|
2448
|
+
"name": "hotfix",
|
|
2449
|
+
"required": false,
|
|
2450
|
+
"allowNo": false,
|
|
2451
|
+
"type": "boolean"
|
|
2452
|
+
},
|
|
2453
|
+
"name": {
|
|
2454
|
+
"char": "n",
|
|
2455
|
+
"description": "Name for the release",
|
|
2456
|
+
"name": "name",
|
|
2457
|
+
"required": true,
|
|
2458
|
+
"hasDynamicHelp": false,
|
|
2459
|
+
"multiple": false,
|
|
2460
|
+
"type": "option"
|
|
2461
|
+
},
|
|
2431
2462
|
"output": {
|
|
2432
2463
|
"char": "o",
|
|
2433
2464
|
"description": "Output format",
|
|
@@ -2442,23 +2473,12 @@
|
|
|
2442
2473
|
],
|
|
2443
2474
|
"type": "option"
|
|
2444
2475
|
},
|
|
2445
|
-
"
|
|
2446
|
-
"description": "
|
|
2447
|
-
"name": "
|
|
2448
|
-
"required": false,
|
|
2449
|
-
"default": 1,
|
|
2450
|
-
"hasDynamicHelp": false,
|
|
2451
|
-
"multiple": false,
|
|
2452
|
-
"type": "option"
|
|
2453
|
-
},
|
|
2454
|
-
"per_page": {
|
|
2455
|
-
"description": "Number of results per page",
|
|
2456
|
-
"name": "per_page",
|
|
2476
|
+
"records": {
|
|
2477
|
+
"description": "Include records (default: true, use --no-records to exclude)",
|
|
2478
|
+
"name": "records",
|
|
2457
2479
|
"required": false,
|
|
2458
|
-
"
|
|
2459
|
-
"
|
|
2460
|
-
"multiple": false,
|
|
2461
|
-
"type": "option"
|
|
2480
|
+
"allowNo": true,
|
|
2481
|
+
"type": "boolean"
|
|
2462
2482
|
},
|
|
2463
2483
|
"workspace": {
|
|
2464
2484
|
"char": "w",
|
|
@@ -2472,7 +2492,7 @@
|
|
|
2472
2492
|
},
|
|
2473
2493
|
"hasDynamicHelp": false,
|
|
2474
2494
|
"hiddenAliases": [],
|
|
2475
|
-
"id": "
|
|
2495
|
+
"id": "release:push",
|
|
2476
2496
|
"pluginAlias": "@xano/cli",
|
|
2477
2497
|
"pluginName": "@xano/cli",
|
|
2478
2498
|
"pluginType": "core",
|
|
@@ -2482,18 +2502,20 @@
|
|
|
2482
2502
|
"relativePath": [
|
|
2483
2503
|
"dist",
|
|
2484
2504
|
"commands",
|
|
2485
|
-
"
|
|
2486
|
-
"
|
|
2505
|
+
"release",
|
|
2506
|
+
"push",
|
|
2487
2507
|
"index.js"
|
|
2488
2508
|
]
|
|
2489
2509
|
},
|
|
2490
|
-
"
|
|
2510
|
+
"static_host:list": {
|
|
2491
2511
|
"aliases": [],
|
|
2492
2512
|
"args": {},
|
|
2493
|
-
"description": "List all
|
|
2513
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
2494
2514
|
"examples": [
|
|
2495
|
-
"$ xano
|
|
2496
|
-
"$ xano
|
|
2515
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
2516
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
2517
|
+
"$ 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",
|
|
2518
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
2497
2519
|
],
|
|
2498
2520
|
"flags": {
|
|
2499
2521
|
"profile": {
|
|
@@ -2529,9 +2551,27 @@
|
|
|
2529
2551
|
],
|
|
2530
2552
|
"type": "option"
|
|
2531
2553
|
},
|
|
2554
|
+
"page": {
|
|
2555
|
+
"description": "Page number for pagination",
|
|
2556
|
+
"name": "page",
|
|
2557
|
+
"required": false,
|
|
2558
|
+
"default": 1,
|
|
2559
|
+
"hasDynamicHelp": false,
|
|
2560
|
+
"multiple": false,
|
|
2561
|
+
"type": "option"
|
|
2562
|
+
},
|
|
2563
|
+
"per_page": {
|
|
2564
|
+
"description": "Number of results per page",
|
|
2565
|
+
"name": "per_page",
|
|
2566
|
+
"required": false,
|
|
2567
|
+
"default": 50,
|
|
2568
|
+
"hasDynamicHelp": false,
|
|
2569
|
+
"multiple": false,
|
|
2570
|
+
"type": "option"
|
|
2571
|
+
},
|
|
2532
2572
|
"workspace": {
|
|
2533
2573
|
"char": "w",
|
|
2534
|
-
"description": "Workspace ID (
|
|
2574
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2535
2575
|
"name": "workspace",
|
|
2536
2576
|
"required": false,
|
|
2537
2577
|
"hasDynamicHelp": false,
|
|
@@ -2541,7 +2581,7 @@
|
|
|
2541
2581
|
},
|
|
2542
2582
|
"hasDynamicHelp": false,
|
|
2543
2583
|
"hiddenAliases": [],
|
|
2544
|
-
"id": "
|
|
2584
|
+
"id": "static_host:list",
|
|
2545
2585
|
"pluginAlias": "@xano/cli",
|
|
2546
2586
|
"pluginName": "@xano/cli",
|
|
2547
2587
|
"pluginType": "core",
|
|
@@ -2551,7 +2591,7 @@
|
|
|
2551
2591
|
"relativePath": [
|
|
2552
2592
|
"dist",
|
|
2553
2593
|
"commands",
|
|
2554
|
-
"
|
|
2594
|
+
"static_host",
|
|
2555
2595
|
"list",
|
|
2556
2596
|
"index.js"
|
|
2557
2597
|
]
|
|
@@ -2765,7 +2805,90 @@
|
|
|
2765
2805
|
},
|
|
2766
2806
|
"hasDynamicHelp": false,
|
|
2767
2807
|
"hiddenAliases": [],
|
|
2768
|
-
"id": "tenant:delete",
|
|
2808
|
+
"id": "tenant:delete",
|
|
2809
|
+
"pluginAlias": "@xano/cli",
|
|
2810
|
+
"pluginName": "@xano/cli",
|
|
2811
|
+
"pluginType": "core",
|
|
2812
|
+
"strict": true,
|
|
2813
|
+
"enableJsonFlag": false,
|
|
2814
|
+
"isESM": true,
|
|
2815
|
+
"relativePath": [
|
|
2816
|
+
"dist",
|
|
2817
|
+
"commands",
|
|
2818
|
+
"tenant",
|
|
2819
|
+
"delete",
|
|
2820
|
+
"index.js"
|
|
2821
|
+
]
|
|
2822
|
+
},
|
|
2823
|
+
"tenant:deploy_platform": {
|
|
2824
|
+
"aliases": [],
|
|
2825
|
+
"args": {
|
|
2826
|
+
"tenant_name": {
|
|
2827
|
+
"description": "Tenant name to deploy to",
|
|
2828
|
+
"name": "tenant_name",
|
|
2829
|
+
"required": true
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2832
|
+
"description": "Deploy a platform version to a tenant",
|
|
2833
|
+
"examples": [
|
|
2834
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
2835
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
|
|
2836
|
+
],
|
|
2837
|
+
"flags": {
|
|
2838
|
+
"profile": {
|
|
2839
|
+
"char": "p",
|
|
2840
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
2841
|
+
"env": "XANO_PROFILE",
|
|
2842
|
+
"name": "profile",
|
|
2843
|
+
"required": false,
|
|
2844
|
+
"hasDynamicHelp": false,
|
|
2845
|
+
"multiple": false,
|
|
2846
|
+
"type": "option"
|
|
2847
|
+
},
|
|
2848
|
+
"verbose": {
|
|
2849
|
+
"char": "v",
|
|
2850
|
+
"description": "Show detailed request/response information",
|
|
2851
|
+
"env": "XANO_VERBOSE",
|
|
2852
|
+
"name": "verbose",
|
|
2853
|
+
"required": false,
|
|
2854
|
+
"allowNo": false,
|
|
2855
|
+
"type": "boolean"
|
|
2856
|
+
},
|
|
2857
|
+
"output": {
|
|
2858
|
+
"char": "o",
|
|
2859
|
+
"description": "Output format",
|
|
2860
|
+
"name": "output",
|
|
2861
|
+
"required": false,
|
|
2862
|
+
"default": "summary",
|
|
2863
|
+
"hasDynamicHelp": false,
|
|
2864
|
+
"multiple": false,
|
|
2865
|
+
"options": [
|
|
2866
|
+
"summary",
|
|
2867
|
+
"json"
|
|
2868
|
+
],
|
|
2869
|
+
"type": "option"
|
|
2870
|
+
},
|
|
2871
|
+
"platform_id": {
|
|
2872
|
+
"description": "Platform ID to deploy",
|
|
2873
|
+
"name": "platform_id",
|
|
2874
|
+
"required": true,
|
|
2875
|
+
"hasDynamicHelp": false,
|
|
2876
|
+
"multiple": false,
|
|
2877
|
+
"type": "option"
|
|
2878
|
+
},
|
|
2879
|
+
"workspace": {
|
|
2880
|
+
"char": "w",
|
|
2881
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
2882
|
+
"name": "workspace",
|
|
2883
|
+
"required": false,
|
|
2884
|
+
"hasDynamicHelp": false,
|
|
2885
|
+
"multiple": false,
|
|
2886
|
+
"type": "option"
|
|
2887
|
+
}
|
|
2888
|
+
},
|
|
2889
|
+
"hasDynamicHelp": false,
|
|
2890
|
+
"hiddenAliases": [],
|
|
2891
|
+
"id": "tenant:deploy_platform",
|
|
2769
2892
|
"pluginAlias": "@xano/cli",
|
|
2770
2893
|
"pluginName": "@xano/cli",
|
|
2771
2894
|
"pluginType": "core",
|
|
@@ -2776,7 +2899,7 @@
|
|
|
2776
2899
|
"dist",
|
|
2777
2900
|
"commands",
|
|
2778
2901
|
"tenant",
|
|
2779
|
-
"
|
|
2902
|
+
"deploy_platform",
|
|
2780
2903
|
"index.js"
|
|
2781
2904
|
]
|
|
2782
2905
|
},
|
|
@@ -3220,89 +3343,6 @@
|
|
|
3220
3343
|
"index.js"
|
|
3221
3344
|
]
|
|
3222
3345
|
},
|
|
3223
|
-
"tenant:deploy_platform": {
|
|
3224
|
-
"aliases": [],
|
|
3225
|
-
"args": {
|
|
3226
|
-
"tenant_name": {
|
|
3227
|
-
"description": "Tenant name to deploy to",
|
|
3228
|
-
"name": "tenant_name",
|
|
3229
|
-
"required": true
|
|
3230
|
-
}
|
|
3231
|
-
},
|
|
3232
|
-
"description": "Deploy a platform version to a tenant",
|
|
3233
|
-
"examples": [
|
|
3234
|
-
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
3235
|
-
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
|
|
3236
|
-
],
|
|
3237
|
-
"flags": {
|
|
3238
|
-
"profile": {
|
|
3239
|
-
"char": "p",
|
|
3240
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
3241
|
-
"env": "XANO_PROFILE",
|
|
3242
|
-
"name": "profile",
|
|
3243
|
-
"required": false,
|
|
3244
|
-
"hasDynamicHelp": false,
|
|
3245
|
-
"multiple": false,
|
|
3246
|
-
"type": "option"
|
|
3247
|
-
},
|
|
3248
|
-
"verbose": {
|
|
3249
|
-
"char": "v",
|
|
3250
|
-
"description": "Show detailed request/response information",
|
|
3251
|
-
"env": "XANO_VERBOSE",
|
|
3252
|
-
"name": "verbose",
|
|
3253
|
-
"required": false,
|
|
3254
|
-
"allowNo": false,
|
|
3255
|
-
"type": "boolean"
|
|
3256
|
-
},
|
|
3257
|
-
"output": {
|
|
3258
|
-
"char": "o",
|
|
3259
|
-
"description": "Output format",
|
|
3260
|
-
"name": "output",
|
|
3261
|
-
"required": false,
|
|
3262
|
-
"default": "summary",
|
|
3263
|
-
"hasDynamicHelp": false,
|
|
3264
|
-
"multiple": false,
|
|
3265
|
-
"options": [
|
|
3266
|
-
"summary",
|
|
3267
|
-
"json"
|
|
3268
|
-
],
|
|
3269
|
-
"type": "option"
|
|
3270
|
-
},
|
|
3271
|
-
"platform_id": {
|
|
3272
|
-
"description": "Platform ID to deploy",
|
|
3273
|
-
"name": "platform_id",
|
|
3274
|
-
"required": true,
|
|
3275
|
-
"hasDynamicHelp": false,
|
|
3276
|
-
"multiple": false,
|
|
3277
|
-
"type": "option"
|
|
3278
|
-
},
|
|
3279
|
-
"workspace": {
|
|
3280
|
-
"char": "w",
|
|
3281
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
3282
|
-
"name": "workspace",
|
|
3283
|
-
"required": false,
|
|
3284
|
-
"hasDynamicHelp": false,
|
|
3285
|
-
"multiple": false,
|
|
3286
|
-
"type": "option"
|
|
3287
|
-
}
|
|
3288
|
-
},
|
|
3289
|
-
"hasDynamicHelp": false,
|
|
3290
|
-
"hiddenAliases": [],
|
|
3291
|
-
"id": "tenant:deploy_platform",
|
|
3292
|
-
"pluginAlias": "@xano/cli",
|
|
3293
|
-
"pluginName": "@xano/cli",
|
|
3294
|
-
"pluginType": "core",
|
|
3295
|
-
"strict": true,
|
|
3296
|
-
"enableJsonFlag": false,
|
|
3297
|
-
"isESM": true,
|
|
3298
|
-
"relativePath": [
|
|
3299
|
-
"dist",
|
|
3300
|
-
"commands",
|
|
3301
|
-
"tenant",
|
|
3302
|
-
"deploy_platform",
|
|
3303
|
-
"index.js"
|
|
3304
|
-
]
|
|
3305
|
-
},
|
|
3306
3346
|
"tenant:push": {
|
|
3307
3347
|
"aliases": [],
|
|
3308
3348
|
"args": {
|
|
@@ -3491,14 +3531,13 @@
|
|
|
3491
3531
|
"index.js"
|
|
3492
3532
|
]
|
|
3493
3533
|
},
|
|
3494
|
-
"unit_test:
|
|
3534
|
+
"unit_test:run_all": {
|
|
3495
3535
|
"aliases": [],
|
|
3496
3536
|
"args": {},
|
|
3497
|
-
"description": "
|
|
3537
|
+
"description": "Run all unit tests in a workspace",
|
|
3498
3538
|
"examples": [
|
|
3499
|
-
"$ xano unit-test
|
|
3500
|
-
"$ xano unit-test
|
|
3501
|
-
"$ xano unit-test list --obj-type function"
|
|
3539
|
+
"$ 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",
|
|
3540
|
+
"$ xano unit-test run-all --obj-type function -o json"
|
|
3502
3541
|
],
|
|
3503
3542
|
"flags": {
|
|
3504
3543
|
"profile": {
|
|
@@ -3568,7 +3607,7 @@
|
|
|
3568
3607
|
},
|
|
3569
3608
|
"hasDynamicHelp": false,
|
|
3570
3609
|
"hiddenAliases": [],
|
|
3571
|
-
"id": "unit_test:
|
|
3610
|
+
"id": "unit_test:run_all",
|
|
3572
3611
|
"pluginAlias": "@xano/cli",
|
|
3573
3612
|
"pluginName": "@xano/cli",
|
|
3574
3613
|
"pluginType": "core",
|
|
@@ -3579,7 +3618,7 @@
|
|
|
3579
3618
|
"dist",
|
|
3580
3619
|
"commands",
|
|
3581
3620
|
"unit_test",
|
|
3582
|
-
"
|
|
3621
|
+
"run_all",
|
|
3583
3622
|
"index.js"
|
|
3584
3623
|
]
|
|
3585
3624
|
},
|
|
@@ -3666,13 +3705,98 @@
|
|
|
3666
3705
|
"index.js"
|
|
3667
3706
|
]
|
|
3668
3707
|
},
|
|
3669
|
-
"
|
|
3708
|
+
"workflow_test:get": {
|
|
3709
|
+
"aliases": [],
|
|
3710
|
+
"args": {
|
|
3711
|
+
"workflow_test_id": {
|
|
3712
|
+
"description": "ID of the workflow test",
|
|
3713
|
+
"name": "workflow_test_id",
|
|
3714
|
+
"required": true
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
"description": "Get a specific workflow test",
|
|
3718
|
+
"examples": [
|
|
3719
|
+
"$ xano workflow-test get 1\nWorkflow Test: my-test (ID: 1)\n Description: Validates auth endpoints\n Branch: main\n",
|
|
3720
|
+
"$ xano workflow-test get 1 -o xs",
|
|
3721
|
+
"$ xano workflow-test get 1 -o json"
|
|
3722
|
+
],
|
|
3723
|
+
"flags": {
|
|
3724
|
+
"profile": {
|
|
3725
|
+
"char": "p",
|
|
3726
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
3727
|
+
"env": "XANO_PROFILE",
|
|
3728
|
+
"name": "profile",
|
|
3729
|
+
"required": false,
|
|
3730
|
+
"hasDynamicHelp": false,
|
|
3731
|
+
"multiple": false,
|
|
3732
|
+
"type": "option"
|
|
3733
|
+
},
|
|
3734
|
+
"verbose": {
|
|
3735
|
+
"char": "v",
|
|
3736
|
+
"description": "Show detailed request/response information",
|
|
3737
|
+
"env": "XANO_VERBOSE",
|
|
3738
|
+
"name": "verbose",
|
|
3739
|
+
"required": false,
|
|
3740
|
+
"allowNo": false,
|
|
3741
|
+
"type": "boolean"
|
|
3742
|
+
},
|
|
3743
|
+
"include-draft": {
|
|
3744
|
+
"description": "Include draft version",
|
|
3745
|
+
"name": "include-draft",
|
|
3746
|
+
"required": false,
|
|
3747
|
+
"allowNo": false,
|
|
3748
|
+
"type": "boolean"
|
|
3749
|
+
},
|
|
3750
|
+
"output": {
|
|
3751
|
+
"char": "o",
|
|
3752
|
+
"description": "Output format",
|
|
3753
|
+
"name": "output",
|
|
3754
|
+
"required": false,
|
|
3755
|
+
"default": "summary",
|
|
3756
|
+
"hasDynamicHelp": false,
|
|
3757
|
+
"multiple": false,
|
|
3758
|
+
"options": [
|
|
3759
|
+
"summary",
|
|
3760
|
+
"json",
|
|
3761
|
+
"xs"
|
|
3762
|
+
],
|
|
3763
|
+
"type": "option"
|
|
3764
|
+
},
|
|
3765
|
+
"workspace": {
|
|
3766
|
+
"char": "w",
|
|
3767
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
3768
|
+
"name": "workspace",
|
|
3769
|
+
"required": false,
|
|
3770
|
+
"hasDynamicHelp": false,
|
|
3771
|
+
"multiple": false,
|
|
3772
|
+
"type": "option"
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
|
+
"hasDynamicHelp": false,
|
|
3776
|
+
"hiddenAliases": [],
|
|
3777
|
+
"id": "workflow_test:get",
|
|
3778
|
+
"pluginAlias": "@xano/cli",
|
|
3779
|
+
"pluginName": "@xano/cli",
|
|
3780
|
+
"pluginType": "core",
|
|
3781
|
+
"strict": true,
|
|
3782
|
+
"enableJsonFlag": false,
|
|
3783
|
+
"isESM": true,
|
|
3784
|
+
"relativePath": [
|
|
3785
|
+
"dist",
|
|
3786
|
+
"commands",
|
|
3787
|
+
"workflow_test",
|
|
3788
|
+
"get",
|
|
3789
|
+
"index.js"
|
|
3790
|
+
]
|
|
3791
|
+
},
|
|
3792
|
+
"unit_test:list": {
|
|
3670
3793
|
"aliases": [],
|
|
3671
3794
|
"args": {},
|
|
3672
|
-
"description": "
|
|
3795
|
+
"description": "List all unit tests in a workspace",
|
|
3673
3796
|
"examples": [
|
|
3674
|
-
"$ xano unit-test
|
|
3675
|
-
"$ xano unit-test
|
|
3797
|
+
"$ 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",
|
|
3798
|
+
"$ xano unit-test list -w 5 --output json",
|
|
3799
|
+
"$ xano unit-test list --obj-type function"
|
|
3676
3800
|
],
|
|
3677
3801
|
"flags": {
|
|
3678
3802
|
"profile": {
|
|
@@ -3742,7 +3866,7 @@
|
|
|
3742
3866
|
},
|
|
3743
3867
|
"hasDynamicHelp": false,
|
|
3744
3868
|
"hiddenAliases": [],
|
|
3745
|
-
"id": "unit_test:
|
|
3869
|
+
"id": "unit_test:list",
|
|
3746
3870
|
"pluginAlias": "@xano/cli",
|
|
3747
3871
|
"pluginName": "@xano/cli",
|
|
3748
3872
|
"pluginType": "core",
|
|
@@ -3753,24 +3877,18 @@
|
|
|
3753
3877
|
"dist",
|
|
3754
3878
|
"commands",
|
|
3755
3879
|
"unit_test",
|
|
3756
|
-
"
|
|
3880
|
+
"list",
|
|
3757
3881
|
"index.js"
|
|
3758
3882
|
]
|
|
3759
3883
|
},
|
|
3760
|
-
"workflow_test:
|
|
3884
|
+
"workflow_test:list": {
|
|
3761
3885
|
"aliases": [],
|
|
3762
|
-
"args": {
|
|
3763
|
-
|
|
3764
|
-
"description": "ID of the workflow test",
|
|
3765
|
-
"name": "workflow_test_id",
|
|
3766
|
-
"required": true
|
|
3767
|
-
}
|
|
3768
|
-
},
|
|
3769
|
-
"description": "Get a specific workflow test",
|
|
3886
|
+
"args": {},
|
|
3887
|
+
"description": "List all workflow tests in a workspace",
|
|
3770
3888
|
"examples": [
|
|
3771
|
-
"$ xano workflow-test
|
|
3772
|
-
"$ xano workflow-test
|
|
3773
|
-
"$ xano workflow-test
|
|
3889
|
+
"$ xano workflow-test list\nWorkflow tests in workspace 5:\n - my-test (ID: 1)\n - auth-flow (ID: 2) - Validates auth endpoints\n",
|
|
3890
|
+
"$ xano workflow-test list -w 5 --output json",
|
|
3891
|
+
"$ xano workflow-test list --branch main"
|
|
3774
3892
|
],
|
|
3775
3893
|
"flags": {
|
|
3776
3894
|
"profile": {
|
|
@@ -3792,12 +3910,14 @@
|
|
|
3792
3910
|
"allowNo": false,
|
|
3793
3911
|
"type": "boolean"
|
|
3794
3912
|
},
|
|
3795
|
-
"
|
|
3796
|
-
"
|
|
3797
|
-
"
|
|
3913
|
+
"branch": {
|
|
3914
|
+
"char": "b",
|
|
3915
|
+
"description": "Filter by branch name",
|
|
3916
|
+
"name": "branch",
|
|
3798
3917
|
"required": false,
|
|
3799
|
-
"
|
|
3800
|
-
"
|
|
3918
|
+
"hasDynamicHelp": false,
|
|
3919
|
+
"multiple": false,
|
|
3920
|
+
"type": "option"
|
|
3801
3921
|
},
|
|
3802
3922
|
"output": {
|
|
3803
3923
|
"char": "o",
|
|
@@ -3809,8 +3929,7 @@
|
|
|
3809
3929
|
"multiple": false,
|
|
3810
3930
|
"options": [
|
|
3811
3931
|
"summary",
|
|
3812
|
-
"json"
|
|
3813
|
-
"xs"
|
|
3932
|
+
"json"
|
|
3814
3933
|
],
|
|
3815
3934
|
"type": "option"
|
|
3816
3935
|
},
|
|
@@ -3826,7 +3945,7 @@
|
|
|
3826
3945
|
},
|
|
3827
3946
|
"hasDynamicHelp": false,
|
|
3828
3947
|
"hiddenAliases": [],
|
|
3829
|
-
"id": "workflow_test:
|
|
3948
|
+
"id": "workflow_test:list",
|
|
3830
3949
|
"pluginAlias": "@xano/cli",
|
|
3831
3950
|
"pluginName": "@xano/cli",
|
|
3832
3951
|
"pluginType": "core",
|
|
@@ -3837,23 +3956,23 @@
|
|
|
3837
3956
|
"dist",
|
|
3838
3957
|
"commands",
|
|
3839
3958
|
"workflow_test",
|
|
3840
|
-
"
|
|
3959
|
+
"list",
|
|
3841
3960
|
"index.js"
|
|
3842
3961
|
]
|
|
3843
3962
|
},
|
|
3844
|
-
"
|
|
3963
|
+
"workflow_test:run": {
|
|
3845
3964
|
"aliases": [],
|
|
3846
3965
|
"args": {
|
|
3847
|
-
"
|
|
3848
|
-
"description": "ID of the
|
|
3849
|
-
"name": "
|
|
3966
|
+
"workflow_test_id": {
|
|
3967
|
+
"description": "ID of the workflow test to run",
|
|
3968
|
+
"name": "workflow_test_id",
|
|
3850
3969
|
"required": true
|
|
3851
3970
|
}
|
|
3852
3971
|
},
|
|
3853
|
-
"description": "Run a
|
|
3972
|
+
"description": "Run a workflow test",
|
|
3854
3973
|
"examples": [
|
|
3855
|
-
"$ xano
|
|
3856
|
-
"$ xano
|
|
3974
|
+
"$ xano workflow-test run 1\nRunning workflow test 1...\nResult: PASS (1.234s)\n",
|
|
3975
|
+
"$ xano workflow-test run 1 -o json"
|
|
3857
3976
|
],
|
|
3858
3977
|
"flags": {
|
|
3859
3978
|
"profile": {
|
|
@@ -3901,7 +4020,7 @@
|
|
|
3901
4020
|
},
|
|
3902
4021
|
"hasDynamicHelp": false,
|
|
3903
4022
|
"hiddenAliases": [],
|
|
3904
|
-
"id": "
|
|
4023
|
+
"id": "workflow_test:run",
|
|
3905
4024
|
"pluginAlias": "@xano/cli",
|
|
3906
4025
|
"pluginName": "@xano/cli",
|
|
3907
4026
|
"pluginType": "core",
|
|
@@ -3911,24 +4030,18 @@
|
|
|
3911
4030
|
"relativePath": [
|
|
3912
4031
|
"dist",
|
|
3913
4032
|
"commands",
|
|
3914
|
-
"
|
|
4033
|
+
"workflow_test",
|
|
3915
4034
|
"run",
|
|
3916
4035
|
"index.js"
|
|
3917
4036
|
]
|
|
3918
4037
|
},
|
|
3919
|
-
"workflow_test:
|
|
4038
|
+
"workflow_test:run_all": {
|
|
3920
4039
|
"aliases": [],
|
|
3921
|
-
"args": {
|
|
3922
|
-
|
|
3923
|
-
"description": "ID of the workflow test to run",
|
|
3924
|
-
"name": "workflow_test_id",
|
|
3925
|
-
"required": true
|
|
3926
|
-
}
|
|
3927
|
-
},
|
|
3928
|
-
"description": "Run a workflow test",
|
|
4040
|
+
"args": {},
|
|
4041
|
+
"description": "Run all workflow tests in a workspace",
|
|
3929
4042
|
"examples": [
|
|
3930
|
-
"$ xano workflow-test run
|
|
3931
|
-
"$ xano workflow-test run
|
|
4043
|
+
"$ 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",
|
|
4044
|
+
"$ xano workflow-test run-all --branch main -o json"
|
|
3932
4045
|
],
|
|
3933
4046
|
"flags": {
|
|
3934
4047
|
"profile": {
|
|
@@ -3950,6 +4063,15 @@
|
|
|
3950
4063
|
"allowNo": false,
|
|
3951
4064
|
"type": "boolean"
|
|
3952
4065
|
},
|
|
4066
|
+
"branch": {
|
|
4067
|
+
"char": "b",
|
|
4068
|
+
"description": "Filter by branch name",
|
|
4069
|
+
"name": "branch",
|
|
4070
|
+
"required": false,
|
|
4071
|
+
"hasDynamicHelp": false,
|
|
4072
|
+
"multiple": false,
|
|
4073
|
+
"type": "option"
|
|
4074
|
+
},
|
|
3953
4075
|
"output": {
|
|
3954
4076
|
"char": "o",
|
|
3955
4077
|
"description": "Output format",
|
|
@@ -3976,7 +4098,7 @@
|
|
|
3976
4098
|
},
|
|
3977
4099
|
"hasDynamicHelp": false,
|
|
3978
4100
|
"hiddenAliases": [],
|
|
3979
|
-
"id": "workflow_test:
|
|
4101
|
+
"id": "workflow_test:run_all",
|
|
3980
4102
|
"pluginAlias": "@xano/cli",
|
|
3981
4103
|
"pluginName": "@xano/cli",
|
|
3982
4104
|
"pluginType": "core",
|
|
@@ -3987,17 +4109,23 @@
|
|
|
3987
4109
|
"dist",
|
|
3988
4110
|
"commands",
|
|
3989
4111
|
"workflow_test",
|
|
3990
|
-
"
|
|
4112
|
+
"run_all",
|
|
3991
4113
|
"index.js"
|
|
3992
4114
|
]
|
|
3993
4115
|
},
|
|
3994
|
-
"
|
|
4116
|
+
"unit_test:run": {
|
|
3995
4117
|
"aliases": [],
|
|
3996
|
-
"args": {
|
|
3997
|
-
|
|
4118
|
+
"args": {
|
|
4119
|
+
"unit_test_id": {
|
|
4120
|
+
"description": "ID of the unit test to run",
|
|
4121
|
+
"name": "unit_test_id",
|
|
4122
|
+
"required": true
|
|
4123
|
+
}
|
|
4124
|
+
},
|
|
4125
|
+
"description": "Run a unit test",
|
|
3998
4126
|
"examples": [
|
|
3999
|
-
"$ xano
|
|
4000
|
-
"$ xano
|
|
4127
|
+
"$ xano unit-test run abc-123\nRunning unit test abc-123...\nResult: PASS\n",
|
|
4128
|
+
"$ xano unit-test run abc-123 -o json"
|
|
4001
4129
|
],
|
|
4002
4130
|
"flags": {
|
|
4003
4131
|
"profile": {
|
|
@@ -4019,15 +4147,6 @@
|
|
|
4019
4147
|
"allowNo": false,
|
|
4020
4148
|
"type": "boolean"
|
|
4021
4149
|
},
|
|
4022
|
-
"branch": {
|
|
4023
|
-
"char": "b",
|
|
4024
|
-
"description": "Filter by branch name",
|
|
4025
|
-
"name": "branch",
|
|
4026
|
-
"required": false,
|
|
4027
|
-
"hasDynamicHelp": false,
|
|
4028
|
-
"multiple": false,
|
|
4029
|
-
"type": "option"
|
|
4030
|
-
},
|
|
4031
4150
|
"output": {
|
|
4032
4151
|
"char": "o",
|
|
4033
4152
|
"description": "Output format",
|
|
@@ -4054,7 +4173,7 @@
|
|
|
4054
4173
|
},
|
|
4055
4174
|
"hasDynamicHelp": false,
|
|
4056
4175
|
"hiddenAliases": [],
|
|
4057
|
-
"id": "
|
|
4176
|
+
"id": "unit_test:run",
|
|
4058
4177
|
"pluginAlias": "@xano/cli",
|
|
4059
4178
|
"pluginName": "@xano/cli",
|
|
4060
4179
|
"pluginType": "core",
|
|
@@ -4064,19 +4183,25 @@
|
|
|
4064
4183
|
"relativePath": [
|
|
4065
4184
|
"dist",
|
|
4066
4185
|
"commands",
|
|
4067
|
-
"
|
|
4068
|
-
"
|
|
4186
|
+
"unit_test",
|
|
4187
|
+
"run",
|
|
4069
4188
|
"index.js"
|
|
4070
4189
|
]
|
|
4071
4190
|
},
|
|
4072
|
-
"
|
|
4191
|
+
"workspace:create": {
|
|
4073
4192
|
"aliases": [],
|
|
4074
|
-
"args": {
|
|
4075
|
-
|
|
4193
|
+
"args": {
|
|
4194
|
+
"name": {
|
|
4195
|
+
"description": "Name of the workspace",
|
|
4196
|
+
"name": "name",
|
|
4197
|
+
"required": true
|
|
4198
|
+
}
|
|
4199
|
+
},
|
|
4200
|
+
"description": "Create a new workspace via the Xano Metadata API",
|
|
4076
4201
|
"examples": [
|
|
4077
|
-
"$ xano
|
|
4078
|
-
"$ xano
|
|
4079
|
-
"$ xano
|
|
4202
|
+
"$ xano workspace create my-workspace\nCreated workspace: my-workspace (ID: 123)\n",
|
|
4203
|
+
"$ xano workspace create my-app --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
|
|
4204
|
+
"$ 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"
|
|
4080
4205
|
],
|
|
4081
4206
|
"flags": {
|
|
4082
4207
|
"profile": {
|
|
@@ -4098,10 +4223,10 @@
|
|
|
4098
4223
|
"allowNo": false,
|
|
4099
4224
|
"type": "boolean"
|
|
4100
4225
|
},
|
|
4101
|
-
"
|
|
4102
|
-
"char": "
|
|
4103
|
-
"description": "
|
|
4104
|
-
"name": "
|
|
4226
|
+
"description": {
|
|
4227
|
+
"char": "d",
|
|
4228
|
+
"description": "Description for the workspace",
|
|
4229
|
+
"name": "description",
|
|
4105
4230
|
"required": false,
|
|
4106
4231
|
"hasDynamicHelp": false,
|
|
4107
4232
|
"multiple": false,
|
|
@@ -4120,20 +4245,11 @@
|
|
|
4120
4245
|
"json"
|
|
4121
4246
|
],
|
|
4122
4247
|
"type": "option"
|
|
4123
|
-
},
|
|
4124
|
-
"workspace": {
|
|
4125
|
-
"char": "w",
|
|
4126
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4127
|
-
"name": "workspace",
|
|
4128
|
-
"required": false,
|
|
4129
|
-
"hasDynamicHelp": false,
|
|
4130
|
-
"multiple": false,
|
|
4131
|
-
"type": "option"
|
|
4132
4248
|
}
|
|
4133
4249
|
},
|
|
4134
4250
|
"hasDynamicHelp": false,
|
|
4135
4251
|
"hiddenAliases": [],
|
|
4136
|
-
"id": "
|
|
4252
|
+
"id": "workspace:create",
|
|
4137
4253
|
"pluginAlias": "@xano/cli",
|
|
4138
4254
|
"pluginName": "@xano/cli",
|
|
4139
4255
|
"pluginType": "core",
|
|
@@ -4143,8 +4259,8 @@
|
|
|
4143
4259
|
"relativePath": [
|
|
4144
4260
|
"dist",
|
|
4145
4261
|
"commands",
|
|
4146
|
-
"
|
|
4147
|
-
"
|
|
4262
|
+
"workspace",
|
|
4263
|
+
"create",
|
|
4148
4264
|
"index.js"
|
|
4149
4265
|
]
|
|
4150
4266
|
},
|
|
@@ -4390,20 +4506,15 @@
|
|
|
4390
4506
|
"index.js"
|
|
4391
4507
|
]
|
|
4392
4508
|
},
|
|
4393
|
-
"workspace:
|
|
4509
|
+
"workspace:list": {
|
|
4394
4510
|
"aliases": [],
|
|
4395
|
-
"args": {
|
|
4396
|
-
|
|
4397
|
-
"description": "Name of the workspace",
|
|
4398
|
-
"name": "name",
|
|
4399
|
-
"required": true
|
|
4400
|
-
}
|
|
4401
|
-
},
|
|
4402
|
-
"description": "Create a new workspace via the Xano Metadata API",
|
|
4511
|
+
"args": {},
|
|
4512
|
+
"description": "List all workspaces from the Xano Metadata API",
|
|
4403
4513
|
"examples": [
|
|
4404
|
-
"$ xano workspace
|
|
4405
|
-
"$ xano workspace
|
|
4406
|
-
"$ xano workspace
|
|
4514
|
+
"$ xano workspace:list\nAvailable workspaces:\n - workspace-1 (ID: 1)\n - workspace-2 (ID: 2)\n - workspace-3 (ID: 3)\n",
|
|
4515
|
+
"$ xano workspace:list --profile production\nAvailable workspaces:\n - my-app (ID: 1)\n - staging-env (ID: 2)\n",
|
|
4516
|
+
"$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
|
|
4517
|
+
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
4407
4518
|
],
|
|
4408
4519
|
"flags": {
|
|
4409
4520
|
"profile": {
|
|
@@ -4425,15 +4536,6 @@
|
|
|
4425
4536
|
"allowNo": false,
|
|
4426
4537
|
"type": "boolean"
|
|
4427
4538
|
},
|
|
4428
|
-
"description": {
|
|
4429
|
-
"char": "d",
|
|
4430
|
-
"description": "Description for the workspace",
|
|
4431
|
-
"name": "description",
|
|
4432
|
-
"required": false,
|
|
4433
|
-
"hasDynamicHelp": false,
|
|
4434
|
-
"multiple": false,
|
|
4435
|
-
"type": "option"
|
|
4436
|
-
},
|
|
4437
4539
|
"output": {
|
|
4438
4540
|
"char": "o",
|
|
4439
4541
|
"description": "Output format",
|
|
@@ -4451,7 +4553,128 @@
|
|
|
4451
4553
|
},
|
|
4452
4554
|
"hasDynamicHelp": false,
|
|
4453
4555
|
"hiddenAliases": [],
|
|
4454
|
-
"id": "workspace:
|
|
4556
|
+
"id": "workspace:list",
|
|
4557
|
+
"pluginAlias": "@xano/cli",
|
|
4558
|
+
"pluginName": "@xano/cli",
|
|
4559
|
+
"pluginType": "core",
|
|
4560
|
+
"strict": true,
|
|
4561
|
+
"enableJsonFlag": false,
|
|
4562
|
+
"isESM": true,
|
|
4563
|
+
"relativePath": [
|
|
4564
|
+
"dist",
|
|
4565
|
+
"commands",
|
|
4566
|
+
"workspace",
|
|
4567
|
+
"list",
|
|
4568
|
+
"index.js"
|
|
4569
|
+
]
|
|
4570
|
+
},
|
|
4571
|
+
"workspace:push": {
|
|
4572
|
+
"aliases": [],
|
|
4573
|
+
"args": {
|
|
4574
|
+
"directory": {
|
|
4575
|
+
"description": "Directory containing documents to push (as produced by workspace pull)",
|
|
4576
|
+
"name": "directory",
|
|
4577
|
+
"required": true
|
|
4578
|
+
}
|
|
4579
|
+
},
|
|
4580
|
+
"description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
|
|
4581
|
+
"examples": [
|
|
4582
|
+
"$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
|
|
4583
|
+
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
4584
|
+
"$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n",
|
|
4585
|
+
"$ xano workspace push ./my-workspace -b dev\nPushed 42 documents from ./my-workspace\n",
|
|
4586
|
+
"$ xano workspace push ./my-functions --partial\nPush some files without a workspace block (implies --no-delete)\n",
|
|
4587
|
+
"$ xano workspace push ./my-workspace --no-delete\nPatch files without deleting existing workspace objects\n",
|
|
4588
|
+
"$ xano workspace push ./my-workspace --no-records\nPush schema only, skip importing table records\n",
|
|
4589
|
+
"$ xano workspace push ./my-workspace --no-env\nPush without overwriting environment variables\n",
|
|
4590
|
+
"$ xano workspace push ./my-workspace --truncate\nTruncate all table records before importing\n",
|
|
4591
|
+
"$ xano workspace push ./my-workspace --truncate --no-records\nTruncate all table records without importing new ones\n",
|
|
4592
|
+
"$ xano workspace push ./my-workspace --no-records --no-env\nPush schema only, skip records and environment variables\n"
|
|
4593
|
+
],
|
|
4594
|
+
"flags": {
|
|
4595
|
+
"profile": {
|
|
4596
|
+
"char": "p",
|
|
4597
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
4598
|
+
"env": "XANO_PROFILE",
|
|
4599
|
+
"name": "profile",
|
|
4600
|
+
"required": false,
|
|
4601
|
+
"hasDynamicHelp": false,
|
|
4602
|
+
"multiple": false,
|
|
4603
|
+
"type": "option"
|
|
4604
|
+
},
|
|
4605
|
+
"verbose": {
|
|
4606
|
+
"char": "v",
|
|
4607
|
+
"description": "Show detailed request/response information",
|
|
4608
|
+
"env": "XANO_VERBOSE",
|
|
4609
|
+
"name": "verbose",
|
|
4610
|
+
"required": false,
|
|
4611
|
+
"allowNo": false,
|
|
4612
|
+
"type": "boolean"
|
|
4613
|
+
},
|
|
4614
|
+
"branch": {
|
|
4615
|
+
"char": "b",
|
|
4616
|
+
"description": "Branch name (optional if set in profile, defaults to live)",
|
|
4617
|
+
"name": "branch",
|
|
4618
|
+
"required": false,
|
|
4619
|
+
"hasDynamicHelp": false,
|
|
4620
|
+
"multiple": false,
|
|
4621
|
+
"type": "option"
|
|
4622
|
+
},
|
|
4623
|
+
"delete": {
|
|
4624
|
+
"description": "Delete workspace objects not included in the push (default: false)",
|
|
4625
|
+
"name": "delete",
|
|
4626
|
+
"required": false,
|
|
4627
|
+
"allowNo": true,
|
|
4628
|
+
"type": "boolean"
|
|
4629
|
+
},
|
|
4630
|
+
"env": {
|
|
4631
|
+
"description": "Include environment variables in import (default: true, use --no-env to exclude)",
|
|
4632
|
+
"name": "env",
|
|
4633
|
+
"required": false,
|
|
4634
|
+
"allowNo": true,
|
|
4635
|
+
"type": "boolean"
|
|
4636
|
+
},
|
|
4637
|
+
"partial": {
|
|
4638
|
+
"description": "Partial push — workspace block is not required, existing objects are kept (implies --no-delete)",
|
|
4639
|
+
"name": "partial",
|
|
4640
|
+
"required": false,
|
|
4641
|
+
"allowNo": false,
|
|
4642
|
+
"type": "boolean"
|
|
4643
|
+
},
|
|
4644
|
+
"records": {
|
|
4645
|
+
"description": "Include records in import (default: true, use --no-records to exclude)",
|
|
4646
|
+
"name": "records",
|
|
4647
|
+
"required": false,
|
|
4648
|
+
"allowNo": true,
|
|
4649
|
+
"type": "boolean"
|
|
4650
|
+
},
|
|
4651
|
+
"sync-guids": {
|
|
4652
|
+
"description": "Write server-assigned GUIDs back to local files (use --no-sync-guids to skip)",
|
|
4653
|
+
"name": "sync-guids",
|
|
4654
|
+
"required": false,
|
|
4655
|
+
"allowNo": true,
|
|
4656
|
+
"type": "boolean"
|
|
4657
|
+
},
|
|
4658
|
+
"truncate": {
|
|
4659
|
+
"description": "Truncate all table records before importing",
|
|
4660
|
+
"name": "truncate",
|
|
4661
|
+
"required": false,
|
|
4662
|
+
"allowNo": false,
|
|
4663
|
+
"type": "boolean"
|
|
4664
|
+
},
|
|
4665
|
+
"workspace": {
|
|
4666
|
+
"char": "w",
|
|
4667
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
4668
|
+
"name": "workspace",
|
|
4669
|
+
"required": false,
|
|
4670
|
+
"hasDynamicHelp": false,
|
|
4671
|
+
"multiple": false,
|
|
4672
|
+
"type": "option"
|
|
4673
|
+
}
|
|
4674
|
+
},
|
|
4675
|
+
"hasDynamicHelp": false,
|
|
4676
|
+
"hiddenAliases": [],
|
|
4677
|
+
"id": "workspace:push",
|
|
4455
4678
|
"pluginAlias": "@xano/cli",
|
|
4456
4679
|
"pluginName": "@xano/cli",
|
|
4457
4680
|
"pluginType": "core",
|
|
@@ -4462,7 +4685,7 @@
|
|
|
4462
4685
|
"dist",
|
|
4463
4686
|
"commands",
|
|
4464
4687
|
"workspace",
|
|
4465
|
-
"
|
|
4688
|
+
"push",
|
|
4466
4689
|
"index.js"
|
|
4467
4690
|
]
|
|
4468
4691
|
},
|
|
@@ -4560,15 +4783,13 @@
|
|
|
4560
4783
|
"index.js"
|
|
4561
4784
|
]
|
|
4562
4785
|
},
|
|
4563
|
-
"workspace:
|
|
4786
|
+
"profile:workspace:set": {
|
|
4564
4787
|
"aliases": [],
|
|
4565
4788
|
"args": {},
|
|
4566
|
-
"description": "
|
|
4789
|
+
"description": "Interactively select a workspace for a profile",
|
|
4567
4790
|
"examples": [
|
|
4568
|
-
"$ xano workspace
|
|
4569
|
-
"$ xano workspace
|
|
4570
|
-
"$ xano workspace:list --output json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"workspace-1\"\n },\n {\n \"id\": 2,\n \"name\": \"workspace-2\"\n }\n ]\n}\n",
|
|
4571
|
-
"$ xano workspace:list -p staging -o json\n{\n \"workspaces\": [\n {\n \"id\": 1,\n \"name\": \"my-app\"\n }\n ]\n}\n"
|
|
4791
|
+
"$ xano profile workspace set\nFetching workspaces...\n? Select a workspace: My Workspace\nWorkspace updated to 'My Workspace' (abc123) on profile 'default'\n",
|
|
4792
|
+
"$ xano profile workspace set -p production\nFetching workspaces...\n? Select a workspace: Production API\nWorkspace updated to 'Production API' (xyz789) on profile 'production'\n"
|
|
4572
4793
|
],
|
|
4573
4794
|
"flags": {
|
|
4574
4795
|
"profile": {
|
|
@@ -4589,25 +4810,11 @@
|
|
|
4589
4810
|
"required": false,
|
|
4590
4811
|
"allowNo": false,
|
|
4591
4812
|
"type": "boolean"
|
|
4592
|
-
},
|
|
4593
|
-
"output": {
|
|
4594
|
-
"char": "o",
|
|
4595
|
-
"description": "Output format",
|
|
4596
|
-
"name": "output",
|
|
4597
|
-
"required": false,
|
|
4598
|
-
"default": "summary",
|
|
4599
|
-
"hasDynamicHelp": false,
|
|
4600
|
-
"multiple": false,
|
|
4601
|
-
"options": [
|
|
4602
|
-
"summary",
|
|
4603
|
-
"json"
|
|
4604
|
-
],
|
|
4605
|
-
"type": "option"
|
|
4606
4813
|
}
|
|
4607
4814
|
},
|
|
4608
4815
|
"hasDynamicHelp": false,
|
|
4609
4816
|
"hiddenAliases": [],
|
|
4610
|
-
"id": "workspace:
|
|
4817
|
+
"id": "profile:workspace:set",
|
|
4611
4818
|
"pluginAlias": "@xano/cli",
|
|
4612
4819
|
"pluginName": "@xano/cli",
|
|
4613
4820
|
"pluginType": "core",
|
|
@@ -4617,33 +4824,32 @@
|
|
|
4617
4824
|
"relativePath": [
|
|
4618
4825
|
"dist",
|
|
4619
4826
|
"commands",
|
|
4827
|
+
"profile",
|
|
4620
4828
|
"workspace",
|
|
4621
|
-
"
|
|
4829
|
+
"set",
|
|
4622
4830
|
"index.js"
|
|
4623
4831
|
]
|
|
4624
4832
|
},
|
|
4625
|
-
"
|
|
4833
|
+
"static_host:build:get": {
|
|
4626
4834
|
"aliases": [],
|
|
4627
4835
|
"args": {
|
|
4628
|
-
"
|
|
4629
|
-
"description": "
|
|
4630
|
-
"name": "
|
|
4836
|
+
"build_id": {
|
|
4837
|
+
"description": "Build ID",
|
|
4838
|
+
"name": "build_id",
|
|
4839
|
+
"required": true
|
|
4840
|
+
},
|
|
4841
|
+
"static_host": {
|
|
4842
|
+
"description": "Static Host name",
|
|
4843
|
+
"name": "static_host",
|
|
4631
4844
|
"required": true
|
|
4632
4845
|
}
|
|
4633
4846
|
},
|
|
4634
|
-
"description": "
|
|
4847
|
+
"description": "Get details of a specific build for a static host",
|
|
4635
4848
|
"examples": [
|
|
4636
|
-
"$ xano
|
|
4637
|
-
"$ xano
|
|
4638
|
-
"$ xano
|
|
4639
|
-
"$ xano
|
|
4640
|
-
"$ xano workspace push ./my-functions --partial\nPush some files without a workspace block (implies --no-delete)\n",
|
|
4641
|
-
"$ xano workspace push ./my-workspace --no-delete\nPatch files without deleting existing workspace objects\n",
|
|
4642
|
-
"$ xano workspace push ./my-workspace --no-records\nPush schema only, skip importing table records\n",
|
|
4643
|
-
"$ xano workspace push ./my-workspace --no-env\nPush without overwriting environment variables\n",
|
|
4644
|
-
"$ xano workspace push ./my-workspace --truncate\nTruncate all table records before importing\n",
|
|
4645
|
-
"$ xano workspace push ./my-workspace --truncate --no-records\nTruncate all table records without importing new ones\n",
|
|
4646
|
-
"$ xano workspace push ./my-workspace --no-records --no-env\nPush schema only, skip records and environment variables\n"
|
|
4849
|
+
"$ xano static_host:build:get default 52\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
4850
|
+
"$ xano static_host:build:get default 52 -w 40\nBuild Details:\nID: 52\nName: v1.0.0\nStatus: completed\n",
|
|
4851
|
+
"$ xano static_host:build:get myhost 123 --profile production\nBuild Details:\nID: 123\nName: production-build\n",
|
|
4852
|
+
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
4647
4853
|
],
|
|
4648
4854
|
"flags": {
|
|
4649
4855
|
"profile": {
|
|
@@ -4665,57 +4871,20 @@
|
|
|
4665
4871
|
"allowNo": false,
|
|
4666
4872
|
"type": "boolean"
|
|
4667
4873
|
},
|
|
4668
|
-
"
|
|
4669
|
-
"char": "
|
|
4670
|
-
"description": "
|
|
4671
|
-
"name": "
|
|
4874
|
+
"output": {
|
|
4875
|
+
"char": "o",
|
|
4876
|
+
"description": "Output format",
|
|
4877
|
+
"name": "output",
|
|
4672
4878
|
"required": false,
|
|
4879
|
+
"default": "summary",
|
|
4673
4880
|
"hasDynamicHelp": false,
|
|
4674
4881
|
"multiple": false,
|
|
4882
|
+
"options": [
|
|
4883
|
+
"summary",
|
|
4884
|
+
"json"
|
|
4885
|
+
],
|
|
4675
4886
|
"type": "option"
|
|
4676
4887
|
},
|
|
4677
|
-
"delete": {
|
|
4678
|
-
"description": "Delete workspace objects not included in the push (default: false)",
|
|
4679
|
-
"name": "delete",
|
|
4680
|
-
"required": false,
|
|
4681
|
-
"allowNo": true,
|
|
4682
|
-
"type": "boolean"
|
|
4683
|
-
},
|
|
4684
|
-
"env": {
|
|
4685
|
-
"description": "Include environment variables in import (default: true, use --no-env to exclude)",
|
|
4686
|
-
"name": "env",
|
|
4687
|
-
"required": false,
|
|
4688
|
-
"allowNo": true,
|
|
4689
|
-
"type": "boolean"
|
|
4690
|
-
},
|
|
4691
|
-
"partial": {
|
|
4692
|
-
"description": "Partial push — workspace block is not required, existing objects are kept (implies --no-delete)",
|
|
4693
|
-
"name": "partial",
|
|
4694
|
-
"required": false,
|
|
4695
|
-
"allowNo": false,
|
|
4696
|
-
"type": "boolean"
|
|
4697
|
-
},
|
|
4698
|
-
"records": {
|
|
4699
|
-
"description": "Include records in import (default: true, use --no-records to exclude)",
|
|
4700
|
-
"name": "records",
|
|
4701
|
-
"required": false,
|
|
4702
|
-
"allowNo": true,
|
|
4703
|
-
"type": "boolean"
|
|
4704
|
-
},
|
|
4705
|
-
"sync-guids": {
|
|
4706
|
-
"description": "Write server-assigned GUIDs back to local files (use --no-sync-guids to skip)",
|
|
4707
|
-
"name": "sync-guids",
|
|
4708
|
-
"required": false,
|
|
4709
|
-
"allowNo": true,
|
|
4710
|
-
"type": "boolean"
|
|
4711
|
-
},
|
|
4712
|
-
"truncate": {
|
|
4713
|
-
"description": "Truncate all table records before importing",
|
|
4714
|
-
"name": "truncate",
|
|
4715
|
-
"required": false,
|
|
4716
|
-
"allowNo": false,
|
|
4717
|
-
"type": "boolean"
|
|
4718
|
-
},
|
|
4719
4888
|
"workspace": {
|
|
4720
4889
|
"char": "w",
|
|
4721
4890
|
"description": "Workspace ID (optional if set in profile)",
|
|
@@ -4728,7 +4897,7 @@
|
|
|
4728
4897
|
},
|
|
4729
4898
|
"hasDynamicHelp": false,
|
|
4730
4899
|
"hiddenAliases": [],
|
|
4731
|
-
"id": "
|
|
4900
|
+
"id": "static_host:build:get",
|
|
4732
4901
|
"pluginAlias": "@xano/cli",
|
|
4733
4902
|
"pluginName": "@xano/cli",
|
|
4734
4903
|
"pluginType": "core",
|
|
@@ -4738,31 +4907,26 @@
|
|
|
4738
4907
|
"relativePath": [
|
|
4739
4908
|
"dist",
|
|
4740
4909
|
"commands",
|
|
4741
|
-
"
|
|
4742
|
-
"
|
|
4910
|
+
"static_host",
|
|
4911
|
+
"build",
|
|
4912
|
+
"get",
|
|
4743
4913
|
"index.js"
|
|
4744
4914
|
]
|
|
4745
4915
|
},
|
|
4746
|
-
"static_host:build:
|
|
4916
|
+
"static_host:build:create": {
|
|
4747
4917
|
"aliases": [],
|
|
4748
4918
|
"args": {
|
|
4749
|
-
"build_id": {
|
|
4750
|
-
"description": "Build ID",
|
|
4751
|
-
"name": "build_id",
|
|
4752
|
-
"required": true
|
|
4753
|
-
},
|
|
4754
4919
|
"static_host": {
|
|
4755
4920
|
"description": "Static Host name",
|
|
4756
4921
|
"name": "static_host",
|
|
4757
4922
|
"required": true
|
|
4758
4923
|
}
|
|
4759
4924
|
},
|
|
4760
|
-
"description": "
|
|
4925
|
+
"description": "Create a new build for a static host",
|
|
4761
4926
|
"examples": [
|
|
4762
|
-
"$ xano static_host:build:
|
|
4763
|
-
"$ xano static_host:build:
|
|
4764
|
-
"$ xano static_host:build:
|
|
4765
|
-
"$ xano static_host:build:get default 52 -o json\n{\n \"id\": 52,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n}\n"
|
|
4927
|
+
"$ 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",
|
|
4928
|
+
"$ 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",
|
|
4929
|
+
"$ 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"
|
|
4766
4930
|
],
|
|
4767
4931
|
"flags": {
|
|
4768
4932
|
"profile": {
|
|
@@ -4784,6 +4948,33 @@
|
|
|
4784
4948
|
"allowNo": false,
|
|
4785
4949
|
"type": "boolean"
|
|
4786
4950
|
},
|
|
4951
|
+
"description": {
|
|
4952
|
+
"char": "d",
|
|
4953
|
+
"description": "Build description",
|
|
4954
|
+
"name": "description",
|
|
4955
|
+
"required": false,
|
|
4956
|
+
"hasDynamicHelp": false,
|
|
4957
|
+
"multiple": false,
|
|
4958
|
+
"type": "option"
|
|
4959
|
+
},
|
|
4960
|
+
"file": {
|
|
4961
|
+
"char": "f",
|
|
4962
|
+
"description": "Path to zip file to upload",
|
|
4963
|
+
"name": "file",
|
|
4964
|
+
"required": true,
|
|
4965
|
+
"hasDynamicHelp": false,
|
|
4966
|
+
"multiple": false,
|
|
4967
|
+
"type": "option"
|
|
4968
|
+
},
|
|
4969
|
+
"name": {
|
|
4970
|
+
"char": "n",
|
|
4971
|
+
"description": "Build name",
|
|
4972
|
+
"name": "name",
|
|
4973
|
+
"required": true,
|
|
4974
|
+
"hasDynamicHelp": false,
|
|
4975
|
+
"multiple": false,
|
|
4976
|
+
"type": "option"
|
|
4977
|
+
},
|
|
4787
4978
|
"output": {
|
|
4788
4979
|
"char": "o",
|
|
4789
4980
|
"description": "Output format",
|
|
@@ -4810,7 +5001,7 @@
|
|
|
4810
5001
|
},
|
|
4811
5002
|
"hasDynamicHelp": false,
|
|
4812
5003
|
"hiddenAliases": [],
|
|
4813
|
-
"id": "static_host:build:
|
|
5004
|
+
"id": "static_host:build:create",
|
|
4814
5005
|
"pluginAlias": "@xano/cli",
|
|
4815
5006
|
"pluginName": "@xano/cli",
|
|
4816
5007
|
"pluginType": "core",
|
|
@@ -4822,7 +5013,7 @@
|
|
|
4822
5013
|
"commands",
|
|
4823
5014
|
"static_host",
|
|
4824
5015
|
"build",
|
|
4825
|
-
"
|
|
5016
|
+
"create",
|
|
4826
5017
|
"index.js"
|
|
4827
5018
|
]
|
|
4828
5019
|
},
|
|
@@ -4961,104 +5152,11 @@
|
|
|
4961
5152
|
"description": "Backup description",
|
|
4962
5153
|
"name": "description",
|
|
4963
5154
|
"required": false,
|
|
4964
|
-
"default": "",
|
|
4965
|
-
"hasDynamicHelp": false,
|
|
4966
|
-
"multiple": false,
|
|
4967
|
-
"type": "option"
|
|
4968
|
-
},
|
|
4969
|
-
"output": {
|
|
4970
|
-
"char": "o",
|
|
4971
|
-
"description": "Output format",
|
|
4972
|
-
"name": "output",
|
|
4973
|
-
"required": false,
|
|
4974
|
-
"default": "summary",
|
|
4975
|
-
"hasDynamicHelp": false,
|
|
4976
|
-
"multiple": false,
|
|
4977
|
-
"options": [
|
|
4978
|
-
"summary",
|
|
4979
|
-
"json"
|
|
4980
|
-
],
|
|
4981
|
-
"type": "option"
|
|
4982
|
-
},
|
|
4983
|
-
"workspace": {
|
|
4984
|
-
"char": "w",
|
|
4985
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
4986
|
-
"name": "workspace",
|
|
4987
|
-
"required": false,
|
|
4988
|
-
"hasDynamicHelp": false,
|
|
4989
|
-
"multiple": false,
|
|
4990
|
-
"type": "option"
|
|
4991
|
-
}
|
|
4992
|
-
},
|
|
4993
|
-
"hasDynamicHelp": false,
|
|
4994
|
-
"hiddenAliases": [],
|
|
4995
|
-
"id": "tenant:backup:create",
|
|
4996
|
-
"pluginAlias": "@xano/cli",
|
|
4997
|
-
"pluginName": "@xano/cli",
|
|
4998
|
-
"pluginType": "core",
|
|
4999
|
-
"strict": true,
|
|
5000
|
-
"enableJsonFlag": false,
|
|
5001
|
-
"isESM": true,
|
|
5002
|
-
"relativePath": [
|
|
5003
|
-
"dist",
|
|
5004
|
-
"commands",
|
|
5005
|
-
"tenant",
|
|
5006
|
-
"backup",
|
|
5007
|
-
"create",
|
|
5008
|
-
"index.js"
|
|
5009
|
-
]
|
|
5010
|
-
},
|
|
5011
|
-
"tenant:backup:delete": {
|
|
5012
|
-
"aliases": [],
|
|
5013
|
-
"args": {
|
|
5014
|
-
"tenant_name": {
|
|
5015
|
-
"description": "Tenant name that owns the backup",
|
|
5016
|
-
"name": "tenant_name",
|
|
5017
|
-
"required": true
|
|
5018
|
-
}
|
|
5019
|
-
},
|
|
5020
|
-
"description": "Delete a tenant backup permanently. This action cannot be undone.",
|
|
5021
|
-
"examples": [
|
|
5022
|
-
"$ 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",
|
|
5023
|
-
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
|
|
5024
|
-
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5025
|
-
],
|
|
5026
|
-
"flags": {
|
|
5027
|
-
"profile": {
|
|
5028
|
-
"char": "p",
|
|
5029
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
5030
|
-
"env": "XANO_PROFILE",
|
|
5031
|
-
"name": "profile",
|
|
5032
|
-
"required": false,
|
|
5033
|
-
"hasDynamicHelp": false,
|
|
5034
|
-
"multiple": false,
|
|
5035
|
-
"type": "option"
|
|
5036
|
-
},
|
|
5037
|
-
"verbose": {
|
|
5038
|
-
"char": "v",
|
|
5039
|
-
"description": "Show detailed request/response information",
|
|
5040
|
-
"env": "XANO_VERBOSE",
|
|
5041
|
-
"name": "verbose",
|
|
5042
|
-
"required": false,
|
|
5043
|
-
"allowNo": false,
|
|
5044
|
-
"type": "boolean"
|
|
5045
|
-
},
|
|
5046
|
-
"backup_id": {
|
|
5047
|
-
"description": "Backup ID to delete",
|
|
5048
|
-
"name": "backup_id",
|
|
5049
|
-
"required": true,
|
|
5155
|
+
"default": "",
|
|
5050
5156
|
"hasDynamicHelp": false,
|
|
5051
5157
|
"multiple": false,
|
|
5052
5158
|
"type": "option"
|
|
5053
5159
|
},
|
|
5054
|
-
"force": {
|
|
5055
|
-
"char": "f",
|
|
5056
|
-
"description": "Skip confirmation prompt",
|
|
5057
|
-
"name": "force",
|
|
5058
|
-
"required": false,
|
|
5059
|
-
"allowNo": false,
|
|
5060
|
-
"type": "boolean"
|
|
5061
|
-
},
|
|
5062
5160
|
"output": {
|
|
5063
5161
|
"char": "o",
|
|
5064
5162
|
"description": "Output format",
|
|
@@ -5085,7 +5183,7 @@
|
|
|
5085
5183
|
},
|
|
5086
5184
|
"hasDynamicHelp": false,
|
|
5087
5185
|
"hiddenAliases": [],
|
|
5088
|
-
"id": "tenant:backup:
|
|
5186
|
+
"id": "tenant:backup:create",
|
|
5089
5187
|
"pluginAlias": "@xano/cli",
|
|
5090
5188
|
"pluginName": "@xano/cli",
|
|
5091
5189
|
"pluginType": "core",
|
|
@@ -5097,24 +5195,23 @@
|
|
|
5097
5195
|
"commands",
|
|
5098
5196
|
"tenant",
|
|
5099
5197
|
"backup",
|
|
5100
|
-
"
|
|
5198
|
+
"create",
|
|
5101
5199
|
"index.js"
|
|
5102
5200
|
]
|
|
5103
5201
|
},
|
|
5104
|
-
"tenant:backup:
|
|
5202
|
+
"tenant:backup:list": {
|
|
5105
5203
|
"aliases": [],
|
|
5106
5204
|
"args": {
|
|
5107
5205
|
"tenant_name": {
|
|
5108
|
-
"description": "Tenant name to
|
|
5206
|
+
"description": "Tenant name to list backups for",
|
|
5109
5207
|
"name": "tenant_name",
|
|
5110
5208
|
"required": true
|
|
5111
5209
|
}
|
|
5112
5210
|
},
|
|
5113
|
-
"description": "
|
|
5211
|
+
"description": "List backups for a tenant",
|
|
5114
5212
|
"examples": [
|
|
5115
|
-
"$ xano tenant backup
|
|
5116
|
-
"$ xano tenant backup
|
|
5117
|
-
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5213
|
+
"$ xano tenant backup list t1234-abcd-xyz1\nBackups for tenant t1234-abcd-xyz1:\n - #1 - Pre-deploy backup (2024-01-15)\n - #2 - Daily backup (2024-01-16)\n",
|
|
5214
|
+
"$ xano tenant backup list t1234-abcd-xyz1 -o json"
|
|
5118
5215
|
],
|
|
5119
5216
|
"flags": {
|
|
5120
5217
|
"profile": {
|
|
@@ -5136,18 +5233,10 @@
|
|
|
5136
5233
|
"allowNo": false,
|
|
5137
5234
|
"type": "boolean"
|
|
5138
5235
|
},
|
|
5139
|
-
"
|
|
5140
|
-
"description": "Backup ID to export",
|
|
5141
|
-
"name": "backup_id",
|
|
5142
|
-
"required": true,
|
|
5143
|
-
"hasDynamicHelp": false,
|
|
5144
|
-
"multiple": false,
|
|
5145
|
-
"type": "option"
|
|
5146
|
-
},
|
|
5147
|
-
"format": {
|
|
5236
|
+
"output": {
|
|
5148
5237
|
"char": "o",
|
|
5149
5238
|
"description": "Output format",
|
|
5150
|
-
"name": "
|
|
5239
|
+
"name": "output",
|
|
5151
5240
|
"required": false,
|
|
5152
5241
|
"default": "summary",
|
|
5153
5242
|
"hasDynamicHelp": false,
|
|
@@ -5158,10 +5247,11 @@
|
|
|
5158
5247
|
],
|
|
5159
5248
|
"type": "option"
|
|
5160
5249
|
},
|
|
5161
|
-
"
|
|
5162
|
-
"description": "
|
|
5163
|
-
"name": "
|
|
5250
|
+
"page": {
|
|
5251
|
+
"description": "Page number for pagination",
|
|
5252
|
+
"name": "page",
|
|
5164
5253
|
"required": false,
|
|
5254
|
+
"default": 1,
|
|
5165
5255
|
"hasDynamicHelp": false,
|
|
5166
5256
|
"multiple": false,
|
|
5167
5257
|
"type": "option"
|
|
@@ -5178,7 +5268,7 @@
|
|
|
5178
5268
|
},
|
|
5179
5269
|
"hasDynamicHelp": false,
|
|
5180
5270
|
"hiddenAliases": [],
|
|
5181
|
-
"id": "tenant:backup:
|
|
5271
|
+
"id": "tenant:backup:list",
|
|
5182
5272
|
"pluginAlias": "@xano/cli",
|
|
5183
5273
|
"pluginName": "@xano/cli",
|
|
5184
5274
|
"pluginType": "core",
|
|
@@ -5190,23 +5280,23 @@
|
|
|
5190
5280
|
"commands",
|
|
5191
5281
|
"tenant",
|
|
5192
5282
|
"backup",
|
|
5193
|
-
"
|
|
5283
|
+
"list",
|
|
5194
5284
|
"index.js"
|
|
5195
5285
|
]
|
|
5196
5286
|
},
|
|
5197
|
-
"tenant:backup:
|
|
5287
|
+
"tenant:backup:restore": {
|
|
5198
5288
|
"aliases": [],
|
|
5199
5289
|
"args": {
|
|
5200
5290
|
"tenant_name": {
|
|
5201
|
-
"description": "Tenant name to
|
|
5291
|
+
"description": "Tenant name to restore",
|
|
5202
5292
|
"name": "tenant_name",
|
|
5203
5293
|
"required": true
|
|
5204
5294
|
}
|
|
5205
5295
|
},
|
|
5206
|
-
"description": "
|
|
5296
|
+
"description": "Restore a tenant from a backup. This replaces the current tenant data.",
|
|
5207
5297
|
"examples": [
|
|
5208
|
-
"$ xano tenant backup
|
|
5209
|
-
"$ xano tenant backup
|
|
5298
|
+
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to restore tenant t1234-abcd-xyz1 from backup 10? This will replace current data. (y/N) y\nRestored tenant t1234-abcd-xyz1 from backup #10\n",
|
|
5299
|
+
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10 --force -o json"
|
|
5210
5300
|
],
|
|
5211
5301
|
"flags": {
|
|
5212
5302
|
"profile": {
|
|
@@ -5228,24 +5318,21 @@
|
|
|
5228
5318
|
"allowNo": false,
|
|
5229
5319
|
"type": "boolean"
|
|
5230
5320
|
},
|
|
5231
|
-
"
|
|
5232
|
-
"
|
|
5233
|
-
"
|
|
5234
|
-
"
|
|
5235
|
-
"required": false,
|
|
5236
|
-
"default": "",
|
|
5321
|
+
"backup_id": {
|
|
5322
|
+
"description": "Backup ID to restore from",
|
|
5323
|
+
"name": "backup_id",
|
|
5324
|
+
"required": true,
|
|
5237
5325
|
"hasDynamicHelp": false,
|
|
5238
5326
|
"multiple": false,
|
|
5239
5327
|
"type": "option"
|
|
5240
5328
|
},
|
|
5241
|
-
"
|
|
5329
|
+
"force": {
|
|
5242
5330
|
"char": "f",
|
|
5243
|
-
"description": "
|
|
5244
|
-
"name": "
|
|
5245
|
-
"required":
|
|
5246
|
-
"
|
|
5247
|
-
"
|
|
5248
|
-
"type": "option"
|
|
5331
|
+
"description": "Skip confirmation prompt",
|
|
5332
|
+
"name": "force",
|
|
5333
|
+
"required": false,
|
|
5334
|
+
"allowNo": false,
|
|
5335
|
+
"type": "boolean"
|
|
5249
5336
|
},
|
|
5250
5337
|
"output": {
|
|
5251
5338
|
"char": "o",
|
|
@@ -5273,7 +5360,7 @@
|
|
|
5273
5360
|
},
|
|
5274
5361
|
"hasDynamicHelp": false,
|
|
5275
5362
|
"hiddenAliases": [],
|
|
5276
|
-
"id": "tenant:backup:
|
|
5363
|
+
"id": "tenant:backup:restore",
|
|
5277
5364
|
"pluginAlias": "@xano/cli",
|
|
5278
5365
|
"pluginName": "@xano/cli",
|
|
5279
5366
|
"pluginType": "core",
|
|
@@ -5285,24 +5372,23 @@
|
|
|
5285
5372
|
"commands",
|
|
5286
5373
|
"tenant",
|
|
5287
5374
|
"backup",
|
|
5288
|
-
"
|
|
5375
|
+
"restore",
|
|
5289
5376
|
"index.js"
|
|
5290
5377
|
]
|
|
5291
5378
|
},
|
|
5292
|
-
"
|
|
5379
|
+
"tenant:backup:import": {
|
|
5293
5380
|
"aliases": [],
|
|
5294
5381
|
"args": {
|
|
5295
|
-
"
|
|
5296
|
-
"description": "
|
|
5297
|
-
"name": "
|
|
5382
|
+
"tenant_name": {
|
|
5383
|
+
"description": "Tenant name to import backup into",
|
|
5384
|
+
"name": "tenant_name",
|
|
5298
5385
|
"required": true
|
|
5299
5386
|
}
|
|
5300
5387
|
},
|
|
5301
|
-
"description": "
|
|
5388
|
+
"description": "Import a backup file into a tenant",
|
|
5302
5389
|
"examples": [
|
|
5303
|
-
"$ xano
|
|
5304
|
-
"$ xano
|
|
5305
|
-
"$ 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"
|
|
5390
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz\nImported backup as #15 for tenant t1234-abcd-xyz1\n",
|
|
5391
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz --description \"Restored from production\" -o json"
|
|
5306
5392
|
],
|
|
5307
5393
|
"flags": {
|
|
5308
5394
|
"profile": {
|
|
@@ -5326,31 +5412,23 @@
|
|
|
5326
5412
|
},
|
|
5327
5413
|
"description": {
|
|
5328
5414
|
"char": "d",
|
|
5329
|
-
"description": "
|
|
5415
|
+
"description": "Backup description",
|
|
5330
5416
|
"name": "description",
|
|
5331
5417
|
"required": false,
|
|
5418
|
+
"default": "",
|
|
5332
5419
|
"hasDynamicHelp": false,
|
|
5333
5420
|
"multiple": false,
|
|
5334
5421
|
"type": "option"
|
|
5335
5422
|
},
|
|
5336
5423
|
"file": {
|
|
5337
5424
|
"char": "f",
|
|
5338
|
-
"description": "Path to
|
|
5425
|
+
"description": "Path to the backup file (.tar.gz)",
|
|
5339
5426
|
"name": "file",
|
|
5340
5427
|
"required": true,
|
|
5341
5428
|
"hasDynamicHelp": false,
|
|
5342
5429
|
"multiple": false,
|
|
5343
5430
|
"type": "option"
|
|
5344
5431
|
},
|
|
5345
|
-
"name": {
|
|
5346
|
-
"char": "n",
|
|
5347
|
-
"description": "Build name",
|
|
5348
|
-
"name": "name",
|
|
5349
|
-
"required": true,
|
|
5350
|
-
"hasDynamicHelp": false,
|
|
5351
|
-
"multiple": false,
|
|
5352
|
-
"type": "option"
|
|
5353
|
-
},
|
|
5354
5432
|
"output": {
|
|
5355
5433
|
"char": "o",
|
|
5356
5434
|
"description": "Output format",
|
|
@@ -5367,7 +5445,7 @@
|
|
|
5367
5445
|
},
|
|
5368
5446
|
"workspace": {
|
|
5369
5447
|
"char": "w",
|
|
5370
|
-
"description": "Workspace ID (
|
|
5448
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5371
5449
|
"name": "workspace",
|
|
5372
5450
|
"required": false,
|
|
5373
5451
|
"hasDynamicHelp": false,
|
|
@@ -5377,7 +5455,7 @@
|
|
|
5377
5455
|
},
|
|
5378
5456
|
"hasDynamicHelp": false,
|
|
5379
5457
|
"hiddenAliases": [],
|
|
5380
|
-
"id": "
|
|
5458
|
+
"id": "tenant:backup:import",
|
|
5381
5459
|
"pluginAlias": "@xano/cli",
|
|
5382
5460
|
"pluginName": "@xano/cli",
|
|
5383
5461
|
"pluginType": "core",
|
|
@@ -5387,25 +5465,19 @@
|
|
|
5387
5465
|
"relativePath": [
|
|
5388
5466
|
"dist",
|
|
5389
5467
|
"commands",
|
|
5390
|
-
"
|
|
5391
|
-
"
|
|
5392
|
-
"
|
|
5468
|
+
"tenant",
|
|
5469
|
+
"backup",
|
|
5470
|
+
"import",
|
|
5393
5471
|
"index.js"
|
|
5394
5472
|
]
|
|
5395
5473
|
},
|
|
5396
|
-
"tenant:
|
|
5474
|
+
"tenant:cluster:create": {
|
|
5397
5475
|
"aliases": [],
|
|
5398
|
-
"args": {
|
|
5399
|
-
|
|
5400
|
-
"description": "Tenant name to list backups for",
|
|
5401
|
-
"name": "tenant_name",
|
|
5402
|
-
"required": true
|
|
5403
|
-
}
|
|
5404
|
-
},
|
|
5405
|
-
"description": "List backups for a tenant",
|
|
5476
|
+
"args": {},
|
|
5477
|
+
"description": "Create a new tenant cluster",
|
|
5406
5478
|
"examples": [
|
|
5407
|
-
"$ xano tenant
|
|
5408
|
-
"$ xano tenant
|
|
5479
|
+
"$ xano tenant cluster create --name \"us-east-1\" --credentials_file ./kubeconfig.yaml\nCreated tenant cluster: us-east-1 (standard) - ID: 3\n",
|
|
5480
|
+
"$ xano tenant cluster create --name \"eu-west-1\" --credentials \"...\" --type run --description \"EU run cluster\" -o json"
|
|
5409
5481
|
],
|
|
5410
5482
|
"flags": {
|
|
5411
5483
|
"profile": {
|
|
@@ -5427,107 +5499,54 @@
|
|
|
5427
5499
|
"allowNo": false,
|
|
5428
5500
|
"type": "boolean"
|
|
5429
5501
|
},
|
|
5430
|
-
"
|
|
5431
|
-
"
|
|
5432
|
-
"
|
|
5433
|
-
|
|
5502
|
+
"credentials": {
|
|
5503
|
+
"description": "Kubeconfig credentials (raw text)",
|
|
5504
|
+
"exclusive": [
|
|
5505
|
+
"credentials_file"
|
|
5506
|
+
],
|
|
5507
|
+
"name": "credentials",
|
|
5434
5508
|
"required": false,
|
|
5435
|
-
"default": "summary",
|
|
5436
5509
|
"hasDynamicHelp": false,
|
|
5437
5510
|
"multiple": false,
|
|
5438
|
-
"options": [
|
|
5439
|
-
"summary",
|
|
5440
|
-
"json"
|
|
5441
|
-
],
|
|
5442
5511
|
"type": "option"
|
|
5443
5512
|
},
|
|
5444
|
-
"
|
|
5445
|
-
"description": "
|
|
5446
|
-
"
|
|
5513
|
+
"credentials_file": {
|
|
5514
|
+
"description": "Path to kubeconfig credentials file",
|
|
5515
|
+
"exclusive": [
|
|
5516
|
+
"credentials"
|
|
5517
|
+
],
|
|
5518
|
+
"name": "credentials_file",
|
|
5447
5519
|
"required": false,
|
|
5448
|
-
"default": 1,
|
|
5449
5520
|
"hasDynamicHelp": false,
|
|
5450
5521
|
"multiple": false,
|
|
5451
5522
|
"type": "option"
|
|
5452
5523
|
},
|
|
5453
|
-
"
|
|
5454
|
-
"char": "
|
|
5455
|
-
"description": "
|
|
5456
|
-
"name": "
|
|
5524
|
+
"description": {
|
|
5525
|
+
"char": "d",
|
|
5526
|
+
"description": "Cluster description",
|
|
5527
|
+
"name": "description",
|
|
5457
5528
|
"required": false,
|
|
5458
5529
|
"hasDynamicHelp": false,
|
|
5459
5530
|
"multiple": false,
|
|
5460
5531
|
"type": "option"
|
|
5461
|
-
}
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
"id": "tenant:backup:list",
|
|
5466
|
-
"pluginAlias": "@xano/cli",
|
|
5467
|
-
"pluginName": "@xano/cli",
|
|
5468
|
-
"pluginType": "core",
|
|
5469
|
-
"strict": true,
|
|
5470
|
-
"enableJsonFlag": false,
|
|
5471
|
-
"isESM": true,
|
|
5472
|
-
"relativePath": [
|
|
5473
|
-
"dist",
|
|
5474
|
-
"commands",
|
|
5475
|
-
"tenant",
|
|
5476
|
-
"backup",
|
|
5477
|
-
"list",
|
|
5478
|
-
"index.js"
|
|
5479
|
-
]
|
|
5480
|
-
},
|
|
5481
|
-
"tenant:backup:restore": {
|
|
5482
|
-
"aliases": [],
|
|
5483
|
-
"args": {
|
|
5484
|
-
"tenant_name": {
|
|
5485
|
-
"description": "Tenant name to restore",
|
|
5486
|
-
"name": "tenant_name",
|
|
5487
|
-
"required": true
|
|
5488
|
-
}
|
|
5489
|
-
},
|
|
5490
|
-
"description": "Restore a tenant from a backup. This replaces the current tenant data.",
|
|
5491
|
-
"examples": [
|
|
5492
|
-
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10\nAre you sure you want to restore tenant t1234-abcd-xyz1 from backup 10? This will replace current data. (y/N) y\nRestored tenant t1234-abcd-xyz1 from backup #10\n",
|
|
5493
|
-
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10 --force -o json"
|
|
5494
|
-
],
|
|
5495
|
-
"flags": {
|
|
5496
|
-
"profile": {
|
|
5497
|
-
"char": "p",
|
|
5498
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
5499
|
-
"env": "XANO_PROFILE",
|
|
5500
|
-
"name": "profile",
|
|
5532
|
+
},
|
|
5533
|
+
"domain": {
|
|
5534
|
+
"description": "Custom domain for the cluster",
|
|
5535
|
+
"name": "domain",
|
|
5501
5536
|
"required": false,
|
|
5502
5537
|
"hasDynamicHelp": false,
|
|
5503
5538
|
"multiple": false,
|
|
5504
5539
|
"type": "option"
|
|
5505
5540
|
},
|
|
5506
|
-
"
|
|
5507
|
-
"char": "
|
|
5508
|
-
"description": "
|
|
5509
|
-
"
|
|
5510
|
-
"name": "verbose",
|
|
5511
|
-
"required": false,
|
|
5512
|
-
"allowNo": false,
|
|
5513
|
-
"type": "boolean"
|
|
5514
|
-
},
|
|
5515
|
-
"backup_id": {
|
|
5516
|
-
"description": "Backup ID to restore from",
|
|
5517
|
-
"name": "backup_id",
|
|
5541
|
+
"name": {
|
|
5542
|
+
"char": "n",
|
|
5543
|
+
"description": "Cluster name",
|
|
5544
|
+
"name": "name",
|
|
5518
5545
|
"required": true,
|
|
5519
5546
|
"hasDynamicHelp": false,
|
|
5520
5547
|
"multiple": false,
|
|
5521
5548
|
"type": "option"
|
|
5522
5549
|
},
|
|
5523
|
-
"force": {
|
|
5524
|
-
"char": "f",
|
|
5525
|
-
"description": "Skip confirmation prompt",
|
|
5526
|
-
"name": "force",
|
|
5527
|
-
"required": false,
|
|
5528
|
-
"allowNo": false,
|
|
5529
|
-
"type": "boolean"
|
|
5530
|
-
},
|
|
5531
5550
|
"output": {
|
|
5532
5551
|
"char": "o",
|
|
5533
5552
|
"description": "Output format",
|
|
@@ -5542,19 +5561,23 @@
|
|
|
5542
5561
|
],
|
|
5543
5562
|
"type": "option"
|
|
5544
5563
|
},
|
|
5545
|
-
"
|
|
5546
|
-
"
|
|
5547
|
-
"
|
|
5548
|
-
"name": "workspace",
|
|
5564
|
+
"type": {
|
|
5565
|
+
"description": "Cluster type",
|
|
5566
|
+
"name": "type",
|
|
5549
5567
|
"required": false,
|
|
5568
|
+
"default": "standard",
|
|
5550
5569
|
"hasDynamicHelp": false,
|
|
5551
5570
|
"multiple": false,
|
|
5571
|
+
"options": [
|
|
5572
|
+
"standard",
|
|
5573
|
+
"run"
|
|
5574
|
+
],
|
|
5552
5575
|
"type": "option"
|
|
5553
5576
|
}
|
|
5554
5577
|
},
|
|
5555
5578
|
"hasDynamicHelp": false,
|
|
5556
5579
|
"hiddenAliases": [],
|
|
5557
|
-
"id": "tenant:
|
|
5580
|
+
"id": "tenant:cluster:create",
|
|
5558
5581
|
"pluginAlias": "@xano/cli",
|
|
5559
5582
|
"pluginName": "@xano/cli",
|
|
5560
5583
|
"pluginType": "core",
|
|
@@ -5565,18 +5588,24 @@
|
|
|
5565
5588
|
"dist",
|
|
5566
5589
|
"commands",
|
|
5567
5590
|
"tenant",
|
|
5568
|
-
"
|
|
5569
|
-
"
|
|
5591
|
+
"cluster",
|
|
5592
|
+
"create",
|
|
5570
5593
|
"index.js"
|
|
5571
5594
|
]
|
|
5572
5595
|
},
|
|
5573
|
-
"tenant:cluster:
|
|
5596
|
+
"tenant:cluster:edit": {
|
|
5574
5597
|
"aliases": [],
|
|
5575
|
-
"args": {
|
|
5576
|
-
|
|
5598
|
+
"args": {
|
|
5599
|
+
"cluster_id": {
|
|
5600
|
+
"description": "Cluster ID to edit",
|
|
5601
|
+
"name": "cluster_id",
|
|
5602
|
+
"required": true
|
|
5603
|
+
}
|
|
5604
|
+
},
|
|
5605
|
+
"description": "Update an existing tenant cluster",
|
|
5577
5606
|
"examples": [
|
|
5578
|
-
"$ xano tenant cluster
|
|
5579
|
-
"$ xano tenant cluster
|
|
5607
|
+
"$ xano tenant cluster edit 1 --name \"us-east-1-updated\" --description \"Updated cluster\" --domain \"us-east.xano.io\" --type standard\nUpdated tenant cluster: us-east-1-updated (standard) - ID: 1\n",
|
|
5608
|
+
"$ xano tenant cluster edit 1 --name \"eu-west\" --description \"\" --domain \"\" --type run -o json"
|
|
5580
5609
|
],
|
|
5581
5610
|
"flags": {
|
|
5582
5611
|
"profile": {
|
|
@@ -5598,33 +5627,11 @@
|
|
|
5598
5627
|
"allowNo": false,
|
|
5599
5628
|
"type": "boolean"
|
|
5600
5629
|
},
|
|
5601
|
-
"credentials": {
|
|
5602
|
-
"description": "Kubeconfig credentials (raw text)",
|
|
5603
|
-
"exclusive": [
|
|
5604
|
-
"credentials_file"
|
|
5605
|
-
],
|
|
5606
|
-
"name": "credentials",
|
|
5607
|
-
"required": false,
|
|
5608
|
-
"hasDynamicHelp": false,
|
|
5609
|
-
"multiple": false,
|
|
5610
|
-
"type": "option"
|
|
5611
|
-
},
|
|
5612
|
-
"credentials_file": {
|
|
5613
|
-
"description": "Path to kubeconfig credentials file",
|
|
5614
|
-
"exclusive": [
|
|
5615
|
-
"credentials"
|
|
5616
|
-
],
|
|
5617
|
-
"name": "credentials_file",
|
|
5618
|
-
"required": false,
|
|
5619
|
-
"hasDynamicHelp": false,
|
|
5620
|
-
"multiple": false,
|
|
5621
|
-
"type": "option"
|
|
5622
|
-
},
|
|
5623
5630
|
"description": {
|
|
5624
5631
|
"char": "d",
|
|
5625
5632
|
"description": "Cluster description",
|
|
5626
5633
|
"name": "description",
|
|
5627
|
-
"required":
|
|
5634
|
+
"required": true,
|
|
5628
5635
|
"hasDynamicHelp": false,
|
|
5629
5636
|
"multiple": false,
|
|
5630
5637
|
"type": "option"
|
|
@@ -5632,7 +5639,7 @@
|
|
|
5632
5639
|
"domain": {
|
|
5633
5640
|
"description": "Custom domain for the cluster",
|
|
5634
5641
|
"name": "domain",
|
|
5635
|
-
"required":
|
|
5642
|
+
"required": true,
|
|
5636
5643
|
"hasDynamicHelp": false,
|
|
5637
5644
|
"multiple": false,
|
|
5638
5645
|
"type": "option"
|
|
@@ -5663,8 +5670,7 @@
|
|
|
5663
5670
|
"type": {
|
|
5664
5671
|
"description": "Cluster type",
|
|
5665
5672
|
"name": "type",
|
|
5666
|
-
"required":
|
|
5667
|
-
"default": "standard",
|
|
5673
|
+
"required": true,
|
|
5668
5674
|
"hasDynamicHelp": false,
|
|
5669
5675
|
"multiple": false,
|
|
5670
5676
|
"options": [
|
|
@@ -5676,7 +5682,7 @@
|
|
|
5676
5682
|
},
|
|
5677
5683
|
"hasDynamicHelp": false,
|
|
5678
5684
|
"hiddenAliases": [],
|
|
5679
|
-
"id": "tenant:cluster:
|
|
5685
|
+
"id": "tenant:cluster:edit",
|
|
5680
5686
|
"pluginAlias": "@xano/cli",
|
|
5681
5687
|
"pluginName": "@xano/cli",
|
|
5682
5688
|
"pluginType": "core",
|
|
@@ -5688,7 +5694,7 @@
|
|
|
5688
5694
|
"commands",
|
|
5689
5695
|
"tenant",
|
|
5690
5696
|
"cluster",
|
|
5691
|
-
"
|
|
5697
|
+
"edit",
|
|
5692
5698
|
"index.js"
|
|
5693
5699
|
]
|
|
5694
5700
|
},
|
|
@@ -5759,19 +5765,20 @@
|
|
|
5759
5765
|
"index.js"
|
|
5760
5766
|
]
|
|
5761
5767
|
},
|
|
5762
|
-
"tenant:cluster:
|
|
5768
|
+
"tenant:cluster:delete": {
|
|
5763
5769
|
"aliases": [],
|
|
5764
5770
|
"args": {
|
|
5765
5771
|
"cluster_id": {
|
|
5766
|
-
"description": "Cluster ID to
|
|
5772
|
+
"description": "Cluster ID to delete",
|
|
5767
5773
|
"name": "cluster_id",
|
|
5768
5774
|
"required": true
|
|
5769
5775
|
}
|
|
5770
5776
|
},
|
|
5771
|
-
"description": "
|
|
5777
|
+
"description": "Delete a tenant cluster. This action cannot be undone.",
|
|
5772
5778
|
"examples": [
|
|
5773
|
-
"$ xano tenant cluster
|
|
5774
|
-
"$ xano tenant cluster
|
|
5779
|
+
"$ xano tenant cluster delete 3\nAre you sure you want to delete tenant cluster 3? This action cannot be undone. (y/N) y\nTenant cluster 3 deleted successfully\n",
|
|
5780
|
+
"$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
|
|
5781
|
+
"$ xano tenant cluster delete 3 -f -o json"
|
|
5775
5782
|
],
|
|
5776
5783
|
"flags": {
|
|
5777
5784
|
"profile": {
|
|
@@ -5793,36 +5800,94 @@
|
|
|
5793
5800
|
"allowNo": false,
|
|
5794
5801
|
"type": "boolean"
|
|
5795
5802
|
},
|
|
5796
|
-
"
|
|
5797
|
-
"char": "
|
|
5798
|
-
"description": "
|
|
5799
|
-
"name": "
|
|
5800
|
-
"required":
|
|
5803
|
+
"force": {
|
|
5804
|
+
"char": "f",
|
|
5805
|
+
"description": "Skip confirmation prompt",
|
|
5806
|
+
"name": "force",
|
|
5807
|
+
"required": false,
|
|
5808
|
+
"allowNo": false,
|
|
5809
|
+
"type": "boolean"
|
|
5810
|
+
},
|
|
5811
|
+
"output": {
|
|
5812
|
+
"char": "o",
|
|
5813
|
+
"description": "Output format",
|
|
5814
|
+
"name": "output",
|
|
5815
|
+
"required": false,
|
|
5816
|
+
"default": "summary",
|
|
5801
5817
|
"hasDynamicHelp": false,
|
|
5802
5818
|
"multiple": false,
|
|
5819
|
+
"options": [
|
|
5820
|
+
"summary",
|
|
5821
|
+
"json"
|
|
5822
|
+
],
|
|
5803
5823
|
"type": "option"
|
|
5804
|
-
}
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5824
|
+
}
|
|
5825
|
+
},
|
|
5826
|
+
"hasDynamicHelp": false,
|
|
5827
|
+
"hiddenAliases": [],
|
|
5828
|
+
"id": "tenant:cluster:delete",
|
|
5829
|
+
"pluginAlias": "@xano/cli",
|
|
5830
|
+
"pluginName": "@xano/cli",
|
|
5831
|
+
"pluginType": "core",
|
|
5832
|
+
"strict": true,
|
|
5833
|
+
"enableJsonFlag": false,
|
|
5834
|
+
"isESM": true,
|
|
5835
|
+
"relativePath": [
|
|
5836
|
+
"dist",
|
|
5837
|
+
"commands",
|
|
5838
|
+
"tenant",
|
|
5839
|
+
"cluster",
|
|
5840
|
+
"delete",
|
|
5841
|
+
"index.js"
|
|
5842
|
+
]
|
|
5843
|
+
},
|
|
5844
|
+
"tenant:backup:export": {
|
|
5845
|
+
"aliases": [],
|
|
5846
|
+
"args": {
|
|
5847
|
+
"tenant_name": {
|
|
5848
|
+
"description": "Tenant name to export backup from",
|
|
5849
|
+
"name": "tenant_name",
|
|
5850
|
+
"required": true
|
|
5851
|
+
}
|
|
5852
|
+
},
|
|
5853
|
+
"description": "Export (download) a tenant backup to a local file",
|
|
5854
|
+
"examples": [
|
|
5855
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
|
|
5856
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
|
|
5857
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5858
|
+
],
|
|
5859
|
+
"flags": {
|
|
5860
|
+
"profile": {
|
|
5861
|
+
"char": "p",
|
|
5862
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
5863
|
+
"env": "XANO_PROFILE",
|
|
5864
|
+
"name": "profile",
|
|
5865
|
+
"required": false,
|
|
5809
5866
|
"hasDynamicHelp": false,
|
|
5810
5867
|
"multiple": false,
|
|
5811
5868
|
"type": "option"
|
|
5812
5869
|
},
|
|
5813
|
-
"
|
|
5814
|
-
"char": "
|
|
5815
|
-
"description": "
|
|
5816
|
-
"
|
|
5870
|
+
"verbose": {
|
|
5871
|
+
"char": "v",
|
|
5872
|
+
"description": "Show detailed request/response information",
|
|
5873
|
+
"env": "XANO_VERBOSE",
|
|
5874
|
+
"name": "verbose",
|
|
5875
|
+
"required": false,
|
|
5876
|
+
"allowNo": false,
|
|
5877
|
+
"type": "boolean"
|
|
5878
|
+
},
|
|
5879
|
+
"backup_id": {
|
|
5880
|
+
"description": "Backup ID to export",
|
|
5881
|
+
"name": "backup_id",
|
|
5817
5882
|
"required": true,
|
|
5818
5883
|
"hasDynamicHelp": false,
|
|
5819
5884
|
"multiple": false,
|
|
5820
5885
|
"type": "option"
|
|
5821
5886
|
},
|
|
5822
|
-
"
|
|
5887
|
+
"format": {
|
|
5823
5888
|
"char": "o",
|
|
5824
5889
|
"description": "Output format",
|
|
5825
|
-
"name": "
|
|
5890
|
+
"name": "format",
|
|
5826
5891
|
"required": false,
|
|
5827
5892
|
"default": "summary",
|
|
5828
5893
|
"hasDynamicHelp": false,
|
|
@@ -5833,22 +5898,27 @@
|
|
|
5833
5898
|
],
|
|
5834
5899
|
"type": "option"
|
|
5835
5900
|
},
|
|
5836
|
-
"
|
|
5837
|
-
"description": "
|
|
5838
|
-
"name": "
|
|
5839
|
-
"required":
|
|
5901
|
+
"output": {
|
|
5902
|
+
"description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
|
|
5903
|
+
"name": "output",
|
|
5904
|
+
"required": false,
|
|
5905
|
+
"hasDynamicHelp": false,
|
|
5906
|
+
"multiple": false,
|
|
5907
|
+
"type": "option"
|
|
5908
|
+
},
|
|
5909
|
+
"workspace": {
|
|
5910
|
+
"char": "w",
|
|
5911
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5912
|
+
"name": "workspace",
|
|
5913
|
+
"required": false,
|
|
5840
5914
|
"hasDynamicHelp": false,
|
|
5841
5915
|
"multiple": false,
|
|
5842
|
-
"options": [
|
|
5843
|
-
"standard",
|
|
5844
|
-
"run"
|
|
5845
|
-
],
|
|
5846
5916
|
"type": "option"
|
|
5847
5917
|
}
|
|
5848
5918
|
},
|
|
5849
5919
|
"hasDynamicHelp": false,
|
|
5850
5920
|
"hiddenAliases": [],
|
|
5851
|
-
"id": "tenant:
|
|
5921
|
+
"id": "tenant:backup:export",
|
|
5852
5922
|
"pluginAlias": "@xano/cli",
|
|
5853
5923
|
"pluginName": "@xano/cli",
|
|
5854
5924
|
"pluginType": "core",
|
|
@@ -5859,8 +5929,8 @@
|
|
|
5859
5929
|
"dist",
|
|
5860
5930
|
"commands",
|
|
5861
5931
|
"tenant",
|
|
5862
|
-
"
|
|
5863
|
-
"
|
|
5932
|
+
"backup",
|
|
5933
|
+
"export",
|
|
5864
5934
|
"index.js"
|
|
5865
5935
|
]
|
|
5866
5936
|
},
|
|
@@ -5925,20 +5995,20 @@
|
|
|
5925
5995
|
"index.js"
|
|
5926
5996
|
]
|
|
5927
5997
|
},
|
|
5928
|
-
"tenant:
|
|
5998
|
+
"tenant:backup:delete": {
|
|
5929
5999
|
"aliases": [],
|
|
5930
6000
|
"args": {
|
|
5931
|
-
"
|
|
5932
|
-
"description": "
|
|
5933
|
-
"name": "
|
|
6001
|
+
"tenant_name": {
|
|
6002
|
+
"description": "Tenant name that owns the backup",
|
|
6003
|
+
"name": "tenant_name",
|
|
5934
6004
|
"required": true
|
|
5935
6005
|
}
|
|
5936
6006
|
},
|
|
5937
|
-
"description": "Delete a tenant
|
|
6007
|
+
"description": "Delete a tenant backup permanently. This action cannot be undone.",
|
|
5938
6008
|
"examples": [
|
|
5939
|
-
"$ xano tenant
|
|
5940
|
-
"$ xano tenant
|
|
5941
|
-
"$ xano tenant
|
|
6009
|
+
"$ 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",
|
|
6010
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
|
|
6011
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5942
6012
|
],
|
|
5943
6013
|
"flags": {
|
|
5944
6014
|
"profile": {
|
|
@@ -5960,6 +6030,14 @@
|
|
|
5960
6030
|
"allowNo": false,
|
|
5961
6031
|
"type": "boolean"
|
|
5962
6032
|
},
|
|
6033
|
+
"backup_id": {
|
|
6034
|
+
"description": "Backup ID to delete",
|
|
6035
|
+
"name": "backup_id",
|
|
6036
|
+
"required": true,
|
|
6037
|
+
"hasDynamicHelp": false,
|
|
6038
|
+
"multiple": false,
|
|
6039
|
+
"type": "option"
|
|
6040
|
+
},
|
|
5963
6041
|
"force": {
|
|
5964
6042
|
"char": "f",
|
|
5965
6043
|
"description": "Skip confirmation prompt",
|
|
@@ -5981,11 +6059,20 @@
|
|
|
5981
6059
|
"json"
|
|
5982
6060
|
],
|
|
5983
6061
|
"type": "option"
|
|
6062
|
+
},
|
|
6063
|
+
"workspace": {
|
|
6064
|
+
"char": "w",
|
|
6065
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6066
|
+
"name": "workspace",
|
|
6067
|
+
"required": false,
|
|
6068
|
+
"hasDynamicHelp": false,
|
|
6069
|
+
"multiple": false,
|
|
6070
|
+
"type": "option"
|
|
5984
6071
|
}
|
|
5985
6072
|
},
|
|
5986
6073
|
"hasDynamicHelp": false,
|
|
5987
6074
|
"hiddenAliases": [],
|
|
5988
|
-
"id": "tenant:
|
|
6075
|
+
"id": "tenant:backup:delete",
|
|
5989
6076
|
"pluginAlias": "@xano/cli",
|
|
5990
6077
|
"pluginName": "@xano/cli",
|
|
5991
6078
|
"pluginType": "core",
|
|
@@ -5996,7 +6083,7 @@
|
|
|
5996
6083
|
"dist",
|
|
5997
6084
|
"commands",
|
|
5998
6085
|
"tenant",
|
|
5999
|
-
"
|
|
6086
|
+
"backup",
|
|
6000
6087
|
"delete",
|
|
6001
6088
|
"index.js"
|
|
6002
6089
|
]
|
|
@@ -6095,7 +6182,7 @@
|
|
|
6095
6182
|
"index.js"
|
|
6096
6183
|
]
|
|
6097
6184
|
},
|
|
6098
|
-
"tenant:env:
|
|
6185
|
+
"tenant:env:get_all": {
|
|
6099
6186
|
"aliases": [],
|
|
6100
6187
|
"args": {
|
|
6101
6188
|
"tenant_name": {
|
|
@@ -6104,10 +6191,12 @@
|
|
|
6104
6191
|
"required": true
|
|
6105
6192
|
}
|
|
6106
6193
|
},
|
|
6107
|
-
"description": "Get
|
|
6194
|
+
"description": "Get all environment variables for a tenant and save to a YAML file",
|
|
6108
6195
|
"examples": [
|
|
6109
|
-
"$ xano tenant env
|
|
6110
|
-
"$ xano tenant env
|
|
6196
|
+
"$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
|
|
6197
|
+
"$ xano tenant env get_all my-tenant --file ./my-env.yaml",
|
|
6198
|
+
"$ xano tenant env get_all my-tenant --view",
|
|
6199
|
+
"$ xano tenant env get_all my-tenant -o json"
|
|
6111
6200
|
],
|
|
6112
6201
|
"flags": {
|
|
6113
6202
|
"profile": {
|
|
@@ -6129,11 +6218,11 @@
|
|
|
6129
6218
|
"allowNo": false,
|
|
6130
6219
|
"type": "boolean"
|
|
6131
6220
|
},
|
|
6132
|
-
"
|
|
6133
|
-
"char": "
|
|
6134
|
-
"description": "
|
|
6135
|
-
"name": "
|
|
6136
|
-
"required":
|
|
6221
|
+
"file": {
|
|
6222
|
+
"char": "f",
|
|
6223
|
+
"description": "Output file path (default: env_<tenant_name>.yaml)",
|
|
6224
|
+
"name": "file",
|
|
6225
|
+
"required": false,
|
|
6137
6226
|
"hasDynamicHelp": false,
|
|
6138
6227
|
"multiple": false,
|
|
6139
6228
|
"type": "option"
|
|
@@ -6152,6 +6241,13 @@
|
|
|
6152
6241
|
],
|
|
6153
6242
|
"type": "option"
|
|
6154
6243
|
},
|
|
6244
|
+
"view": {
|
|
6245
|
+
"description": "Print environment variables to stdout instead of saving to file",
|
|
6246
|
+
"name": "view",
|
|
6247
|
+
"required": false,
|
|
6248
|
+
"allowNo": false,
|
|
6249
|
+
"type": "boolean"
|
|
6250
|
+
},
|
|
6155
6251
|
"workspace": {
|
|
6156
6252
|
"char": "w",
|
|
6157
6253
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6164,7 +6260,7 @@
|
|
|
6164
6260
|
},
|
|
6165
6261
|
"hasDynamicHelp": false,
|
|
6166
6262
|
"hiddenAliases": [],
|
|
6167
|
-
"id": "tenant:env:
|
|
6263
|
+
"id": "tenant:env:get_all",
|
|
6168
6264
|
"pluginAlias": "@xano/cli",
|
|
6169
6265
|
"pluginName": "@xano/cli",
|
|
6170
6266
|
"pluginType": "core",
|
|
@@ -6176,11 +6272,11 @@
|
|
|
6176
6272
|
"commands",
|
|
6177
6273
|
"tenant",
|
|
6178
6274
|
"env",
|
|
6179
|
-
"
|
|
6275
|
+
"get_all",
|
|
6180
6276
|
"index.js"
|
|
6181
6277
|
]
|
|
6182
6278
|
},
|
|
6183
|
-
"tenant:env:
|
|
6279
|
+
"tenant:env:list": {
|
|
6184
6280
|
"aliases": [],
|
|
6185
6281
|
"args": {
|
|
6186
6282
|
"tenant_name": {
|
|
@@ -6189,12 +6285,10 @@
|
|
|
6189
6285
|
"required": true
|
|
6190
6286
|
}
|
|
6191
6287
|
},
|
|
6192
|
-
"description": "
|
|
6288
|
+
"description": "List environment variable keys for a tenant",
|
|
6193
6289
|
"examples": [
|
|
6194
|
-
"$ xano tenant env
|
|
6195
|
-
"$ xano tenant env
|
|
6196
|
-
"$ xano tenant env get_all my-tenant --view",
|
|
6197
|
-
"$ xano tenant env get_all my-tenant -o json"
|
|
6290
|
+
"$ xano tenant env list my-tenant\nEnvironment variables for tenant my-tenant:\n - DATABASE_URL\n - API_KEY\n - SECRET_TOKEN\n",
|
|
6291
|
+
"$ xano tenant env list my-tenant -w 5 -o json"
|
|
6198
6292
|
],
|
|
6199
6293
|
"flags": {
|
|
6200
6294
|
"profile": {
|
|
@@ -6216,15 +6310,6 @@
|
|
|
6216
6310
|
"allowNo": false,
|
|
6217
6311
|
"type": "boolean"
|
|
6218
6312
|
},
|
|
6219
|
-
"file": {
|
|
6220
|
-
"char": "f",
|
|
6221
|
-
"description": "Output file path (default: env_<tenant_name>.yaml)",
|
|
6222
|
-
"name": "file",
|
|
6223
|
-
"required": false,
|
|
6224
|
-
"hasDynamicHelp": false,
|
|
6225
|
-
"multiple": false,
|
|
6226
|
-
"type": "option"
|
|
6227
|
-
},
|
|
6228
6313
|
"output": {
|
|
6229
6314
|
"char": "o",
|
|
6230
6315
|
"description": "Output format",
|
|
@@ -6239,13 +6324,6 @@
|
|
|
6239
6324
|
],
|
|
6240
6325
|
"type": "option"
|
|
6241
6326
|
},
|
|
6242
|
-
"view": {
|
|
6243
|
-
"description": "Print environment variables to stdout instead of saving to file",
|
|
6244
|
-
"name": "view",
|
|
6245
|
-
"required": false,
|
|
6246
|
-
"allowNo": false,
|
|
6247
|
-
"type": "boolean"
|
|
6248
|
-
},
|
|
6249
6327
|
"workspace": {
|
|
6250
6328
|
"char": "w",
|
|
6251
6329
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6258,7 +6336,7 @@
|
|
|
6258
6336
|
},
|
|
6259
6337
|
"hasDynamicHelp": false,
|
|
6260
6338
|
"hiddenAliases": [],
|
|
6261
|
-
"id": "tenant:env:
|
|
6339
|
+
"id": "tenant:env:list",
|
|
6262
6340
|
"pluginAlias": "@xano/cli",
|
|
6263
6341
|
"pluginName": "@xano/cli",
|
|
6264
6342
|
"pluginType": "core",
|
|
@@ -6270,11 +6348,11 @@
|
|
|
6270
6348
|
"commands",
|
|
6271
6349
|
"tenant",
|
|
6272
6350
|
"env",
|
|
6273
|
-
"
|
|
6351
|
+
"list",
|
|
6274
6352
|
"index.js"
|
|
6275
6353
|
]
|
|
6276
6354
|
},
|
|
6277
|
-
"tenant:env:
|
|
6355
|
+
"tenant:env:get": {
|
|
6278
6356
|
"aliases": [],
|
|
6279
6357
|
"args": {
|
|
6280
6358
|
"tenant_name": {
|
|
@@ -6283,10 +6361,10 @@
|
|
|
6283
6361
|
"required": true
|
|
6284
6362
|
}
|
|
6285
6363
|
},
|
|
6286
|
-
"description": "
|
|
6364
|
+
"description": "Get a single environment variable for a tenant",
|
|
6287
6365
|
"examples": [
|
|
6288
|
-
"$ xano tenant env
|
|
6289
|
-
"$ xano tenant env
|
|
6366
|
+
"$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
|
|
6367
|
+
"$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
|
|
6290
6368
|
],
|
|
6291
6369
|
"flags": {
|
|
6292
6370
|
"profile": {
|
|
@@ -6331,14 +6409,6 @@
|
|
|
6331
6409
|
],
|
|
6332
6410
|
"type": "option"
|
|
6333
6411
|
},
|
|
6334
|
-
"value": {
|
|
6335
|
-
"description": "Environment variable value",
|
|
6336
|
-
"name": "value",
|
|
6337
|
-
"required": true,
|
|
6338
|
-
"hasDynamicHelp": false,
|
|
6339
|
-
"multiple": false,
|
|
6340
|
-
"type": "option"
|
|
6341
|
-
},
|
|
6342
6412
|
"workspace": {
|
|
6343
6413
|
"char": "w",
|
|
6344
6414
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6351,7 +6421,7 @@
|
|
|
6351
6421
|
},
|
|
6352
6422
|
"hasDynamicHelp": false,
|
|
6353
6423
|
"hiddenAliases": [],
|
|
6354
|
-
"id": "tenant:env:
|
|
6424
|
+
"id": "tenant:env:get",
|
|
6355
6425
|
"pluginAlias": "@xano/cli",
|
|
6356
6426
|
"pluginName": "@xano/cli",
|
|
6357
6427
|
"pluginType": "core",
|
|
@@ -6363,11 +6433,11 @@
|
|
|
6363
6433
|
"commands",
|
|
6364
6434
|
"tenant",
|
|
6365
6435
|
"env",
|
|
6366
|
-
"
|
|
6436
|
+
"get",
|
|
6367
6437
|
"index.js"
|
|
6368
6438
|
]
|
|
6369
6439
|
},
|
|
6370
|
-
"tenant:
|
|
6440
|
+
"tenant:license:get": {
|
|
6371
6441
|
"aliases": [],
|
|
6372
6442
|
"args": {
|
|
6373
6443
|
"tenant_name": {
|
|
@@ -6376,11 +6446,12 @@
|
|
|
6376
6446
|
"required": true
|
|
6377
6447
|
}
|
|
6378
6448
|
},
|
|
6379
|
-
"description": "
|
|
6449
|
+
"description": "Get the license for a tenant",
|
|
6380
6450
|
"examples": [
|
|
6381
|
-
"$ xano tenant
|
|
6382
|
-
"$ xano tenant
|
|
6383
|
-
"$ xano tenant
|
|
6451
|
+
"$ xano tenant license get my-tenant\nLicense saved to license_my-tenant.yaml\n",
|
|
6452
|
+
"$ xano tenant license get my-tenant --file ./my-license.yaml\nLicense saved to my-license.yaml\n",
|
|
6453
|
+
"$ xano tenant license get my-tenant --view",
|
|
6454
|
+
"$ xano tenant license get my-tenant -o json"
|
|
6384
6455
|
],
|
|
6385
6456
|
"flags": {
|
|
6386
6457
|
"profile": {
|
|
@@ -6402,16 +6473,9 @@
|
|
|
6402
6473
|
"allowNo": false,
|
|
6403
6474
|
"type": "boolean"
|
|
6404
6475
|
},
|
|
6405
|
-
"clean": {
|
|
6406
|
-
"description": "Remove the source file after successful upload",
|
|
6407
|
-
"name": "clean",
|
|
6408
|
-
"required": false,
|
|
6409
|
-
"allowNo": false,
|
|
6410
|
-
"type": "boolean"
|
|
6411
|
-
},
|
|
6412
6476
|
"file": {
|
|
6413
6477
|
"char": "f",
|
|
6414
|
-
"description": "
|
|
6478
|
+
"description": "Output file path (default: license_<tenant_name>.yaml)",
|
|
6415
6479
|
"name": "file",
|
|
6416
6480
|
"required": false,
|
|
6417
6481
|
"hasDynamicHelp": false,
|
|
@@ -6432,6 +6496,13 @@
|
|
|
6432
6496
|
],
|
|
6433
6497
|
"type": "option"
|
|
6434
6498
|
},
|
|
6499
|
+
"view": {
|
|
6500
|
+
"description": "Print license to stdout instead of saving to file",
|
|
6501
|
+
"name": "view",
|
|
6502
|
+
"required": false,
|
|
6503
|
+
"allowNo": false,
|
|
6504
|
+
"type": "boolean"
|
|
6505
|
+
},
|
|
6435
6506
|
"workspace": {
|
|
6436
6507
|
"char": "w",
|
|
6437
6508
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6444,7 +6515,7 @@
|
|
|
6444
6515
|
},
|
|
6445
6516
|
"hasDynamicHelp": false,
|
|
6446
6517
|
"hiddenAliases": [],
|
|
6447
|
-
"id": "tenant:
|
|
6518
|
+
"id": "tenant:license:get",
|
|
6448
6519
|
"pluginAlias": "@xano/cli",
|
|
6449
6520
|
"pluginName": "@xano/cli",
|
|
6450
6521
|
"pluginType": "core",
|
|
@@ -6455,12 +6526,12 @@
|
|
|
6455
6526
|
"dist",
|
|
6456
6527
|
"commands",
|
|
6457
6528
|
"tenant",
|
|
6458
|
-
"
|
|
6459
|
-
"
|
|
6529
|
+
"license",
|
|
6530
|
+
"get",
|
|
6460
6531
|
"index.js"
|
|
6461
6532
|
]
|
|
6462
6533
|
},
|
|
6463
|
-
"tenant:
|
|
6534
|
+
"tenant:env:set_all": {
|
|
6464
6535
|
"aliases": [],
|
|
6465
6536
|
"args": {
|
|
6466
6537
|
"tenant_name": {
|
|
@@ -6469,12 +6540,11 @@
|
|
|
6469
6540
|
"required": true
|
|
6470
6541
|
}
|
|
6471
6542
|
},
|
|
6472
|
-
"description": "Set
|
|
6543
|
+
"description": "Set all environment variables for a tenant from a YAML file (replaces all existing)",
|
|
6473
6544
|
"examples": [
|
|
6474
|
-
"$ xano tenant
|
|
6475
|
-
"$ xano tenant
|
|
6476
|
-
"$ xano tenant
|
|
6477
|
-
"$ xano tenant license set my-tenant -o json"
|
|
6545
|
+
"$ xano tenant env set_all my-tenant\nReads from env_my-tenant.yaml\n",
|
|
6546
|
+
"$ xano tenant env set_all my-tenant --file ./my-env.yaml",
|
|
6547
|
+
"$ xano tenant env set_all my-tenant -o json"
|
|
6478
6548
|
],
|
|
6479
6549
|
"flags": {
|
|
6480
6550
|
"profile": {
|
|
@@ -6498,9 +6568,6 @@
|
|
|
6498
6568
|
},
|
|
6499
6569
|
"clean": {
|
|
6500
6570
|
"description": "Remove the source file after successful upload",
|
|
6501
|
-
"exclusive": [
|
|
6502
|
-
"value"
|
|
6503
|
-
],
|
|
6504
6571
|
"name": "clean",
|
|
6505
6572
|
"required": false,
|
|
6506
6573
|
"allowNo": false,
|
|
@@ -6508,10 +6575,7 @@
|
|
|
6508
6575
|
},
|
|
6509
6576
|
"file": {
|
|
6510
6577
|
"char": "f",
|
|
6511
|
-
"description": "Path to
|
|
6512
|
-
"exclusive": [
|
|
6513
|
-
"value"
|
|
6514
|
-
],
|
|
6578
|
+
"description": "Path to env file (default: env_<tenant_name>.yaml)",
|
|
6515
6579
|
"name": "file",
|
|
6516
6580
|
"required": false,
|
|
6517
6581
|
"hasDynamicHelp": false,
|
|
@@ -6532,18 +6596,6 @@
|
|
|
6532
6596
|
],
|
|
6533
6597
|
"type": "option"
|
|
6534
6598
|
},
|
|
6535
|
-
"value": {
|
|
6536
|
-
"description": "Inline license value",
|
|
6537
|
-
"exclusive": [
|
|
6538
|
-
"file",
|
|
6539
|
-
"clean"
|
|
6540
|
-
],
|
|
6541
|
-
"name": "value",
|
|
6542
|
-
"required": false,
|
|
6543
|
-
"hasDynamicHelp": false,
|
|
6544
|
-
"multiple": false,
|
|
6545
|
-
"type": "option"
|
|
6546
|
-
},
|
|
6547
6599
|
"workspace": {
|
|
6548
6600
|
"char": "w",
|
|
6549
6601
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6556,7 +6608,7 @@
|
|
|
6556
6608
|
},
|
|
6557
6609
|
"hasDynamicHelp": false,
|
|
6558
6610
|
"hiddenAliases": [],
|
|
6559
|
-
"id": "tenant:
|
|
6611
|
+
"id": "tenant:env:set_all",
|
|
6560
6612
|
"pluginAlias": "@xano/cli",
|
|
6561
6613
|
"pluginName": "@xano/cli",
|
|
6562
6614
|
"pluginType": "core",
|
|
@@ -6567,12 +6619,12 @@
|
|
|
6567
6619
|
"dist",
|
|
6568
6620
|
"commands",
|
|
6569
6621
|
"tenant",
|
|
6570
|
-
"
|
|
6571
|
-
"
|
|
6622
|
+
"env",
|
|
6623
|
+
"set_all",
|
|
6572
6624
|
"index.js"
|
|
6573
6625
|
]
|
|
6574
6626
|
},
|
|
6575
|
-
"tenant:
|
|
6627
|
+
"tenant:env:set": {
|
|
6576
6628
|
"aliases": [],
|
|
6577
6629
|
"args": {
|
|
6578
6630
|
"tenant_name": {
|
|
@@ -6581,12 +6633,10 @@
|
|
|
6581
6633
|
"required": true
|
|
6582
6634
|
}
|
|
6583
6635
|
},
|
|
6584
|
-
"description": "
|
|
6636
|
+
"description": "Set (create or update) an environment variable for a tenant",
|
|
6585
6637
|
"examples": [
|
|
6586
|
-
"$ xano tenant
|
|
6587
|
-
"$ xano tenant
|
|
6588
|
-
"$ xano tenant license get my-tenant --view",
|
|
6589
|
-
"$ xano tenant license get my-tenant -o json"
|
|
6638
|
+
"$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
|
|
6639
|
+
"$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
|
|
6590
6640
|
],
|
|
6591
6641
|
"flags": {
|
|
6592
6642
|
"profile": {
|
|
@@ -6608,11 +6658,11 @@
|
|
|
6608
6658
|
"allowNo": false,
|
|
6609
6659
|
"type": "boolean"
|
|
6610
6660
|
},
|
|
6611
|
-
"
|
|
6612
|
-
"char": "
|
|
6613
|
-
"description": "
|
|
6614
|
-
"name": "
|
|
6615
|
-
"required":
|
|
6661
|
+
"name": {
|
|
6662
|
+
"char": "n",
|
|
6663
|
+
"description": "Environment variable name",
|
|
6664
|
+
"name": "name",
|
|
6665
|
+
"required": true,
|
|
6616
6666
|
"hasDynamicHelp": false,
|
|
6617
6667
|
"multiple": false,
|
|
6618
6668
|
"type": "option"
|
|
@@ -6631,12 +6681,13 @@
|
|
|
6631
6681
|
],
|
|
6632
6682
|
"type": "option"
|
|
6633
6683
|
},
|
|
6634
|
-
"
|
|
6635
|
-
"description": "
|
|
6636
|
-
"name": "
|
|
6637
|
-
"required":
|
|
6638
|
-
"
|
|
6639
|
-
"
|
|
6684
|
+
"value": {
|
|
6685
|
+
"description": "Environment variable value",
|
|
6686
|
+
"name": "value",
|
|
6687
|
+
"required": true,
|
|
6688
|
+
"hasDynamicHelp": false,
|
|
6689
|
+
"multiple": false,
|
|
6690
|
+
"type": "option"
|
|
6640
6691
|
},
|
|
6641
6692
|
"workspace": {
|
|
6642
6693
|
"char": "w",
|
|
@@ -6650,7 +6701,7 @@
|
|
|
6650
6701
|
},
|
|
6651
6702
|
"hasDynamicHelp": false,
|
|
6652
6703
|
"hiddenAliases": [],
|
|
6653
|
-
"id": "tenant:
|
|
6704
|
+
"id": "tenant:env:set",
|
|
6654
6705
|
"pluginAlias": "@xano/cli",
|
|
6655
6706
|
"pluginName": "@xano/cli",
|
|
6656
6707
|
"pluginType": "core",
|
|
@@ -6661,24 +6712,26 @@
|
|
|
6661
6712
|
"dist",
|
|
6662
6713
|
"commands",
|
|
6663
6714
|
"tenant",
|
|
6664
|
-
"
|
|
6665
|
-
"
|
|
6715
|
+
"env",
|
|
6716
|
+
"set",
|
|
6666
6717
|
"index.js"
|
|
6667
6718
|
]
|
|
6668
6719
|
},
|
|
6669
|
-
"tenant:
|
|
6720
|
+
"tenant:cluster:license:get": {
|
|
6670
6721
|
"aliases": [],
|
|
6671
6722
|
"args": {
|
|
6672
|
-
"
|
|
6673
|
-
"description": "Tenant
|
|
6674
|
-
"name": "
|
|
6723
|
+
"cluster_id": {
|
|
6724
|
+
"description": "Tenant cluster ID",
|
|
6725
|
+
"name": "cluster_id",
|
|
6675
6726
|
"required": true
|
|
6676
6727
|
}
|
|
6677
6728
|
},
|
|
6678
|
-
"description": "
|
|
6729
|
+
"description": "Get the license (kubeconfig) for a tenant cluster",
|
|
6679
6730
|
"examples": [
|
|
6680
|
-
"$ xano tenant
|
|
6681
|
-
"$ xano tenant
|
|
6731
|
+
"$ xano tenant cluster license get 1\nLicense saved to kubeconfig-1.yaml\n",
|
|
6732
|
+
"$ xano tenant cluster license get 1 --file ./my-kubeconfig.yaml\nLicense saved to my-kubeconfig.yaml\n",
|
|
6733
|
+
"$ xano tenant cluster license get 1 --view",
|
|
6734
|
+
"$ xano tenant cluster license get 1 -o json"
|
|
6682
6735
|
],
|
|
6683
6736
|
"flags": {
|
|
6684
6737
|
"profile": {
|
|
@@ -6700,6 +6753,15 @@
|
|
|
6700
6753
|
"allowNo": false,
|
|
6701
6754
|
"type": "boolean"
|
|
6702
6755
|
},
|
|
6756
|
+
"file": {
|
|
6757
|
+
"char": "f",
|
|
6758
|
+
"description": "Output file path (default: kubeconfig_<cluster_id>.yaml)",
|
|
6759
|
+
"name": "file",
|
|
6760
|
+
"required": false,
|
|
6761
|
+
"hasDynamicHelp": false,
|
|
6762
|
+
"multiple": false,
|
|
6763
|
+
"type": "option"
|
|
6764
|
+
},
|
|
6703
6765
|
"output": {
|
|
6704
6766
|
"char": "o",
|
|
6705
6767
|
"description": "Output format",
|
|
@@ -6714,19 +6776,17 @@
|
|
|
6714
6776
|
],
|
|
6715
6777
|
"type": "option"
|
|
6716
6778
|
},
|
|
6717
|
-
"
|
|
6718
|
-
"
|
|
6719
|
-
"
|
|
6720
|
-
"name": "workspace",
|
|
6779
|
+
"view": {
|
|
6780
|
+
"description": "Print license to stdout instead of saving to file",
|
|
6781
|
+
"name": "view",
|
|
6721
6782
|
"required": false,
|
|
6722
|
-
"
|
|
6723
|
-
"
|
|
6724
|
-
"type": "option"
|
|
6783
|
+
"allowNo": false,
|
|
6784
|
+
"type": "boolean"
|
|
6725
6785
|
}
|
|
6726
6786
|
},
|
|
6727
6787
|
"hasDynamicHelp": false,
|
|
6728
6788
|
"hiddenAliases": [],
|
|
6729
|
-
"id": "tenant:
|
|
6789
|
+
"id": "tenant:cluster:license:get",
|
|
6730
6790
|
"pluginAlias": "@xano/cli",
|
|
6731
6791
|
"pluginName": "@xano/cli",
|
|
6732
6792
|
"pluginType": "core",
|
|
@@ -6737,8 +6797,9 @@
|
|
|
6737
6797
|
"dist",
|
|
6738
6798
|
"commands",
|
|
6739
6799
|
"tenant",
|
|
6740
|
-
"
|
|
6741
|
-
"
|
|
6800
|
+
"cluster",
|
|
6801
|
+
"license",
|
|
6802
|
+
"get",
|
|
6742
6803
|
"index.js"
|
|
6743
6804
|
]
|
|
6744
6805
|
},
|
|
@@ -6836,21 +6897,21 @@
|
|
|
6836
6897
|
"index.js"
|
|
6837
6898
|
]
|
|
6838
6899
|
},
|
|
6839
|
-
"tenant:
|
|
6900
|
+
"tenant:license:set": {
|
|
6840
6901
|
"aliases": [],
|
|
6841
6902
|
"args": {
|
|
6842
|
-
"
|
|
6843
|
-
"description": "Tenant
|
|
6844
|
-
"name": "
|
|
6903
|
+
"tenant_name": {
|
|
6904
|
+
"description": "Tenant name",
|
|
6905
|
+
"name": "tenant_name",
|
|
6845
6906
|
"required": true
|
|
6846
6907
|
}
|
|
6847
6908
|
},
|
|
6848
|
-
"description": "
|
|
6909
|
+
"description": "Set/update the license for a tenant",
|
|
6849
6910
|
"examples": [
|
|
6850
|
-
"$ xano tenant
|
|
6851
|
-
"$ xano tenant
|
|
6852
|
-
"$ xano tenant
|
|
6853
|
-
"$ xano tenant
|
|
6911
|
+
"$ xano tenant license set my-tenant\nReads from license_my-tenant.yaml\n",
|
|
6912
|
+
"$ xano tenant license set my-tenant --file ./license.yaml",
|
|
6913
|
+
"$ xano tenant license set my-tenant --value 'key: value'",
|
|
6914
|
+
"$ xano tenant license set my-tenant -o json"
|
|
6854
6915
|
],
|
|
6855
6916
|
"flags": {
|
|
6856
6917
|
"profile": {
|
|
@@ -6872,9 +6933,22 @@
|
|
|
6872
6933
|
"allowNo": false,
|
|
6873
6934
|
"type": "boolean"
|
|
6874
6935
|
},
|
|
6936
|
+
"clean": {
|
|
6937
|
+
"description": "Remove the source file after successful upload",
|
|
6938
|
+
"exclusive": [
|
|
6939
|
+
"value"
|
|
6940
|
+
],
|
|
6941
|
+
"name": "clean",
|
|
6942
|
+
"required": false,
|
|
6943
|
+
"allowNo": false,
|
|
6944
|
+
"type": "boolean"
|
|
6945
|
+
},
|
|
6875
6946
|
"file": {
|
|
6876
6947
|
"char": "f",
|
|
6877
|
-
"description": "
|
|
6948
|
+
"description": "Path to license file (default: license_<tenant_name>.yaml)",
|
|
6949
|
+
"exclusive": [
|
|
6950
|
+
"value"
|
|
6951
|
+
],
|
|
6878
6952
|
"name": "file",
|
|
6879
6953
|
"required": false,
|
|
6880
6954
|
"hasDynamicHelp": false,
|
|
@@ -6895,17 +6969,31 @@
|
|
|
6895
6969
|
],
|
|
6896
6970
|
"type": "option"
|
|
6897
6971
|
},
|
|
6898
|
-
"
|
|
6899
|
-
"description": "
|
|
6900
|
-
"
|
|
6972
|
+
"value": {
|
|
6973
|
+
"description": "Inline license value",
|
|
6974
|
+
"exclusive": [
|
|
6975
|
+
"file",
|
|
6976
|
+
"clean"
|
|
6977
|
+
],
|
|
6978
|
+
"name": "value",
|
|
6901
6979
|
"required": false,
|
|
6902
|
-
"
|
|
6903
|
-
"
|
|
6980
|
+
"hasDynamicHelp": false,
|
|
6981
|
+
"multiple": false,
|
|
6982
|
+
"type": "option"
|
|
6983
|
+
},
|
|
6984
|
+
"workspace": {
|
|
6985
|
+
"char": "w",
|
|
6986
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6987
|
+
"name": "workspace",
|
|
6988
|
+
"required": false,
|
|
6989
|
+
"hasDynamicHelp": false,
|
|
6990
|
+
"multiple": false,
|
|
6991
|
+
"type": "option"
|
|
6904
6992
|
}
|
|
6905
6993
|
},
|
|
6906
6994
|
"hasDynamicHelp": false,
|
|
6907
6995
|
"hiddenAliases": [],
|
|
6908
|
-
"id": "tenant:
|
|
6996
|
+
"id": "tenant:license:set",
|
|
6909
6997
|
"pluginAlias": "@xano/cli",
|
|
6910
6998
|
"pluginName": "@xano/cli",
|
|
6911
6999
|
"pluginType": "core",
|
|
@@ -6916,9 +7004,8 @@
|
|
|
6916
7004
|
"dist",
|
|
6917
7005
|
"commands",
|
|
6918
7006
|
"tenant",
|
|
6919
|
-
"cluster",
|
|
6920
7007
|
"license",
|
|
6921
|
-
"
|
|
7008
|
+
"set",
|
|
6922
7009
|
"index.js"
|
|
6923
7010
|
]
|
|
6924
7011
|
},
|
|
@@ -7027,5 +7114,5 @@
|
|
|
7027
7114
|
]
|
|
7028
7115
|
}
|
|
7029
7116
|
},
|
|
7030
|
-
"version": "0.0.
|
|
7117
|
+
"version": "0.0.67"
|
|
7031
7118
|
}
|