HUGO-MOD-GET(1)

πŸ’… HUGO-MOD-GET(1) β€” the Hugo Manual glow-up πŸŽ€

okay bestie, welcome to the Hugo Manual entry for hugo-mod-get, and honestly? this one's a whole vibe. it's the command that goes and figures out all your dependencies for you. slay.


✨ NAME ✨

hugo-mod-get β€” resolves dependencies in your current Hugo project πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

hugo mod get [flags] [args]

🌸 DESCRIPTION 🌸

Resolves dependencies in your current Hugo project. lowkey its whole personality.

Some examples, because examples are the moment:

Install the latest version possible for a given module:

hugo mod get github.com/gohugoio/testshortcodes

Install a specific version:

hugo mod get github.com/gohugoio/testshortcodes@v0.3.0

Install the latest versions of all direct module dependencies:

hugo mod get
hugo mod get ./... (recursive)

Install the latest versions of all module dependencies (direct and indirect β€” yes, both, no cap):

hugo mod get -u
hugo mod get -u ./... (recursive)

Run go help get for more information. All flags available for go get is also relevant here. iykyk 🫢

⭐ heads up bestie: Hugo will always start out by resolving the components defined in the project configuration, provided by a _vendor directory (if no --ignoreVendorPaths flag provided), Go Modules, or a folder inside the themes directory, in that order. the order matters, don't come for me πŸ’…

See https://gohugo.io/hugo-modules/ for more information.


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help[=false] β€” help for get 🌈

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these are the hand-me-downs from the parent command and they ate, fr fr:

  • --clock="" β€” set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 ⏰
  • --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 πŸ™ˆ
  • --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 πŸ’œ

  • hugo-mod(1) β€” go say hi to the whole mod family, they're iconic

that's the whole page babes, go resolve some dependencies πŸ’…βœ¨

mwah πŸ’‹ β€” this was Hugo 0.169.0, dated Oct 2026, brought to you by the Hugo Manual πŸŽ€

πŸ“¦ where this page comes from