@xano/developer-mcp 1.0.72 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli_docs/index.js +4 -4
- package/dist/cli_docs/topics/auth.js +16 -11
- package/dist/cli_docs/topics/branch.js +83 -74
- package/dist/cli_docs/topics/function.js +86 -59
- package/dist/cli_docs/topics/integration.js +47 -32
- package/dist/cli_docs/topics/platform.js +14 -14
- package/dist/cli_docs/topics/profile.js +58 -55
- package/dist/cli_docs/topics/release.js +150 -96
- package/dist/cli_docs/topics/sandbox.d.ts +2 -0
- package/dist/cli_docs/topics/sandbox.js +317 -0
- package/dist/cli_docs/topics/start.js +31 -26
- package/dist/cli_docs/topics/static_host.js +52 -26
- package/dist/cli_docs/topics/tenant.js +355 -223
- package/dist/cli_docs/topics/unit_test.js +30 -30
- package/dist/cli_docs/topics/update.js +1 -0
- package/dist/cli_docs/topics/workflow_test.js +42 -39
- package/dist/cli_docs/topics/workspace.js +143 -108
- package/dist/xanoscript_docs/debugging.md +3 -2
- package/package.json +1 -1
|
@@ -6,11 +6,12 @@ export const tenantDoc = {
|
|
|
6
6
|
## Key Concepts
|
|
7
7
|
|
|
8
8
|
- **Tenant**: An isolated deployment instance within a workspace, identified by name.
|
|
9
|
-
- **Cluster**: Infrastructure where tenants run (
|
|
9
|
+
- **Cluster**: Infrastructure where tenants run (standard or run type).
|
|
10
10
|
- **Deployments**: Tenants receive updates via named releases or platform versions.
|
|
11
11
|
- **Environment variables**: Managed per-tenant for configuration isolation.
|
|
12
12
|
- **Backups**: Per-tenant backup and restore for disaster recovery.
|
|
13
|
-
- **Pull
|
|
13
|
+
- **Pull**: Read-only export of tenant contents (same multidoc format as \`workspace pull\`).
|
|
14
|
+
- **Push**: Direct tenant push is NOT supported. Use a release deployment or the sandbox workflow instead.
|
|
14
15
|
|
|
15
16
|
## Tenant Identification
|
|
16
17
|
|
|
@@ -18,410 +19,531 @@ Tenants are identified by their **name** (not numeric IDs).`,
|
|
|
18
19
|
ai_hints: `**Key concepts:**
|
|
19
20
|
- Tenants are deployment targets for multi-tenant/white-label applications
|
|
20
21
|
- Each tenant is isolated with its own database, env vars, and configuration
|
|
21
|
-
- \`tenant
|
|
22
|
-
-
|
|
22
|
+
- \`tenant pull\` exports tenant contents (like \`workspace pull\` but tenant-scoped)
|
|
23
|
+
- Direct \`tenant push\` is blocked — deploy via releases or use the sandbox
|
|
24
|
+
- Deployments use named releases (\`tenant deploy_release\`) or platform versions (\`tenant deploy_platform\`)
|
|
23
25
|
- Environment variables are managed per-tenant for configuration isolation
|
|
24
26
|
- Backups provide disaster recovery per-tenant
|
|
25
27
|
- Clusters manage the infrastructure where tenants run
|
|
26
28
|
|
|
27
29
|
**Typical workflow:**
|
|
28
|
-
1. Create a tenant: \`xano tenant
|
|
29
|
-
2. Set environment variables: \`xano tenant
|
|
30
|
-
3. Deploy a release: \`xano tenant
|
|
30
|
+
1. Create a tenant: \`xano tenant create "My Tenant"\`
|
|
31
|
+
2. Set environment variables: \`xano tenant env set my-tenant -n API_KEY --value secret\`
|
|
32
|
+
3. Deploy a release: \`xano tenant deploy_release my-tenant -r v1.0.0\`
|
|
31
33
|
|
|
32
34
|
**Tenant operations overview:**
|
|
33
35
|
- CRUD: create, get, list, edit, delete
|
|
34
|
-
- Code
|
|
36
|
+
- Code export: pull (read-only)
|
|
35
37
|
- Deployment: deploy_release, deploy_platform
|
|
36
|
-
- Configuration: env
|
|
37
|
-
- Backups: backup
|
|
38
|
-
- Infrastructure: cluster
|
|
39
|
-
- License: license
|
|
38
|
+
- Configuration: env list, env get, env set, env delete, env get_all, env set_all
|
|
39
|
+
- Backups: backup create, backup list, backup export, backup import, backup restore, backup delete
|
|
40
|
+
- Infrastructure: cluster create, cluster list, cluster get, cluster edit, cluster delete, cluster license get, cluster license set
|
|
41
|
+
- License: license get, license set
|
|
42
|
+
- Testing: unit_test list/run/run_all, workflow_test list/run/run_all
|
|
40
43
|
- Access: impersonate (open tenant in browser)`,
|
|
41
|
-
related_topics: ["workspace", "release", "branch"],
|
|
44
|
+
related_topics: ["sandbox", "workspace", "release", "branch"],
|
|
42
45
|
commands: [
|
|
43
46
|
// Core CRUD
|
|
44
47
|
{
|
|
45
|
-
name: "tenant
|
|
48
|
+
name: "tenant list",
|
|
46
49
|
description: "List all tenants in a workspace",
|
|
47
|
-
usage: "xano tenant
|
|
50
|
+
usage: "xano tenant list [options]",
|
|
48
51
|
flags: [
|
|
49
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
52
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
50
53
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
51
54
|
],
|
|
52
|
-
examples: ["xano tenant
|
|
55
|
+
examples: ["xano tenant list", "xano tenant list -o json"]
|
|
53
56
|
},
|
|
54
57
|
{
|
|
55
|
-
name: "tenant
|
|
58
|
+
name: "tenant get",
|
|
56
59
|
description: "Get details for a specific tenant",
|
|
57
|
-
usage: "xano tenant
|
|
60
|
+
usage: "xano tenant get <tenant_name> [options]",
|
|
58
61
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
59
62
|
flags: [
|
|
60
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
63
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
61
64
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
62
65
|
],
|
|
63
|
-
examples: ["xano tenant
|
|
66
|
+
examples: ["xano tenant get my-tenant", "xano tenant get my-tenant -o json"]
|
|
64
67
|
},
|
|
65
68
|
{
|
|
66
|
-
name: "tenant
|
|
69
|
+
name: "tenant create",
|
|
67
70
|
description: "Create a new tenant",
|
|
68
|
-
usage: "xano tenant
|
|
69
|
-
args: [{ name: "
|
|
71
|
+
usage: "xano tenant create <display> [options]",
|
|
72
|
+
args: [{ name: "display", required: true, description: "Display name for the tenant" }],
|
|
70
73
|
flags: [
|
|
71
74
|
{ name: "description", short: "d", type: "string", required: false, description: "Tenant description" },
|
|
72
|
-
{ name: "
|
|
73
|
-
{ name: "
|
|
74
|
-
{ name: "
|
|
75
|
+
{ name: "type", type: "string", required: false, default: "tier1", description: "Tenant type: tier1, tier2, or tier3" },
|
|
76
|
+
{ name: "cluster_id", type: "integer", required: false, description: "Cluster ID to deploy to (required for tier2/tier3)" },
|
|
77
|
+
{ name: "platform_id", type: "integer", required: false, description: "Platform ID to use" },
|
|
78
|
+
{ name: "license", short: "l", type: "string", required: false, description: "Path to a license override file to apply during creation" },
|
|
79
|
+
{ name: "domain", type: "string", required: false, description: "Custom domain for the tenant" },
|
|
80
|
+
{ name: "ingress", type: "boolean", required: false, default: "true", description: "Enable ingress (--no-ingress to disable)" },
|
|
81
|
+
{ name: "tasks", type: "boolean", required: false, default: "true", description: "Enable background tasks (--no-tasks to disable)" },
|
|
82
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
83
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
75
84
|
],
|
|
76
85
|
examples: [
|
|
77
|
-
'xano tenant
|
|
78
|
-
'xano tenant
|
|
86
|
+
'xano tenant create "My Tenant"',
|
|
87
|
+
'xano tenant create "Production" -d "Production tenant" --type tier2 --cluster_id 1',
|
|
88
|
+
'xano tenant create "Staging" --type tier2 --cluster_id 1 --license ./license.yaml'
|
|
79
89
|
]
|
|
80
90
|
},
|
|
81
91
|
{
|
|
82
|
-
name: "tenant
|
|
92
|
+
name: "tenant edit",
|
|
83
93
|
description: "Edit an existing tenant",
|
|
84
|
-
usage: "xano tenant
|
|
94
|
+
usage: "xano tenant edit <tenant_name> [options]",
|
|
85
95
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
86
96
|
flags: [
|
|
87
97
|
{ name: "display", type: "string", required: false, description: "New display name" },
|
|
88
98
|
{ name: "description", short: "d", type: "string", required: false, description: "New description" },
|
|
89
|
-
{ name: "
|
|
99
|
+
{ name: "domain", type: "string", required: false, description: "Custom domain" },
|
|
100
|
+
{ name: "proxy", type: "string", required: false, description: "Proxy URL" },
|
|
101
|
+
{ name: "ingress", type: "boolean", required: false, description: "Enable/disable ingress (--no-ingress)" },
|
|
102
|
+
{ name: "tasks", type: "boolean", required: false, description: "Enable/disable background tasks (--no-tasks)" },
|
|
103
|
+
{ name: "rbac", type: "boolean", required: false, description: "Enable/disable RBAC (--no-rbac)" },
|
|
104
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
105
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
90
106
|
],
|
|
91
|
-
examples: ['xano tenant
|
|
107
|
+
examples: ['xano tenant edit my-tenant --display "New Name"', "xano tenant edit my-tenant --no-tasks"]
|
|
92
108
|
},
|
|
93
109
|
{
|
|
94
|
-
name: "tenant
|
|
110
|
+
name: "tenant delete",
|
|
95
111
|
description: "Delete a tenant",
|
|
96
|
-
usage: "xano tenant
|
|
112
|
+
usage: "xano tenant delete <tenant_name> [options]",
|
|
97
113
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
98
114
|
flags: [
|
|
99
|
-
{ name: "force", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
100
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
115
|
+
{ name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
116
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
117
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
101
118
|
],
|
|
102
|
-
examples: ["xano tenant
|
|
119
|
+
examples: ["xano tenant delete old-tenant", "xano tenant delete old-tenant --force"]
|
|
103
120
|
},
|
|
104
121
|
{
|
|
105
|
-
name: "tenant
|
|
122
|
+
name: "tenant impersonate",
|
|
106
123
|
description: "Open tenant dashboard in browser",
|
|
107
|
-
usage: "xano tenant
|
|
124
|
+
usage: "xano tenant impersonate <tenant_name> [options]",
|
|
108
125
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
109
126
|
flags: [
|
|
110
|
-
{ name: "url-only", type: "boolean", required: false, description: "Print URL without opening browser" },
|
|
111
|
-
{ name: "output", short: "o", type: "string", required: false, description: "Output format: json" },
|
|
112
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
127
|
+
{ name: "url-only", short: "u", type: "boolean", required: false, description: "Print the URL without opening the browser" },
|
|
128
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
|
|
129
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" }
|
|
113
130
|
],
|
|
114
|
-
examples: [
|
|
131
|
+
examples: [
|
|
132
|
+
"xano tenant impersonate my-tenant",
|
|
133
|
+
"xano tenant impersonate my-tenant --url-only",
|
|
134
|
+
"xano tenant impersonate my-tenant -o json"
|
|
135
|
+
]
|
|
115
136
|
},
|
|
116
|
-
// Pull
|
|
137
|
+
// Pull (push is blocked)
|
|
117
138
|
{
|
|
118
|
-
name: "tenant
|
|
119
|
-
description: "Pull tenant contents to local files (same multidoc format as workspace
|
|
120
|
-
usage: "xano tenant
|
|
121
|
-
args: [{ name: "directory", required: true, description: "Local directory to save files" }],
|
|
139
|
+
name: "tenant pull",
|
|
140
|
+
description: "Pull tenant contents to local files (same multidoc format as workspace pull)",
|
|
141
|
+
usage: "xano tenant pull -t <tenant_name> [options]",
|
|
122
142
|
flags: [
|
|
123
|
-
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
143
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name to pull from" },
|
|
144
|
+
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Output directory for pulled documents" },
|
|
124
145
|
{ name: "env", type: "boolean", required: false, description: "Include environment variables" },
|
|
125
|
-
{ name: "records", type: "boolean", required: false, description: "Include
|
|
146
|
+
{ name: "records", type: "boolean", required: false, description: "Include records" },
|
|
126
147
|
{ name: "draft", type: "boolean", required: false, description: "Include draft versions" },
|
|
127
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
148
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (optional if set in profile)" }
|
|
128
149
|
],
|
|
129
150
|
examples: [
|
|
130
|
-
"xano tenant
|
|
131
|
-
"xano tenant
|
|
151
|
+
"xano tenant pull -t my-tenant -d ./tenant-code",
|
|
152
|
+
"xano tenant pull -t my-tenant -d ./backup --env --records"
|
|
132
153
|
]
|
|
133
154
|
},
|
|
134
155
|
{
|
|
135
|
-
name: "tenant
|
|
136
|
-
description: "
|
|
137
|
-
usage: "xano tenant
|
|
138
|
-
args: [{ name: "directory", required: true, description: "Local directory containing files" }],
|
|
139
|
-
flags: [
|
|
140
|
-
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
141
|
-
{ name: "records", type: "boolean", required: false, description: "Include table records" },
|
|
142
|
-
{ name: "env", type: "boolean", required: false, description: "Include environment variables" },
|
|
143
|
-
{ name: "truncate", type: "boolean", required: false, description: "Truncate tables before importing records" },
|
|
144
|
-
{ name: "transaction", type: "boolean", required: false, default: "true", description: "Wrap push in database transaction (--no-transaction to disable)" },
|
|
145
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
146
|
-
],
|
|
156
|
+
name: "tenant push",
|
|
157
|
+
description: "DEPRECATED: Direct tenant push is not supported. Deploy through a release (`xano tenant deploy_release`) or use the sandbox (`xano sandbox push`).",
|
|
158
|
+
usage: "xano tenant push # errors out",
|
|
147
159
|
examples: [
|
|
148
|
-
"
|
|
149
|
-
"xano
|
|
160
|
+
"# Instead of pushing directly, deploy via release:",
|
|
161
|
+
"xano release create -n v1.0.0 -b dev",
|
|
162
|
+
"xano tenant deploy_release my-tenant -r v1.0.0"
|
|
150
163
|
]
|
|
151
164
|
},
|
|
152
165
|
// Deployments
|
|
153
166
|
{
|
|
154
|
-
name: "tenant
|
|
167
|
+
name: "tenant deploy_release",
|
|
155
168
|
description: "Deploy a named release to a tenant",
|
|
156
|
-
usage: "xano tenant
|
|
169
|
+
usage: "xano tenant deploy_release <tenant_name> --release <name> [options]",
|
|
157
170
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
158
171
|
flags: [
|
|
159
172
|
{ name: "release", short: "r", type: "string", required: true, description: "Release name to deploy" },
|
|
160
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
173
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
174
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
161
175
|
],
|
|
162
176
|
examples: [
|
|
163
|
-
"xano tenant
|
|
164
|
-
"xano tenant
|
|
177
|
+
"xano tenant deploy_release my-tenant -r v1.0.0",
|
|
178
|
+
"xano tenant deploy_release production --release v2.0.0"
|
|
165
179
|
]
|
|
166
180
|
},
|
|
167
181
|
{
|
|
168
|
-
name: "tenant
|
|
182
|
+
name: "tenant deploy_platform",
|
|
169
183
|
description: "Deploy a platform version to a tenant",
|
|
170
|
-
usage: "xano tenant
|
|
184
|
+
usage: "xano tenant deploy_platform <tenant_name> --platform_id <id> [options]",
|
|
171
185
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
172
186
|
flags: [
|
|
173
|
-
{ name: "platform_id", type: "
|
|
174
|
-
{ name: "license", type: "string", required: false, description: "Path to license file" },
|
|
175
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
187
|
+
{ name: "platform_id", type: "integer", required: true, description: "Platform version ID to deploy" },
|
|
188
|
+
{ name: "license", short: "l", type: "string", required: false, description: "Path to a license override file to apply after deploy" },
|
|
189
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
190
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
176
191
|
],
|
|
177
|
-
examples: ["xano tenant
|
|
192
|
+
examples: ["xano tenant deploy_platform my-tenant --platform_id 5"]
|
|
178
193
|
},
|
|
179
194
|
// Environment Variables
|
|
180
195
|
{
|
|
181
|
-
name: "tenant
|
|
196
|
+
name: "tenant env list",
|
|
182
197
|
description: "List environment variable keys for a tenant",
|
|
183
|
-
usage: "xano tenant
|
|
198
|
+
usage: "xano tenant env list <tenant_name> [options]",
|
|
184
199
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
185
200
|
flags: [
|
|
186
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
201
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
202
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
187
203
|
],
|
|
188
|
-
examples: ["xano tenant
|
|
204
|
+
examples: ["xano tenant env list my-tenant"]
|
|
189
205
|
},
|
|
190
206
|
{
|
|
191
|
-
name: "tenant
|
|
207
|
+
name: "tenant env get",
|
|
192
208
|
description: "Get a single environment variable",
|
|
193
|
-
usage: "xano tenant
|
|
209
|
+
usage: "xano tenant env get <tenant_name> --name <key> [options]",
|
|
194
210
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
195
211
|
flags: [
|
|
196
|
-
{ name: "name", short: "n", type: "string", required: true, description: "
|
|
197
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
212
|
+
{ name: "name", short: "n", type: "string", required: true, description: "Environment variable name" },
|
|
213
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
214
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
198
215
|
],
|
|
199
|
-
examples: ["xano tenant
|
|
216
|
+
examples: ["xano tenant env get my-tenant -n API_KEY"]
|
|
200
217
|
},
|
|
201
218
|
{
|
|
202
|
-
name: "tenant
|
|
219
|
+
name: "tenant env set",
|
|
203
220
|
description: "Set an environment variable",
|
|
204
|
-
usage: "xano tenant
|
|
221
|
+
usage: "xano tenant env set <tenant_name> --name <key> --value <val> [options]",
|
|
205
222
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
206
223
|
flags: [
|
|
207
|
-
{ name: "name", short: "n", type: "string", required: true, description: "
|
|
208
|
-
{ name: "value", type: "string", required: true, description: "
|
|
209
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
224
|
+
{ name: "name", short: "n", type: "string", required: true, description: "Environment variable name" },
|
|
225
|
+
{ name: "value", type: "string", required: true, description: "Environment variable value" },
|
|
226
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
227
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
210
228
|
],
|
|
211
|
-
examples: ["xano tenant
|
|
229
|
+
examples: ["xano tenant env set my-tenant -n API_KEY --value sk-123"]
|
|
212
230
|
},
|
|
213
231
|
{
|
|
214
|
-
name: "tenant
|
|
232
|
+
name: "tenant env delete",
|
|
215
233
|
description: "Delete an environment variable",
|
|
216
|
-
usage: "xano tenant
|
|
234
|
+
usage: "xano tenant env delete <tenant_name> --name <key> [options]",
|
|
217
235
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
218
236
|
flags: [
|
|
219
|
-
{ name: "name", short: "n", type: "string", required: true, description: "
|
|
220
|
-
{ name: "
|
|
237
|
+
{ name: "name", short: "n", type: "string", required: true, description: "Environment variable name" },
|
|
238
|
+
{ name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
239
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
240
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
221
241
|
],
|
|
222
|
-
examples: ["xano tenant
|
|
242
|
+
examples: ["xano tenant env delete my-tenant -n OLD_KEY --force"]
|
|
223
243
|
},
|
|
224
244
|
{
|
|
225
|
-
name: "tenant
|
|
226
|
-
description: "Export all environment variables
|
|
227
|
-
usage: "xano tenant
|
|
245
|
+
name: "tenant env get_all",
|
|
246
|
+
description: "Export all environment variables to a YAML file (or stdout with --view)",
|
|
247
|
+
usage: "xano tenant env get_all <tenant_name> [options]",
|
|
228
248
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
229
249
|
flags: [
|
|
230
|
-
{ name: "file", type: "string", required: false, description: "Output file path (
|
|
231
|
-
{ name: "
|
|
250
|
+
{ name: "file", short: "f", type: "string", required: false, description: "Output file path (default: env_<tenant_name>.yaml)" },
|
|
251
|
+
{ name: "view", type: "boolean", required: false, description: "Print environment variables to stdout instead of saving to file" },
|
|
252
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
253
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
232
254
|
],
|
|
233
255
|
examples: [
|
|
234
|
-
"xano tenant
|
|
235
|
-
"xano tenant
|
|
256
|
+
"xano tenant env get_all my-tenant",
|
|
257
|
+
"xano tenant env get_all my-tenant -f ./env.yaml",
|
|
258
|
+
"xano tenant env get_all my-tenant --view"
|
|
236
259
|
]
|
|
237
260
|
},
|
|
238
261
|
{
|
|
239
|
-
name: "tenant
|
|
240
|
-
description: "Import all environment variables from YAML
|
|
241
|
-
usage: "xano tenant
|
|
262
|
+
name: "tenant env set_all",
|
|
263
|
+
description: "Import all environment variables from a YAML file",
|
|
264
|
+
usage: "xano tenant env set_all <tenant_name> [options]",
|
|
242
265
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
243
266
|
flags: [
|
|
244
|
-
{ name: "file", type: "string", required: false, description: "
|
|
245
|
-
{ name: "clean", type: "boolean", required: false, description: "Remove
|
|
246
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
267
|
+
{ name: "file", short: "f", type: "string", required: false, description: "Path to env file (default: env_<tenant_name>.yaml)" },
|
|
268
|
+
{ name: "clean", type: "boolean", required: false, description: "Remove the source file after successful upload" },
|
|
269
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
270
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
247
271
|
],
|
|
248
272
|
examples: [
|
|
249
|
-
"xano tenant
|
|
250
|
-
"xano tenant
|
|
273
|
+
"xano tenant env set_all my-tenant -f ./env.yaml",
|
|
274
|
+
"xano tenant env set_all my-tenant -f ./env.yaml --clean"
|
|
251
275
|
]
|
|
252
276
|
},
|
|
253
277
|
// Backups
|
|
254
278
|
{
|
|
255
|
-
name: "tenant
|
|
279
|
+
name: "tenant backup list",
|
|
256
280
|
description: "List backups for a tenant",
|
|
257
|
-
usage: "xano tenant
|
|
281
|
+
usage: "xano tenant backup list <tenant_name> [options]",
|
|
258
282
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
259
283
|
flags: [
|
|
260
|
-
{ name: "
|
|
284
|
+
{ name: "page", type: "integer", required: false, default: "1", description: "Page number for pagination" },
|
|
285
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
261
286
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
262
287
|
],
|
|
263
|
-
examples: ["xano tenant
|
|
288
|
+
examples: ["xano tenant backup list my-tenant"]
|
|
264
289
|
},
|
|
265
290
|
{
|
|
266
|
-
name: "tenant
|
|
291
|
+
name: "tenant backup create",
|
|
267
292
|
description: "Create a backup of a tenant",
|
|
268
|
-
usage: "xano tenant
|
|
293
|
+
usage: "xano tenant backup create <tenant_name> [options]",
|
|
269
294
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
270
295
|
flags: [
|
|
271
|
-
{ name: "
|
|
296
|
+
{ name: "description", short: "d", type: "string", required: false, description: "Backup description" },
|
|
297
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
298
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
272
299
|
],
|
|
273
|
-
examples: ["xano tenant
|
|
300
|
+
examples: ["xano tenant backup create my-tenant", 'xano tenant backup create my-tenant -d "pre-deploy snapshot"']
|
|
274
301
|
},
|
|
275
302
|
{
|
|
276
|
-
name: "tenant
|
|
303
|
+
name: "tenant backup export",
|
|
277
304
|
description: "Download a backup file",
|
|
278
|
-
usage: "xano tenant
|
|
305
|
+
usage: "xano tenant backup export <tenant_name> --backup_id <id> [options]",
|
|
279
306
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
280
307
|
flags: [
|
|
281
|
-
{ name: "backup_id", type: "
|
|
282
|
-
{ name: "output", type: "string", required: false, description: "
|
|
283
|
-
{ name: "
|
|
308
|
+
{ name: "backup_id", type: "integer", required: true, description: "Backup ID to export" },
|
|
309
|
+
{ name: "output", type: "string", required: false, description: "Output file path (defaults to ./tenant-{name}-backup-{backup_id}.tar.gz)" },
|
|
310
|
+
{ name: "format", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
|
|
311
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" }
|
|
284
312
|
],
|
|
285
|
-
examples: ["xano tenant
|
|
313
|
+
examples: ["xano tenant backup export my-tenant --backup_id 123 --output ./backup.tar.gz"]
|
|
286
314
|
},
|
|
287
315
|
{
|
|
288
|
-
name: "tenant
|
|
316
|
+
name: "tenant backup import",
|
|
289
317
|
description: "Import a backup file into a tenant",
|
|
290
|
-
usage: "xano tenant
|
|
318
|
+
usage: "xano tenant backup import <tenant_name> --file <path> [options]",
|
|
291
319
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
292
320
|
flags: [
|
|
293
|
-
{ name: "file", type: "string", required: true, description: "Path to backup file" },
|
|
294
|
-
{ name: "
|
|
321
|
+
{ name: "file", short: "f", type: "string", required: true, description: "Path to the backup file (.tar.gz)" },
|
|
322
|
+
{ name: "description", short: "d", type: "string", required: false, description: "Backup description" },
|
|
323
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
324
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
295
325
|
],
|
|
296
|
-
examples: ["xano tenant
|
|
326
|
+
examples: ["xano tenant backup import my-tenant -f ./backup.tar.gz"]
|
|
297
327
|
},
|
|
298
328
|
{
|
|
299
|
-
name: "tenant
|
|
329
|
+
name: "tenant backup restore",
|
|
300
330
|
description: "Restore a tenant from a backup",
|
|
301
|
-
usage: "xano tenant
|
|
331
|
+
usage: "xano tenant backup restore <tenant_name> --backup_id <id> [options]",
|
|
302
332
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
303
333
|
flags: [
|
|
304
|
-
{ name: "backup_id", type: "
|
|
305
|
-
{ name: "
|
|
334
|
+
{ name: "backup_id", type: "integer", required: true, description: "Backup ID to restore from" },
|
|
335
|
+
{ name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
336
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
337
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
306
338
|
],
|
|
307
|
-
examples: ["xano tenant
|
|
339
|
+
examples: ["xano tenant backup restore my-tenant --backup_id 123 --force"]
|
|
308
340
|
},
|
|
309
341
|
{
|
|
310
|
-
name: "tenant
|
|
342
|
+
name: "tenant backup delete",
|
|
311
343
|
description: "Delete a backup",
|
|
312
|
-
usage: "xano tenant
|
|
344
|
+
usage: "xano tenant backup delete <tenant_name> --backup_id <id> [options]",
|
|
313
345
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
314
346
|
flags: [
|
|
315
|
-
{ name: "backup_id", type: "
|
|
316
|
-
{ name: "force", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
317
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
|
|
347
|
+
{ name: "backup_id", type: "integer", required: true, description: "Backup ID to delete" },
|
|
348
|
+
{ name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
349
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
350
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
318
351
|
],
|
|
319
|
-
examples: ["xano tenant
|
|
352
|
+
examples: ["xano tenant backup delete my-tenant --backup_id 123 --force"]
|
|
320
353
|
},
|
|
321
354
|
// License
|
|
322
355
|
{
|
|
323
|
-
name: "tenant
|
|
324
|
-
description: "Get tenant license
|
|
325
|
-
usage: "xano tenant
|
|
356
|
+
name: "tenant license get",
|
|
357
|
+
description: "Get tenant license (YAML file by default, or stdout with --view)",
|
|
358
|
+
usage: "xano tenant license get <tenant_name> [options]",
|
|
326
359
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
327
360
|
flags: [
|
|
328
|
-
{ name: "
|
|
361
|
+
{ name: "file", short: "f", type: "string", required: false, description: "Output file path (default: license_<tenant_name>.yaml)" },
|
|
362
|
+
{ name: "view", type: "boolean", required: false, description: "Print license to stdout instead of saving to file" },
|
|
363
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
364
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
329
365
|
],
|
|
330
|
-
examples: ["xano tenant
|
|
366
|
+
examples: ["xano tenant license get my-tenant", "xano tenant license get my-tenant --view"]
|
|
331
367
|
},
|
|
332
368
|
{
|
|
333
|
-
name: "tenant
|
|
334
|
-
description: "Set
|
|
335
|
-
usage: "xano tenant
|
|
369
|
+
name: "tenant license set",
|
|
370
|
+
description: "Set/update the license for a tenant (from file or inline value)",
|
|
371
|
+
usage: "xano tenant license set <tenant_name> [options]",
|
|
336
372
|
args: [{ name: "tenant_name", required: true, description: "Tenant name" }],
|
|
337
373
|
flags: [
|
|
338
|
-
{ name: "
|
|
339
|
-
{ name: "
|
|
374
|
+
{ name: "file", short: "f", type: "string", required: false, description: "Path to license file (default: license_<tenant_name>.yaml). Exclusive with --value." },
|
|
375
|
+
{ name: "value", type: "string", required: false, description: "Inline license value. Exclusive with --file/--clean." },
|
|
376
|
+
{ name: "clean", type: "boolean", required: false, description: "Remove the source file after successful upload. Exclusive with --value." },
|
|
377
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
378
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
340
379
|
],
|
|
341
|
-
examples: [
|
|
380
|
+
examples: [
|
|
381
|
+
"xano tenant license set my-tenant -f ./license.yaml",
|
|
382
|
+
"xano tenant license set my-tenant --value tier2"
|
|
383
|
+
]
|
|
342
384
|
},
|
|
343
385
|
// Clusters
|
|
344
386
|
{
|
|
345
|
-
name: "tenant
|
|
387
|
+
name: "tenant cluster list",
|
|
346
388
|
description: "List all clusters",
|
|
347
|
-
usage: "xano tenant
|
|
389
|
+
usage: "xano tenant cluster list [options]",
|
|
348
390
|
flags: [
|
|
349
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
350
391
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
351
392
|
],
|
|
352
|
-
examples: ["xano tenant
|
|
393
|
+
examples: ["xano tenant cluster list", "xano tenant cluster list -o json"]
|
|
353
394
|
},
|
|
354
395
|
{
|
|
355
|
-
name: "tenant
|
|
396
|
+
name: "tenant cluster get",
|
|
356
397
|
description: "Get cluster details",
|
|
357
|
-
usage: "xano tenant
|
|
358
|
-
args: [{ name: "cluster_id", required: true, description: "Cluster ID" }],
|
|
398
|
+
usage: "xano tenant cluster get <cluster_id> [options]",
|
|
399
|
+
args: [{ name: "cluster_id", required: true, description: "Cluster ID (integer)" }],
|
|
359
400
|
flags: [
|
|
360
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
|
|
361
401
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
362
402
|
],
|
|
363
|
-
examples: ["xano tenant
|
|
403
|
+
examples: ["xano tenant cluster get 1"]
|
|
364
404
|
},
|
|
365
405
|
{
|
|
366
|
-
name: "tenant
|
|
406
|
+
name: "tenant cluster create",
|
|
367
407
|
description: "Create a new cluster",
|
|
368
|
-
usage: "xano tenant
|
|
408
|
+
usage: "xano tenant cluster create --name <name> [options]",
|
|
369
409
|
flags: [
|
|
370
410
|
{ name: "name", short: "n", type: "string", required: true, description: "Cluster name" },
|
|
371
|
-
{ name: "type", type: "string", required: false, description: "Cluster type:
|
|
411
|
+
{ name: "type", type: "string", required: false, default: "standard", description: "Cluster type: standard or run" },
|
|
372
412
|
{ name: "description", short: "d", type: "string", required: false, description: "Cluster description" },
|
|
373
|
-
{ name: "
|
|
374
|
-
{ name: "
|
|
413
|
+
{ name: "domain", type: "string", required: false, description: "Custom domain for the cluster" },
|
|
414
|
+
{ name: "credentials", type: "string", required: false, description: "Kubeconfig credentials (raw text). Mutually exclusive with --credentials_file." },
|
|
415
|
+
{ name: "credentials_file", type: "string", required: false, description: "Path to kubeconfig credentials file. Mutually exclusive with --credentials." },
|
|
416
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
375
417
|
],
|
|
376
418
|
examples: [
|
|
377
|
-
'xano tenant
|
|
378
|
-
'xano tenant
|
|
419
|
+
'xano tenant cluster create -n "Production Cluster"',
|
|
420
|
+
'xano tenant cluster create -n "K8s Cluster" --credentials_file ./kubeconfig.yaml'
|
|
379
421
|
]
|
|
380
422
|
},
|
|
381
423
|
{
|
|
382
|
-
name: "tenant
|
|
383
|
-
description: "Edit a cluster",
|
|
384
|
-
usage: "xano tenant
|
|
385
|
-
args: [{ name: "cluster_id", required: true, description: "Cluster ID" }],
|
|
424
|
+
name: "tenant cluster edit",
|
|
425
|
+
description: "Edit a cluster. All editable fields are required on this command.",
|
|
426
|
+
usage: "xano tenant cluster edit <cluster_id> --name <n> --description <d> --domain <domain> --type <t> [options]",
|
|
427
|
+
args: [{ name: "cluster_id", required: true, description: "Cluster ID (integer)" }],
|
|
386
428
|
flags: [
|
|
387
|
-
{ name: "name", short: "n", type: "string", required:
|
|
388
|
-
{ name: "description", short: "d", type: "string", required:
|
|
389
|
-
{ name: "domain", type: "string", required:
|
|
390
|
-
{ name: "
|
|
429
|
+
{ name: "name", short: "n", type: "string", required: true, description: "Cluster name" },
|
|
430
|
+
{ name: "description", short: "d", type: "string", required: true, description: "Cluster description" },
|
|
431
|
+
{ name: "domain", type: "string", required: true, description: "Custom domain" },
|
|
432
|
+
{ name: "type", type: "string", required: true, description: "Cluster type: standard or run" },
|
|
433
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
391
434
|
],
|
|
392
|
-
examples: ['xano tenant
|
|
435
|
+
examples: ['xano tenant cluster edit 1 -n "Updated" -d "desc" --domain example.com --type standard']
|
|
393
436
|
},
|
|
394
437
|
{
|
|
395
|
-
name: "tenant
|
|
438
|
+
name: "tenant cluster delete",
|
|
396
439
|
description: "Delete a cluster",
|
|
397
|
-
usage: "xano tenant
|
|
398
|
-
args: [{ name: "cluster_id", required: true, description: "Cluster ID" }],
|
|
440
|
+
usage: "xano tenant cluster delete <cluster_id> [options]",
|
|
441
|
+
args: [{ name: "cluster_id", required: true, description: "Cluster ID (integer)" }],
|
|
399
442
|
flags: [
|
|
400
|
-
{ name: "force", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
401
|
-
{ name: "
|
|
443
|
+
{ name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
|
|
444
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
402
445
|
],
|
|
403
|
-
examples: ["xano tenant
|
|
446
|
+
examples: ["xano tenant cluster delete 1 --force"]
|
|
404
447
|
},
|
|
405
448
|
{
|
|
406
|
-
name: "tenant
|
|
407
|
-
description: "Get cluster kubeconfig",
|
|
408
|
-
usage: "xano tenant
|
|
409
|
-
args: [{ name: "cluster_id", required: true, description: "Cluster ID" }],
|
|
449
|
+
name: "tenant cluster license get",
|
|
450
|
+
description: "Get cluster kubeconfig (saved to file by default, or stdout with --view)",
|
|
451
|
+
usage: "xano tenant cluster license get <cluster_id> [options]",
|
|
452
|
+
args: [{ name: "cluster_id", required: true, description: "Cluster ID (integer)" }],
|
|
410
453
|
flags: [
|
|
411
|
-
{ name: "
|
|
454
|
+
{ name: "file", short: "f", type: "string", required: false, description: "Output file path (default: kubeconfig_<cluster_id>.yaml)" },
|
|
455
|
+
{ name: "view", type: "boolean", required: false, description: "Print license to stdout instead of saving to file" },
|
|
456
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
412
457
|
],
|
|
413
|
-
examples: ["xano tenant
|
|
458
|
+
examples: ["xano tenant cluster license get 1", "xano tenant cluster license get 1 --view"]
|
|
414
459
|
},
|
|
415
460
|
{
|
|
416
|
-
name: "tenant
|
|
417
|
-
description: "Set cluster kubeconfig",
|
|
418
|
-
usage: "xano tenant
|
|
419
|
-
args: [{ name: "cluster_id", required: true, description: "Cluster ID" }],
|
|
461
|
+
name: "tenant cluster license set",
|
|
462
|
+
description: "Set cluster kubeconfig (from file or inline value)",
|
|
463
|
+
usage: "xano tenant cluster license set <cluster_id> [options]",
|
|
464
|
+
args: [{ name: "cluster_id", required: true, description: "Cluster ID (integer)" }],
|
|
420
465
|
flags: [
|
|
421
|
-
{ name: "file", type: "string", required: false, description: "Path to kubeconfig.
|
|
422
|
-
{ name: "
|
|
466
|
+
{ name: "file", short: "f", type: "string", required: false, description: "Path to kubeconfig file (default: kubeconfig_<cluster_id>.yaml). Mutually exclusive with --value." },
|
|
467
|
+
{ name: "value", type: "string", required: false, description: "Inline kubeconfig YAML value. Mutually exclusive with --file and --clean." },
|
|
468
|
+
{ name: "clean", type: "boolean", required: false, description: "Remove the source file after successful upload. Mutually exclusive with --value." },
|
|
469
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
423
470
|
],
|
|
424
|
-
examples: ["xano tenant
|
|
471
|
+
examples: ["xano tenant cluster license set 1 -f ./kubeconfig.yaml"]
|
|
472
|
+
},
|
|
473
|
+
// Tenant-scoped testing
|
|
474
|
+
{
|
|
475
|
+
name: "tenant unit_test list",
|
|
476
|
+
description: "List unit tests in a tenant",
|
|
477
|
+
usage: "xano tenant unit_test list -t <tenant_name> [options]",
|
|
478
|
+
flags: [
|
|
479
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
480
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
481
|
+
{ name: "obj-type", type: "string", required: false, description: "Filter by object type: function, query, middleware" },
|
|
482
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
483
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
484
|
+
],
|
|
485
|
+
examples: ["xano tenant unit_test list -t my-tenant", "xano tenant unit_test list -t my-tenant --branch dev"]
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: "tenant unit_test run",
|
|
489
|
+
description: "Run a single unit test in a tenant",
|
|
490
|
+
usage: "xano tenant unit_test run <unit_test_id> -t <tenant_name> [options]",
|
|
491
|
+
args: [{ name: "unit_test_id", required: true, description: "ID of the unit test to run" }],
|
|
492
|
+
flags: [
|
|
493
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
494
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
495
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
496
|
+
],
|
|
497
|
+
examples: ["xano tenant unit_test run 123 -t my-tenant"]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "tenant unit_test run_all",
|
|
501
|
+
description: "Run all unit tests in a tenant",
|
|
502
|
+
usage: "xano tenant unit_test run_all -t <tenant_name> [options]",
|
|
503
|
+
flags: [
|
|
504
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
505
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
506
|
+
{ name: "obj-type", type: "string", required: false, description: "Filter by object type: function, query, middleware" },
|
|
507
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
508
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
509
|
+
],
|
|
510
|
+
examples: ["xano tenant unit_test run_all -t my-tenant", "xano tenant unit_test run_all -t my-tenant --branch dev -o json"]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: "tenant workflow_test list",
|
|
514
|
+
description: "List workflow tests in a tenant",
|
|
515
|
+
usage: "xano tenant workflow_test list -t <tenant_name> [options]",
|
|
516
|
+
flags: [
|
|
517
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
518
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
519
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
520
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
521
|
+
],
|
|
522
|
+
examples: ["xano tenant workflow_test list -t my-tenant"]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
name: "tenant workflow_test run",
|
|
526
|
+
description: "Run a single workflow test in a tenant",
|
|
527
|
+
usage: "xano tenant workflow_test run <workflow_test_id> -t <tenant_name> [options]",
|
|
528
|
+
args: [{ name: "workflow_test_id", required: true, description: "ID of the workflow test to run (integer)" }],
|
|
529
|
+
flags: [
|
|
530
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
531
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
532
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
533
|
+
],
|
|
534
|
+
examples: ["xano tenant workflow_test run 456 -t my-tenant"]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: "tenant workflow_test run_all",
|
|
538
|
+
description: "Run all workflow tests in a tenant",
|
|
539
|
+
usage: "xano tenant workflow_test run_all -t <tenant_name> [options]",
|
|
540
|
+
flags: [
|
|
541
|
+
{ name: "tenant", short: "t", type: "string", required: true, description: "Tenant name" },
|
|
542
|
+
{ name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
|
|
543
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
544
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
545
|
+
],
|
|
546
|
+
examples: ["xano tenant workflow_test run_all -t my-tenant --branch dev -o json"]
|
|
425
547
|
}
|
|
426
548
|
],
|
|
427
549
|
workflows: [
|
|
@@ -429,44 +551,54 @@ Tenants are identified by their **name** (not numeric IDs).`,
|
|
|
429
551
|
name: "Deploy Release to Tenant",
|
|
430
552
|
description: "Create a release and deploy it to a tenant",
|
|
431
553
|
steps: [
|
|
432
|
-
"Create a release from a branch: `xano release
|
|
433
|
-
"Deploy to tenant: `xano tenant
|
|
434
|
-
"Verify tenant: `xano tenant
|
|
554
|
+
"Create a release from a branch: `xano release create -n v1.0.0 -b dev`",
|
|
555
|
+
"Deploy to tenant: `xano tenant deploy_release my-tenant -r v1.0.0`",
|
|
556
|
+
"Verify tenant: `xano tenant get my-tenant`"
|
|
435
557
|
],
|
|
436
|
-
example: `xano release
|
|
437
|
-
xano tenant
|
|
438
|
-
xano tenant
|
|
558
|
+
example: `xano release create -n v1.0.0 -b dev
|
|
559
|
+
xano tenant deploy_release my-tenant -r v1.0.0
|
|
560
|
+
xano tenant get my-tenant`
|
|
439
561
|
},
|
|
440
562
|
{
|
|
441
563
|
name: "Tenant Environment Setup",
|
|
442
564
|
description: "Create a tenant and configure its environment",
|
|
443
565
|
steps: [
|
|
444
|
-
'Create tenant: `xano tenant
|
|
445
|
-
"Set environment variables: `xano tenant
|
|
446
|
-
"Set more vars: `xano tenant
|
|
447
|
-
"Deploy a release: `xano tenant
|
|
448
|
-
"Verify env: `xano tenant
|
|
566
|
+
'Create tenant: `xano tenant create "My Tenant"`',
|
|
567
|
+
"Set environment variables: `xano tenant env set my-tenant -n DB_HOST --value db.example.com`",
|
|
568
|
+
"Set more vars: `xano tenant env set my-tenant -n API_KEY --value sk-123`",
|
|
569
|
+
"Deploy a release: `xano tenant deploy_release my-tenant -r v1.0.0`",
|
|
570
|
+
"Verify env: `xano tenant env list my-tenant`"
|
|
449
571
|
],
|
|
450
|
-
example: `xano tenant
|
|
451
|
-
xano tenant
|
|
452
|
-
xano tenant
|
|
453
|
-
xano tenant
|
|
572
|
+
example: `xano tenant create "My Tenant"
|
|
573
|
+
xano tenant env set my-tenant -n DB_HOST --value db.example.com
|
|
574
|
+
xano tenant env set my-tenant -n API_KEY --value sk-123
|
|
575
|
+
xano tenant deploy_release my-tenant -r v1.0.0`
|
|
454
576
|
},
|
|
455
577
|
{
|
|
456
578
|
name: "Backup and Restore",
|
|
457
579
|
description: "Create, export, and restore tenant backups",
|
|
458
580
|
steps: [
|
|
459
|
-
"Create a backup: `xano tenant
|
|
460
|
-
"List backups: `xano tenant
|
|
461
|
-
"Export backup: `xano tenant
|
|
462
|
-
"Restore if needed: `xano tenant
|
|
463
|
-
],
|
|
464
|
-
example: `xano tenant
|
|
465
|
-
xano tenant
|
|
466
|
-
xano tenant
|
|
581
|
+
"Create a backup: `xano tenant backup create my-tenant`",
|
|
582
|
+
"List backups: `xano tenant backup list my-tenant`",
|
|
583
|
+
"Export backup: `xano tenant backup export my-tenant --backup_id 123 --output ./backup.tar.gz`",
|
|
584
|
+
"Restore if needed: `xano tenant backup restore my-tenant --backup_id 123`"
|
|
585
|
+
],
|
|
586
|
+
example: `xano tenant backup create my-tenant
|
|
587
|
+
xano tenant backup list my-tenant
|
|
588
|
+
xano tenant backup export my-tenant --backup_id 123 --output ./backup.tar.gz
|
|
467
589
|
|
|
468
590
|
# To restore:
|
|
469
|
-
xano tenant
|
|
591
|
+
xano tenant backup restore my-tenant --backup_id 123 --force`
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
name: "Run Tenant Tests in CI",
|
|
595
|
+
description: "Run unit and workflow tests against a specific tenant",
|
|
596
|
+
steps: [
|
|
597
|
+
"Run all unit tests: `xano tenant unit_test run_all -t my-tenant -o json`",
|
|
598
|
+
"Run all workflow tests: `xano tenant workflow_test run_all -t my-tenant -o json`"
|
|
599
|
+
],
|
|
600
|
+
example: `xano tenant unit_test run_all -t my-tenant -o json
|
|
601
|
+
xano tenant workflow_test run_all -t my-tenant -o json`
|
|
470
602
|
}
|
|
471
603
|
]
|
|
472
604
|
};
|