

minify minify any supported output format (HTML, XML etc.) logFile string log File path (if set, logging enabled automatically) l, -layoutDir string filesystem path to layout directory ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern gc enable to run some cleanup tasks (remove unused cache files) after the build forceSyncStatic copy all files when static is changed. e, -environment string build environment enableGitInfo add Git revision, date, author, and CODEOWNERS info to the pages disableKinds strings disable different kind of pages (home, RSS etc.) d, -destination string filesystem path to write files to c, -contentDir string filesystem path to content directory configDir string config dir (default "config")

config string config file (default is path/config.yaml|json|toml) cleanDestinationDir remove files from destination not found in static directories cacheDir string filesystem path to cache directory. F, -buildFuture include content with publishdate in the future E, -buildExpired include expired content

D, -buildDrafts include content marked as draft b, -baseURL string hostname (and path) to the root, e.g. List Listing out various types of content Gen A collection of several useful generators. Hugo is a Fast and Flexible Static Site Generatorīuilt with love by spf13 and friends in Go.Ĭompletion Generate the autocompletion script for the specified shellĬonvert Convert your content to different formatsĭeploy Deploy your site to a Cloud provider.Įnv Print Hugo version and environment info The output you see in your console should be similar to the following: hugo is the main command, used to build your Hugo site. You can test that Hugo has been installed correctly via the help command: hugo help Once you have installed Hugo, make sure it is in your PATH. See the Command Line Reference for a comprehensive view of Hugo’s CLI. The following is a description of the most common commands you will use while developing your Hugo project.
