Sanity logosanity.ioAll Systems Operational© Sanity 2026
Change Site Theme
Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Studio quickstart
    • Build with AI
    • Content Lake
    • Functions
    • APIs and SDKs
    • Agent Actions
    • Visual Editing
    • Blueprints
    • Platform management
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • App SDK
    • Content Agent
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
Sanity Studio quickstart

  • Quickstart guide

    Setting up your studio
    Defining a schema
    Query content with GROQ
    Deploying the Studio

  • Next steps

    Day One with Sanity

  • ← Back to all getting started guides

On this page

Next

Defining a schema

Was this page helpful?

On this page

  • Create a new Studio with Sanity CLI
  • Run Sanity Studio locally
  • Log in to the Studio
Sanity Studio quickstartLast updated September 11, 2025

Setting up your studio

Quickstart for getting up and running with Sanity from scratch.

1Create a new Studio with Sanity CLI

Run the 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-world
pnpm create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
yarn create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
bun create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world

2Run 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 dev

3Log 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.

npm create sanity@latest -- --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
pnpm create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
yarn create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
bun create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
npm create sanity@latest -- --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
pnpm create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
yarn create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
bun create sanity@latest --dataset production --template clean --typescript --output-path studio-hello-world
cd studio-hello-world
# 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 dev
# 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 dev