mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 11:41:54 +00:00
26 lines
511 B
Plaintext
26 lines
511 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# hugo server
|
|
|
|
> Build and serve a site with Hugo's built-in webserver.
|
|
> More information: <https://gohugo.io/commands/hugo_server/>.
|
|
|
|
- Build and serve a site:
|
|
|
|
`hugo server`
|
|
|
|
- Build and serve a site on a specified port number:
|
|
|
|
`hugo server --port {{port_number}}`
|
|
|
|
- Build and serve a site while minifying supported output formats (HTML, XML, etc.):
|
|
|
|
`hugo server --minify`
|
|
|
|
- Display help:
|
|
|
|
`hugo server --help`
|