Skip to main content
This page lists every Xano CLI command with its flags and usage. For detailed guides on each topic, see the linked pages.

Global Flags

These flags are available on all commands:
FlagEnv VariableDescription
-p, --profileXANO_PROFILEUse a specific profile instead of the default
-v, --verboseXANO_VERBOSEShow HTTP request/response details for troubleshooting

xano auth

Browser-based authentication. Opens your browser to log in and creates a profile.
xano auth
xano auth -o https://my-xano.my-domain.com
xano auth -o https://my-xano.my-domain.com --insecure
FlagDescription
-o, --originAccount/environment URL (for self-hosted or non-production)
-k, --insecureSkip TLS certificate verification
See Get Started — Authentication.

xano update

Update the CLI to the latest version.
xano update
xano update --check
FlagDescription
--checkCheck for updates without installing

xano profile

Manage CLI profiles. See Profiles for full documentation.
CommandDescription
xano profile wizardInteractive token-based profile setup
xano profile create <name>Create a profile non-interactively
xano profile edit <name>Update fields on an existing profile
xano profile listList all profiles (-d for details)
xano profile getPrint the default profile name
xano profile set <name>Set the default profile
xano profile meVerify the current profile against the Xano API
xano profile tokenPrint the access token for the default profile
xano profile workspacePrint the workspace ID for the default profile
xano profile workspace setInteractively change the workspace on a profile
xano profile delete <name>Delete a profile (-f to skip confirmation)

xano profile wizard

xano profile wizard
xano profile wizard -n production -o https://my-xano.my-domain.com
FlagDescription
-nProfile name
-oAccount/environment origin URL

xano profile create

xano profile create my-profile -t TOKEN -i https://instance.xano.io -w WORKSPACE_ID -b BRANCH --default
FlagDescription
-tAccess token (required)
-iInstance origin URL (required)
-aAccount origin URL (for self-hosted)
-wWorkspace ID
-bBranch label
-k, --insecureSkip TLS certificate verification
--defaultSet as the default profile

xano profile edit

xano profile edit my-profile -w NEW_WORKSPACE_ID
xano profile edit my-profile --remove-branch
xano profile edit my-profile --insecure
FlagDescription
-tAccess token
-iInstance origin URL
-aAccount origin URL
-wWorkspace ID
-bBranch label
-k, --insecureEnable insecure mode
--remove-branchClear the branch
--remove-insecureDisable insecure mode
--defaultSet as default

xano workspace

Manage workspaces. See Workspaces & Branches for full documentation.
CommandDescription
xano workspace listList all workspaces
xano workspace get [id]Get workspace details
xano workspace create <name>Create a workspace
xano workspace edit <id>Edit a workspace
xano workspace delete <id>Delete a workspace (-f to skip confirmation)
xano workspace pull <dir>Pull workspace to local files
xano workspace push <dir>Push local files to workspace
xano workspace git pull <dir>Pull XanoScript from a Git repo

xano workspace pull

xano workspace pull ./my-workspace
xano workspace pull ./my-workspace -b v2-feature --env --records --draft
FlagDescription
-bBranch name (overrides profile)
-wWorkspace ID (overrides profile)
--envInclude environment variables
--recordsInclude database records
--draftInclude draft versions of resources
See Push & Pull — Pull.

xano workspace push

xano workspace push ./my-workspace
xano workspace push ./my-workspace --dry-run
xano workspace push ./my-workspace --force --delete --no-sync-guids
FlagDescription
-bBranch name (overrides profile)
-wWorkspace ID (overrides profile)
--recordsInclude table records
--envInclude environment variables
--dry-runShow preview then exit without applying
--forceSkip preview and confirmation prompt
--partialPush without requiring a workspace block
--deleteDelete remote objects not present locally
--no-sync-guidsSkip writing server-assigned GUIDs back to local files
--truncateTruncate all table records before importing
See Push & Pull — Push.

xano workspace git pull

xano workspace git pull ./output -r https://github.com/owner/repo
xano workspace git pull ./output -r https://github.com/owner/repo -b main --path src/
FlagDescription
-rGit repository URL (required)
-bBranch, tag, or ref
-tPersonal access token for private repos
--pathSubdirectory within the repo
See Push & Pull — Pull from Git.

xano workspace create

xano workspace create "My Workspace" -d "Description"
FlagDescription
-dDescription
-oOutput format: summary or json

xano workspace edit

xano workspace edit WORKSPACE_ID -n "New Name" -d "New description"
xano workspace edit WORKSPACE_ID --swagger --require-token
FlagDescription
-nWorkspace name
-dDescription
--swagger / --no-swaggerEnable/disable Swagger
--require-token / --no-require-tokenEnable/disable token requirement

xano branch

Manage workspace branches. See Workspaces & Branches for full documentation.
CommandDescription
xano branch list [workspace_id]List all branches
xano branch get <label>Get branch details
xano branch createCreate a new branch
xano branch edit <label>Edit a branch
xano branch set_live <label>Promote a branch to live
xano branch delete <label>Delete a branch (-f to skip confirmation)

xano branch create

xano branch create -l v2-feature
xano branch create -l v3-hotfix -s v2-feature -d "Hotfix branch" -c "#FF5733"
FlagDescription
-lBranch label (required)
-sSource branch to clone from (default: v1)
-dDescription
-cColor hex code
-wWorkspace ID

xano branch edit

xano branch edit v2-feature -l v2-ready -d "Ready for review" -c "#00FF00"
FlagDescription
-lNew branch label
-dDescription
-cColor hex code

xano release

Manage versioned releases. See Releases for full documentation.
CommandDescription
xano release listList all releases
xano release get <name>Get release details
xano release createCreate a release
xano release edit <name>Edit a release
xano release delete <name>Delete a release (-f to skip confirmation)
xano release export <name>Export release as .tar.gz
xano release importImport a release file
xano release pull <dir>Pull release as local XanoScript
xano release push <dir>Push local files as a new release

xano release create

xano release create -n "v1.0" -b v1 -d "Initial release"
FlagDescription
-nRelease name (required)
-bBranch to create from (required)
-dDescription
--hotfixMark as a hotfix release
--table-idsComma-separated table IDs to include
-wWorkspace ID

xano release pull

xano release pull ./my-release -r v1.0
FlagDescription
-rRelease name (required)
--envInclude environment variables
--recordsInclude database records
-wWorkspace ID

xano release push

xano release push ./my-release -n "v2.0"
FlagDescription
-nRelease name (required)
-dDescription
--hotfixMark as a hotfix release
--no-recordsSkip importing records
--no-envSkip environment variables
-wWorkspace ID

xano release export

xano release export v1.0
xano release export v1.0 --output ./backups/release.tar.gz
FlagDescription
--outputCustom output file path

xano release import

xano release import --file ./my-release.tar.gz
FlagDescription
--filePath to release .tar.gz file (required)

xano tenant

Manage tenants, deployments, and backups. See Tenants for full documentation.
CommandDescription
xano tenant listList all tenants
xano tenant get <name>Get tenant details
xano tenant create <display>Create a tenant
xano tenant edit <name>Edit a tenant
xano tenant delete <name>Delete a tenant (-f to skip confirmation)
xano tenant impersonate <name>Open tenant dashboard in browser
xano tenant pull <dir>Pull tenant as local XanoScript
xano tenant push <dir>Push local files to a tenant
xano tenant deploy_release <name>Deploy a release to a tenant
xano tenant deploy_platform <name>Deploy a platform to a tenant
xano tenant license get <name>Get tenant license
xano tenant license set <name>Set tenant license

xano tenant create

xano tenant create "My Tenant" --license tier2 --cluster_id 5
FlagDescription
-dDescription
--licenseLicense tier: tier1 (default), tier2, tier3
--cluster_idCluster ID (required for tier2/tier3)
--platform_idPlatform ID
--domainCustom domain
--ephemeralMark as ephemeral
--ingress / --no-ingressEnable/disable ingress
--tasks / --no-tasksEnable/disable background tasks
-wWorkspace ID

xano tenant pull

xano tenant pull ./my-tenant -t TENANT_NAME
FlagDescription
-tTenant name (required)
--envInclude environment variables
--recordsInclude database records
--draftInclude draft versions
-wWorkspace ID

xano tenant push

xano tenant push ./my-tenant -t TENANT_NAME
FlagDescription
-tTenant name (required)
--no-recordsSkip importing records
--no-envSkip environment variables
--truncateTruncate records before importing
-wWorkspace ID

Tenant Environment Variables

CommandDescription
xano tenant env list <name>List env var keys
xano tenant env get <name> --name KEYGet a single env var
xano tenant env set <name> --name KEY --value VALSet an env var
xano tenant env delete <name> --name KEYDelete an env var
xano tenant env get_all <name>Export all env vars (--file for YAML)
xano tenant env set_all <name>Import env vars from YAML (--file, --clean)

Tenant Backups

CommandDescription
xano tenant backup list <name>List backups (--page for pagination)
xano tenant backup create <name>Create a backup
xano tenant backup restore <name>Restore from backup (--backup_id, -f)
xano tenant backup export <name>Export backup as .tar.gz (--backup_id, --output)
xano tenant backup import <name>Import a backup file (--file)
xano tenant backup delete <name>Delete a backup (--backup_id, -f)

Tenant Clusters

CommandDescription
xano tenant cluster listList clusters
xano tenant cluster get <id>Get cluster details
xano tenant cluster createCreate a cluster (--name, --credentials_file)
xano tenant cluster edit <id>Edit a cluster
xano tenant cluster delete <id>Delete a cluster (-f)
xano tenant cluster license get <id>Get cluster kubeconfig
xano tenant cluster license set <id>Set cluster kubeconfig (--file)

xano platform

View platform versions. See Platforms for full documentation.
CommandDescription
xano platform listList all platforms
xano platform get <id>Get platform details

xano unit_test

Run unit tests. See Testing for full documentation.
CommandDescription
xano unit_test listList unit tests (--branch, --obj-type)
xano unit_test run <id>Run a single unit test
xano unit_test run_allRun all unit tests (--branch, --obj-type)

xano workflow_test

Run workflow tests. See Testing for full documentation.
CommandDescription
xano workflow_test listList workflow tests (-b for branch)
xano workflow_test get <id>Get test details (--include-draft, -o)
xano workflow_test run <id>Run a single test
xano workflow_test run_allRun all tests (-b for branch)
xano workflow_test delete <id>Delete a test (-f)

xano function

Manage custom functions.
CommandDescription
xano function listList all custom functions
xano function get <id>Get function details
xano function run <id>Run a function

xano static_host

Manage static file hosting.
CommandDescription
xano static_host listList static hosts
xano static_host get <id>Get static host details
xano static_host upload <dir>Upload files to a static host