vue-serve

Development server for Vue components

TLDR

Serve in development mode
$ vue serve
Serve specific file
$ vue serve [App.vue]
Serve on custom port
$ vue serve --port [8080]
Open browser automatically
$ vue serve --open

SYNOPSIS

vue serve [options] [entry]

DESCRIPTION

vue serve starts a development server with hot-reload for instant prototyping of Vue single-file components without a full project setup. It requires the @vue/cli-service-global package to be installed globally.In Vue CLI v5, the instant prototyping feature was removed and vue serve became an alias for npm run serve. For standalone component prototyping, Vue now recommends using Vite instead.

PARAMETERS

-o, --open

Open browser automatically
-c, --copy
Copy local URL to clipboard
-p, --port port
Port number (default: 8080)
-h, --host host
Host address (default: 0.0.0.0)

INSTALL

nix profile install nixpkgs#vue

SEE ALSO

vue(1), vue-build(1), vite(1)