@xano/cli 0.0.21 → 0.0.22
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/dist/base-command.d.ts +1 -1
- package/dist/base-command.js +6 -6
- package/dist/commands/branch/create/index.d.ts +17 -0
- package/dist/commands/branch/create/index.js +164 -0
- package/dist/commands/branch/delete/index.d.ts +18 -0
- package/dist/commands/branch/delete/index.js +156 -0
- package/dist/commands/branch/edit/index.d.ts +19 -0
- package/dist/commands/branch/edit/index.js +166 -0
- package/dist/commands/branch/get/index.d.ts +16 -0
- package/dist/commands/branch/get/index.js +135 -0
- package/dist/commands/branch/list/index.d.ts +18 -0
- package/dist/commands/branch/list/index.js +138 -0
- package/dist/commands/branch/set-live/index.d.ts +18 -0
- package/dist/commands/branch/set-live/index.js +155 -0
- package/dist/commands/function/create/index.d.ts +6 -6
- package/dist/commands/function/create/index.js +55 -55
- package/dist/commands/function/edit/index.d.ts +10 -10
- package/dist/commands/function/edit/index.js +155 -162
- package/dist/commands/function/get/index.d.ts +5 -5
- package/dist/commands/function/get/index.js +55 -60
- package/dist/commands/function/list/index.d.ts +5 -5
- package/dist/commands/function/list/index.js +52 -52
- package/dist/commands/profile/create/index.d.ts +6 -6
- package/dist/commands/profile/create/index.js +37 -37
- package/dist/commands/profile/delete/index.d.ts +2 -2
- package/dist/commands/profile/delete/index.js +9 -9
- package/dist/commands/profile/edit/index.d.ts +7 -7
- package/dist/commands/profile/edit/index.js +47 -47
- package/dist/commands/profile/get-default/index.js +1 -1
- package/dist/commands/profile/list/index.d.ts +2 -2
- package/dist/commands/profile/list/index.js +9 -9
- package/dist/commands/profile/me/index.d.ts +3 -3
- package/dist/commands/profile/me/index.js +21 -21
- package/dist/commands/profile/project/index.js +1 -1
- package/dist/commands/profile/set-default/index.js +1 -1
- package/dist/commands/profile/token/index.js +1 -1
- package/dist/commands/profile/wizard/index.d.ts +4 -4
- package/dist/commands/profile/wizard/index.js +118 -122
- package/dist/commands/run/env/delete/index.d.ts +2 -2
- package/dist/commands/run/env/delete/index.js +9 -9
- package/dist/commands/run/env/get/index.d.ts +2 -2
- package/dist/commands/run/env/get/index.js +10 -10
- package/dist/commands/run/env/list/index.d.ts +2 -2
- package/dist/commands/run/env/list/index.js +16 -18
- package/dist/commands/run/env/set/index.d.ts +2 -2
- package/dist/commands/run/env/set/index.js +4 -4
- package/dist/commands/run/exec/index.d.ts +11 -11
- package/dist/commands/run/exec/index.js +109 -109
- package/dist/commands/run/info/index.d.ts +4 -4
- package/dist/commands/run/info/index.js +26 -26
- package/dist/commands/run/projects/create/index.d.ts +3 -3
- package/dist/commands/run/projects/create/index.js +22 -22
- package/dist/commands/run/projects/delete/index.d.ts +2 -2
- package/dist/commands/run/projects/delete/index.js +9 -9
- package/dist/commands/run/projects/list/index.d.ts +2 -2
- package/dist/commands/run/projects/list/index.js +11 -11
- package/dist/commands/run/projects/update/index.d.ts +3 -3
- package/dist/commands/run/projects/update/index.js +20 -20
- package/dist/commands/run/secrets/delete/index.d.ts +2 -2
- package/dist/commands/run/secrets/delete/index.js +9 -9
- package/dist/commands/run/secrets/get/index.d.ts +2 -2
- package/dist/commands/run/secrets/get/index.js +10 -10
- package/dist/commands/run/secrets/list/index.d.ts +2 -2
- package/dist/commands/run/secrets/list/index.js +21 -23
- package/dist/commands/run/secrets/set/index.d.ts +3 -3
- package/dist/commands/run/secrets/set/index.js +15 -15
- package/dist/commands/run/sessions/delete/index.d.ts +2 -2
- package/dist/commands/run/sessions/delete/index.js +9 -9
- package/dist/commands/run/sessions/get/index.d.ts +2 -2
- package/dist/commands/run/sessions/get/index.js +10 -10
- package/dist/commands/run/sessions/list/index.d.ts +2 -2
- package/dist/commands/run/sessions/list/index.js +10 -10
- package/dist/commands/run/sessions/start/index.d.ts +2 -2
- package/dist/commands/run/sessions/start/index.js +10 -10
- package/dist/commands/run/sessions/stop/index.d.ts +2 -2
- package/dist/commands/run/sessions/stop/index.js +10 -10
- package/dist/commands/run/sink/get/index.d.ts +2 -2
- package/dist/commands/run/sink/get/index.js +10 -10
- package/dist/commands/static_host/build/create/index.d.ts +4 -4
- package/dist/commands/static_host/build/create/index.js +33 -33
- package/dist/commands/static_host/build/get/index.d.ts +4 -4
- package/dist/commands/static_host/build/get/index.js +20 -20
- package/dist/commands/static_host/build/list/index.d.ts +3 -3
- package/dist/commands/static_host/build/list/index.js +31 -31
- package/dist/commands/static_host/list/index.d.ts +3 -3
- package/dist/commands/static_host/list/index.js +31 -31
- package/dist/commands/workspace/create/index.d.ts +3 -3
- package/dist/commands/workspace/create/index.js +24 -24
- package/dist/commands/workspace/delete/index.d.ts +2 -2
- package/dist/commands/workspace/delete/index.js +18 -18
- package/dist/commands/workspace/edit/index.d.ts +5 -5
- package/dist/commands/workspace/edit/index.js +34 -34
- package/dist/commands/workspace/get/index.d.ts +2 -2
- package/dist/commands/workspace/get/index.js +12 -12
- package/dist/commands/workspace/list/index.d.ts +2 -2
- package/dist/commands/workspace/list/index.js +15 -15
- package/dist/commands/workspace/pull/index.d.ts +4 -4
- package/dist/commands/workspace/pull/index.js +46 -51
- package/dist/commands/workspace/push/index.js +3 -3
- package/dist/help.d.ts +1 -1
- package/dist/lib/base-run-command.d.ts +4 -4
- package/dist/lib/base-run-command.js +3 -3
- package/dist/lib/run-http-client.d.ts +20 -20
- package/dist/lib/run-http-client.js +71 -71
- package/dist/lib/run-types.d.ts +80 -80
- package/oclif.manifest.json +1336 -815
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"branch:create": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Create a new
|
|
6
|
+
"description": "Create a new branch by cloning from an existing branch",
|
|
7
7
|
"examples": [
|
|
8
|
-
"$ xano
|
|
9
|
-
"$ xano
|
|
10
|
-
"$ xano
|
|
11
|
-
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
12
|
-
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
8
|
+
"$ xano branch create --label dev\nCreated branch: dev\n Cloned from: v1\n",
|
|
9
|
+
"$ xano branch create -l feature-auth -s dev -d \"Authentication feature\"\nCreated branch: feature-auth\n Cloned from: dev\n Description: Authentication feature\n",
|
|
10
|
+
"$ 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"
|
|
13
11
|
],
|
|
14
12
|
"flags": {
|
|
15
13
|
"profile": {
|
|
@@ -31,48 +29,32 @@
|
|
|
31
29
|
"allowNo": false,
|
|
32
30
|
"type": "boolean"
|
|
33
31
|
},
|
|
34
|
-
"
|
|
35
|
-
"char": "
|
|
36
|
-
"description": "
|
|
37
|
-
"name": "
|
|
32
|
+
"color": {
|
|
33
|
+
"char": "c",
|
|
34
|
+
"description": "Color hex code for the branch (e.g., \"#ebc346\")",
|
|
35
|
+
"name": "color",
|
|
38
36
|
"required": false,
|
|
39
37
|
"hasDynamicHelp": false,
|
|
40
38
|
"multiple": false,
|
|
41
39
|
"type": "option"
|
|
42
40
|
},
|
|
43
|
-
"
|
|
44
|
-
"char": "
|
|
45
|
-
"description": "
|
|
46
|
-
"
|
|
47
|
-
"stdin"
|
|
48
|
-
],
|
|
49
|
-
"name": "file",
|
|
41
|
+
"description": {
|
|
42
|
+
"char": "d",
|
|
43
|
+
"description": "Description for the new branch",
|
|
44
|
+
"name": "description",
|
|
50
45
|
"required": false,
|
|
51
46
|
"hasDynamicHelp": false,
|
|
52
47
|
"multiple": false,
|
|
53
48
|
"type": "option"
|
|
54
49
|
},
|
|
55
|
-
"
|
|
56
|
-
"char": "
|
|
57
|
-
"description": "
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"allowNo": false,
|
|
64
|
-
"type": "boolean"
|
|
65
|
-
},
|
|
66
|
-
"edit": {
|
|
67
|
-
"char": "e",
|
|
68
|
-
"dependsOn": [
|
|
69
|
-
"file"
|
|
70
|
-
],
|
|
71
|
-
"description": "Open file in editor before creating function (requires --file)",
|
|
72
|
-
"name": "edit",
|
|
73
|
-
"required": false,
|
|
74
|
-
"allowNo": false,
|
|
75
|
-
"type": "boolean"
|
|
50
|
+
"label": {
|
|
51
|
+
"char": "l",
|
|
52
|
+
"description": "Label for the new branch",
|
|
53
|
+
"name": "label",
|
|
54
|
+
"required": true,
|
|
55
|
+
"hasDynamicHelp": false,
|
|
56
|
+
"multiple": false,
|
|
57
|
+
"type": "option"
|
|
76
58
|
},
|
|
77
59
|
"output": {
|
|
78
60
|
"char": "o",
|
|
@@ -87,11 +69,30 @@
|
|
|
87
69
|
"json"
|
|
88
70
|
],
|
|
89
71
|
"type": "option"
|
|
72
|
+
},
|
|
73
|
+
"source": {
|
|
74
|
+
"char": "s",
|
|
75
|
+
"description": "Source branch to clone from (defaults to \"v1\")",
|
|
76
|
+
"name": "source",
|
|
77
|
+
"required": false,
|
|
78
|
+
"default": "v1",
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"multiple": false,
|
|
81
|
+
"type": "option"
|
|
82
|
+
},
|
|
83
|
+
"workspace": {
|
|
84
|
+
"char": "w",
|
|
85
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
86
|
+
"name": "workspace",
|
|
87
|
+
"required": false,
|
|
88
|
+
"hasDynamicHelp": false,
|
|
89
|
+
"multiple": false,
|
|
90
|
+
"type": "option"
|
|
90
91
|
}
|
|
91
92
|
},
|
|
92
93
|
"hasDynamicHelp": false,
|
|
93
94
|
"hiddenAliases": [],
|
|
94
|
-
"id": "
|
|
95
|
+
"id": "branch:create",
|
|
95
96
|
"pluginAlias": "@xano/cli",
|
|
96
97
|
"pluginName": "@xano/cli",
|
|
97
98
|
"pluginType": "core",
|
|
@@ -101,30 +102,25 @@
|
|
|
101
102
|
"relativePath": [
|
|
102
103
|
"dist",
|
|
103
104
|
"commands",
|
|
104
|
-
"
|
|
105
|
+
"branch",
|
|
105
106
|
"create",
|
|
106
107
|
"index.js"
|
|
107
108
|
]
|
|
108
109
|
},
|
|
109
|
-
"
|
|
110
|
+
"branch:delete": {
|
|
110
111
|
"aliases": [],
|
|
111
112
|
"args": {
|
|
112
|
-
"
|
|
113
|
-
"description": "
|
|
114
|
-
"name": "
|
|
115
|
-
"required":
|
|
113
|
+
"branch_label": {
|
|
114
|
+
"description": "Branch label to delete (cannot delete \"v1\" or the live branch)",
|
|
115
|
+
"name": "branch_label",
|
|
116
|
+
"required": true
|
|
116
117
|
}
|
|
117
118
|
},
|
|
118
|
-
"description": "
|
|
119
|
+
"description": "Delete a branch (cannot delete \"v1\" or the live branch)",
|
|
119
120
|
"examples": [
|
|
120
|
-
"$ xano
|
|
121
|
-
"$ xano
|
|
122
|
-
"$ xano
|
|
123
|
-
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
124
|
-
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
125
|
-
"$ 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",
|
|
126
|
-
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
127
|
-
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
121
|
+
"$ 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",
|
|
122
|
+
"$ xano branch delete dev --force\nDeleted branch: dev\n",
|
|
123
|
+
"$ xano branch delete staging -f -o json\n{\n \"deleted\": true,\n \"branch_label\": \"staging\"\n}\n"
|
|
128
124
|
],
|
|
129
125
|
"flags": {
|
|
130
126
|
"profile": {
|
|
@@ -146,52 +142,116 @@
|
|
|
146
142
|
"allowNo": false,
|
|
147
143
|
"type": "boolean"
|
|
148
144
|
},
|
|
145
|
+
"force": {
|
|
146
|
+
"char": "f",
|
|
147
|
+
"description": "Skip confirmation prompt",
|
|
148
|
+
"name": "force",
|
|
149
|
+
"required": false,
|
|
150
|
+
"allowNo": false,
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
},
|
|
153
|
+
"output": {
|
|
154
|
+
"char": "o",
|
|
155
|
+
"description": "Output format",
|
|
156
|
+
"name": "output",
|
|
157
|
+
"required": false,
|
|
158
|
+
"default": "summary",
|
|
159
|
+
"hasDynamicHelp": false,
|
|
160
|
+
"multiple": false,
|
|
161
|
+
"options": [
|
|
162
|
+
"summary",
|
|
163
|
+
"json"
|
|
164
|
+
],
|
|
165
|
+
"type": "option"
|
|
166
|
+
},
|
|
149
167
|
"workspace": {
|
|
150
168
|
"char": "w",
|
|
151
|
-
"description": "Workspace ID (
|
|
169
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
152
170
|
"name": "workspace",
|
|
153
171
|
"required": false,
|
|
154
172
|
"hasDynamicHelp": false,
|
|
155
173
|
"multiple": false,
|
|
156
174
|
"type": "option"
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"hasDynamicHelp": false,
|
|
178
|
+
"hiddenAliases": [],
|
|
179
|
+
"id": "branch:delete",
|
|
180
|
+
"pluginAlias": "@xano/cli",
|
|
181
|
+
"pluginName": "@xano/cli",
|
|
182
|
+
"pluginType": "core",
|
|
183
|
+
"strict": true,
|
|
184
|
+
"enableJsonFlag": false,
|
|
185
|
+
"isESM": true,
|
|
186
|
+
"relativePath": [
|
|
187
|
+
"dist",
|
|
188
|
+
"commands",
|
|
189
|
+
"branch",
|
|
190
|
+
"delete",
|
|
191
|
+
"index.js"
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"branch:edit": {
|
|
195
|
+
"aliases": [],
|
|
196
|
+
"args": {
|
|
197
|
+
"branch_label": {
|
|
198
|
+
"description": "Branch label to edit (cannot edit \"v1\" label)",
|
|
199
|
+
"name": "branch_label",
|
|
200
|
+
"required": true
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"description": "Update an existing branch (cannot update \"v1\" label)",
|
|
204
|
+
"examples": [
|
|
205
|
+
"$ xano branch edit dev --label development\nUpdated branch: development\n",
|
|
206
|
+
"$ xano branch edit feature-auth -l feature-authentication --color \"#ff5733\"\nUpdated branch: feature-authentication\n Color: #ff5733\n",
|
|
207
|
+
"$ 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"
|
|
208
|
+
],
|
|
209
|
+
"flags": {
|
|
210
|
+
"profile": {
|
|
211
|
+
"char": "p",
|
|
212
|
+
"description": "Profile to use for this command",
|
|
213
|
+
"env": "XANO_PROFILE",
|
|
214
|
+
"name": "profile",
|
|
165
215
|
"required": false,
|
|
166
216
|
"hasDynamicHelp": false,
|
|
167
217
|
"multiple": false,
|
|
168
218
|
"type": "option"
|
|
169
219
|
},
|
|
170
|
-
"
|
|
171
|
-
"char": "
|
|
172
|
-
"description": "
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
],
|
|
176
|
-
"name": "stdin",
|
|
220
|
+
"verbose": {
|
|
221
|
+
"char": "v",
|
|
222
|
+
"description": "Show detailed request/response information",
|
|
223
|
+
"env": "XANO_VERBOSE",
|
|
224
|
+
"name": "verbose",
|
|
177
225
|
"required": false,
|
|
178
226
|
"allowNo": false,
|
|
179
227
|
"type": "boolean"
|
|
180
228
|
},
|
|
181
|
-
"
|
|
182
|
-
"char": "
|
|
183
|
-
"description": "
|
|
184
|
-
"name": "
|
|
229
|
+
"color": {
|
|
230
|
+
"char": "c",
|
|
231
|
+
"description": "New color hex code for the branch (e.g., \"#ff5733\")",
|
|
232
|
+
"name": "color",
|
|
185
233
|
"required": false,
|
|
186
|
-
"
|
|
187
|
-
"
|
|
234
|
+
"hasDynamicHelp": false,
|
|
235
|
+
"multiple": false,
|
|
236
|
+
"type": "option"
|
|
188
237
|
},
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
238
|
+
"description": {
|
|
239
|
+
"char": "d",
|
|
240
|
+
"description": "New description for the branch",
|
|
241
|
+
"name": "description",
|
|
192
242
|
"required": false,
|
|
193
|
-
"
|
|
194
|
-
"
|
|
243
|
+
"hasDynamicHelp": false,
|
|
244
|
+
"multiple": false,
|
|
245
|
+
"type": "option"
|
|
246
|
+
},
|
|
247
|
+
"label": {
|
|
248
|
+
"char": "l",
|
|
249
|
+
"description": "New label for the branch",
|
|
250
|
+
"name": "label",
|
|
251
|
+
"required": false,
|
|
252
|
+
"hasDynamicHelp": false,
|
|
253
|
+
"multiple": false,
|
|
254
|
+
"type": "option"
|
|
195
255
|
},
|
|
196
256
|
"output": {
|
|
197
257
|
"char": "o",
|
|
@@ -206,11 +266,20 @@
|
|
|
206
266
|
"json"
|
|
207
267
|
],
|
|
208
268
|
"type": "option"
|
|
269
|
+
},
|
|
270
|
+
"workspace": {
|
|
271
|
+
"char": "w",
|
|
272
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
273
|
+
"name": "workspace",
|
|
274
|
+
"required": false,
|
|
275
|
+
"hasDynamicHelp": false,
|
|
276
|
+
"multiple": false,
|
|
277
|
+
"type": "option"
|
|
209
278
|
}
|
|
210
279
|
},
|
|
211
280
|
"hasDynamicHelp": false,
|
|
212
281
|
"hiddenAliases": [],
|
|
213
|
-
"id": "
|
|
282
|
+
"id": "branch:edit",
|
|
214
283
|
"pluginAlias": "@xano/cli",
|
|
215
284
|
"pluginName": "@xano/cli",
|
|
216
285
|
"pluginType": "core",
|
|
@@ -220,28 +289,25 @@
|
|
|
220
289
|
"relativePath": [
|
|
221
290
|
"dist",
|
|
222
291
|
"commands",
|
|
223
|
-
"
|
|
292
|
+
"branch",
|
|
224
293
|
"edit",
|
|
225
294
|
"index.js"
|
|
226
295
|
]
|
|
227
296
|
},
|
|
228
|
-
"
|
|
297
|
+
"branch:get": {
|
|
229
298
|
"aliases": [],
|
|
230
299
|
"args": {
|
|
231
|
-
"
|
|
232
|
-
"description": "
|
|
233
|
-
"name": "
|
|
234
|
-
"required":
|
|
300
|
+
"branch_label": {
|
|
301
|
+
"description": "Branch label (e.g., \"v1\", \"dev\")",
|
|
302
|
+
"name": "branch_label",
|
|
303
|
+
"required": true
|
|
235
304
|
}
|
|
236
305
|
},
|
|
237
|
-
"description": "Get a specific
|
|
306
|
+
"description": "Get details for a specific branch",
|
|
238
307
|
"examples": [
|
|
239
|
-
"$ xano
|
|
240
|
-
"$ xano
|
|
241
|
-
"$ xano
|
|
242
|
-
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
243
|
-
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
244
|
-
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
308
|
+
"$ xano branch get v1\nBranch: v1 (live)\n Created: 2024-01-15\n",
|
|
309
|
+
"$ xano branch get dev -w 123\nBranch: dev\n Created: 2024-02-01\n",
|
|
310
|
+
"$ 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"
|
|
245
311
|
],
|
|
246
312
|
"flags": {
|
|
247
313
|
"profile": {
|
|
@@ -263,15 +329,6 @@
|
|
|
263
329
|
"allowNo": false,
|
|
264
330
|
"type": "boolean"
|
|
265
331
|
},
|
|
266
|
-
"workspace": {
|
|
267
|
-
"char": "w",
|
|
268
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
269
|
-
"name": "workspace",
|
|
270
|
-
"required": false,
|
|
271
|
-
"hasDynamicHelp": false,
|
|
272
|
-
"multiple": false,
|
|
273
|
-
"type": "option"
|
|
274
|
-
},
|
|
275
332
|
"output": {
|
|
276
333
|
"char": "o",
|
|
277
334
|
"description": "Output format",
|
|
@@ -282,29 +339,23 @@
|
|
|
282
339
|
"multiple": false,
|
|
283
340
|
"options": [
|
|
284
341
|
"summary",
|
|
285
|
-
"json"
|
|
286
|
-
"xs"
|
|
342
|
+
"json"
|
|
287
343
|
],
|
|
288
344
|
"type": "option"
|
|
289
345
|
},
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"allowNo": false,
|
|
295
|
-
"type": "boolean"
|
|
296
|
-
},
|
|
297
|
-
"include_xanoscript": {
|
|
298
|
-
"description": "Include XanoScript in response",
|
|
299
|
-
"name": "include_xanoscript",
|
|
346
|
+
"workspace": {
|
|
347
|
+
"char": "w",
|
|
348
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
349
|
+
"name": "workspace",
|
|
300
350
|
"required": false,
|
|
301
|
-
"
|
|
302
|
-
"
|
|
351
|
+
"hasDynamicHelp": false,
|
|
352
|
+
"multiple": false,
|
|
353
|
+
"type": "option"
|
|
303
354
|
}
|
|
304
355
|
},
|
|
305
356
|
"hasDynamicHelp": false,
|
|
306
357
|
"hiddenAliases": [],
|
|
307
|
-
"id": "
|
|
358
|
+
"id": "branch:get",
|
|
308
359
|
"pluginAlias": "@xano/cli",
|
|
309
360
|
"pluginName": "@xano/cli",
|
|
310
361
|
"pluginType": "core",
|
|
@@ -314,20 +365,25 @@
|
|
|
314
365
|
"relativePath": [
|
|
315
366
|
"dist",
|
|
316
367
|
"commands",
|
|
317
|
-
"
|
|
368
|
+
"branch",
|
|
318
369
|
"get",
|
|
319
370
|
"index.js"
|
|
320
371
|
]
|
|
321
372
|
},
|
|
322
|
-
"
|
|
373
|
+
"branch:set-live": {
|
|
323
374
|
"aliases": [],
|
|
324
|
-
"args": {
|
|
325
|
-
|
|
375
|
+
"args": {
|
|
376
|
+
"branch_label": {
|
|
377
|
+
"description": "Branch label to set as live (use \"v1\" for default branch)",
|
|
378
|
+
"name": "branch_label",
|
|
379
|
+
"required": true
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"description": "Set a branch as the live (active) branch for API requests",
|
|
326
383
|
"examples": [
|
|
327
|
-
"$ xano
|
|
328
|
-
"$ xano
|
|
329
|
-
"$ xano
|
|
330
|
-
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
384
|
+
"$ 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",
|
|
385
|
+
"$ xano branch set-live v1 --force\nBranch 'v1' is now live\n",
|
|
386
|
+
"$ 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"
|
|
331
387
|
],
|
|
332
388
|
"flags": {
|
|
333
389
|
"profile": {
|
|
@@ -349,14 +405,13 @@
|
|
|
349
405
|
"allowNo": false,
|
|
350
406
|
"type": "boolean"
|
|
351
407
|
},
|
|
352
|
-
"
|
|
353
|
-
"char": "
|
|
354
|
-
"description": "
|
|
355
|
-
"name": "
|
|
408
|
+
"force": {
|
|
409
|
+
"char": "f",
|
|
410
|
+
"description": "Skip confirmation prompt",
|
|
411
|
+
"name": "force",
|
|
356
412
|
"required": false,
|
|
357
|
-
"
|
|
358
|
-
"
|
|
359
|
-
"type": "option"
|
|
413
|
+
"allowNo": false,
|
|
414
|
+
"type": "boolean"
|
|
360
415
|
},
|
|
361
416
|
"output": {
|
|
362
417
|
"char": "o",
|
|
@@ -372,8 +427,451 @@
|
|
|
372
427
|
],
|
|
373
428
|
"type": "option"
|
|
374
429
|
},
|
|
375
|
-
"
|
|
376
|
-
"
|
|
430
|
+
"workspace": {
|
|
431
|
+
"char": "w",
|
|
432
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
433
|
+
"name": "workspace",
|
|
434
|
+
"required": false,
|
|
435
|
+
"hasDynamicHelp": false,
|
|
436
|
+
"multiple": false,
|
|
437
|
+
"type": "option"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"hasDynamicHelp": false,
|
|
441
|
+
"hiddenAliases": [],
|
|
442
|
+
"id": "branch:set-live",
|
|
443
|
+
"pluginAlias": "@xano/cli",
|
|
444
|
+
"pluginName": "@xano/cli",
|
|
445
|
+
"pluginType": "core",
|
|
446
|
+
"strict": true,
|
|
447
|
+
"enableJsonFlag": false,
|
|
448
|
+
"isESM": true,
|
|
449
|
+
"relativePath": [
|
|
450
|
+
"dist",
|
|
451
|
+
"commands",
|
|
452
|
+
"branch",
|
|
453
|
+
"set-live",
|
|
454
|
+
"index.js"
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
"branch:list": {
|
|
458
|
+
"aliases": [],
|
|
459
|
+
"args": {
|
|
460
|
+
"workspace_id": {
|
|
461
|
+
"description": "Workspace ID (uses profile workspace if not provided)",
|
|
462
|
+
"name": "workspace_id",
|
|
463
|
+
"required": false
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"description": "List all branches in a workspace",
|
|
467
|
+
"examples": [
|
|
468
|
+
"$ xano branch list\nAvailable branches:\n - v1 (live)\n - dev\n - staging\n",
|
|
469
|
+
"$ xano branch list 123\nAvailable branches:\n - v1 (live)\n - feature-auth\n",
|
|
470
|
+
"$ 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"
|
|
471
|
+
],
|
|
472
|
+
"flags": {
|
|
473
|
+
"profile": {
|
|
474
|
+
"char": "p",
|
|
475
|
+
"description": "Profile to use for this command",
|
|
476
|
+
"env": "XANO_PROFILE",
|
|
477
|
+
"name": "profile",
|
|
478
|
+
"required": false,
|
|
479
|
+
"hasDynamicHelp": false,
|
|
480
|
+
"multiple": false,
|
|
481
|
+
"type": "option"
|
|
482
|
+
},
|
|
483
|
+
"verbose": {
|
|
484
|
+
"char": "v",
|
|
485
|
+
"description": "Show detailed request/response information",
|
|
486
|
+
"env": "XANO_VERBOSE",
|
|
487
|
+
"name": "verbose",
|
|
488
|
+
"required": false,
|
|
489
|
+
"allowNo": false,
|
|
490
|
+
"type": "boolean"
|
|
491
|
+
},
|
|
492
|
+
"output": {
|
|
493
|
+
"char": "o",
|
|
494
|
+
"description": "Output format",
|
|
495
|
+
"name": "output",
|
|
496
|
+
"required": false,
|
|
497
|
+
"default": "summary",
|
|
498
|
+
"hasDynamicHelp": false,
|
|
499
|
+
"multiple": false,
|
|
500
|
+
"options": [
|
|
501
|
+
"summary",
|
|
502
|
+
"json"
|
|
503
|
+
],
|
|
504
|
+
"type": "option"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"hasDynamicHelp": false,
|
|
508
|
+
"hiddenAliases": [],
|
|
509
|
+
"id": "branch:list",
|
|
510
|
+
"pluginAlias": "@xano/cli",
|
|
511
|
+
"pluginName": "@xano/cli",
|
|
512
|
+
"pluginType": "core",
|
|
513
|
+
"strict": true,
|
|
514
|
+
"enableJsonFlag": false,
|
|
515
|
+
"isESM": true,
|
|
516
|
+
"relativePath": [
|
|
517
|
+
"dist",
|
|
518
|
+
"commands",
|
|
519
|
+
"branch",
|
|
520
|
+
"list",
|
|
521
|
+
"index.js"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
"function:create": {
|
|
525
|
+
"aliases": [],
|
|
526
|
+
"args": {},
|
|
527
|
+
"description": "Create a new function in a workspace",
|
|
528
|
+
"examples": [
|
|
529
|
+
"$ xano function:create -w 40 -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
530
|
+
"$ xano function:create -f function.xs\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
531
|
+
"$ 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",
|
|
532
|
+
"$ cat function.xs | xano function:create -w 40 --stdin\nFunction created successfully!\nID: 123\nName: my_function\n",
|
|
533
|
+
"$ xano function:create -w 40 -f function.xs -o json\n{\n \"id\": 123,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
534
|
+
],
|
|
535
|
+
"flags": {
|
|
536
|
+
"profile": {
|
|
537
|
+
"char": "p",
|
|
538
|
+
"description": "Profile to use for this command",
|
|
539
|
+
"env": "XANO_PROFILE",
|
|
540
|
+
"name": "profile",
|
|
541
|
+
"required": false,
|
|
542
|
+
"hasDynamicHelp": false,
|
|
543
|
+
"multiple": false,
|
|
544
|
+
"type": "option"
|
|
545
|
+
},
|
|
546
|
+
"verbose": {
|
|
547
|
+
"char": "v",
|
|
548
|
+
"description": "Show detailed request/response information",
|
|
549
|
+
"env": "XANO_VERBOSE",
|
|
550
|
+
"name": "verbose",
|
|
551
|
+
"required": false,
|
|
552
|
+
"allowNo": false,
|
|
553
|
+
"type": "boolean"
|
|
554
|
+
},
|
|
555
|
+
"edit": {
|
|
556
|
+
"char": "e",
|
|
557
|
+
"dependsOn": [
|
|
558
|
+
"file"
|
|
559
|
+
],
|
|
560
|
+
"description": "Open file in editor before creating function (requires --file)",
|
|
561
|
+
"name": "edit",
|
|
562
|
+
"required": false,
|
|
563
|
+
"allowNo": false,
|
|
564
|
+
"type": "boolean"
|
|
565
|
+
},
|
|
566
|
+
"file": {
|
|
567
|
+
"char": "f",
|
|
568
|
+
"description": "Path to file containing XanoScript code",
|
|
569
|
+
"exclusive": [
|
|
570
|
+
"stdin"
|
|
571
|
+
],
|
|
572
|
+
"name": "file",
|
|
573
|
+
"required": false,
|
|
574
|
+
"hasDynamicHelp": false,
|
|
575
|
+
"multiple": false,
|
|
576
|
+
"type": "option"
|
|
577
|
+
},
|
|
578
|
+
"output": {
|
|
579
|
+
"char": "o",
|
|
580
|
+
"description": "Output format",
|
|
581
|
+
"name": "output",
|
|
582
|
+
"required": false,
|
|
583
|
+
"default": "summary",
|
|
584
|
+
"hasDynamicHelp": false,
|
|
585
|
+
"multiple": false,
|
|
586
|
+
"options": [
|
|
587
|
+
"summary",
|
|
588
|
+
"json"
|
|
589
|
+
],
|
|
590
|
+
"type": "option"
|
|
591
|
+
},
|
|
592
|
+
"stdin": {
|
|
593
|
+
"char": "s",
|
|
594
|
+
"description": "Read XanoScript code from stdin",
|
|
595
|
+
"exclusive": [
|
|
596
|
+
"file"
|
|
597
|
+
],
|
|
598
|
+
"name": "stdin",
|
|
599
|
+
"required": false,
|
|
600
|
+
"allowNo": false,
|
|
601
|
+
"type": "boolean"
|
|
602
|
+
},
|
|
603
|
+
"workspace": {
|
|
604
|
+
"char": "w",
|
|
605
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
606
|
+
"name": "workspace",
|
|
607
|
+
"required": false,
|
|
608
|
+
"hasDynamicHelp": false,
|
|
609
|
+
"multiple": false,
|
|
610
|
+
"type": "option"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"hasDynamicHelp": false,
|
|
614
|
+
"hiddenAliases": [],
|
|
615
|
+
"id": "function:create",
|
|
616
|
+
"pluginAlias": "@xano/cli",
|
|
617
|
+
"pluginName": "@xano/cli",
|
|
618
|
+
"pluginType": "core",
|
|
619
|
+
"strict": true,
|
|
620
|
+
"enableJsonFlag": false,
|
|
621
|
+
"isESM": true,
|
|
622
|
+
"relativePath": [
|
|
623
|
+
"dist",
|
|
624
|
+
"commands",
|
|
625
|
+
"function",
|
|
626
|
+
"create",
|
|
627
|
+
"index.js"
|
|
628
|
+
]
|
|
629
|
+
},
|
|
630
|
+
"function:edit": {
|
|
631
|
+
"aliases": [],
|
|
632
|
+
"args": {
|
|
633
|
+
"function_id": {
|
|
634
|
+
"description": "Function ID to edit",
|
|
635
|
+
"name": "function_id",
|
|
636
|
+
"required": false
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"description": "Edit a function in a workspace",
|
|
640
|
+
"examples": [
|
|
641
|
+
"$ 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",
|
|
642
|
+
"$ 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",
|
|
643
|
+
"$ xano function:edit 163 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
644
|
+
"$ xano function:edit 163 -w 40 -f function.xs\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
645
|
+
"$ xano function:edit -f function.xs\nSelect a function to edit:\n ❯ my_function (ID: 163) - Sample function\n another-func (ID: 164)\n",
|
|
646
|
+
"$ 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",
|
|
647
|
+
"$ cat function.xs | xano function:edit 163 --stdin\nFunction updated successfully!\nID: 163\nName: my_function\n",
|
|
648
|
+
"$ xano function:edit 163 -f function.xs -o json\n{\n \"id\": 163,\n \"name\": \"my_function\",\n ...\n}\n"
|
|
649
|
+
],
|
|
650
|
+
"flags": {
|
|
651
|
+
"profile": {
|
|
652
|
+
"char": "p",
|
|
653
|
+
"description": "Profile to use for this command",
|
|
654
|
+
"env": "XANO_PROFILE",
|
|
655
|
+
"name": "profile",
|
|
656
|
+
"required": false,
|
|
657
|
+
"hasDynamicHelp": false,
|
|
658
|
+
"multiple": false,
|
|
659
|
+
"type": "option"
|
|
660
|
+
},
|
|
661
|
+
"verbose": {
|
|
662
|
+
"char": "v",
|
|
663
|
+
"description": "Show detailed request/response information",
|
|
664
|
+
"env": "XANO_VERBOSE",
|
|
665
|
+
"name": "verbose",
|
|
666
|
+
"required": false,
|
|
667
|
+
"allowNo": false,
|
|
668
|
+
"type": "boolean"
|
|
669
|
+
},
|
|
670
|
+
"edit": {
|
|
671
|
+
"char": "e",
|
|
672
|
+
"description": "Open file in editor before updating function (requires --file)",
|
|
673
|
+
"name": "edit",
|
|
674
|
+
"required": false,
|
|
675
|
+
"allowNo": false,
|
|
676
|
+
"type": "boolean"
|
|
677
|
+
},
|
|
678
|
+
"file": {
|
|
679
|
+
"char": "f",
|
|
680
|
+
"description": "Path to file containing XanoScript code",
|
|
681
|
+
"exclusive": [
|
|
682
|
+
"stdin"
|
|
683
|
+
],
|
|
684
|
+
"name": "file",
|
|
685
|
+
"required": false,
|
|
686
|
+
"hasDynamicHelp": false,
|
|
687
|
+
"multiple": false,
|
|
688
|
+
"type": "option"
|
|
689
|
+
},
|
|
690
|
+
"output": {
|
|
691
|
+
"char": "o",
|
|
692
|
+
"description": "Output format",
|
|
693
|
+
"name": "output",
|
|
694
|
+
"required": false,
|
|
695
|
+
"default": "summary",
|
|
696
|
+
"hasDynamicHelp": false,
|
|
697
|
+
"multiple": false,
|
|
698
|
+
"options": [
|
|
699
|
+
"summary",
|
|
700
|
+
"json"
|
|
701
|
+
],
|
|
702
|
+
"type": "option"
|
|
703
|
+
},
|
|
704
|
+
"publish": {
|
|
705
|
+
"description": "Publish the function after editing",
|
|
706
|
+
"name": "publish",
|
|
707
|
+
"required": false,
|
|
708
|
+
"allowNo": false,
|
|
709
|
+
"type": "boolean"
|
|
710
|
+
},
|
|
711
|
+
"stdin": {
|
|
712
|
+
"char": "s",
|
|
713
|
+
"description": "Read XanoScript code from stdin",
|
|
714
|
+
"exclusive": [
|
|
715
|
+
"file"
|
|
716
|
+
],
|
|
717
|
+
"name": "stdin",
|
|
718
|
+
"required": false,
|
|
719
|
+
"allowNo": false,
|
|
720
|
+
"type": "boolean"
|
|
721
|
+
},
|
|
722
|
+
"workspace": {
|
|
723
|
+
"char": "w",
|
|
724
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
725
|
+
"name": "workspace",
|
|
726
|
+
"required": false,
|
|
727
|
+
"hasDynamicHelp": false,
|
|
728
|
+
"multiple": false,
|
|
729
|
+
"type": "option"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"hasDynamicHelp": false,
|
|
733
|
+
"hiddenAliases": [],
|
|
734
|
+
"id": "function:edit",
|
|
735
|
+
"pluginAlias": "@xano/cli",
|
|
736
|
+
"pluginName": "@xano/cli",
|
|
737
|
+
"pluginType": "core",
|
|
738
|
+
"strict": true,
|
|
739
|
+
"enableJsonFlag": false,
|
|
740
|
+
"isESM": true,
|
|
741
|
+
"relativePath": [
|
|
742
|
+
"dist",
|
|
743
|
+
"commands",
|
|
744
|
+
"function",
|
|
745
|
+
"edit",
|
|
746
|
+
"index.js"
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
"function:get": {
|
|
750
|
+
"aliases": [],
|
|
751
|
+
"args": {
|
|
752
|
+
"function_id": {
|
|
753
|
+
"description": "Function ID",
|
|
754
|
+
"name": "function_id",
|
|
755
|
+
"required": false
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"description": "Get a specific function from a workspace",
|
|
759
|
+
"examples": [
|
|
760
|
+
"$ xano function:get 145 -w 40\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\nDescription: Sample function\n",
|
|
761
|
+
"$ xano function:get 145 --profile production\nFunction: yo (ID: 145)\nCreated: 2025-10-10 10:30:00\n",
|
|
762
|
+
"$ xano function:get\nSelect a function:\n ❯ yo (ID: 145) - Sample function\n another-func (ID: 146)\n",
|
|
763
|
+
"$ xano function:get 145 -w 40 --output json\n{\n \"id\": 145,\n \"name\": \"yo\",\n \"description\": \"Sample function\"\n}\n",
|
|
764
|
+
"$ xano function:get 145 -p staging -o json --include_draft\n{\n \"id\": 145,\n \"name\": \"yo\"\n}\n",
|
|
765
|
+
"$ xano function:get 145 -p staging -o xs\nfunction yo {\n input {\n }\n stack {\n }\n response = null\n}\n"
|
|
766
|
+
],
|
|
767
|
+
"flags": {
|
|
768
|
+
"profile": {
|
|
769
|
+
"char": "p",
|
|
770
|
+
"description": "Profile to use for this command",
|
|
771
|
+
"env": "XANO_PROFILE",
|
|
772
|
+
"name": "profile",
|
|
773
|
+
"required": false,
|
|
774
|
+
"hasDynamicHelp": false,
|
|
775
|
+
"multiple": false,
|
|
776
|
+
"type": "option"
|
|
777
|
+
},
|
|
778
|
+
"verbose": {
|
|
779
|
+
"char": "v",
|
|
780
|
+
"description": "Show detailed request/response information",
|
|
781
|
+
"env": "XANO_VERBOSE",
|
|
782
|
+
"name": "verbose",
|
|
783
|
+
"required": false,
|
|
784
|
+
"allowNo": false,
|
|
785
|
+
"type": "boolean"
|
|
786
|
+
},
|
|
787
|
+
"include_draft": {
|
|
788
|
+
"description": "Include draft version",
|
|
789
|
+
"name": "include_draft",
|
|
790
|
+
"required": false,
|
|
791
|
+
"allowNo": false,
|
|
792
|
+
"type": "boolean"
|
|
793
|
+
},
|
|
794
|
+
"include_xanoscript": {
|
|
795
|
+
"description": "Include XanoScript in response",
|
|
796
|
+
"name": "include_xanoscript",
|
|
797
|
+
"required": false,
|
|
798
|
+
"allowNo": false,
|
|
799
|
+
"type": "boolean"
|
|
800
|
+
},
|
|
801
|
+
"output": {
|
|
802
|
+
"char": "o",
|
|
803
|
+
"description": "Output format",
|
|
804
|
+
"name": "output",
|
|
805
|
+
"required": false,
|
|
806
|
+
"default": "summary",
|
|
807
|
+
"hasDynamicHelp": false,
|
|
808
|
+
"multiple": false,
|
|
809
|
+
"options": [
|
|
810
|
+
"summary",
|
|
811
|
+
"json",
|
|
812
|
+
"xs"
|
|
813
|
+
],
|
|
814
|
+
"type": "option"
|
|
815
|
+
},
|
|
816
|
+
"workspace": {
|
|
817
|
+
"char": "w",
|
|
818
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
819
|
+
"name": "workspace",
|
|
820
|
+
"required": false,
|
|
821
|
+
"hasDynamicHelp": false,
|
|
822
|
+
"multiple": false,
|
|
823
|
+
"type": "option"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"hasDynamicHelp": false,
|
|
827
|
+
"hiddenAliases": [],
|
|
828
|
+
"id": "function:get",
|
|
829
|
+
"pluginAlias": "@xano/cli",
|
|
830
|
+
"pluginName": "@xano/cli",
|
|
831
|
+
"pluginType": "core",
|
|
832
|
+
"strict": true,
|
|
833
|
+
"enableJsonFlag": false,
|
|
834
|
+
"isESM": true,
|
|
835
|
+
"relativePath": [
|
|
836
|
+
"dist",
|
|
837
|
+
"commands",
|
|
838
|
+
"function",
|
|
839
|
+
"get",
|
|
840
|
+
"index.js"
|
|
841
|
+
]
|
|
842
|
+
},
|
|
843
|
+
"function:list": {
|
|
844
|
+
"aliases": [],
|
|
845
|
+
"args": {},
|
|
846
|
+
"description": "List all functions in a workspace from the Xano Metadata API",
|
|
847
|
+
"examples": [
|
|
848
|
+
"$ xano function:list -w 40\nAvailable functions:\n - function-1 (ID: 1)\n - function-2 (ID: 2)\n - function-3 (ID: 3)\n",
|
|
849
|
+
"$ xano function:list --profile production\nAvailable functions:\n - my-function (ID: 1)\n - another-function (ID: 2)\n",
|
|
850
|
+
"$ xano function:list -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n",
|
|
851
|
+
"$ xano function:list -p staging -o json --include_draft\n[\n {\n \"id\": 1,\n \"name\": \"function-1\"\n }\n]\n"
|
|
852
|
+
],
|
|
853
|
+
"flags": {
|
|
854
|
+
"profile": {
|
|
855
|
+
"char": "p",
|
|
856
|
+
"description": "Profile to use for this command",
|
|
857
|
+
"env": "XANO_PROFILE",
|
|
858
|
+
"name": "profile",
|
|
859
|
+
"required": false,
|
|
860
|
+
"hasDynamicHelp": false,
|
|
861
|
+
"multiple": false,
|
|
862
|
+
"type": "option"
|
|
863
|
+
},
|
|
864
|
+
"verbose": {
|
|
865
|
+
"char": "v",
|
|
866
|
+
"description": "Show detailed request/response information",
|
|
867
|
+
"env": "XANO_VERBOSE",
|
|
868
|
+
"name": "verbose",
|
|
869
|
+
"required": false,
|
|
870
|
+
"allowNo": false,
|
|
871
|
+
"type": "boolean"
|
|
872
|
+
},
|
|
873
|
+
"include_draft": {
|
|
874
|
+
"description": "Include draft functions",
|
|
377
875
|
"name": "include_draft",
|
|
378
876
|
"required": false,
|
|
379
877
|
"allowNo": false,
|
|
@@ -386,6 +884,33 @@
|
|
|
386
884
|
"allowNo": false,
|
|
387
885
|
"type": "boolean"
|
|
388
886
|
},
|
|
887
|
+
"order": {
|
|
888
|
+
"description": "Sort order",
|
|
889
|
+
"name": "order",
|
|
890
|
+
"required": false,
|
|
891
|
+
"default": "desc",
|
|
892
|
+
"hasDynamicHelp": false,
|
|
893
|
+
"multiple": false,
|
|
894
|
+
"options": [
|
|
895
|
+
"asc",
|
|
896
|
+
"desc"
|
|
897
|
+
],
|
|
898
|
+
"type": "option"
|
|
899
|
+
},
|
|
900
|
+
"output": {
|
|
901
|
+
"char": "o",
|
|
902
|
+
"description": "Output format",
|
|
903
|
+
"name": "output",
|
|
904
|
+
"required": false,
|
|
905
|
+
"default": "summary",
|
|
906
|
+
"hasDynamicHelp": false,
|
|
907
|
+
"multiple": false,
|
|
908
|
+
"options": [
|
|
909
|
+
"summary",
|
|
910
|
+
"json"
|
|
911
|
+
],
|
|
912
|
+
"type": "option"
|
|
913
|
+
},
|
|
389
914
|
"page": {
|
|
390
915
|
"description": "Page number for pagination",
|
|
391
916
|
"name": "page",
|
|
@@ -413,17 +938,13 @@
|
|
|
413
938
|
"multiple": false,
|
|
414
939
|
"type": "option"
|
|
415
940
|
},
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
941
|
+
"workspace": {
|
|
942
|
+
"char": "w",
|
|
943
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
944
|
+
"name": "workspace",
|
|
419
945
|
"required": false,
|
|
420
|
-
"default": "desc",
|
|
421
946
|
"hasDynamicHelp": false,
|
|
422
947
|
"multiple": false,
|
|
423
|
-
"options": [
|
|
424
|
-
"asc",
|
|
425
|
-
"desc"
|
|
426
|
-
],
|
|
427
948
|
"type": "option"
|
|
428
949
|
}
|
|
429
950
|
},
|
|
@@ -483,29 +1004,15 @@
|
|
|
483
1004
|
"allowNo": false,
|
|
484
1005
|
"type": "boolean"
|
|
485
1006
|
},
|
|
486
|
-
"
|
|
487
|
-
"char": "
|
|
488
|
-
"description": "Path or URL to file containing
|
|
489
|
-
"
|
|
490
|
-
"stdin"
|
|
491
|
-
],
|
|
492
|
-
"name": "file",
|
|
1007
|
+
"args": {
|
|
1008
|
+
"char": "a",
|
|
1009
|
+
"description": "Path or URL to JSON file containing input arguments",
|
|
1010
|
+
"name": "args",
|
|
493
1011
|
"required": false,
|
|
494
1012
|
"hasDynamicHelp": false,
|
|
495
1013
|
"multiple": false,
|
|
496
1014
|
"type": "option"
|
|
497
1015
|
},
|
|
498
|
-
"stdin": {
|
|
499
|
-
"char": "s",
|
|
500
|
-
"description": "Read XanoScript code from stdin",
|
|
501
|
-
"exclusive": [
|
|
502
|
-
"file"
|
|
503
|
-
],
|
|
504
|
-
"name": "stdin",
|
|
505
|
-
"required": false,
|
|
506
|
-
"allowNo": false,
|
|
507
|
-
"type": "boolean"
|
|
508
|
-
},
|
|
509
1016
|
"edit": {
|
|
510
1017
|
"char": "e",
|
|
511
1018
|
"description": "Open file in editor before running (requires path argument or --file)",
|
|
@@ -514,6 +1021,26 @@
|
|
|
514
1021
|
"allowNo": false,
|
|
515
1022
|
"type": "boolean"
|
|
516
1023
|
},
|
|
1024
|
+
"env": {
|
|
1025
|
+
"description": "Environment variable override (key=value)",
|
|
1026
|
+
"name": "env",
|
|
1027
|
+
"required": false,
|
|
1028
|
+
"hasDynamicHelp": false,
|
|
1029
|
+
"multiple": true,
|
|
1030
|
+
"type": "option"
|
|
1031
|
+
},
|
|
1032
|
+
"file": {
|
|
1033
|
+
"char": "f",
|
|
1034
|
+
"description": "Path or URL to file containing XanoScript code (deprecated: use path argument instead)",
|
|
1035
|
+
"exclusive": [
|
|
1036
|
+
"stdin"
|
|
1037
|
+
],
|
|
1038
|
+
"name": "file",
|
|
1039
|
+
"required": false,
|
|
1040
|
+
"hasDynamicHelp": false,
|
|
1041
|
+
"multiple": false,
|
|
1042
|
+
"type": "option"
|
|
1043
|
+
},
|
|
517
1044
|
"output": {
|
|
518
1045
|
"char": "o",
|
|
519
1046
|
"description": "Output format",
|
|
@@ -528,22 +1055,16 @@
|
|
|
528
1055
|
],
|
|
529
1056
|
"type": "option"
|
|
530
1057
|
},
|
|
531
|
-
"
|
|
532
|
-
"char": "
|
|
533
|
-
"description": "
|
|
534
|
-
"
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
"
|
|
538
|
-
"type": "option"
|
|
539
|
-
},
|
|
540
|
-
"env": {
|
|
541
|
-
"description": "Environment variable override (key=value)",
|
|
542
|
-
"name": "env",
|
|
1058
|
+
"stdin": {
|
|
1059
|
+
"char": "s",
|
|
1060
|
+
"description": "Read XanoScript code from stdin",
|
|
1061
|
+
"exclusive": [
|
|
1062
|
+
"file"
|
|
1063
|
+
],
|
|
1064
|
+
"name": "stdin",
|
|
543
1065
|
"required": false,
|
|
544
|
-
"
|
|
545
|
-
"
|
|
546
|
-
"type": "option"
|
|
1066
|
+
"allowNo": false,
|
|
1067
|
+
"type": "boolean"
|
|
547
1068
|
}
|
|
548
1069
|
},
|
|
549
1070
|
"hasDynamicHelp": false,
|
|
@@ -603,17 +1124,6 @@
|
|
|
603
1124
|
"multiple": false,
|
|
604
1125
|
"type": "option"
|
|
605
1126
|
},
|
|
606
|
-
"stdin": {
|
|
607
|
-
"char": "s",
|
|
608
|
-
"description": "Read XanoScript code from stdin",
|
|
609
|
-
"exclusive": [
|
|
610
|
-
"file"
|
|
611
|
-
],
|
|
612
|
-
"name": "stdin",
|
|
613
|
-
"required": false,
|
|
614
|
-
"allowNo": false,
|
|
615
|
-
"type": "boolean"
|
|
616
|
-
},
|
|
617
1127
|
"output": {
|
|
618
1128
|
"char": "o",
|
|
619
1129
|
"description": "Output format",
|
|
@@ -627,6 +1137,17 @@
|
|
|
627
1137
|
"json"
|
|
628
1138
|
],
|
|
629
1139
|
"type": "option"
|
|
1140
|
+
},
|
|
1141
|
+
"stdin": {
|
|
1142
|
+
"char": "s",
|
|
1143
|
+
"description": "Read XanoScript code from stdin",
|
|
1144
|
+
"exclusive": [
|
|
1145
|
+
"file"
|
|
1146
|
+
],
|
|
1147
|
+
"name": "stdin",
|
|
1148
|
+
"required": false,
|
|
1149
|
+
"allowNo": false,
|
|
1150
|
+
"type": "boolean"
|
|
630
1151
|
}
|
|
631
1152
|
},
|
|
632
1153
|
"hasDynamicHelp": false,
|
|
@@ -663,24 +1184,6 @@
|
|
|
663
1184
|
"$ 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"
|
|
664
1185
|
],
|
|
665
1186
|
"flags": {
|
|
666
|
-
"account_origin": {
|
|
667
|
-
"char": "a",
|
|
668
|
-
"description": "Account origin URL. Optional for self hosted installs.",
|
|
669
|
-
"name": "account_origin",
|
|
670
|
-
"required": false,
|
|
671
|
-
"hasDynamicHelp": false,
|
|
672
|
-
"multiple": false,
|
|
673
|
-
"type": "option"
|
|
674
|
-
},
|
|
675
|
-
"instance_origin": {
|
|
676
|
-
"char": "i",
|
|
677
|
-
"description": "Instance origin URL",
|
|
678
|
-
"name": "instance_origin",
|
|
679
|
-
"required": true,
|
|
680
|
-
"hasDynamicHelp": false,
|
|
681
|
-
"multiple": false,
|
|
682
|
-
"type": "option"
|
|
683
|
-
},
|
|
684
1187
|
"access_token": {
|
|
685
1188
|
"char": "t",
|
|
686
1189
|
"description": "Access token for the Xano Metadata API",
|
|
@@ -690,10 +1193,10 @@
|
|
|
690
1193
|
"multiple": false,
|
|
691
1194
|
"type": "option"
|
|
692
1195
|
},
|
|
693
|
-
"
|
|
694
|
-
"char": "
|
|
695
|
-
"description": "
|
|
696
|
-
"name": "
|
|
1196
|
+
"account_origin": {
|
|
1197
|
+
"char": "a",
|
|
1198
|
+
"description": "Account origin URL. Optional for self hosted installs.",
|
|
1199
|
+
"name": "account_origin",
|
|
697
1200
|
"required": false,
|
|
698
1201
|
"hasDynamicHelp": false,
|
|
699
1202
|
"multiple": false,
|
|
@@ -708,6 +1211,22 @@
|
|
|
708
1211
|
"multiple": false,
|
|
709
1212
|
"type": "option"
|
|
710
1213
|
},
|
|
1214
|
+
"default": {
|
|
1215
|
+
"description": "Set this profile as the default",
|
|
1216
|
+
"name": "default",
|
|
1217
|
+
"required": false,
|
|
1218
|
+
"allowNo": false,
|
|
1219
|
+
"type": "boolean"
|
|
1220
|
+
},
|
|
1221
|
+
"instance_origin": {
|
|
1222
|
+
"char": "i",
|
|
1223
|
+
"description": "Instance origin URL",
|
|
1224
|
+
"name": "instance_origin",
|
|
1225
|
+
"required": true,
|
|
1226
|
+
"hasDynamicHelp": false,
|
|
1227
|
+
"multiple": false,
|
|
1228
|
+
"type": "option"
|
|
1229
|
+
},
|
|
711
1230
|
"project": {
|
|
712
1231
|
"char": "j",
|
|
713
1232
|
"description": "Project name",
|
|
@@ -726,12 +1245,14 @@
|
|
|
726
1245
|
"multiple": false,
|
|
727
1246
|
"type": "option"
|
|
728
1247
|
},
|
|
729
|
-
"
|
|
730
|
-
"
|
|
731
|
-
"
|
|
1248
|
+
"workspace": {
|
|
1249
|
+
"char": "w",
|
|
1250
|
+
"description": "Workspace name",
|
|
1251
|
+
"name": "workspace",
|
|
732
1252
|
"required": false,
|
|
733
|
-
"
|
|
734
|
-
"
|
|
1253
|
+
"hasDynamicHelp": false,
|
|
1254
|
+
"multiple": false,
|
|
1255
|
+
"type": "option"
|
|
735
1256
|
}
|
|
736
1257
|
},
|
|
737
1258
|
"hasDynamicHelp": false,
|
|
@@ -832,24 +1353,6 @@
|
|
|
832
1353
|
"allowNo": false,
|
|
833
1354
|
"type": "boolean"
|
|
834
1355
|
},
|
|
835
|
-
"account_origin": {
|
|
836
|
-
"char": "a",
|
|
837
|
-
"description": "Update account origin URL",
|
|
838
|
-
"name": "account_origin",
|
|
839
|
-
"required": false,
|
|
840
|
-
"hasDynamicHelp": false,
|
|
841
|
-
"multiple": false,
|
|
842
|
-
"type": "option"
|
|
843
|
-
},
|
|
844
|
-
"instance_origin": {
|
|
845
|
-
"char": "i",
|
|
846
|
-
"description": "Update instance origin URL",
|
|
847
|
-
"name": "instance_origin",
|
|
848
|
-
"required": false,
|
|
849
|
-
"hasDynamicHelp": false,
|
|
850
|
-
"multiple": false,
|
|
851
|
-
"type": "option"
|
|
852
|
-
},
|
|
853
1356
|
"access_token": {
|
|
854
1357
|
"char": "t",
|
|
855
1358
|
"description": "Update access token for the Xano Metadata API",
|
|
@@ -859,10 +1362,10 @@
|
|
|
859
1362
|
"multiple": false,
|
|
860
1363
|
"type": "option"
|
|
861
1364
|
},
|
|
862
|
-
"
|
|
863
|
-
"char": "
|
|
864
|
-
"description": "Update
|
|
865
|
-
"name": "
|
|
1365
|
+
"account_origin": {
|
|
1366
|
+
"char": "a",
|
|
1367
|
+
"description": "Update account origin URL",
|
|
1368
|
+
"name": "account_origin",
|
|
866
1369
|
"required": false,
|
|
867
1370
|
"hasDynamicHelp": false,
|
|
868
1371
|
"multiple": false,
|
|
@@ -877,6 +1380,15 @@
|
|
|
877
1380
|
"multiple": false,
|
|
878
1381
|
"type": "option"
|
|
879
1382
|
},
|
|
1383
|
+
"instance_origin": {
|
|
1384
|
+
"char": "i",
|
|
1385
|
+
"description": "Update instance origin URL",
|
|
1386
|
+
"name": "instance_origin",
|
|
1387
|
+
"required": false,
|
|
1388
|
+
"hasDynamicHelp": false,
|
|
1389
|
+
"multiple": false,
|
|
1390
|
+
"type": "option"
|
|
1391
|
+
},
|
|
880
1392
|
"project": {
|
|
881
1393
|
"char": "j",
|
|
882
1394
|
"description": "Update project ID",
|
|
@@ -886,13 +1398,6 @@
|
|
|
886
1398
|
"multiple": false,
|
|
887
1399
|
"type": "option"
|
|
888
1400
|
},
|
|
889
|
-
"remove-workspace": {
|
|
890
|
-
"description": "Remove workspace from profile",
|
|
891
|
-
"name": "remove-workspace",
|
|
892
|
-
"required": false,
|
|
893
|
-
"allowNo": false,
|
|
894
|
-
"type": "boolean"
|
|
895
|
-
},
|
|
896
1401
|
"remove-branch": {
|
|
897
1402
|
"description": "Remove branch from profile",
|
|
898
1403
|
"name": "remove-branch",
|
|
@@ -907,6 +1412,20 @@
|
|
|
907
1412
|
"allowNo": false,
|
|
908
1413
|
"type": "boolean"
|
|
909
1414
|
},
|
|
1415
|
+
"remove-run-base-url": {
|
|
1416
|
+
"description": "Remove run_base_url from profile (use default)",
|
|
1417
|
+
"name": "remove-run-base-url",
|
|
1418
|
+
"required": false,
|
|
1419
|
+
"allowNo": false,
|
|
1420
|
+
"type": "boolean"
|
|
1421
|
+
},
|
|
1422
|
+
"remove-workspace": {
|
|
1423
|
+
"description": "Remove workspace from profile",
|
|
1424
|
+
"name": "remove-workspace",
|
|
1425
|
+
"required": false,
|
|
1426
|
+
"allowNo": false,
|
|
1427
|
+
"type": "boolean"
|
|
1428
|
+
},
|
|
910
1429
|
"run_base_url": {
|
|
911
1430
|
"char": "r",
|
|
912
1431
|
"description": "Update Xano Run API base URL",
|
|
@@ -916,12 +1435,14 @@
|
|
|
916
1435
|
"multiple": false,
|
|
917
1436
|
"type": "option"
|
|
918
1437
|
},
|
|
919
|
-
"
|
|
920
|
-
"
|
|
921
|
-
"
|
|
1438
|
+
"workspace": {
|
|
1439
|
+
"char": "w",
|
|
1440
|
+
"description": "Update workspace name",
|
|
1441
|
+
"name": "workspace",
|
|
922
1442
|
"required": false,
|
|
923
|
-
"
|
|
924
|
-
"
|
|
1443
|
+
"hasDynamicHelp": false,
|
|
1444
|
+
"multiple": false,
|
|
1445
|
+
"type": "option"
|
|
925
1446
|
}
|
|
926
1447
|
},
|
|
927
1448
|
"hasDynamicHelp": false,
|
|
@@ -941,6 +1462,32 @@
|
|
|
941
1462
|
"index.js"
|
|
942
1463
|
]
|
|
943
1464
|
},
|
|
1465
|
+
"profile:get-default": {
|
|
1466
|
+
"aliases": [],
|
|
1467
|
+
"args": {},
|
|
1468
|
+
"description": "Get the current default profile name",
|
|
1469
|
+
"examples": [
|
|
1470
|
+
"$ xano profile:get-default\nproduction\n",
|
|
1471
|
+
"$ xano profile:get-default\nNo default profile set\n"
|
|
1472
|
+
],
|
|
1473
|
+
"flags": {},
|
|
1474
|
+
"hasDynamicHelp": false,
|
|
1475
|
+
"hiddenAliases": [],
|
|
1476
|
+
"id": "profile:get-default",
|
|
1477
|
+
"pluginAlias": "@xano/cli",
|
|
1478
|
+
"pluginName": "@xano/cli",
|
|
1479
|
+
"pluginType": "core",
|
|
1480
|
+
"strict": true,
|
|
1481
|
+
"enableJsonFlag": false,
|
|
1482
|
+
"isESM": true,
|
|
1483
|
+
"relativePath": [
|
|
1484
|
+
"dist",
|
|
1485
|
+
"commands",
|
|
1486
|
+
"profile",
|
|
1487
|
+
"get-default",
|
|
1488
|
+
"index.js"
|
|
1489
|
+
]
|
|
1490
|
+
},
|
|
944
1491
|
"profile:list": {
|
|
945
1492
|
"aliases": [],
|
|
946
1493
|
"args": {},
|
|
@@ -1096,51 +1643,6 @@
|
|
|
1096
1643
|
"index.js"
|
|
1097
1644
|
]
|
|
1098
1645
|
},
|
|
1099
|
-
"profile:wizard": {
|
|
1100
|
-
"aliases": [],
|
|
1101
|
-
"args": {},
|
|
1102
|
-
"description": "Create a new profile configuration using an interactive wizard",
|
|
1103
|
-
"examples": [
|
|
1104
|
-
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
1105
|
-
],
|
|
1106
|
-
"flags": {
|
|
1107
|
-
"name": {
|
|
1108
|
-
"char": "n",
|
|
1109
|
-
"description": "Profile name (skip prompt if provided)",
|
|
1110
|
-
"name": "name",
|
|
1111
|
-
"required": false,
|
|
1112
|
-
"hasDynamicHelp": false,
|
|
1113
|
-
"multiple": false,
|
|
1114
|
-
"type": "option"
|
|
1115
|
-
},
|
|
1116
|
-
"origin": {
|
|
1117
|
-
"char": "o",
|
|
1118
|
-
"description": "Xano instance origin URL",
|
|
1119
|
-
"name": "origin",
|
|
1120
|
-
"required": false,
|
|
1121
|
-
"default": "https://app.xano.com",
|
|
1122
|
-
"hasDynamicHelp": false,
|
|
1123
|
-
"multiple": false,
|
|
1124
|
-
"type": "option"
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
"hasDynamicHelp": false,
|
|
1128
|
-
"hiddenAliases": [],
|
|
1129
|
-
"id": "profile:wizard",
|
|
1130
|
-
"pluginAlias": "@xano/cli",
|
|
1131
|
-
"pluginName": "@xano/cli",
|
|
1132
|
-
"pluginType": "core",
|
|
1133
|
-
"strict": true,
|
|
1134
|
-
"enableJsonFlag": false,
|
|
1135
|
-
"isESM": true,
|
|
1136
|
-
"relativePath": [
|
|
1137
|
-
"dist",
|
|
1138
|
-
"commands",
|
|
1139
|
-
"profile",
|
|
1140
|
-
"wizard",
|
|
1141
|
-
"index.js"
|
|
1142
|
-
]
|
|
1143
|
-
},
|
|
1144
1646
|
"profile:token": {
|
|
1145
1647
|
"aliases": [],
|
|
1146
1648
|
"args": {},
|
|
@@ -1167,97 +1669,37 @@
|
|
|
1167
1669
|
"index.js"
|
|
1168
1670
|
]
|
|
1169
1671
|
},
|
|
1170
|
-
"profile:
|
|
1171
|
-
"aliases": [],
|
|
1172
|
-
"args": {},
|
|
1173
|
-
"description": "Get the current default profile name",
|
|
1174
|
-
"examples": [
|
|
1175
|
-
"$ xano profile:get-default\nproduction\n",
|
|
1176
|
-
"$ xano profile:get-default\nNo default profile set\n"
|
|
1177
|
-
],
|
|
1178
|
-
"flags": {},
|
|
1179
|
-
"hasDynamicHelp": false,
|
|
1180
|
-
"hiddenAliases": [],
|
|
1181
|
-
"id": "profile:get-default",
|
|
1182
|
-
"pluginAlias": "@xano/cli",
|
|
1183
|
-
"pluginName": "@xano/cli",
|
|
1184
|
-
"pluginType": "core",
|
|
1185
|
-
"strict": true,
|
|
1186
|
-
"enableJsonFlag": false,
|
|
1187
|
-
"isESM": true,
|
|
1188
|
-
"relativePath": [
|
|
1189
|
-
"dist",
|
|
1190
|
-
"commands",
|
|
1191
|
-
"profile",
|
|
1192
|
-
"get-default",
|
|
1193
|
-
"index.js"
|
|
1194
|
-
]
|
|
1195
|
-
},
|
|
1196
|
-
"workspace:create": {
|
|
1672
|
+
"profile:wizard": {
|
|
1197
1673
|
"aliases": [],
|
|
1198
1674
|
"args": {},
|
|
1199
|
-
"description": "Create a new
|
|
1675
|
+
"description": "Create a new profile configuration using an interactive wizard",
|
|
1200
1676
|
"examples": [
|
|
1201
|
-
"$ xano
|
|
1202
|
-
"$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
|
|
1203
|
-
"$ xano workspace create -n \"new-project\" -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
|
|
1677
|
+
"$ xano profile:wizard\nWelcome to the Xano Profile Wizard!\n? Enter your access token: ***...***\n? Select an instance:\n > Production (https://app.xano.com)\n Staging (https://staging.xano.com)\n? Profile name: production\nProfile 'production' created successfully at ~/.xano/credentials.yaml\n"
|
|
1204
1678
|
],
|
|
1205
1679
|
"flags": {
|
|
1206
|
-
"profile": {
|
|
1207
|
-
"char": "p",
|
|
1208
|
-
"description": "Profile to use for this command",
|
|
1209
|
-
"env": "XANO_PROFILE",
|
|
1210
|
-
"name": "profile",
|
|
1211
|
-
"required": false,
|
|
1212
|
-
"hasDynamicHelp": false,
|
|
1213
|
-
"multiple": false,
|
|
1214
|
-
"type": "option"
|
|
1215
|
-
},
|
|
1216
|
-
"verbose": {
|
|
1217
|
-
"char": "v",
|
|
1218
|
-
"description": "Show detailed request/response information",
|
|
1219
|
-
"env": "XANO_VERBOSE",
|
|
1220
|
-
"name": "verbose",
|
|
1221
|
-
"required": false,
|
|
1222
|
-
"allowNo": false,
|
|
1223
|
-
"type": "boolean"
|
|
1224
|
-
},
|
|
1225
1680
|
"name": {
|
|
1226
1681
|
"char": "n",
|
|
1227
|
-
"description": "
|
|
1682
|
+
"description": "Profile name (skip prompt if provided)",
|
|
1228
1683
|
"name": "name",
|
|
1229
|
-
"required": true,
|
|
1230
|
-
"hasDynamicHelp": false,
|
|
1231
|
-
"multiple": false,
|
|
1232
|
-
"type": "option"
|
|
1233
|
-
},
|
|
1234
|
-
"description": {
|
|
1235
|
-
"char": "d",
|
|
1236
|
-
"description": "Description for the workspace",
|
|
1237
|
-
"name": "description",
|
|
1238
1684
|
"required": false,
|
|
1239
1685
|
"hasDynamicHelp": false,
|
|
1240
1686
|
"multiple": false,
|
|
1241
1687
|
"type": "option"
|
|
1242
1688
|
},
|
|
1243
|
-
"
|
|
1689
|
+
"origin": {
|
|
1244
1690
|
"char": "o",
|
|
1245
|
-
"description": "
|
|
1246
|
-
"name": "
|
|
1691
|
+
"description": "Xano instance origin URL",
|
|
1692
|
+
"name": "origin",
|
|
1247
1693
|
"required": false,
|
|
1248
|
-
"default": "
|
|
1694
|
+
"default": "https://app.xano.com",
|
|
1249
1695
|
"hasDynamicHelp": false,
|
|
1250
1696
|
"multiple": false,
|
|
1251
|
-
"options": [
|
|
1252
|
-
"summary",
|
|
1253
|
-
"json"
|
|
1254
|
-
],
|
|
1255
1697
|
"type": "option"
|
|
1256
1698
|
}
|
|
1257
1699
|
},
|
|
1258
1700
|
"hasDynamicHelp": false,
|
|
1259
1701
|
"hiddenAliases": [],
|
|
1260
|
-
"id": "
|
|
1702
|
+
"id": "profile:wizard",
|
|
1261
1703
|
"pluginAlias": "@xano/cli",
|
|
1262
1704
|
"pluginName": "@xano/cli",
|
|
1263
1705
|
"pluginType": "core",
|
|
@@ -1267,25 +1709,20 @@
|
|
|
1267
1709
|
"relativePath": [
|
|
1268
1710
|
"dist",
|
|
1269
1711
|
"commands",
|
|
1270
|
-
"
|
|
1271
|
-
"
|
|
1712
|
+
"profile",
|
|
1713
|
+
"wizard",
|
|
1272
1714
|
"index.js"
|
|
1273
1715
|
]
|
|
1274
1716
|
},
|
|
1275
|
-
"
|
|
1717
|
+
"static_host:list": {
|
|
1276
1718
|
"aliases": [],
|
|
1277
|
-
"args": {
|
|
1278
|
-
|
|
1279
|
-
"description": "Workspace ID to delete",
|
|
1280
|
-
"name": "workspace_id",
|
|
1281
|
-
"required": true
|
|
1282
|
-
}
|
|
1283
|
-
},
|
|
1284
|
-
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
1719
|
+
"args": {},
|
|
1720
|
+
"description": "List all static hosts in a workspace from the Xano Metadata API",
|
|
1285
1721
|
"examples": [
|
|
1286
|
-
"$ xano
|
|
1287
|
-
"$ xano
|
|
1288
|
-
"$ xano
|
|
1722
|
+
"$ xano static_host:list -w 40\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1723
|
+
"$ xano static_host:list --profile production\nAvailable static hosts:\n - my-static-host (ID: 1)\n - another-host (ID: 2)\n",
|
|
1724
|
+
"$ 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",
|
|
1725
|
+
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
1289
1726
|
],
|
|
1290
1727
|
"flags": {
|
|
1291
1728
|
"profile": {
|
|
@@ -1307,14 +1744,6 @@
|
|
|
1307
1744
|
"allowNo": false,
|
|
1308
1745
|
"type": "boolean"
|
|
1309
1746
|
},
|
|
1310
|
-
"force": {
|
|
1311
|
-
"char": "f",
|
|
1312
|
-
"description": "Skip confirmation prompt",
|
|
1313
|
-
"name": "force",
|
|
1314
|
-
"required": false,
|
|
1315
|
-
"allowNo": false,
|
|
1316
|
-
"type": "boolean"
|
|
1317
|
-
},
|
|
1318
1747
|
"output": {
|
|
1319
1748
|
"char": "o",
|
|
1320
1749
|
"description": "Output format",
|
|
@@ -1328,11 +1757,38 @@
|
|
|
1328
1757
|
"json"
|
|
1329
1758
|
],
|
|
1330
1759
|
"type": "option"
|
|
1760
|
+
},
|
|
1761
|
+
"page": {
|
|
1762
|
+
"description": "Page number for pagination",
|
|
1763
|
+
"name": "page",
|
|
1764
|
+
"required": false,
|
|
1765
|
+
"default": 1,
|
|
1766
|
+
"hasDynamicHelp": false,
|
|
1767
|
+
"multiple": false,
|
|
1768
|
+
"type": "option"
|
|
1769
|
+
},
|
|
1770
|
+
"per_page": {
|
|
1771
|
+
"description": "Number of results per page",
|
|
1772
|
+
"name": "per_page",
|
|
1773
|
+
"required": false,
|
|
1774
|
+
"default": 50,
|
|
1775
|
+
"hasDynamicHelp": false,
|
|
1776
|
+
"multiple": false,
|
|
1777
|
+
"type": "option"
|
|
1778
|
+
},
|
|
1779
|
+
"workspace": {
|
|
1780
|
+
"char": "w",
|
|
1781
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
1782
|
+
"name": "workspace",
|
|
1783
|
+
"required": false,
|
|
1784
|
+
"hasDynamicHelp": false,
|
|
1785
|
+
"multiple": false,
|
|
1786
|
+
"type": "option"
|
|
1331
1787
|
}
|
|
1332
1788
|
},
|
|
1333
1789
|
"hasDynamicHelp": false,
|
|
1334
1790
|
"hiddenAliases": [],
|
|
1335
|
-
"id": "
|
|
1791
|
+
"id": "static_host:list",
|
|
1336
1792
|
"pluginAlias": "@xano/cli",
|
|
1337
1793
|
"pluginName": "@xano/cli",
|
|
1338
1794
|
"pluginType": "core",
|
|
@@ -1342,20 +1798,19 @@
|
|
|
1342
1798
|
"relativePath": [
|
|
1343
1799
|
"dist",
|
|
1344
1800
|
"commands",
|
|
1345
|
-
"
|
|
1346
|
-
"
|
|
1801
|
+
"static_host",
|
|
1802
|
+
"list",
|
|
1347
1803
|
"index.js"
|
|
1348
1804
|
]
|
|
1349
1805
|
},
|
|
1350
|
-
"
|
|
1806
|
+
"workspace:create": {
|
|
1351
1807
|
"aliases": [],
|
|
1352
1808
|
"args": {},
|
|
1353
|
-
"description": "
|
|
1809
|
+
"description": "Create a new workspace via the Xano Metadata API",
|
|
1354
1810
|
"examples": [
|
|
1355
|
-
"$ xano
|
|
1356
|
-
"$ xano
|
|
1357
|
-
"$ xano
|
|
1358
|
-
"$ xano static_host:list -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"static-host-3\"\n }\n]\n"
|
|
1811
|
+
"$ xano workspace create --name \"my-workspace\"\nCreated workspace: my-workspace (ID: 123)\n",
|
|
1812
|
+
"$ xano workspace create --name \"my-app\" --description \"My application workspace\"\nCreated workspace: my-app (ID: 456)\n Description: My application workspace\n",
|
|
1813
|
+
"$ xano workspace create -n \"new-project\" -d \"New project workspace\" -o json\n{\n \"id\": 789,\n \"name\": \"new-project\",\n \"description\": \"New project workspace\"\n}\n"
|
|
1359
1814
|
],
|
|
1360
1815
|
"flags": {
|
|
1361
1816
|
"profile": {
|
|
@@ -1377,15 +1832,24 @@
|
|
|
1377
1832
|
"allowNo": false,
|
|
1378
1833
|
"type": "boolean"
|
|
1379
1834
|
},
|
|
1380
|
-
"
|
|
1381
|
-
"char": "
|
|
1382
|
-
"description": "
|
|
1383
|
-
"name": "
|
|
1835
|
+
"description": {
|
|
1836
|
+
"char": "d",
|
|
1837
|
+
"description": "Description for the workspace",
|
|
1838
|
+
"name": "description",
|
|
1384
1839
|
"required": false,
|
|
1385
1840
|
"hasDynamicHelp": false,
|
|
1386
1841
|
"multiple": false,
|
|
1387
1842
|
"type": "option"
|
|
1388
1843
|
},
|
|
1844
|
+
"name": {
|
|
1845
|
+
"char": "n",
|
|
1846
|
+
"description": "Name of the workspace",
|
|
1847
|
+
"name": "name",
|
|
1848
|
+
"required": true,
|
|
1849
|
+
"hasDynamicHelp": false,
|
|
1850
|
+
"multiple": false,
|
|
1851
|
+
"type": "option"
|
|
1852
|
+
},
|
|
1389
1853
|
"output": {
|
|
1390
1854
|
"char": "o",
|
|
1391
1855
|
"description": "Output format",
|
|
@@ -1399,29 +1863,11 @@
|
|
|
1399
1863
|
"json"
|
|
1400
1864
|
],
|
|
1401
1865
|
"type": "option"
|
|
1402
|
-
},
|
|
1403
|
-
"page": {
|
|
1404
|
-
"description": "Page number for pagination",
|
|
1405
|
-
"name": "page",
|
|
1406
|
-
"required": false,
|
|
1407
|
-
"default": 1,
|
|
1408
|
-
"hasDynamicHelp": false,
|
|
1409
|
-
"multiple": false,
|
|
1410
|
-
"type": "option"
|
|
1411
|
-
},
|
|
1412
|
-
"per_page": {
|
|
1413
|
-
"description": "Number of results per page",
|
|
1414
|
-
"name": "per_page",
|
|
1415
|
-
"required": false,
|
|
1416
|
-
"default": 50,
|
|
1417
|
-
"hasDynamicHelp": false,
|
|
1418
|
-
"multiple": false,
|
|
1419
|
-
"type": "option"
|
|
1420
1866
|
}
|
|
1421
1867
|
},
|
|
1422
1868
|
"hasDynamicHelp": false,
|
|
1423
1869
|
"hiddenAliases": [],
|
|
1424
|
-
"id": "
|
|
1870
|
+
"id": "workspace:create",
|
|
1425
1871
|
"pluginAlias": "@xano/cli",
|
|
1426
1872
|
"pluginName": "@xano/cli",
|
|
1427
1873
|
"pluginType": "core",
|
|
@@ -1431,26 +1877,25 @@
|
|
|
1431
1877
|
"relativePath": [
|
|
1432
1878
|
"dist",
|
|
1433
1879
|
"commands",
|
|
1434
|
-
"
|
|
1435
|
-
"
|
|
1880
|
+
"workspace",
|
|
1881
|
+
"create",
|
|
1436
1882
|
"index.js"
|
|
1437
1883
|
]
|
|
1438
1884
|
},
|
|
1439
|
-
"workspace:
|
|
1885
|
+
"workspace:delete": {
|
|
1440
1886
|
"aliases": [],
|
|
1441
1887
|
"args": {
|
|
1442
1888
|
"workspace_id": {
|
|
1443
|
-
"description": "Workspace ID to
|
|
1889
|
+
"description": "Workspace ID to delete",
|
|
1444
1890
|
"name": "workspace_id",
|
|
1445
|
-
"required":
|
|
1891
|
+
"required": true
|
|
1446
1892
|
}
|
|
1447
1893
|
},
|
|
1448
|
-
"description": "
|
|
1894
|
+
"description": "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
|
|
1449
1895
|
"examples": [
|
|
1450
|
-
"$ xano workspace
|
|
1451
|
-
"$ xano workspace
|
|
1452
|
-
"$ xano workspace
|
|
1453
|
-
"$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\n"
|
|
1896
|
+
"$ xano workspace delete 123\nAre you sure you want to delete workspace 123? This action cannot be undone. (y/N) y\nDeleted workspace 123\n",
|
|
1897
|
+
"$ xano workspace delete 123 --force\nDeleted workspace 123\n",
|
|
1898
|
+
"$ xano workspace delete 123 -f -o json\n{\n \"deleted\": true,\n \"workspace_id\": 123\n}\n"
|
|
1454
1899
|
],
|
|
1455
1900
|
"flags": {
|
|
1456
1901
|
"profile": {
|
|
@@ -1472,36 +1917,12 @@
|
|
|
1472
1917
|
"allowNo": false,
|
|
1473
1918
|
"type": "boolean"
|
|
1474
1919
|
},
|
|
1475
|
-
"
|
|
1476
|
-
"char": "
|
|
1477
|
-
"description": "
|
|
1478
|
-
"name": "
|
|
1479
|
-
"required": false,
|
|
1480
|
-
"hasDynamicHelp": false,
|
|
1481
|
-
"multiple": false,
|
|
1482
|
-
"type": "option"
|
|
1483
|
-
},
|
|
1484
|
-
"description": {
|
|
1485
|
-
"char": "d",
|
|
1486
|
-
"description": "New description for the workspace",
|
|
1487
|
-
"name": "description",
|
|
1488
|
-
"required": false,
|
|
1489
|
-
"hasDynamicHelp": false,
|
|
1490
|
-
"multiple": false,
|
|
1491
|
-
"type": "option"
|
|
1492
|
-
},
|
|
1493
|
-
"swagger": {
|
|
1494
|
-
"description": "Enable or disable swagger documentation",
|
|
1495
|
-
"name": "swagger",
|
|
1496
|
-
"required": false,
|
|
1497
|
-
"allowNo": true,
|
|
1498
|
-
"type": "boolean"
|
|
1499
|
-
},
|
|
1500
|
-
"require-token": {
|
|
1501
|
-
"description": "Whether to require a token for documentation access",
|
|
1502
|
-
"name": "require-token",
|
|
1920
|
+
"force": {
|
|
1921
|
+
"char": "f",
|
|
1922
|
+
"description": "Skip confirmation prompt",
|
|
1923
|
+
"name": "force",
|
|
1503
1924
|
"required": false,
|
|
1504
|
-
"allowNo":
|
|
1925
|
+
"allowNo": false,
|
|
1505
1926
|
"type": "boolean"
|
|
1506
1927
|
},
|
|
1507
1928
|
"output": {
|
|
@@ -1521,7 +1942,7 @@
|
|
|
1521
1942
|
},
|
|
1522
1943
|
"hasDynamicHelp": false,
|
|
1523
1944
|
"hiddenAliases": [],
|
|
1524
|
-
"id": "workspace:
|
|
1945
|
+
"id": "workspace:delete",
|
|
1525
1946
|
"pluginAlias": "@xano/cli",
|
|
1526
1947
|
"pluginName": "@xano/cli",
|
|
1527
1948
|
"pluginType": "core",
|
|
@@ -1532,24 +1953,25 @@
|
|
|
1532
1953
|
"dist",
|
|
1533
1954
|
"commands",
|
|
1534
1955
|
"workspace",
|
|
1535
|
-
"
|
|
1956
|
+
"delete",
|
|
1536
1957
|
"index.js"
|
|
1537
1958
|
]
|
|
1538
1959
|
},
|
|
1539
|
-
"workspace:
|
|
1960
|
+
"workspace:edit": {
|
|
1540
1961
|
"aliases": [],
|
|
1541
1962
|
"args": {
|
|
1542
|
-
"
|
|
1543
|
-
"description": "
|
|
1544
|
-
"name": "
|
|
1545
|
-
"required":
|
|
1963
|
+
"workspace_id": {
|
|
1964
|
+
"description": "Workspace ID to edit (uses profile workspace if not provided)",
|
|
1965
|
+
"name": "workspace_id",
|
|
1966
|
+
"required": false
|
|
1546
1967
|
}
|
|
1547
1968
|
},
|
|
1548
|
-
"description": "
|
|
1969
|
+
"description": "Edit an existing workspace via the Xano Metadata API",
|
|
1549
1970
|
"examples": [
|
|
1550
|
-
"$ xano workspace
|
|
1551
|
-
"$ xano workspace
|
|
1552
|
-
"$ xano workspace
|
|
1971
|
+
"$ xano workspace edit 123 --name \"new-name\"\nUpdated workspace: new-name (ID: 123)\n",
|
|
1972
|
+
"$ xano workspace edit --name \"updated-workspace\" --description \"Updated description\"\nUpdated workspace: updated-workspace (ID: 123)\n Description: Updated description\n",
|
|
1973
|
+
"$ xano workspace edit 123 --swagger --require-token\nUpdated workspace: my-workspace (ID: 123)\n Swagger: enabled\n Require Token: true\n",
|
|
1974
|
+
"$ xano workspace edit 123 --no-swagger -o json\n{\n \"id\": 123,\n \"name\": \"my-workspace\",\n \"swagger\": false\n}\n"
|
|
1553
1975
|
],
|
|
1554
1976
|
"flags": {
|
|
1555
1977
|
"profile": {
|
|
@@ -1571,33 +1993,56 @@
|
|
|
1571
1993
|
"allowNo": false,
|
|
1572
1994
|
"type": "boolean"
|
|
1573
1995
|
},
|
|
1574
|
-
"
|
|
1575
|
-
"char": "
|
|
1576
|
-
"description": "
|
|
1577
|
-
"name": "
|
|
1996
|
+
"description": {
|
|
1997
|
+
"char": "d",
|
|
1998
|
+
"description": "New description for the workspace",
|
|
1999
|
+
"name": "description",
|
|
2000
|
+
"required": false,
|
|
2001
|
+
"hasDynamicHelp": false,
|
|
2002
|
+
"multiple": false,
|
|
2003
|
+
"type": "option"
|
|
2004
|
+
},
|
|
2005
|
+
"name": {
|
|
2006
|
+
"char": "n",
|
|
2007
|
+
"description": "New name for the workspace",
|
|
2008
|
+
"name": "name",
|
|
2009
|
+
"required": false,
|
|
2010
|
+
"hasDynamicHelp": false,
|
|
2011
|
+
"multiple": false,
|
|
2012
|
+
"type": "option"
|
|
2013
|
+
},
|
|
2014
|
+
"output": {
|
|
2015
|
+
"char": "o",
|
|
2016
|
+
"description": "Output format",
|
|
2017
|
+
"name": "output",
|
|
1578
2018
|
"required": false,
|
|
2019
|
+
"default": "summary",
|
|
1579
2020
|
"hasDynamicHelp": false,
|
|
1580
2021
|
"multiple": false,
|
|
2022
|
+
"options": [
|
|
2023
|
+
"summary",
|
|
2024
|
+
"json"
|
|
2025
|
+
],
|
|
1581
2026
|
"type": "option"
|
|
1582
2027
|
},
|
|
1583
|
-
"
|
|
1584
|
-
"description": "
|
|
1585
|
-
"name": "
|
|
2028
|
+
"require-token": {
|
|
2029
|
+
"description": "Whether to require a token for documentation access",
|
|
2030
|
+
"name": "require-token",
|
|
1586
2031
|
"required": false,
|
|
1587
|
-
"allowNo":
|
|
2032
|
+
"allowNo": true,
|
|
1588
2033
|
"type": "boolean"
|
|
1589
2034
|
},
|
|
1590
|
-
"
|
|
1591
|
-
"description": "
|
|
1592
|
-
"name": "
|
|
2035
|
+
"swagger": {
|
|
2036
|
+
"description": "Enable or disable swagger documentation",
|
|
2037
|
+
"name": "swagger",
|
|
1593
2038
|
"required": false,
|
|
1594
|
-
"allowNo":
|
|
2039
|
+
"allowNo": true,
|
|
1595
2040
|
"type": "boolean"
|
|
1596
2041
|
}
|
|
1597
2042
|
},
|
|
1598
2043
|
"hasDynamicHelp": false,
|
|
1599
2044
|
"hiddenAliases": [],
|
|
1600
|
-
"id": "workspace:
|
|
2045
|
+
"id": "workspace:edit",
|
|
1601
2046
|
"pluginAlias": "@xano/cli",
|
|
1602
2047
|
"pluginName": "@xano/cli",
|
|
1603
2048
|
"pluginType": "core",
|
|
@@ -1608,7 +2053,7 @@
|
|
|
1608
2053
|
"dist",
|
|
1609
2054
|
"commands",
|
|
1610
2055
|
"workspace",
|
|
1611
|
-
"
|
|
2056
|
+
"edit",
|
|
1612
2057
|
"index.js"
|
|
1613
2058
|
]
|
|
1614
2059
|
},
|
|
@@ -1741,6 +2186,82 @@
|
|
|
1741
2186
|
"index.js"
|
|
1742
2187
|
]
|
|
1743
2188
|
},
|
|
2189
|
+
"workspace:pull": {
|
|
2190
|
+
"aliases": [],
|
|
2191
|
+
"args": {
|
|
2192
|
+
"directory": {
|
|
2193
|
+
"description": "Output directory for pulled documents",
|
|
2194
|
+
"name": "directory",
|
|
2195
|
+
"required": true
|
|
2196
|
+
}
|
|
2197
|
+
},
|
|
2198
|
+
"description": "Pull a workspace multidoc from the Xano Metadata API and split into individual files",
|
|
2199
|
+
"examples": [
|
|
2200
|
+
"$ xano workspace pull ./my-workspace\nPulled 42 documents to ./my-workspace\n",
|
|
2201
|
+
"$ xano workspace pull ./output -w 40\nPulled 15 documents to ./output\n",
|
|
2202
|
+
"$ xano workspace pull ./backup --profile production --env --records\nPulled 58 documents to ./backup\n"
|
|
2203
|
+
],
|
|
2204
|
+
"flags": {
|
|
2205
|
+
"profile": {
|
|
2206
|
+
"char": "p",
|
|
2207
|
+
"description": "Profile to use for this command",
|
|
2208
|
+
"env": "XANO_PROFILE",
|
|
2209
|
+
"name": "profile",
|
|
2210
|
+
"required": false,
|
|
2211
|
+
"hasDynamicHelp": false,
|
|
2212
|
+
"multiple": false,
|
|
2213
|
+
"type": "option"
|
|
2214
|
+
},
|
|
2215
|
+
"verbose": {
|
|
2216
|
+
"char": "v",
|
|
2217
|
+
"description": "Show detailed request/response information",
|
|
2218
|
+
"env": "XANO_VERBOSE",
|
|
2219
|
+
"name": "verbose",
|
|
2220
|
+
"required": false,
|
|
2221
|
+
"allowNo": false,
|
|
2222
|
+
"type": "boolean"
|
|
2223
|
+
},
|
|
2224
|
+
"env": {
|
|
2225
|
+
"description": "Include environment variables",
|
|
2226
|
+
"name": "env",
|
|
2227
|
+
"required": false,
|
|
2228
|
+
"allowNo": false,
|
|
2229
|
+
"type": "boolean"
|
|
2230
|
+
},
|
|
2231
|
+
"records": {
|
|
2232
|
+
"description": "Include records",
|
|
2233
|
+
"name": "records",
|
|
2234
|
+
"required": false,
|
|
2235
|
+
"allowNo": false,
|
|
2236
|
+
"type": "boolean"
|
|
2237
|
+
},
|
|
2238
|
+
"workspace": {
|
|
2239
|
+
"char": "w",
|
|
2240
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
2241
|
+
"name": "workspace",
|
|
2242
|
+
"required": false,
|
|
2243
|
+
"hasDynamicHelp": false,
|
|
2244
|
+
"multiple": false,
|
|
2245
|
+
"type": "option"
|
|
2246
|
+
}
|
|
2247
|
+
},
|
|
2248
|
+
"hasDynamicHelp": false,
|
|
2249
|
+
"hiddenAliases": [],
|
|
2250
|
+
"id": "workspace:pull",
|
|
2251
|
+
"pluginAlias": "@xano/cli",
|
|
2252
|
+
"pluginName": "@xano/cli",
|
|
2253
|
+
"pluginType": "core",
|
|
2254
|
+
"strict": true,
|
|
2255
|
+
"enableJsonFlag": false,
|
|
2256
|
+
"isESM": true,
|
|
2257
|
+
"relativePath": [
|
|
2258
|
+
"dist",
|
|
2259
|
+
"commands",
|
|
2260
|
+
"workspace",
|
|
2261
|
+
"pull",
|
|
2262
|
+
"index.js"
|
|
2263
|
+
]
|
|
2264
|
+
},
|
|
1744
2265
|
"workspace:push": {
|
|
1745
2266
|
"aliases": [],
|
|
1746
2267
|
"args": {
|
|
@@ -1803,13 +2324,19 @@
|
|
|
1803
2324
|
"index.js"
|
|
1804
2325
|
]
|
|
1805
2326
|
},
|
|
1806
|
-
"run:env:
|
|
2327
|
+
"run:env:delete": {
|
|
1807
2328
|
"aliases": [],
|
|
1808
|
-
"args": {
|
|
1809
|
-
|
|
2329
|
+
"args": {
|
|
2330
|
+
"name": {
|
|
2331
|
+
"description": "Environment variable name",
|
|
2332
|
+
"name": "name",
|
|
2333
|
+
"required": true
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
"description": "Delete an environment variable",
|
|
1810
2337
|
"examples": [
|
|
1811
|
-
"$ xano run env
|
|
1812
|
-
"$ xano run env
|
|
2338
|
+
"$ xano run env delete API_KEY\nAre you sure you want to delete environment variable 'API_KEY'? (y/N)\nEnvironment variable 'API_KEY' deleted successfully!\n",
|
|
2339
|
+
"$ xano run env delete API_KEY --force\nEnvironment variable 'API_KEY' deleted successfully!\n"
|
|
1813
2340
|
],
|
|
1814
2341
|
"flags": {
|
|
1815
2342
|
"profile": {
|
|
@@ -1831,24 +2358,18 @@
|
|
|
1831
2358
|
"allowNo": false,
|
|
1832
2359
|
"type": "boolean"
|
|
1833
2360
|
},
|
|
1834
|
-
"
|
|
1835
|
-
"char": "
|
|
1836
|
-
"description": "
|
|
1837
|
-
"name": "
|
|
2361
|
+
"force": {
|
|
2362
|
+
"char": "f",
|
|
2363
|
+
"description": "Skip confirmation prompt",
|
|
2364
|
+
"name": "force",
|
|
1838
2365
|
"required": false,
|
|
1839
|
-
"
|
|
1840
|
-
"
|
|
1841
|
-
"multiple": false,
|
|
1842
|
-
"options": [
|
|
1843
|
-
"list",
|
|
1844
|
-
"json"
|
|
1845
|
-
],
|
|
1846
|
-
"type": "option"
|
|
2366
|
+
"allowNo": false,
|
|
2367
|
+
"type": "boolean"
|
|
1847
2368
|
}
|
|
1848
2369
|
},
|
|
1849
2370
|
"hasDynamicHelp": false,
|
|
1850
2371
|
"hiddenAliases": [],
|
|
1851
|
-
"id": "run:env:
|
|
2372
|
+
"id": "run:env:delete",
|
|
1852
2373
|
"pluginAlias": "@xano/cli",
|
|
1853
2374
|
"pluginName": "@xano/cli",
|
|
1854
2375
|
"pluginType": "core",
|
|
@@ -1859,7 +2380,7 @@
|
|
|
1859
2380
|
"commands",
|
|
1860
2381
|
"run",
|
|
1861
2382
|
"env",
|
|
1862
|
-
"
|
|
2383
|
+
"delete",
|
|
1863
2384
|
"index.js"
|
|
1864
2385
|
]
|
|
1865
2386
|
},
|
|
@@ -1929,6 +2450,66 @@
|
|
|
1929
2450
|
"index.js"
|
|
1930
2451
|
]
|
|
1931
2452
|
},
|
|
2453
|
+
"run:env:list": {
|
|
2454
|
+
"aliases": [],
|
|
2455
|
+
"args": {},
|
|
2456
|
+
"description": "List all environment variable keys",
|
|
2457
|
+
"examples": [
|
|
2458
|
+
"$ xano run env list\nEnvironment variables:\n - API_KEY\n - DATABASE_URL\n - DEBUG\n",
|
|
2459
|
+
"$ xano run env list -o json\n{ \"env\": [\"API_KEY\", \"DATABASE_URL\", \"DEBUG\"] }\n"
|
|
2460
|
+
],
|
|
2461
|
+
"flags": {
|
|
2462
|
+
"profile": {
|
|
2463
|
+
"char": "p",
|
|
2464
|
+
"description": "Profile to use for this command",
|
|
2465
|
+
"env": "XANO_PROFILE",
|
|
2466
|
+
"name": "profile",
|
|
2467
|
+
"required": false,
|
|
2468
|
+
"hasDynamicHelp": false,
|
|
2469
|
+
"multiple": false,
|
|
2470
|
+
"type": "option"
|
|
2471
|
+
},
|
|
2472
|
+
"verbose": {
|
|
2473
|
+
"char": "v",
|
|
2474
|
+
"description": "Show detailed request/response information",
|
|
2475
|
+
"env": "XANO_VERBOSE",
|
|
2476
|
+
"name": "verbose",
|
|
2477
|
+
"required": false,
|
|
2478
|
+
"allowNo": false,
|
|
2479
|
+
"type": "boolean"
|
|
2480
|
+
},
|
|
2481
|
+
"output": {
|
|
2482
|
+
"char": "o",
|
|
2483
|
+
"description": "Output format",
|
|
2484
|
+
"name": "output",
|
|
2485
|
+
"required": false,
|
|
2486
|
+
"default": "list",
|
|
2487
|
+
"hasDynamicHelp": false,
|
|
2488
|
+
"multiple": false,
|
|
2489
|
+
"options": [
|
|
2490
|
+
"list",
|
|
2491
|
+
"json"
|
|
2492
|
+
],
|
|
2493
|
+
"type": "option"
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
"hasDynamicHelp": false,
|
|
2497
|
+
"hiddenAliases": [],
|
|
2498
|
+
"id": "run:env:list",
|
|
2499
|
+
"pluginAlias": "@xano/cli",
|
|
2500
|
+
"pluginName": "@xano/cli",
|
|
2501
|
+
"pluginType": "core",
|
|
2502
|
+
"strict": true,
|
|
2503
|
+
"isESM": true,
|
|
2504
|
+
"relativePath": [
|
|
2505
|
+
"dist",
|
|
2506
|
+
"commands",
|
|
2507
|
+
"run",
|
|
2508
|
+
"env",
|
|
2509
|
+
"list",
|
|
2510
|
+
"index.js"
|
|
2511
|
+
]
|
|
2512
|
+
},
|
|
1932
2513
|
"run:env:set": {
|
|
1933
2514
|
"aliases": [],
|
|
1934
2515
|
"args": {
|
|
@@ -1986,19 +2567,14 @@
|
|
|
1986
2567
|
"index.js"
|
|
1987
2568
|
]
|
|
1988
2569
|
},
|
|
1989
|
-
"run:
|
|
2570
|
+
"run:projects:create": {
|
|
1990
2571
|
"aliases": [],
|
|
1991
|
-
"args": {
|
|
1992
|
-
|
|
1993
|
-
"description": "Environment variable name",
|
|
1994
|
-
"name": "name",
|
|
1995
|
-
"required": true
|
|
1996
|
-
}
|
|
1997
|
-
},
|
|
1998
|
-
"description": "Delete an environment variable",
|
|
2572
|
+
"args": {},
|
|
2573
|
+
"description": "Create a new project",
|
|
1999
2574
|
"examples": [
|
|
2000
|
-
"$ xano run
|
|
2001
|
-
"$ xano run
|
|
2575
|
+
"$ xano run projects create -n \"My Project\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
2576
|
+
"$ xano run projects create -n \"My Project\" -d \"Description here\"\nProject created successfully!\n ID: abc123-def456-ghi789\n Name: My Project\n",
|
|
2577
|
+
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
2002
2578
|
],
|
|
2003
2579
|
"flags": {
|
|
2004
2580
|
"profile": {
|
|
@@ -2020,18 +2596,43 @@
|
|
|
2020
2596
|
"allowNo": false,
|
|
2021
2597
|
"type": "boolean"
|
|
2022
2598
|
},
|
|
2023
|
-
"
|
|
2024
|
-
"char": "
|
|
2025
|
-
"description": "
|
|
2026
|
-
"name": "
|
|
2599
|
+
"description": {
|
|
2600
|
+
"char": "d",
|
|
2601
|
+
"description": "Project description",
|
|
2602
|
+
"name": "description",
|
|
2027
2603
|
"required": false,
|
|
2028
|
-
"
|
|
2029
|
-
"
|
|
2604
|
+
"default": "",
|
|
2605
|
+
"hasDynamicHelp": false,
|
|
2606
|
+
"multiple": false,
|
|
2607
|
+
"type": "option"
|
|
2608
|
+
},
|
|
2609
|
+
"name": {
|
|
2610
|
+
"char": "n",
|
|
2611
|
+
"description": "Project name",
|
|
2612
|
+
"name": "name",
|
|
2613
|
+
"required": true,
|
|
2614
|
+
"hasDynamicHelp": false,
|
|
2615
|
+
"multiple": false,
|
|
2616
|
+
"type": "option"
|
|
2617
|
+
},
|
|
2618
|
+
"output": {
|
|
2619
|
+
"char": "o",
|
|
2620
|
+
"description": "Output format",
|
|
2621
|
+
"name": "output",
|
|
2622
|
+
"required": false,
|
|
2623
|
+
"default": "summary",
|
|
2624
|
+
"hasDynamicHelp": false,
|
|
2625
|
+
"multiple": false,
|
|
2626
|
+
"options": [
|
|
2627
|
+
"summary",
|
|
2628
|
+
"json"
|
|
2629
|
+
],
|
|
2630
|
+
"type": "option"
|
|
2030
2631
|
}
|
|
2031
2632
|
},
|
|
2032
2633
|
"hasDynamicHelp": false,
|
|
2033
2634
|
"hiddenAliases": [],
|
|
2034
|
-
"id": "run:
|
|
2635
|
+
"id": "run:projects:create",
|
|
2035
2636
|
"pluginAlias": "@xano/cli",
|
|
2036
2637
|
"pluginName": "@xano/cli",
|
|
2037
2638
|
"pluginType": "core",
|
|
@@ -2041,24 +2642,24 @@
|
|
|
2041
2642
|
"dist",
|
|
2042
2643
|
"commands",
|
|
2043
2644
|
"run",
|
|
2044
|
-
"
|
|
2045
|
-
"
|
|
2645
|
+
"projects",
|
|
2646
|
+
"create",
|
|
2046
2647
|
"index.js"
|
|
2047
2648
|
]
|
|
2048
2649
|
},
|
|
2049
|
-
"run:
|
|
2650
|
+
"run:projects:delete": {
|
|
2050
2651
|
"aliases": [],
|
|
2051
2652
|
"args": {
|
|
2052
|
-
"
|
|
2053
|
-
"description": "
|
|
2054
|
-
"name": "
|
|
2653
|
+
"projectId": {
|
|
2654
|
+
"description": "Project ID to delete",
|
|
2655
|
+
"name": "projectId",
|
|
2055
2656
|
"required": true
|
|
2056
2657
|
}
|
|
2057
2658
|
},
|
|
2058
|
-
"description": "Delete a
|
|
2659
|
+
"description": "Delete a project",
|
|
2059
2660
|
"examples": [
|
|
2060
|
-
"$ xano run
|
|
2061
|
-
"$ xano run
|
|
2661
|
+
"$ xano run projects delete abc123-def456\nAre you sure you want to delete project 'abc123-def456'? (y/N)\nProject deleted successfully!\n",
|
|
2662
|
+
"$ xano run projects delete abc123-def456 --force\nProject deleted successfully!\n"
|
|
2062
2663
|
],
|
|
2063
2664
|
"flags": {
|
|
2064
2665
|
"profile": {
|
|
@@ -2091,7 +2692,7 @@
|
|
|
2091
2692
|
},
|
|
2092
2693
|
"hasDynamicHelp": false,
|
|
2093
2694
|
"hiddenAliases": [],
|
|
2094
|
-
"id": "run:
|
|
2695
|
+
"id": "run:projects:delete",
|
|
2095
2696
|
"pluginAlias": "@xano/cli",
|
|
2096
2697
|
"pluginName": "@xano/cli",
|
|
2097
2698
|
"pluginType": "core",
|
|
@@ -2101,18 +2702,18 @@
|
|
|
2101
2702
|
"dist",
|
|
2102
2703
|
"commands",
|
|
2103
2704
|
"run",
|
|
2104
|
-
"
|
|
2705
|
+
"projects",
|
|
2105
2706
|
"delete",
|
|
2106
2707
|
"index.js"
|
|
2107
2708
|
]
|
|
2108
2709
|
},
|
|
2109
|
-
"run:
|
|
2710
|
+
"run:projects:list": {
|
|
2110
2711
|
"aliases": [],
|
|
2111
2712
|
"args": {},
|
|
2112
|
-
"description": "List all
|
|
2713
|
+
"description": "List all projects",
|
|
2113
2714
|
"examples": [
|
|
2114
|
-
"$ xano run
|
|
2115
|
-
"$ xano run
|
|
2715
|
+
"$ xano run projects list\nID NAME ACCESS\nabc123-def456-ghi789 My Project private\nxyz789-uvw456-rst123 Test Project public\n",
|
|
2716
|
+
"$ xano run projects list -o json\n[\n { \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n]\n"
|
|
2116
2717
|
],
|
|
2117
2718
|
"flags": {
|
|
2118
2719
|
"profile": {
|
|
@@ -2151,7 +2752,7 @@
|
|
|
2151
2752
|
},
|
|
2152
2753
|
"hasDynamicHelp": false,
|
|
2153
2754
|
"hiddenAliases": [],
|
|
2154
|
-
"id": "run:
|
|
2755
|
+
"id": "run:projects:list",
|
|
2155
2756
|
"pluginAlias": "@xano/cli",
|
|
2156
2757
|
"pluginName": "@xano/cli",
|
|
2157
2758
|
"pluginType": "core",
|
|
@@ -2161,24 +2762,25 @@
|
|
|
2161
2762
|
"dist",
|
|
2162
2763
|
"commands",
|
|
2163
2764
|
"run",
|
|
2164
|
-
"
|
|
2765
|
+
"projects",
|
|
2165
2766
|
"list",
|
|
2166
2767
|
"index.js"
|
|
2167
2768
|
]
|
|
2168
2769
|
},
|
|
2169
|
-
"run:
|
|
2770
|
+
"run:projects:update": {
|
|
2170
2771
|
"aliases": [],
|
|
2171
2772
|
"args": {
|
|
2172
|
-
"
|
|
2173
|
-
"description": "
|
|
2174
|
-
"name": "
|
|
2773
|
+
"projectId": {
|
|
2774
|
+
"description": "Project ID to update",
|
|
2775
|
+
"name": "projectId",
|
|
2175
2776
|
"required": true
|
|
2176
2777
|
}
|
|
2177
2778
|
},
|
|
2178
|
-
"description": "
|
|
2779
|
+
"description": "Update a project",
|
|
2179
2780
|
"examples": [
|
|
2180
|
-
"$ xano run
|
|
2181
|
-
"$ xano run
|
|
2781
|
+
"$ xano run projects update abc123-def456 -n \"New Name\"\nProject updated successfully!\n ID: abc123-def456\n Name: New Name\n",
|
|
2782
|
+
"$ xano run projects update abc123-def456 -d \"New description\"\nProject updated successfully!\n ID: abc123-def456\n Description: New description\n",
|
|
2783
|
+
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
2182
2784
|
],
|
|
2183
2785
|
"flags": {
|
|
2184
2786
|
"profile": {
|
|
@@ -2200,99 +2802,34 @@
|
|
|
2200
2802
|
"allowNo": false,
|
|
2201
2803
|
"type": "boolean"
|
|
2202
2804
|
},
|
|
2203
|
-
"
|
|
2204
|
-
"char": "
|
|
2205
|
-
"description": "
|
|
2206
|
-
"name": "
|
|
2207
|
-
"required": true,
|
|
2208
|
-
"hasDynamicHelp": false,
|
|
2209
|
-
"multiple": false,
|
|
2210
|
-
"options": [
|
|
2211
|
-
"dockerconfigjson",
|
|
2212
|
-
"service-account-token"
|
|
2213
|
-
],
|
|
2214
|
-
"type": "option"
|
|
2215
|
-
},
|
|
2216
|
-
"value": {
|
|
2217
|
-
"char": "v",
|
|
2218
|
-
"description": "Secret value",
|
|
2219
|
-
"name": "value",
|
|
2220
|
-
"required": true,
|
|
2221
|
-
"hasDynamicHelp": false,
|
|
2222
|
-
"multiple": false,
|
|
2223
|
-
"type": "option"
|
|
2224
|
-
},
|
|
2225
|
-
"repo": {
|
|
2226
|
-
"char": "r",
|
|
2227
|
-
"description": "Repository (for dockerconfigjson type)",
|
|
2228
|
-
"name": "repo",
|
|
2805
|
+
"description": {
|
|
2806
|
+
"char": "d",
|
|
2807
|
+
"description": "New project description",
|
|
2808
|
+
"name": "description",
|
|
2229
2809
|
"required": false,
|
|
2230
2810
|
"hasDynamicHelp": false,
|
|
2231
2811
|
"multiple": false,
|
|
2232
2812
|
"type": "option"
|
|
2233
|
-
}
|
|
2234
|
-
},
|
|
2235
|
-
"hasDynamicHelp": false,
|
|
2236
|
-
"hiddenAliases": [],
|
|
2237
|
-
"id": "run:secrets:set",
|
|
2238
|
-
"pluginAlias": "@xano/cli",
|
|
2239
|
-
"pluginName": "@xano/cli",
|
|
2240
|
-
"pluginType": "core",
|
|
2241
|
-
"strict": true,
|
|
2242
|
-
"isESM": true,
|
|
2243
|
-
"relativePath": [
|
|
2244
|
-
"dist",
|
|
2245
|
-
"commands",
|
|
2246
|
-
"run",
|
|
2247
|
-
"secrets",
|
|
2248
|
-
"set",
|
|
2249
|
-
"index.js"
|
|
2250
|
-
]
|
|
2251
|
-
},
|
|
2252
|
-
"run:secrets:get": {
|
|
2253
|
-
"aliases": [],
|
|
2254
|
-
"args": {
|
|
2813
|
+
},
|
|
2255
2814
|
"name": {
|
|
2256
|
-
"
|
|
2815
|
+
"char": "n",
|
|
2816
|
+
"description": "New project name",
|
|
2257
2817
|
"name": "name",
|
|
2258
|
-
"required": true
|
|
2259
|
-
}
|
|
2260
|
-
},
|
|
2261
|
-
"description": "Get a secret value",
|
|
2262
|
-
"examples": [
|
|
2263
|
-
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
2264
|
-
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
2265
|
-
],
|
|
2266
|
-
"flags": {
|
|
2267
|
-
"profile": {
|
|
2268
|
-
"char": "p",
|
|
2269
|
-
"description": "Profile to use for this command",
|
|
2270
|
-
"env": "XANO_PROFILE",
|
|
2271
|
-
"name": "profile",
|
|
2272
2818
|
"required": false,
|
|
2273
2819
|
"hasDynamicHelp": false,
|
|
2274
2820
|
"multiple": false,
|
|
2275
2821
|
"type": "option"
|
|
2276
2822
|
},
|
|
2277
|
-
"verbose": {
|
|
2278
|
-
"char": "v",
|
|
2279
|
-
"description": "Show detailed request/response information",
|
|
2280
|
-
"env": "XANO_VERBOSE",
|
|
2281
|
-
"name": "verbose",
|
|
2282
|
-
"required": false,
|
|
2283
|
-
"allowNo": false,
|
|
2284
|
-
"type": "boolean"
|
|
2285
|
-
},
|
|
2286
2823
|
"output": {
|
|
2287
2824
|
"char": "o",
|
|
2288
2825
|
"description": "Output format",
|
|
2289
2826
|
"name": "output",
|
|
2290
2827
|
"required": false,
|
|
2291
|
-
"default": "
|
|
2828
|
+
"default": "summary",
|
|
2292
2829
|
"hasDynamicHelp": false,
|
|
2293
2830
|
"multiple": false,
|
|
2294
2831
|
"options": [
|
|
2295
|
-
"
|
|
2832
|
+
"summary",
|
|
2296
2833
|
"json"
|
|
2297
2834
|
],
|
|
2298
2835
|
"type": "option"
|
|
@@ -2300,7 +2837,7 @@
|
|
|
2300
2837
|
},
|
|
2301
2838
|
"hasDynamicHelp": false,
|
|
2302
2839
|
"hiddenAliases": [],
|
|
2303
|
-
"id": "run:
|
|
2840
|
+
"id": "run:projects:update",
|
|
2304
2841
|
"pluginAlias": "@xano/cli",
|
|
2305
2842
|
"pluginName": "@xano/cli",
|
|
2306
2843
|
"pluginType": "core",
|
|
@@ -2310,19 +2847,24 @@
|
|
|
2310
2847
|
"dist",
|
|
2311
2848
|
"commands",
|
|
2312
2849
|
"run",
|
|
2313
|
-
"
|
|
2314
|
-
"
|
|
2850
|
+
"projects",
|
|
2851
|
+
"update",
|
|
2315
2852
|
"index.js"
|
|
2316
2853
|
]
|
|
2317
2854
|
},
|
|
2318
|
-
"run:
|
|
2855
|
+
"run:secrets:delete": {
|
|
2319
2856
|
"aliases": [],
|
|
2320
|
-
"args": {
|
|
2321
|
-
|
|
2857
|
+
"args": {
|
|
2858
|
+
"name": {
|
|
2859
|
+
"description": "Secret name",
|
|
2860
|
+
"name": "name",
|
|
2861
|
+
"required": true
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2864
|
+
"description": "Delete a secret",
|
|
2322
2865
|
"examples": [
|
|
2323
|
-
"$ xano run
|
|
2324
|
-
"$ xano run
|
|
2325
|
-
"$ xano run projects create -n \"My Project\" -o json\n{ \"id\": \"abc123-def456-ghi789\", \"name\": \"My Project\", ... }\n"
|
|
2866
|
+
"$ xano run secrets delete docker-registry\nAre you sure you want to delete secret 'docker-registry'? (y/N)\nSecret 'docker-registry' deleted successfully!\n",
|
|
2867
|
+
"$ xano run secrets delete docker-registry --force\nSecret 'docker-registry' deleted successfully!\n"
|
|
2326
2868
|
],
|
|
2327
2869
|
"flags": {
|
|
2328
2870
|
"profile": {
|
|
@@ -2344,43 +2886,18 @@
|
|
|
2344
2886
|
"allowNo": false,
|
|
2345
2887
|
"type": "boolean"
|
|
2346
2888
|
},
|
|
2347
|
-
"
|
|
2348
|
-
"char": "
|
|
2349
|
-
"description": "
|
|
2350
|
-
"name": "
|
|
2351
|
-
"required": true,
|
|
2352
|
-
"hasDynamicHelp": false,
|
|
2353
|
-
"multiple": false,
|
|
2354
|
-
"type": "option"
|
|
2355
|
-
},
|
|
2356
|
-
"description": {
|
|
2357
|
-
"char": "d",
|
|
2358
|
-
"description": "Project description",
|
|
2359
|
-
"name": "description",
|
|
2360
|
-
"required": false,
|
|
2361
|
-
"default": "",
|
|
2362
|
-
"hasDynamicHelp": false,
|
|
2363
|
-
"multiple": false,
|
|
2364
|
-
"type": "option"
|
|
2365
|
-
},
|
|
2366
|
-
"output": {
|
|
2367
|
-
"char": "o",
|
|
2368
|
-
"description": "Output format",
|
|
2369
|
-
"name": "output",
|
|
2889
|
+
"force": {
|
|
2890
|
+
"char": "f",
|
|
2891
|
+
"description": "Skip confirmation prompt",
|
|
2892
|
+
"name": "force",
|
|
2370
2893
|
"required": false,
|
|
2371
|
-
"
|
|
2372
|
-
"
|
|
2373
|
-
"multiple": false,
|
|
2374
|
-
"options": [
|
|
2375
|
-
"summary",
|
|
2376
|
-
"json"
|
|
2377
|
-
],
|
|
2378
|
-
"type": "option"
|
|
2894
|
+
"allowNo": false,
|
|
2895
|
+
"type": "boolean"
|
|
2379
2896
|
}
|
|
2380
2897
|
},
|
|
2381
2898
|
"hasDynamicHelp": false,
|
|
2382
2899
|
"hiddenAliases": [],
|
|
2383
|
-
"id": "run:
|
|
2900
|
+
"id": "run:secrets:delete",
|
|
2384
2901
|
"pluginAlias": "@xano/cli",
|
|
2385
2902
|
"pluginName": "@xano/cli",
|
|
2386
2903
|
"pluginType": "core",
|
|
@@ -2390,18 +2907,18 @@
|
|
|
2390
2907
|
"dist",
|
|
2391
2908
|
"commands",
|
|
2392
2909
|
"run",
|
|
2393
|
-
"
|
|
2394
|
-
"
|
|
2910
|
+
"secrets",
|
|
2911
|
+
"delete",
|
|
2395
2912
|
"index.js"
|
|
2396
2913
|
]
|
|
2397
2914
|
},
|
|
2398
|
-
"run:
|
|
2915
|
+
"run:secrets:list": {
|
|
2399
2916
|
"aliases": [],
|
|
2400
2917
|
"args": {},
|
|
2401
|
-
"description": "List all
|
|
2918
|
+
"description": "List all secret keys",
|
|
2402
2919
|
"examples": [
|
|
2403
|
-
"$ xano run
|
|
2404
|
-
"$ xano run
|
|
2920
|
+
"$ xano run secrets list\nNAME TYPE REPO\ndocker-registry kubernetes.io/dockerconfigjson ghcr.io\nservice-account kubernetes.io/service-account-token -\n",
|
|
2921
|
+
"$ xano run secrets list -o json\n{ \"secrets\": [{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"repo\": \"ghcr.io\" }] }\n"
|
|
2405
2922
|
],
|
|
2406
2923
|
"flags": {
|
|
2407
2924
|
"profile": {
|
|
@@ -2440,7 +2957,7 @@
|
|
|
2440
2957
|
},
|
|
2441
2958
|
"hasDynamicHelp": false,
|
|
2442
2959
|
"hiddenAliases": [],
|
|
2443
|
-
"id": "run:
|
|
2960
|
+
"id": "run:secrets:list",
|
|
2444
2961
|
"pluginAlias": "@xano/cli",
|
|
2445
2962
|
"pluginName": "@xano/cli",
|
|
2446
2963
|
"pluginType": "core",
|
|
@@ -2450,25 +2967,24 @@
|
|
|
2450
2967
|
"dist",
|
|
2451
2968
|
"commands",
|
|
2452
2969
|
"run",
|
|
2453
|
-
"
|
|
2970
|
+
"secrets",
|
|
2454
2971
|
"list",
|
|
2455
2972
|
"index.js"
|
|
2456
2973
|
]
|
|
2457
2974
|
},
|
|
2458
|
-
"run:
|
|
2975
|
+
"run:secrets:get": {
|
|
2459
2976
|
"aliases": [],
|
|
2460
2977
|
"args": {
|
|
2461
|
-
"
|
|
2462
|
-
"description": "
|
|
2463
|
-
"name": "
|
|
2978
|
+
"name": {
|
|
2979
|
+
"description": "Secret name",
|
|
2980
|
+
"name": "name",
|
|
2464
2981
|
"required": true
|
|
2465
2982
|
}
|
|
2466
2983
|
},
|
|
2467
|
-
"description": "
|
|
2984
|
+
"description": "Get a secret value",
|
|
2468
2985
|
"examples": [
|
|
2469
|
-
"$ xano run
|
|
2470
|
-
"$ xano run
|
|
2471
|
-
"$ xano run projects update abc123-def456 -n \"New Name\" -o json\n{ \"id\": \"abc123-def456\", \"name\": \"New Name\", ... }\n"
|
|
2986
|
+
"$ xano run secrets get docker-registry\n{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}\n",
|
|
2987
|
+
"$ xano run secrets get docker-registry -o json\n{ \"name\": \"docker-registry\", \"type\": \"kubernetes.io/dockerconfigjson\", \"value\": \"...\" }\n"
|
|
2472
2988
|
],
|
|
2473
2989
|
"flags": {
|
|
2474
2990
|
"profile": {
|
|
@@ -2490,34 +3006,16 @@
|
|
|
2490
3006
|
"allowNo": false,
|
|
2491
3007
|
"type": "boolean"
|
|
2492
3008
|
},
|
|
2493
|
-
"name": {
|
|
2494
|
-
"char": "n",
|
|
2495
|
-
"description": "New project name",
|
|
2496
|
-
"name": "name",
|
|
2497
|
-
"required": false,
|
|
2498
|
-
"hasDynamicHelp": false,
|
|
2499
|
-
"multiple": false,
|
|
2500
|
-
"type": "option"
|
|
2501
|
-
},
|
|
2502
|
-
"description": {
|
|
2503
|
-
"char": "d",
|
|
2504
|
-
"description": "New project description",
|
|
2505
|
-
"name": "description",
|
|
2506
|
-
"required": false,
|
|
2507
|
-
"hasDynamicHelp": false,
|
|
2508
|
-
"multiple": false,
|
|
2509
|
-
"type": "option"
|
|
2510
|
-
},
|
|
2511
3009
|
"output": {
|
|
2512
3010
|
"char": "o",
|
|
2513
3011
|
"description": "Output format",
|
|
2514
3012
|
"name": "output",
|
|
2515
3013
|
"required": false,
|
|
2516
|
-
"default": "
|
|
3014
|
+
"default": "value",
|
|
2517
3015
|
"hasDynamicHelp": false,
|
|
2518
3016
|
"multiple": false,
|
|
2519
3017
|
"options": [
|
|
2520
|
-
"
|
|
3018
|
+
"value",
|
|
2521
3019
|
"json"
|
|
2522
3020
|
],
|
|
2523
3021
|
"type": "option"
|
|
@@ -2525,7 +3023,7 @@
|
|
|
2525
3023
|
},
|
|
2526
3024
|
"hasDynamicHelp": false,
|
|
2527
3025
|
"hiddenAliases": [],
|
|
2528
|
-
"id": "run:
|
|
3026
|
+
"id": "run:secrets:get",
|
|
2529
3027
|
"pluginAlias": "@xano/cli",
|
|
2530
3028
|
"pluginName": "@xano/cli",
|
|
2531
3029
|
"pluginType": "core",
|
|
@@ -2535,24 +3033,24 @@
|
|
|
2535
3033
|
"dist",
|
|
2536
3034
|
"commands",
|
|
2537
3035
|
"run",
|
|
2538
|
-
"
|
|
2539
|
-
"
|
|
3036
|
+
"secrets",
|
|
3037
|
+
"get",
|
|
2540
3038
|
"index.js"
|
|
2541
3039
|
]
|
|
2542
3040
|
},
|
|
2543
|
-
"run:
|
|
3041
|
+
"run:secrets:set": {
|
|
2544
3042
|
"aliases": [],
|
|
2545
3043
|
"args": {
|
|
2546
|
-
"
|
|
2547
|
-
"description": "
|
|
2548
|
-
"name": "
|
|
3044
|
+
"name": {
|
|
3045
|
+
"description": "Secret name",
|
|
3046
|
+
"name": "name",
|
|
2549
3047
|
"required": true
|
|
2550
3048
|
}
|
|
2551
3049
|
},
|
|
2552
|
-
"description": "
|
|
3050
|
+
"description": "Set a secret",
|
|
2553
3051
|
"examples": [
|
|
2554
|
-
"$ xano run
|
|
2555
|
-
"$ xano run
|
|
3052
|
+
"$ xano run secrets set docker-registry -t dockerconfigjson -v '{\"auths\":{\"ghcr.io\":{\"auth\":\"...\"}}}' -r ghcr.io\nSecret 'docker-registry' set successfully!\n",
|
|
3053
|
+
"$ xano run secrets set service-key -t service-account-token -v 'token-value-here'\nSecret 'service-key' set successfully!\n"
|
|
2556
3054
|
],
|
|
2557
3055
|
"flags": {
|
|
2558
3056
|
"profile": {
|
|
@@ -2574,18 +3072,41 @@
|
|
|
2574
3072
|
"allowNo": false,
|
|
2575
3073
|
"type": "boolean"
|
|
2576
3074
|
},
|
|
2577
|
-
"
|
|
2578
|
-
"char": "
|
|
2579
|
-
"description": "
|
|
2580
|
-
"name": "
|
|
3075
|
+
"repo": {
|
|
3076
|
+
"char": "r",
|
|
3077
|
+
"description": "Repository (for dockerconfigjson type)",
|
|
3078
|
+
"name": "repo",
|
|
2581
3079
|
"required": false,
|
|
2582
|
-
"
|
|
2583
|
-
"
|
|
3080
|
+
"hasDynamicHelp": false,
|
|
3081
|
+
"multiple": false,
|
|
3082
|
+
"type": "option"
|
|
3083
|
+
},
|
|
3084
|
+
"type": {
|
|
3085
|
+
"char": "t",
|
|
3086
|
+
"description": "Secret type",
|
|
3087
|
+
"name": "type",
|
|
3088
|
+
"required": true,
|
|
3089
|
+
"hasDynamicHelp": false,
|
|
3090
|
+
"multiple": false,
|
|
3091
|
+
"options": [
|
|
3092
|
+
"dockerconfigjson",
|
|
3093
|
+
"service-account-token"
|
|
3094
|
+
],
|
|
3095
|
+
"type": "option"
|
|
3096
|
+
},
|
|
3097
|
+
"value": {
|
|
3098
|
+
"char": "v",
|
|
3099
|
+
"description": "Secret value",
|
|
3100
|
+
"name": "value",
|
|
3101
|
+
"required": true,
|
|
3102
|
+
"hasDynamicHelp": false,
|
|
3103
|
+
"multiple": false,
|
|
3104
|
+
"type": "option"
|
|
2584
3105
|
}
|
|
2585
3106
|
},
|
|
2586
3107
|
"hasDynamicHelp": false,
|
|
2587
3108
|
"hiddenAliases": [],
|
|
2588
|
-
"id": "run:
|
|
3109
|
+
"id": "run:secrets:set",
|
|
2589
3110
|
"pluginAlias": "@xano/cli",
|
|
2590
3111
|
"pluginName": "@xano/cli",
|
|
2591
3112
|
"pluginType": "core",
|
|
@@ -2595,8 +3116,8 @@
|
|
|
2595
3116
|
"dist",
|
|
2596
3117
|
"commands",
|
|
2597
3118
|
"run",
|
|
2598
|
-
"
|
|
2599
|
-
"
|
|
3119
|
+
"secrets",
|
|
3120
|
+
"set",
|
|
2600
3121
|
"index.js"
|
|
2601
3122
|
]
|
|
2602
3123
|
},
|
|
@@ -2726,19 +3247,13 @@
|
|
|
2726
3247
|
"index.js"
|
|
2727
3248
|
]
|
|
2728
3249
|
},
|
|
2729
|
-
"run:sessions:
|
|
3250
|
+
"run:sessions:list": {
|
|
2730
3251
|
"aliases": [],
|
|
2731
|
-
"args": {
|
|
2732
|
-
|
|
2733
|
-
"description": "Session ID",
|
|
2734
|
-
"name": "sessionId",
|
|
2735
|
-
"required": true
|
|
2736
|
-
}
|
|
2737
|
-
},
|
|
2738
|
-
"description": "Start a session",
|
|
3252
|
+
"args": {},
|
|
3253
|
+
"description": "List all sessions for the project",
|
|
2739
3254
|
"examples": [
|
|
2740
|
-
"$ xano run sessions
|
|
2741
|
-
"$ xano run sessions
|
|
3255
|
+
"$ xano run sessions list\nID STATE CREATED\nabc123-def456-ghi789 running 2024-01-15T10:30:00Z\nxyz789-uvw456-rst123 stopped 2024-01-14T09:00:00Z\n",
|
|
3256
|
+
"$ xano run sessions list -o json\n{ \"items\": [{ \"id\": \"abc123-def456-ghi789\", \"state\": \"running\", ... }] }\n"
|
|
2742
3257
|
],
|
|
2743
3258
|
"flags": {
|
|
2744
3259
|
"profile": {
|
|
@@ -2765,11 +3280,11 @@
|
|
|
2765
3280
|
"description": "Output format",
|
|
2766
3281
|
"name": "output",
|
|
2767
3282
|
"required": false,
|
|
2768
|
-
"default": "
|
|
3283
|
+
"default": "table",
|
|
2769
3284
|
"hasDynamicHelp": false,
|
|
2770
3285
|
"multiple": false,
|
|
2771
3286
|
"options": [
|
|
2772
|
-
"
|
|
3287
|
+
"table",
|
|
2773
3288
|
"json"
|
|
2774
3289
|
],
|
|
2775
3290
|
"type": "option"
|
|
@@ -2777,7 +3292,7 @@
|
|
|
2777
3292
|
},
|
|
2778
3293
|
"hasDynamicHelp": false,
|
|
2779
3294
|
"hiddenAliases": [],
|
|
2780
|
-
"id": "run:sessions:
|
|
3295
|
+
"id": "run:sessions:list",
|
|
2781
3296
|
"pluginAlias": "@xano/cli",
|
|
2782
3297
|
"pluginName": "@xano/cli",
|
|
2783
3298
|
"pluginType": "core",
|
|
@@ -2788,7 +3303,7 @@
|
|
|
2788
3303
|
"commands",
|
|
2789
3304
|
"run",
|
|
2790
3305
|
"sessions",
|
|
2791
|
-
"
|
|
3306
|
+
"list",
|
|
2792
3307
|
"index.js"
|
|
2793
3308
|
]
|
|
2794
3309
|
},
|
|
@@ -2858,13 +3373,19 @@
|
|
|
2858
3373
|
"index.js"
|
|
2859
3374
|
]
|
|
2860
3375
|
},
|
|
2861
|
-
"run:sessions:
|
|
3376
|
+
"run:sessions:start": {
|
|
2862
3377
|
"aliases": [],
|
|
2863
|
-
"args": {
|
|
2864
|
-
|
|
3378
|
+
"args": {
|
|
3379
|
+
"sessionId": {
|
|
3380
|
+
"description": "Session ID",
|
|
3381
|
+
"name": "sessionId",
|
|
3382
|
+
"required": true
|
|
3383
|
+
}
|
|
3384
|
+
},
|
|
3385
|
+
"description": "Start a session",
|
|
2865
3386
|
"examples": [
|
|
2866
|
-
"$ xano run sessions
|
|
2867
|
-
"$ xano run sessions
|
|
3387
|
+
"$ xano run sessions start abc123-def456\nSession started successfully!\n ID: abc123-def456\n State: running\n",
|
|
3388
|
+
"$ xano run sessions start abc123-def456 -o json\n{ \"id\": \"abc123-def456\", \"state\": \"running\", ... }\n"
|
|
2868
3389
|
],
|
|
2869
3390
|
"flags": {
|
|
2870
3391
|
"profile": {
|
|
@@ -2891,11 +3412,11 @@
|
|
|
2891
3412
|
"description": "Output format",
|
|
2892
3413
|
"name": "output",
|
|
2893
3414
|
"required": false,
|
|
2894
|
-
"default": "
|
|
3415
|
+
"default": "summary",
|
|
2895
3416
|
"hasDynamicHelp": false,
|
|
2896
3417
|
"multiple": false,
|
|
2897
3418
|
"options": [
|
|
2898
|
-
"
|
|
3419
|
+
"summary",
|
|
2899
3420
|
"json"
|
|
2900
3421
|
],
|
|
2901
3422
|
"type": "option"
|
|
@@ -2903,7 +3424,7 @@
|
|
|
2903
3424
|
},
|
|
2904
3425
|
"hasDynamicHelp": false,
|
|
2905
3426
|
"hiddenAliases": [],
|
|
2906
|
-
"id": "run:sessions:
|
|
3427
|
+
"id": "run:sessions:start",
|
|
2907
3428
|
"pluginAlias": "@xano/cli",
|
|
2908
3429
|
"pluginName": "@xano/cli",
|
|
2909
3430
|
"pluginType": "core",
|
|
@@ -2914,7 +3435,7 @@
|
|
|
2914
3435
|
"commands",
|
|
2915
3436
|
"run",
|
|
2916
3437
|
"sessions",
|
|
2917
|
-
"
|
|
3438
|
+
"start",
|
|
2918
3439
|
"index.js"
|
|
2919
3440
|
]
|
|
2920
3441
|
},
|
|
@@ -2984,7 +3505,7 @@
|
|
|
2984
3505
|
"index.js"
|
|
2985
3506
|
]
|
|
2986
3507
|
},
|
|
2987
|
-
"static_host:build:
|
|
3508
|
+
"static_host:build:create": {
|
|
2988
3509
|
"aliases": [],
|
|
2989
3510
|
"args": {
|
|
2990
3511
|
"static_host": {
|
|
@@ -2993,12 +3514,11 @@
|
|
|
2993
3514
|
"required": true
|
|
2994
3515
|
}
|
|
2995
3516
|
},
|
|
2996
|
-
"description": "
|
|
3517
|
+
"description": "Create a new build for a static host",
|
|
2997
3518
|
"examples": [
|
|
2998
|
-
"$ xano static_host:build:
|
|
2999
|
-
"$ xano static_host:build:
|
|
3000
|
-
"$ xano static_host:build:
|
|
3001
|
-
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
3519
|
+
"$ xano static_host:build:create default -f ./build.zip -n \"v1.0.0\"\nBuild created successfully!\nID: 123\nName: v1.0.0\nStatus: pending\n",
|
|
3520
|
+
"$ xano static_host:build:create default -w 40 -f ./dist.zip -n \"production\" -d \"Production build\"\nBuild created successfully!\nID: 124\nName: production\nDescription: Production build\n",
|
|
3521
|
+
"$ xano static_host:build:create myhost -f ./app.zip -n \"release-1.2\" -o json\n{\n \"id\": 125,\n \"name\": \"release-1.2\",\n \"status\": \"pending\"\n}\n"
|
|
3002
3522
|
],
|
|
3003
3523
|
"flags": {
|
|
3004
3524
|
"profile": {
|
|
@@ -3020,15 +3540,33 @@
|
|
|
3020
3540
|
"allowNo": false,
|
|
3021
3541
|
"type": "boolean"
|
|
3022
3542
|
},
|
|
3023
|
-
"
|
|
3024
|
-
"char": "
|
|
3025
|
-
"description": "
|
|
3026
|
-
"name": "
|
|
3543
|
+
"description": {
|
|
3544
|
+
"char": "d",
|
|
3545
|
+
"description": "Build description",
|
|
3546
|
+
"name": "description",
|
|
3027
3547
|
"required": false,
|
|
3028
3548
|
"hasDynamicHelp": false,
|
|
3029
3549
|
"multiple": false,
|
|
3030
3550
|
"type": "option"
|
|
3031
3551
|
},
|
|
3552
|
+
"file": {
|
|
3553
|
+
"char": "f",
|
|
3554
|
+
"description": "Path to zip file to upload",
|
|
3555
|
+
"name": "file",
|
|
3556
|
+
"required": true,
|
|
3557
|
+
"hasDynamicHelp": false,
|
|
3558
|
+
"multiple": false,
|
|
3559
|
+
"type": "option"
|
|
3560
|
+
},
|
|
3561
|
+
"name": {
|
|
3562
|
+
"char": "n",
|
|
3563
|
+
"description": "Build name",
|
|
3564
|
+
"name": "name",
|
|
3565
|
+
"required": true,
|
|
3566
|
+
"hasDynamicHelp": false,
|
|
3567
|
+
"multiple": false,
|
|
3568
|
+
"type": "option"
|
|
3569
|
+
},
|
|
3032
3570
|
"output": {
|
|
3033
3571
|
"char": "o",
|
|
3034
3572
|
"description": "Output format",
|
|
@@ -3043,20 +3581,11 @@
|
|
|
3043
3581
|
],
|
|
3044
3582
|
"type": "option"
|
|
3045
3583
|
},
|
|
3046
|
-
"
|
|
3047
|
-
"
|
|
3048
|
-
"
|
|
3049
|
-
"
|
|
3050
|
-
"default": 1,
|
|
3051
|
-
"hasDynamicHelp": false,
|
|
3052
|
-
"multiple": false,
|
|
3053
|
-
"type": "option"
|
|
3054
|
-
},
|
|
3055
|
-
"per_page": {
|
|
3056
|
-
"description": "Number of results per page",
|
|
3057
|
-
"name": "per_page",
|
|
3584
|
+
"workspace": {
|
|
3585
|
+
"char": "w",
|
|
3586
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
3587
|
+
"name": "workspace",
|
|
3058
3588
|
"required": false,
|
|
3059
|
-
"default": 50,
|
|
3060
3589
|
"hasDynamicHelp": false,
|
|
3061
3590
|
"multiple": false,
|
|
3062
3591
|
"type": "option"
|
|
@@ -3064,7 +3593,7 @@
|
|
|
3064
3593
|
},
|
|
3065
3594
|
"hasDynamicHelp": false,
|
|
3066
3595
|
"hiddenAliases": [],
|
|
3067
|
-
"id": "static_host:build:
|
|
3596
|
+
"id": "static_host:build:create",
|
|
3068
3597
|
"pluginAlias": "@xano/cli",
|
|
3069
3598
|
"pluginName": "@xano/cli",
|
|
3070
3599
|
"pluginType": "core",
|
|
@@ -3076,22 +3605,22 @@
|
|
|
3076
3605
|
"commands",
|
|
3077
3606
|
"static_host",
|
|
3078
3607
|
"build",
|
|
3079
|
-
"
|
|
3608
|
+
"create",
|
|
3080
3609
|
"index.js"
|
|
3081
3610
|
]
|
|
3082
3611
|
},
|
|
3083
3612
|
"static_host:build:get": {
|
|
3084
3613
|
"aliases": [],
|
|
3085
3614
|
"args": {
|
|
3086
|
-
"static_host": {
|
|
3087
|
-
"description": "Static Host name",
|
|
3088
|
-
"name": "static_host",
|
|
3089
|
-
"required": true
|
|
3090
|
-
},
|
|
3091
3615
|
"build_id": {
|
|
3092
3616
|
"description": "Build ID",
|
|
3093
3617
|
"name": "build_id",
|
|
3094
3618
|
"required": true
|
|
3619
|
+
},
|
|
3620
|
+
"static_host": {
|
|
3621
|
+
"description": "Static Host name",
|
|
3622
|
+
"name": "static_host",
|
|
3623
|
+
"required": true
|
|
3095
3624
|
}
|
|
3096
3625
|
},
|
|
3097
3626
|
"description": "Get details of a specific build for a static host",
|
|
@@ -3121,15 +3650,6 @@
|
|
|
3121
3650
|
"allowNo": false,
|
|
3122
3651
|
"type": "boolean"
|
|
3123
3652
|
},
|
|
3124
|
-
"workspace": {
|
|
3125
|
-
"char": "w",
|
|
3126
|
-
"description": "Workspace ID (optional if set in profile)",
|
|
3127
|
-
"name": "workspace",
|
|
3128
|
-
"required": false,
|
|
3129
|
-
"hasDynamicHelp": false,
|
|
3130
|
-
"multiple": false,
|
|
3131
|
-
"type": "option"
|
|
3132
|
-
},
|
|
3133
3653
|
"output": {
|
|
3134
3654
|
"char": "o",
|
|
3135
3655
|
"description": "Output format",
|
|
@@ -3143,6 +3663,15 @@
|
|
|
3143
3663
|
"json"
|
|
3144
3664
|
],
|
|
3145
3665
|
"type": "option"
|
|
3666
|
+
},
|
|
3667
|
+
"workspace": {
|
|
3668
|
+
"char": "w",
|
|
3669
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
3670
|
+
"name": "workspace",
|
|
3671
|
+
"required": false,
|
|
3672
|
+
"hasDynamicHelp": false,
|
|
3673
|
+
"multiple": false,
|
|
3674
|
+
"type": "option"
|
|
3146
3675
|
}
|
|
3147
3676
|
},
|
|
3148
3677
|
"hasDynamicHelp": false,
|
|
@@ -3163,7 +3692,7 @@
|
|
|
3163
3692
|
"index.js"
|
|
3164
3693
|
]
|
|
3165
3694
|
},
|
|
3166
|
-
"static_host:build:
|
|
3695
|
+
"static_host:build:list": {
|
|
3167
3696
|
"aliases": [],
|
|
3168
3697
|
"args": {
|
|
3169
3698
|
"static_host": {
|
|
@@ -3172,11 +3701,12 @@
|
|
|
3172
3701
|
"required": true
|
|
3173
3702
|
}
|
|
3174
3703
|
},
|
|
3175
|
-
"description": "
|
|
3704
|
+
"description": "List all builds for a static host",
|
|
3176
3705
|
"examples": [
|
|
3177
|
-
"$ xano static_host:build:
|
|
3178
|
-
"$ xano static_host:build:
|
|
3179
|
-
"$ xano static_host:build:
|
|
3706
|
+
"$ xano static_host:build:list default -w 40\nAvailable builds:\n - v1.0.0 (ID: 1) - Status: completed\n - v1.0.1 (ID: 2) - Status: pending\n",
|
|
3707
|
+
"$ xano static_host:build:list myhost --profile production\nAvailable builds:\n - production (ID: 1) - Status: completed\n - staging (ID: 2) - Status: completed\n",
|
|
3708
|
+
"$ xano static_host:build:list default -w 40 --output json\n[\n {\n \"id\": 1,\n \"name\": \"v1.0.0\",\n \"status\": \"completed\"\n }\n]\n",
|
|
3709
|
+
"$ xano static_host:build:list default -p staging -o json --page 2\n[\n {\n \"id\": 3,\n \"name\": \"v1.0.2\"\n }\n]\n"
|
|
3180
3710
|
],
|
|
3181
3711
|
"flags": {
|
|
3182
3712
|
"profile": {
|
|
@@ -3198,60 +3728,51 @@
|
|
|
3198
3728
|
"allowNo": false,
|
|
3199
3729
|
"type": "boolean"
|
|
3200
3730
|
},
|
|
3201
|
-
"
|
|
3202
|
-
"char": "
|
|
3203
|
-
"description": "
|
|
3204
|
-
"name": "
|
|
3731
|
+
"output": {
|
|
3732
|
+
"char": "o",
|
|
3733
|
+
"description": "Output format",
|
|
3734
|
+
"name": "output",
|
|
3205
3735
|
"required": false,
|
|
3736
|
+
"default": "summary",
|
|
3206
3737
|
"hasDynamicHelp": false,
|
|
3207
3738
|
"multiple": false,
|
|
3739
|
+
"options": [
|
|
3740
|
+
"summary",
|
|
3741
|
+
"json"
|
|
3742
|
+
],
|
|
3208
3743
|
"type": "option"
|
|
3209
3744
|
},
|
|
3210
|
-
"
|
|
3211
|
-
"
|
|
3212
|
-
"
|
|
3213
|
-
"
|
|
3214
|
-
"
|
|
3215
|
-
"hasDynamicHelp": false,
|
|
3216
|
-
"multiple": false,
|
|
3217
|
-
"type": "option"
|
|
3218
|
-
},
|
|
3219
|
-
"name": {
|
|
3220
|
-
"char": "n",
|
|
3221
|
-
"description": "Build name",
|
|
3222
|
-
"name": "name",
|
|
3223
|
-
"required": true,
|
|
3745
|
+
"page": {
|
|
3746
|
+
"description": "Page number for pagination",
|
|
3747
|
+
"name": "page",
|
|
3748
|
+
"required": false,
|
|
3749
|
+
"default": 1,
|
|
3224
3750
|
"hasDynamicHelp": false,
|
|
3225
3751
|
"multiple": false,
|
|
3226
3752
|
"type": "option"
|
|
3227
3753
|
},
|
|
3228
|
-
"
|
|
3229
|
-
"
|
|
3230
|
-
"
|
|
3231
|
-
"name": "description",
|
|
3754
|
+
"per_page": {
|
|
3755
|
+
"description": "Number of results per page",
|
|
3756
|
+
"name": "per_page",
|
|
3232
3757
|
"required": false,
|
|
3758
|
+
"default": 50,
|
|
3233
3759
|
"hasDynamicHelp": false,
|
|
3234
3760
|
"multiple": false,
|
|
3235
3761
|
"type": "option"
|
|
3236
3762
|
},
|
|
3237
|
-
"
|
|
3238
|
-
"char": "
|
|
3239
|
-
"description": "
|
|
3240
|
-
"name": "
|
|
3763
|
+
"workspace": {
|
|
3764
|
+
"char": "w",
|
|
3765
|
+
"description": "Workspace ID (optional if set in profile)",
|
|
3766
|
+
"name": "workspace",
|
|
3241
3767
|
"required": false,
|
|
3242
|
-
"default": "summary",
|
|
3243
3768
|
"hasDynamicHelp": false,
|
|
3244
3769
|
"multiple": false,
|
|
3245
|
-
"options": [
|
|
3246
|
-
"summary",
|
|
3247
|
-
"json"
|
|
3248
|
-
],
|
|
3249
3770
|
"type": "option"
|
|
3250
3771
|
}
|
|
3251
3772
|
},
|
|
3252
3773
|
"hasDynamicHelp": false,
|
|
3253
3774
|
"hiddenAliases": [],
|
|
3254
|
-
"id": "static_host:build:
|
|
3775
|
+
"id": "static_host:build:list",
|
|
3255
3776
|
"pluginAlias": "@xano/cli",
|
|
3256
3777
|
"pluginName": "@xano/cli",
|
|
3257
3778
|
"pluginType": "core",
|
|
@@ -3263,10 +3784,10 @@
|
|
|
3263
3784
|
"commands",
|
|
3264
3785
|
"static_host",
|
|
3265
3786
|
"build",
|
|
3266
|
-
"
|
|
3787
|
+
"list",
|
|
3267
3788
|
"index.js"
|
|
3268
3789
|
]
|
|
3269
3790
|
}
|
|
3270
3791
|
},
|
|
3271
|
-
"version": "0.0.
|
|
3792
|
+
"version": "0.0.22"
|
|
3272
3793
|
}
|