• CLI cheatsheet - For more info on running Vue commands.
  • Quickstart cheatsheet

Install globally

$ npm install -g @vue/cli

Or

$ yarn global add @vue/cli

Then run using:

$ vue COMMAND

Install as project package

$ npm install @vue/cli

Or

$ yarn add @vue/cli

That will be installed as vue in your package.json dependencies.

Execute it in your node_modules as:

$ npx vue-cli-service COMMAND

Or set up in your package.json scripts.

{
  "scripts": {
    "serve": "vue-cli-service serve"
  }
}

Then run as:

$ npm run serve