-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
I want to be able to export my dataset without secrets
Describe the solution you'd like
A option like --exclude-types the same way we already have --types
Describe alternatives you've considered
Could maybe also be solved with have a setting that will exclude all docs that have a dot (.) in their path, but it will still export known sanity private doc types (drafts etc)? IMO --exclude-types sounds like a better option though.
Additional context
The --types option in sanity dataset export is nice, but if you have many types and want to export "everything except secrets" it gets messy with all the types as an argument.
If you add new document types you will also need to add these to the export command manually.
If I for example use the sanity-studio-secrets to store some secrets it would be nice to be able to run --exclude-types=secrets.myApp or maybe even --exclude-types=secrets.* to be sure I dont export sensitive data.