👀 See Sanity in action: Watch product demo now →

How to Extend the Sanity CLI Commands with Custom Commands

3 replies
Last updated: Nov 11, 2021
Hello! Is it possible to extend the sanity cli commands with custom commands?
Nov 9, 2021, 3:37 PM
Hi!What kind of custom commands do you have in mind?
🙂
Nov 9, 2021, 6:57 PM
Hello, I want to create a command that applies a mutation from cli. Maybe the command already exists?
Nov 9, 2021, 7:28 PM
you could write a script and run it with the sanity exec command: https://www.sanity.io/docs/exec I've never used that command so I'm not exactly sure what it does.
Nov 11, 2021, 7:43 AM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in