Documentation

    • Overview
    • Platform introduction
    • AI coding agents
    • AI app builders
    • 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
    • Next.js
    • Astro
    • APIs and SDKs
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
CLI reference
Overview

  • Configuration
  • Commands

    Backups
    Blueprints
    Build
    Codemod
    CORS
    Datasets
    Debug
    Deploy
    Dev
    Docs
    Documents
    Exec
    Functions
    GraphQL
    Help
    Hooks
    Init
    Install
    Learn
    Login
    Logout
    Manage
    Manifest
    MCP
    Media
    Migrations
    OpenAPI
    Preview
    Projects
    Schemas
    Start
    Telemetry
    TypeGen
    Undeploy
    Users
    Versions
    Tokens
    Skills

CLI referenceLast updated April 15, 2026

Sanity CLI

The sanity Command Line Interface (CLI) is a tool for interacting with the Sanity ecosystem from your terminal.

Common commands

Init CLI command reference

Initialize a new Sanity project or plugin

Dev CLI command reference

Starts a development server for the Sanity Studio

Docs CLI command reference

Browse, read, and search the Sanity documentation from the CLI.

Deploy CLI command reference

Deploys a statically built Sanity studio

TypeGen CLI command reference

Generate TypeScript type definition from a Studio schema and GROQ queries

Schemas CLI command reference

List, validate, extract, and deploy schema.

sanity.io
© Sanity 2026
Change Site Theme
All Systems Operational