Prerequisites
- An existing Xano workspace with tables, APIs, or functions already built
- Node.js 18 or later
- A code editor (VS Code or Cursor recommended)
Install the Xano CLI (if needed)
If you haven’t installed the CLI yet:Already have it? Make sure you’re on the latest version:
Terminal
Terminal
Authenticate (if needed)
If you haven’t set up a profile yet, authenticate with your Xano account:Select your instance and the workspace you want to work with during the setup flow.If you already have a profile but need to point it to a different workspace:
Terminal
For self-hosted or beta environments, add
-o https://your-environment-url.com. See Get Started for details.Terminal
Pull your workspace
Download your entire workspace as XanoScript files:This creates a local directory with all of your resources organized by type:API endpoints are grouped under
Terminal
api/{group_name}/ directories, with filenames in {name}_{verb}.xs format. See Push & Pull for the full directory structure reference.To include environment variables and records:Terminal
Install the VS Code Extension
For the best editing experience, install the XanoScript VS Code Extension:This gives you syntax highlighting, autocomplete, and inline error detection for
Terminal
.xs files.Develop locally with AI
With your workspace files on disk, you can use AI tools to understand, modify, and extend your backend:With the Xano MCP Server + an AI assistant (Claude, Cursor, etc.):Connect your AI assistant to the Xano MCP Server for workspace-aware code generation. The AI can read your existing XanoScript, understand your data model, and generate new APIs, functions, or modifications that fit your existing architecture.Editing directly:Open the
.xs files in your editor and make changes. The directory structure makes it easy to find what you need — tables in table/, APIs in api/, functions in function/, and so on.Push your changes
When you’re ready to deploy your changes:Your updated XanoScript is sent to Xano and applied to the workspace.
Terminal
Verify
Check the Xano dashboard to confirm your changes. Test your APIs, review updated functions, and validate that everything works as expected.
Keeping in Sync
If you or your teammates also make changes in the Xano dashboard, pull regularly to stay up to date:Terminal
Working on a Branch
For larger changes, work on a dedicated branch to avoid impacting the live environment:Terminal
Version Control with Git
Initialize a Git repository in your workspace directory to track changes over time:Terminal