How to create Sanity project and dataset without full init setup?

3 repliesLast updated: Nov 29, 2025

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?
AI Update

You're absolutely right—running sanity init and then cancelling after creating the project and dataset does feel like a workaround! Unfortunately, there isn't a single dedicated command to only create a project and dataset without going through the full init flow.

Based on the Sanity CLI documentation, the available commands are:

For projects:

That's it for the projects command—there's no sanity projects create command available.

For datasets: From the sanity dataset command, you can:

Your best options:

The Sanity CLI is primarily designed around the init workflow for project setup, so there isn't currently a streamlined "create project only" command. Your approach of using init and cancelling is actually a reasonable workaround given the current CLI design!

Show original thread
3 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions