CLI reference
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
Schema CLI command reference
List, validate, extract, and deploy schema.