Prerequisites
- A Xano account (free tier works)
- Node.js 18 or later
- A code editor (VS Code or Cursor recommended)
Install the Xano CLI
If you haven’t already, install the CLI globally:Verify with
Terminal
xano --version.Authenticate
Log in with your Xano account:Your browser will open for authentication. After logging in, select your instance and name your profile.
Terminal
For self-hosted or beta environments, add
-o https://your-environment-url.com. See Get Started for details.Create a workspace
Create a new workspace for your project:Note the workspace ID from the output, then add it to your profile:
Terminal
Terminal
Set up your local project
Create a directory for your XanoScript files and pull the empty workspace scaffold:This creates the directory structure where you’ll add your XanoScript files.
Terminal
Install the VS Code Extension
For the best development experience, install the XanoScript VS Code Extension. It provides:
- Syntax highlighting for
.xsfiles - Autocomplete for XanoScript keywords and functions
- Inline error detection
Terminal
Build with AI
This is where the power of local XanoScript development shines. Use AI tools to generate your backend:With the Xano MCP Server + an AI assistant (Claude, Cursor, etc.):Connect your AI assistant to the Xano MCP Server to give it direct access to your Xano workspace context. The AI can then generate XanoScript for tables, APIs, functions, and more — all grounded in your actual workspace.With any AI model directly:You can also write XanoScript by hand or paste the XanoScript documentation into your AI tool’s context and ask it to generate
.xs files. Place them in the appropriate subdirectories (table/, api/, function/, task/).Push to Xano
When you’re ready to deploy your backend, push everything:Your tables, APIs, functions, and tasks are now live in Xano.
Terminal
Verify in Xano
Open your workspace in the Xano dashboard to see your resources. You can test APIs directly from the dashboard, view your database tables, and make visual adjustments.Any changes you make visually in Xano can be pulled back down:
Terminal
Recommended Workflow
Once you’re up and running, a typical development cycle looks like this:- Edit locally — Write or generate XanoScript in your editor with AI assistance
- Push —
xano workspace push ./my-new-app - Test — Verify in the Xano dashboard or call your APIs
- Iterate — Pull any dashboard changes, edit, and push again
Version Control with Git
Track your XanoScript in Git for full change history:Terminal