HUGO(1)

πŸ’– NAME πŸ’–

hey bestie!! welcome to the HUGO(1) page from the Hugo Manual ✨ you're gonna slay this, i promise 🫢

hugo β€” Build your project

✨ SYNOPSIS ✨

hugo [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so hugo is the main command, used to build your Hugo project. no cap, that's the whole vibe of this page πŸ’…

Hugo is a Fast and Flexible Static Site Generator built with love by spf13 and friends in Go. iconic behavior fr fr 🐹✨

Complete documentation is available at https://gohugo.io/ β€” go read it, bestie, the docs are giving main character energy πŸ“šπŸ‘‘

πŸŽ€ OPTIONS πŸŽ€

okay bestie, here's the full flag menu β€” every single one, no skips, periodt πŸ’…

  • -b, --baseURL="" β€” hostname (and path) to the root, e.g. https://spf13.com/.
  • -D, --buildDrafts[=false] β€” include content marked as draft.
  • -E, --buildExpired[=false] β€” include expired content.
  • -F, --buildFuture[=false] β€” include content with publishdate in the future.
  • --cacheDir="" β€” filesystem path to cache directory.
  • --cleanDestinationDir[=false] β€” remove stale files from destination.
  • --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.
  • -c, --contentDir="" β€” filesystem path to content directory.
  • -d, --destination="" β€” filesystem path to write files to.
  • --disableKinds=[] β€” disable different kind of pages (home, RSS etc.).
  • --enableGitInfo[=false] β€” add Git revision, date, author, and CODEOWNERS info to the pages.
  • -e, --environment="" β€” build environment.
  • --forceSyncStatic[=false] β€” copy all files when static is changed.
  • --gc[=false] β€” enable to run some cleanup tasks (remove unused cache files) after the build.
  • -h, --help[=false] β€” help for hugo.
  • --ignoreCache[=false] β€” ignore the configured file caches.
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern.
  • -l, --layoutDir="" β€” filesystem path to layout directory.
  • --logLevel="" β€” log level (debug|info|warn|error).
  • --minify[=false] β€” minify any supported output format (HTML, XML etc.).
  • --noBuildLock[=false] β€” don't create .hugo_build.lock file.
  • --noChmod[=false] β€” don't sync permission mode of files.
  • --noTimes[=false] β€” don't sync modification time of files.
  • --panicOnWarning[=false] β€” panic on first WARNING log.
  • --poll="" β€” set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes.
  • --printI18nWarnings[=false] β€” print missing translations.
  • --printMemoryUsage[=false] β€” print memory usage to screen at intervals.
  • --printPathWarnings[=false] β€” print warnings on duplicate target paths etc.
  • --printUnusedTemplates[=false] β€” print warnings on unused templates.
  • --quiet[=false] β€” build in quiet mode.
  • --renderSegments=[] β€” named segments to render (configured in the segments config).
  • -M, --renderToMemory[=false] β€” render to memory (mostly useful when running the server).
  • -s, --source="" β€” filesystem path to read files relative from.
  • --templateMetrics[=false] β€” display metrics about template executions.
  • --templateMetricsHints[=false] β€” calculate some improvement hints when combined with --templateMetrics.
  • -t, --theme=[] β€” themes to use (located in /themes/THEMENAME/).
  • --themesDir="" β€” filesystem path to themes directory.
  • --trace="" β€” write trace to file (not useful in general).
  • -w, --watch[=false] β€” watch filesystem for changes and recreate as needed.

🌈 SEE ALSO 🌈

go give these sibling pages some love too, bestie 🫢


mwah πŸ’‹ that's the whole page, bestie. it comes from Hugo 0.169.0, dated Oct 2026, and it's HUGO(1) in the Hugo Manual β€” go build something iconic and text me about it βœ¨πŸ’–

πŸ“¦ where this page comes from