Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.26 KB

dev.md

File metadata and controls

68 lines (46 loc) · 1.26 KB
title description
Netlify CLI dev command
Run netlify dev locally

dev

Local dev server The dev command will run a local dev server with Netlify's proxy and redirect rules

Usage

netlify dev

Flags

  • debug (boolean) - Print debugging information
  • command (option) - command to run
  • port (option) - port of netlify dev
  • targetPort (option) - port of target app server
  • dir (option) - dir with static files
  • functions (option) - Specify a functions folder to serve
  • offline (boolean) - disables any features that require network access
  • live (boolean) - Start a public live session
Subcommand description
dev:exec Exec command

Examples

$ netlify dev
$ netlify dev -c "yarn start"
$ netlify dev -c hugo

dev:exec

Exec command Runs a command within the netlify dev environment, e.g. with env variables from any installed addons

Usage

netlify dev:exec

Flags

  • debug (boolean) - Print debugging information

Examples

$ netlify dev:exec npm run bootstrap