Skip to content

Commit

Permalink
Added basic upgrading instructions (#5176)
Browse files Browse the repository at this point in the history
* Added basic upgrading instructions

* Update docs/guide/installation.md

Co-Authored-By: Natalia Tepluhina <tarya.se@gmail.com>

* Update docs/guide/installation.md

Co-Authored-By: Natalia Tepluhina <tarya.se@gmail.com>

Co-authored-by: Natalia Tepluhina <tarya.se@gmail.com>
  • Loading branch information
Uninen and NataliaTepluhina committed Feb 15, 2020
1 parent 601bf34 commit 677e4c5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/guide/installation.md
Expand Up @@ -24,3 +24,32 @@ You can check you have the right version with this command:
```bash
vue --version
```

### Upgrading

To upgrade the global Vue CLI package, you need to run:

``` bash
npm update -g @vue/cli

# OR
yarn global upgrade --latest @vue/cli
```

#### Project Dependencies

Upgrade commands shown above apply to the global Vue CLI installation. To upgrade one or more `@vue/cli` related packages (including packages starting with `@vue/cli-plugin-`) inside your project, run `vue upgrade` inside the project directory:

```
Usage: upgrade [options] [plugin-name]
(experimental) upgrade vue cli service / plugins
Options:
-t, --to <version> Upgrade <package-name> to a version that is not latest
-f, --from <version> Skip probing installed plugin, assuming it is upgraded from the designated version
-r, --registry <url> Use specified npm registry when installing dependencies
--all Upgrade all plugins
--next Also check for alpha / beta / rc versions when upgrading
-h, --help output usage information
```

0 comments on commit 677e4c5

Please sign in to comment.