All apps/Hugo

Hugo

hugo

Hugo is a static site generator.

Runs as hugo|macOS, Linux, Windows|gohugo.io

Autocomplete

Fig spec, with what the manifest adds · 38 subcommands · 41 options
Published once and never changed; check the digest before caching
sha256
2e7b5c9afd2db4ec3c48f314e57abd9e68db54cf7b12cff30c2f39e03ff6af74
Size
100865 bytes
Subcommands38 subcommands
hugo check
Contains some verification checks
hugo check ulimit
Check system ulimit settings
hugo config
Print the site configuration
hugo config mounts
Print the configured file mounts
hugo convert
Convert your content to different formats
hugo convert toJSON
Convert front matter to JSON
hugo convert toTOML
Convert front matter to TOML
hugo convert toYAML
Convert front matter to YAML
hugo deploy
Deploy your site to a Cloud provider
hugo env
Print Hugo version and environment info
hugo gen
A collection of several useful generators
hugo gen autocomplete
Generate shell autocompletion script for Hugo (default outputs to stdout)
hugo gen chromastyles
Generate CSS stylesheet for the Chroma code highlighter (default outputs to stdout)
hugo gen doc
Generate Markdown documentation for the Hugo CLI (default '/tmp/hugodoc/')
hugo gen man
Generate man pages for the Hugo CLI (default 'man/')
hugo help
Help about any command
hugo import
Import your site from others
hugo import jekyll
Import from Jekyll requires two paths, e.g. ` + `hugo import jekyll jekyll_root_path target_path`
hugo list
Listing out various types of content
hugo list drafts
List all drafts
hugo list future
List all posts dated in the future
hugo list expired
List all posts already expired
hugo list all
List all posts
hugo mod
Various Hugo Modules helpers
hugo mod clean
Delete the Hugo Module cache for the current project
hugo mod get
Resolves dependencies in your current Hugo Project
hugo mod graph
Use `hugo mod graph` from the relevant module directory and it will print the dependency graph, including vendoring, module replacement or disabled status
hugo mod init
Initialize this project as a Hugo Module
hugo mod npm
Various npm helpers
hugo mod npm pack
Experimental: Prepares and writes a composite package.json file for your project
hugo mod tidy
Remove unused entries in go.mod and go.sum
hugo mod vendor
Vendor all module dependencies into the _vendor directory
hugo mod verify
Verify dependencies
hugo new
Create new content for your site
hugo new site
Create a new site (skeleton)
hugo new theme
Create a new theme
hugo server
A high performance webserver
hugo version
Print the version number of Hugo
OptionsOn hugo itself
-h--help
help for hugo
-b--baseURL
Hostname (and path) to the root, e.g. http://spf13.com/ <hostname and path>
-D--buildDrafts
Include content marked as draft (default false) <boolean>
-E--buildExpired
Include expired content (default false) <boolean>
-F--buildFuture
Include content with publishdate in the future (default false) <boolean>
--cacheDir
Filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/ <path>
--cleanDestinationDir
Remove files from destination not found in static directories (default false) <boolean>
-c--contentDir
Filesystem path to content directory <path>
-d--destination
Filesystem path to write files to <path>
--disableKinds
Disable different kind of pages (home, RSS etc.) <kind,kind>
--enableGitInfo
Add Git revision, date and author info to the pages (default false) <boolean>
--forceSyncStatic
Copy all files when static is changed (default false) <boolean>
--gc
Enable to run some cleanup tasks (remove unused cache files) after the build (default false) <boolean>
--i18n-warnings
Print missing translations (default false) <boolean>
--ignoreCache
Ignores the cache directory (default false) <boolean>
-l--layoutDir
Filesystem path to layout directory <path>
--minify
Minify any supported output format (HTML, XML etc.) (default false) <boolean>
--noChmod
Don't sync permission mode of files (default false) <boolean>
--noTimes
Don't sync modification time of files (default false) <boolean>
--path-warnings
Print warnings on duplicate target paths etc (default false) <boolean>
--poll
Set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes <milliseconds>
--print-mem
Print memory usage to screen at intervals (default false) <boolean>
--templateMetrics
Display metrics about template executions (default false) <boolean>
--templateMetricsHints
Calculate some improvement hints when combined with --templateMetrics (default false) <boolean>
-t--theme
Themes to use (located in /themes/THEMENAME/) <theme name>
--trace
Write trace to file (not useful in general) <file>
--config
Config file (default is path/config.yaml|json|toml) <file>
--configDir
Config dir (default 'config') <directory path>
--debug
Debug output (default false) <boolean>
-e--environment
Build environment <environment>
--ignoreVendor
Ignores any _vendor directory (default false) <boolean>
--ignoreVendorPaths
Ignores any _vendor for module paths matching the given Glob pattern <glob pattern>
--log
Enable Logging (default false) <boolean>
--logFile
Log File path (if set, logging enabled automatically) <file>
--quiet
Build in quiet mode (default false) <boolean>
-s--source
Filesystem path to read files relative from <file>
--themesDir
Filesystem path to themes directory <file>
-v--verbose
Verbose output (default false) <boolean>
--verboseLog
Verbose logging (default false) <boolean>
-w--watch
Watch filesystem for changes and recreate as needed (default true) <boolean>
--renderToMemory
Render to memory (only useful for benchmark testing)