create-vue

create-vue

The recommended way to start a Vite-powered Vue project
GitHub
3k
Created 2 years ago, last commit a day ago
31 contributors
514 commits
Stars added on GitHub, month by month
N/A
12
1
2
3
4
5
6
7
8
9
10
11
2022
2023
Stars added on GitHub, per day, on average
Yesterday
+3
Last week
+2.6 /day
Last month
+3.2 /day
Package on NPM
Monthly downloads on NPM
N/A
12
1
2
3
4
5
6
7
8
9
10
11
2022
2023
No dependencies
README

create-vue npm package node compatibility

The recommended way to start a Vite-powered Vue project

Usage

npm create vue@latest

Or, if you need to support IE11, you can create a Vue 2 project with:

npm create vue@legacy

Note that the tag name (@latest or @legacy) MUST NOT be omitted, otherwise npm may resolve to a cached and outdated version of the package.

Difference from Vue CLI

  • Vue CLI is based on webpack, while create-vue is based on Vite. Vite supports most of the configured conventions found in Vue CLI projects out of the box, and provides a significantly better development experience due to its extremely fast startup and hot-module replacement speed. Learn more about why we recommend Vite over webpack here.

  • Unlike Vue CLI, create-vue itself is just a scaffolding tool: it creates a pre-configured project based on the features you choose, and delegates the rest to Vite. Projects scaffolded this way can directly leverage the Vite plugin ecosystem which is Rollup-compatible.

Migrating from Vue CLI