Joint session with Vercel: How to build intelligent storefronts (May 15th)

How to clone a Sanity project with same content but new project ID?

5 repliesLast updated: Nov 29, 2025

is there a way to clone a sanity project? basically, i want the same CMS content but a new project ID …
AI Update

Yes! There are a few ways to clone a Sanity project with the same content but a different project ID. Here's what you can do:

The Standard Approach: Export and Import

The most common method is to use the Sanity CLI's export and import commands:

sanity dataset export production

This creates a production.tar.gz file containing all your documents and assets.

sanity init
sanity dataset import production.tar.gz production

This approach gives you complete control and works across all plan types. You can also export to a specific filename or location if needed.

Using the Cross Dataset Duplicator Plugin

The Cross Dataset Duplicator plugin lets you migrate documents and assets between projects directly from within Sanity Studio. This is especially helpful if you want to selectively copy content rather than everything at once. Install it with:

npm i @sanity/cross-dataset-duplicator

For Enterprise: Cloud Clone

If you're on an Enterprise plan, you have access to Cloud Clone, which duplicates datasets directly in the cloud without needing to download and re-upload data locally. This is faster and more efficient for large datasets.

Important Notes

The export/import method is the most straightforward approach and works great for most use cases where you need a complete clone with a new project ID.

Show original thread
5 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