Join live – Get insights, tips, + Q&A from Sanity developers on our latest releases

Answers from the community about CLI

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

TopicCategoriesFeaturedRepliesLast Updated
Hey all - what’s the quickest way to batch delete all documents of a certain type? It looks like the `sanity` cli tool allows...5Jan 29, 2021
Best way to convert HTML to a PortableText object?6Dec 3, 2020
CLI Error - zsh: command not found17Jan 29, 2022
Troubleshooting GraphQL deployment with Sanity CLI login12May 24, 2020
Troubleshooting logging in to the CLI tool using a token in a CI/CD environment.24Jul 28, 2020
How to delete all docs of a specific doc type via cli?4Nov 13, 2020
Changing the default view in Sanity Studio4Apr 15, 2020
Issue with automated build failing due to missing next.js CLI11Aug 24, 2020
Help needed with CLI dataset export error and duplicating datasets3May 13, 2020
Hi everyone. I'm new to using Sanity and having a bit of an issue with local development, and wondering if someone is able...9Dec 29, 2020
I’m experiencing an error when trying to deploy `sanity graphql deploy` and getting this error point towards a node_module ```import...18Jan 16, 2021
Gatsby site crashing with cryptic error, resolved by adjusting resolveReferences depth3Aug 18, 2020
I’m hoping to use Sanity as an earlier part of our design and prototyping workflow. Are there any techniques or plugins...8Dec 15, 2020
Troubleshooting deployment and login issues with self-hosted Sanity instance10Feb 23, 2022
Discussion about hanging export command in Sanity CLI with possible solution35Apr 6, 2021
Discussion about import schema and formatting issues, with suggestions for resolving the problem.13Sep 3, 2021
Issue with old content at localhost and how to delete older Board Minutes in Sanity.13Feb 25, 2021
Troubleshooting a schema issue with reference fields in Slack thread33Sep 8, 2021