Skip to main content
Tenants are isolated environments within a workspace, each with their own infrastructure, data, and configuration. The CLI provides full lifecycle management for tenants and their backups.
Tenant commands require a workspace ID, either from your profile or via the -w flag. Most tenant commands identify tenants by their name (e.g., t1234-abcd-xyz1), not a numeric ID.

CRUD

List Tenants

Each tenant shows its name, state, license, and — when available — the cluster, platform, and release it is running on. Use -o json for the full JSON response.

Get Tenant Details

The output includes the tenant’s name, state, license, domain, cluster, release, platform, version, and deployment details.

Create a Tenant

Edit a Tenant

Additional flags: --domain, --proxy, --[no-]ingress, --[no-]tasks, --[no-]rbac.

Delete a Tenant

Add -f to skip the confirmation prompt.
Deleting a tenant destroys all associated infrastructure and data. This cannot be undone.

Impersonate

Open a tenant’s dashboard in your browser, or retrieve the impersonation URL for scripting. Print the URL without opening the browser: Output credentials as JSON:

Pull & Push

You can pull a tenant’s content down as local XanoScript files, or push local files to a tenant. This works the same way as workspace pull & push, but targets a specific tenant.

Pull a Tenant

Direct tenant push is not supported. To deploy changes to a tenant, create a release and deploy it with xano tenant deploy_release, or use the sandbox workflow (xano sandbox push).

Deployments

Deploy a Release

Deploy a release to a tenant by name:

Deploy a Platform


Tenant License


Tenant Environment Variables

Manage environment variables on a per-tenant basis.

List Env Var Keys

Get a Single Env Var

Set an Env Var

Delete an Env Var

Export All Env Vars

Export all environment variables to a YAML file:

Import All Env Vars

Import environment variables from a YAML file (replaces existing):

Tenant Backups

List Backups

Use --page for pagination.

Create a Backup

Restore from a Backup

You’ll be asked to confirm before the restore proceeds. Use -f to skip confirmation.
Restoring a backup replaces the current tenant data entirely.

Export a Backup

Download a backup as a .tar.gz file: Specify a custom output path with --output:

Import a Backup

Import a backup file into a tenant:

Delete a Backup

Add -f to skip the confirmation prompt.

Tenant Snapshots

Snapshots are instant clones of a tenant’s database — designed for quick rollback around a deployment, where backups capture the whole tenant (database and logic) for long-term retention. A snapshot is never written back to the tenant: you swap the tenant to a snapshot, which leaves the current live database in place so you can swap back at any time. This is the CLI equivalent of the Snapshots feature in the Tenant Center.
Swapping briefly drops the tenant’s live database connections while the copy runs.

Create a Snapshot

The --label (or -l) is optional and is appended to the snapshot’s description. The command returns the snapshot’s database name, e.g. TENANT_NAME_bk_20260603_203614 — you’ll pass that name to swap and delete.

List Snapshots

Snapshots are tagged ORIGINAL (the tenant’s initial database) and LIVE (the database the tenant currently serves).

Swap to a Snapshot

Repoint the tenant’s live database to a snapshot: You’ll be asked to confirm before the swap proceeds. Use -f to skip confirmation.
Rolling back a swap: the swap leaves your previous live database untouched, so you can always swap back. To roll back, run swap again with --snapshot set to the original database name (the snapshot tagged ORIGINAL, which is the tenant name itself):

Delete a Snapshot

Add -f to skip the confirmation prompt.
Deleting a snapshot permanently drops that snapshot database and cannot be undone. The live and original databases cannot be deleted.

Clusters

Manage tenant clusters for multi-tenant deployments.

List Clusters

Get Cluster Details

Create a Cluster

Edit a Cluster

Delete a Cluster

Add -f to skip the confirmation prompt.

Cluster License (Kubeconfig)