Skip to content

Instantly share code, notes, and snippets.

@Grsmto
Last active July 13, 2020 20:12
Show Gist options
  • Save Grsmto/389336ec4de643aab274e35f6c3437e7 to your computer and use it in GitHub Desktop.
Save Grsmto/389336ec4de643aab274e35f6c3437e7 to your computer and use it in GitHub Desktop.
Sanity cheatsheet

Sanity.io CheatSheet

Copy content of document in clipboard

> sanity documents get document-id | pbcopy

Edit document from CLI

First make sure to define your editor using EDITOR=code (for vscode).

> sanity documents create --id documentId --watch --replace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment