Building only inside the Xano product today? Ephemeral tenants are created from the CLI, so you’ll need it set up first. See Build from your Local Agent to get started with agentic development — installing the CLI, connecting the Developer MCP, and pulling your workspace — then come back here.
Ephemeral tenant vs. sandboxBoth give you a database-isolated place to push and test changes, but they solve different problems:
Use a sandbox for personal, review-driven iteration; use ephemeral tenants when you need several disposable environments at once or an environment that tears itself down.
Use Cases
Agentic development
Give an AI coding agent somewhere to push, run, and verify its work — several agents at once, each in its own tenant, none of them touching your live workspace.
CI/CD and PR previews
Create a fresh environment per pipeline run or pull request, test against real records and environment variables, then share a read-only preview link. It expires on its own, so there is no cleanup step.
Experiments and PoCs
Build a proof of concept locally, then push it to a real running environment to see whether the idea holds. The timer deletes it when you’re done — nothing to tear down, nothing left behind in your workspace.
Create
Create an ephemeral tenant with a display name. The workspace is required — pass-w or set one in your profile.
The command prints the new tenant’s name and expiry. Use
-o json for the full response.
List
List the ephemeral tenants in the current workspace, or across every workspace you can access with--global.
Get & Edit
Retrieve one tenant’s details, or update its display name and description.edit changes only the display name (--display) and description (-d); it does not extend the expiry. Both commands accept -w and -o.
Pull & Push
Pull an ephemeral tenant’s content down as local XanoScript files, or push local files up to it. This works the same way as workspace pull & push, using the multidoc format — but targets the ephemeral tenant. Unlike a regular tenant, an ephemeral tenant does accept a direct push.Pull
Push
By default, only changed files are pushed (partial mode). Push shows a preview and prompts for confirmation before applying anything — always run--dry-run first to inspect the change.
Impersonate
Open the ephemeral tenant’s dashboard in your browser, or print the URL for scripting.Static Hosting
An ephemeral tenant can host static sites, scoped to that tenant. These commands mirrorxano static_host but take the tenant name as the first argument.
Static hosting is currently available for local tenants. Remote (tier2/tier3) tenants are not yet supported and will return an error.
Delete
Delete an ephemeral tenant immediately, rather than waiting for it to expire. Add-f to skip the confirmation prompt (for CI/CD).
Typical Workflow
A common pattern for standing up a disposable environment, verifying it, and sharing a preview:1
Create the environment
Note the tenant name it returns — you’ll use it below.
2
Push your code and wait for deploy
3
Test against the live environment
The tenant is now serving real API requests. Point your test suite or API checks at its endpoints, exactly as you would any deployed environment.
4
Share a read-only preview
Post the returned URL for reviewers. The tenant tears itself down when its timer expires — no cleanup step required.