
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGreat question! This can definitely be confusing for newcomers. Let me break down the different approaches you've found:
npm create sanity@latestThis is the current, recommended approach for starting new Sanity projects. The npm create sanity@latest command:
npm run dev to start the development serverThe command you found with all the flags (--template clean --create-project "Sanity Project" --dataset production) is just the non-interactive version of this same approach, where you specify everything upfront instead of answering prompts.
npm install -g @sanity/cli + sanity initThis is the older approach that involves:
sanity init to set up your projectsanity start to run the development serverWhile this still works, it's considered the legacy method. The main differences:
sanity start is the old command for running the dev serversanity dev (or npm run dev) is the modern equivalent used with Studio v3+, with better performance and Vite-powered live reloadingGo with npm create sanity@latest - it's simpler, doesn't pollute your global npm packages, and follows modern JavaScript tooling conventions. After setup, you'll use npm run dev to start your Studio at http://localhost:3333.
The documentation showing different approaches likely reflects different versions or specific use cases. The video tutorial showing just npm create sanity@latest (without flags) is the most beginner-friendly - it'll walk you through everything interactively.
No need to feel embarrassed - Sanity's documentation does show multiple paths, and it's totally reasonable to be confused when you're just starting out! 😊
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store