GitHub - vuejs/create-vue: 🛠️ The recommended way to start a Vite-powered Vue project (original) (raw)

The recommended way to start a Vite-powered Vue project

Screencast from terminal

Usage

To create a new Vue project using create-vue, simply run the following command in your terminal:

Important

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

By default, the command runs in interactive mode with prompts. You can skip these prompts by providing feature flags as CLI arguments. To see all available feature flags and options:

npm create vue@latest -- --help

This will show you various feature flags (like --typescript, --router) and options (like --bare for creating a project with minimal boilerplate).

PowerShell users: You'll need to quote the double dashes: npm create vue@latest '--' --help

Creating Vue 2 Projects

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

Difference from Vue CLI

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