🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Exporting the current schema without document data is not supported by Sanity.io.

4 replies
Last updated: Oct 2, 2023
Hi all, I'm wondering if there's a way to export just the current schema (document types and field definitions), but not the document data. For example, if I wanted a snapshot of the schema at a certain point in time.
Oct 2, 2023, 11:24 PM
In the CLI I can get all the data in a dataset, but that's not what I need.
Oct 2, 2023, 11:25 PM
That’s not something Sanity keeps track of, I’m afraid. You’d need to use version control for the actual code base.
Oct 2, 2023, 11:30 PM
Yeah, totally
Oct 2, 2023, 11:31 PM
Ok, that makes sense
Oct 2, 2023, 11:31 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?