@xano/cli 0.0.27 → 0.0.29
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/oclif.manifest.json
CHANGED
|
@@ -35,16 +35,14 @@
|
|
|
35
35
|
"index.js"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"branch:create": {
|
|
39
39
|
"aliases": [],
|
|
40
40
|
"args": {},
|
|
41
|
-
"description": "Create a new
|
|
41
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
42
42
|
"examples": [
|
|
43
|
-
"$ xano
|
|
44
|
-
"$ xano
|
|
45
|
-
"$ xano
|
|
46
|
-
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
47
|
-
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
43
|
+
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
44
|
+
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
45
|
+
"$ 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"
|
|
48
46
|
],
|
|
49
47
|
"flags": {
|
|
50
48
|
"profile": {
|
|
@@ -66,29 +64,33 @@
|
|
|
66
64
|
"allowNo": false,
|
|
67
65
|
"type": "boolean"
|
|
68
66
|
},
|
|
69
|
-
"
|
|
70
|
-
"char": "
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
],
|
|
74
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
75
|
-
"name": "edit",
|
|
67
|
+
"color": {
|
|
68
|
+
"char": "c",
|
|
69
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
70
|
+
"name": "color",
|
|
76
71
|
"required": false,
|
|
77
|
-
"
|
|
78
|
-
"
|
|
72
|
+
"hasDynamicHelp": false,
|
|
73
|
+
"multiple": false,
|
|
74
|
+
"type": "option"
|
|
79
75
|
},
|
|
80
|
-
"
|
|
81
|
-
"char": "
|
|
82
|
-
"description": "
|
|
83
|
-
"
|
|
84
|
-
"stdin"
|
|
85
|
-
],
|
|
86
|
-
"name": "file",
|
|
76
|
+
"description": {
|
|
77
|
+
"char": "d",
|
|
78
|
+
"description": "Description for the new branch",
|
|
79
|
+
"name": "description",
|
|
87
80
|
"required": false,
|
|
88
81
|
"hasDynamicHelp": false,
|
|
89
82
|
"multiple": false,
|
|
90
83
|
"type": "option"
|
|
91
84
|
},
|
|
85
|
+
"label": {
|
|
86
|
+
"char": "l",
|
|
87
|
+
"description": "Label for the new branch",
|
|
88
|
+
"name": "label",
|
|
89
|
+
"required": true,
|
|
90
|
+
"hasDynamicHelp": false,
|
|
91
|
+
"multiple": false,
|
|
92
|
+
"type": "option"
|
|
93
|
+
},
|
|
92
94
|
"output": {
|
|
93
95
|
"char": "o",
|
|
94
96
|
"description": "Output format",
|
|
@@ -103,20 +105,19 @@
|
|
|
103
105
|
],
|
|
104
106
|
"type": "option"
|
|
105
107
|
},
|
|
106
|
-
"
|
|
108
|
+
"source": {
|
|
107
109
|
"char": "s",
|
|
108
|
-
"description": "
|
|
109
|
-
"
|
|
110
|
-
"file"
|
|
111
|
-
],
|
|
112
|
-
"name": "stdin",
|
|
110
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
111
|
+
"name": "source",
|
|
113
112
|
"required": false,
|
|
114
|
-
"
|
|
115
|
-
"
|
|
113
|
+
"default": "v1",
|
|
114
|
+
"hasDynamicHelp": false,
|
|
115
|
+
"multiple": false,
|
|
116
|
+
"type": "option"
|
|
116
117
|
},
|
|
117
118
|
"workspace": {
|
|
118
119
|
"char": "w",
|
|
119
|
-
"description": "Workspace ID (
|
|
120
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
120
121
|
"name": "workspace",
|
|
121
122
|
"required": false,
|
|
122
123
|
"hasDynamicHelp": false,
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
},
|
|
127
128
|
"hasDynamicHelp": false,
|
|
128
129
|
"hiddenAliases": [],
|
|
129
|
-
"id": "
|
|
130
|
+
"id": "branch:create",
|
|
130
131
|
"pluginAlias": "@xano/cli",
|
|
131
132
|
"pluginName": "@xano/cli",
|
|
132
133
|
"pluginType": "core",
|
|
@@ -136,30 +137,25 @@
|
|
|
136
137
|
"relativePath": [
|
|
137
138
|
"dist",
|
|
138
139
|
"commands",
|
|
139
|
-
"
|
|
140
|
+
"branch",
|
|
140
141
|
"create",
|
|
141
142
|
"index.js"
|
|
142
143
|
]
|
|
143
144
|
},
|
|
144
|
-
"
|
|
145
|
+
"branch:delete": {
|
|
145
146
|
"aliases": [],
|
|
146
147
|
"args": {
|
|
147
|
-
"
|
|
148
|
-
"description": "
|
|
149
|
-
"name": "
|
|
150
|
-
"required":
|
|
148
|
+
"branch_label": {
|
|
149
|
+
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
150
|
+
"name": "branch_label",
|
|
151
|
+
"required": true
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
|
-
"description": "
|
|
154
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
154
155
|
"examples": [
|
|
155
|
-
"$ xano
|
|
156
|
-
"$ xano
|
|
157
|
-
"$ xano
|
|
158
|
-
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
159
|
-
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
160
|
-
"$ 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",
|
|
161
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
162
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
156
|
+
"$ 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",
|
|
157
|
+
"$ xano branch delete dev --force\nDeleted branch: dev\n",
|
|
158
|
+
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
163
159
|
],
|
|
164
160
|
"flags": {
|
|
165
161
|
"profile": {
|
|
@@ -181,26 +177,14 @@
|
|
|
181
177
|
"allowNo": false,
|
|
182
178
|
"type": "boolean"
|
|
183
179
|
},
|
|
184
|
-
"
|
|
185
|
-
"char": "
|
|
186
|
-
"description": "
|
|
187
|
-
"name": "
|
|
180
|
+
"force": {
|
|
181
|
+
"char": "f",
|
|
182
|
+
"description": "Skip confirmation prompt",
|
|
183
|
+
"name": "force",
|
|
188
184
|
"required": false,
|
|
189
185
|
"allowNo": false,
|
|
190
186
|
"type": "boolean"
|
|
191
187
|
},
|
|
192
|
-
"file": {
|
|
193
|
-
"char": "f",
|
|
194
|
-
"description": "Path to file containing XanoScript code",
|
|
195
|
-
"exclusive": [
|
|
196
|
-
"stdin"
|
|
197
|
-
],
|
|
198
|
-
"name": "file",
|
|
199
|
-
"required": false,
|
|
200
|
-
"hasDynamicHelp": false,
|
|
201
|
-
"multiple": false,
|
|
202
|
-
"type": "option"
|
|
203
|
-
},
|
|
204
188
|
"output": {
|
|
205
189
|
"char": "o",
|
|
206
190
|
"description": "Output format",
|
|
@@ -215,27 +199,9 @@
|
|
|
215
199
|
],
|
|
216
200
|
"type": "option"
|
|
217
201
|
},
|
|
218
|
-
"publish": {
|
|
219
|
-
"description": "Publish the function after editing",
|
|
220
|
-
"name": "publish",
|
|
221
|
-
"required": false,
|
|
222
|
-
"allowNo": false,
|
|
223
|
-
"type": "boolean"
|
|
224
|
-
},
|
|
225
|
-
"stdin": {
|
|
226
|
-
"char": "s",
|
|
227
|
-
"description": "Read XanoScript code from stdin",
|
|
228
|
-
"exclusive": [
|
|
229
|
-
"file"
|
|
230
|
-
],
|
|
231
|
-
"name": "stdin",
|
|
232
|
-
"required": false,
|
|
233
|
-
"allowNo": false,
|
|
234
|
-
"type": "boolean"
|
|
235
|
-
},
|
|
236
202
|
"workspace": {
|
|
237
203
|
"char": "w",
|
|
238
|
-
"description": "Workspace ID (
|
|
204
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
239
205
|
"name": "workspace",
|
|
240
206
|
"required": false,
|
|
241
207
|
"hasDynamicHelp": false,
|
|
@@ -245,7 +211,7 @@
|
|
|
245
211
|
},
|
|
246
212
|
"hasDynamicHelp": false,
|
|
247
213
|
"hiddenAliases": [],
|
|
248
|
-
"id": "
|
|
214
|
+
"id": "branch:delete",
|
|
249
215
|
"pluginAlias": "@xano/cli",
|
|
250
216
|
"pluginName": "@xano/cli",
|
|
251
217
|
"pluginType": "core",
|
|
@@ -255,28 +221,25 @@
|
|
|
255
221
|
"relativePath": [
|
|
256
222
|
"dist",
|
|
257
223
|
"commands",
|
|
258
|
-
"
|
|
259
|
-
"
|
|
224
|
+
"branch",
|
|
225
|
+
"delete",
|
|
260
226
|
"index.js"
|
|
261
227
|
]
|
|
262
228
|
},
|
|
263
|
-
"
|
|
229
|
+
"branch:edit": {
|
|
264
230
|
"aliases": [],
|
|
265
231
|
"args": {
|
|
266
|
-
"
|
|
267
|
-
"description": "
|
|
268
|
-
"name": "
|
|
269
|
-
"required":
|
|
232
|
+
"branch_label": {
|
|
233
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
234
|
+
"name": "branch_label",
|
|
235
|
+
"required": true
|
|
270
236
|
}
|
|
271
237
|
},
|
|
272
|
-
"description": "
|
|
238
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
273
239
|
"examples": [
|
|
274
|
-
"$ xano
|
|
275
|
-
"$ xano
|
|
276
|
-
"$ xano
|
|
277
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
278
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
279
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
240
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
241
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
242
|
+
"$ 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"
|
|
280
243
|
],
|
|
281
244
|
"flags": {
|
|
282
245
|
"profile": {
|
|
@@ -298,19 +261,32 @@
|
|
|
298
261
|
"allowNo": false,
|
|
299
262
|
"type": "boolean"
|
|
300
263
|
},
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"
|
|
264
|
+
"color": {
|
|
265
|
+
"char": "c",
|
|
266
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
267
|
+
"name": "color",
|
|
304
268
|
"required": false,
|
|
305
|
-
"
|
|
306
|
-
"
|
|
269
|
+
"hasDynamicHelp": false,
|
|
270
|
+
"multiple": false,
|
|
271
|
+
"type": "option"
|
|
307
272
|
},
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
"
|
|
273
|
+
"description": {
|
|
274
|
+
"char": "d",
|
|
275
|
+
"description": "New description for the branch",
|
|
276
|
+
"name": "description",
|
|
311
277
|
"required": false,
|
|
312
|
-
"
|
|
313
|
-
"
|
|
278
|
+
"hasDynamicHelp": false,
|
|
279
|
+
"multiple": false,
|
|
280
|
+
"type": "option"
|
|
281
|
+
},
|
|
282
|
+
"label": {
|
|
283
|
+
"char": "l",
|
|
284
|
+
"description": "New label for the branch",
|
|
285
|
+
"name": "label",
|
|
286
|
+
"required": false,
|
|
287
|
+
"hasDynamicHelp": false,
|
|
288
|
+
"multiple": false,
|
|
289
|
+
"type": "option"
|
|
314
290
|
},
|
|
315
291
|
"output": {
|
|
316
292
|
"char": "o",
|
|
@@ -322,14 +298,13 @@
|
|
|
322
298
|
"multiple": false,
|
|
323
299
|
"options": [
|
|
324
300
|
"summary",
|
|
325
|
-
"json"
|
|
326
|
-
"xs"
|
|
301
|
+
"json"
|
|
327
302
|
],
|
|
328
303
|
"type": "option"
|
|
329
304
|
},
|
|
330
305
|
"workspace": {
|
|
331
306
|
"char": "w",
|
|
332
|
-
"description": "Workspace ID (
|
|
307
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
333
308
|
"name": "workspace",
|
|
334
309
|
"required": false,
|
|
335
310
|
"hasDynamicHelp": false,
|
|
@@ -339,7 +314,7 @@
|
|
|
339
314
|
},
|
|
340
315
|
"hasDynamicHelp": false,
|
|
341
316
|
"hiddenAliases": [],
|
|
342
|
-
"id": "
|
|
317
|
+
"id": "branch:edit",
|
|
343
318
|
"pluginAlias": "@xano/cli",
|
|
344
319
|
"pluginName": "@xano/cli",
|
|
345
320
|
"pluginType": "core",
|
|
@@ -349,20 +324,25 @@
|
|
|
349
324
|
"relativePath": [
|
|
350
325
|
"dist",
|
|
351
326
|
"commands",
|
|
352
|
-
"
|
|
353
|
-
"
|
|
327
|
+
"branch",
|
|
328
|
+
"edit",
|
|
354
329
|
"index.js"
|
|
355
330
|
]
|
|
356
331
|
},
|
|
357
|
-
"
|
|
332
|
+
"branch:get": {
|
|
358
333
|
"aliases": [],
|
|
359
|
-
"args": {
|
|
360
|
-
|
|
334
|
+
"args": {
|
|
335
|
+
"branch_label": {
|
|
336
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
337
|
+
"name": "branch_label",
|
|
338
|
+
"required": true
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"description": "Get details for a specific branch",
|
|
361
342
|
"examples": [
|
|
362
|
-
"$ xano
|
|
363
|
-
"$ xano
|
|
364
|
-
"$ xano
|
|
365
|
-
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
343
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
344
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
345
|
+
"$ 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"
|
|
366
346
|
],
|
|
367
347
|
"flags": {
|
|
368
348
|
"profile": {
|
|
@@ -384,33 +364,6 @@
|
|
|
384
364
|
"allowNo": false,
|
|
385
365
|
"type": "boolean"
|
|
386
366
|
},
|
|
387
|
-
"include_draft": {
|
|
388
|
-
"description": "Include draft functions",
|
|
389
|
-
"name": "include_draft",
|
|
390
|
-
"required": false,
|
|
391
|
-
"allowNo": false,
|
|
392
|
-
"type": "boolean"
|
|
393
|
-
},
|
|
394
|
-
"include_xanoscript": {
|
|
395
|
-
"description": "Include XanoScript in response",
|
|
396
|
-
"name": "include_xanoscript",
|
|
397
|
-
"required": false,
|
|
398
|
-
"allowNo": false,
|
|
399
|
-
"type": "boolean"
|
|
400
|
-
},
|
|
401
|
-
"order": {
|
|
402
|
-
"description": "Sort order",
|
|
403
|
-
"name": "order",
|
|
404
|
-
"required": false,
|
|
405
|
-
"default": "desc",
|
|
406
|
-
"hasDynamicHelp": false,
|
|
407
|
-
"multiple": false,
|
|
408
|
-
"options": [
|
|
409
|
-
"asc",
|
|
410
|
-
"desc"
|
|
411
|
-
],
|
|
412
|
-
"type": "option"
|
|
413
|
-
},
|
|
414
367
|
"output": {
|
|
415
368
|
"char": "o",
|
|
416
369
|
"description": "Output format",
|
|
@@ -425,37 +378,10 @@
|
|
|
425
378
|
],
|
|
426
379
|
"type": "option"
|
|
427
380
|
},
|
|
428
|
-
"
|
|
429
|
-
"
|
|
430
|
-
"
|
|
431
|
-
"
|
|
432
|
-
"default": 1,
|
|
433
|
-
"hasDynamicHelp": false,
|
|
434
|
-
"multiple": false,
|
|
435
|
-
"type": "option"
|
|
436
|
-
},
|
|
437
|
-
"per_page": {
|
|
438
|
-
"description": "Number of results per page",
|
|
439
|
-
"name": "per_page",
|
|
440
|
-
"required": false,
|
|
441
|
-
"default": 50,
|
|
442
|
-
"hasDynamicHelp": false,
|
|
443
|
-
"multiple": false,
|
|
444
|
-
"type": "option"
|
|
445
|
-
},
|
|
446
|
-
"sort": {
|
|
447
|
-
"description": "Sort field",
|
|
448
|
-
"name": "sort",
|
|
449
|
-
"required": false,
|
|
450
|
-
"default": "created_at",
|
|
451
|
-
"hasDynamicHelp": false,
|
|
452
|
-
"multiple": false,
|
|
453
|
-
"type": "option"
|
|
454
|
-
},
|
|
455
|
-
"workspace": {
|
|
456
|
-
"char": "w",
|
|
457
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
458
|
-
"name": "workspace",
|
|
381
|
+
"workspace": {
|
|
382
|
+
"char": "w",
|
|
383
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
384
|
+
"name": "workspace",
|
|
459
385
|
"required": false,
|
|
460
386
|
"hasDynamicHelp": false,
|
|
461
387
|
"multiple": false,
|
|
@@ -464,7 +390,7 @@
|
|
|
464
390
|
},
|
|
465
391
|
"hasDynamicHelp": false,
|
|
466
392
|
"hiddenAliases": [],
|
|
467
|
-
"id": "
|
|
393
|
+
"id": "branch:get",
|
|
468
394
|
"pluginAlias": "@xano/cli",
|
|
469
395
|
"pluginName": "@xano/cli",
|
|
470
396
|
"pluginType": "core",
|
|
@@ -474,25 +400,25 @@
|
|
|
474
400
|
"relativePath": [
|
|
475
401
|
"dist",
|
|
476
402
|
"commands",
|
|
477
|
-
"
|
|
478
|
-
"
|
|
403
|
+
"branch",
|
|
404
|
+
"get",
|
|
479
405
|
"index.js"
|
|
480
406
|
]
|
|
481
407
|
},
|
|
482
|
-
"branch:
|
|
408
|
+
"branch:set-live": {
|
|
483
409
|
"aliases": [],
|
|
484
410
|
"args": {
|
|
485
411
|
"branch_label": {
|
|
486
|
-
"description": "Branch label to
|
|
412
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
487
413
|
"name": "branch_label",
|
|
488
414
|
"required": true
|
|
489
415
|
}
|
|
490
416
|
},
|
|
491
|
-
"description": "
|
|
417
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
492
418
|
"examples": [
|
|
493
|
-
"$ xano branch
|
|
494
|
-
"$ xano branch
|
|
495
|
-
"$ xano branch
|
|
419
|
+
"$ 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",
|
|
420
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
421
|
+
"$ 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"
|
|
496
422
|
],
|
|
497
423
|
"flags": {
|
|
498
424
|
"profile": {
|
|
@@ -548,7 +474,7 @@
|
|
|
548
474
|
},
|
|
549
475
|
"hasDynamicHelp": false,
|
|
550
476
|
"hiddenAliases": [],
|
|
551
|
-
"id": "branch:
|
|
477
|
+
"id": "branch:set-live",
|
|
552
478
|
"pluginAlias": "@xano/cli",
|
|
553
479
|
"pluginName": "@xano/cli",
|
|
554
480
|
"pluginType": "core",
|
|
@@ -559,24 +485,20 @@
|
|
|
559
485
|
"dist",
|
|
560
486
|
"commands",
|
|
561
487
|
"branch",
|
|
562
|
-
"
|
|
488
|
+
"set-live",
|
|
563
489
|
"index.js"
|
|
564
490
|
]
|
|
565
491
|
},
|
|
566
|
-
"
|
|
492
|
+
"function:create": {
|
|
567
493
|
"aliases": [],
|
|
568
|
-
"args": {
|
|
569
|
-
|
|
570
|
-
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
571
|
-
"name": "branch_label",
|
|
572
|
-
"required": true
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
494
|
+
"args": {},
|
|
495
|
+
"description": "Create a new function in a workspace",
|
|
576
496
|
"examples": [
|
|
577
|
-
"$ xano
|
|
578
|
-
"$ xano
|
|
579
|
-
"$ xano
|
|
497
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
498
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
499
|
+
"$ 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",
|
|
500
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
501
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
580
502
|
],
|
|
581
503
|
"flags": {
|
|
582
504
|
"profile": {
|
|
@@ -598,28 +520,24 @@
|
|
|
598
520
|
"allowNo": false,
|
|
599
521
|
"type": "boolean"
|
|
600
522
|
},
|
|
601
|
-
"
|
|
602
|
-
"char": "
|
|
603
|
-
"
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
"
|
|
607
|
-
"
|
|
608
|
-
"type": "option"
|
|
609
|
-
},
|
|
610
|
-
"description": {
|
|
611
|
-
"char": "d",
|
|
612
|
-
"description": "New description for the branch",
|
|
613
|
-
"name": "description",
|
|
523
|
+
"edit": {
|
|
524
|
+
"char": "e",
|
|
525
|
+
"dependsOn": [
|
|
526
|
+
"file"
|
|
527
|
+
],
|
|
528
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
529
|
+
"name": "edit",
|
|
614
530
|
"required": false,
|
|
615
|
-
"
|
|
616
|
-
"
|
|
617
|
-
"type": "option"
|
|
531
|
+
"allowNo": false,
|
|
532
|
+
"type": "boolean"
|
|
618
533
|
},
|
|
619
|
-
"
|
|
620
|
-
"char": "
|
|
621
|
-
"description": "
|
|
622
|
-
"
|
|
534
|
+
"file": {
|
|
535
|
+
"char": "f",
|
|
536
|
+
"description": "Path to file containing XanoScript code",
|
|
537
|
+
"exclusive": [
|
|
538
|
+
"stdin"
|
|
539
|
+
],
|
|
540
|
+
"name": "file",
|
|
623
541
|
"required": false,
|
|
624
542
|
"hasDynamicHelp": false,
|
|
625
543
|
"multiple": false,
|
|
@@ -639,9 +557,20 @@
|
|
|
639
557
|
],
|
|
640
558
|
"type": "option"
|
|
641
559
|
},
|
|
560
|
+
"stdin": {
|
|
561
|
+
"char": "s",
|
|
562
|
+
"description": "Read XanoScript code from stdin",
|
|
563
|
+
"exclusive": [
|
|
564
|
+
"file"
|
|
565
|
+
],
|
|
566
|
+
"name": "stdin",
|
|
567
|
+
"required": false,
|
|
568
|
+
"allowNo": false,
|
|
569
|
+
"type": "boolean"
|
|
570
|
+
},
|
|
642
571
|
"workspace": {
|
|
643
572
|
"char": "w",
|
|
644
|
-
"description": "Workspace ID (
|
|
573
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
645
574
|
"name": "workspace",
|
|
646
575
|
"required": false,
|
|
647
576
|
"hasDynamicHelp": false,
|
|
@@ -651,7 +580,7 @@
|
|
|
651
580
|
},
|
|
652
581
|
"hasDynamicHelp": false,
|
|
653
582
|
"hiddenAliases": [],
|
|
654
|
-
"id": "
|
|
583
|
+
"id": "function:create",
|
|
655
584
|
"pluginAlias": "@xano/cli",
|
|
656
585
|
"pluginName": "@xano/cli",
|
|
657
586
|
"pluginType": "core",
|
|
@@ -661,25 +590,30 @@
|
|
|
661
590
|
"relativePath": [
|
|
662
591
|
"dist",
|
|
663
592
|
"commands",
|
|
664
|
-
"
|
|
665
|
-
"
|
|
593
|
+
"function",
|
|
594
|
+
"create",
|
|
666
595
|
"index.js"
|
|
667
596
|
]
|
|
668
597
|
},
|
|
669
|
-
"
|
|
598
|
+
"function:edit": {
|
|
670
599
|
"aliases": [],
|
|
671
600
|
"args": {
|
|
672
|
-
"
|
|
673
|
-
"description": "
|
|
674
|
-
"name": "
|
|
675
|
-
"required":
|
|
601
|
+
"function_id": {
|
|
602
|
+
"description": "Function ID to edit",
|
|
603
|
+
"name": "function_id",
|
|
604
|
+
"required": false
|
|
676
605
|
}
|
|
677
606
|
},
|
|
678
|
-
"description": "
|
|
607
|
+
"description": "Edit a function in a workspace",
|
|
679
608
|
"examples": [
|
|
680
|
-
"$ xano
|
|
681
|
-
"$ xano
|
|
682
|
-
"$ xano
|
|
609
|
+
"$ 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",
|
|
610
|
+
"$ 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",
|
|
611
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
612
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
613
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
614
|
+
"$ 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",
|
|
615
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
616
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
683
617
|
],
|
|
684
618
|
"flags": {
|
|
685
619
|
"profile": {
|
|
@@ -701,6 +635,26 @@
|
|
|
701
635
|
"allowNo": false,
|
|
702
636
|
"type": "boolean"
|
|
703
637
|
},
|
|
638
|
+
"edit": {
|
|
639
|
+
"char": "e",
|
|
640
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
641
|
+
"name": "edit",
|
|
642
|
+
"required": false,
|
|
643
|
+
"allowNo": false,
|
|
644
|
+
"type": "boolean"
|
|
645
|
+
},
|
|
646
|
+
"file": {
|
|
647
|
+
"char": "f",
|
|
648
|
+
"description": "Path to file containing XanoScript code",
|
|
649
|
+
"exclusive": [
|
|
650
|
+
"stdin"
|
|
651
|
+
],
|
|
652
|
+
"name": "file",
|
|
653
|
+
"required": false,
|
|
654
|
+
"hasDynamicHelp": false,
|
|
655
|
+
"multiple": false,
|
|
656
|
+
"type": "option"
|
|
657
|
+
},
|
|
704
658
|
"output": {
|
|
705
659
|
"char": "o",
|
|
706
660
|
"description": "Output format",
|
|
@@ -715,9 +669,27 @@
|
|
|
715
669
|
],
|
|
716
670
|
"type": "option"
|
|
717
671
|
},
|
|
672
|
+
"publish": {
|
|
673
|
+
"description": "Publish the function after editing",
|
|
674
|
+
"name": "publish",
|
|
675
|
+
"required": false,
|
|
676
|
+
"allowNo": false,
|
|
677
|
+
"type": "boolean"
|
|
678
|
+
},
|
|
679
|
+
"stdin": {
|
|
680
|
+
"char": "s",
|
|
681
|
+
"description": "Read XanoScript code from stdin",
|
|
682
|
+
"exclusive": [
|
|
683
|
+
"file"
|
|
684
|
+
],
|
|
685
|
+
"name": "stdin",
|
|
686
|
+
"required": false,
|
|
687
|
+
"allowNo": false,
|
|
688
|
+
"type": "boolean"
|
|
689
|
+
},
|
|
718
690
|
"workspace": {
|
|
719
691
|
"char": "w",
|
|
720
|
-
"description": "Workspace ID (
|
|
692
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
721
693
|
"name": "workspace",
|
|
722
694
|
"required": false,
|
|
723
695
|
"hasDynamicHelp": false,
|
|
@@ -727,7 +699,7 @@
|
|
|
727
699
|
},
|
|
728
700
|
"hasDynamicHelp": false,
|
|
729
701
|
"hiddenAliases": [],
|
|
730
|
-
"id": "
|
|
702
|
+
"id": "function:edit",
|
|
731
703
|
"pluginAlias": "@xano/cli",
|
|
732
704
|
"pluginName": "@xano/cli",
|
|
733
705
|
"pluginType": "core",
|
|
@@ -737,19 +709,25 @@
|
|
|
737
709
|
"relativePath": [
|
|
738
710
|
"dist",
|
|
739
711
|
"commands",
|
|
740
|
-
"
|
|
741
|
-
"
|
|
712
|
+
"function",
|
|
713
|
+
"edit",
|
|
742
714
|
"index.js"
|
|
743
715
|
]
|
|
744
716
|
},
|
|
745
|
-
"branch:
|
|
717
|
+
"branch:list": {
|
|
746
718
|
"aliases": [],
|
|
747
|
-
"args": {
|
|
748
|
-
|
|
719
|
+
"args": {
|
|
720
|
+
"workspace_id": {
|
|
721
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
722
|
+
"name": "workspace_id",
|
|
723
|
+
"required": false
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"description": "List all branches in a workspace",
|
|
749
727
|
"examples": [
|
|
750
|
-
"$ xano branch
|
|
751
|
-
"$ xano branch
|
|
752
|
-
"$ xano branch
|
|
728
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
729
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
730
|
+
"$ 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"
|
|
753
731
|
],
|
|
754
732
|
"flags": {
|
|
755
733
|
"profile": {
|
|
@@ -771,33 +749,6 @@
|
|
|
771
749
|
"allowNo": false,
|
|
772
750
|
"type": "boolean"
|
|
773
751
|
},
|
|
774
|
-
"color": {
|
|
775
|
-
"char": "c",
|
|
776
|
-
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
777
|
-
"name": "color",
|
|
778
|
-
"required": false,
|
|
779
|
-
"hasDynamicHelp": false,
|
|
780
|
-
"multiple": false,
|
|
781
|
-
"type": "option"
|
|
782
|
-
},
|
|
783
|
-
"description": {
|
|
784
|
-
"char": "d",
|
|
785
|
-
"description": "Description for the new branch",
|
|
786
|
-
"name": "description",
|
|
787
|
-
"required": false,
|
|
788
|
-
"hasDynamicHelp": false,
|
|
789
|
-
"multiple": false,
|
|
790
|
-
"type": "option"
|
|
791
|
-
},
|
|
792
|
-
"label": {
|
|
793
|
-
"char": "l",
|
|
794
|
-
"description": "Label for the new branch",
|
|
795
|
-
"name": "label",
|
|
796
|
-
"required": true,
|
|
797
|
-
"hasDynamicHelp": false,
|
|
798
|
-
"multiple": false,
|
|
799
|
-
"type": "option"
|
|
800
|
-
},
|
|
801
752
|
"output": {
|
|
802
753
|
"char": "o",
|
|
803
754
|
"description": "Output format",
|
|
@@ -811,30 +762,11 @@
|
|
|
811
762
|
"json"
|
|
812
763
|
],
|
|
813
764
|
"type": "option"
|
|
814
|
-
},
|
|
815
|
-
"source": {
|
|
816
|
-
"char": "s",
|
|
817
|
-
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
818
|
-
"name": "source",
|
|
819
|
-
"required": false,
|
|
820
|
-
"default": "v1",
|
|
821
|
-
"hasDynamicHelp": false,
|
|
822
|
-
"multiple": false,
|
|
823
|
-
"type": "option"
|
|
824
|
-
},
|
|
825
|
-
"workspace": {
|
|
826
|
-
"char": "w",
|
|
827
|
-
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
828
|
-
"name": "workspace",
|
|
829
|
-
"required": false,
|
|
830
|
-
"hasDynamicHelp": false,
|
|
831
|
-
"multiple": false,
|
|
832
|
-
"type": "option"
|
|
833
765
|
}
|
|
834
766
|
},
|
|
835
767
|
"hasDynamicHelp": false,
|
|
836
768
|
"hiddenAliases": [],
|
|
837
|
-
"id": "branch:
|
|
769
|
+
"id": "branch:list",
|
|
838
770
|
"pluginAlias": "@xano/cli",
|
|
839
771
|
"pluginName": "@xano/cli",
|
|
840
772
|
"pluginType": "core",
|
|
@@ -845,24 +777,27 @@
|
|
|
845
777
|
"dist",
|
|
846
778
|
"commands",
|
|
847
779
|
"branch",
|
|
848
|
-
"
|
|
780
|
+
"list",
|
|
849
781
|
"index.js"
|
|
850
782
|
]
|
|
851
783
|
},
|
|
852
|
-
"
|
|
784
|
+
"function:get": {
|
|
853
785
|
"aliases": [],
|
|
854
786
|
"args": {
|
|
855
|
-
"
|
|
856
|
-
"description": "
|
|
857
|
-
"name": "
|
|
787
|
+
"function_id": {
|
|
788
|
+
"description": "Function ID",
|
|
789
|
+
"name": "function_id",
|
|
858
790
|
"required": false
|
|
859
791
|
}
|
|
860
792
|
},
|
|
861
|
-
"description": "
|
|
793
|
+
"description": "Get a specific function from a workspace",
|
|
862
794
|
"examples": [
|
|
863
|
-
"$ xano
|
|
864
|
-
"$ xano
|
|
865
|
-
"$ xano
|
|
795
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
796
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
797
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
798
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
799
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
800
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
866
801
|
],
|
|
867
802
|
"flags": {
|
|
868
803
|
"profile": {
|
|
@@ -884,6 +819,20 @@
|
|
|
884
819
|
"allowNo": false,
|
|
885
820
|
"type": "boolean"
|
|
886
821
|
},
|
|
822
|
+
"include_draft": {
|
|
823
|
+
"description": "Include draft version",
|
|
824
|
+
"name": "include_draft",
|
|
825
|
+
"required": false,
|
|
826
|
+
"allowNo": false,
|
|
827
|
+
"type": "boolean"
|
|
828
|
+
},
|
|
829
|
+
"include_xanoscript": {
|
|
830
|
+
"description": "Include XanoScript in response",
|
|
831
|
+
"name": "include_xanoscript",
|
|
832
|
+
"required": false,
|
|
833
|
+
"allowNo": false,
|
|
834
|
+
"type": "boolean"
|
|
835
|
+
},
|
|
887
836
|
"output": {
|
|
888
837
|
"char": "o",
|
|
889
838
|
"description": "Output format",
|
|
@@ -894,14 +843,24 @@
|
|
|
894
843
|
"multiple": false,
|
|
895
844
|
"options": [
|
|
896
845
|
"summary",
|
|
897
|
-
"json"
|
|
846
|
+
"json",
|
|
847
|
+
"xs"
|
|
898
848
|
],
|
|
899
849
|
"type": "option"
|
|
850
|
+
},
|
|
851
|
+
"workspace": {
|
|
852
|
+
"char": "w",
|
|
853
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
854
|
+
"name": "workspace",
|
|
855
|
+
"required": false,
|
|
856
|
+
"hasDynamicHelp": false,
|
|
857
|
+
"multiple": false,
|
|
858
|
+
"type": "option"
|
|
900
859
|
}
|
|
901
860
|
},
|
|
902
861
|
"hasDynamicHelp": false,
|
|
903
862
|
"hiddenAliases": [],
|
|
904
|
-
"id": "
|
|
863
|
+
"id": "function:get",
|
|
905
864
|
"pluginAlias": "@xano/cli",
|
|
906
865
|
"pluginName": "@xano/cli",
|
|
907
866
|
"pluginType": "core",
|
|
@@ -911,93 +870,112 @@
|
|
|
911
870
|
"relativePath": [
|
|
912
871
|
"dist",
|
|
913
872
|
"commands",
|
|
914
|
-
"
|
|
915
|
-
"
|
|
873
|
+
"function",
|
|
874
|
+
"get",
|
|
916
875
|
"index.js"
|
|
917
876
|
]
|
|
918
877
|
},
|
|
919
|
-
"
|
|
878
|
+
"function:list": {
|
|
920
879
|
"aliases": [],
|
|
921
|
-
"args": {
|
|
922
|
-
|
|
923
|
-
"description": "Profile name",
|
|
924
|
-
"name": "name",
|
|
925
|
-
"required": true
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
|
-
"description": "Create a new profile configuration",
|
|
880
|
+
"args": {},
|
|
881
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
929
882
|
"examples": [
|
|
930
|
-
"$ xano
|
|
931
|
-
"$ xano
|
|
932
|
-
"$ xano
|
|
933
|
-
"$ xano
|
|
934
|
-
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
|
|
883
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
884
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
885
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
886
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
935
887
|
],
|
|
936
888
|
"flags": {
|
|
937
|
-
"
|
|
938
|
-
"char": "
|
|
939
|
-
"description": "
|
|
940
|
-
"
|
|
941
|
-
"
|
|
889
|
+
"profile": {
|
|
890
|
+
"char": "p",
|
|
891
|
+
"description": "Profile to use for this command",
|
|
892
|
+
"env": "XANO_PROFILE",
|
|
893
|
+
"name": "profile",
|
|
894
|
+
"required": false,
|
|
942
895
|
"hasDynamicHelp": false,
|
|
943
896
|
"multiple": false,
|
|
944
897
|
"type": "option"
|
|
945
898
|
},
|
|
946
|
-
"
|
|
947
|
-
"char": "
|
|
948
|
-
"description": "
|
|
949
|
-
"
|
|
899
|
+
"verbose": {
|
|
900
|
+
"char": "v",
|
|
901
|
+
"description": "Show detailed request/response information",
|
|
902
|
+
"env": "XANO_VERBOSE",
|
|
903
|
+
"name": "verbose",
|
|
950
904
|
"required": false,
|
|
905
|
+
"allowNo": false,
|
|
906
|
+
"type": "boolean"
|
|
907
|
+
},
|
|
908
|
+
"include_draft": {
|
|
909
|
+
"description": "Include draft functions",
|
|
910
|
+
"name": "include_draft",
|
|
911
|
+
"required": false,
|
|
912
|
+
"allowNo": false,
|
|
913
|
+
"type": "boolean"
|
|
914
|
+
},
|
|
915
|
+
"include_xanoscript": {
|
|
916
|
+
"description": "Include XanoScript in response",
|
|
917
|
+
"name": "include_xanoscript",
|
|
918
|
+
"required": false,
|
|
919
|
+
"allowNo": false,
|
|
920
|
+
"type": "boolean"
|
|
921
|
+
},
|
|
922
|
+
"order": {
|
|
923
|
+
"description": "Sort order",
|
|
924
|
+
"name": "order",
|
|
925
|
+
"required": false,
|
|
926
|
+
"default": "desc",
|
|
951
927
|
"hasDynamicHelp": false,
|
|
952
928
|
"multiple": false,
|
|
929
|
+
"options": [
|
|
930
|
+
"asc",
|
|
931
|
+
"desc"
|
|
932
|
+
],
|
|
953
933
|
"type": "option"
|
|
954
934
|
},
|
|
955
|
-
"
|
|
956
|
-
"char": "
|
|
957
|
-
"description": "
|
|
958
|
-
"name": "
|
|
935
|
+
"output": {
|
|
936
|
+
"char": "o",
|
|
937
|
+
"description": "Output format",
|
|
938
|
+
"name": "output",
|
|
959
939
|
"required": false,
|
|
940
|
+
"default": "summary",
|
|
960
941
|
"hasDynamicHelp": false,
|
|
961
942
|
"multiple": false,
|
|
943
|
+
"options": [
|
|
944
|
+
"summary",
|
|
945
|
+
"json"
|
|
946
|
+
],
|
|
962
947
|
"type": "option"
|
|
963
948
|
},
|
|
964
|
-
"
|
|
965
|
-
"description": "
|
|
966
|
-
"name": "
|
|
949
|
+
"page": {
|
|
950
|
+
"description": "Page number for pagination",
|
|
951
|
+
"name": "page",
|
|
967
952
|
"required": false,
|
|
968
|
-
"
|
|
969
|
-
"type": "boolean"
|
|
970
|
-
},
|
|
971
|
-
"instance_origin": {
|
|
972
|
-
"char": "i",
|
|
973
|
-
"description": "Instance origin URL",
|
|
974
|
-
"name": "instance_origin",
|
|
975
|
-
"required": true,
|
|
953
|
+
"default": 1,
|
|
976
954
|
"hasDynamicHelp": false,
|
|
977
955
|
"multiple": false,
|
|
978
956
|
"type": "option"
|
|
979
957
|
},
|
|
980
|
-
"
|
|
981
|
-
"
|
|
982
|
-
"
|
|
983
|
-
"name": "project",
|
|
958
|
+
"per_page": {
|
|
959
|
+
"description": "Number of results per page",
|
|
960
|
+
"name": "per_page",
|
|
984
961
|
"required": false,
|
|
962
|
+
"default": 50,
|
|
985
963
|
"hasDynamicHelp": false,
|
|
986
964
|
"multiple": false,
|
|
987
965
|
"type": "option"
|
|
988
966
|
},
|
|
989
|
-
"
|
|
990
|
-
"
|
|
991
|
-
"
|
|
992
|
-
"name": "run_base_url",
|
|
967
|
+
"sort": {
|
|
968
|
+
"description": "Sort field",
|
|
969
|
+
"name": "sort",
|
|
993
970
|
"required": false,
|
|
971
|
+
"default": "created_at",
|
|
994
972
|
"hasDynamicHelp": false,
|
|
995
973
|
"multiple": false,
|
|
996
974
|
"type": "option"
|
|
997
975
|
},
|
|
998
976
|
"workspace": {
|
|
999
977
|
"char": "w",
|
|
1000
|
-
"description": "Workspace
|
|
978
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1001
979
|
"name": "workspace",
|
|
1002
980
|
"required": false,
|
|
1003
981
|
"hasDynamicHelp": false,
|
|
@@ -1007,7 +985,7 @@
|
|
|
1007
985
|
},
|
|
1008
986
|
"hasDynamicHelp": false,
|
|
1009
987
|
"hiddenAliases": [],
|
|
1010
|
-
"id": "
|
|
988
|
+
"id": "function:list",
|
|
1011
989
|
"pluginAlias": "@xano/cli",
|
|
1012
990
|
"pluginName": "@xano/cli",
|
|
1013
991
|
"pluginType": "core",
|
|
@@ -1017,71 +995,93 @@
|
|
|
1017
995
|
"relativePath": [
|
|
1018
996
|
"dist",
|
|
1019
997
|
"commands",
|
|
1020
|
-
"
|
|
1021
|
-
"
|
|
998
|
+
"function",
|
|
999
|
+
"list",
|
|
1022
1000
|
"index.js"
|
|
1023
1001
|
]
|
|
1024
1002
|
},
|
|
1025
|
-
"
|
|
1003
|
+
"profile:create": {
|
|
1026
1004
|
"aliases": [],
|
|
1027
1005
|
"args": {
|
|
1028
|
-
"
|
|
1029
|
-
"description": "
|
|
1030
|
-
"name": "
|
|
1006
|
+
"name": {
|
|
1007
|
+
"description": "Profile name",
|
|
1008
|
+
"name": "name",
|
|
1031
1009
|
"required": true
|
|
1032
1010
|
}
|
|
1033
1011
|
},
|
|
1034
|
-
"description": "
|
|
1012
|
+
"description": "Create a new profile configuration",
|
|
1035
1013
|
"examples": [
|
|
1036
|
-
"$ xano
|
|
1037
|
-
"$ xano
|
|
1038
|
-
"$ xano
|
|
1014
|
+
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n",
|
|
1015
|
+
"$ xano profile:create staging -a https://staging-account.xano.com -i https://staging-instance.xano.com -t token456\nProfile 'staging' created successfully at ~/.xano/credentials.yaml\n",
|
|
1016
|
+
"$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
|
|
1017
|
+
"$ xano profile:create dev -i https://dev-instance.xano.com -t token789 -w my-workspace -b feature-branch -j my-project\nProfile 'dev' created successfully at ~/.xano/credentials.yaml\n",
|
|
1018
|
+
"$ xano profile:create production --account_origin https://account.xano.com --instance_origin https://instance.xano.com --access_token token123 --default\nProfile 'production' created successfully at ~/.xano/credentials.yaml\nDefault profile set to 'production'\n"
|
|
1039
1019
|
],
|
|
1040
1020
|
"flags": {
|
|
1041
|
-
"
|
|
1042
|
-
"char": "
|
|
1043
|
-
"description": "
|
|
1044
|
-
"
|
|
1045
|
-
"
|
|
1021
|
+
"access_token": {
|
|
1022
|
+
"char": "t",
|
|
1023
|
+
"description": "Access token for the Xano Metadata API",
|
|
1024
|
+
"name": "access_token",
|
|
1025
|
+
"required": true,
|
|
1026
|
+
"hasDynamicHelp": false,
|
|
1027
|
+
"multiple": false,
|
|
1028
|
+
"type": "option"
|
|
1029
|
+
},
|
|
1030
|
+
"account_origin": {
|
|
1031
|
+
"char": "a",
|
|
1032
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
1033
|
+
"name": "account_origin",
|
|
1034
|
+
"required": false,
|
|
1035
|
+
"hasDynamicHelp": false,
|
|
1036
|
+
"multiple": false,
|
|
1037
|
+
"type": "option"
|
|
1038
|
+
},
|
|
1039
|
+
"branch": {
|
|
1040
|
+
"char": "b",
|
|
1041
|
+
"description": "Branch name",
|
|
1042
|
+
"name": "branch",
|
|
1046
1043
|
"required": false,
|
|
1047
1044
|
"hasDynamicHelp": false,
|
|
1048
1045
|
"multiple": false,
|
|
1049
1046
|
"type": "option"
|
|
1050
1047
|
},
|
|
1051
|
-
"
|
|
1052
|
-
"
|
|
1053
|
-
"
|
|
1054
|
-
"env": "XANO_VERBOSE",
|
|
1055
|
-
"name": "verbose",
|
|
1048
|
+
"default": {
|
|
1049
|
+
"description": "Set this profile as the default",
|
|
1050
|
+
"name": "default",
|
|
1056
1051
|
"required": false,
|
|
1057
1052
|
"allowNo": false,
|
|
1058
1053
|
"type": "boolean"
|
|
1059
1054
|
},
|
|
1060
|
-
"
|
|
1061
|
-
"char": "
|
|
1062
|
-
"description": "
|
|
1063
|
-
"name": "
|
|
1055
|
+
"instance_origin": {
|
|
1056
|
+
"char": "i",
|
|
1057
|
+
"description": "Instance origin URL",
|
|
1058
|
+
"name": "instance_origin",
|
|
1059
|
+
"required": true,
|
|
1060
|
+
"hasDynamicHelp": false,
|
|
1061
|
+
"multiple": false,
|
|
1062
|
+
"type": "option"
|
|
1063
|
+
},
|
|
1064
|
+
"project": {
|
|
1065
|
+
"char": "j",
|
|
1066
|
+
"description": "Project name",
|
|
1067
|
+
"name": "project",
|
|
1064
1068
|
"required": false,
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
1069
|
+
"hasDynamicHelp": false,
|
|
1070
|
+
"multiple": false,
|
|
1071
|
+
"type": "option"
|
|
1067
1072
|
},
|
|
1068
|
-
"
|
|
1069
|
-
"char": "
|
|
1070
|
-
"description": "
|
|
1071
|
-
"name": "
|
|
1073
|
+
"run_base_url": {
|
|
1074
|
+
"char": "r",
|
|
1075
|
+
"description": "Xano Run API base URL (default: https://app.xano.com/)",
|
|
1076
|
+
"name": "run_base_url",
|
|
1072
1077
|
"required": false,
|
|
1073
|
-
"default": "summary",
|
|
1074
1078
|
"hasDynamicHelp": false,
|
|
1075
1079
|
"multiple": false,
|
|
1076
|
-
"options": [
|
|
1077
|
-
"summary",
|
|
1078
|
-
"json"
|
|
1079
|
-
],
|
|
1080
1080
|
"type": "option"
|
|
1081
1081
|
},
|
|
1082
1082
|
"workspace": {
|
|
1083
1083
|
"char": "w",
|
|
1084
|
-
"description": "Workspace
|
|
1084
|
+
"description": "Workspace name",
|
|
1085
1085
|
"name": "workspace",
|
|
1086
1086
|
"required": false,
|
|
1087
1087
|
"hasDynamicHelp": false,
|
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
},
|
|
1092
1092
|
"hasDynamicHelp": false,
|
|
1093
1093
|
"hiddenAliases": [],
|
|
1094
|
-
"id": "
|
|
1094
|
+
"id": "profile:create",
|
|
1095
1095
|
"pluginAlias": "@xano/cli",
|
|
1096
1096
|
"pluginName": "@xano/cli",
|
|
1097
1097
|
"pluginType": "core",
|
|
@@ -1101,8 +1101,8 @@
|
|
|
1101
1101
|
"relativePath": [
|
|
1102
1102
|
"dist",
|
|
1103
1103
|
"commands",
|
|
1104
|
-
"
|
|
1105
|
-
"
|
|
1104
|
+
"profile",
|
|
1105
|
+
"create",
|
|
1106
1106
|
"index.js"
|
|
1107
1107
|
]
|
|
1108
1108
|
},
|
|
@@ -1358,32 +1358,6 @@
|
|
|
1358
1358
|
"index.js"
|
|
1359
1359
|
]
|
|
1360
1360
|
},
|
|
1361
|
-
"profile:project": {
|
|
1362
|
-
"aliases": [],
|
|
1363
|
-
"args": {},
|
|
1364
|
-
"description": "Print the project for the default profile",
|
|
1365
|
-
"examples": [
|
|
1366
|
-
"$ xano profile:project\nmy-project-id\n",
|
|
1367
|
-
"$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
|
|
1368
|
-
],
|
|
1369
|
-
"flags": {},
|
|
1370
|
-
"hasDynamicHelp": false,
|
|
1371
|
-
"hiddenAliases": [],
|
|
1372
|
-
"id": "profile:project",
|
|
1373
|
-
"pluginAlias": "@xano/cli",
|
|
1374
|
-
"pluginName": "@xano/cli",
|
|
1375
|
-
"pluginType": "core",
|
|
1376
|
-
"strict": true,
|
|
1377
|
-
"enableJsonFlag": false,
|
|
1378
|
-
"isESM": true,
|
|
1379
|
-
"relativePath": [
|
|
1380
|
-
"dist",
|
|
1381
|
-
"commands",
|
|
1382
|
-
"profile",
|
|
1383
|
-
"project",
|
|
1384
|
-
"index.js"
|
|
1385
|
-
]
|
|
1386
|
-
},
|
|
1387
1361
|
"profile:me": {
|
|
1388
1362
|
"aliases": [],
|
|
1389
1363
|
"args": {},
|
|
@@ -1445,6 +1419,32 @@
|
|
|
1445
1419
|
"index.js"
|
|
1446
1420
|
]
|
|
1447
1421
|
},
|
|
1422
|
+
"profile:project": {
|
|
1423
|
+
"aliases": [],
|
|
1424
|
+
"args": {},
|
|
1425
|
+
"description": "Print the project for the default profile",
|
|
1426
|
+
"examples": [
|
|
1427
|
+
"$ xano profile:project\nmy-project-id\n",
|
|
1428
|
+
"$ xano profile:project | pbcopy\n# Copies the project to clipboard on macOS\n"
|
|
1429
|
+
],
|
|
1430
|
+
"flags": {},
|
|
1431
|
+
"hasDynamicHelp": false,
|
|
1432
|
+
"hiddenAliases": [],
|
|
1433
|
+
"id": "profile:project",
|
|
1434
|
+
"pluginAlias": "@xano/cli",
|
|
1435
|
+
"pluginName": "@xano/cli",
|
|
1436
|
+
"pluginType": "core",
|
|
1437
|
+
"strict": true,
|
|
1438
|
+
"enableJsonFlag": false,
|
|
1439
|
+
"isESM": true,
|
|
1440
|
+
"relativePath": [
|
|
1441
|
+
"dist",
|
|
1442
|
+
"commands",
|
|
1443
|
+
"profile",
|
|
1444
|
+
"project",
|
|
1445
|
+
"index.js"
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
1448
|
"profile:set-default": {
|
|
1449
1449
|
"aliases": [],
|
|
1450
1450
|
"args": {
|
|
@@ -2221,20 +2221,21 @@
|
|
|
2221
2221
|
"index.js"
|
|
2222
2222
|
]
|
|
2223
2223
|
},
|
|
2224
|
-
"workspace:
|
|
2224
|
+
"workspace:pull": {
|
|
2225
2225
|
"aliases": [],
|
|
2226
2226
|
"args": {
|
|
2227
2227
|
"directory": {
|
|
2228
|
-
"description": "
|
|
2228
|
+
"description": "Output directory for pulled documents",
|
|
2229
2229
|
"name": "directory",
|
|
2230
2230
|
"required": true
|
|
2231
2231
|
}
|
|
2232
2232
|
},
|
|
2233
|
-
"description": "
|
|
2233
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
2234
2234
|
"examples": [
|
|
2235
|
-
"$ xano workspace
|
|
2236
|
-
"$ xano workspace
|
|
2237
|
-
"$ xano workspace
|
|
2235
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
2236
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
2237
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n",
|
|
2238
|
+
"$ xano workspace pull ./my-workspace -b dev\nPulled 42 documents to ./my-workspace\n"
|
|
2238
2239
|
],
|
|
2239
2240
|
"flags": {
|
|
2240
2241
|
"profile": {
|
|
@@ -2249,13 +2250,35 @@
|
|
|
2249
2250
|
},
|
|
2250
2251
|
"verbose": {
|
|
2251
2252
|
"char": "v",
|
|
2252
|
-
"description": "Show
|
|
2253
|
-
"env": "XANO_VERBOSE",
|
|
2253
|
+
"description": "Show request details",
|
|
2254
2254
|
"name": "verbose",
|
|
2255
2255
|
"required": false,
|
|
2256
2256
|
"allowNo": false,
|
|
2257
2257
|
"type": "boolean"
|
|
2258
2258
|
},
|
|
2259
|
+
"branch": {
|
|
2260
|
+
"char": "b",
|
|
2261
|
+
"description": "Branch name (optional if set in profile, defaults to live)",
|
|
2262
|
+
"name": "branch",
|
|
2263
|
+
"required": false,
|
|
2264
|
+
"hasDynamicHelp": false,
|
|
2265
|
+
"multiple": false,
|
|
2266
|
+
"type": "option"
|
|
2267
|
+
},
|
|
2268
|
+
"env": {
|
|
2269
|
+
"description": "Include environment variables",
|
|
2270
|
+
"name": "env",
|
|
2271
|
+
"required": false,
|
|
2272
|
+
"allowNo": false,
|
|
2273
|
+
"type": "boolean"
|
|
2274
|
+
},
|
|
2275
|
+
"records": {
|
|
2276
|
+
"description": "Include records",
|
|
2277
|
+
"name": "records",
|
|
2278
|
+
"required": false,
|
|
2279
|
+
"allowNo": false,
|
|
2280
|
+
"type": "boolean"
|
|
2281
|
+
},
|
|
2259
2282
|
"workspace": {
|
|
2260
2283
|
"char": "w",
|
|
2261
2284
|
"description": "Workspace ID (optional if set in profile)",
|
|
@@ -2268,7 +2291,7 @@
|
|
|
2268
2291
|
},
|
|
2269
2292
|
"hasDynamicHelp": false,
|
|
2270
2293
|
"hiddenAliases": [],
|
|
2271
|
-
"id": "workspace:
|
|
2294
|
+
"id": "workspace:pull",
|
|
2272
2295
|
"pluginAlias": "@xano/cli",
|
|
2273
2296
|
"pluginName": "@xano/cli",
|
|
2274
2297
|
"pluginType": "core",
|
|
@@ -2279,24 +2302,25 @@
|
|
|
2279
2302
|
"dist",
|
|
2280
2303
|
"commands",
|
|
2281
2304
|
"workspace",
|
|
2282
|
-
"
|
|
2305
|
+
"pull",
|
|
2283
2306
|
"index.js"
|
|
2284
2307
|
]
|
|
2285
2308
|
},
|
|
2286
|
-
"workspace:
|
|
2309
|
+
"workspace:push": {
|
|
2287
2310
|
"aliases": [],
|
|
2288
2311
|
"args": {
|
|
2289
2312
|
"directory": {
|
|
2290
|
-
"description": "
|
|
2313
|
+
"description": "Directory containing documents to push (as produced by workspace pull)",
|
|
2291
2314
|
"name": "directory",
|
|
2292
2315
|
"required": true
|
|
2293
2316
|
}
|
|
2294
2317
|
},
|
|
2295
|
-
"description": "
|
|
2318
|
+
"description": "Push local documents to a workspace via the Xano Metadata API multidoc endpoint",
|
|
2296
2319
|
"examples": [
|
|
2297
|
-
"$ xano workspace
|
|
2298
|
-
"$ xano workspace
|
|
2299
|
-
"$ xano workspace
|
|
2320
|
+
"$ xano workspace push ./my-workspace\nPushed 42 documents from ./my-workspace\n",
|
|
2321
|
+
"$ xano workspace push ./output -w 40\nPushed 15 documents from ./output\n",
|
|
2322
|
+
"$ xano workspace push ./backup --profile production\nPushed 58 documents from ./backup\n",
|
|
2323
|
+
"$ xano workspace push ./my-workspace -b dev\nPushed 42 documents from ./my-workspace\n"
|
|
2300
2324
|
],
|
|
2301
2325
|
"flags": {
|
|
2302
2326
|
"profile": {
|
|
@@ -2311,26 +2335,20 @@
|
|
|
2311
2335
|
},
|
|
2312
2336
|
"verbose": {
|
|
2313
2337
|
"char": "v",
|
|
2314
|
-
"description": "Show
|
|
2315
|
-
"env": "XANO_VERBOSE",
|
|
2338
|
+
"description": "Show request details",
|
|
2316
2339
|
"name": "verbose",
|
|
2317
2340
|
"required": false,
|
|
2318
2341
|
"allowNo": false,
|
|
2319
2342
|
"type": "boolean"
|
|
2320
2343
|
},
|
|
2321
|
-
"
|
|
2322
|
-
"
|
|
2323
|
-
"
|
|
2324
|
-
"
|
|
2325
|
-
"allowNo": false,
|
|
2326
|
-
"type": "boolean"
|
|
2327
|
-
},
|
|
2328
|
-
"records": {
|
|
2329
|
-
"description": "Include records",
|
|
2330
|
-
"name": "records",
|
|
2344
|
+
"branch": {
|
|
2345
|
+
"char": "b",
|
|
2346
|
+
"description": "Branch name (optional if set in profile, defaults to live)",
|
|
2347
|
+
"name": "branch",
|
|
2331
2348
|
"required": false,
|
|
2332
|
-
"
|
|
2333
|
-
"
|
|
2349
|
+
"hasDynamicHelp": false,
|
|
2350
|
+
"multiple": false,
|
|
2351
|
+
"type": "option"
|
|
2334
2352
|
},
|
|
2335
2353
|
"workspace": {
|
|
2336
2354
|
"char": "w",
|
|
@@ -2344,7 +2362,7 @@
|
|
|
2344
2362
|
},
|
|
2345
2363
|
"hasDynamicHelp": false,
|
|
2346
2364
|
"hiddenAliases": [],
|
|
2347
|
-
"id": "workspace:
|
|
2365
|
+
"id": "workspace:push",
|
|
2348
2366
|
"pluginAlias": "@xano/cli",
|
|
2349
2367
|
"pluginName": "@xano/cli",
|
|
2350
2368
|
"pluginType": "core",
|
|
@@ -2355,7 +2373,7 @@
|
|
|
2355
2373
|
"dist",
|
|
2356
2374
|
"commands",
|
|
2357
2375
|
"workspace",
|
|
2358
|
-
"
|
|
2376
|
+
"push",
|
|
2359
2377
|
"index.js"
|
|
2360
2378
|
]
|
|
2361
2379
|
},
|
|
@@ -2587,7 +2605,87 @@
|
|
|
2587
2605
|
},
|
|
2588
2606
|
"hasDynamicHelp": false,
|
|
2589
2607
|
"hiddenAliases": [],
|
|
2590
|
-
"id": "run:env:set",
|
|
2608
|
+
"id": "run:env:set",
|
|
2609
|
+
"pluginAlias": "@xano/cli",
|
|
2610
|
+
"pluginName": "@xano/cli",
|
|
2611
|
+
"pluginType": "core",
|
|
2612
|
+
"strict": true,
|
|
2613
|
+
"isESM": true,
|
|
2614
|
+
"relativePath": [
|
|
2615
|
+
"dist",
|
|
2616
|
+
"commands",
|
|
2617
|
+
"run",
|
|
2618
|
+
"env",
|
|
2619
|
+
"set",
|
|
2620
|
+
"index.js"
|
|
2621
|
+
]
|
|
2622
|
+
},
|
|
2623
|
+
"run:projects:create": {
|
|
2624
|
+
"aliases": [],
|
|
2625
|
+
"args": {},
|
|
2626
|
+
"description": "Create a new project",
|
|
2627
|
+
"examples": [
|
|
2628
|
+
"$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
2629
|
+
"$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
2630
|
+
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
2631
|
+
],
|
|
2632
|
+
"flags": {
|
|
2633
|
+
"profile": {
|
|
2634
|
+
"char": "p",
|
|
2635
|
+
"description": "Profile to use for this command",
|
|
2636
|
+
"env": "XANO_PROFILE",
|
|
2637
|
+
"name": "profile",
|
|
2638
|
+
"required": false,
|
|
2639
|
+
"hasDynamicHelp": false,
|
|
2640
|
+
"multiple": false,
|
|
2641
|
+
"type": "option"
|
|
2642
|
+
},
|
|
2643
|
+
"verbose": {
|
|
2644
|
+
"char": "v",
|
|
2645
|
+
"description": "Show detailed request/response information",
|
|
2646
|
+
"env": "XANO_VERBOSE",
|
|
2647
|
+
"name": "verbose",
|
|
2648
|
+
"required": false,
|
|
2649
|
+
"allowNo": false,
|
|
2650
|
+
"type": "boolean"
|
|
2651
|
+
},
|
|
2652
|
+
"description": {
|
|
2653
|
+
"char": "d",
|
|
2654
|
+
"description": "Project description",
|
|
2655
|
+
"name": "description",
|
|
2656
|
+
"required": false,
|
|
2657
|
+
"default": "",
|
|
2658
|
+
"hasDynamicHelp": false,
|
|
2659
|
+
"multiple": false,
|
|
2660
|
+
"type": "option"
|
|
2661
|
+
},
|
|
2662
|
+
"name": {
|
|
2663
|
+
"char": "n",
|
|
2664
|
+
"description": "Project name",
|
|
2665
|
+
"name": "name",
|
|
2666
|
+
"required": true,
|
|
2667
|
+
"hasDynamicHelp": false,
|
|
2668
|
+
"multiple": false,
|
|
2669
|
+
"type": "option"
|
|
2670
|
+
},
|
|
2671
|
+
"output": {
|
|
2672
|
+
"char": "o",
|
|
2673
|
+
"description": "Output format",
|
|
2674
|
+
"name": "output",
|
|
2675
|
+
"required": false,
|
|
2676
|
+
"default": "summary",
|
|
2677
|
+
"hasDynamicHelp": false,
|
|
2678
|
+
"multiple": false,
|
|
2679
|
+
"options": [
|
|
2680
|
+
"summary",
|
|
2681
|
+
"json"
|
|
2682
|
+
],
|
|
2683
|
+
"type": "option"
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
"hasDynamicHelp": false,
|
|
2687
|
+
"hiddenAliases": [],
|
|
2688
|
+
"id": "run:projects:create",
|
|
2591
2689
|
"pluginAlias": "@xano/cli",
|
|
2592
2690
|
"pluginName": "@xano/cli",
|
|
2593
2691
|
"pluginType": "core",
|
|
@@ -2597,8 +2695,8 @@
|
|
|
2597
2695
|
"dist",
|
|
2598
2696
|
"commands",
|
|
2599
2697
|
"run",
|
|
2600
|
-
"
|
|
2601
|
-
"
|
|
2698
|
+
"projects",
|
|
2699
|
+
"create",
|
|
2602
2700
|
"index.js"
|
|
2603
2701
|
]
|
|
2604
2702
|
},
|
|
@@ -2662,14 +2760,13 @@
|
|
|
2662
2760
|
"index.js"
|
|
2663
2761
|
]
|
|
2664
2762
|
},
|
|
2665
|
-
"run:projects:
|
|
2763
|
+
"run:projects:list": {
|
|
2666
2764
|
"aliases": [],
|
|
2667
2765
|
"args": {},
|
|
2668
|
-
"description": "
|
|
2766
|
+
"description": "List all projects",
|
|
2669
2767
|
"examples": [
|
|
2670
|
-
"$ xano run projects
|
|
2671
|
-
"$ xano run projects
|
|
2672
|
-
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
2768
|
+
"$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
|
|
2769
|
+
"$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
|
|
2673
2770
|
],
|
|
2674
2771
|
"flags": {
|
|
2675
2772
|
"profile": {
|
|
@@ -2691,35 +2788,16 @@
|
|
|
2691
2788
|
"allowNo": false,
|
|
2692
2789
|
"type": "boolean"
|
|
2693
2790
|
},
|
|
2694
|
-
"description": {
|
|
2695
|
-
"char": "d",
|
|
2696
|
-
"description": "Project description",
|
|
2697
|
-
"name": "description",
|
|
2698
|
-
"required": false,
|
|
2699
|
-
"default": "",
|
|
2700
|
-
"hasDynamicHelp": false,
|
|
2701
|
-
"multiple": false,
|
|
2702
|
-
"type": "option"
|
|
2703
|
-
},
|
|
2704
|
-
"name": {
|
|
2705
|
-
"char": "n",
|
|
2706
|
-
"description": "Project name",
|
|
2707
|
-
"name": "name",
|
|
2708
|
-
"required": true,
|
|
2709
|
-
"hasDynamicHelp": false,
|
|
2710
|
-
"multiple": false,
|
|
2711
|
-
"type": "option"
|
|
2712
|
-
},
|
|
2713
2791
|
"output": {
|
|
2714
2792
|
"char": "o",
|
|
2715
2793
|
"description": "Output format",
|
|
2716
2794
|
"name": "output",
|
|
2717
2795
|
"required": false,
|
|
2718
|
-
"default": "
|
|
2796
|
+
"default": "table",
|
|
2719
2797
|
"hasDynamicHelp": false,
|
|
2720
2798
|
"multiple": false,
|
|
2721
2799
|
"options": [
|
|
2722
|
-
"
|
|
2800
|
+
"table",
|
|
2723
2801
|
"json"
|
|
2724
2802
|
],
|
|
2725
2803
|
"type": "option"
|
|
@@ -2727,7 +2805,7 @@
|
|
|
2727
2805
|
},
|
|
2728
2806
|
"hasDynamicHelp": false,
|
|
2729
2807
|
"hiddenAliases": [],
|
|
2730
|
-
"id": "run:projects:
|
|
2808
|
+
"id": "run:projects:list",
|
|
2731
2809
|
"pluginAlias": "@xano/cli",
|
|
2732
2810
|
"pluginName": "@xano/cli",
|
|
2733
2811
|
"pluginType": "core",
|
|
@@ -2738,17 +2816,24 @@
|
|
|
2738
2816
|
"commands",
|
|
2739
2817
|
"run",
|
|
2740
2818
|
"projects",
|
|
2741
|
-
"
|
|
2819
|
+
"list",
|
|
2742
2820
|
"index.js"
|
|
2743
2821
|
]
|
|
2744
2822
|
},
|
|
2745
|
-
"run:projects:
|
|
2823
|
+
"run:projects:update": {
|
|
2746
2824
|
"aliases": [],
|
|
2747
|
-
"args": {
|
|
2748
|
-
|
|
2825
|
+
"args": {
|
|
2826
|
+
"projectId": {
|
|
2827
|
+
"description": "Project ID to update",
|
|
2828
|
+
"name": "projectId",
|
|
2829
|
+
"required": true
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2832
|
+
"description": "Update a project",
|
|
2749
2833
|
"examples": [
|
|
2750
|
-
"$ xano run projects
|
|
2751
|
-
"$ xano run projects
|
|
2834
|
+
"$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
|
|
2835
|
+
"$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
|
|
2836
|
+
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
2752
2837
|
],
|
|
2753
2838
|
"flags": {
|
|
2754
2839
|
"profile": {
|
|
@@ -2770,16 +2855,34 @@
|
|
|
2770
2855
|
"allowNo": false,
|
|
2771
2856
|
"type": "boolean"
|
|
2772
2857
|
},
|
|
2858
|
+
"description": {
|
|
2859
|
+
"char": "d",
|
|
2860
|
+
"description": "New project description",
|
|
2861
|
+
"name": "description",
|
|
2862
|
+
"required": false,
|
|
2863
|
+
"hasDynamicHelp": false,
|
|
2864
|
+
"multiple": false,
|
|
2865
|
+
"type": "option"
|
|
2866
|
+
},
|
|
2867
|
+
"name": {
|
|
2868
|
+
"char": "n",
|
|
2869
|
+
"description": "New project name",
|
|
2870
|
+
"name": "name",
|
|
2871
|
+
"required": false,
|
|
2872
|
+
"hasDynamicHelp": false,
|
|
2873
|
+
"multiple": false,
|
|
2874
|
+
"type": "option"
|
|
2875
|
+
},
|
|
2773
2876
|
"output": {
|
|
2774
2877
|
"char": "o",
|
|
2775
2878
|
"description": "Output format",
|
|
2776
2879
|
"name": "output",
|
|
2777
2880
|
"required": false,
|
|
2778
|
-
"default": "
|
|
2881
|
+
"default": "summary",
|
|
2779
2882
|
"hasDynamicHelp": false,
|
|
2780
2883
|
"multiple": false,
|
|
2781
2884
|
"options": [
|
|
2782
|
-
"
|
|
2885
|
+
"summary",
|
|
2783
2886
|
"json"
|
|
2784
2887
|
],
|
|
2785
2888
|
"type": "option"
|
|
@@ -2787,7 +2890,7 @@
|
|
|
2787
2890
|
},
|
|
2788
2891
|
"hasDynamicHelp": false,
|
|
2789
2892
|
"hiddenAliases": [],
|
|
2790
|
-
"id": "run:projects:
|
|
2893
|
+
"id": "run:projects:update",
|
|
2791
2894
|
"pluginAlias": "@xano/cli",
|
|
2792
2895
|
"pluginName": "@xano/cli",
|
|
2793
2896
|
"pluginType": "core",
|
|
@@ -2798,7 +2901,7 @@
|
|
|
2798
2901
|
"commands",
|
|
2799
2902
|
"run",
|
|
2800
2903
|
"projects",
|
|
2801
|
-
"
|
|
2904
|
+
"update",
|
|
2802
2905
|
"index.js"
|
|
2803
2906
|
]
|
|
2804
2907
|
},
|
|
@@ -2862,19 +2965,13 @@
|
|
|
2862
2965
|
"index.js"
|
|
2863
2966
|
]
|
|
2864
2967
|
},
|
|
2865
|
-
"run:secrets:
|
|
2968
|
+
"run:secrets:list": {
|
|
2866
2969
|
"aliases": [],
|
|
2867
|
-
"args": {
|
|
2868
|
-
|
|
2869
|
-
"description": "Secret name",
|
|
2870
|
-
"name": "name",
|
|
2871
|
-
"required": true
|
|
2872
|
-
}
|
|
2873
|
-
},
|
|
2874
|
-
"description": "Get a secret value",
|
|
2970
|
+
"args": {},
|
|
2971
|
+
"description": "List all secret keys",
|
|
2875
2972
|
"examples": [
|
|
2876
|
-
"$ xano run secrets
|
|
2877
|
-
"$ xano run secrets
|
|
2973
|
+
"$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
|
|
2974
|
+
"$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
|
|
2878
2975
|
],
|
|
2879
2976
|
"flags": {
|
|
2880
2977
|
"profile": {
|
|
@@ -2901,11 +2998,11 @@
|
|
|
2901
2998
|
"description": "Output format",
|
|
2902
2999
|
"name": "output",
|
|
2903
3000
|
"required": false,
|
|
2904
|
-
"default": "
|
|
3001
|
+
"default": "table",
|
|
2905
3002
|
"hasDynamicHelp": false,
|
|
2906
3003
|
"multiple": false,
|
|
2907
3004
|
"options": [
|
|
2908
|
-
"
|
|
3005
|
+
"table",
|
|
2909
3006
|
"json"
|
|
2910
3007
|
],
|
|
2911
3008
|
"type": "option"
|
|
@@ -2913,7 +3010,7 @@
|
|
|
2913
3010
|
},
|
|
2914
3011
|
"hasDynamicHelp": false,
|
|
2915
3012
|
"hiddenAliases": [],
|
|
2916
|
-
"id": "run:secrets:
|
|
3013
|
+
"id": "run:secrets:list",
|
|
2917
3014
|
"pluginAlias": "@xano/cli",
|
|
2918
3015
|
"pluginName": "@xano/cli",
|
|
2919
3016
|
"pluginType": "core",
|
|
@@ -2924,24 +3021,23 @@
|
|
|
2924
3021
|
"commands",
|
|
2925
3022
|
"run",
|
|
2926
3023
|
"secrets",
|
|
2927
|
-
"
|
|
3024
|
+
"list",
|
|
2928
3025
|
"index.js"
|
|
2929
3026
|
]
|
|
2930
3027
|
},
|
|
2931
|
-
"run:
|
|
3028
|
+
"run:secrets:get": {
|
|
2932
3029
|
"aliases": [],
|
|
2933
3030
|
"args": {
|
|
2934
|
-
"
|
|
2935
|
-
"description": "
|
|
2936
|
-
"name": "
|
|
3031
|
+
"name": {
|
|
3032
|
+
"description": "Secret name",
|
|
3033
|
+
"name": "name",
|
|
2937
3034
|
"required": true
|
|
2938
3035
|
}
|
|
2939
3036
|
},
|
|
2940
|
-
"description": "
|
|
3037
|
+
"description": "Get a secret value",
|
|
2941
3038
|
"examples": [
|
|
2942
|
-
"$ xano run
|
|
2943
|
-
"$ xano run
|
|
2944
|
-
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
3039
|
+
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
3040
|
+
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
2945
3041
|
],
|
|
2946
3042
|
"flags": {
|
|
2947
3043
|
"profile": {
|
|
@@ -2963,34 +3059,16 @@
|
|
|
2963
3059
|
"allowNo": false,
|
|
2964
3060
|
"type": "boolean"
|
|
2965
3061
|
},
|
|
2966
|
-
"description": {
|
|
2967
|
-
"char": "d",
|
|
2968
|
-
"description": "New project description",
|
|
2969
|
-
"name": "description",
|
|
2970
|
-
"required": false,
|
|
2971
|
-
"hasDynamicHelp": false,
|
|
2972
|
-
"multiple": false,
|
|
2973
|
-
"type": "option"
|
|
2974
|
-
},
|
|
2975
|
-
"name": {
|
|
2976
|
-
"char": "n",
|
|
2977
|
-
"description": "New project name",
|
|
2978
|
-
"name": "name",
|
|
2979
|
-
"required": false,
|
|
2980
|
-
"hasDynamicHelp": false,
|
|
2981
|
-
"multiple": false,
|
|
2982
|
-
"type": "option"
|
|
2983
|
-
},
|
|
2984
3062
|
"output": {
|
|
2985
3063
|
"char": "o",
|
|
2986
3064
|
"description": "Output format",
|
|
2987
3065
|
"name": "output",
|
|
2988
3066
|
"required": false,
|
|
2989
|
-
"default": "
|
|
3067
|
+
"default": "value",
|
|
2990
3068
|
"hasDynamicHelp": false,
|
|
2991
3069
|
"multiple": false,
|
|
2992
3070
|
"options": [
|
|
2993
|
-
"
|
|
3071
|
+
"value",
|
|
2994
3072
|
"json"
|
|
2995
3073
|
],
|
|
2996
3074
|
"type": "option"
|
|
@@ -2998,7 +3076,7 @@
|
|
|
2998
3076
|
},
|
|
2999
3077
|
"hasDynamicHelp": false,
|
|
3000
3078
|
"hiddenAliases": [],
|
|
3001
|
-
"id": "run:
|
|
3079
|
+
"id": "run:secrets:get",
|
|
3002
3080
|
"pluginAlias": "@xano/cli",
|
|
3003
3081
|
"pluginName": "@xano/cli",
|
|
3004
3082
|
"pluginType": "core",
|
|
@@ -3008,18 +3086,24 @@
|
|
|
3008
3086
|
"dist",
|
|
3009
3087
|
"commands",
|
|
3010
3088
|
"run",
|
|
3011
|
-
"
|
|
3012
|
-
"
|
|
3089
|
+
"secrets",
|
|
3090
|
+
"get",
|
|
3013
3091
|
"index.js"
|
|
3014
3092
|
]
|
|
3015
3093
|
},
|
|
3016
|
-
"run:
|
|
3094
|
+
"run:sessions:delete": {
|
|
3017
3095
|
"aliases": [],
|
|
3018
|
-
"args": {
|
|
3019
|
-
|
|
3096
|
+
"args": {
|
|
3097
|
+
"sessionId": {
|
|
3098
|
+
"description": "Session ID",
|
|
3099
|
+
"name": "sessionId",
|
|
3100
|
+
"required": true
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
"description": "Delete a session",
|
|
3020
3104
|
"examples": [
|
|
3021
|
-
"$ xano run
|
|
3022
|
-
"$ xano run
|
|
3105
|
+
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
3106
|
+
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
3023
3107
|
],
|
|
3024
3108
|
"flags": {
|
|
3025
3109
|
"profile": {
|
|
@@ -3041,24 +3125,18 @@
|
|
|
3041
3125
|
"allowNo": false,
|
|
3042
3126
|
"type": "boolean"
|
|
3043
3127
|
},
|
|
3044
|
-
"
|
|
3045
|
-
"char": "
|
|
3046
|
-
"description": "
|
|
3047
|
-
"name": "
|
|
3128
|
+
"force": {
|
|
3129
|
+
"char": "f",
|
|
3130
|
+
"description": "Skip confirmation prompt",
|
|
3131
|
+
"name": "force",
|
|
3048
3132
|
"required": false,
|
|
3049
|
-
"
|
|
3050
|
-
"
|
|
3051
|
-
"multiple": false,
|
|
3052
|
-
"options": [
|
|
3053
|
-
"table",
|
|
3054
|
-
"json"
|
|
3055
|
-
],
|
|
3056
|
-
"type": "option"
|
|
3133
|
+
"allowNo": false,
|
|
3134
|
+
"type": "boolean"
|
|
3057
3135
|
}
|
|
3058
3136
|
},
|
|
3059
3137
|
"hasDynamicHelp": false,
|
|
3060
3138
|
"hiddenAliases": [],
|
|
3061
|
-
"id": "run:
|
|
3139
|
+
"id": "run:sessions:delete",
|
|
3062
3140
|
"pluginAlias": "@xano/cli",
|
|
3063
3141
|
"pluginName": "@xano/cli",
|
|
3064
3142
|
"pluginType": "core",
|
|
@@ -3068,8 +3146,8 @@
|
|
|
3068
3146
|
"dist",
|
|
3069
3147
|
"commands",
|
|
3070
3148
|
"run",
|
|
3071
|
-
"
|
|
3072
|
-
"
|
|
3149
|
+
"sessions",
|
|
3150
|
+
"delete",
|
|
3073
3151
|
"index.js"
|
|
3074
3152
|
]
|
|
3075
3153
|
},
|
|
@@ -3156,66 +3234,6 @@
|
|
|
3156
3234
|
"index.js"
|
|
3157
3235
|
]
|
|
3158
3236
|
},
|
|
3159
|
-
"run:sessions:delete": {
|
|
3160
|
-
"aliases": [],
|
|
3161
|
-
"args": {
|
|
3162
|
-
"sessionId": {
|
|
3163
|
-
"description": "Session ID",
|
|
3164
|
-
"name": "sessionId",
|
|
3165
|
-
"required": true
|
|
3166
|
-
}
|
|
3167
|
-
},
|
|
3168
|
-
"description": "Delete a session",
|
|
3169
|
-
"examples": [
|
|
3170
|
-
"$ xano run sessions delete abc123-def456\nAre you sure you want to delete session 'abc123-def456'? (y/N)\nSession deleted successfully!\n",
|
|
3171
|
-
"$ xano run sessions delete abc123-def456 --force\nSession deleted successfully!\n"
|
|
3172
|
-
],
|
|
3173
|
-
"flags": {
|
|
3174
|
-
"profile": {
|
|
3175
|
-
"char": "p",
|
|
3176
|
-
"description": "Profile to use for this command",
|
|
3177
|
-
"env": "XANO_PROFILE",
|
|
3178
|
-
"name": "profile",
|
|
3179
|
-
"required": false,
|
|
3180
|
-
"hasDynamicHelp": false,
|
|
3181
|
-
"multiple": false,
|
|
3182
|
-
"type": "option"
|
|
3183
|
-
},
|
|
3184
|
-
"verbose": {
|
|
3185
|
-
"char": "v",
|
|
3186
|
-
"description": "Show detailed request/response information",
|
|
3187
|
-
"env": "XANO_VERBOSE",
|
|
3188
|
-
"name": "verbose",
|
|
3189
|
-
"required": false,
|
|
3190
|
-
"allowNo": false,
|
|
3191
|
-
"type": "boolean"
|
|
3192
|
-
},
|
|
3193
|
-
"force": {
|
|
3194
|
-
"char": "f",
|
|
3195
|
-
"description": "Skip confirmation prompt",
|
|
3196
|
-
"name": "force",
|
|
3197
|
-
"required": false,
|
|
3198
|
-
"allowNo": false,
|
|
3199
|
-
"type": "boolean"
|
|
3200
|
-
}
|
|
3201
|
-
},
|
|
3202
|
-
"hasDynamicHelp": false,
|
|
3203
|
-
"hiddenAliases": [],
|
|
3204
|
-
"id": "run:sessions:delete",
|
|
3205
|
-
"pluginAlias": "@xano/cli",
|
|
3206
|
-
"pluginName": "@xano/cli",
|
|
3207
|
-
"pluginType": "core",
|
|
3208
|
-
"strict": true,
|
|
3209
|
-
"isESM": true,
|
|
3210
|
-
"relativePath": [
|
|
3211
|
-
"dist",
|
|
3212
|
-
"commands",
|
|
3213
|
-
"run",
|
|
3214
|
-
"sessions",
|
|
3215
|
-
"delete",
|
|
3216
|
-
"index.js"
|
|
3217
|
-
]
|
|
3218
|
-
},
|
|
3219
3237
|
"run:sessions:get": {
|
|
3220
3238
|
"aliases": [],
|
|
3221
3239
|
"args": {
|
|
@@ -3824,5 +3842,5 @@
|
|
|
3824
3842
|
]
|
|
3825
3843
|
}
|
|
3826
3844
|
},
|
|
3827
|
-
"version": "0.0.
|
|
3845
|
+
"version": "0.0.29"
|
|
3828
3846
|
}
|