gitmyhub

create-vue

Vue โ˜… 4.4k updated 2d ago

๐Ÿ› ๏ธ The recommended way to start a Vite-powered Vue project

Create Vue is the official starting point for new projects built with Vue, a popular JavaScript framework for building web interfaces. Running a single command in your terminal launches an interactive setup process that asks which features you want included, then generates a ready-to-use project folder with everything configured.

The tool is built around Vite, a development server and build tool known for starting up very quickly and applying code changes almost instantly while you work. This is a significant improvement over older setups based on webpack, which can be noticeably slower, especially on large projects. The README explicitly notes this as the main reason for the switch.

During setup, you can choose optional features using flags or by answering prompts. Common options include TypeScript support, a router for handling multiple pages, and other add-ons. If you want a minimal project with as little starter code as possible, there is a flag for that too. The resulting project can use any Vite-compatible plugin, which is a large ecosystem of open-source tools.

Create Vue replaces an older tool called Vue CLI. Projects created with Vue CLI used a different underlying build system, and while the output looked similar, the developer experience was slower. Migration guides exist for teams moving from the old tool to this one.

There is also a legacy mode for creating Vue 2 projects, though Vue 2 has officially reached end of life and is no longer receiving updates, so this option is mainly for teams that cannot yet upgrade.