Skip to content

Instantly share code, notes, and snippets.

@dreamyguy
Created August 17, 2020 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreamyguy/0985558620833d7bbb03d11df5524c56 to your computer and use it in GitHub Desktop.
Save dreamyguy/0985558620833d7bbb03d11df5524c56 to your computer and use it in GitHub Desktop.
Sanity: Replace datasets (replace 'develop' with 'schema', for instance)
  1. sanity login (login with GitHub)
  2. sanity dataset export develop (accept default output, it will backup develop in a tar file)
  3. sanity dataset export schema (accept default output, it will backup schema in a tar file)
  4. sanity dataset delete develop (on prompt, type the name of the dataset to confirm delete)
  5. sanity dataset import ./schema.tar.gz develop --replace
  6. sanity graphql deploy
  7. sanity deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment