See Sanity in action ๐Ÿ‘€ Join us for a live product demo + Q&A โ†’

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
How to delete all docs of a specific doc type via cli?4Nov 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
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
How to Set CORs Origins for Cloudflare Pages8May 3, 2022
Does anyone get this error? I have had this problem for a while now and Iโ€™m not sure how to resolve it: ``` โ•ฐโ”€ sudo npm...4Jan 13, 2021
I get this error when trying to run a Sanity Studio ```Uncaught TypeError: Cannot read property 'sanity' of undefined```12Jan 12, 2021
Coming to Next from Gatsby. Is there a equivalent for testing a build locally to detect for differences?5Nov 10, 2020
We have about 13,000 documents - most of which we have imported manually using the sanity cli. For some reason none ofthese...14Dec 29, 2020
Hello Team, does Sanity CLI copy command depends on user role / project settings or something? It is appearing in terminal...9Dec 23, 2020
Is it possible to make sanity cli use npm rather than yarn?4Oct 14, 2020
Error: You must login first - run "sanity login" at Object.apiClient5Sep 20, 2020
My project using next.js ecommerce starter is not running locally7Feb 2, 2021
How to set studio hostname via API?8Nov 13, 2020
i can't delete any documents from my studio right now ๐Ÿค” when i click delete, nothing happens, not even a console error13Feb 2, 2021
How to Download / Export All Images from Sanity3Apr 10, 2021