HUGO-NEW(1)

πŸ’– NAME πŸ’–

hugo-new β€” bestie's very own way to create new content ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

hugo new [command] [flags]

πŸŽ€ DESCRIPTION πŸŽ€

Okay so picture this: you want a brand-new content file, and you want it now. hugo new literally makes one for you and automagically sets the date and the title. It's giving "I got you, bestie" energy 🫢

The way it works is it guesses which kind of file to create based on the path you hand it. Lowkey psychic, highkey helpful.

You can also just tell it straight up what kind you want with -k KIND β€” no guessing required, you're the main character here πŸ‘‘

And if archetypes are provided in your theme or project? It will use them. Periodt. That's the whole vibe 🌸

⚠️ Real talk: make sure you run this within the root directory of your project. Not in some random subfolder, not in your downloads, not on your desktop (we've all been there 😭). Root. Directory. Of. Your. Project. πŸ’…

✨ OPTIONS ✨

  • -h, --help[=false] β€” help for new. Your little "wait what does this do again" safety net, no judgment πŸ™ˆ

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

These are the ones that come from the parent command β€” they're not yours, but they show up to the party anyway and honestly they're iconic πŸ‘‘

  • --clock="" β€” set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00. Yes, actual time travel, we love to see it ⭐
  • --config="" β€” config file (default is hugo.yaml|json|toml). Tell Hugo which config to read, or let it pick its fave πŸ’œ
  • --configDir="config" β€” config dir. Default is literally config, she's confident πŸŽ€
  • -d, --destination="" β€” filesystem path to write files to. Where the output goes to live 🏑
  • -e, --environment="" β€” build environment. Sets the whole mood, iykyk 🌸
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern. Not me ignoring things on purpose 😌
  • --logLevel="" β€” log level (debug|info|warn|error). How chatty Hugo gets with you πŸ’¬
  • --noBuildLock[=false] β€” don't create .hugo_build.lock file. For the risk-takers πŸš«πŸ”’
  • --quiet[=false] β€” build in quiet mode. Shhh, she's focusing 🀫
  • -M, --renderToMemory[=false] β€” render to memory (mostly useful when running the server). In the brain, not on the disk 🧠✨
  • -s, --source="" β€” filesystem path to read files relative from. Your origin point πŸ—ΊοΈ
  • --themesDir="" β€” filesystem path to themes directory. Home of all the cute aesthetics 🎨

πŸ”₯ SEE ALSO πŸ”₯


And that's the whole page, bestie πŸ’… This little gem is from Hugo 0.169.0, dated Oct 2026 β€” go forth and create new content, you absolute icon πŸ‘‘πŸ’–

πŸ“¦ where this page comes from