Inside a Vue CLI project, @vue/cli-service installs a binary named vue-cli-service.
You can access the binary directly as vue-cli-service in npm scripts, or as ./node_modules/.bin/vue-cli-service from the terminal.
NPM run dev
This is what you will see in the package.json of a project using the default preset:.
You can invoke these scripts using either npm or Yarn:.
NPM run build
If you have npx available (should be bundled with an up-to-date version of npm), you can also invoke the binary directly with:.
You can run scripts with additional features using the GUI with the vue ui command. Here is the Webpack Analyzer from the GUI in action:. Copying to clipboard might not work on a few platforms. If copying was successful, (copied to clipboard) is displayed next to the local dev server URL.
The vue-cli-service serve command starts a dev server (based on webpack-dev-server) that comes with Hot-Module-Replacement (HMR) working out of the box.