npm @sanity/cli 0.141.6
v0.141.6

latest releases: 3.42.2-canary.38, 3.42.1, 3.41.3-before-pane-break.11...
4 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

in the studio folder.

✨ Highlights

Invite collaborators from the command line

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.

🐛 Notable bugfixes

  • Fixed a bug where unloading previews in the editor for Portable Text led to side effects and jumping.
  • Fixed a bug in the editor for Portable Text where focus was not restored when toggling fullscreen mode.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [core] Add CLI commands for listing and inviting users (#1408) e31055b
Per-Kristian Nordnes [preview] Don't toggle visiblity for 'inline' and 'block' previews (#1411) 1960879
Per-Kristian Nordnes [form-builder] Block editor: fix focus bug (#1412) 75f32ed

Don't miss a new cli release

NewReleases is sending notifications on new releases.