From 2b5e29ec45151aa76538de05bdaefff36f3e6456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20S=C3=A4=C3=A4vuori?= Date: Mon, 10 Feb 2020 22:31:00 +0200 Subject: [PATCH 1/3] Added basic upgrading instructions --- docs/guide/installation.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 7feb262428..be81a9c226 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -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 run: + +``` bash +npm update -g @vue/cli + +# OR +yarn global upgrade --latest @vue/cli +``` + +#### Project Dependencies + +Above upgrade commands 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 Upgrade to a version that is not latest + -f, --from Skip probing installed plugin, assuming it is upgraded from the designated version + -r, --registry 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 +``` From 1609afad8f1b9609a552c197bf9c22f6defd5aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20S=C3=A4=C3=A4vuori?= Date: Wed, 12 Feb 2020 19:37:55 +0200 Subject: [PATCH 2/3] Update docs/guide/installation.md Co-Authored-By: Natalia Tepluhina --- docs/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index be81a9c226..e531fd2cc5 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -27,7 +27,7 @@ vue --version ### Upgrading -To upgrade the global Vue CLI package run: +To upgrade the global Vue CLI package, you need to run: ``` bash npm update -g @vue/cli From aa75571386394a8725f065b3c994d42e34a97024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20S=C3=A4=C3=A4vuori?= Date: Wed, 12 Feb 2020 19:38:02 +0200 Subject: [PATCH 3/3] Update docs/guide/installation.md Co-Authored-By: Natalia Tepluhina --- docs/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index e531fd2cc5..e4beceb0bc 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -38,7 +38,7 @@ yarn global upgrade --latest @vue/cli #### Project Dependencies -Above upgrade commands 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: +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]