# Improved CLI upgrade command and Portable Text editor bugfixes

**Version:** v2.27.3

**Published:** March 3, 2022

Upgrade the Command Line Interface (CLI) with:

`npm install --global @sanity/cli`

Upgrade Sanity Studio with:

`sanity upgrade`

# 🐛 Notable bugfixes

- Fixes a number of issues with the `sanity upgrade` command when using `--tag` and/or `--range` ([#3176](https://github.com/sanity-io/sanity/pull/3176))
- Fixes a bug in the Portable Text editor where selecting all the content and overwriting it by inserting text would cause an error



