Skip to content

Commit 677e4c5

Browse files
Added basic upgrading instructions (#5176)
* 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>
1 parent 601bf34 commit 677e4c5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/guide/installation.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,32 @@ You can check you have the right version with this command:
2424
```bash
2525
vue --version
2626
```
27+
28+
### Upgrading
29+
30+
To upgrade the global Vue CLI package, you need to run:
31+
32+
``` bash
33+
npm update -g @vue/cli
34+
35+
# OR
36+
yarn global upgrade --latest @vue/cli
37+
```
38+
39+
#### Project Dependencies
40+
41+
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:
42+
43+
```
44+
Usage: upgrade [options] [plugin-name]
45+
46+
(experimental) upgrade vue cli service / plugins
47+
48+
Options:
49+
-t, --to <version> Upgrade <package-name> to a version that is not latest
50+
-f, --from <version> Skip probing installed plugin, assuming it is upgraded from the designated version
51+
-r, --registry <url> Use specified npm registry when installing dependencies
52+
--all Upgrade all plugins
53+
--next Also check for alpha / beta / rc versions when upgrading
54+
-h, --help output usage information
55+
```

0 commit comments

Comments
 (0)