HUGO-CONVERT(1)

πŸ’… hugo-convert(1) β€” the Hugo Manual, bestie edition πŸŽ€

okay so real talk, this is hugo-convert from the Hugo Manual and it's literally the glow-up station for your front matter ✨


🌸 NAME 🌸

hugo-convert β€” converts your front matter to a whole other format, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

hugo convert [command] [flags]

✨ DESCRIPTION ✨

Convert front matter to another format. That's it, that's the vibe 🫢

But listen β€” the real magic is in the subcommands. Go peek at toJSON, toTOML and toYAML for the full tea, because that's where you actually pick your destination format 😌


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help[=false] β€” help for convert. your little "wait what does this do again" button πŸ™ˆ
  • -o, --output="" β€” filesystem path to write files to. default is empty, so it goes wherever it goes πŸ’«
  • --unsafe[=false] β€” enable less safe operations, please backup first. BESTIE. BACK. UP. FIRST. 😭 this one is literally telling you it's the risky one, so don't come crying to me when your files are gone πŸ’€

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these are the hand-me-downs from hugo itself and honestly they ate 🌈

  • --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. defaults to config 🎯
  • -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 πŸ’–

like, go read those too, iykyk πŸ‘€


ok that's the whole page, you're so welcome πŸ’…βœ¨

and for the cute sign-off: this little masterpiece is Hugo 0.169.0, dated Oct 2026 β€” periodt πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from