1HUGO(1)                           Hugo Manual                          HUGO(1)
2
3
4

NAME

6       hugo - hugo builds your site
7
8
9

SYNOPSIS

11       hugo [flags]
12
13
14

DESCRIPTION

16       hugo is the main command, used to build your Hugo site.
17
18
19       Hugo is a Fast and Flexible Static Site Generator built with love by
20       spf13 and friends in Go.
21
22
23       Complete documentation is available at ⟨http://gohugo.io/⟩.
24
25
26

OPTIONS

28       -b, --baseURL=""
29           hostname (and path) to the root, e.g.  ⟨http://spf13.com/
30
31
32       -D, --buildDrafts[=false]
33           include content marked as draft
34
35
36       -E, --buildExpired[=false]
37           include expired content
38
39
40       -F, --buildFuture[=false]
41           include content with publishdate in the future
42
43
44       --cacheDir=""
45           filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
46
47
48       --cleanDestinationDir[=false]
49           remove files from destination not found in static directories
50
51
52       --config=""
53           config file (default is path/config.yaml|json|toml)
54
55
56       --configDir="config"
57           config dir
58
59
60       -c, --contentDir=""
61           filesystem path to content directory
62
63
64       --debug[=false]
65           debug output
66
67
68       -d, --destination=""
69           filesystem path to write files to
70
71
72       --disableKinds=[]
73           disable different kind of pages (home, RSS etc.)
74
75
76       --enableGitInfo[=false]
77           add Git revision, date and author info to the pages
78
79
80       -e, --environment=""
81           build environment
82
83
84       --forceSyncStatic[=false]
85           copy all files when static is changed.
86
87
88       --gc[=false]
89           enable to run some cleanup tasks (remove unused cache files) after
90       the build
91
92
93       -h, --help[=false]
94           help for hugo
95
96
97       --i18n-warnings[=false]
98           print missing translations
99
100
101       --ignoreCache[=false]
102           ignores the cache directory
103
104
105       -l, --layoutDir=""
106           filesystem path to layout directory
107
108
109       --log[=false]
110           enable Logging
111
112
113       --logFile=""
114           log File path (if set, logging enabled automatically)
115
116
117       --minify[=false]
118           minify any supported output format (HTML, XML etc.)
119
120
121       --noChmod[=false]
122           don't sync permission mode of files
123
124
125       --noTimes[=false]
126           don't sync modification time of files
127
128
129       --path-warnings[=false]
130           print warnings on duplicate target paths etc.
131
132
133       --quiet[=false]
134           build in quiet mode
135
136
137       --renderToMemory[=false]
138           render to memory (only useful for benchmark testing)
139
140
141       -s, --source=""
142           filesystem path to read files relative from
143
144
145       --templateMetrics[=false]
146           display metrics about template executions
147
148
149       --templateMetricsHints[=false]
150           calculate some improvement hints when combined with
151       --templateMetrics
152
153
154       -t, --theme=[]
155           themes to use (located in /themes/THEMENAME/)
156
157
158       --themesDir=""
159           filesystem path to themes directory
160
161
162       --trace=""
163           write trace to file (not useful in general)
164
165
166       -v, --verbose[=false]
167           verbose output
168
169
170       --verboseLog[=false]
171           verbose logging
172
173
174       -w, --watch[=false]
175           watch filesystem for changes and recreate as needed
176
177
178

SEE ALSO

180       hugo-config(1), hugo-convert(1), hugo-env(1), hugo-gen(1),
181       hugo-import(1), hugo-list(1), hugo-new(1), hugo-server(1),
182       hugo-version(1)
183
184
185
186Hugo 0.55.6                        May 2019                            HUGO(1)
Impressum