Workspaces
A workspace is an isolated backend environment in Xano containing your database tables, APIs, functions, tasks, and more. The CLI provides full workspace management.Most workspace commands use the workspace ID stored in your profile. You can override it per-command with
-w WORKSPACE_ID.List Workspaces
Terminal
-o json for the full JSON response.
Get Workspace Details
Terminal
Terminal
Create a Workspace
Terminal
| Argument / Flag | Description |
|---|---|
name | Workspace name (required, positional) |
-d | Description |
-o | Output format: summary or json |
Edit a Workspace
Terminal
Terminal
--no-swagger or --no-require-token to disable those options.
Delete a Workspace
Terminal
-f to skip the confirmation prompt.
Branches
Branches are versions of a workspace’s business logic. They let you develop and test changes without affecting the live environment. Every workspace starts with av1 branch.
List Branches
Terminal
(live) and which are (backup):
Terminal
Get Branch Details
Terminal
Create a Branch
Terminal
v1. To clone from a different source:
Terminal
| Flag | Description |
|---|---|
-l | Branch label (required) |
-s | Source branch to clone from (default: v1) |
-d | Description |
-c | Color hex code (e.g., #FF5733) |
-w | Workspace ID |
Edit a Branch
Terminal
The
v1 branch cannot be renamed.Set a Branch Live
Promote a branch so that it serves all live API traffic:Terminal
-f to skip confirmation.
Delete a Branch
Terminal
-f to skip confirmation.
The
v1 branch and the currently live branch cannot be deleted. To delete a branch that is currently live, first set a different branch live with xano branch set_live <other-branch>, then delete the original branch.Working with Profiles and Branches
Your profile can store a default branch, so you don’t need to specify it on every command. To update which branch your profile targets:Terminal
Terminal