Options (3)
-p, --portbooleanBuild and serve a site on a specified port number
Example:
hugo server {{[-p|--port]}} {{port_number}}-e, --environmentbooleanBuild 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, --helpbooleanDisplay 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_numberBuild and serve a site while minifying supported output formats (HTML, XML, etc.)
hugo server --minifyBuild and serve a site in the production environment with full re-renders while minifying supported formats
hugo server [-e|--environment] production --disableFastRender --minifyDisplay help
hugo server [-h|--help]made by @shridhargupta | data from tldr-pages