Currently On

The Blog

How to Install Vue CLI

Get your Vue.js project up and running in no time with Vue CLI.

Requires Node.js

First you must install the latest version of node.js on your machine. You’ll need to use NPM to install node modules into your project.

Install Vue CLI 2

Open your Terminal and run the following command:

npm i -g @vue/cli

Create Vue Project

Now you can use the Vue CLI to create your Vue project with the following command:

vue create your-project-name

Navigate into Project

In your terminal, navigate to your your-project-name and run the following command:

npm run serve

This will display a Local website address which you can navigate to and view your project. Any changes in your project will auto refresh the page in your browser with your updates.