🍃 Leaf

Vue

Initialization

# No installation required
npm create vue@latest # Based on webpack

More at Creating a Vue Application.

Installation

npm i -g @vue/cli # Based on vite, which is based on rollup

More at Installation (cli.vuejs.org).

Usage

vue-cli-service <command> [options]
# Use with npx
npx vue-cli-service <command> [option]
# Use with npm scripts
npm run serve -- [option]
npm run build -- [option]
// package.json e.g.:
{
  "scripts": {
    "serve": "vue-cli-service serve --port <port-number> --open",
    "build": "vue-cli-service build"
  }
}

Commands:

More at (cli.vuejs.org):