Everything *[NYC] 2026: see what we announced. →
Skip to content

Answers from the community about CLI

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

zsh: command not found: sanity after reinstalling CLI
How to batch delete all documents of a certain type in Sanity?
Best way to convert HTML to a PortableText object?
Sanity CLI login fails in GitHub Codespaces due to localhost callback
sanity schema extract" command not found in Sanity CLI v3.45.0
Which quotas are affected by sanity dataset export/import CLI commands?
How to duplicate an entire dataset in Sanity admin dashboard?
How to back up entire Sanity dataset?
Error after updating sanity/cli 3.35.1 to 3.35.2: Cannot read properties of undefined (reading 'div')
Query Sanity documents and output as NDJSON instead of JSON
Can I restore a deleted dataset or revert data to a previous point in time?
Internal server error when importing NDJSON data via Sanity CLI
How to backup Sanity Studio CMS content?
Sanity files stuck in upload state with uploadState.file.name error
Does removing a schema delete its related documents in Sanity?
Error importing dataset in Sanity v3: "@sanity/core" not available
Draft document showing in Desk Tool after CLI deletion but not in Vision
CLI Error: "unable to verify the first certificate" when creating project