@@ -28,49 +28,50 @@ hugo server [command] [flags]
28
28
### Options
29
29
30
30
```
31
- --appendPort append port to baseURL (default true)
32
- -b, --baseURL string hostname (and path) to the root, e.g. https://spf13.com/
33
- --bind string interface to which the server will bind (default "127.0.0.1")
34
- -D, --buildDrafts include content marked as draft
35
- -E, --buildExpired include expired content
36
- -F, --buildFuture include content with publishdate in the future
37
- --cacheDir string filesystem path to cache directory
38
- --cleanDestinationDir remove files from destination not found in static directories
39
- -c, --contentDir string filesystem path to content directory
40
- --disableBrowserError do not show build errors in the browser
41
- --disableFastRender enables full re-renders on changes
42
- --disableKinds strings disable different kind of pages (home, RSS etc.)
43
- --disableLiveReload watch without enabling live browser reload on rebuild
44
- --enableGitInfo add Git revision, date, author, and CODEOWNERS info to the pages
45
- --forceSyncStatic copy all files when static is changed.
46
- --gc enable to run some cleanup tasks (remove unused cache files) after the build
47
- -h, --help help for server
48
- --ignoreCache ignores the cache directory
49
- -l, --layoutDir string filesystem path to layout directory
50
- --liveReloadPort int port for live reloading (i.e. 443 in HTTPS proxy situations) (default -1)
51
- --minify minify any supported output format (HTML, XML etc.)
52
- --navigateToChanged navigate to changed content file on live browser reload
53
- --noBuildLock don't create .hugo_build.lock file
54
- --noChmod don't sync permission mode of files
55
- --noHTTPCache prevent HTTP caching
56
- --noTimes don't sync modification time of files
57
- --panicOnWarning panic on first WARNING log
58
- --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes
59
- -p, --port int port on which the server will listen (default 1313)
60
- --pprof enable the pprof server (port 8080)
61
- --printI18nWarnings print missing translations
62
- --printMemoryUsage print memory usage to screen at intervals
63
- --printPathWarnings print warnings on duplicate target paths etc.
64
- --printUnusedTemplates print warnings on unused templates.
65
- --renderStaticToDisk serve static files from disk and dynamic files from memory
66
- --templateMetrics display metrics about template executions
67
- --templateMetricsHints calculate some improvement hints when combined with --templateMetrics
68
- -t, --theme strings themes to use (located in /themes/THEMENAME/)
69
- --tlsAuto generate and use locally-trusted certificates.
70
- --tlsCertFile string path to TLS certificate file
71
- --tlsKeyFile string path to TLS key file
72
- --trace file write trace to file (not useful in general)
73
- -w, --watch watch filesystem for changes and recreate as needed (default true)
31
+ --appendPort append port to baseURL (default true)
32
+ -b, --baseURL string hostname (and path) to the root, e.g. https://spf13.com/
33
+ --bind string interface to which the server will bind (default "127.0.0.1")
34
+ -D, --buildDrafts include content marked as draft
35
+ -E, --buildExpired include expired content
36
+ -F, --buildFuture include content with publishdate in the future
37
+ --cacheDir string filesystem path to cache directory
38
+ --cleanDestinationDir remove files from destination not found in static directories
39
+ -c, --contentDir string filesystem path to content directory
40
+ --disableBrowserError do not show build errors in the browser
41
+ --disableFastRender enables full re-renders on changes
42
+ --disableKinds strings disable different kind of pages (home, RSS etc.)
43
+ --disableLiveReload watch without enabling live browser reload on rebuild
44
+ --enableGitInfo add Git revision, date, author, and CODEOWNERS info to the pages
45
+ --forceSyncStatic copy all files when static is changed.
46
+ --gc enable to run some cleanup tasks (remove unused cache files) after the build
47
+ -h, --help help for server
48
+ --ignoreCache ignores the cache directory
49
+ -l, --layoutDir string filesystem path to layout directory
50
+ --liveReloadPort int port for live reloading (i.e. 443 in HTTPS proxy situations) (default -1)
51
+ --minify minify any supported output format (HTML, XML etc.)
52
+ --navigateToChanged navigate to changed content file on live browser reload
53
+ --noBuildLock don't create .hugo_build.lock file
54
+ --noChmod don't sync permission mode of files
55
+ --noHTTPCache prevent HTTP caching
56
+ --noTimes don't sync modification time of files
57
+ --panicOnWarning panic on first WARNING log
58
+ --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes
59
+ -p, --port int port on which the server will listen (default 1313)
60
+ --pprof enable the pprof server (port 8080)
61
+ --printI18nWarnings print missing translations
62
+ --printMemoryUsage print memory usage to screen at intervals
63
+ --printPathWarnings print warnings on duplicate target paths etc.
64
+ --printUnusedTemplates print warnings on unused templates.
65
+ --renderSegments strings named segments to render (configured in the segments config)
66
+ --renderStaticToDisk serve static files from disk and dynamic files from memory
67
+ --templateMetrics display metrics about template executions
68
+ --templateMetricsHints calculate some improvement hints when combined with --templateMetrics
69
+ -t, --theme strings themes to use (located in /themes/THEMENAME/)
70
+ --tlsAuto generate and use locally-trusted certificates.
71
+ --tlsCertFile string path to TLS certificate file
72
+ --tlsKeyFile string path to TLS key file
73
+ --trace file write trace to file (not useful in general)
74
+ -w, --watch watch filesystem for changes and recreate as needed (default true)
74
75
```
75
76
76
77
### Options inherited from parent commands
0 commit comments