HUGO-CONVERT-TOYAML(1)

πŸ’– HUGO-CONVERT-TOYAML πŸ’–

okay bestie, so this is hugo-convert-toYAML, straight out of the Hugo Manual, and it's literally the glow-up your front matter has been waiting for ✨


🌸 NAME 🌸

hugo-convert-toYAML β€” the icon that converts your front matter to YAML πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

hugo convert toYAML [flags] [args]

πŸŽ€ DESCRIPTION πŸŽ€

So here's the tea πŸ“ β€” toYAML goes through every single bit of front matter in the content directory and converts it all to use YAML for the front matter. That's it. That's the whole vibe. Every file, all at once, no cap. Your TOML and JSON front matter are getting a makeover and the result is giving main character energy πŸ‘‘


✨ OPTIONS ✨

  • -h, --help[=false] β€” help for toYAML, your little safety blanket when you're confused 🫢

πŸ”₯ OPTIONS INHERITED FROM PARENT COMMANDS πŸ”₯

these bad boys come from the parent command, so they're technically not toYAML's, but they're still invited to the party πŸ’œ

  • --clock="" β€” sets the clock Hugo uses, like --clock 2021-11-06T22:30:00.00+09:00 ⏰
  • --config="" β€” config file, and the default is hugo.yaml|json|toml
  • --configDir="config" β€” the config dir, defaulting to config
  • -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|error
  • --noBuildLock[=false] β€” don't create the .hugo_build.lock file, if the lock is not your thing πŸ™ˆ
  • -o, --output="" β€” filesystem path to write files to
  • --quiet[=false] β€” build in quiet mode, for when you simply cannot with the noise 🀫
  • -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
  • --unsafe[=false] β€” enables less safe operations πŸ’€ please backup first, like genuinely, do not skip this step, i am begging
ok real talk β€” that --unsafe one is not playing around. back up your stuff first, bestie, fr fr 😭

🌈 SEE ALSO 🌈


and that's the whole page, no notes πŸ’– this was Hugo 0.169.0, dated Oct 2026, and it's literally iconic, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from