Skip to content

Commit eb39853

Browse files
authored
chore: update create-vite commands (#4216)
1 parent 25d86eb commit eb39853

3 files changed

Lines changed: 33 additions & 8 deletions

File tree

docs/guide/index.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ Vite requires [Node.js](https://nodejs.org/en/) version >=12.0.0.
2525
With NPM:
2626

2727
```bash
28-
$ npm init @vitejs/app
28+
$ npm init vite@latest
2929
```
3030

3131
With Yarn:
3232

3333
```bash
34-
$ yarn create @vitejs/app
34+
$ yarn create vite
35+
```
36+
37+
With PNPM:
38+
39+
```bash
40+
$ pnpx create-vite
3541
```
3642

3743
Then follow the prompts!
@@ -40,13 +46,13 @@ You can also directly specify the project name and the template you want to use
4046

4147
```bash
4248
# npm 6.x
43-
npm init @vitejs/app my-vue-app --template vue
49+
npm init vite@latest my-vue-app --template vue
4450

4551
# npm 7+, extra double-dash is needed:
46-
npm init @vitejs/app my-vue-app -- --template vue
52+
npm init vite@latest my-vue-app -- --template vue
4753

4854
# yarn
49-
yarn create @vitejs/app my-vue-app --template vue
55+
yarn create vite my-vue-app --template vue
5056
```
5157

5258
Supported template presets include:

packages/create-vite/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# 2.5.0 (2021-07-12)
22

3+
* @vitejs/create-app has been moved to create-vite, so the command to scaffold a Vite app is now shorter and easier to remember.
4+
5+
With NPM:
6+
7+
```bash
8+
$ npm init vite@latest
9+
```
10+
11+
With Yarn:
12+
13+
```bash
14+
$ yarn create vite
15+
```
16+
17+
With PNPM:
18+
19+
```bash
20+
$ pnpx create-vite
21+
```
322

423

524
## [2.4.5](https://github.com/vitejs/vite/compare/create-app@2.4.4...create-app@2.4.5) (2021-07-05)

packages/create-vite/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
With NPM:
99

1010
```bash
11-
$ npm init @vitejs/app
11+
$ npm init vite@latest
1212
```
1313

1414
With Yarn:
1515

1616
```bash
17-
$ yarn create @vitejs/app
17+
$ yarn create vite
1818
```
1919

2020
With PNPM:
2121

2222
```bash
23-
$ pnpx @vitejs/create-vite
23+
$ pnpx create-vite
2424
```
2525

2626
Then follow the prompts!

0 commit comments

Comments
 (0)