Getting started with a Vue.js project is easy. Here's how you can quickly get up and running:
create-vue is the official and recommended tool for scaffolding a Vue.js project. It uses Vite (also from Vue creator Evan You) to help quickly and easily set up a Vue.js project to your specifications.
Note: This requires Node v16 or higher.
npm init vue@latest
Figure: The options provided by create-vue for scaffolding a Vue.js project
cd {{ PROJECT_NAME }}npm installnpm run dev
Vue CLI is the official CLI toolchain for Vue.js development using Webpack. Previously, this was the recommended tool for scaffolding a Vue.js project but is now no longer supported, in favour of create-vue and Vite. Unless your project requires Webpack, it is recommended to use create-vue instead.
Note: This requires Node v8.6.0 or higher.
Scaffolding a project in Vue CLI takes just a few steps:
npm install -g @vue/cli
vue create {{ PROJECT_NAME }}
Figure: Top-level options when running "vue create" using Vue CLI
Figure: Manual feature selection instead of using a preset in Vue CLI
cd {{ PROJECT_NAME }}npm run serve