title | description |
---|---|
Netlify CLI dev command |
Run netlify dev locally |
Local dev server The dev command will run a local dev server with Netlify's proxy and redirect rules
Usage
netlify dev
Flags
command
(option) - command to runport
(option) - port of netlify devfunctionsPort
(option) - port for functions servertargetPort
(option) - port of target app serverdir
(option) - dir with static filesfunctions
(option) - Specify a functions folder to serveoffline
(boolean) - disables any features that require network accesslive
(boolean) - Start a public live session
Subcommand | description |
---|---|
dev:exec |
Exec command |
Examples
$ netlify dev
$ netlify dev -c "yarn start"
$ netlify dev -c hugo
Exec command Runs a command within the netlify dev environment, e.g. with env variables from any installed addons
Usage
netlify dev:exec
Examples
$ netlify exec npm run bootstrap