Skip to content

Commit 0f1838e

Browse files
feat: updated Vue CLI info on installation section
1 parent f75db8e commit 0f1838e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/guide/installation.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,18 @@ Vue provides an [official CLI](https://github.com/vuejs/vue-cli) for quickly sca
4747
The CLI assumes prior knowledge of Node.js and the associated build tools. If you are new to Vue or front-end build tools, we strongly suggest going through <a href="./">the guide</a> without any build tools before using the CLI.
4848
:::
4949

50-
For beta, Vue CLI now has experimental support via [vue-cli-plugin-vue-next](https://github.com/vuejs/vue-cli-plugin-vue-next). To upgrade your existing Vue CLI project with Vue 2 to Vue 3, you would need to run:
50+
For Vue 3, you should use Vue CLI v4.5 available on `npm` as `@vue/cli@next`. To upgrade, you need to reinstall the latest version of `@vue/cli` globally:
5151

5252
```bash
53-
vue add vue-next
53+
yarn global add @vue/cli@next
54+
# OR
55+
npm install -g @vue/cli@next
56+
```
57+
58+
Then in the Vue projects, run
59+
60+
```bash
61+
vue upgrade --next
5462
```
5563

5664
## Vite

0 commit comments

Comments
 (0)