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
Initialize a new Sanity project or plugin
Dev
Starts a development server for the Sanity Studio
Docs
Opens the Sanity documentation
Deploy
Deploys a statically built Sanity studio
TypeGen
Generate TypeScript type definition from a Studio schema and GROQ queries
Schema
List, validate, extract, and deploy schema.