nuxi dev


npx nuxi dev [rootDir] [--clipboard] [--open, -o] [--no-clear] [--port, -p] [--host, -h] [--https] [--ssl-cert] [--ssl-key]

The dev command starts a development server with hot module replacement at http://localhost:3000

OptionDefaultDescription
rootDir.The root directory of the application to serve.
--clipboardfalseCopy URL to clipboard.
--open, -ofalseOpen URL in browser.
--no-clearfalseDoes not clear the console after startup.
--port, -p3000Port to listen.
--host, -hlocalhostHostname of the server.
--httpsfalseListen with https protocol with a self-signed certificate by default.
--ssl-certnullSpecify a certificate for https.
--ssl-keynullSpecify the key for the https certificate.

The port and host can also be set via NUXT_PORT, PORT, NUXT_HOST or HOST environment variables.

This command sets process.env.NODE_ENV to development.