Upgrade the Command Line Interface (CLI) with
npm install --global @sanity/cli
Upgrade Sanity Studio with:
in the studio folder.
You can now use the Sanity CLI tool to invite people to your project. From your studio folder, run
sanity users invite and you'll be prompted for the email and role of the user. You can also use flags (
--role) if you want to automate it.
In addition, you can list the members of a project by running
sanity users list. You'll get the user IDs, names and roles of all users in the project.
In a future release, we'll be sure to add more commands, such as removing a user from the project, or modifying their role.
|Espen Hovlandsdal||core Add CLI commands for listing and inviting users (#1408)||e31055b48|
|Per-Kristian Nordnes||preview Don't toggle visiblity for 'inline' and 'block' previews (#1411)||196087962|
|Per-Kristian Nordnes||form-builder Block editor: fix focus bug (#1412)||75f32edd3|