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
Use-o json for the full JSON response.
Get Workspace Details
This returns details for the workspace in your current profile. To get a specific workspace:Create a Workspace
| Argument / Flag | Description |
|---|---|
name | Workspace name (required, positional) |
-d | Description |
-o | Output format: summary or json |
Edit a Workspace
You can also toggle settings: Use--no-swagger or --no-require-token to disable those options.
Delete a Workspace
Add-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
The output indicates which branch is(live) and which are (backup):
Get Branch Details
Create a Branch
By default, new branches are cloned fromv1. To clone from a different source:
| 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
The
v1 branch cannot be renamed.Set a Branch Live
Promote a branch so that it serves all live API traffic: You’ll be asked to confirm before the switch takes effect. Use-f to skip confirmation.
Delete a Branch
Add-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.