Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
We've added a few new flags to make automation easier!
The --force
flag was added to a few already existing commands and will skip the confirmation prompt and proceed with the command:
sanity dataset alias unlink <alias-name> --force
sanity dataset alias delete <alias-name> --force
sanity dataset delete <dataset-name> --force
sanity graphql undeploy --dataset <dataset-name> --force
When added, the --no-open
flag prevents the login page from automatically opening in the browser.
sanity login --provider <provider-name> --no-open