Developers · CLI
Getting Started with the Insites CLI Tool
Last updated 25 November 2026
Install the Insites CLI, add an environment, deploy your project and sync changes as you work.
This guide takes you from nothing to a working setup: install the CLI, connect it to your site, deploy your project and keep it in step as you edit. It describes the CLI 6.4.1.
Step 1: Check Node.js
The CLI needs Node.js 22 or newer. Node 24 is recommended. Check your version:
node --versionIf it is older than 22, install a newer Node from nodejs.org or with a version manager such as nvm. On an older Node, npm installs an older CLI, and that release tells you to upgrade.
Step 2: Install the CLI
npm i -g @insites/insites-cli --no-fund--no-fund is optional. It hides npm's note about packages that accept donations. Check that it works:
insites --versioninsites is a short name for insites-cli. Both do the same thing. If your terminal says the command is not found, see Troubleshooting.
Step 3: Find Your Site UUID
To use the CLI on a site, you need the Developer role or above on it.
- Sign in to the Insites Console.
- Open Sites and select your site.
- Open the CLI Commands tab. It shows the site UUID and the commands to add the site.
Step 4: Add an Environment
An environment is a name for one site, such as staging. Go to your project folder and run:
insites env add staging --instance-uuid <instance-uuid>Your browser opens the Insites Console sign-in. Check that it shows the same code as your terminal, then approve. The CLI saves the environment in a .insites file in that folder. Add .insites to your .gitignore, because it holds your sign-in.
You can add several environments to one project, for example staging for testing and production for the live site, and deploy the same code to each.
To sign in with a Developer API key instead of the browser, copy the command from the site's CLI Commands tab. See Commands and Options.
Step 5: Create the Project Folders
Skip this step if your project already has an app/ folder.
insites initStep 6: Check Your Setup
insites doctorIt checks Node.js, the CLI version, the .insites file, each environment's sign-in and the site, and prints the command that fixes each problem.
Step 7: Deploy
insites deploy stagingThe CLI prints a report: for each type of file, how many were upserted, deleted and skipped. To see what would change first, add --dry-run.
Step 8: Sync While You Work
insites sync stagingSync watches your files and sends each change to the site when you save it. Press Ctrl+C to stop.
Step 9: Connect Your AI Assistant
If you use Claude Code, Cursor or VS Code, connect it to Insites:
insites ai initSee Connect Your AI Assistant.