✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Setting up a new project and dataset in Sanity.io using a specific command.

3 replies
Last updated: Mar 21, 2024
I was setting up a new project the other day, I didn’t need to do the entire
init
setup, just the Add a new project and dataset.
Is there a command just to set the Project and dataset up? I found going though
init
and cancelling after I created those 2 parts worked, but felt wrong?
Mar 20, 2024, 4:10 PM
npx sanity init --bare
should do it!
Mar 20, 2024, 4:33 PM
Nice, thanks. I’ll give that a try, that lets you create a project, name it then set the production dataset?
Mar 21, 2024, 2:10 PM
Amazing, just what I needed!
Mar 21, 2024, 4:33 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?