HUGO-MOD-GRAPH(1)

πŸ’– NAME πŸ’–

hugo-mod-graph β€” print a module dependency graph. This one is from the Hugo Manual, bestie, and it's here to spill the tea on your module deps. πŸ’…


✨ SYNOPSIS ✨

hugo mod graph [flags] [args]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this command prints a module dependency graph, and it also gives you the status deets for each module β€” like whether it's disabled or vendored. ✨

Heads up, bestie: for vendored modules, the version shown is the version that's listed, not the one from go.mod. No cap. πŸ’–


πŸŽ€ OPTIONS πŸŽ€

  • -b, --baseURL="" β€” hostname (and path) to the root, like https://spf13.com/ 🌈
  • --cacheDir="" β€” filesystem path to the cache directory
  • --clean[=false] β€” delete the module cache for dependencies that fail verification
  • -c, --contentDir="" β€” filesystem path to the content directory
  • -h, --help[=false] β€” help for graph
  • --renderSegments=[] β€” named segments to render (set up in the segments config)
  • -t, --theme=[] β€” themes to use (located in /themes/THEMENAME/)

🌸 OPTIONS INHERITED FROM PARENT COMMANDS 🌸

  • --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 the themes directory

πŸ‘‘ SEE ALSO πŸ‘‘

  • hugo-mod(1) β€” the sibling page, go peek 🫢

🌟 That's the whole page, bestie. This iconic little manual moment is from Hugo 0.169.0, dated Oct 2026. Slay. πŸ’–βœ¨
πŸ“¦ where this page comes from