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.

TopicCategoriesFeaturedRepliesLast Updated
Difference between deployed and local Sanity: How does it decide which to use?4Mar 9, 2021
How to host Sanity and Next.js together on Vercel: monorepo or single project?3Feb 23, 2021
How to unset/clear a nonexistent reference field in Sanity CMS26Feb 17, 2021
My project using next.js ecommerce starter is not running locally7Feb 2, 2021
Can't delete documents in Sanity Studio - no errors shown13Feb 2, 2021
Sanity Studio + sanity-ui version conflict: useRootTheme() missing context5Jan 30, 2021
Error: "Cannot use import statement outside a module" on graphql deploy18Jan 16, 2021
Sanity CLI "Command failed" error during `sanity install` dependency resolution4Jan 13, 2021
I get this error when trying to run a Sanity Studio ```Uncaught TypeError: Cannot read property 'sanity' of undefined```12Jan 12, 2021
sanity start" showing wrong project on localhost:33339Dec 29, 2020
GUI Schema Creation and Mock Data Generation in Sanity8Dec 15, 2020
Sanity GUI schema creation and auto-populating with mock/fake data?7Dec 15, 2020
How to delete all docs of a specific doc type via cli?4Nov 13, 2020
How to set studio hostname via API?8Nov 13, 2020
Testing Next.js build locally like Gatsby build && serve4Nov 10, 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
Build fails on Github push but succeeds with cleared cache retry11Aug 24, 2020