HUGO-GEN-DOC(1)

πŸ’… HUGO-GEN-DOC(1) πŸ’…

ok so this is a page from the Hugo Manual, and honestly? it's giving "behind the scenes queen." sit down bestie, we're learning about the doc generator πŸŽ€


✨ NAME ✨

hugo-gen-doc β€” generate Markdown documentation for the Hugo CLI πŸ¦‹


✨ SYNOPSIS ✨

hugo gen doc [flags] [args]

that's it. that's the whole vibe. flags, args, go. 🫢


🌸 DESCRIPTION 🌸

okay so, real talk: this command generates Markdown documentation for the Hugo CLI. πŸ’–

lowkey, it's mostly used to create up-to-date documentation of Hugo's command-line interface for https://gohugo.io/ β€” no cap, that's literally its main character job. πŸ‘‘

and here's the slay part: it creates one Markdown file per command, each one with front matter suitable for rendering in Hugo. so every command gets its own lil file, dressed up and ready to render. it's giving organized. it's giving prepared. we love to see it. ✨


πŸŽ€ OPTIONS πŸŽ€

  • --dir="/tmp/hugodoc/" β€” the directory to write the doc. yep, that's the default right there, /tmp/hugodoc/. πŸ’…
  • -h, --help[=false] β€” help for doc. the classic. when in doubt, ask for help bestie 🫢

πŸ¦‹ OPTIONS INHERITED FROM PARENT COMMANDS πŸ¦‹

these are the ones you get for free from the parent command β€” inherited, like your mom's good taste πŸ’œ

  • --clock="" β€” set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00. yes, you can time travel (for Hugo's purposes). iconic ⭐
  • --config="" β€” config file (default is hugo.yaml|json|toml). it'll find it, don't stress 😌
  • --configDir="config" β€” config dir. default's config, cute and simple πŸŽ€
  • -d, --destination="" β€” filesystem path to write files to. where the output goes πŸ“
  • -e, --environment="" β€” build environment. tell Hugo what era we're in 🌈
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern. glob girlies rise πŸ™ˆ
  • --logLevel="" β€” log level (debug|info|warn|error). pick your volume πŸ”₯
  • --noBuildLock[=false] β€” don't create .hugo_build.lock file. no lock, no problem πŸ’€
  • --quiet[=false] β€” build in quiet mode. shhh 🀫
  • -M, --renderToMemory[=false] β€” render to memory (mostly useful when running the server). in-memory, no disk, very demure 🧚
  • -s, --source="" β€” filesystem path to read files relative from. your source of truth πŸ’–
  • --themesDir="" β€” filesystem path to themes directory. all the aesthetics live here ✨

🌟 SEE ALSO 🌟

  • hugo-gen(1) β€” the parent command, go say hi πŸ‘‘

ngl, that's the whole page. nothing dangerous here, no deprecated chaos, just a very tidy documentation generator doing its thing. πŸ¦‹

okay bye ily!! this page was brought to you by Hugo 0.169.0, dated Oct 2026 β€” see you in the next manpage bestie πŸ’œβœ¨

πŸ“¦ where this page comes from