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
xano update --beta
FlagDescription
--checkCheck for updates without installing
--betaUpdate to the latest beta version

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
-k, --insecureSkip TLS certificate verification

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
--insecureEnable insecure mode
--remove-branchClear the branch
--remove-insecureDisable insecure mode
--remove-workspaceClear the workspace
--defaultSet as default

xano workspace

Manage workspaces. See Workspaces & Branches for full documentation.
CommandDescription
xano workspace listList all workspaces (--latest to sort newest first)
xano workspace getGet workspace details (use -w to override profile workspace)
xano workspace create <name>Create a workspace
xano workspace editEdit a workspace (use -w to override profile workspace)
xano workspace deleteDelete a workspace (use -w to override profile workspace; -f to skip confirmation)
xano workspace pull <dir>Pull workspace multidoc to local files
xano workspace push <dir>Push local files as multidoc to workspace
xano workspace git pull <dir>Pull XanoScript from a Git repo

xano workspace pull

xano workspace pull -d ./my-workspace
xano workspace pull -d ./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 -d ./my-workspace
xano workspace push -d ./my-workspace --dry-run
xano workspace push -d ./my-workspace --sync --delete --force
xano workspace push -d ./my-workspace -i "function/*"
xano workspace push -d ./my-workspace -i "function/*" -e "**/test*"
FlagDescription
-bBranch name (overrides profile)
-wWorkspace ID (overrides profile)
-i, --includeGlob pattern to include files (supports multiple -i flags)
-e, --excludeGlob pattern to exclude files (supports multiple -e flags)
--syncFull push — send all files, not just changed ones (required for --delete)
--deleteDelete remote objects not present locally (requires --sync)
--recordsInclude table records
--envInclude environment variables
--dry-runShow preview then exit without applying
--forceSkip preview and confirmation prompt; override critical error blocking
--no-guidsSkip writing server-assigned GUIDs back to local files
--no-transactionSkip wrapping the import in a database transaction
--truncateTruncate all table records before importing
See Push & Pull — Push.

xano workspace git pull

xano workspace git pull -d ./output -r https://github.com/owner/repo
xano workspace git pull -d ./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 -n "New Name" -d "New description"
xano workspace edit -w WORKSPACE_ID -n "New Name" -d "New description"
xano workspace edit -w WORKSPACE_ID --swagger --require-token
Workspace ID falls back to your profile workspace when -w is omitted.
FlagDescription
-wWorkspace ID (overrides profile)
-nWorkspace name
-dDescription
--swagger / --no-swaggerEnable/disable Swagger
--require-token / --no-require-tokenEnable/disable token requirement
--allow-push / --no-allow-pushEnable/disable direct CLI push to this workspace
-oOutput format: summary or json

xano branch

Manage workspace branches. See Workspaces & Branches for full documentation.
CommandDescription
xano branch listList all branches (use -w to override profile workspace)
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 v2-feature
xano branch create v3-hotfix -s v2-feature -d "Hotfix branch" -c "#FF5733"
Argument / FlagDescription
labelBranch label (required, positional)
-sSource branch to clone from (default: v1)
-dDescription
-cColor hex code
-wWorkspace ID
-oOutput format: summary or json

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 create <name>Create 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 deploy <name>Deploy a release to a new branch (-f to skip confirmation)

xano release create

xano release create "v1.0" -b v1 -d "Initial release"
xano release create "v1.1-hotfix" -b v1 --hotfix -d "Critical fix"
Argument / FlagDescription
nameRelease name (required, positional)
-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 -d ./my-release -r v1.0
FlagDescription
-rRelease name (required)
--envInclude environment variables
--recordsInclude database records
-wWorkspace ID

xano release push

xano release push -d ./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 release deploy

xano release deploy "v1.0"
xano release deploy "v1.0" --force
xano release deploy "v1.0" -b "restore-v1" --set_live
xano release deploy "v1.0" -w 40 -o json --force
Prompts for confirmation before deploying. Use -f / --force to skip the prompt. --set_live is off by default — omit it to deploy without promoting the new branch.
FlagDescription
-bBranch label for the new branch (defaults to the release branch name)
--set_liveSet the new branch as live (default: off)
-f, --forceSkip the confirmation prompt
-wWorkspace ID
-oOutput format: summary or json

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 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 (--file, --view)
xano tenant license set <name>Set tenant license (--file, --value)

xano tenant create

xano tenant create "My Tenant" --type tier2 --cluster_id 5
xano tenant create "My Tenant" --type tier2 --cluster_id 5 --license ./license.yaml
FlagDescription
-dDescription
--typeTenant type: tier1 (default), tier2, tier3
--cluster_idCluster ID (required for tier2/tier3)
-l, --licensePath to a license override file to apply during creation
--platform_idPlatform ID
--domainCustom domain
--ingress / --no-ingressEnable/disable ingress (default: enabled)
--tasks / --no-tasksEnable/disable background tasks (default: enabled)
-wWorkspace ID
-oOutput format: summary or json

xano tenant pull

xano tenant pull -d ./my-tenant -t TENANT_NAME
FlagDescription
-tTenant name (required)
--envInclude environment variables
--recordsInclude database records
--draftInclude draft versions
-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 or --credentials)
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 sandbox

Manage your sandbox environment — an isolated copy of your workspace for testing changes before promoting them. See Sandbox for full documentation.
CommandDescription
xano sandbox getGet your sandbox (creates one if it doesn’t exist)
xano sandbox pull <dir>Pull sandbox content as local XanoScript
xano sandbox push <dir>Push local files to your sandbox
xano sandbox reviewOpen sandbox in browser to review and promote changes
xano sandbox resetReset sandbox (clears all data and drafts)
xano sandbox deleteDelete sandbox entirely

xano sandbox pull

xano sandbox pull -d ./my-sandbox
xano sandbox pull -d ./my-sandbox --env --records --draft
FlagDescription
--envInclude environment variables
--recordsInclude database records
--draftInclude draft versions

xano sandbox push

xano sandbox push -d ./my-sandbox
xano sandbox push -d ./my-sandbox --records --env
FlagDescription
--envInclude environment variables in import
--recordsInclude records in import
--truncateTruncate all table records before importing
--no-transactionSkip wrapping the import in a database transaction

xano sandbox review

xano sandbox review
xano sandbox review --url-only
FlagDescription
-u, --url-onlyPrint the URL without opening the browser
-oOutput format: summary or json

xano sandbox reset

xano sandbox reset
xano sandbox reset -f
FlagDescription
-fSkip confirmation prompt

xano sandbox delete

xano sandbox delete
xano sandbox delete -f
FlagDescription
-fSkip confirmation prompt

Sandbox Environment Variables

CommandDescription
xano sandbox env listList env var keys
xano sandbox env get --name KEYGet a single env var
xano sandbox env set --name KEY --value VALSet an env var
xano sandbox env delete --name KEYDelete an env var
xano sandbox env get_allExport all env vars (--file for YAML, --view for stdout)
xano sandbox env set_allImport env vars from YAML (--file, --clean)

Sandbox License

CommandDescription
xano sandbox license getGet sandbox license (--file, --view)
xano sandbox license setSet sandbox license (--file, --value)

Sandbox Tests

CommandDescription
xano sandbox unit_test listList unit tests (--branch, --obj-type)
xano sandbox unit_test run <id>Run a single unit test
xano sandbox unit_test run_allRun all unit tests (--branch, --obj-type)
xano sandbox workflow_test listList workflow tests (-b for branch)
xano sandbox workflow_test run <id>Run a single workflow test
xano sandbox workflow_test run_allRun all workflow tests (-b for branch)

xano function

Manage custom functions.
CommandDescription
xano function listList all custom functions
xano function get <id>Get function details
xano function createCreate a new function
xano function edit <id>Edit an existing function

xano function list

xano function list
xano function list --include_draft --page 2 --per_page 10
FlagDescription
--include_draftInclude draft functions
--include_xanoscriptInclude XanoScript in response
--sortSort field (default: created_at)
--orderSort order: asc or desc (default: desc)
--pagePage number (default: 1)
--per_pageResults per page (default: 50)
-wWorkspace ID
-oOutput format: summary or json

xano function get

xano function get FUNCTION_ID
xano function get FUNCTION_ID -o xs
FlagDescription
--include_draftInclude draft version
--include_xanoscriptInclude XanoScript in response
-wWorkspace ID
-oOutput format: summary, json, or xs

xano function create

xano function create -f ./my-function.xs
cat my-function.xs | xano function create -s
FlagDescription
-f, --filePath to file containing XanoScript code
-s, --stdinRead XanoScript from stdin
-e, --editOpen file in editor before creating (requires --file)
-wWorkspace ID
-oOutput format: summary or json

xano function edit

xano function edit FUNCTION_ID -f ./my-function.xs
FlagDescription
-f, --filePath to file containing XanoScript code
-s, --stdinRead XanoScript from stdin
-e, --editOpen file in editor before updating (requires --file)
--publishPublish the function after editing (default: true)
-wWorkspace ID
-oOutput format: summary or json

xano static_host

Manage static file hosting and builds.
CommandDescription
xano static_host listList all static hosts
xano static_host build list <static_host>List all builds for a static host
xano static_host build get <static_host> <build_id>Get build details
xano static_host build create <static_host>Upload a zip file as a new build

xano static_host list

xano static_host list
xano static_host list -w 40 -o json
xano static_host list --page 2 --per_page 10
FlagDescription
-wWorkspace ID (overrides profile)
-oOutput format: summary (default) or json
--pagePage number for pagination (default: 1)
--per_pageResults per page (default: 50)

xano static_host build list

xano static_host build list my-site
xano static_host build list my-site -w 40 -o json
FlagDescription
-wWorkspace ID (overrides profile)
-oOutput format: summary (default) or json
--pagePage number for pagination (default: 1)
--per_pageResults per page (default: 50)

xano static_host build get

xano static_host build get my-site 52
xano static_host build get my-site 52 -o json
FlagDescription
-wWorkspace ID (overrides profile)
-oOutput format: summary (default) or json

xano static_host build create

xano static_host build create my-site -f ./build.zip -n "v1.0.0"
xano static_host build create my-site -f ./dist.zip -n "production" -d "Production build"
FlagDescription
-f, --filePath to zip file to upload (required)
-n, --nameBuild name (required)
-d, --descriptionBuild description
-wWorkspace ID (overrides profile)
-oOutput format: summary (default) or json