LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vue-serve

Development server for Vue components

TLDR

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

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)

SEE ALSO

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

Copied to clipboard
Kai