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
CLI reference
Overview

  • Configuration
  • Commands

    Backup CLI command reference
    Blueprints
    Build
    Codemod
    CORS
    Dataset
    Debug
    Deploy
    Dev
    Docs
    Documents
    Exec
    Functions
    GraphQL
    Help
    Hook
    Init
    Install
    Login
    Logout
    Manage
    Manifest
    Media
    Migration
    Preview
    Projects
    Schema
    Start
    Telemetry
    TypeGen
    Undeploy
    Users
    Versions
    Tokens

On this page

CLI referenceLast updated January 9, 2026

Dev

Starts a development server for the Sanity Studio

usage: sanity dev [--port <port>] [--host <host>]
   Starts a development server for the Sanity Studio
Notes
  Changing the hostname or port number might require a new entry to the CORS-origins allow list.
Options
  --port <port> TCP port to start server on. [default: 3333]
  --host <host> The local network interface at which to listen. [default: "127.0.0.1"]
  --load-in-dashboard Open the studio within Dashboard
Examples
  sanity dev --host=0.0.0.0
  sanity dev --port=1942
Previous

Deploy

Next

Docs

Was this page helpful?

usage: sanity dev [--port <port>] [--host <host>]
   Starts a development server for the Sanity Studio
Notes
  Changing the hostname or port number might require a new entry to the CORS-origins allow list.
Options
  --port <port> TCP port to start server on. [default: 3333]
  --host <host> The local network interface at which to listen. [default: "127.0.0.1"]
  --load-in-dashboard Open the studio within Dashboard
Examples
  sanity dev --host=0.0.0.0
  sanity dev --port=1942