sanity exec <script>
Runs a script in Sanity context
Arguments
| Name | Description |
|---|---|
script | filepaths |
Options
| Name | Description |
|---|---|
--with-user-token | Preload access token from CLI config into 'part:@sanity/base/client' part |
--mock-browser-env | Mocks a browser-like environment using jsdom |