@xano/cli 0.0.78 → 0.0.80-beta.0
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 +1 -0
- package/dist/commands/tenant/push/index.d.ts +1 -0
- package/dist/commands/tenant/push/index.js +7 -0
- package/dist/commands/update/index.js +2 -0
- package/dist/commands/workspace/push/index.d.ts +1 -0
- package/dist/commands/workspace/push/index.js +28 -1
- package/dist/update-check.d.ts +1 -0
- package/dist/update-check.js +23 -1
- package/oclif.manifest.json +1140 -1126
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -100,14 +100,19 @@
|
|
|
100
100
|
"index.js"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
|
-
"
|
|
103
|
+
"platform:get": {
|
|
104
104
|
"aliases": [],
|
|
105
|
-
"args": {
|
|
106
|
-
|
|
105
|
+
"args": {
|
|
106
|
+
"platform_id": {
|
|
107
|
+
"description": "Platform ID to retrieve",
|
|
108
|
+
"name": "platform_id",
|
|
109
|
+
"required": true
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"description": "Get details of a specific platform",
|
|
107
113
|
"examples": [
|
|
108
|
-
"$ xano
|
|
109
|
-
"$ xano
|
|
110
|
-
"$ 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"
|
|
114
|
+
"$ 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",
|
|
115
|
+
"$ xano platform get 23629 -o json"
|
|
111
116
|
],
|
|
112
117
|
"flags": {
|
|
113
118
|
"profile": {
|
|
@@ -129,33 +134,6 @@
|
|
|
129
134
|
"allowNo": false,
|
|
130
135
|
"type": "boolean"
|
|
131
136
|
},
|
|
132
|
-
"color": {
|
|
133
|
-
"char": "c",
|
|
134
|
-
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
135
|
-
"name": "color",
|
|
136
|
-
"required": false,
|
|
137
|
-
"hasDynamicHelp": false,
|
|
138
|
-
"multiple": false,
|
|
139
|
-
"type": "option"
|
|
140
|
-
},
|
|
141
|
-
"description": {
|
|
142
|
-
"char": "d",
|
|
143
|
-
"description": "Description for the new branch",
|
|
144
|
-
"name": "description",
|
|
145
|
-
"required": false,
|
|
146
|
-
"hasDynamicHelp": false,
|
|
147
|
-
"multiple": false,
|
|
148
|
-
"type": "option"
|
|
149
|
-
},
|
|
150
|
-
"label": {
|
|
151
|
-
"char": "l",
|
|
152
|
-
"description": "Label for the new branch",
|
|
153
|
-
"name": "label",
|
|
154
|
-
"required": true,
|
|
155
|
-
"hasDynamicHelp": false,
|
|
156
|
-
"multiple": false,
|
|
157
|
-
"type": "option"
|
|
158
|
-
},
|
|
159
137
|
"output": {
|
|
160
138
|
"char": "o",
|
|
161
139
|
"description": "Output format",
|
|
@@ -169,30 +147,11 @@
|
|
|
169
147
|
"json"
|
|
170
148
|
],
|
|
171
149
|
"type": "option"
|
|
172
|
-
},
|
|
173
|
-
"source": {
|
|
174
|
-
"char": "s",
|
|
175
|
-
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
176
|
-
"name": "source",
|
|
177
|
-
"required": false,
|
|
178
|
-
"default": "v1",
|
|
179
|
-
"hasDynamicHelp": false,
|
|
180
|
-
"multiple": false,
|
|
181
|
-
"type": "option"
|
|
182
|
-
},
|
|
183
|
-
"workspace": {
|
|
184
|
-
"char": "w",
|
|
185
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
186
|
-
"name": "workspace",
|
|
187
|
-
"required": false,
|
|
188
|
-
"hasDynamicHelp": false,
|
|
189
|
-
"multiple": false,
|
|
190
|
-
"type": "option"
|
|
191
150
|
}
|
|
192
151
|
},
|
|
193
152
|
"hasDynamicHelp": false,
|
|
194
153
|
"hiddenAliases": [],
|
|
195
|
-
"id": "
|
|
154
|
+
"id": "platform:get",
|
|
196
155
|
"pluginAlias": "@xano/cli",
|
|
197
156
|
"pluginName": "@xano/cli",
|
|
198
157
|
"pluginType": "core",
|
|
@@ -202,25 +161,18 @@
|
|
|
202
161
|
"relativePath": [
|
|
203
162
|
"dist",
|
|
204
163
|
"commands",
|
|
205
|
-
"
|
|
206
|
-
"
|
|
164
|
+
"platform",
|
|
165
|
+
"get",
|
|
207
166
|
"index.js"
|
|
208
167
|
]
|
|
209
168
|
},
|
|
210
|
-
"
|
|
169
|
+
"platform:list": {
|
|
211
170
|
"aliases": [],
|
|
212
|
-
"args": {
|
|
213
|
-
|
|
214
|
-
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
215
|
-
"name": "branch_label",
|
|
216
|
-
"required": true
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
171
|
+
"args": {},
|
|
172
|
+
"description": "List all platforms",
|
|
220
173
|
"examples": [
|
|
221
|
-
"$ xano
|
|
222
|
-
"$ xano
|
|
223
|
-
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
174
|
+
"$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
|
|
175
|
+
"$ xano platform list --output json"
|
|
224
176
|
],
|
|
225
177
|
"flags": {
|
|
226
178
|
"profile": {
|
|
@@ -242,14 +194,6 @@
|
|
|
242
194
|
"allowNo": false,
|
|
243
195
|
"type": "boolean"
|
|
244
196
|
},
|
|
245
|
-
"force": {
|
|
246
|
-
"char": "f",
|
|
247
|
-
"description": "Skip confirmation prompt",
|
|
248
|
-
"name": "force",
|
|
249
|
-
"required": false,
|
|
250
|
-
"allowNo": false,
|
|
251
|
-
"type": "boolean"
|
|
252
|
-
},
|
|
253
197
|
"output": {
|
|
254
198
|
"char": "o",
|
|
255
199
|
"description": "Output format",
|
|
@@ -263,20 +207,11 @@
|
|
|
263
207
|
"json"
|
|
264
208
|
],
|
|
265
209
|
"type": "option"
|
|
266
|
-
},
|
|
267
|
-
"workspace": {
|
|
268
|
-
"char": "w",
|
|
269
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
270
|
-
"name": "workspace",
|
|
271
|
-
"required": false,
|
|
272
|
-
"hasDynamicHelp": false,
|
|
273
|
-
"multiple": false,
|
|
274
|
-
"type": "option"
|
|
275
210
|
}
|
|
276
211
|
},
|
|
277
212
|
"hasDynamicHelp": false,
|
|
278
213
|
"hiddenAliases": [],
|
|
279
|
-
"id": "
|
|
214
|
+
"id": "platform:list",
|
|
280
215
|
"pluginAlias": "@xano/cli",
|
|
281
216
|
"pluginName": "@xano/cli",
|
|
282
217
|
"pluginType": "core",
|
|
@@ -286,25 +221,28 @@
|
|
|
286
221
|
"relativePath": [
|
|
287
222
|
"dist",
|
|
288
223
|
"commands",
|
|
289
|
-
"
|
|
290
|
-
"
|
|
224
|
+
"platform",
|
|
225
|
+
"list",
|
|
291
226
|
"index.js"
|
|
292
227
|
]
|
|
293
228
|
},
|
|
294
|
-
"
|
|
229
|
+
"function:get": {
|
|
295
230
|
"aliases": [],
|
|
296
231
|
"args": {
|
|
297
|
-
"
|
|
298
|
-
"description": "
|
|
299
|
-
"name": "
|
|
300
|
-
"required":
|
|
232
|
+
"function_id": {
|
|
233
|
+
"description": "Function ID",
|
|
234
|
+
"name": "function_id",
|
|
235
|
+
"required": false
|
|
301
236
|
}
|
|
302
237
|
},
|
|
303
|
-
"description": "
|
|
238
|
+
"description": "Get a specific function from a workspace",
|
|
304
239
|
"examples": [
|
|
305
|
-
"$ xano
|
|
306
|
-
"$ xano
|
|
307
|
-
"$ xano
|
|
240
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
241
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
242
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
243
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
244
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
245
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
308
246
|
],
|
|
309
247
|
"flags": {
|
|
310
248
|
"profile": {
|
|
@@ -326,32 +264,19 @@
|
|
|
326
264
|
"allowNo": false,
|
|
327
265
|
"type": "boolean"
|
|
328
266
|
},
|
|
329
|
-
"
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"name": "color",
|
|
333
|
-
"required": false,
|
|
334
|
-
"hasDynamicHelp": false,
|
|
335
|
-
"multiple": false,
|
|
336
|
-
"type": "option"
|
|
337
|
-
},
|
|
338
|
-
"description": {
|
|
339
|
-
"char": "d",
|
|
340
|
-
"description": "New description for the branch",
|
|
341
|
-
"name": "description",
|
|
267
|
+
"include_draft": {
|
|
268
|
+
"description": "Include draft version",
|
|
269
|
+
"name": "include_draft",
|
|
342
270
|
"required": false,
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"type": "option"
|
|
271
|
+
"allowNo": false,
|
|
272
|
+
"type": "boolean"
|
|
346
273
|
},
|
|
347
|
-
"
|
|
348
|
-
"
|
|
349
|
-
"
|
|
350
|
-
"name": "label",
|
|
274
|
+
"include_xanoscript": {
|
|
275
|
+
"description": "Include XanoScript in response",
|
|
276
|
+
"name": "include_xanoscript",
|
|
351
277
|
"required": false,
|
|
352
|
-
"
|
|
353
|
-
"
|
|
354
|
-
"type": "option"
|
|
278
|
+
"allowNo": false,
|
|
279
|
+
"type": "boolean"
|
|
355
280
|
},
|
|
356
281
|
"output": {
|
|
357
282
|
"char": "o",
|
|
@@ -363,13 +288,14 @@
|
|
|
363
288
|
"multiple": false,
|
|
364
289
|
"options": [
|
|
365
290
|
"summary",
|
|
366
|
-
"json"
|
|
291
|
+
"json",
|
|
292
|
+
"xs"
|
|
367
293
|
],
|
|
368
294
|
"type": "option"
|
|
369
295
|
},
|
|
370
296
|
"workspace": {
|
|
371
297
|
"char": "w",
|
|
372
|
-
"description": "Workspace ID (
|
|
298
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
373
299
|
"name": "workspace",
|
|
374
300
|
"required": false,
|
|
375
301
|
"hasDynamicHelp": false,
|
|
@@ -379,7 +305,7 @@
|
|
|
379
305
|
},
|
|
380
306
|
"hasDynamicHelp": false,
|
|
381
307
|
"hiddenAliases": [],
|
|
382
|
-
"id": "
|
|
308
|
+
"id": "function:get",
|
|
383
309
|
"pluginAlias": "@xano/cli",
|
|
384
310
|
"pluginName": "@xano/cli",
|
|
385
311
|
"pluginType": "core",
|
|
@@ -389,25 +315,21 @@
|
|
|
389
315
|
"relativePath": [
|
|
390
316
|
"dist",
|
|
391
317
|
"commands",
|
|
392
|
-
"
|
|
393
|
-
"
|
|
318
|
+
"function",
|
|
319
|
+
"get",
|
|
394
320
|
"index.js"
|
|
395
321
|
]
|
|
396
322
|
},
|
|
397
|
-
"
|
|
323
|
+
"function:create": {
|
|
398
324
|
"aliases": [],
|
|
399
|
-
"args": {
|
|
400
|
-
|
|
401
|
-
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
402
|
-
"name": "branch_label",
|
|
403
|
-
"required": true
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
"description": "Set a branch as the live (active) branch for API requests",
|
|
325
|
+
"args": {},
|
|
326
|
+
"description": "Create a new function in a workspace",
|
|
407
327
|
"examples": [
|
|
408
|
-
"$ xano
|
|
409
|
-
"$ xano
|
|
410
|
-
"$ xano
|
|
328
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
329
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
330
|
+
"$ xano function:create -w 40 -f function.xs --edit\n# Opens function.xs in $EDITOR, then creates function with edited content\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
331
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
332
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
411
333
|
],
|
|
412
334
|
"flags": {
|
|
413
335
|
"profile": {
|
|
@@ -429,14 +351,29 @@
|
|
|
429
351
|
"allowNo": false,
|
|
430
352
|
"type": "boolean"
|
|
431
353
|
},
|
|
432
|
-
"
|
|
433
|
-
"char": "
|
|
434
|
-
"
|
|
435
|
-
|
|
354
|
+
"edit": {
|
|
355
|
+
"char": "e",
|
|
356
|
+
"dependsOn": [
|
|
357
|
+
"file"
|
|
358
|
+
],
|
|
359
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
360
|
+
"name": "edit",
|
|
436
361
|
"required": false,
|
|
437
362
|
"allowNo": false,
|
|
438
363
|
"type": "boolean"
|
|
439
364
|
},
|
|
365
|
+
"file": {
|
|
366
|
+
"char": "f",
|
|
367
|
+
"description": "Path to file containing XanoScript code",
|
|
368
|
+
"exclusive": [
|
|
369
|
+
"stdin"
|
|
370
|
+
],
|
|
371
|
+
"name": "file",
|
|
372
|
+
"required": false,
|
|
373
|
+
"hasDynamicHelp": false,
|
|
374
|
+
"multiple": false,
|
|
375
|
+
"type": "option"
|
|
376
|
+
},
|
|
440
377
|
"output": {
|
|
441
378
|
"char": "o",
|
|
442
379
|
"description": "Output format",
|
|
@@ -451,9 +388,20 @@
|
|
|
451
388
|
],
|
|
452
389
|
"type": "option"
|
|
453
390
|
},
|
|
391
|
+
"stdin": {
|
|
392
|
+
"char": "s",
|
|
393
|
+
"description": "Read XanoScript code from stdin",
|
|
394
|
+
"exclusive": [
|
|
395
|
+
"file"
|
|
396
|
+
],
|
|
397
|
+
"name": "stdin",
|
|
398
|
+
"required": false,
|
|
399
|
+
"allowNo": false,
|
|
400
|
+
"type": "boolean"
|
|
401
|
+
},
|
|
454
402
|
"workspace": {
|
|
455
403
|
"char": "w",
|
|
456
|
-
"description": "Workspace ID (
|
|
404
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
457
405
|
"name": "workspace",
|
|
458
406
|
"required": false,
|
|
459
407
|
"hasDynamicHelp": false,
|
|
@@ -463,7 +411,7 @@
|
|
|
463
411
|
},
|
|
464
412
|
"hasDynamicHelp": false,
|
|
465
413
|
"hiddenAliases": [],
|
|
466
|
-
"id": "
|
|
414
|
+
"id": "function:create",
|
|
467
415
|
"pluginAlias": "@xano/cli",
|
|
468
416
|
"pluginName": "@xano/cli",
|
|
469
417
|
"pluginType": "core",
|
|
@@ -473,25 +421,30 @@
|
|
|
473
421
|
"relativePath": [
|
|
474
422
|
"dist",
|
|
475
423
|
"commands",
|
|
476
|
-
"
|
|
477
|
-
"
|
|
424
|
+
"function",
|
|
425
|
+
"create",
|
|
478
426
|
"index.js"
|
|
479
427
|
]
|
|
480
428
|
},
|
|
481
|
-
"
|
|
429
|
+
"function:edit": {
|
|
482
430
|
"aliases": [],
|
|
483
431
|
"args": {
|
|
484
|
-
"
|
|
485
|
-
"description": "
|
|
486
|
-
"name": "
|
|
432
|
+
"function_id": {
|
|
433
|
+
"description": "Function ID to edit",
|
|
434
|
+
"name": "function_id",
|
|
487
435
|
"required": false
|
|
488
436
|
}
|
|
489
437
|
},
|
|
490
|
-
"description": "
|
|
438
|
+
"description": "Edit a function in a workspace",
|
|
491
439
|
"examples": [
|
|
492
|
-
"$ xano
|
|
493
|
-
"$ xano
|
|
494
|
-
"$ xano
|
|
440
|
+
"$ xano function:edit 163\n# Fetches the function code and opens it in $EDITOR for editing\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
441
|
+
"$ xano function:edit\n# Prompts for function, fetches the code and opens it in $EDITOR for editing\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
442
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
443
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
444
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
445
|
+
"$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
446
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
447
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
495
448
|
],
|
|
496
449
|
"flags": {
|
|
497
450
|
"profile": {
|
|
@@ -513,6 +466,26 @@
|
|
|
513
466
|
"allowNo": false,
|
|
514
467
|
"type": "boolean"
|
|
515
468
|
},
|
|
469
|
+
"edit": {
|
|
470
|
+
"char": "e",
|
|
471
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
472
|
+
"name": "edit",
|
|
473
|
+
"required": false,
|
|
474
|
+
"allowNo": false,
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
477
|
+
"file": {
|
|
478
|
+
"char": "f",
|
|
479
|
+
"description": "Path to file containing XanoScript code",
|
|
480
|
+
"exclusive": [
|
|
481
|
+
"stdin"
|
|
482
|
+
],
|
|
483
|
+
"name": "file",
|
|
484
|
+
"required": false,
|
|
485
|
+
"hasDynamicHelp": false,
|
|
486
|
+
"multiple": false,
|
|
487
|
+
"type": "option"
|
|
488
|
+
},
|
|
516
489
|
"output": {
|
|
517
490
|
"char": "o",
|
|
518
491
|
"description": "Output format",
|
|
@@ -526,11 +499,38 @@
|
|
|
526
499
|
"json"
|
|
527
500
|
],
|
|
528
501
|
"type": "option"
|
|
502
|
+
},
|
|
503
|
+
"publish": {
|
|
504
|
+
"description": "Publish the function after editing",
|
|
505
|
+
"name": "publish",
|
|
506
|
+
"required": false,
|
|
507
|
+
"allowNo": false,
|
|
508
|
+
"type": "boolean"
|
|
509
|
+
},
|
|
510
|
+
"stdin": {
|
|
511
|
+
"char": "s",
|
|
512
|
+
"description": "Read XanoScript code from stdin",
|
|
513
|
+
"exclusive": [
|
|
514
|
+
"file"
|
|
515
|
+
],
|
|
516
|
+
"name": "stdin",
|
|
517
|
+
"required": false,
|
|
518
|
+
"allowNo": false,
|
|
519
|
+
"type": "boolean"
|
|
520
|
+
},
|
|
521
|
+
"workspace": {
|
|
522
|
+
"char": "w",
|
|
523
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
524
|
+
"name": "workspace",
|
|
525
|
+
"required": false,
|
|
526
|
+
"hasDynamicHelp": false,
|
|
527
|
+
"multiple": false,
|
|
528
|
+
"type": "option"
|
|
529
529
|
}
|
|
530
530
|
},
|
|
531
531
|
"hasDynamicHelp": false,
|
|
532
532
|
"hiddenAliases": [],
|
|
533
|
-
"id": "
|
|
533
|
+
"id": "function:edit",
|
|
534
534
|
"pluginAlias": "@xano/cli",
|
|
535
535
|
"pluginName": "@xano/cli",
|
|
536
536
|
"pluginType": "core",
|
|
@@ -540,21 +540,19 @@
|
|
|
540
540
|
"relativePath": [
|
|
541
541
|
"dist",
|
|
542
542
|
"commands",
|
|
543
|
-
"
|
|
544
|
-
"
|
|
543
|
+
"function",
|
|
544
|
+
"edit",
|
|
545
545
|
"index.js"
|
|
546
546
|
]
|
|
547
547
|
},
|
|
548
|
-
"
|
|
548
|
+
"branch:create": {
|
|
549
549
|
"aliases": [],
|
|
550
550
|
"args": {},
|
|
551
|
-
"description": "Create a new
|
|
551
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
552
552
|
"examples": [
|
|
553
|
-
"$ xano
|
|
554
|
-
"$ xano
|
|
555
|
-
"$ xano
|
|
556
|
-
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
557
|
-
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
553
|
+
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
554
|
+
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
555
|
+
"$ 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"
|
|
558
556
|
],
|
|
559
557
|
"flags": {
|
|
560
558
|
"profile": {
|
|
@@ -576,29 +574,33 @@
|
|
|
576
574
|
"allowNo": false,
|
|
577
575
|
"type": "boolean"
|
|
578
576
|
},
|
|
579
|
-
"
|
|
580
|
-
"char": "
|
|
581
|
-
"
|
|
582
|
-
|
|
583
|
-
],
|
|
584
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
585
|
-
"name": "edit",
|
|
577
|
+
"color": {
|
|
578
|
+
"char": "c",
|
|
579
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
580
|
+
"name": "color",
|
|
586
581
|
"required": false,
|
|
587
|
-
"
|
|
588
|
-
"
|
|
582
|
+
"hasDynamicHelp": false,
|
|
583
|
+
"multiple": false,
|
|
584
|
+
"type": "option"
|
|
589
585
|
},
|
|
590
|
-
"
|
|
591
|
-
"char": "
|
|
592
|
-
"description": "
|
|
593
|
-
"
|
|
594
|
-
"stdin"
|
|
595
|
-
],
|
|
596
|
-
"name": "file",
|
|
586
|
+
"description": {
|
|
587
|
+
"char": "d",
|
|
588
|
+
"description": "Description for the new branch",
|
|
589
|
+
"name": "description",
|
|
597
590
|
"required": false,
|
|
598
591
|
"hasDynamicHelp": false,
|
|
599
592
|
"multiple": false,
|
|
600
593
|
"type": "option"
|
|
601
594
|
},
|
|
595
|
+
"label": {
|
|
596
|
+
"char": "l",
|
|
597
|
+
"description": "Label for the new branch",
|
|
598
|
+
"name": "label",
|
|
599
|
+
"required": true,
|
|
600
|
+
"hasDynamicHelp": false,
|
|
601
|
+
"multiple": false,
|
|
602
|
+
"type": "option"
|
|
603
|
+
},
|
|
602
604
|
"output": {
|
|
603
605
|
"char": "o",
|
|
604
606
|
"description": "Output format",
|
|
@@ -613,20 +615,19 @@
|
|
|
613
615
|
],
|
|
614
616
|
"type": "option"
|
|
615
617
|
},
|
|
616
|
-
"
|
|
618
|
+
"source": {
|
|
617
619
|
"char": "s",
|
|
618
|
-
"description": "
|
|
619
|
-
"
|
|
620
|
-
"file"
|
|
621
|
-
],
|
|
622
|
-
"name": "stdin",
|
|
620
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
621
|
+
"name": "source",
|
|
623
622
|
"required": false,
|
|
624
|
-
"
|
|
625
|
-
"
|
|
623
|
+
"default": "v1",
|
|
624
|
+
"hasDynamicHelp": false,
|
|
625
|
+
"multiple": false,
|
|
626
|
+
"type": "option"
|
|
626
627
|
},
|
|
627
628
|
"workspace": {
|
|
628
629
|
"char": "w",
|
|
629
|
-
"description": "Workspace ID (
|
|
630
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
630
631
|
"name": "workspace",
|
|
631
632
|
"required": false,
|
|
632
633
|
"hasDynamicHelp": false,
|
|
@@ -636,7 +637,7 @@
|
|
|
636
637
|
},
|
|
637
638
|
"hasDynamicHelp": false,
|
|
638
639
|
"hiddenAliases": [],
|
|
639
|
-
"id": "
|
|
640
|
+
"id": "branch:create",
|
|
640
641
|
"pluginAlias": "@xano/cli",
|
|
641
642
|
"pluginName": "@xano/cli",
|
|
642
643
|
"pluginType": "core",
|
|
@@ -646,30 +647,25 @@
|
|
|
646
647
|
"relativePath": [
|
|
647
648
|
"dist",
|
|
648
649
|
"commands",
|
|
649
|
-
"
|
|
650
|
+
"branch",
|
|
650
651
|
"create",
|
|
651
652
|
"index.js"
|
|
652
653
|
]
|
|
653
654
|
},
|
|
654
|
-
"
|
|
655
|
+
"branch:delete": {
|
|
655
656
|
"aliases": [],
|
|
656
657
|
"args": {
|
|
657
|
-
"
|
|
658
|
-
"description": "
|
|
659
|
-
"name": "
|
|
660
|
-
"required":
|
|
658
|
+
"branch_label": {
|
|
659
|
+
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
660
|
+
"name": "branch_label",
|
|
661
|
+
"required": true
|
|
661
662
|
}
|
|
662
663
|
},
|
|
663
|
-
"description": "
|
|
664
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
664
665
|
"examples": [
|
|
665
|
-
"$ xano
|
|
666
|
-
"$ xano
|
|
667
|
-
"$ xano
|
|
668
|
-
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
669
|
-
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
670
|
-
"$ xano function:edit 163 -f function.xs --edit\n# Opens function.xs in $EDITOR, then updates function with edited content\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
671
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
672
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
666
|
+
"$ xano branch delete feature-old\nAre you sure you want to delete branch 'feature-old'? This action cannot be undone. (y/N) y\nDeleted branch: feature-old\n",
|
|
667
|
+
"$ xano branch delete dev --force\nDeleted branch: dev\n",
|
|
668
|
+
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
673
669
|
],
|
|
674
670
|
"flags": {
|
|
675
671
|
"profile": {
|
|
@@ -691,26 +687,14 @@
|
|
|
691
687
|
"allowNo": false,
|
|
692
688
|
"type": "boolean"
|
|
693
689
|
},
|
|
694
|
-
"
|
|
695
|
-
"char": "
|
|
696
|
-
"description": "
|
|
697
|
-
"name": "
|
|
690
|
+
"force": {
|
|
691
|
+
"char": "f",
|
|
692
|
+
"description": "Skip confirmation prompt",
|
|
693
|
+
"name": "force",
|
|
698
694
|
"required": false,
|
|
699
695
|
"allowNo": false,
|
|
700
696
|
"type": "boolean"
|
|
701
697
|
},
|
|
702
|
-
"file": {
|
|
703
|
-
"char": "f",
|
|
704
|
-
"description": "Path to file containing XanoScript code",
|
|
705
|
-
"exclusive": [
|
|
706
|
-
"stdin"
|
|
707
|
-
],
|
|
708
|
-
"name": "file",
|
|
709
|
-
"required": false,
|
|
710
|
-
"hasDynamicHelp": false,
|
|
711
|
-
"multiple": false,
|
|
712
|
-
"type": "option"
|
|
713
|
-
},
|
|
714
698
|
"output": {
|
|
715
699
|
"char": "o",
|
|
716
700
|
"description": "Output format",
|
|
@@ -725,27 +709,9 @@
|
|
|
725
709
|
],
|
|
726
710
|
"type": "option"
|
|
727
711
|
},
|
|
728
|
-
"publish": {
|
|
729
|
-
"description": "Publish the function after editing",
|
|
730
|
-
"name": "publish",
|
|
731
|
-
"required": false,
|
|
732
|
-
"allowNo": false,
|
|
733
|
-
"type": "boolean"
|
|
734
|
-
},
|
|
735
|
-
"stdin": {
|
|
736
|
-
"char": "s",
|
|
737
|
-
"description": "Read XanoScript code from stdin",
|
|
738
|
-
"exclusive": [
|
|
739
|
-
"file"
|
|
740
|
-
],
|
|
741
|
-
"name": "stdin",
|
|
742
|
-
"required": false,
|
|
743
|
-
"allowNo": false,
|
|
744
|
-
"type": "boolean"
|
|
745
|
-
},
|
|
746
712
|
"workspace": {
|
|
747
713
|
"char": "w",
|
|
748
|
-
"description": "Workspace ID (
|
|
714
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
749
715
|
"name": "workspace",
|
|
750
716
|
"required": false,
|
|
751
717
|
"hasDynamicHelp": false,
|
|
@@ -755,7 +721,7 @@
|
|
|
755
721
|
},
|
|
756
722
|
"hasDynamicHelp": false,
|
|
757
723
|
"hiddenAliases": [],
|
|
758
|
-
"id": "
|
|
724
|
+
"id": "branch:delete",
|
|
759
725
|
"pluginAlias": "@xano/cli",
|
|
760
726
|
"pluginName": "@xano/cli",
|
|
761
727
|
"pluginType": "core",
|
|
@@ -765,28 +731,25 @@
|
|
|
765
731
|
"relativePath": [
|
|
766
732
|
"dist",
|
|
767
733
|
"commands",
|
|
768
|
-
"
|
|
769
|
-
"
|
|
734
|
+
"branch",
|
|
735
|
+
"delete",
|
|
770
736
|
"index.js"
|
|
771
737
|
]
|
|
772
738
|
},
|
|
773
|
-
"
|
|
739
|
+
"branch:edit": {
|
|
774
740
|
"aliases": [],
|
|
775
741
|
"args": {
|
|
776
|
-
"
|
|
777
|
-
"description": "
|
|
778
|
-
"name": "
|
|
779
|
-
"required":
|
|
742
|
+
"branch_label": {
|
|
743
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
744
|
+
"name": "branch_label",
|
|
745
|
+
"required": true
|
|
780
746
|
}
|
|
781
747
|
},
|
|
782
|
-
"description": "
|
|
783
|
-
"examples": [
|
|
784
|
-
"$ xano
|
|
785
|
-
"$ xano
|
|
786
|
-
"$ xano
|
|
787
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
788
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
789
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
748
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
749
|
+
"examples": [
|
|
750
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
751
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
752
|
+
"$ 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"
|
|
790
753
|
],
|
|
791
754
|
"flags": {
|
|
792
755
|
"profile": {
|
|
@@ -808,19 +771,32 @@
|
|
|
808
771
|
"allowNo": false,
|
|
809
772
|
"type": "boolean"
|
|
810
773
|
},
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
774
|
+
"color": {
|
|
775
|
+
"char": "c",
|
|
776
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
777
|
+
"name": "color",
|
|
814
778
|
"required": false,
|
|
815
|
-
"
|
|
816
|
-
"
|
|
779
|
+
"hasDynamicHelp": false,
|
|
780
|
+
"multiple": false,
|
|
781
|
+
"type": "option"
|
|
817
782
|
},
|
|
818
|
-
"
|
|
819
|
-
"
|
|
820
|
-
"
|
|
783
|
+
"description": {
|
|
784
|
+
"char": "d",
|
|
785
|
+
"description": "New description for the branch",
|
|
786
|
+
"name": "description",
|
|
821
787
|
"required": false,
|
|
822
|
-
"
|
|
823
|
-
"
|
|
788
|
+
"hasDynamicHelp": false,
|
|
789
|
+
"multiple": false,
|
|
790
|
+
"type": "option"
|
|
791
|
+
},
|
|
792
|
+
"label": {
|
|
793
|
+
"char": "l",
|
|
794
|
+
"description": "New label for the branch",
|
|
795
|
+
"name": "label",
|
|
796
|
+
"required": false,
|
|
797
|
+
"hasDynamicHelp": false,
|
|
798
|
+
"multiple": false,
|
|
799
|
+
"type": "option"
|
|
824
800
|
},
|
|
825
801
|
"output": {
|
|
826
802
|
"char": "o",
|
|
@@ -832,14 +808,13 @@
|
|
|
832
808
|
"multiple": false,
|
|
833
809
|
"options": [
|
|
834
810
|
"summary",
|
|
835
|
-
"json"
|
|
836
|
-
"xs"
|
|
811
|
+
"json"
|
|
837
812
|
],
|
|
838
813
|
"type": "option"
|
|
839
814
|
},
|
|
840
815
|
"workspace": {
|
|
841
816
|
"char": "w",
|
|
842
|
-
"description": "Workspace ID (
|
|
817
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
843
818
|
"name": "workspace",
|
|
844
819
|
"required": false,
|
|
845
820
|
"hasDynamicHelp": false,
|
|
@@ -849,7 +824,7 @@
|
|
|
849
824
|
},
|
|
850
825
|
"hasDynamicHelp": false,
|
|
851
826
|
"hiddenAliases": [],
|
|
852
|
-
"id": "
|
|
827
|
+
"id": "branch:edit",
|
|
853
828
|
"pluginAlias": "@xano/cli",
|
|
854
829
|
"pluginName": "@xano/cli",
|
|
855
830
|
"pluginType": "core",
|
|
@@ -859,8 +834,8 @@
|
|
|
859
834
|
"relativePath": [
|
|
860
835
|
"dist",
|
|
861
836
|
"commands",
|
|
862
|
-
"
|
|
863
|
-
"
|
|
837
|
+
"branch",
|
|
838
|
+
"edit",
|
|
864
839
|
"index.js"
|
|
865
840
|
]
|
|
866
841
|
},
|
|
@@ -989,19 +964,20 @@
|
|
|
989
964
|
"index.js"
|
|
990
965
|
]
|
|
991
966
|
},
|
|
992
|
-
"
|
|
967
|
+
"branch:set_live": {
|
|
993
968
|
"aliases": [],
|
|
994
969
|
"args": {
|
|
995
|
-
"
|
|
996
|
-
"description": "
|
|
997
|
-
"name": "
|
|
970
|
+
"branch_label": {
|
|
971
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
972
|
+
"name": "branch_label",
|
|
998
973
|
"required": true
|
|
999
974
|
}
|
|
1000
975
|
},
|
|
1001
|
-
"description": "
|
|
976
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
1002
977
|
"examples": [
|
|
1003
|
-
"$ xano
|
|
1004
|
-
"$ xano
|
|
978
|
+
"$ xano branch set-live staging\nAre you sure you want to set 'staging' as the live branch? (y/N) y\nBranch 'staging' is now live\n",
|
|
979
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
980
|
+
"$ xano branch set-live production -f -o json\n{\n \"created_at\": \"2024-02-10T09:15:00Z\",\n \"label\": \"production\",\n \"backup\": false,\n \"live\": true\n}\n"
|
|
1005
981
|
],
|
|
1006
982
|
"flags": {
|
|
1007
983
|
"profile": {
|
|
@@ -1023,6 +999,14 @@
|
|
|
1023
999
|
"allowNo": false,
|
|
1024
1000
|
"type": "boolean"
|
|
1025
1001
|
},
|
|
1002
|
+
"force": {
|
|
1003
|
+
"char": "f",
|
|
1004
|
+
"description": "Skip confirmation prompt",
|
|
1005
|
+
"name": "force",
|
|
1006
|
+
"required": false,
|
|
1007
|
+
"allowNo": false,
|
|
1008
|
+
"type": "boolean"
|
|
1009
|
+
},
|
|
1026
1010
|
"output": {
|
|
1027
1011
|
"char": "o",
|
|
1028
1012
|
"description": "Output format",
|
|
@@ -1036,71 +1020,20 @@
|
|
|
1036
1020
|
"json"
|
|
1037
1021
|
],
|
|
1038
1022
|
"type": "option"
|
|
1039
|
-
}
|
|
1040
|
-
},
|
|
1041
|
-
"hasDynamicHelp": false,
|
|
1042
|
-
"hiddenAliases": [],
|
|
1043
|
-
"id": "platform:get",
|
|
1044
|
-
"pluginAlias": "@xano/cli",
|
|
1045
|
-
"pluginName": "@xano/cli",
|
|
1046
|
-
"pluginType": "core",
|
|
1047
|
-
"strict": true,
|
|
1048
|
-
"enableJsonFlag": false,
|
|
1049
|
-
"isESM": true,
|
|
1050
|
-
"relativePath": [
|
|
1051
|
-
"dist",
|
|
1052
|
-
"commands",
|
|
1053
|
-
"platform",
|
|
1054
|
-
"get",
|
|
1055
|
-
"index.js"
|
|
1056
|
-
]
|
|
1057
|
-
},
|
|
1058
|
-
"platform:list": {
|
|
1059
|
-
"aliases": [],
|
|
1060
|
-
"args": {},
|
|
1061
|
-
"description": "List all platforms",
|
|
1062
|
-
"examples": [
|
|
1063
|
-
"$ xano platform list\nPlatforms:\n ID: 23629 | Helm: 0.1.356 | Created: 2025-11-28\n",
|
|
1064
|
-
"$ xano platform list --output json"
|
|
1065
|
-
],
|
|
1066
|
-
"flags": {
|
|
1067
|
-
"profile": {
|
|
1068
|
-
"char": "p",
|
|
1069
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
1070
|
-
"env": "XANO_PROFILE",
|
|
1071
|
-
"name": "profile",
|
|
1072
|
-
"required": false,
|
|
1073
|
-
"hasDynamicHelp": false,
|
|
1074
|
-
"multiple": false,
|
|
1075
|
-
"type": "option"
|
|
1076
|
-
},
|
|
1077
|
-
"verbose": {
|
|
1078
|
-
"char": "v",
|
|
1079
|
-
"description": "Show detailed request/response information",
|
|
1080
|
-
"env": "XANO_VERBOSE",
|
|
1081
|
-
"name": "verbose",
|
|
1082
|
-
"required": false,
|
|
1083
|
-
"allowNo": false,
|
|
1084
|
-
"type": "boolean"
|
|
1085
1023
|
},
|
|
1086
|
-
"
|
|
1087
|
-
"char": "
|
|
1088
|
-
"description": "
|
|
1089
|
-
"name": "
|
|
1024
|
+
"workspace": {
|
|
1025
|
+
"char": "w",
|
|
1026
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1027
|
+
"name": "workspace",
|
|
1090
1028
|
"required": false,
|
|
1091
|
-
"default": "summary",
|
|
1092
1029
|
"hasDynamicHelp": false,
|
|
1093
1030
|
"multiple": false,
|
|
1094
|
-
"options": [
|
|
1095
|
-
"summary",
|
|
1096
|
-
"json"
|
|
1097
|
-
],
|
|
1098
1031
|
"type": "option"
|
|
1099
1032
|
}
|
|
1100
1033
|
},
|
|
1101
1034
|
"hasDynamicHelp": false,
|
|
1102
1035
|
"hiddenAliases": [],
|
|
1103
|
-
"id": "
|
|
1036
|
+
"id": "branch:set_live",
|
|
1104
1037
|
"pluginAlias": "@xano/cli",
|
|
1105
1038
|
"pluginName": "@xano/cli",
|
|
1106
1039
|
"pluginType": "core",
|
|
@@ -1110,8 +1043,8 @@
|
|
|
1110
1043
|
"relativePath": [
|
|
1111
1044
|
"dist",
|
|
1112
1045
|
"commands",
|
|
1113
|
-
"
|
|
1114
|
-
"
|
|
1046
|
+
"branch",
|
|
1047
|
+
"set_live",
|
|
1115
1048
|
"index.js"
|
|
1116
1049
|
]
|
|
1117
1050
|
},
|
|
@@ -1253,6 +1186,73 @@
|
|
|
1253
1186
|
"index.js"
|
|
1254
1187
|
]
|
|
1255
1188
|
},
|
|
1189
|
+
"branch:list": {
|
|
1190
|
+
"aliases": [],
|
|
1191
|
+
"args": {
|
|
1192
|
+
"workspace_id": {
|
|
1193
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1194
|
+
"name": "workspace_id",
|
|
1195
|
+
"required": false
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"description": "List all branches in a workspace",
|
|
1199
|
+
"examples": [
|
|
1200
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
1201
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
1202
|
+
"$ 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"
|
|
1203
|
+
],
|
|
1204
|
+
"flags": {
|
|
1205
|
+
"profile": {
|
|
1206
|
+
"char": "p",
|
|
1207
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
1208
|
+
"env": "XANO_PROFILE",
|
|
1209
|
+
"name": "profile",
|
|
1210
|
+
"required": false,
|
|
1211
|
+
"hasDynamicHelp": false,
|
|
1212
|
+
"multiple": false,
|
|
1213
|
+
"type": "option"
|
|
1214
|
+
},
|
|
1215
|
+
"verbose": {
|
|
1216
|
+
"char": "v",
|
|
1217
|
+
"description": "Show detailed request/response information",
|
|
1218
|
+
"env": "XANO_VERBOSE",
|
|
1219
|
+
"name": "verbose",
|
|
1220
|
+
"required": false,
|
|
1221
|
+
"allowNo": false,
|
|
1222
|
+
"type": "boolean"
|
|
1223
|
+
},
|
|
1224
|
+
"output": {
|
|
1225
|
+
"char": "o",
|
|
1226
|
+
"description": "Output format",
|
|
1227
|
+
"name": "output",
|
|
1228
|
+
"required": false,
|
|
1229
|
+
"default": "summary",
|
|
1230
|
+
"hasDynamicHelp": false,
|
|
1231
|
+
"multiple": false,
|
|
1232
|
+
"options": [
|
|
1233
|
+
"summary",
|
|
1234
|
+
"json"
|
|
1235
|
+
],
|
|
1236
|
+
"type": "option"
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"hasDynamicHelp": false,
|
|
1240
|
+
"hiddenAliases": [],
|
|
1241
|
+
"id": "branch:list",
|
|
1242
|
+
"pluginAlias": "@xano/cli",
|
|
1243
|
+
"pluginName": "@xano/cli",
|
|
1244
|
+
"pluginType": "core",
|
|
1245
|
+
"strict": true,
|
|
1246
|
+
"enableJsonFlag": false,
|
|
1247
|
+
"isESM": true,
|
|
1248
|
+
"relativePath": [
|
|
1249
|
+
"dist",
|
|
1250
|
+
"commands",
|
|
1251
|
+
"branch",
|
|
1252
|
+
"list",
|
|
1253
|
+
"index.js"
|
|
1254
|
+
]
|
|
1255
|
+
},
|
|
1256
1256
|
"profile:edit": {
|
|
1257
1257
|
"aliases": [],
|
|
1258
1258
|
"args": {
|
|
@@ -1408,28 +1408,68 @@
|
|
|
1408
1408
|
"index.js"
|
|
1409
1409
|
]
|
|
1410
1410
|
},
|
|
1411
|
-
"
|
|
1411
|
+
"branch:get": {
|
|
1412
1412
|
"aliases": [],
|
|
1413
|
-
"args": {
|
|
1414
|
-
|
|
1413
|
+
"args": {
|
|
1414
|
+
"branch_label": {
|
|
1415
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
1416
|
+
"name": "branch_label",
|
|
1417
|
+
"required": true
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"description": "Get details for a specific branch",
|
|
1415
1421
|
"examples": [
|
|
1416
|
-
"$ xano
|
|
1417
|
-
"$ xano
|
|
1418
|
-
"$ xano
|
|
1422
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
1423
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
1424
|
+
"$ 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"
|
|
1419
1425
|
],
|
|
1420
1426
|
"flags": {
|
|
1421
|
-
"
|
|
1422
|
-
"char": "
|
|
1423
|
-
"description": "
|
|
1424
|
-
"
|
|
1427
|
+
"profile": {
|
|
1428
|
+
"char": "p",
|
|
1429
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
1430
|
+
"env": "XANO_PROFILE",
|
|
1431
|
+
"name": "profile",
|
|
1432
|
+
"required": false,
|
|
1433
|
+
"hasDynamicHelp": false,
|
|
1434
|
+
"multiple": false,
|
|
1435
|
+
"type": "option"
|
|
1436
|
+
},
|
|
1437
|
+
"verbose": {
|
|
1438
|
+
"char": "v",
|
|
1439
|
+
"description": "Show detailed request/response information",
|
|
1440
|
+
"env": "XANO_VERBOSE",
|
|
1441
|
+
"name": "verbose",
|
|
1442
|
+
"required": false,
|
|
1443
|
+
"allowNo": false,
|
|
1444
|
+
"type": "boolean"
|
|
1445
|
+
},
|
|
1446
|
+
"output": {
|
|
1447
|
+
"char": "o",
|
|
1448
|
+
"description": "Output format",
|
|
1449
|
+
"name": "output",
|
|
1450
|
+
"required": false,
|
|
1451
|
+
"default": "summary",
|
|
1452
|
+
"hasDynamicHelp": false,
|
|
1453
|
+
"multiple": false,
|
|
1454
|
+
"options": [
|
|
1455
|
+
"summary",
|
|
1456
|
+
"json"
|
|
1457
|
+
],
|
|
1458
|
+
"type": "option"
|
|
1459
|
+
},
|
|
1460
|
+
"workspace": {
|
|
1461
|
+
"char": "w",
|
|
1462
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1463
|
+
"name": "workspace",
|
|
1425
1464
|
"required": false,
|
|
1426
|
-
"
|
|
1427
|
-
"
|
|
1465
|
+
"hasDynamicHelp": false,
|
|
1466
|
+
"multiple": false,
|
|
1467
|
+
"type": "option"
|
|
1428
1468
|
}
|
|
1429
1469
|
},
|
|
1430
1470
|
"hasDynamicHelp": false,
|
|
1431
1471
|
"hiddenAliases": [],
|
|
1432
|
-
"id": "
|
|
1472
|
+
"id": "branch:get",
|
|
1433
1473
|
"pluginAlias": "@xano/cli",
|
|
1434
1474
|
"pluginName": "@xano/cli",
|
|
1435
1475
|
"pluginType": "core",
|
|
@@ -1439,8 +1479,8 @@
|
|
|
1439
1479
|
"relativePath": [
|
|
1440
1480
|
"dist",
|
|
1441
1481
|
"commands",
|
|
1442
|
-
"
|
|
1443
|
-
"
|
|
1482
|
+
"branch",
|
|
1483
|
+
"get",
|
|
1444
1484
|
"index.js"
|
|
1445
1485
|
]
|
|
1446
1486
|
},
|
|
@@ -1536,94 +1576,28 @@
|
|
|
1536
1576
|
"index.js"
|
|
1537
1577
|
]
|
|
1538
1578
|
},
|
|
1539
|
-
"
|
|
1579
|
+
"profile:list": {
|
|
1540
1580
|
"aliases": [],
|
|
1541
|
-
"args": {
|
|
1542
|
-
|
|
1543
|
-
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
1544
|
-
"name": "branch_label",
|
|
1545
|
-
"required": true
|
|
1546
|
-
}
|
|
1547
|
-
},
|
|
1548
|
-
"description": "Get details for a specific branch",
|
|
1581
|
+
"args": {},
|
|
1582
|
+
"description": "List all available profile configurations",
|
|
1549
1583
|
"examples": [
|
|
1550
|
-
"$ xano
|
|
1551
|
-
"$ xano
|
|
1552
|
-
"$ xano
|
|
1584
|
+
"$ xano profile:list\nAvailable profiles:\n - default\n - production\n - staging\n - development\n",
|
|
1585
|
+
"$ xano profile:list --details\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n\nProfile: production\n Account Origin: https://account.xano.com\n Instance Origin: https://prod-instance.xano.com\n Access Token: ***...***\n",
|
|
1586
|
+
"$ xano profile:list -d\nAvailable profiles:\n\nProfile: default\n Account Origin: https://account.xano.com\n Instance Origin: https://instance.xano.com\n Access Token: ***...***\n Workspace: my-workspace\n Branch: main\n Project: my-project\n"
|
|
1553
1587
|
],
|
|
1554
1588
|
"flags": {
|
|
1555
|
-
"
|
|
1556
|
-
"char": "
|
|
1557
|
-
"description": "
|
|
1558
|
-
"
|
|
1559
|
-
"name": "profile",
|
|
1560
|
-
"required": false,
|
|
1561
|
-
"hasDynamicHelp": false,
|
|
1562
|
-
"multiple": false,
|
|
1563
|
-
"type": "option"
|
|
1564
|
-
},
|
|
1565
|
-
"verbose": {
|
|
1566
|
-
"char": "v",
|
|
1567
|
-
"description": "Show detailed request/response information",
|
|
1568
|
-
"env": "XANO_VERBOSE",
|
|
1569
|
-
"name": "verbose",
|
|
1589
|
+
"details": {
|
|
1590
|
+
"char": "d",
|
|
1591
|
+
"description": "Show detailed information for each profile",
|
|
1592
|
+
"name": "details",
|
|
1570
1593
|
"required": false,
|
|
1571
1594
|
"allowNo": false,
|
|
1572
1595
|
"type": "boolean"
|
|
1573
|
-
},
|
|
1574
|
-
"output": {
|
|
1575
|
-
"char": "o",
|
|
1576
|
-
"description": "Output format",
|
|
1577
|
-
"name": "output",
|
|
1578
|
-
"required": false,
|
|
1579
|
-
"default": "summary",
|
|
1580
|
-
"hasDynamicHelp": false,
|
|
1581
|
-
"multiple": false,
|
|
1582
|
-
"options": [
|
|
1583
|
-
"summary",
|
|
1584
|
-
"json"
|
|
1585
|
-
],
|
|
1586
|
-
"type": "option"
|
|
1587
|
-
},
|
|
1588
|
-
"workspace": {
|
|
1589
|
-
"char": "w",
|
|
1590
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
1591
|
-
"name": "workspace",
|
|
1592
|
-
"required": false,
|
|
1593
|
-
"hasDynamicHelp": false,
|
|
1594
|
-
"multiple": false,
|
|
1595
|
-
"type": "option"
|
|
1596
1596
|
}
|
|
1597
1597
|
},
|
|
1598
1598
|
"hasDynamicHelp": false,
|
|
1599
1599
|
"hiddenAliases": [],
|
|
1600
|
-
"id": "
|
|
1601
|
-
"pluginAlias": "@xano/cli",
|
|
1602
|
-
"pluginName": "@xano/cli",
|
|
1603
|
-
"pluginType": "core",
|
|
1604
|
-
"strict": true,
|
|
1605
|
-
"enableJsonFlag": false,
|
|
1606
|
-
"isESM": true,
|
|
1607
|
-
"relativePath": [
|
|
1608
|
-
"dist",
|
|
1609
|
-
"commands",
|
|
1610
|
-
"branch",
|
|
1611
|
-
"get",
|
|
1612
|
-
"index.js"
|
|
1613
|
-
]
|
|
1614
|
-
},
|
|
1615
|
-
"profile:token": {
|
|
1616
|
-
"aliases": [],
|
|
1617
|
-
"args": {},
|
|
1618
|
-
"description": "Print the access token for the default profile",
|
|
1619
|
-
"examples": [
|
|
1620
|
-
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
1621
|
-
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1622
|
-
],
|
|
1623
|
-
"flags": {},
|
|
1624
|
-
"hasDynamicHelp": false,
|
|
1625
|
-
"hiddenAliases": [],
|
|
1626
|
-
"id": "profile:token",
|
|
1600
|
+
"id": "profile:list",
|
|
1627
1601
|
"pluginAlias": "@xano/cli",
|
|
1628
1602
|
"pluginName": "@xano/cli",
|
|
1629
1603
|
"pluginType": "core",
|
|
@@ -1634,7 +1608,7 @@
|
|
|
1634
1608
|
"dist",
|
|
1635
1609
|
"commands",
|
|
1636
1610
|
"profile",
|
|
1637
|
-
"
|
|
1611
|
+
"list",
|
|
1638
1612
|
"index.js"
|
|
1639
1613
|
]
|
|
1640
1614
|
},
|
|
@@ -1717,20 +1691,102 @@
|
|
|
1717
1691
|
"index.js"
|
|
1718
1692
|
]
|
|
1719
1693
|
},
|
|
1720
|
-
"
|
|
1694
|
+
"static_host:list": {
|
|
1721
1695
|
"aliases": [],
|
|
1722
|
-
"args": {
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1696
|
+
"args": {},
|
|
1697
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
1698
|
+
"examples": [
|
|
1699
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1700
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1701
|
+
"$ 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",
|
|
1702
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
1703
|
+
],
|
|
1704
|
+
"flags": {
|
|
1705
|
+
"profile": {
|
|
1706
|
+
"char": "p",
|
|
1707
|
+
"description": "Profile to use (uses default profile if not specified)",
|
|
1708
|
+
"env": "XANO_PROFILE",
|
|
1709
|
+
"name": "profile",
|
|
1710
|
+
"required": false,
|
|
1711
|
+
"hasDynamicHelp": false,
|
|
1712
|
+
"multiple": false,
|
|
1713
|
+
"type": "option"
|
|
1714
|
+
},
|
|
1715
|
+
"verbose": {
|
|
1716
|
+
"char": "v",
|
|
1717
|
+
"description": "Show detailed request/response information",
|
|
1718
|
+
"env": "XANO_VERBOSE",
|
|
1719
|
+
"name": "verbose",
|
|
1720
|
+
"required": false,
|
|
1721
|
+
"allowNo": false,
|
|
1722
|
+
"type": "boolean"
|
|
1723
|
+
},
|
|
1724
|
+
"output": {
|
|
1725
|
+
"char": "o",
|
|
1726
|
+
"description": "Output format",
|
|
1727
|
+
"name": "output",
|
|
1728
|
+
"required": false,
|
|
1729
|
+
"default": "summary",
|
|
1730
|
+
"hasDynamicHelp": false,
|
|
1731
|
+
"multiple": false,
|
|
1732
|
+
"options": [
|
|
1733
|
+
"summary",
|
|
1734
|
+
"json"
|
|
1735
|
+
],
|
|
1736
|
+
"type": "option"
|
|
1737
|
+
},
|
|
1738
|
+
"page": {
|
|
1739
|
+
"description": "Page number for pagination",
|
|
1740
|
+
"name": "page",
|
|
1741
|
+
"required": false,
|
|
1742
|
+
"default": 1,
|
|
1743
|
+
"hasDynamicHelp": false,
|
|
1744
|
+
"multiple": false,
|
|
1745
|
+
"type": "option"
|
|
1746
|
+
},
|
|
1747
|
+
"per_page": {
|
|
1748
|
+
"description": "Number of results per page",
|
|
1749
|
+
"name": "per_page",
|
|
1750
|
+
"required": false,
|
|
1751
|
+
"default": 50,
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"multiple": false,
|
|
1754
|
+
"type": "option"
|
|
1755
|
+
},
|
|
1756
|
+
"workspace": {
|
|
1757
|
+
"char": "w",
|
|
1758
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1759
|
+
"name": "workspace",
|
|
1760
|
+
"required": false,
|
|
1761
|
+
"hasDynamicHelp": false,
|
|
1762
|
+
"multiple": false,
|
|
1763
|
+
"type": "option"
|
|
1727
1764
|
}
|
|
1728
1765
|
},
|
|
1729
|
-
"
|
|
1766
|
+
"hasDynamicHelp": false,
|
|
1767
|
+
"hiddenAliases": [],
|
|
1768
|
+
"id": "static_host:list",
|
|
1769
|
+
"pluginAlias": "@xano/cli",
|
|
1770
|
+
"pluginName": "@xano/cli",
|
|
1771
|
+
"pluginType": "core",
|
|
1772
|
+
"strict": true,
|
|
1773
|
+
"enableJsonFlag": false,
|
|
1774
|
+
"isESM": true,
|
|
1775
|
+
"relativePath": [
|
|
1776
|
+
"dist",
|
|
1777
|
+
"commands",
|
|
1778
|
+
"static_host",
|
|
1779
|
+
"list",
|
|
1780
|
+
"index.js"
|
|
1781
|
+
]
|
|
1782
|
+
},
|
|
1783
|
+
"release:create": {
|
|
1784
|
+
"aliases": [],
|
|
1785
|
+
"args": {},
|
|
1786
|
+
"description": "Create a new release in a workspace",
|
|
1730
1787
|
"examples": [
|
|
1731
|
-
"$ xano release
|
|
1732
|
-
"$ xano release
|
|
1733
|
-
"$ xano release delete v1.0 -f -o json"
|
|
1788
|
+
"$ xano release create --name \"v1.0\" --branch main\nCreated release: v1.0 - ID: 10\n",
|
|
1789
|
+
"$ xano release create --name \"v1.1-hotfix\" --branch main --hotfix --description \"Critical fix\" -o json"
|
|
1734
1790
|
],
|
|
1735
1791
|
"flags": {
|
|
1736
1792
|
"profile": {
|
|
@@ -1752,26 +1808,60 @@
|
|
|
1752
1808
|
"allowNo": false,
|
|
1753
1809
|
"type": "boolean"
|
|
1754
1810
|
},
|
|
1755
|
-
"
|
|
1756
|
-
"char": "
|
|
1757
|
-
"description": "
|
|
1758
|
-
"name": "
|
|
1811
|
+
"branch": {
|
|
1812
|
+
"char": "b",
|
|
1813
|
+
"description": "Branch to create the release from",
|
|
1814
|
+
"name": "branch",
|
|
1815
|
+
"required": true,
|
|
1816
|
+
"hasDynamicHelp": false,
|
|
1817
|
+
"multiple": false,
|
|
1818
|
+
"type": "option"
|
|
1819
|
+
},
|
|
1820
|
+
"description": {
|
|
1821
|
+
"char": "d",
|
|
1822
|
+
"description": "Release description",
|
|
1823
|
+
"name": "description",
|
|
1824
|
+
"required": false,
|
|
1825
|
+
"hasDynamicHelp": false,
|
|
1826
|
+
"multiple": false,
|
|
1827
|
+
"type": "option"
|
|
1828
|
+
},
|
|
1829
|
+
"hotfix": {
|
|
1830
|
+
"description": "Mark as a hotfix release",
|
|
1831
|
+
"name": "hotfix",
|
|
1759
1832
|
"required": false,
|
|
1760
1833
|
"allowNo": false,
|
|
1761
1834
|
"type": "boolean"
|
|
1762
1835
|
},
|
|
1836
|
+
"name": {
|
|
1837
|
+
"char": "n",
|
|
1838
|
+
"description": "Name for the release",
|
|
1839
|
+
"name": "name",
|
|
1840
|
+
"required": true,
|
|
1841
|
+
"hasDynamicHelp": false,
|
|
1842
|
+
"multiple": false,
|
|
1843
|
+
"type": "option"
|
|
1844
|
+
},
|
|
1763
1845
|
"output": {
|
|
1764
1846
|
"char": "o",
|
|
1765
1847
|
"description": "Output format",
|
|
1766
1848
|
"name": "output",
|
|
1767
1849
|
"required": false,
|
|
1768
|
-
"default": "summary",
|
|
1850
|
+
"default": "summary",
|
|
1851
|
+
"hasDynamicHelp": false,
|
|
1852
|
+
"multiple": false,
|
|
1853
|
+
"options": [
|
|
1854
|
+
"summary",
|
|
1855
|
+
"json"
|
|
1856
|
+
],
|
|
1857
|
+
"type": "option"
|
|
1858
|
+
},
|
|
1859
|
+
"table-ids": {
|
|
1860
|
+
"description": "Comma-separated table IDs to include",
|
|
1861
|
+
"name": "table-ids",
|
|
1862
|
+
"required": false,
|
|
1769
1863
|
"hasDynamicHelp": false,
|
|
1770
1864
|
"multiple": false,
|
|
1771
|
-
"options": [
|
|
1772
|
-
"summary",
|
|
1773
|
-
"json"
|
|
1774
|
-
],
|
|
1775
1865
|
"type": "option"
|
|
1776
1866
|
},
|
|
1777
1867
|
"workspace": {
|
|
@@ -1786,7 +1876,7 @@
|
|
|
1786
1876
|
},
|
|
1787
1877
|
"hasDynamicHelp": false,
|
|
1788
1878
|
"hiddenAliases": [],
|
|
1789
|
-
"id": "release:
|
|
1879
|
+
"id": "release:create",
|
|
1790
1880
|
"pluginAlias": "@xano/cli",
|
|
1791
1881
|
"pluginName": "@xano/cli",
|
|
1792
1882
|
"pluginType": "core",
|
|
@@ -1797,7 +1887,33 @@
|
|
|
1797
1887
|
"dist",
|
|
1798
1888
|
"commands",
|
|
1799
1889
|
"release",
|
|
1800
|
-
"
|
|
1890
|
+
"create",
|
|
1891
|
+
"index.js"
|
|
1892
|
+
]
|
|
1893
|
+
},
|
|
1894
|
+
"profile:token": {
|
|
1895
|
+
"aliases": [],
|
|
1896
|
+
"args": {},
|
|
1897
|
+
"description": "Print the access token for the default profile",
|
|
1898
|
+
"examples": [
|
|
1899
|
+
"$ xano profile:token\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\n",
|
|
1900
|
+
"$ xano profile:token | pbcopy\n# Copies the token to clipboard on macOS\n"
|
|
1901
|
+
],
|
|
1902
|
+
"flags": {},
|
|
1903
|
+
"hasDynamicHelp": false,
|
|
1904
|
+
"hiddenAliases": [],
|
|
1905
|
+
"id": "profile:token",
|
|
1906
|
+
"pluginAlias": "@xano/cli",
|
|
1907
|
+
"pluginName": "@xano/cli",
|
|
1908
|
+
"pluginType": "core",
|
|
1909
|
+
"strict": true,
|
|
1910
|
+
"enableJsonFlag": false,
|
|
1911
|
+
"isESM": true,
|
|
1912
|
+
"relativePath": [
|
|
1913
|
+
"dist",
|
|
1914
|
+
"commands",
|
|
1915
|
+
"profile",
|
|
1916
|
+
"token",
|
|
1801
1917
|
"index.js"
|
|
1802
1918
|
]
|
|
1803
1919
|
},
|
|
@@ -1978,19 +2094,20 @@
|
|
|
1978
2094
|
"index.js"
|
|
1979
2095
|
]
|
|
1980
2096
|
},
|
|
1981
|
-
"release:
|
|
2097
|
+
"release:delete": {
|
|
1982
2098
|
"aliases": [],
|
|
1983
2099
|
"args": {
|
|
1984
2100
|
"release_name": {
|
|
1985
|
-
"description": "Release name to
|
|
2101
|
+
"description": "Release name to delete",
|
|
1986
2102
|
"name": "release_name",
|
|
1987
2103
|
"required": true
|
|
1988
2104
|
}
|
|
1989
2105
|
},
|
|
1990
|
-
"description": "
|
|
2106
|
+
"description": "Delete a release permanently. This action cannot be undone.",
|
|
1991
2107
|
"examples": [
|
|
1992
|
-
"$ xano release
|
|
1993
|
-
"$ xano release
|
|
2108
|
+
"$ 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",
|
|
2109
|
+
"$ xano release delete v1.0 --force\nDeleted release 'v1.0'\n",
|
|
2110
|
+
"$ xano release delete v1.0 -f -o json"
|
|
1994
2111
|
],
|
|
1995
2112
|
"flags": {
|
|
1996
2113
|
"profile": {
|
|
@@ -2012,6 +2129,14 @@
|
|
|
2012
2129
|
"allowNo": false,
|
|
2013
2130
|
"type": "boolean"
|
|
2014
2131
|
},
|
|
2132
|
+
"force": {
|
|
2133
|
+
"char": "f",
|
|
2134
|
+
"description": "Skip confirmation prompt",
|
|
2135
|
+
"name": "force",
|
|
2136
|
+
"required": false,
|
|
2137
|
+
"allowNo": false,
|
|
2138
|
+
"type": "boolean"
|
|
2139
|
+
},
|
|
2015
2140
|
"output": {
|
|
2016
2141
|
"char": "o",
|
|
2017
2142
|
"description": "Output format",
|
|
@@ -2038,7 +2163,7 @@
|
|
|
2038
2163
|
},
|
|
2039
2164
|
"hasDynamicHelp": false,
|
|
2040
2165
|
"hiddenAliases": [],
|
|
2041
|
-
"id": "release:
|
|
2166
|
+
"id": "release:delete",
|
|
2042
2167
|
"pluginAlias": "@xano/cli",
|
|
2043
2168
|
"pluginName": "@xano/cli",
|
|
2044
2169
|
"pluginType": "core",
|
|
@@ -2049,17 +2174,23 @@
|
|
|
2049
2174
|
"dist",
|
|
2050
2175
|
"commands",
|
|
2051
2176
|
"release",
|
|
2052
|
-
"
|
|
2177
|
+
"delete",
|
|
2053
2178
|
"index.js"
|
|
2054
2179
|
]
|
|
2055
2180
|
},
|
|
2056
|
-
"release:
|
|
2181
|
+
"release:get": {
|
|
2057
2182
|
"aliases": [],
|
|
2058
|
-
"args": {
|
|
2059
|
-
|
|
2183
|
+
"args": {
|
|
2184
|
+
"release_name": {
|
|
2185
|
+
"description": "Release name to retrieve",
|
|
2186
|
+
"name": "release_name",
|
|
2187
|
+
"required": true
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
"description": "Get details of a specific release",
|
|
2060
2191
|
"examples": [
|
|
2061
|
-
"$ xano release
|
|
2062
|
-
"$ xano release
|
|
2192
|
+
"$ xano release get v1.0\nRelease: v1.0 - ID: 10\n Branch: main\n Description: Initial release\n Hotfix: false\n",
|
|
2193
|
+
"$ xano release get v1.0 -w 5 -o json"
|
|
2063
2194
|
],
|
|
2064
2195
|
"flags": {
|
|
2065
2196
|
"profile": {
|
|
@@ -2081,15 +2212,6 @@
|
|
|
2081
2212
|
"allowNo": false,
|
|
2082
2213
|
"type": "boolean"
|
|
2083
2214
|
},
|
|
2084
|
-
"file": {
|
|
2085
|
-
"char": "f",
|
|
2086
|
-
"description": "Path to the release file (.tar.gz)",
|
|
2087
|
-
"name": "file",
|
|
2088
|
-
"required": true,
|
|
2089
|
-
"hasDynamicHelp": false,
|
|
2090
|
-
"multiple": false,
|
|
2091
|
-
"type": "option"
|
|
2092
|
-
},
|
|
2093
2215
|
"output": {
|
|
2094
2216
|
"char": "o",
|
|
2095
2217
|
"description": "Output format",
|
|
@@ -2116,7 +2238,7 @@
|
|
|
2116
2238
|
},
|
|
2117
2239
|
"hasDynamicHelp": false,
|
|
2118
2240
|
"hiddenAliases": [],
|
|
2119
|
-
"id": "release:
|
|
2241
|
+
"id": "release:get",
|
|
2120
2242
|
"pluginAlias": "@xano/cli",
|
|
2121
2243
|
"pluginName": "@xano/cli",
|
|
2122
2244
|
"pluginType": "core",
|
|
@@ -2127,17 +2249,17 @@
|
|
|
2127
2249
|
"dist",
|
|
2128
2250
|
"commands",
|
|
2129
2251
|
"release",
|
|
2130
|
-
"
|
|
2252
|
+
"get",
|
|
2131
2253
|
"index.js"
|
|
2132
2254
|
]
|
|
2133
2255
|
},
|
|
2134
|
-
"release:
|
|
2256
|
+
"release:import": {
|
|
2135
2257
|
"aliases": [],
|
|
2136
2258
|
"args": {},
|
|
2137
|
-
"description": "
|
|
2259
|
+
"description": "Import a release file into a workspace",
|
|
2138
2260
|
"examples": [
|
|
2139
|
-
"$ xano release
|
|
2140
|
-
"$ xano release
|
|
2261
|
+
"$ xano release import --file ./my-release.tar.gz\nImported release as #15\n",
|
|
2262
|
+
"$ xano release import --file ./my-release.tar.gz -o json"
|
|
2141
2263
|
],
|
|
2142
2264
|
"flags": {
|
|
2143
2265
|
"profile": {
|
|
@@ -2159,6 +2281,15 @@
|
|
|
2159
2281
|
"allowNo": false,
|
|
2160
2282
|
"type": "boolean"
|
|
2161
2283
|
},
|
|
2284
|
+
"file": {
|
|
2285
|
+
"char": "f",
|
|
2286
|
+
"description": "Path to the release file (.tar.gz)",
|
|
2287
|
+
"name": "file",
|
|
2288
|
+
"required": true,
|
|
2289
|
+
"hasDynamicHelp": false,
|
|
2290
|
+
"multiple": false,
|
|
2291
|
+
"type": "option"
|
|
2292
|
+
},
|
|
2162
2293
|
"output": {
|
|
2163
2294
|
"char": "o",
|
|
2164
2295
|
"description": "Output format",
|
|
@@ -2185,7 +2316,7 @@
|
|
|
2185
2316
|
},
|
|
2186
2317
|
"hasDynamicHelp": false,
|
|
2187
2318
|
"hiddenAliases": [],
|
|
2188
|
-
"id": "release:
|
|
2319
|
+
"id": "release:import",
|
|
2189
2320
|
"pluginAlias": "@xano/cli",
|
|
2190
2321
|
"pluginName": "@xano/cli",
|
|
2191
2322
|
"pluginType": "core",
|
|
@@ -2196,17 +2327,17 @@
|
|
|
2196
2327
|
"dist",
|
|
2197
2328
|
"commands",
|
|
2198
2329
|
"release",
|
|
2199
|
-
"
|
|
2330
|
+
"import",
|
|
2200
2331
|
"index.js"
|
|
2201
2332
|
]
|
|
2202
2333
|
},
|
|
2203
|
-
"release:
|
|
2334
|
+
"release:list": {
|
|
2204
2335
|
"aliases": [],
|
|
2205
2336
|
"args": {},
|
|
2206
|
-
"description": "
|
|
2337
|
+
"description": "List all releases in a workspace",
|
|
2207
2338
|
"examples": [
|
|
2208
|
-
"$ xano release
|
|
2209
|
-
"$ xano release
|
|
2339
|
+
"$ xano release list\nReleases in workspace 5:\n - v1.0 (ID: 10) - main\n - v1.1-hotfix (ID: 11) - main [hotfix]\n",
|
|
2340
|
+
"$ xano release list -w 5 --output json"
|
|
2210
2341
|
],
|
|
2211
2342
|
"flags": {
|
|
2212
2343
|
"profile": {
|
|
@@ -2228,40 +2359,6 @@
|
|
|
2228
2359
|
"allowNo": false,
|
|
2229
2360
|
"type": "boolean"
|
|
2230
2361
|
},
|
|
2231
|
-
"branch": {
|
|
2232
|
-
"char": "b",
|
|
2233
|
-
"description": "Branch to create the release from",
|
|
2234
|
-
"name": "branch",
|
|
2235
|
-
"required": true,
|
|
2236
|
-
"hasDynamicHelp": false,
|
|
2237
|
-
"multiple": false,
|
|
2238
|
-
"type": "option"
|
|
2239
|
-
},
|
|
2240
|
-
"description": {
|
|
2241
|
-
"char": "d",
|
|
2242
|
-
"description": "Release description",
|
|
2243
|
-
"name": "description",
|
|
2244
|
-
"required": false,
|
|
2245
|
-
"hasDynamicHelp": false,
|
|
2246
|
-
"multiple": false,
|
|
2247
|
-
"type": "option"
|
|
2248
|
-
},
|
|
2249
|
-
"hotfix": {
|
|
2250
|
-
"description": "Mark as a hotfix release",
|
|
2251
|
-
"name": "hotfix",
|
|
2252
|
-
"required": false,
|
|
2253
|
-
"allowNo": false,
|
|
2254
|
-
"type": "boolean"
|
|
2255
|
-
},
|
|
2256
|
-
"name": {
|
|
2257
|
-
"char": "n",
|
|
2258
|
-
"description": "Name for the release",
|
|
2259
|
-
"name": "name",
|
|
2260
|
-
"required": true,
|
|
2261
|
-
"hasDynamicHelp": false,
|
|
2262
|
-
"multiple": false,
|
|
2263
|
-
"type": "option"
|
|
2264
|
-
},
|
|
2265
2362
|
"output": {
|
|
2266
2363
|
"char": "o",
|
|
2267
2364
|
"description": "Output format",
|
|
@@ -2276,14 +2373,6 @@
|
|
|
2276
2373
|
],
|
|
2277
2374
|
"type": "option"
|
|
2278
2375
|
},
|
|
2279
|
-
"table-ids": {
|
|
2280
|
-
"description": "Comma-separated table IDs to include",
|
|
2281
|
-
"name": "table-ids",
|
|
2282
|
-
"required": false,
|
|
2283
|
-
"hasDynamicHelp": false,
|
|
2284
|
-
"multiple": false,
|
|
2285
|
-
"type": "option"
|
|
2286
|
-
},
|
|
2287
2376
|
"workspace": {
|
|
2288
2377
|
"char": "w",
|
|
2289
2378
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2296,7 +2385,7 @@
|
|
|
2296
2385
|
},
|
|
2297
2386
|
"hasDynamicHelp": false,
|
|
2298
2387
|
"hiddenAliases": [],
|
|
2299
|
-
"id": "release:
|
|
2388
|
+
"id": "release:list",
|
|
2300
2389
|
"pluginAlias": "@xano/cli",
|
|
2301
2390
|
"pluginName": "@xano/cli",
|
|
2302
2391
|
"pluginType": "core",
|
|
@@ -2307,7 +2396,7 @@
|
|
|
2307
2396
|
"dist",
|
|
2308
2397
|
"commands",
|
|
2309
2398
|
"release",
|
|
2310
|
-
"
|
|
2399
|
+
"list",
|
|
2311
2400
|
"index.js"
|
|
2312
2401
|
]
|
|
2313
2402
|
},
|
|
@@ -2438,112 +2527,34 @@
|
|
|
2438
2527
|
"description": "Release description",
|
|
2439
2528
|
"name": "description",
|
|
2440
2529
|
"required": false,
|
|
2441
|
-
"default": "",
|
|
2442
|
-
"hasDynamicHelp": false,
|
|
2443
|
-
"multiple": false,
|
|
2444
|
-
"type": "option"
|
|
2445
|
-
},
|
|
2446
|
-
"env": {
|
|
2447
|
-
"description": "Include environment variables (default: true, use --no-env to exclude)",
|
|
2448
|
-
"name": "env",
|
|
2449
|
-
"required": false,
|
|
2450
|
-
"allowNo": true,
|
|
2451
|
-
"type": "boolean"
|
|
2452
|
-
},
|
|
2453
|
-
"hotfix": {
|
|
2454
|
-
"description": "Mark as a hotfix release",
|
|
2455
|
-
"name": "hotfix",
|
|
2456
|
-
"required": false,
|
|
2457
|
-
"allowNo": false,
|
|
2458
|
-
"type": "boolean"
|
|
2459
|
-
},
|
|
2460
|
-
"name": {
|
|
2461
|
-
"char": "n",
|
|
2462
|
-
"description": "Name for the release",
|
|
2463
|
-
"name": "name",
|
|
2464
|
-
"required": true,
|
|
2465
|
-
"hasDynamicHelp": false,
|
|
2466
|
-
"multiple": false,
|
|
2467
|
-
"type": "option"
|
|
2468
|
-
},
|
|
2469
|
-
"output": {
|
|
2470
|
-
"char": "o",
|
|
2471
|
-
"description": "Output format",
|
|
2472
|
-
"name": "output",
|
|
2473
|
-
"required": false,
|
|
2474
|
-
"default": "summary",
|
|
2475
|
-
"hasDynamicHelp": false,
|
|
2476
|
-
"multiple": false,
|
|
2477
|
-
"options": [
|
|
2478
|
-
"summary",
|
|
2479
|
-
"json"
|
|
2480
|
-
],
|
|
2481
|
-
"type": "option"
|
|
2482
|
-
},
|
|
2483
|
-
"records": {
|
|
2484
|
-
"description": "Include records (default: true, use --no-records to exclude)",
|
|
2485
|
-
"name": "records",
|
|
2486
|
-
"required": false,
|
|
2487
|
-
"allowNo": true,
|
|
2488
|
-
"type": "boolean"
|
|
2489
|
-
},
|
|
2490
|
-
"workspace": {
|
|
2491
|
-
"char": "w",
|
|
2492
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
2493
|
-
"name": "workspace",
|
|
2494
|
-
"required": false,
|
|
2495
|
-
"hasDynamicHelp": false,
|
|
2496
|
-
"multiple": false,
|
|
2497
|
-
"type": "option"
|
|
2498
|
-
}
|
|
2499
|
-
},
|
|
2500
|
-
"hasDynamicHelp": false,
|
|
2501
|
-
"hiddenAliases": [],
|
|
2502
|
-
"id": "release:push",
|
|
2503
|
-
"pluginAlias": "@xano/cli",
|
|
2504
|
-
"pluginName": "@xano/cli",
|
|
2505
|
-
"pluginType": "core",
|
|
2506
|
-
"strict": true,
|
|
2507
|
-
"enableJsonFlag": false,
|
|
2508
|
-
"isESM": true,
|
|
2509
|
-
"relativePath": [
|
|
2510
|
-
"dist",
|
|
2511
|
-
"commands",
|
|
2512
|
-
"release",
|
|
2513
|
-
"push",
|
|
2514
|
-
"index.js"
|
|
2515
|
-
]
|
|
2516
|
-
},
|
|
2517
|
-
"static_host:list": {
|
|
2518
|
-
"aliases": [],
|
|
2519
|
-
"args": {},
|
|
2520
|
-
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
2521
|
-
"examples": [
|
|
2522
|
-
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
2523
|
-
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
2524
|
-
"$ 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",
|
|
2525
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
2526
|
-
],
|
|
2527
|
-
"flags": {
|
|
2528
|
-
"profile": {
|
|
2529
|
-
"char": "p",
|
|
2530
|
-
"description": "Profile to use (uses default profile if not specified)",
|
|
2531
|
-
"env": "XANO_PROFILE",
|
|
2532
|
-
"name": "profile",
|
|
2533
|
-
"required": false,
|
|
2530
|
+
"default": "",
|
|
2534
2531
|
"hasDynamicHelp": false,
|
|
2535
2532
|
"multiple": false,
|
|
2536
2533
|
"type": "option"
|
|
2537
2534
|
},
|
|
2538
|
-
"
|
|
2539
|
-
"
|
|
2540
|
-
"
|
|
2541
|
-
"
|
|
2542
|
-
"
|
|
2535
|
+
"env": {
|
|
2536
|
+
"description": "Include environment variables (default: true, use --no-env to exclude)",
|
|
2537
|
+
"name": "env",
|
|
2538
|
+
"required": false,
|
|
2539
|
+
"allowNo": true,
|
|
2540
|
+
"type": "boolean"
|
|
2541
|
+
},
|
|
2542
|
+
"hotfix": {
|
|
2543
|
+
"description": "Mark as a hotfix release",
|
|
2544
|
+
"name": "hotfix",
|
|
2543
2545
|
"required": false,
|
|
2544
2546
|
"allowNo": false,
|
|
2545
2547
|
"type": "boolean"
|
|
2546
2548
|
},
|
|
2549
|
+
"name": {
|
|
2550
|
+
"char": "n",
|
|
2551
|
+
"description": "Name for the release",
|
|
2552
|
+
"name": "name",
|
|
2553
|
+
"required": true,
|
|
2554
|
+
"hasDynamicHelp": false,
|
|
2555
|
+
"multiple": false,
|
|
2556
|
+
"type": "option"
|
|
2557
|
+
},
|
|
2547
2558
|
"output": {
|
|
2548
2559
|
"char": "o",
|
|
2549
2560
|
"description": "Output format",
|
|
@@ -2558,23 +2569,12 @@
|
|
|
2558
2569
|
],
|
|
2559
2570
|
"type": "option"
|
|
2560
2571
|
},
|
|
2561
|
-
"
|
|
2562
|
-
"description": "
|
|
2563
|
-
"name": "
|
|
2564
|
-
"required": false,
|
|
2565
|
-
"default": 1,
|
|
2566
|
-
"hasDynamicHelp": false,
|
|
2567
|
-
"multiple": false,
|
|
2568
|
-
"type": "option"
|
|
2569
|
-
},
|
|
2570
|
-
"per_page": {
|
|
2571
|
-
"description": "Number of results per page",
|
|
2572
|
-
"name": "per_page",
|
|
2572
|
+
"records": {
|
|
2573
|
+
"description": "Include records (default: true, use --no-records to exclude)",
|
|
2574
|
+
"name": "records",
|
|
2573
2575
|
"required": false,
|
|
2574
|
-
"
|
|
2575
|
-
"
|
|
2576
|
-
"multiple": false,
|
|
2577
|
-
"type": "option"
|
|
2576
|
+
"allowNo": true,
|
|
2577
|
+
"type": "boolean"
|
|
2578
2578
|
},
|
|
2579
2579
|
"workspace": {
|
|
2580
2580
|
"char": "w",
|
|
@@ -2588,7 +2588,7 @@
|
|
|
2588
2588
|
},
|
|
2589
2589
|
"hasDynamicHelp": false,
|
|
2590
2590
|
"hiddenAliases": [],
|
|
2591
|
-
"id": "
|
|
2591
|
+
"id": "release:push",
|
|
2592
2592
|
"pluginAlias": "@xano/cli",
|
|
2593
2593
|
"pluginName": "@xano/cli",
|
|
2594
2594
|
"pluginType": "core",
|
|
@@ -2598,8 +2598,8 @@
|
|
|
2598
2598
|
"relativePath": [
|
|
2599
2599
|
"dist",
|
|
2600
2600
|
"commands",
|
|
2601
|
-
"
|
|
2602
|
-
"
|
|
2601
|
+
"release",
|
|
2602
|
+
"push",
|
|
2603
2603
|
"index.js"
|
|
2604
2604
|
]
|
|
2605
2605
|
},
|
|
@@ -2743,19 +2743,20 @@
|
|
|
2743
2743
|
"index.js"
|
|
2744
2744
|
]
|
|
2745
2745
|
},
|
|
2746
|
-
"tenant:
|
|
2746
|
+
"tenant:delete": {
|
|
2747
2747
|
"aliases": [],
|
|
2748
2748
|
"args": {
|
|
2749
2749
|
"tenant_name": {
|
|
2750
|
-
"description": "Tenant name to
|
|
2750
|
+
"description": "Tenant name to delete",
|
|
2751
2751
|
"name": "tenant_name",
|
|
2752
2752
|
"required": true
|
|
2753
2753
|
}
|
|
2754
2754
|
},
|
|
2755
|
-
"description": "
|
|
2755
|
+
"description": "Delete a tenant permanently. This destroys all associated infrastructure and cannot be undone.",
|
|
2756
2756
|
"examples": [
|
|
2757
|
-
"$ xano tenant
|
|
2758
|
-
"$ xano tenant
|
|
2757
|
+
"$ xano tenant delete t1234-abcd-xyz1\nAre you sure you want to delete tenant t1234-abcd-xyz1? This action cannot be undone. (y/N) y\nDeleted tenant t1234-abcd-xyz1\n",
|
|
2758
|
+
"$ xano tenant delete t1234-abcd-xyz1 --force\nDeleted tenant t1234-abcd-xyz1\n",
|
|
2759
|
+
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
2759
2760
|
],
|
|
2760
2761
|
"flags": {
|
|
2761
2762
|
"profile": {
|
|
@@ -2777,6 +2778,14 @@
|
|
|
2777
2778
|
"allowNo": false,
|
|
2778
2779
|
"type": "boolean"
|
|
2779
2780
|
},
|
|
2781
|
+
"force": {
|
|
2782
|
+
"char": "f",
|
|
2783
|
+
"description": "Skip confirmation prompt",
|
|
2784
|
+
"name": "force",
|
|
2785
|
+
"required": false,
|
|
2786
|
+
"allowNo": false,
|
|
2787
|
+
"type": "boolean"
|
|
2788
|
+
},
|
|
2780
2789
|
"output": {
|
|
2781
2790
|
"char": "o",
|
|
2782
2791
|
"description": "Output format",
|
|
@@ -2791,14 +2800,6 @@
|
|
|
2791
2800
|
],
|
|
2792
2801
|
"type": "option"
|
|
2793
2802
|
},
|
|
2794
|
-
"platform_id": {
|
|
2795
|
-
"description": "Platform ID to deploy",
|
|
2796
|
-
"name": "platform_id",
|
|
2797
|
-
"required": true,
|
|
2798
|
-
"hasDynamicHelp": false,
|
|
2799
|
-
"multiple": false,
|
|
2800
|
-
"type": "option"
|
|
2801
|
-
},
|
|
2802
2803
|
"workspace": {
|
|
2803
2804
|
"char": "w",
|
|
2804
2805
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2811,7 +2812,7 @@
|
|
|
2811
2812
|
},
|
|
2812
2813
|
"hasDynamicHelp": false,
|
|
2813
2814
|
"hiddenAliases": [],
|
|
2814
|
-
"id": "tenant:
|
|
2815
|
+
"id": "tenant:delete",
|
|
2815
2816
|
"pluginAlias": "@xano/cli",
|
|
2816
2817
|
"pluginName": "@xano/cli",
|
|
2817
2818
|
"pluginType": "core",
|
|
@@ -2822,11 +2823,11 @@
|
|
|
2822
2823
|
"dist",
|
|
2823
2824
|
"commands",
|
|
2824
2825
|
"tenant",
|
|
2825
|
-
"
|
|
2826
|
+
"delete",
|
|
2826
2827
|
"index.js"
|
|
2827
2828
|
]
|
|
2828
2829
|
},
|
|
2829
|
-
"tenant:
|
|
2830
|
+
"tenant:deploy_platform": {
|
|
2830
2831
|
"aliases": [],
|
|
2831
2832
|
"args": {
|
|
2832
2833
|
"tenant_name": {
|
|
@@ -2835,10 +2836,10 @@
|
|
|
2835
2836
|
"required": true
|
|
2836
2837
|
}
|
|
2837
2838
|
},
|
|
2838
|
-
"description": "Deploy a
|
|
2839
|
+
"description": "Deploy a platform version to a tenant",
|
|
2839
2840
|
"examples": [
|
|
2840
|
-
"$ xano tenant
|
|
2841
|
-
"$ xano tenant
|
|
2841
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5\nDeployed platform 5 to tenant: My Tenant (my-tenant)\n",
|
|
2842
|
+
"$ xano tenant deploy_platform t1234-abcd-xyz1 --platform_id 5 -o json"
|
|
2842
2843
|
],
|
|
2843
2844
|
"flags": {
|
|
2844
2845
|
"profile": {
|
|
@@ -2874,10 +2875,9 @@
|
|
|
2874
2875
|
],
|
|
2875
2876
|
"type": "option"
|
|
2876
2877
|
},
|
|
2877
|
-
"
|
|
2878
|
-
"
|
|
2879
|
-
"
|
|
2880
|
-
"name": "release",
|
|
2878
|
+
"platform_id": {
|
|
2879
|
+
"description": "Platform ID to deploy",
|
|
2880
|
+
"name": "platform_id",
|
|
2881
2881
|
"required": true,
|
|
2882
2882
|
"hasDynamicHelp": false,
|
|
2883
2883
|
"multiple": false,
|
|
@@ -2895,7 +2895,7 @@
|
|
|
2895
2895
|
},
|
|
2896
2896
|
"hasDynamicHelp": false,
|
|
2897
2897
|
"hiddenAliases": [],
|
|
2898
|
-
"id": "tenant:
|
|
2898
|
+
"id": "tenant:deploy_platform",
|
|
2899
2899
|
"pluginAlias": "@xano/cli",
|
|
2900
2900
|
"pluginName": "@xano/cli",
|
|
2901
2901
|
"pluginType": "core",
|
|
@@ -2906,24 +2906,23 @@
|
|
|
2906
2906
|
"dist",
|
|
2907
2907
|
"commands",
|
|
2908
2908
|
"tenant",
|
|
2909
|
-
"
|
|
2909
|
+
"deploy_platform",
|
|
2910
2910
|
"index.js"
|
|
2911
2911
|
]
|
|
2912
2912
|
},
|
|
2913
|
-
"tenant:
|
|
2913
|
+
"tenant:deploy_release": {
|
|
2914
2914
|
"aliases": [],
|
|
2915
2915
|
"args": {
|
|
2916
2916
|
"tenant_name": {
|
|
2917
|
-
"description": "Tenant name to
|
|
2917
|
+
"description": "Tenant name to deploy to",
|
|
2918
2918
|
"name": "tenant_name",
|
|
2919
2919
|
"required": true
|
|
2920
2920
|
}
|
|
2921
2921
|
},
|
|
2922
|
-
"description": "
|
|
2922
|
+
"description": "Deploy a release to a tenant",
|
|
2923
2923
|
"examples": [
|
|
2924
|
-
"$ xano tenant
|
|
2925
|
-
"$ xano tenant
|
|
2926
|
-
"$ xano tenant delete t1234-abcd-xyz1 -f -o json"
|
|
2924
|
+
"$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0\nDeployed release \"v1.0\" to tenant: My Tenant (my-tenant)\n",
|
|
2925
|
+
"$ xano tenant deploy_release t1234-abcd-xyz1 --release v1.0 -o json"
|
|
2927
2926
|
],
|
|
2928
2927
|
"flags": {
|
|
2929
2928
|
"profile": {
|
|
@@ -2945,14 +2944,6 @@
|
|
|
2945
2944
|
"allowNo": false,
|
|
2946
2945
|
"type": "boolean"
|
|
2947
2946
|
},
|
|
2948
|
-
"force": {
|
|
2949
|
-
"char": "f",
|
|
2950
|
-
"description": "Skip confirmation prompt",
|
|
2951
|
-
"name": "force",
|
|
2952
|
-
"required": false,
|
|
2953
|
-
"allowNo": false,
|
|
2954
|
-
"type": "boolean"
|
|
2955
|
-
},
|
|
2956
2947
|
"output": {
|
|
2957
2948
|
"char": "o",
|
|
2958
2949
|
"description": "Output format",
|
|
@@ -2967,6 +2958,15 @@
|
|
|
2967
2958
|
],
|
|
2968
2959
|
"type": "option"
|
|
2969
2960
|
},
|
|
2961
|
+
"release": {
|
|
2962
|
+
"char": "r",
|
|
2963
|
+
"description": "Release name to deploy",
|
|
2964
|
+
"name": "release",
|
|
2965
|
+
"required": true,
|
|
2966
|
+
"hasDynamicHelp": false,
|
|
2967
|
+
"multiple": false,
|
|
2968
|
+
"type": "option"
|
|
2969
|
+
},
|
|
2970
2970
|
"workspace": {
|
|
2971
2971
|
"char": "w",
|
|
2972
2972
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -2979,7 +2979,7 @@
|
|
|
2979
2979
|
},
|
|
2980
2980
|
"hasDynamicHelp": false,
|
|
2981
2981
|
"hiddenAliases": [],
|
|
2982
|
-
"id": "tenant:
|
|
2982
|
+
"id": "tenant:deploy_release",
|
|
2983
2983
|
"pluginAlias": "@xano/cli",
|
|
2984
2984
|
"pluginName": "@xano/cli",
|
|
2985
2985
|
"pluginType": "core",
|
|
@@ -2990,7 +2990,7 @@
|
|
|
2990
2990
|
"dist",
|
|
2991
2991
|
"commands",
|
|
2992
2992
|
"tenant",
|
|
2993
|
-
"
|
|
2993
|
+
"deploy_release",
|
|
2994
2994
|
"index.js"
|
|
2995
2995
|
]
|
|
2996
2996
|
},
|
|
@@ -3504,6 +3504,13 @@
|
|
|
3504
3504
|
"multiple": false,
|
|
3505
3505
|
"type": "option"
|
|
3506
3506
|
},
|
|
3507
|
+
"transaction": {
|
|
3508
|
+
"description": "Wrap import in a database transaction (use --no-transaction for debugging purposes)",
|
|
3509
|
+
"name": "transaction",
|
|
3510
|
+
"required": false,
|
|
3511
|
+
"allowNo": true,
|
|
3512
|
+
"type": "boolean"
|
|
3513
|
+
},
|
|
3507
3514
|
"truncate": {
|
|
3508
3515
|
"description": "Truncate all table records before importing",
|
|
3509
3516
|
"name": "truncate",
|
|
@@ -4763,6 +4770,13 @@
|
|
|
4763
4770
|
"allowNo": true,
|
|
4764
4771
|
"type": "boolean"
|
|
4765
4772
|
},
|
|
4773
|
+
"transaction": {
|
|
4774
|
+
"description": "Wrap import in a database transaction (use --no-transaction for debugging purposes)",
|
|
4775
|
+
"name": "transaction",
|
|
4776
|
+
"required": false,
|
|
4777
|
+
"allowNo": true,
|
|
4778
|
+
"type": "boolean"
|
|
4779
|
+
},
|
|
4766
4780
|
"truncate": {
|
|
4767
4781
|
"description": "Truncate all table records before importing",
|
|
4768
4782
|
"name": "truncate",
|
|
@@ -5256,19 +5270,20 @@
|
|
|
5256
5270
|
"index.js"
|
|
5257
5271
|
]
|
|
5258
5272
|
},
|
|
5259
|
-
"tenant:cluster:
|
|
5273
|
+
"tenant:cluster:delete": {
|
|
5260
5274
|
"aliases": [],
|
|
5261
5275
|
"args": {
|
|
5262
5276
|
"cluster_id": {
|
|
5263
|
-
"description": "Cluster ID to
|
|
5277
|
+
"description": "Cluster ID to delete",
|
|
5264
5278
|
"name": "cluster_id",
|
|
5265
5279
|
"required": true
|
|
5266
5280
|
}
|
|
5267
5281
|
},
|
|
5268
|
-
"description": "
|
|
5282
|
+
"description": "Delete a tenant cluster. This action cannot be undone.",
|
|
5269
5283
|
"examples": [
|
|
5270
|
-
"$ xano tenant cluster
|
|
5271
|
-
"$ xano tenant cluster
|
|
5284
|
+
"$ 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",
|
|
5285
|
+
"$ xano tenant cluster delete 3 --force\nTenant cluster 3 deleted successfully\n",
|
|
5286
|
+
"$ xano tenant cluster delete 3 -f -o json"
|
|
5272
5287
|
],
|
|
5273
5288
|
"flags": {
|
|
5274
5289
|
"profile": {
|
|
@@ -5290,31 +5305,13 @@
|
|
|
5290
5305
|
"allowNo": false,
|
|
5291
5306
|
"type": "boolean"
|
|
5292
5307
|
},
|
|
5293
|
-
"
|
|
5294
|
-
"char": "
|
|
5295
|
-
"description": "
|
|
5296
|
-
"name": "
|
|
5297
|
-
"required":
|
|
5298
|
-
"
|
|
5299
|
-
"
|
|
5300
|
-
"type": "option"
|
|
5301
|
-
},
|
|
5302
|
-
"domain": {
|
|
5303
|
-
"description": "Custom domain for the cluster",
|
|
5304
|
-
"name": "domain",
|
|
5305
|
-
"required": true,
|
|
5306
|
-
"hasDynamicHelp": false,
|
|
5307
|
-
"multiple": false,
|
|
5308
|
-
"type": "option"
|
|
5309
|
-
},
|
|
5310
|
-
"name": {
|
|
5311
|
-
"char": "n",
|
|
5312
|
-
"description": "Cluster name",
|
|
5313
|
-
"name": "name",
|
|
5314
|
-
"required": true,
|
|
5315
|
-
"hasDynamicHelp": false,
|
|
5316
|
-
"multiple": false,
|
|
5317
|
-
"type": "option"
|
|
5308
|
+
"force": {
|
|
5309
|
+
"char": "f",
|
|
5310
|
+
"description": "Skip confirmation prompt",
|
|
5311
|
+
"name": "force",
|
|
5312
|
+
"required": false,
|
|
5313
|
+
"allowNo": false,
|
|
5314
|
+
"type": "boolean"
|
|
5318
5315
|
},
|
|
5319
5316
|
"output": {
|
|
5320
5317
|
"char": "o",
|
|
@@ -5329,23 +5326,11 @@
|
|
|
5329
5326
|
"json"
|
|
5330
5327
|
],
|
|
5331
5328
|
"type": "option"
|
|
5332
|
-
},
|
|
5333
|
-
"type": {
|
|
5334
|
-
"description": "Cluster type",
|
|
5335
|
-
"name": "type",
|
|
5336
|
-
"required": true,
|
|
5337
|
-
"hasDynamicHelp": false,
|
|
5338
|
-
"multiple": false,
|
|
5339
|
-
"options": [
|
|
5340
|
-
"standard",
|
|
5341
|
-
"run"
|
|
5342
|
-
],
|
|
5343
|
-
"type": "option"
|
|
5344
5329
|
}
|
|
5345
5330
|
},
|
|
5346
5331
|
"hasDynamicHelp": false,
|
|
5347
5332
|
"hiddenAliases": [],
|
|
5348
|
-
"id": "tenant:cluster:
|
|
5333
|
+
"id": "tenant:cluster:delete",
|
|
5349
5334
|
"pluginAlias": "@xano/cli",
|
|
5350
5335
|
"pluginName": "@xano/cli",
|
|
5351
5336
|
"pluginType": "core",
|
|
@@ -5357,23 +5342,17 @@
|
|
|
5357
5342
|
"commands",
|
|
5358
5343
|
"tenant",
|
|
5359
5344
|
"cluster",
|
|
5360
|
-
"
|
|
5345
|
+
"delete",
|
|
5361
5346
|
"index.js"
|
|
5362
5347
|
]
|
|
5363
5348
|
},
|
|
5364
|
-
"tenant:cluster:
|
|
5349
|
+
"tenant:cluster:list": {
|
|
5365
5350
|
"aliases": [],
|
|
5366
|
-
"args": {
|
|
5367
|
-
|
|
5368
|
-
"description": "Cluster ID to retrieve",
|
|
5369
|
-
"name": "cluster_id",
|
|
5370
|
-
"required": true
|
|
5371
|
-
}
|
|
5372
|
-
},
|
|
5373
|
-
"description": "Get details of a specific tenant cluster",
|
|
5351
|
+
"args": {},
|
|
5352
|
+
"description": "List all tenant clusters",
|
|
5374
5353
|
"examples": [
|
|
5375
|
-
"$ xano tenant cluster
|
|
5376
|
-
"$ xano tenant cluster
|
|
5354
|
+
"$ xano tenant cluster list\nTenant clusters:\n - us-east-1 (standard) [ID: 1]\n - eu-west-1 (run) [ID: 2]\n",
|
|
5355
|
+
"$ xano tenant cluster list --output json"
|
|
5377
5356
|
],
|
|
5378
5357
|
"flags": {
|
|
5379
5358
|
"profile": {
|
|
@@ -5412,7 +5391,7 @@
|
|
|
5412
5391
|
},
|
|
5413
5392
|
"hasDynamicHelp": false,
|
|
5414
5393
|
"hiddenAliases": [],
|
|
5415
|
-
"id": "tenant:cluster:
|
|
5394
|
+
"id": "tenant:cluster:list",
|
|
5416
5395
|
"pluginAlias": "@xano/cli",
|
|
5417
5396
|
"pluginName": "@xano/cli",
|
|
5418
5397
|
"pluginType": "core",
|
|
@@ -5424,23 +5403,24 @@
|
|
|
5424
5403
|
"commands",
|
|
5425
5404
|
"tenant",
|
|
5426
5405
|
"cluster",
|
|
5427
|
-
"
|
|
5406
|
+
"list",
|
|
5428
5407
|
"index.js"
|
|
5429
5408
|
]
|
|
5430
5409
|
},
|
|
5431
|
-
"tenant:
|
|
5410
|
+
"tenant:env:delete": {
|
|
5432
5411
|
"aliases": [],
|
|
5433
5412
|
"args": {
|
|
5434
5413
|
"tenant_name": {
|
|
5435
|
-
"description": "Tenant name
|
|
5414
|
+
"description": "Tenant name",
|
|
5436
5415
|
"name": "tenant_name",
|
|
5437
5416
|
"required": true
|
|
5438
5417
|
}
|
|
5439
5418
|
},
|
|
5440
|
-
"description": "
|
|
5419
|
+
"description": "Delete an environment variable from a tenant",
|
|
5441
5420
|
"examples": [
|
|
5442
|
-
"$ xano tenant
|
|
5443
|
-
"$ xano tenant
|
|
5421
|
+
"$ xano tenant env delete my-tenant --name DATABASE_URL\nAre you sure you want to delete environment variable 'DATABASE_URL' from tenant my-tenant? (y/N) y\nEnvironment variable 'DATABASE_URL' deleted from tenant my-tenant\n",
|
|
5422
|
+
"$ xano tenant env delete my-tenant --name DATABASE_URL --force\nEnvironment variable 'DATABASE_URL' deleted from tenant my-tenant\n",
|
|
5423
|
+
"$ xano tenant env delete my-tenant --name DATABASE_URL -f -w 5 -o json"
|
|
5444
5424
|
],
|
|
5445
5425
|
"flags": {
|
|
5446
5426
|
"profile": {
|
|
@@ -5462,12 +5442,19 @@
|
|
|
5462
5442
|
"allowNo": false,
|
|
5463
5443
|
"type": "boolean"
|
|
5464
5444
|
},
|
|
5465
|
-
"
|
|
5466
|
-
"char": "
|
|
5467
|
-
"description": "
|
|
5468
|
-
"name": "
|
|
5445
|
+
"force": {
|
|
5446
|
+
"char": "f",
|
|
5447
|
+
"description": "Skip confirmation prompt",
|
|
5448
|
+
"name": "force",
|
|
5469
5449
|
"required": false,
|
|
5470
|
-
"
|
|
5450
|
+
"allowNo": false,
|
|
5451
|
+
"type": "boolean"
|
|
5452
|
+
},
|
|
5453
|
+
"name": {
|
|
5454
|
+
"char": "n",
|
|
5455
|
+
"description": "Environment variable name",
|
|
5456
|
+
"name": "name",
|
|
5457
|
+
"required": true,
|
|
5471
5458
|
"hasDynamicHelp": false,
|
|
5472
5459
|
"multiple": false,
|
|
5473
5460
|
"type": "option"
|
|
@@ -5498,7 +5485,7 @@
|
|
|
5498
5485
|
},
|
|
5499
5486
|
"hasDynamicHelp": false,
|
|
5500
5487
|
"hiddenAliases": [],
|
|
5501
|
-
"id": "tenant:
|
|
5488
|
+
"id": "tenant:env:delete",
|
|
5502
5489
|
"pluginAlias": "@xano/cli",
|
|
5503
5490
|
"pluginName": "@xano/cli",
|
|
5504
5491
|
"pluginType": "core",
|
|
@@ -5509,18 +5496,24 @@
|
|
|
5509
5496
|
"dist",
|
|
5510
5497
|
"commands",
|
|
5511
5498
|
"tenant",
|
|
5512
|
-
"
|
|
5513
|
-
"
|
|
5499
|
+
"env",
|
|
5500
|
+
"delete",
|
|
5514
5501
|
"index.js"
|
|
5515
5502
|
]
|
|
5516
5503
|
},
|
|
5517
|
-
"tenant:
|
|
5504
|
+
"tenant:env:get": {
|
|
5518
5505
|
"aliases": [],
|
|
5519
|
-
"args": {
|
|
5520
|
-
|
|
5506
|
+
"args": {
|
|
5507
|
+
"tenant_name": {
|
|
5508
|
+
"description": "Tenant name",
|
|
5509
|
+
"name": "tenant_name",
|
|
5510
|
+
"required": true
|
|
5511
|
+
}
|
|
5512
|
+
},
|
|
5513
|
+
"description": "Get a single environment variable for a tenant",
|
|
5521
5514
|
"examples": [
|
|
5522
|
-
"$ xano tenant
|
|
5523
|
-
"$ xano tenant
|
|
5515
|
+
"$ xano tenant env get my-tenant --name DATABASE_URL\npostgres://localhost:5432/mydb\n",
|
|
5516
|
+
"$ xano tenant env get my-tenant --name DATABASE_URL -w 5 -o json"
|
|
5524
5517
|
],
|
|
5525
5518
|
"flags": {
|
|
5526
5519
|
"profile": {
|
|
@@ -5542,6 +5535,15 @@
|
|
|
5542
5535
|
"allowNo": false,
|
|
5543
5536
|
"type": "boolean"
|
|
5544
5537
|
},
|
|
5538
|
+
"name": {
|
|
5539
|
+
"char": "n",
|
|
5540
|
+
"description": "Environment variable name",
|
|
5541
|
+
"name": "name",
|
|
5542
|
+
"required": true,
|
|
5543
|
+
"hasDynamicHelp": false,
|
|
5544
|
+
"multiple": false,
|
|
5545
|
+
"type": "option"
|
|
5546
|
+
},
|
|
5545
5547
|
"output": {
|
|
5546
5548
|
"char": "o",
|
|
5547
5549
|
"description": "Output format",
|
|
@@ -5555,11 +5557,20 @@
|
|
|
5555
5557
|
"json"
|
|
5556
5558
|
],
|
|
5557
5559
|
"type": "option"
|
|
5560
|
+
},
|
|
5561
|
+
"workspace": {
|
|
5562
|
+
"char": "w",
|
|
5563
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5564
|
+
"name": "workspace",
|
|
5565
|
+
"required": false,
|
|
5566
|
+
"hasDynamicHelp": false,
|
|
5567
|
+
"multiple": false,
|
|
5568
|
+
"type": "option"
|
|
5558
5569
|
}
|
|
5559
5570
|
},
|
|
5560
5571
|
"hasDynamicHelp": false,
|
|
5561
5572
|
"hiddenAliases": [],
|
|
5562
|
-
"id": "tenant:
|
|
5573
|
+
"id": "tenant:env:get",
|
|
5563
5574
|
"pluginAlias": "@xano/cli",
|
|
5564
5575
|
"pluginName": "@xano/cli",
|
|
5565
5576
|
"pluginType": "core",
|
|
@@ -5570,25 +5581,26 @@
|
|
|
5570
5581
|
"dist",
|
|
5571
5582
|
"commands",
|
|
5572
5583
|
"tenant",
|
|
5573
|
-
"
|
|
5574
|
-
"
|
|
5584
|
+
"env",
|
|
5585
|
+
"get",
|
|
5575
5586
|
"index.js"
|
|
5576
5587
|
]
|
|
5577
5588
|
},
|
|
5578
|
-
"tenant:
|
|
5589
|
+
"tenant:env:get_all": {
|
|
5579
5590
|
"aliases": [],
|
|
5580
5591
|
"args": {
|
|
5581
5592
|
"tenant_name": {
|
|
5582
|
-
"description": "Tenant name
|
|
5593
|
+
"description": "Tenant name",
|
|
5583
5594
|
"name": "tenant_name",
|
|
5584
5595
|
"required": true
|
|
5585
5596
|
}
|
|
5586
5597
|
},
|
|
5587
|
-
"description": "
|
|
5598
|
+
"description": "Get all environment variables for a tenant and save to a YAML file",
|
|
5588
5599
|
"examples": [
|
|
5589
|
-
"$ xano tenant
|
|
5590
|
-
"$ xano tenant
|
|
5591
|
-
"$ xano tenant
|
|
5600
|
+
"$ xano tenant env get_all my-tenant\nEnvironment variables saved to env_my-tenant.yaml\n",
|
|
5601
|
+
"$ xano tenant env get_all my-tenant --file ./my-env.yaml",
|
|
5602
|
+
"$ xano tenant env get_all my-tenant --view",
|
|
5603
|
+
"$ xano tenant env get_all my-tenant -o json"
|
|
5592
5604
|
],
|
|
5593
5605
|
"flags": {
|
|
5594
5606
|
"profile": {
|
|
@@ -5610,22 +5622,15 @@
|
|
|
5610
5622
|
"allowNo": false,
|
|
5611
5623
|
"type": "boolean"
|
|
5612
5624
|
},
|
|
5613
|
-
"
|
|
5614
|
-
"
|
|
5615
|
-
"
|
|
5616
|
-
"
|
|
5625
|
+
"file": {
|
|
5626
|
+
"char": "f",
|
|
5627
|
+
"description": "Output file path (default: env_<tenant_name>.yaml)",
|
|
5628
|
+
"name": "file",
|
|
5629
|
+
"required": false,
|
|
5617
5630
|
"hasDynamicHelp": false,
|
|
5618
5631
|
"multiple": false,
|
|
5619
5632
|
"type": "option"
|
|
5620
5633
|
},
|
|
5621
|
-
"force": {
|
|
5622
|
-
"char": "f",
|
|
5623
|
-
"description": "Skip confirmation prompt",
|
|
5624
|
-
"name": "force",
|
|
5625
|
-
"required": false,
|
|
5626
|
-
"allowNo": false,
|
|
5627
|
-
"type": "boolean"
|
|
5628
|
-
},
|
|
5629
5634
|
"output": {
|
|
5630
5635
|
"char": "o",
|
|
5631
5636
|
"description": "Output format",
|
|
@@ -5640,6 +5645,13 @@
|
|
|
5640
5645
|
],
|
|
5641
5646
|
"type": "option"
|
|
5642
5647
|
},
|
|
5648
|
+
"view": {
|
|
5649
|
+
"description": "Print environment variables to stdout instead of saving to file",
|
|
5650
|
+
"name": "view",
|
|
5651
|
+
"required": false,
|
|
5652
|
+
"allowNo": false,
|
|
5653
|
+
"type": "boolean"
|
|
5654
|
+
},
|
|
5643
5655
|
"workspace": {
|
|
5644
5656
|
"char": "w",
|
|
5645
5657
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -5652,7 +5664,7 @@
|
|
|
5652
5664
|
},
|
|
5653
5665
|
"hasDynamicHelp": false,
|
|
5654
5666
|
"hiddenAliases": [],
|
|
5655
|
-
"id": "tenant:
|
|
5667
|
+
"id": "tenant:env:get_all",
|
|
5656
5668
|
"pluginAlias": "@xano/cli",
|
|
5657
5669
|
"pluginName": "@xano/cli",
|
|
5658
5670
|
"pluginType": "core",
|
|
@@ -5663,25 +5675,24 @@
|
|
|
5663
5675
|
"dist",
|
|
5664
5676
|
"commands",
|
|
5665
5677
|
"tenant",
|
|
5666
|
-
"
|
|
5667
|
-
"
|
|
5678
|
+
"env",
|
|
5679
|
+
"get_all",
|
|
5668
5680
|
"index.js"
|
|
5669
5681
|
]
|
|
5670
5682
|
},
|
|
5671
|
-
"tenant:
|
|
5683
|
+
"tenant:env:list": {
|
|
5672
5684
|
"aliases": [],
|
|
5673
5685
|
"args": {
|
|
5674
5686
|
"tenant_name": {
|
|
5675
|
-
"description": "Tenant name
|
|
5687
|
+
"description": "Tenant name",
|
|
5676
5688
|
"name": "tenant_name",
|
|
5677
5689
|
"required": true
|
|
5678
5690
|
}
|
|
5679
5691
|
},
|
|
5680
|
-
"description": "
|
|
5692
|
+
"description": "List environment variable keys for a tenant",
|
|
5681
5693
|
"examples": [
|
|
5682
|
-
"$ xano tenant
|
|
5683
|
-
"$ xano tenant
|
|
5684
|
-
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
5694
|
+
"$ xano tenant env list my-tenant\nEnvironment variables for tenant my-tenant:\n - DATABASE_URL\n - API_KEY\n - SECRET_TOKEN\n",
|
|
5695
|
+
"$ xano tenant env list my-tenant -w 5 -o json"
|
|
5685
5696
|
],
|
|
5686
5697
|
"flags": {
|
|
5687
5698
|
"profile": {
|
|
@@ -5703,18 +5714,10 @@
|
|
|
5703
5714
|
"allowNo": false,
|
|
5704
5715
|
"type": "boolean"
|
|
5705
5716
|
},
|
|
5706
|
-
"
|
|
5707
|
-
"description": "Backup ID to export",
|
|
5708
|
-
"name": "backup_id",
|
|
5709
|
-
"required": true,
|
|
5710
|
-
"hasDynamicHelp": false,
|
|
5711
|
-
"multiple": false,
|
|
5712
|
-
"type": "option"
|
|
5713
|
-
},
|
|
5714
|
-
"format": {
|
|
5717
|
+
"output": {
|
|
5715
5718
|
"char": "o",
|
|
5716
5719
|
"description": "Output format",
|
|
5717
|
-
"name": "
|
|
5720
|
+
"name": "output",
|
|
5718
5721
|
"required": false,
|
|
5719
5722
|
"default": "summary",
|
|
5720
5723
|
"hasDynamicHelp": false,
|
|
@@ -5725,14 +5728,6 @@
|
|
|
5725
5728
|
],
|
|
5726
5729
|
"type": "option"
|
|
5727
5730
|
},
|
|
5728
|
-
"output": {
|
|
5729
|
-
"description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
|
|
5730
|
-
"name": "output",
|
|
5731
|
-
"required": false,
|
|
5732
|
-
"hasDynamicHelp": false,
|
|
5733
|
-
"multiple": false,
|
|
5734
|
-
"type": "option"
|
|
5735
|
-
},
|
|
5736
5731
|
"workspace": {
|
|
5737
5732
|
"char": "w",
|
|
5738
5733
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -5745,7 +5740,7 @@
|
|
|
5745
5740
|
},
|
|
5746
5741
|
"hasDynamicHelp": false,
|
|
5747
5742
|
"hiddenAliases": [],
|
|
5748
|
-
"id": "tenant:
|
|
5743
|
+
"id": "tenant:env:list",
|
|
5749
5744
|
"pluginAlias": "@xano/cli",
|
|
5750
5745
|
"pluginName": "@xano/cli",
|
|
5751
5746
|
"pluginType": "core",
|
|
@@ -5756,24 +5751,24 @@
|
|
|
5756
5751
|
"dist",
|
|
5757
5752
|
"commands",
|
|
5758
5753
|
"tenant",
|
|
5759
|
-
"
|
|
5760
|
-
"
|
|
5754
|
+
"env",
|
|
5755
|
+
"list",
|
|
5761
5756
|
"index.js"
|
|
5762
5757
|
]
|
|
5763
5758
|
},
|
|
5764
|
-
"tenant:
|
|
5759
|
+
"tenant:cluster:get": {
|
|
5765
5760
|
"aliases": [],
|
|
5766
5761
|
"args": {
|
|
5767
|
-
"
|
|
5768
|
-
"description": "
|
|
5769
|
-
"name": "
|
|
5762
|
+
"cluster_id": {
|
|
5763
|
+
"description": "Cluster ID to retrieve",
|
|
5764
|
+
"name": "cluster_id",
|
|
5770
5765
|
"required": true
|
|
5771
5766
|
}
|
|
5772
5767
|
},
|
|
5773
|
-
"description": "
|
|
5768
|
+
"description": "Get details of a specific tenant cluster",
|
|
5774
5769
|
"examples": [
|
|
5775
|
-
"$ xano tenant
|
|
5776
|
-
"$ xano tenant
|
|
5770
|
+
"$ xano tenant cluster get 1\nCluster: us-east-1\n ID: 1\n Type: standard\n Domain: us-east-1.xano.io\n",
|
|
5771
|
+
"$ xano tenant cluster get 1 -o json"
|
|
5777
5772
|
],
|
|
5778
5773
|
"flags": {
|
|
5779
5774
|
"profile": {
|
|
@@ -5795,25 +5790,6 @@
|
|
|
5795
5790
|
"allowNo": false,
|
|
5796
5791
|
"type": "boolean"
|
|
5797
5792
|
},
|
|
5798
|
-
"description": {
|
|
5799
|
-
"char": "d",
|
|
5800
|
-
"description": "Backup description",
|
|
5801
|
-
"name": "description",
|
|
5802
|
-
"required": false,
|
|
5803
|
-
"default": "",
|
|
5804
|
-
"hasDynamicHelp": false,
|
|
5805
|
-
"multiple": false,
|
|
5806
|
-
"type": "option"
|
|
5807
|
-
},
|
|
5808
|
-
"file": {
|
|
5809
|
-
"char": "f",
|
|
5810
|
-
"description": "Path to the backup file (.tar.gz)",
|
|
5811
|
-
"name": "file",
|
|
5812
|
-
"required": true,
|
|
5813
|
-
"hasDynamicHelp": false,
|
|
5814
|
-
"multiple": false,
|
|
5815
|
-
"type": "option"
|
|
5816
|
-
},
|
|
5817
5793
|
"output": {
|
|
5818
5794
|
"char": "o",
|
|
5819
5795
|
"description": "Output format",
|
|
@@ -5827,20 +5803,11 @@
|
|
|
5827
5803
|
"json"
|
|
5828
5804
|
],
|
|
5829
5805
|
"type": "option"
|
|
5830
|
-
},
|
|
5831
|
-
"workspace": {
|
|
5832
|
-
"char": "w",
|
|
5833
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
5834
|
-
"name": "workspace",
|
|
5835
|
-
"required": false,
|
|
5836
|
-
"hasDynamicHelp": false,
|
|
5837
|
-
"multiple": false,
|
|
5838
|
-
"type": "option"
|
|
5839
5806
|
}
|
|
5840
5807
|
},
|
|
5841
5808
|
"hasDynamicHelp": false,
|
|
5842
5809
|
"hiddenAliases": [],
|
|
5843
|
-
"id": "tenant:
|
|
5810
|
+
"id": "tenant:cluster:get",
|
|
5844
5811
|
"pluginAlias": "@xano/cli",
|
|
5845
5812
|
"pluginName": "@xano/cli",
|
|
5846
5813
|
"pluginType": "core",
|
|
@@ -5851,24 +5818,24 @@
|
|
|
5851
5818
|
"dist",
|
|
5852
5819
|
"commands",
|
|
5853
5820
|
"tenant",
|
|
5854
|
-
"
|
|
5855
|
-
"
|
|
5821
|
+
"cluster",
|
|
5822
|
+
"get",
|
|
5856
5823
|
"index.js"
|
|
5857
5824
|
]
|
|
5858
5825
|
},
|
|
5859
|
-
"tenant:
|
|
5826
|
+
"tenant:env:set": {
|
|
5860
5827
|
"aliases": [],
|
|
5861
5828
|
"args": {
|
|
5862
5829
|
"tenant_name": {
|
|
5863
|
-
"description": "Tenant name
|
|
5830
|
+
"description": "Tenant name",
|
|
5864
5831
|
"name": "tenant_name",
|
|
5865
5832
|
"required": true
|
|
5866
5833
|
}
|
|
5867
5834
|
},
|
|
5868
|
-
"description": "
|
|
5835
|
+
"description": "Set (create or update) an environment variable for a tenant",
|
|
5869
5836
|
"examples": [
|
|
5870
|
-
"$ xano tenant
|
|
5871
|
-
"$ xano tenant
|
|
5837
|
+
"$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb\nEnvironment variable 'DATABASE_URL' set for tenant my-tenant\n",
|
|
5838
|
+
"$ xano tenant env set my-tenant --name DATABASE_URL --value postgres://localhost:5432/mydb -w 5 -o json"
|
|
5872
5839
|
],
|
|
5873
5840
|
"flags": {
|
|
5874
5841
|
"profile": {
|
|
@@ -5890,6 +5857,15 @@
|
|
|
5890
5857
|
"allowNo": false,
|
|
5891
5858
|
"type": "boolean"
|
|
5892
5859
|
},
|
|
5860
|
+
"name": {
|
|
5861
|
+
"char": "n",
|
|
5862
|
+
"description": "Environment variable name",
|
|
5863
|
+
"name": "name",
|
|
5864
|
+
"required": true,
|
|
5865
|
+
"hasDynamicHelp": false,
|
|
5866
|
+
"multiple": false,
|
|
5867
|
+
"type": "option"
|
|
5868
|
+
},
|
|
5893
5869
|
"output": {
|
|
5894
5870
|
"char": "o",
|
|
5895
5871
|
"description": "Output format",
|
|
@@ -5904,11 +5880,10 @@
|
|
|
5904
5880
|
],
|
|
5905
5881
|
"type": "option"
|
|
5906
5882
|
},
|
|
5907
|
-
"
|
|
5908
|
-
"description": "
|
|
5909
|
-
"name": "
|
|
5910
|
-
"required":
|
|
5911
|
-
"default": 1,
|
|
5883
|
+
"value": {
|
|
5884
|
+
"description": "Environment variable value",
|
|
5885
|
+
"name": "value",
|
|
5886
|
+
"required": true,
|
|
5912
5887
|
"hasDynamicHelp": false,
|
|
5913
5888
|
"multiple": false,
|
|
5914
5889
|
"type": "option"
|
|
@@ -5925,7 +5900,7 @@
|
|
|
5925
5900
|
},
|
|
5926
5901
|
"hasDynamicHelp": false,
|
|
5927
5902
|
"hiddenAliases": [],
|
|
5928
|
-
"id": "tenant:
|
|
5903
|
+
"id": "tenant:env:set",
|
|
5929
5904
|
"pluginAlias": "@xano/cli",
|
|
5930
5905
|
"pluginName": "@xano/cli",
|
|
5931
5906
|
"pluginType": "core",
|
|
@@ -5936,24 +5911,25 @@
|
|
|
5936
5911
|
"dist",
|
|
5937
5912
|
"commands",
|
|
5938
5913
|
"tenant",
|
|
5939
|
-
"
|
|
5940
|
-
"
|
|
5914
|
+
"env",
|
|
5915
|
+
"set",
|
|
5941
5916
|
"index.js"
|
|
5942
5917
|
]
|
|
5943
5918
|
},
|
|
5944
|
-
"tenant:
|
|
5919
|
+
"tenant:env:set_all": {
|
|
5945
5920
|
"aliases": [],
|
|
5946
5921
|
"args": {
|
|
5947
5922
|
"tenant_name": {
|
|
5948
|
-
"description": "Tenant name
|
|
5923
|
+
"description": "Tenant name",
|
|
5949
5924
|
"name": "tenant_name",
|
|
5950
5925
|
"required": true
|
|
5951
5926
|
}
|
|
5952
5927
|
},
|
|
5953
|
-
"description": "
|
|
5928
|
+
"description": "Set all environment variables for a tenant from a YAML file (replaces all existing)",
|
|
5954
5929
|
"examples": [
|
|
5955
|
-
"$ xano tenant
|
|
5956
|
-
"$ xano tenant
|
|
5930
|
+
"$ xano tenant env set_all my-tenant\nReads from env_my-tenant.yaml\n",
|
|
5931
|
+
"$ xano tenant env set_all my-tenant --file ./my-env.yaml",
|
|
5932
|
+
"$ xano tenant env set_all my-tenant -o json"
|
|
5957
5933
|
],
|
|
5958
5934
|
"flags": {
|
|
5959
5935
|
"profile": {
|
|
@@ -5975,22 +5951,22 @@
|
|
|
5975
5951
|
"allowNo": false,
|
|
5976
5952
|
"type": "boolean"
|
|
5977
5953
|
},
|
|
5978
|
-
"
|
|
5979
|
-
"description": "
|
|
5980
|
-
"name": "
|
|
5981
|
-
"required": true,
|
|
5982
|
-
"hasDynamicHelp": false,
|
|
5983
|
-
"multiple": false,
|
|
5984
|
-
"type": "option"
|
|
5985
|
-
},
|
|
5986
|
-
"force": {
|
|
5987
|
-
"char": "f",
|
|
5988
|
-
"description": "Skip confirmation prompt",
|
|
5989
|
-
"name": "force",
|
|
5954
|
+
"clean": {
|
|
5955
|
+
"description": "Remove the source file after successful upload",
|
|
5956
|
+
"name": "clean",
|
|
5990
5957
|
"required": false,
|
|
5991
5958
|
"allowNo": false,
|
|
5992
5959
|
"type": "boolean"
|
|
5993
5960
|
},
|
|
5961
|
+
"file": {
|
|
5962
|
+
"char": "f",
|
|
5963
|
+
"description": "Path to env file (default: env_<tenant_name>.yaml)",
|
|
5964
|
+
"name": "file",
|
|
5965
|
+
"required": false,
|
|
5966
|
+
"hasDynamicHelp": false,
|
|
5967
|
+
"multiple": false,
|
|
5968
|
+
"type": "option"
|
|
5969
|
+
},
|
|
5994
5970
|
"output": {
|
|
5995
5971
|
"char": "o",
|
|
5996
5972
|
"description": "Output format",
|
|
@@ -6017,7 +5993,7 @@
|
|
|
6017
5993
|
},
|
|
6018
5994
|
"hasDynamicHelp": false,
|
|
6019
5995
|
"hiddenAliases": [],
|
|
6020
|
-
"id": "tenant:
|
|
5996
|
+
"id": "tenant:env:set_all",
|
|
6021
5997
|
"pluginAlias": "@xano/cli",
|
|
6022
5998
|
"pluginName": "@xano/cli",
|
|
6023
5999
|
"pluginType": "core",
|
|
@@ -6028,25 +6004,24 @@
|
|
|
6028
6004
|
"dist",
|
|
6029
6005
|
"commands",
|
|
6030
6006
|
"tenant",
|
|
6031
|
-
"
|
|
6032
|
-
"
|
|
6007
|
+
"env",
|
|
6008
|
+
"set_all",
|
|
6033
6009
|
"index.js"
|
|
6034
6010
|
]
|
|
6035
6011
|
},
|
|
6036
|
-
"tenant:
|
|
6012
|
+
"tenant:cluster:edit": {
|
|
6037
6013
|
"aliases": [],
|
|
6038
6014
|
"args": {
|
|
6039
|
-
"
|
|
6040
|
-
"description": "
|
|
6041
|
-
"name": "
|
|
6015
|
+
"cluster_id": {
|
|
6016
|
+
"description": "Cluster ID to edit",
|
|
6017
|
+
"name": "cluster_id",
|
|
6042
6018
|
"required": true
|
|
6043
6019
|
}
|
|
6044
6020
|
},
|
|
6045
|
-
"description": "
|
|
6021
|
+
"description": "Update an existing tenant cluster",
|
|
6046
6022
|
"examples": [
|
|
6047
|
-
"$ xano tenant
|
|
6048
|
-
"$ xano tenant
|
|
6049
|
-
"$ xano tenant env delete my-tenant --name DATABASE_URL -f -w 5 -o json"
|
|
6023
|
+
"$ 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",
|
|
6024
|
+
"$ xano tenant cluster edit 1 --name \"eu-west\" --description \"\" --domain \"\" --type run -o json"
|
|
6050
6025
|
],
|
|
6051
6026
|
"flags": {
|
|
6052
6027
|
"profile": {
|
|
@@ -6068,17 +6043,26 @@
|
|
|
6068
6043
|
"allowNo": false,
|
|
6069
6044
|
"type": "boolean"
|
|
6070
6045
|
},
|
|
6071
|
-
"
|
|
6072
|
-
"char": "
|
|
6073
|
-
"description": "
|
|
6074
|
-
"name": "
|
|
6075
|
-
"required":
|
|
6076
|
-
"
|
|
6077
|
-
"
|
|
6046
|
+
"description": {
|
|
6047
|
+
"char": "d",
|
|
6048
|
+
"description": "Cluster description",
|
|
6049
|
+
"name": "description",
|
|
6050
|
+
"required": true,
|
|
6051
|
+
"hasDynamicHelp": false,
|
|
6052
|
+
"multiple": false,
|
|
6053
|
+
"type": "option"
|
|
6054
|
+
},
|
|
6055
|
+
"domain": {
|
|
6056
|
+
"description": "Custom domain for the cluster",
|
|
6057
|
+
"name": "domain",
|
|
6058
|
+
"required": true,
|
|
6059
|
+
"hasDynamicHelp": false,
|
|
6060
|
+
"multiple": false,
|
|
6061
|
+
"type": "option"
|
|
6078
6062
|
},
|
|
6079
6063
|
"name": {
|
|
6080
6064
|
"char": "n",
|
|
6081
|
-
"description": "
|
|
6065
|
+
"description": "Cluster name",
|
|
6082
6066
|
"name": "name",
|
|
6083
6067
|
"required": true,
|
|
6084
6068
|
"hasDynamicHelp": false,
|
|
@@ -6099,19 +6083,22 @@
|
|
|
6099
6083
|
],
|
|
6100
6084
|
"type": "option"
|
|
6101
6085
|
},
|
|
6102
|
-
"
|
|
6103
|
-
"
|
|
6104
|
-
"
|
|
6105
|
-
"
|
|
6106
|
-
"required": false,
|
|
6086
|
+
"type": {
|
|
6087
|
+
"description": "Cluster type",
|
|
6088
|
+
"name": "type",
|
|
6089
|
+
"required": true,
|
|
6107
6090
|
"hasDynamicHelp": false,
|
|
6108
6091
|
"multiple": false,
|
|
6092
|
+
"options": [
|
|
6093
|
+
"standard",
|
|
6094
|
+
"run"
|
|
6095
|
+
],
|
|
6109
6096
|
"type": "option"
|
|
6110
6097
|
}
|
|
6111
6098
|
},
|
|
6112
6099
|
"hasDynamicHelp": false,
|
|
6113
6100
|
"hiddenAliases": [],
|
|
6114
|
-
"id": "tenant:
|
|
6101
|
+
"id": "tenant:cluster:edit",
|
|
6115
6102
|
"pluginAlias": "@xano/cli",
|
|
6116
6103
|
"pluginName": "@xano/cli",
|
|
6117
6104
|
"pluginType": "core",
|
|
@@ -6122,12 +6109,12 @@
|
|
|
6122
6109
|
"dist",
|
|
6123
6110
|
"commands",
|
|
6124
6111
|
"tenant",
|
|
6125
|
-
"
|
|
6126
|
-
"
|
|
6112
|
+
"cluster",
|
|
6113
|
+
"edit",
|
|
6127
6114
|
"index.js"
|
|
6128
6115
|
]
|
|
6129
6116
|
},
|
|
6130
|
-
"tenant:
|
|
6117
|
+
"tenant:license:set": {
|
|
6131
6118
|
"aliases": [],
|
|
6132
6119
|
"args": {
|
|
6133
6120
|
"tenant_name": {
|
|
@@ -6136,10 +6123,12 @@
|
|
|
6136
6123
|
"required": true
|
|
6137
6124
|
}
|
|
6138
6125
|
},
|
|
6139
|
-
"description": "
|
|
6126
|
+
"description": "Set/update the license for a tenant",
|
|
6140
6127
|
"examples": [
|
|
6141
|
-
"$ xano tenant
|
|
6142
|
-
"$ xano tenant
|
|
6128
|
+
"$ xano tenant license set my-tenant\nReads from license_my-tenant.yaml\n",
|
|
6129
|
+
"$ xano tenant license set my-tenant --file ./license.yaml",
|
|
6130
|
+
"$ xano tenant license set my-tenant --value 'key: value'",
|
|
6131
|
+
"$ xano tenant license set my-tenant -o json"
|
|
6143
6132
|
],
|
|
6144
6133
|
"flags": {
|
|
6145
6134
|
"profile": {
|
|
@@ -6161,11 +6150,24 @@
|
|
|
6161
6150
|
"allowNo": false,
|
|
6162
6151
|
"type": "boolean"
|
|
6163
6152
|
},
|
|
6164
|
-
"
|
|
6165
|
-
"
|
|
6166
|
-
"
|
|
6167
|
-
|
|
6168
|
-
|
|
6153
|
+
"clean": {
|
|
6154
|
+
"description": "Remove the source file after successful upload",
|
|
6155
|
+
"exclusive": [
|
|
6156
|
+
"value"
|
|
6157
|
+
],
|
|
6158
|
+
"name": "clean",
|
|
6159
|
+
"required": false,
|
|
6160
|
+
"allowNo": false,
|
|
6161
|
+
"type": "boolean"
|
|
6162
|
+
},
|
|
6163
|
+
"file": {
|
|
6164
|
+
"char": "f",
|
|
6165
|
+
"description": "Path to license file (default: license_<tenant_name>.yaml)",
|
|
6166
|
+
"exclusive": [
|
|
6167
|
+
"value"
|
|
6168
|
+
],
|
|
6169
|
+
"name": "file",
|
|
6170
|
+
"required": false,
|
|
6169
6171
|
"hasDynamicHelp": false,
|
|
6170
6172
|
"multiple": false,
|
|
6171
6173
|
"type": "option"
|
|
@@ -6184,6 +6186,18 @@
|
|
|
6184
6186
|
],
|
|
6185
6187
|
"type": "option"
|
|
6186
6188
|
},
|
|
6189
|
+
"value": {
|
|
6190
|
+
"description": "Inline license value",
|
|
6191
|
+
"exclusive": [
|
|
6192
|
+
"file",
|
|
6193
|
+
"clean"
|
|
6194
|
+
],
|
|
6195
|
+
"name": "value",
|
|
6196
|
+
"required": false,
|
|
6197
|
+
"hasDynamicHelp": false,
|
|
6198
|
+
"multiple": false,
|
|
6199
|
+
"type": "option"
|
|
6200
|
+
},
|
|
6187
6201
|
"workspace": {
|
|
6188
6202
|
"char": "w",
|
|
6189
6203
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6196,7 +6210,7 @@
|
|
|
6196
6210
|
},
|
|
6197
6211
|
"hasDynamicHelp": false,
|
|
6198
6212
|
"hiddenAliases": [],
|
|
6199
|
-
"id": "tenant:
|
|
6213
|
+
"id": "tenant:license:set",
|
|
6200
6214
|
"pluginAlias": "@xano/cli",
|
|
6201
6215
|
"pluginName": "@xano/cli",
|
|
6202
6216
|
"pluginType": "core",
|
|
@@ -6207,26 +6221,29 @@
|
|
|
6207
6221
|
"dist",
|
|
6208
6222
|
"commands",
|
|
6209
6223
|
"tenant",
|
|
6210
|
-
"
|
|
6211
|
-
"
|
|
6224
|
+
"license",
|
|
6225
|
+
"set",
|
|
6212
6226
|
"index.js"
|
|
6213
6227
|
]
|
|
6214
6228
|
},
|
|
6215
|
-
"
|
|
6229
|
+
"workspace:git:pull": {
|
|
6216
6230
|
"aliases": [],
|
|
6217
6231
|
"args": {
|
|
6218
|
-
"
|
|
6219
|
-
"description": "
|
|
6220
|
-
"name": "
|
|
6232
|
+
"directory": {
|
|
6233
|
+
"description": "Output directory for imported files",
|
|
6234
|
+
"name": "directory",
|
|
6221
6235
|
"required": true
|
|
6222
6236
|
}
|
|
6223
6237
|
},
|
|
6224
|
-
"description": "
|
|
6238
|
+
"description": "Pull XanoScript files from a git repository into a local directory",
|
|
6225
6239
|
"examples": [
|
|
6226
|
-
"$ xano
|
|
6227
|
-
"$ xano
|
|
6228
|
-
"$ xano
|
|
6229
|
-
"$ xano
|
|
6240
|
+
"$ xano workspace git pull ./output -r https://github.com/owner/repo",
|
|
6241
|
+
"$ xano workspace git pull ./output -r https://github.com/owner/repo/tree/main/path/to/dir",
|
|
6242
|
+
"$ xano workspace git pull ./output -r https://github.com/owner/repo/blob/main/path/to/file.xs",
|
|
6243
|
+
"$ xano workspace git pull ./output -r git@github.com:owner/repo.git",
|
|
6244
|
+
"$ xano workspace git pull ./output -r https://github.com/owner/private-repo -t ghp_xxx",
|
|
6245
|
+
"$ xano workspace git pull ./output -r https://gitlab.com/owner/repo/-/tree/master/path",
|
|
6246
|
+
"$ xano workspace git pull ./output -r https://gitlab.com/owner/repo -b main"
|
|
6230
6247
|
],
|
|
6231
6248
|
"flags": {
|
|
6232
6249
|
"profile": {
|
|
@@ -6248,40 +6265,37 @@
|
|
|
6248
6265
|
"allowNo": false,
|
|
6249
6266
|
"type": "boolean"
|
|
6250
6267
|
},
|
|
6251
|
-
"
|
|
6252
|
-
"char": "
|
|
6253
|
-
"description": "
|
|
6254
|
-
"name": "
|
|
6268
|
+
"branch": {
|
|
6269
|
+
"char": "b",
|
|
6270
|
+
"description": "Branch, tag, or ref to fetch (defaults to repository default branch)",
|
|
6271
|
+
"name": "branch",
|
|
6255
6272
|
"required": false,
|
|
6256
6273
|
"hasDynamicHelp": false,
|
|
6257
6274
|
"multiple": false,
|
|
6258
6275
|
"type": "option"
|
|
6259
6276
|
},
|
|
6260
|
-
"
|
|
6261
|
-
"
|
|
6262
|
-
"
|
|
6263
|
-
"name": "output",
|
|
6277
|
+
"path": {
|
|
6278
|
+
"description": "Subdirectory within the repo to import from",
|
|
6279
|
+
"name": "path",
|
|
6264
6280
|
"required": false,
|
|
6265
|
-
"default": "summary",
|
|
6266
6281
|
"hasDynamicHelp": false,
|
|
6267
6282
|
"multiple": false,
|
|
6268
|
-
"options": [
|
|
6269
|
-
"summary",
|
|
6270
|
-
"json"
|
|
6271
|
-
],
|
|
6272
6283
|
"type": "option"
|
|
6273
6284
|
},
|
|
6274
|
-
"
|
|
6275
|
-
"
|
|
6276
|
-
"
|
|
6277
|
-
"
|
|
6278
|
-
"
|
|
6279
|
-
"
|
|
6285
|
+
"repo": {
|
|
6286
|
+
"char": "r",
|
|
6287
|
+
"description": "Git repository URL (GitHub HTTPS, SSH, or any git URL)",
|
|
6288
|
+
"name": "repo",
|
|
6289
|
+
"required": true,
|
|
6290
|
+
"hasDynamicHelp": false,
|
|
6291
|
+
"multiple": false,
|
|
6292
|
+
"type": "option"
|
|
6280
6293
|
},
|
|
6281
|
-
"
|
|
6282
|
-
"char": "
|
|
6283
|
-
"description": "
|
|
6284
|
-
"
|
|
6294
|
+
"token": {
|
|
6295
|
+
"char": "t",
|
|
6296
|
+
"description": "Personal access token for private repos (falls back to GITHUB_TOKEN env var)",
|
|
6297
|
+
"env": "GITHUB_TOKEN",
|
|
6298
|
+
"name": "token",
|
|
6285
6299
|
"required": false,
|
|
6286
6300
|
"hasDynamicHelp": false,
|
|
6287
6301
|
"multiple": false,
|
|
@@ -6290,7 +6304,7 @@
|
|
|
6290
6304
|
},
|
|
6291
6305
|
"hasDynamicHelp": false,
|
|
6292
6306
|
"hiddenAliases": [],
|
|
6293
|
-
"id": "
|
|
6307
|
+
"id": "workspace:git:pull",
|
|
6294
6308
|
"pluginAlias": "@xano/cli",
|
|
6295
6309
|
"pluginName": "@xano/cli",
|
|
6296
6310
|
"pluginType": "core",
|
|
@@ -6300,25 +6314,25 @@
|
|
|
6300
6314
|
"relativePath": [
|
|
6301
6315
|
"dist",
|
|
6302
6316
|
"commands",
|
|
6303
|
-
"
|
|
6304
|
-
"
|
|
6305
|
-
"
|
|
6317
|
+
"workspace",
|
|
6318
|
+
"git",
|
|
6319
|
+
"pull",
|
|
6306
6320
|
"index.js"
|
|
6307
6321
|
]
|
|
6308
6322
|
},
|
|
6309
|
-
"tenant:
|
|
6323
|
+
"tenant:backup:create": {
|
|
6310
6324
|
"aliases": [],
|
|
6311
6325
|
"args": {
|
|
6312
6326
|
"tenant_name": {
|
|
6313
|
-
"description": "Tenant name",
|
|
6327
|
+
"description": "Tenant name to back up",
|
|
6314
6328
|
"name": "tenant_name",
|
|
6315
6329
|
"required": true
|
|
6316
6330
|
}
|
|
6317
6331
|
},
|
|
6318
|
-
"description": "
|
|
6332
|
+
"description": "Create a backup for a tenant",
|
|
6319
6333
|
"examples": [
|
|
6320
|
-
"$ xano tenant
|
|
6321
|
-
"$ xano tenant
|
|
6334
|
+
"$ xano tenant backup create t1234-abcd-xyz1 --description \"Pre-deploy backup\"\nCreated backup #15 for tenant t1234-abcd-xyz1\n",
|
|
6335
|
+
"$ xano tenant backup create t1234-abcd-xyz1 -d \"Daily backup\" -o json"
|
|
6322
6336
|
],
|
|
6323
6337
|
"flags": {
|
|
6324
6338
|
"profile": {
|
|
@@ -6340,6 +6354,16 @@
|
|
|
6340
6354
|
"allowNo": false,
|
|
6341
6355
|
"type": "boolean"
|
|
6342
6356
|
},
|
|
6357
|
+
"description": {
|
|
6358
|
+
"char": "d",
|
|
6359
|
+
"description": "Backup description",
|
|
6360
|
+
"name": "description",
|
|
6361
|
+
"required": false,
|
|
6362
|
+
"default": "",
|
|
6363
|
+
"hasDynamicHelp": false,
|
|
6364
|
+
"multiple": false,
|
|
6365
|
+
"type": "option"
|
|
6366
|
+
},
|
|
6343
6367
|
"output": {
|
|
6344
6368
|
"char": "o",
|
|
6345
6369
|
"description": "Output format",
|
|
@@ -6366,7 +6390,7 @@
|
|
|
6366
6390
|
},
|
|
6367
6391
|
"hasDynamicHelp": false,
|
|
6368
6392
|
"hiddenAliases": [],
|
|
6369
|
-
"id": "tenant:
|
|
6393
|
+
"id": "tenant:backup:create",
|
|
6370
6394
|
"pluginAlias": "@xano/cli",
|
|
6371
6395
|
"pluginName": "@xano/cli",
|
|
6372
6396
|
"pluginType": "core",
|
|
@@ -6377,24 +6401,25 @@
|
|
|
6377
6401
|
"dist",
|
|
6378
6402
|
"commands",
|
|
6379
6403
|
"tenant",
|
|
6380
|
-
"
|
|
6381
|
-
"
|
|
6404
|
+
"backup",
|
|
6405
|
+
"create",
|
|
6382
6406
|
"index.js"
|
|
6383
6407
|
]
|
|
6384
6408
|
},
|
|
6385
|
-
"tenant:
|
|
6409
|
+
"tenant:backup:delete": {
|
|
6386
6410
|
"aliases": [],
|
|
6387
6411
|
"args": {
|
|
6388
6412
|
"tenant_name": {
|
|
6389
|
-
"description": "Tenant name",
|
|
6413
|
+
"description": "Tenant name that owns the backup",
|
|
6390
6414
|
"name": "tenant_name",
|
|
6391
6415
|
"required": true
|
|
6392
6416
|
}
|
|
6393
6417
|
},
|
|
6394
|
-
"description": "
|
|
6418
|
+
"description": "Delete a tenant backup permanently. This action cannot be undone.",
|
|
6395
6419
|
"examples": [
|
|
6396
|
-
"$ xano tenant
|
|
6397
|
-
"$ xano tenant
|
|
6420
|
+
"$ 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",
|
|
6421
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 --force",
|
|
6422
|
+
"$ xano tenant backup delete t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
6398
6423
|
],
|
|
6399
6424
|
"flags": {
|
|
6400
6425
|
"profile": {
|
|
@@ -6416,15 +6441,22 @@
|
|
|
6416
6441
|
"allowNo": false,
|
|
6417
6442
|
"type": "boolean"
|
|
6418
6443
|
},
|
|
6419
|
-
"
|
|
6420
|
-
"
|
|
6421
|
-
"
|
|
6422
|
-
"name": "name",
|
|
6444
|
+
"backup_id": {
|
|
6445
|
+
"description": "Backup ID to delete",
|
|
6446
|
+
"name": "backup_id",
|
|
6423
6447
|
"required": true,
|
|
6424
6448
|
"hasDynamicHelp": false,
|
|
6425
6449
|
"multiple": false,
|
|
6426
6450
|
"type": "option"
|
|
6427
6451
|
},
|
|
6452
|
+
"force": {
|
|
6453
|
+
"char": "f",
|
|
6454
|
+
"description": "Skip confirmation prompt",
|
|
6455
|
+
"name": "force",
|
|
6456
|
+
"required": false,
|
|
6457
|
+
"allowNo": false,
|
|
6458
|
+
"type": "boolean"
|
|
6459
|
+
},
|
|
6428
6460
|
"output": {
|
|
6429
6461
|
"char": "o",
|
|
6430
6462
|
"description": "Output format",
|
|
@@ -6439,14 +6471,6 @@
|
|
|
6439
6471
|
],
|
|
6440
6472
|
"type": "option"
|
|
6441
6473
|
},
|
|
6442
|
-
"value": {
|
|
6443
|
-
"description": "Environment variable value",
|
|
6444
|
-
"name": "value",
|
|
6445
|
-
"required": true,
|
|
6446
|
-
"hasDynamicHelp": false,
|
|
6447
|
-
"multiple": false,
|
|
6448
|
-
"type": "option"
|
|
6449
|
-
},
|
|
6450
6474
|
"workspace": {
|
|
6451
6475
|
"char": "w",
|
|
6452
6476
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6459,7 +6483,7 @@
|
|
|
6459
6483
|
},
|
|
6460
6484
|
"hasDynamicHelp": false,
|
|
6461
6485
|
"hiddenAliases": [],
|
|
6462
|
-
"id": "tenant:
|
|
6486
|
+
"id": "tenant:backup:delete",
|
|
6463
6487
|
"pluginAlias": "@xano/cli",
|
|
6464
6488
|
"pluginName": "@xano/cli",
|
|
6465
6489
|
"pluginType": "core",
|
|
@@ -6470,12 +6494,12 @@
|
|
|
6470
6494
|
"dist",
|
|
6471
6495
|
"commands",
|
|
6472
6496
|
"tenant",
|
|
6473
|
-
"
|
|
6474
|
-
"
|
|
6497
|
+
"backup",
|
|
6498
|
+
"delete",
|
|
6475
6499
|
"index.js"
|
|
6476
6500
|
]
|
|
6477
6501
|
},
|
|
6478
|
-
"tenant:
|
|
6502
|
+
"tenant:license:get": {
|
|
6479
6503
|
"aliases": [],
|
|
6480
6504
|
"args": {
|
|
6481
6505
|
"tenant_name": {
|
|
@@ -6484,11 +6508,12 @@
|
|
|
6484
6508
|
"required": true
|
|
6485
6509
|
}
|
|
6486
6510
|
},
|
|
6487
|
-
"description": "
|
|
6511
|
+
"description": "Get the license for a tenant",
|
|
6488
6512
|
"examples": [
|
|
6489
|
-
"$ xano tenant
|
|
6490
|
-
"$ xano tenant
|
|
6491
|
-
"$ xano tenant
|
|
6513
|
+
"$ xano tenant license get my-tenant\nLicense saved to license_my-tenant.yaml\n",
|
|
6514
|
+
"$ xano tenant license get my-tenant --file ./my-license.yaml\nLicense saved to my-license.yaml\n",
|
|
6515
|
+
"$ xano tenant license get my-tenant --view",
|
|
6516
|
+
"$ xano tenant license get my-tenant -o json"
|
|
6492
6517
|
],
|
|
6493
6518
|
"flags": {
|
|
6494
6519
|
"profile": {
|
|
@@ -6510,16 +6535,9 @@
|
|
|
6510
6535
|
"allowNo": false,
|
|
6511
6536
|
"type": "boolean"
|
|
6512
6537
|
},
|
|
6513
|
-
"clean": {
|
|
6514
|
-
"description": "Remove the source file after successful upload",
|
|
6515
|
-
"name": "clean",
|
|
6516
|
-
"required": false,
|
|
6517
|
-
"allowNo": false,
|
|
6518
|
-
"type": "boolean"
|
|
6519
|
-
},
|
|
6520
6538
|
"file": {
|
|
6521
6539
|
"char": "f",
|
|
6522
|
-
"description": "
|
|
6540
|
+
"description": "Output file path (default: license_<tenant_name>.yaml)",
|
|
6523
6541
|
"name": "file",
|
|
6524
6542
|
"required": false,
|
|
6525
6543
|
"hasDynamicHelp": false,
|
|
@@ -6540,6 +6558,13 @@
|
|
|
6540
6558
|
],
|
|
6541
6559
|
"type": "option"
|
|
6542
6560
|
},
|
|
6561
|
+
"view": {
|
|
6562
|
+
"description": "Print license to stdout instead of saving to file",
|
|
6563
|
+
"name": "view",
|
|
6564
|
+
"required": false,
|
|
6565
|
+
"allowNo": false,
|
|
6566
|
+
"type": "boolean"
|
|
6567
|
+
},
|
|
6543
6568
|
"workspace": {
|
|
6544
6569
|
"char": "w",
|
|
6545
6570
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6552,7 +6577,7 @@
|
|
|
6552
6577
|
},
|
|
6553
6578
|
"hasDynamicHelp": false,
|
|
6554
6579
|
"hiddenAliases": [],
|
|
6555
|
-
"id": "tenant:
|
|
6580
|
+
"id": "tenant:license:get",
|
|
6556
6581
|
"pluginAlias": "@xano/cli",
|
|
6557
6582
|
"pluginName": "@xano/cli",
|
|
6558
6583
|
"pluginType": "core",
|
|
@@ -6563,26 +6588,24 @@
|
|
|
6563
6588
|
"dist",
|
|
6564
6589
|
"commands",
|
|
6565
6590
|
"tenant",
|
|
6566
|
-
"
|
|
6567
|
-
"
|
|
6591
|
+
"license",
|
|
6592
|
+
"get",
|
|
6568
6593
|
"index.js"
|
|
6569
6594
|
]
|
|
6570
6595
|
},
|
|
6571
|
-
"tenant:
|
|
6596
|
+
"tenant:backup:import": {
|
|
6572
6597
|
"aliases": [],
|
|
6573
6598
|
"args": {
|
|
6574
6599
|
"tenant_name": {
|
|
6575
|
-
"description": "Tenant name",
|
|
6600
|
+
"description": "Tenant name to import backup into",
|
|
6576
6601
|
"name": "tenant_name",
|
|
6577
6602
|
"required": true
|
|
6578
6603
|
}
|
|
6579
6604
|
},
|
|
6580
|
-
"description": "
|
|
6605
|
+
"description": "Import a backup file into a tenant",
|
|
6581
6606
|
"examples": [
|
|
6582
|
-
"$ xano tenant
|
|
6583
|
-
"$ xano tenant
|
|
6584
|
-
"$ xano tenant license get my-tenant --view",
|
|
6585
|
-
"$ xano tenant license get my-tenant -o json"
|
|
6607
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz\nImported backup as #15 for tenant t1234-abcd-xyz1\n",
|
|
6608
|
+
"$ xano tenant backup import t1234-abcd-xyz1 --file ./my-backup.tar.gz --description \"Restored from production\" -o json"
|
|
6586
6609
|
],
|
|
6587
6610
|
"flags": {
|
|
6588
6611
|
"profile": {
|
|
@@ -6604,11 +6627,21 @@
|
|
|
6604
6627
|
"allowNo": false,
|
|
6605
6628
|
"type": "boolean"
|
|
6606
6629
|
},
|
|
6630
|
+
"description": {
|
|
6631
|
+
"char": "d",
|
|
6632
|
+
"description": "Backup description",
|
|
6633
|
+
"name": "description",
|
|
6634
|
+
"required": false,
|
|
6635
|
+
"default": "",
|
|
6636
|
+
"hasDynamicHelp": false,
|
|
6637
|
+
"multiple": false,
|
|
6638
|
+
"type": "option"
|
|
6639
|
+
},
|
|
6607
6640
|
"file": {
|
|
6608
6641
|
"char": "f",
|
|
6609
|
-
"description": "
|
|
6642
|
+
"description": "Path to the backup file (.tar.gz)",
|
|
6610
6643
|
"name": "file",
|
|
6611
|
-
"required":
|
|
6644
|
+
"required": true,
|
|
6612
6645
|
"hasDynamicHelp": false,
|
|
6613
6646
|
"multiple": false,
|
|
6614
6647
|
"type": "option"
|
|
@@ -6627,13 +6660,6 @@
|
|
|
6627
6660
|
],
|
|
6628
6661
|
"type": "option"
|
|
6629
6662
|
},
|
|
6630
|
-
"view": {
|
|
6631
|
-
"description": "Print license to stdout instead of saving to file",
|
|
6632
|
-
"name": "view",
|
|
6633
|
-
"required": false,
|
|
6634
|
-
"allowNo": false,
|
|
6635
|
-
"type": "boolean"
|
|
6636
|
-
},
|
|
6637
6663
|
"workspace": {
|
|
6638
6664
|
"char": "w",
|
|
6639
6665
|
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
@@ -6646,7 +6672,7 @@
|
|
|
6646
6672
|
},
|
|
6647
6673
|
"hasDynamicHelp": false,
|
|
6648
6674
|
"hiddenAliases": [],
|
|
6649
|
-
"id": "tenant:
|
|
6675
|
+
"id": "tenant:backup:import",
|
|
6650
6676
|
"pluginAlias": "@xano/cli",
|
|
6651
6677
|
"pluginName": "@xano/cli",
|
|
6652
6678
|
"pluginType": "core",
|
|
@@ -6657,26 +6683,24 @@
|
|
|
6657
6683
|
"dist",
|
|
6658
6684
|
"commands",
|
|
6659
6685
|
"tenant",
|
|
6660
|
-
"
|
|
6661
|
-
"
|
|
6686
|
+
"backup",
|
|
6687
|
+
"import",
|
|
6662
6688
|
"index.js"
|
|
6663
6689
|
]
|
|
6664
6690
|
},
|
|
6665
|
-
"tenant:
|
|
6691
|
+
"tenant:backup:list": {
|
|
6666
6692
|
"aliases": [],
|
|
6667
6693
|
"args": {
|
|
6668
6694
|
"tenant_name": {
|
|
6669
|
-
"description": "Tenant name",
|
|
6695
|
+
"description": "Tenant name to list backups for",
|
|
6670
6696
|
"name": "tenant_name",
|
|
6671
6697
|
"required": true
|
|
6672
6698
|
}
|
|
6673
6699
|
},
|
|
6674
|
-
"description": "
|
|
6700
|
+
"description": "List backups for a tenant",
|
|
6675
6701
|
"examples": [
|
|
6676
|
-
"$ xano tenant
|
|
6677
|
-
"$ xano tenant
|
|
6678
|
-
"$ xano tenant license set my-tenant --value 'key: value'",
|
|
6679
|
-
"$ xano tenant license set my-tenant -o json"
|
|
6702
|
+
"$ 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",
|
|
6703
|
+
"$ xano tenant backup list t1234-abcd-xyz1 -o json"
|
|
6680
6704
|
],
|
|
6681
6705
|
"flags": {
|
|
6682
6706
|
"profile": {
|
|
@@ -6698,28 +6722,6 @@
|
|
|
6698
6722
|
"allowNo": false,
|
|
6699
6723
|
"type": "boolean"
|
|
6700
6724
|
},
|
|
6701
|
-
"clean": {
|
|
6702
|
-
"description": "Remove the source file after successful upload",
|
|
6703
|
-
"exclusive": [
|
|
6704
|
-
"value"
|
|
6705
|
-
],
|
|
6706
|
-
"name": "clean",
|
|
6707
|
-
"required": false,
|
|
6708
|
-
"allowNo": false,
|
|
6709
|
-
"type": "boolean"
|
|
6710
|
-
},
|
|
6711
|
-
"file": {
|
|
6712
|
-
"char": "f",
|
|
6713
|
-
"description": "Path to license file (default: license_<tenant_name>.yaml)",
|
|
6714
|
-
"exclusive": [
|
|
6715
|
-
"value"
|
|
6716
|
-
],
|
|
6717
|
-
"name": "file",
|
|
6718
|
-
"required": false,
|
|
6719
|
-
"hasDynamicHelp": false,
|
|
6720
|
-
"multiple": false,
|
|
6721
|
-
"type": "option"
|
|
6722
|
-
},
|
|
6723
6725
|
"output": {
|
|
6724
6726
|
"char": "o",
|
|
6725
6727
|
"description": "Output format",
|
|
@@ -6734,14 +6736,11 @@
|
|
|
6734
6736
|
],
|
|
6735
6737
|
"type": "option"
|
|
6736
6738
|
},
|
|
6737
|
-
"
|
|
6738
|
-
"description": "
|
|
6739
|
-
"
|
|
6740
|
-
"file",
|
|
6741
|
-
"clean"
|
|
6742
|
-
],
|
|
6743
|
-
"name": "value",
|
|
6739
|
+
"page": {
|
|
6740
|
+
"description": "Page number for pagination",
|
|
6741
|
+
"name": "page",
|
|
6744
6742
|
"required": false,
|
|
6743
|
+
"default": 1,
|
|
6745
6744
|
"hasDynamicHelp": false,
|
|
6746
6745
|
"multiple": false,
|
|
6747
6746
|
"type": "option"
|
|
@@ -6758,7 +6757,7 @@
|
|
|
6758
6757
|
},
|
|
6759
6758
|
"hasDynamicHelp": false,
|
|
6760
6759
|
"hiddenAliases": [],
|
|
6761
|
-
"id": "tenant:
|
|
6760
|
+
"id": "tenant:backup:list",
|
|
6762
6761
|
"pluginAlias": "@xano/cli",
|
|
6763
6762
|
"pluginName": "@xano/cli",
|
|
6764
6763
|
"pluginType": "core",
|
|
@@ -6769,29 +6768,25 @@
|
|
|
6769
6768
|
"dist",
|
|
6770
6769
|
"commands",
|
|
6771
6770
|
"tenant",
|
|
6772
|
-
"
|
|
6773
|
-
"
|
|
6771
|
+
"backup",
|
|
6772
|
+
"list",
|
|
6774
6773
|
"index.js"
|
|
6775
6774
|
]
|
|
6776
6775
|
},
|
|
6777
|
-
"
|
|
6776
|
+
"tenant:backup:export": {
|
|
6778
6777
|
"aliases": [],
|
|
6779
6778
|
"args": {
|
|
6780
|
-
"
|
|
6781
|
-
"description": "
|
|
6782
|
-
"name": "
|
|
6779
|
+
"tenant_name": {
|
|
6780
|
+
"description": "Tenant name to export backup from",
|
|
6781
|
+
"name": "tenant_name",
|
|
6783
6782
|
"required": true
|
|
6784
6783
|
}
|
|
6785
6784
|
},
|
|
6786
|
-
"description": "
|
|
6785
|
+
"description": "Export (download) a tenant backup to a local file",
|
|
6787
6786
|
"examples": [
|
|
6788
|
-
"$ xano
|
|
6789
|
-
"$ xano
|
|
6790
|
-
"$ xano
|
|
6791
|
-
"$ xano workspace git pull ./output -r git@github.com:owner/repo.git",
|
|
6792
|
-
"$ xano workspace git pull ./output -r https://github.com/owner/private-repo -t ghp_xxx",
|
|
6793
|
-
"$ xano workspace git pull ./output -r https://gitlab.com/owner/repo/-/tree/master/path",
|
|
6794
|
-
"$ xano workspace git pull ./output -r https://gitlab.com/owner/repo -b main"
|
|
6787
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10\nDownloaded backup #10 to ./tenant-t1234-abcd-xyz1-backup-10.tar.gz\n",
|
|
6788
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 --output ./backups/my-backup.tar.gz",
|
|
6789
|
+
"$ xano tenant backup export t1234-abcd-xyz1 --backup_id 10 -o json"
|
|
6795
6790
|
],
|
|
6796
6791
|
"flags": {
|
|
6797
6792
|
"profile": {
|
|
@@ -6813,37 +6808,40 @@
|
|
|
6813
6808
|
"allowNo": false,
|
|
6814
6809
|
"type": "boolean"
|
|
6815
6810
|
},
|
|
6816
|
-
"
|
|
6817
|
-
"
|
|
6818
|
-
"
|
|
6819
|
-
"
|
|
6820
|
-
"required": false,
|
|
6811
|
+
"backup_id": {
|
|
6812
|
+
"description": "Backup ID to export",
|
|
6813
|
+
"name": "backup_id",
|
|
6814
|
+
"required": true,
|
|
6821
6815
|
"hasDynamicHelp": false,
|
|
6822
6816
|
"multiple": false,
|
|
6823
6817
|
"type": "option"
|
|
6824
6818
|
},
|
|
6825
|
-
"
|
|
6826
|
-
"
|
|
6827
|
-
"
|
|
6819
|
+
"format": {
|
|
6820
|
+
"char": "o",
|
|
6821
|
+
"description": "Output format",
|
|
6822
|
+
"name": "format",
|
|
6828
6823
|
"required": false,
|
|
6824
|
+
"default": "summary",
|
|
6829
6825
|
"hasDynamicHelp": false,
|
|
6830
6826
|
"multiple": false,
|
|
6827
|
+
"options": [
|
|
6828
|
+
"summary",
|
|
6829
|
+
"json"
|
|
6830
|
+
],
|
|
6831
6831
|
"type": "option"
|
|
6832
6832
|
},
|
|
6833
|
-
"
|
|
6834
|
-
"
|
|
6835
|
-
"
|
|
6836
|
-
"
|
|
6837
|
-
"required": true,
|
|
6833
|
+
"output": {
|
|
6834
|
+
"description": "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)",
|
|
6835
|
+
"name": "output",
|
|
6836
|
+
"required": false,
|
|
6838
6837
|
"hasDynamicHelp": false,
|
|
6839
6838
|
"multiple": false,
|
|
6840
6839
|
"type": "option"
|
|
6841
6840
|
},
|
|
6842
|
-
"
|
|
6843
|
-
"char": "
|
|
6844
|
-
"description": "
|
|
6845
|
-
"
|
|
6846
|
-
"name": "token",
|
|
6841
|
+
"workspace": {
|
|
6842
|
+
"char": "w",
|
|
6843
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6844
|
+
"name": "workspace",
|
|
6847
6845
|
"required": false,
|
|
6848
6846
|
"hasDynamicHelp": false,
|
|
6849
6847
|
"multiple": false,
|
|
@@ -6852,7 +6850,7 @@
|
|
|
6852
6850
|
},
|
|
6853
6851
|
"hasDynamicHelp": false,
|
|
6854
6852
|
"hiddenAliases": [],
|
|
6855
|
-
"id": "
|
|
6853
|
+
"id": "tenant:backup:export",
|
|
6856
6854
|
"pluginAlias": "@xano/cli",
|
|
6857
6855
|
"pluginName": "@xano/cli",
|
|
6858
6856
|
"pluginType": "core",
|
|
@@ -6862,27 +6860,25 @@
|
|
|
6862
6860
|
"relativePath": [
|
|
6863
6861
|
"dist",
|
|
6864
6862
|
"commands",
|
|
6865
|
-
"
|
|
6866
|
-
"
|
|
6867
|
-
"
|
|
6863
|
+
"tenant",
|
|
6864
|
+
"backup",
|
|
6865
|
+
"export",
|
|
6868
6866
|
"index.js"
|
|
6869
6867
|
]
|
|
6870
6868
|
},
|
|
6871
|
-
"tenant:
|
|
6869
|
+
"tenant:backup:restore": {
|
|
6872
6870
|
"aliases": [],
|
|
6873
6871
|
"args": {
|
|
6874
|
-
"
|
|
6875
|
-
"description": "Tenant
|
|
6876
|
-
"name": "
|
|
6872
|
+
"tenant_name": {
|
|
6873
|
+
"description": "Tenant name to restore",
|
|
6874
|
+
"name": "tenant_name",
|
|
6877
6875
|
"required": true
|
|
6878
6876
|
}
|
|
6879
6877
|
},
|
|
6880
|
-
"description": "
|
|
6878
|
+
"description": "Restore a tenant from a backup. This replaces the current tenant data.",
|
|
6881
6879
|
"examples": [
|
|
6882
|
-
"$ xano tenant
|
|
6883
|
-
"$ xano tenant
|
|
6884
|
-
"$ xano tenant cluster license get 1 --view",
|
|
6885
|
-
"$ xano tenant cluster license get 1 -o json"
|
|
6880
|
+
"$ 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",
|
|
6881
|
+
"$ xano tenant backup restore t1234-abcd-xyz1 --backup_id 10 --force -o json"
|
|
6886
6882
|
],
|
|
6887
6883
|
"flags": {
|
|
6888
6884
|
"profile": {
|
|
@@ -6904,15 +6900,22 @@
|
|
|
6904
6900
|
"allowNo": false,
|
|
6905
6901
|
"type": "boolean"
|
|
6906
6902
|
},
|
|
6907
|
-
"
|
|
6908
|
-
"
|
|
6909
|
-
"
|
|
6910
|
-
"
|
|
6911
|
-
"required": false,
|
|
6903
|
+
"backup_id": {
|
|
6904
|
+
"description": "Backup ID to restore from",
|
|
6905
|
+
"name": "backup_id",
|
|
6906
|
+
"required": true,
|
|
6912
6907
|
"hasDynamicHelp": false,
|
|
6913
6908
|
"multiple": false,
|
|
6914
6909
|
"type": "option"
|
|
6915
6910
|
},
|
|
6911
|
+
"force": {
|
|
6912
|
+
"char": "f",
|
|
6913
|
+
"description": "Skip confirmation prompt",
|
|
6914
|
+
"name": "force",
|
|
6915
|
+
"required": false,
|
|
6916
|
+
"allowNo": false,
|
|
6917
|
+
"type": "boolean"
|
|
6918
|
+
},
|
|
6916
6919
|
"output": {
|
|
6917
6920
|
"char": "o",
|
|
6918
6921
|
"description": "Output format",
|
|
@@ -6927,17 +6930,19 @@
|
|
|
6927
6930
|
],
|
|
6928
6931
|
"type": "option"
|
|
6929
6932
|
},
|
|
6930
|
-
"
|
|
6931
|
-
"
|
|
6932
|
-
"
|
|
6933
|
+
"workspace": {
|
|
6934
|
+
"char": "w",
|
|
6935
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
6936
|
+
"name": "workspace",
|
|
6933
6937
|
"required": false,
|
|
6934
|
-
"
|
|
6935
|
-
"
|
|
6938
|
+
"hasDynamicHelp": false,
|
|
6939
|
+
"multiple": false,
|
|
6940
|
+
"type": "option"
|
|
6936
6941
|
}
|
|
6937
6942
|
},
|
|
6938
6943
|
"hasDynamicHelp": false,
|
|
6939
6944
|
"hiddenAliases": [],
|
|
6940
|
-
"id": "tenant:
|
|
6945
|
+
"id": "tenant:backup:restore",
|
|
6941
6946
|
"pluginAlias": "@xano/cli",
|
|
6942
6947
|
"pluginName": "@xano/cli",
|
|
6943
6948
|
"pluginType": "core",
|
|
@@ -6948,26 +6953,26 @@
|
|
|
6948
6953
|
"dist",
|
|
6949
6954
|
"commands",
|
|
6950
6955
|
"tenant",
|
|
6951
|
-
"
|
|
6952
|
-
"
|
|
6953
|
-
"get",
|
|
6956
|
+
"backup",
|
|
6957
|
+
"restore",
|
|
6954
6958
|
"index.js"
|
|
6955
6959
|
]
|
|
6956
6960
|
},
|
|
6957
|
-
"tenant:cluster:
|
|
6961
|
+
"tenant:cluster:license:get": {
|
|
6958
6962
|
"aliases": [],
|
|
6959
6963
|
"args": {
|
|
6960
6964
|
"cluster_id": {
|
|
6961
|
-
"description": "
|
|
6965
|
+
"description": "Tenant cluster ID",
|
|
6962
6966
|
"name": "cluster_id",
|
|
6963
6967
|
"required": true
|
|
6964
6968
|
}
|
|
6965
6969
|
},
|
|
6966
|
-
"description": "
|
|
6970
|
+
"description": "Get the license (kubeconfig) for a tenant cluster",
|
|
6967
6971
|
"examples": [
|
|
6968
|
-
"$ xano tenant cluster
|
|
6969
|
-
"$ xano tenant cluster
|
|
6970
|
-
"$ xano tenant cluster
|
|
6972
|
+
"$ xano tenant cluster license get 1\nLicense saved to kubeconfig-1.yaml\n",
|
|
6973
|
+
"$ xano tenant cluster license get 1 --file ./my-kubeconfig.yaml\nLicense saved to my-kubeconfig.yaml\n",
|
|
6974
|
+
"$ xano tenant cluster license get 1 --view",
|
|
6975
|
+
"$ xano tenant cluster license get 1 -o json"
|
|
6971
6976
|
],
|
|
6972
6977
|
"flags": {
|
|
6973
6978
|
"profile": {
|
|
@@ -6989,13 +6994,14 @@
|
|
|
6989
6994
|
"allowNo": false,
|
|
6990
6995
|
"type": "boolean"
|
|
6991
6996
|
},
|
|
6992
|
-
"
|
|
6997
|
+
"file": {
|
|
6993
6998
|
"char": "f",
|
|
6994
|
-
"description": "
|
|
6995
|
-
"name": "
|
|
6999
|
+
"description": "Output file path (default: kubeconfig_<cluster_id>.yaml)",
|
|
7000
|
+
"name": "file",
|
|
6996
7001
|
"required": false,
|
|
6997
|
-
"
|
|
6998
|
-
"
|
|
7002
|
+
"hasDynamicHelp": false,
|
|
7003
|
+
"multiple": false,
|
|
7004
|
+
"type": "option"
|
|
6999
7005
|
},
|
|
7000
7006
|
"output": {
|
|
7001
7007
|
"char": "o",
|
|
@@ -7010,11 +7016,18 @@
|
|
|
7010
7016
|
"json"
|
|
7011
7017
|
],
|
|
7012
7018
|
"type": "option"
|
|
7019
|
+
},
|
|
7020
|
+
"view": {
|
|
7021
|
+
"description": "Print license to stdout instead of saving to file",
|
|
7022
|
+
"name": "view",
|
|
7023
|
+
"required": false,
|
|
7024
|
+
"allowNo": false,
|
|
7025
|
+
"type": "boolean"
|
|
7013
7026
|
}
|
|
7014
7027
|
},
|
|
7015
7028
|
"hasDynamicHelp": false,
|
|
7016
7029
|
"hiddenAliases": [],
|
|
7017
|
-
"id": "tenant:cluster:
|
|
7030
|
+
"id": "tenant:cluster:license:get",
|
|
7018
7031
|
"pluginAlias": "@xano/cli",
|
|
7019
7032
|
"pluginName": "@xano/cli",
|
|
7020
7033
|
"pluginType": "core",
|
|
@@ -7026,7 +7039,8 @@
|
|
|
7026
7039
|
"commands",
|
|
7027
7040
|
"tenant",
|
|
7028
7041
|
"cluster",
|
|
7029
|
-
"
|
|
7042
|
+
"license",
|
|
7043
|
+
"get",
|
|
7030
7044
|
"index.js"
|
|
7031
7045
|
]
|
|
7032
7046
|
},
|
|
@@ -7135,5 +7149,5 @@
|
|
|
7135
7149
|
]
|
|
7136
7150
|
}
|
|
7137
7151
|
},
|
|
7138
|
-
"version": "0.0.
|
|
7152
|
+
"version": "0.0.80-beta.0"
|
|
7139
7153
|
}
|