HUGO-MOD(1)
π HUGO-MOD(1) β the Hugo Manual, module edition π
ok so you found the hugo-mod page, bestie β welcome to the part of the Hugo Manual where we manage modules β¨ (yes, the header line up top is literally HUGO-MOD(1), we're being official today π
)
πΈ SYNOPSIS πΈ
hugo mod [command] [flags]
π¦ DESCRIPTION π¦
so basically there's a whole bunch of little helpers here that help you manage the modules in your project's dependency graph π«Ά and lowkey they're iconic, but there's a catch:
most operations in here require a Go version installed on your system (>= Go 1.12) and the relevant VCS client (typically Git) π
good news though β you do not need any of that if you're only operating on modules inside /themes, or if you've vendored them via hugo mod vendor β¨ no cap, that's the chill path.
also, important vibe check: Hugo will always start out by resolving the components defined in the project configuration, provided by, in this exact order:
- a
_vendordirectory (if no--ignoreVendorPathsflag provided) π - Go Modules
- or a folder inside the
themesdirectory
periodt, that's the order π
want more? see https://gohugo.io/hugo-modules/ for more information π
β¨ OPTIONS β¨
-h,--help[=false]β help for mod π₯Ί (the classic "what does this even do" button)
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the ones you get for free from the parent command, no need to thank her π
--clock=""β set the clock used by Hugo, e.g.--clock 2021-11-06T22:30:00.00+09:00β° (yes, you can time-travel your build, main character energy fr)--config=""β config file (default ishugo.yaml|json|toml) π--configDir="config"β config dir-d,--destination=""β filesystem path to write files to π¦-e,--environment=""β build environment--ignoreVendorPaths=""β ignores any_vendorfor module paths matching the given Glob pattern π (careful, this changes what Hugo resolves!)--logLevel=""β log level (debug|info|warn|error) π₯--noBuildLock[=false]β don't create.hugo_build.lockfile--quiet[=false]β build in quiet mode π€«-M,--renderToMemory[=false]β render to memory (mostly useful when running the server) π§-s,--source=""β filesystem path to read files relative from--themesDir=""β filesystem path to themes directory πΈ
π SEE ALSO π
your little module girlies, go say hi π
hugo(1)hugo-mod-clean(1)hugo-mod-get(1)hugo-mod-graph(1)hugo-mod-init(1)hugo-mod-npm(1)hugo-mod-tidy(1)hugo-mod-vendor(1)hugo-mod-verify(1)
and that's the whole page, bestie, you ate that π«Ά mwah π
signing off with the receipts: this was Hugo 0.169.0, dated Oct 2026 β iconic, timeless, no notes πβ
π¦ where this page comes from
- arch rolling: hugo 0.169.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms