Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vuejs/create-vue
🛠️ The recommended way to start a Vite-powered Vue project
https://github.com/vuejs/create-vue
vite vue vue3 vuejs
Last synced: 6 days ago
JSON representation
🛠️ The recommended way to start a Vite-powered Vue project
- Host: GitHub
- URL: https://github.com/vuejs/create-vue
- Owner: vuejs
- License: other
- Created: 2021-07-14T07:58:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T07:51:26.000Z (10 days ago)
- Last Synced: 2025-01-02T20:36:11.080Z (10 days ago)
- Topics: vite, vue, vue3, vuejs
- Language: JavaScript
- Homepage:
- Size: 6.31 MB
- Stars: 3,886
- Watchers: 31
- Forks: 445
- Open Issues: 40
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- trackawesomelist - Create Vue (⭐3.8k)
README
The recommended way to start a Vite-powered Vue project
## Usage
To create a new Vue project using `create-vue`, simply run the following command in your terminal:
```sh
npm create vue@latest
```> [!NOTE]
> (`@latest` or `@legacy`) MUST NOT be omitted, otherwise `npm` may resolve to a cached and outdated version of the package.By default the command will run in interactive mode, but you can also provide feature flags in the CLI arguments to skip the prompts. Run `npm create vue@latest -- --help` to see all available options.
If you need to support IE11, you can create a Vue 2 project with:
```sh
npm create vue@legacy
```> [!WARNING]
> [Vue 2 Has Reached End of Life](https://v2.vuejs.org/eol/)## Difference from Vue CLI
- Vite-Powered: Vue CLI is based on webpack, while `create-vue` is based on [Vite](https://vite.dev/). 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](https://vite.dev/guide/why.html).
- Scaffolding Tool: 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](https://vite.dev/plugins/) which is Rollup-compatible.
## Migrating from Vue CLI
If you're transitioning from Vue CLI to Create Vue, we've got you covered. Here are some resources to help you with the migration:
How to Migrate from Vue CLI to Vite- Vue CLI to Vite Migration Guide: A comprehensive guide on migrating from Vue CLI to Vite, available on [VueSchool.io](https://vueschool.io/articles/vuejs-tutorials/how-to-migrate-from-vue-cli-to-vite/)
- Tools and Plugins for Migration: For a smoother transition, check out the list of tools and plugins designed to assist with the migration process on the
[Awesome Vite GitHub page](https://github.com/vitejs/awesome-vite#vue-cli).