HUGO-NEW-CONTENT(1)

πŸ’– hugo-new-content β€” it's the Hugo manual, bestie (section 1) πŸ’–

✨ NAME ✨

hugo-new-content β€” create new content πŸŽ€ like, it makes a fresh content file for you, no cap


🌸 SYNOPSIS 🌸

hugo new content [path] [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you run this and it creates a new content file for you, and it automatically sets the date and the title. literally does the boring part for you. it will guess which kind of file to create based on the path you provide β€” iykyk πŸ‘‘

you can also just tell it the kind yourself with -k KIND if you don't trust the vibes of the guessing. it's giving "I'll handle it" but also "you can handle it if you want."

if archetypes are provided in your theme or project, they will be used. those are the blueprint vibes 🧚

⚠️ real talk though: ensure you run this within the root directory of your project. like, the root. don't be out here in some random subfolder, it will not slay.

πŸ’… OPTIONS πŸ’…

  • -b, --baseURL="" β€” hostname (and path) to the root, e.g. https://spf13.com/ 🌈
  • --cacheDir="" β€” filesystem path to cache directory πŸ“
  • -c, --contentDir="" β€” filesystem path to content directory
  • --editor="" β€” edit new content with this editor, if provided ✏️ (like, if you actually fill this in)
  • -f, --force[=false] β€” overwrite file if it already exists πŸ’€ yes queen, bulldoze it
  • -h, --help[=false] β€” help for content 🫢
  • -k, --kind="" β€” content type to create πŸ‘‘
  • --renderSegments=[] β€” named segments to render (configured in the segments config) πŸŽ€
  • -t, --theme=[] β€” themes to use (located in /themes/THEMENAME/) 🌸

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these ones come from the parent command, so like, they're hand-me-downs but make it fashion πŸ’œ

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

⭐ SEE ALSO ⭐

  • hugo-new(1) β€” go check out the parent, it's iconic too πŸ‘‘

Hugo 0.169.0 Β· Oct 2026 β€” that's the version and date bestie, and that's the whole page 🫢✨ go make some content, you're gonna eat πŸ’…πŸ”₯

πŸ“¦ where this page comes from