Exporting the current schema without document data is not supported by Sanity.io.
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.