Setting up your studio
Quickstart for getting up and running with Sanity from scratch.
Create a new studio with Sanity CLI
Run the following command in your Terminal to initialize your project on your local computer.
See the documentation if you are having issues with the CLI.
npm create sanity@latest -- --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-worldpnpm create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-worldyarn create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-worldbun create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-worldRun Sanity Studio locally
Inside the directory of the studio, start the development server by running the following command.
# in studio-hello-world
npm run dev# in studio-hello-world
pnpm run dev# in studio-hello-world
yarn run dev# in studio-hello-world
bun run devLog in to the studio
Open the studio running locally in your browser from http://localhost:3333.
You should now see a screen prompting you to log in to the studio. Use the same service (Google, GitHub, or email) that you used when you logged in to the CLI.
Was this page helpful?
Feedback submitted, thanks for helping us improve the docs. Have you tried these alternatives?