mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
418 B
Markdown
21 lines
418 B
Markdown
![]() |
# 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`
|