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:

  1. a _vendor directory (if no --ignoreVendorPaths flag provided) πŸ“
  2. Go Modules
  3. or a folder inside the themes directory

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 is hugo.yaml|json|toml) πŸŽ€
  • --configDir="config" β€” config dir
  • -d, --destination="" β€” filesystem path to write files to πŸ¦‹
  • -e, --environment="" β€” build environment
  • --ignoreVendorPaths="" β€” ignores any _vendor for 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.lock file
  • --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 πŸ’–


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