How to fix 'sanity start' error in VSCode terminal?
Welcome to Sanity! The sanity start command doesn't exist in Sanity Studio v3 and later versions - that's why you're getting an error. The command was replaced with sanity dev for local development.
To fix this, run:
sanity devOr if you're using npm/pnpm/yarn:
npm run dev
# or
pnpm run dev
# or
yarn devYour Studio will then be available at http://localhost:3333.
What changed: When Sanity Studio v3 was released, the CLI commands were updated. The old sanity start command was replaced with sanity dev, which provides better performance with live reloading, faster cold starts, and uses Vite for the development server. The sanity start command now only serves production builds locally (after you've run sanity build).
Quick reference for common commands:
sanity dev- Start local development server (what you want!)sanity build- Create a production buildsanity deploy- Deploy your Studio to Sanity's hosting
If you're still seeing errors after running sanity dev, make sure you have Node.js version 18 or higher installed (v20+ is required for Studio v4). You can check your version with node --version. If you need to update Node.js, download the latest LTS version from nodejs.org.
Show original thread2 replies
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.