Cloning a Sanity project and migrating data explained

5 replies
Last updated: Apr 19, 2020
is there a way to clone a sanity project? basically, i want the same CMS content but a new project ID …
Apr 19, 2020, 1:48 AM
You would have to migrate, but that's not too hard:
Apr 19, 2020, 1:58 AM
That would give you exactly the same content in another project. You also then have to clone the studio code. The backend doesn't know about the studio
Apr 19, 2020, 1:59 AM
You can start a new blank project with npm. Then you have zero data and a blank schema. Then import what you exported. And copy the schema.
Apr 19, 2020, 2:02 AM
thx! 🙇‍♂️
Apr 19, 2020, 2:16 AM

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.

Was this answer helpful?