commands.sh

hugo server

all

Build and serve a site with Hugo's built-in webserver.

More info →

Options (3)

-p, --portboolean

Build and serve a site on a specified port number

Example: hugo server {{[-p|--port]}} {{port_number}}
-e, --environmentboolean

Build and serve a site in the production environment with full re-renders while minifying supported formats

Example: hugo server {{[-e|--environment]}} {{production}} --disableFastRender --minify
-h, --helpboolean

Display help

Example: hugo server {{[-h|--help]}}

Examples (5)

Build and serve a site

Build and serve a site on a specified port number

hugo server [-p|--port] port_number

Build and serve a site while minifying supported output formats (HTML, XML, etc.)

hugo server --minify

Build and serve a site in the production environment with full re-renders while minifying supported formats

hugo server [-e|--environment] production --disableFastRender --minify

Display help

hugo server [-h|--help]
made by @shridhargupta | data from tldr-pages