HUGO-IMPORT(1)

πŸ’… HUGO-IMPORT(1) β€” the hugo import glow-up guide ✨

ok so you're reading the HUGO-IMPORT(1) page from the Hugo Manual, bestie, and honestly? it's giving "let's steal your old site's whole vibe and bring it into Hugo." let's get into it 🫢


✨ NAME ✨

hugo-import β€” literally the tool that imports a project from another system. that's the whole job. no cap. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

hugo import [command] [flags]

🌸 DESCRIPTION 🌸

okay so, hugo import imports a project from another system. iconic behaviour, honestly. πŸ”₯

but here's the tea: import requires a subcommand. it can't do the thing solo β€” it needs a main character subcommand to tell it what to import. the manual's own example is:

hugo import jekyll jekyll_root_path target_path

so yeah β€” subcommand first, then the paths, and then you're slaying. πŸ’…


πŸ“ OPTIONS πŸ“

  • -h, --help[=false] β€” help for import. the "what does this even do" button, but make it cute. πŸ’–

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

these ones get handed down from the parent commands like the world's most useful hand-me-downs. every single one, no skips: 🌈

  • --clock="" β€” set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00. yes, you can time-travel your build. 😭
  • --config="" β€” config file (default is hugo.yaml|json|toml).
  • --configDir="config" β€” config dir. that's it, that's the whole thing.
  • -d, --destination="" β€” filesystem path to write files to.
  • -e, --environment="" β€” build environment.
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern. very "not my problem" energy. πŸ™ˆ
  • --logLevel="" β€” log level (debug|info|warn|error).
  • --noBuildLock[=false] β€” don't create .hugo_build.lock file.
  • --quiet[=false] β€” build in quiet mode. shhhh 🀫
  • -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 🌟

go read these next, bestie, they're the friends of this page:

ngl the second one is lowkey the star of the show β€” it's the actual subcommand example from up in DESCRIPTION. iykyk 🧚

okay that's the whole page!! mwah πŸ’‹ this was Hugo 0.169.0, dated Oct 2026 β€” written in the HUGO-IMPORT(1) era and honestly it ate. go import something and text me about it πŸ’œβœ¨

πŸ“¦ where this page comes from