HUGO-NEW-THEME(1)

πŸ’– HUGO-NEW-THEME πŸ’–

okay so bestie, this is a page from the Hugo Manual and it's literally all about hugo-new-theme β€” the glow-up command that births a brand new theme for you ✨


✨ SYNOPSIS ✨

hugo new theme [name] [flags]

πŸŽ€ DESCRIPTION πŸŽ€

So here's the vibe: you run this and it creates a new theme with whatever name you gave it, tucked right into the ./themes directory. no cap 🫢

And it's not giving you some sad empty folder either β€” it generates a functional theme, like a whole working one, complete with template examples and sample content. it's giving starter-pack energy, it's giving "here's your theme bestie, go off" πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • --format="toml" β€” your preferred file format, and the choices are toml, yaml or json. default is "toml" because of course it is πŸ“
  • -h, --help[=false] β€” help for theme. press it when you need the tea β˜•

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these ones are inherited, so they're coming from the parent command β€” still iconic, still yours to use πŸ’œ

  • --clock="" β€” sets the clock that Hugo uses, e.g. --clock 2021-11-06T22:30:00.00+09:00 ⭐
  • --config="" β€” the config file (default is hugo.yaml|json|toml) πŸ“„
  • --configDir="config" β€” the config dir. default "config", we love a default πŸŽ€
  • -d, --destination="" β€” filesystem path to write files to πŸ—‚οΈ
  • -e, --environment="" β€” the build environment 🌸
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern πŸ™ˆ
  • --logLevel="" β€” log level, and your options are debug, info, warn or error πŸ”₯
  • --noBuildLock[=false] β€” don't create the .hugo_build.lock file. chaotic, but valid πŸ’€
  • --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. yes, that themes directory πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

  • hugo-new(1) β€” the parent, the main character, go say hi 🫢

ngl bestie, if you forget every flag on this page, just remember hugo new theme [name] and the ./themes directory will handle the rest. fr fr 🀍

this cutie was brought to you by Hugo 0.169.0, dated Oct 2026 β€” go forth and theme, you absolute icon πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from