hugo hugo builds your site
Synopsis hugo is the main command, used to build your Hugo site.
Hugo is a Fast and Flexible Static Site Generator
built with love by spf13 and friends in Go.
Complete documentation is available at http://gohugo.io/.
hugo [flags] Options -b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/
-D, --buildDrafts include content marked as draft
-E, --buildExpired include expired content
-F, --buildFuture include content with publishdate in the future
--cacheDir string filesystem path to cache directory.
hugo config Print the site configuration
Synopsis Print the site configuration, both default and custom settings.
hugo config [flags] Options -h, --help help for config Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo - hugo builds your site hugo config mounts - Print the configured file mounts Auto generated by spf13/cobra on 26-Aug-2020
hugo convert Convert your content to different formats
Synopsis Convert your content (e.g. front matter) to different formats.
See convert’s subcommands toJSON, toTOML and toYAML for more information.
Options -h, --help help for convert
-o, --output string filesystem path to write files to
--unsafe enable less safe operations, please backup first Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo - hugo builds your site hugo convert toJSON - Convert front matter to JSON hugo convert toTOML - Convert front matter to TOML hugo convert toYAML - Convert front matter to YAML Auto generated by spf13/cobra on 26-Aug-2020
hugo convert toJSON Convert front matter to JSON
Synopsis toJSON converts all front matter in the content directory
to use JSON for the front matter.
hugo convert toJSON [flags] Options -h, --help help for toJSON Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
-o, --output string filesystem path to write files to
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
--unsafe enable less safe operations, please backup first
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo convert - Convert your content to different formats Auto generated by spf13/cobra on 26-Aug-2020
hugo convert toTOML Convert front matter to TOML
Synopsis toTOML converts all front matter in the content directory
to use TOML for the front matter.
hugo convert toTOML [flags] Options -h, --help help for toTOML Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
-o, --output string filesystem path to write files to
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
--unsafe enable less safe operations, please backup first
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo convert - Convert your content to different formats Auto generated by spf13/cobra on 26-Aug-2020
hugo convert toYAML Convert front matter to YAML
Synopsis toYAML converts all front matter in the content directory
to use YAML for the front matter.
hugo convert toYAML [flags] Options -h, --help help for toYAML Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
-o, --output string filesystem path to write files to
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
--unsafe enable less safe operations, please backup first
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo convert - Convert your content to different formats Auto generated by spf13/cobra on 26-Aug-2020
hugo deploy Deploy your site to a Cloud provider.
Synopsis Deploy your site to a Cloud provider.
See https://gohugo.io/hosting-and-deployment/hugo-deploy/ for detailed
documentation.
hugo deploy [flags] Options --confirm ask for confirmation before making changes to the target
--dryRun dry run
--force force upload of all files
-h, --help help for deploy
--invalidateCDN invalidate the CDN cache listed in the deployment target (default true)
--maxDeletes int maximum # of files to delete, or -1 to disable (default 256)
--target string target deployment from deployments section in config file; defaults to the first one Options inherited from parent commands --config string config file (default is path/config.
hugo env Print Hugo version and environment info
Synopsis Print Hugo version and environment info. This is useful in Hugo bug reports.
hugo env [flags] Options -h, --help help for env Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo - hugo builds your site Auto generated by spf13/cobra on 26-Aug-2020
hugo gen A collection of several useful generators.
Synopsis A collection of several useful generators.
Options -h, --help help for gen Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml)
--configDir string config dir (default "config")
--debug debug output
-e, --environment string build environment
--ignoreVendor ignores any _vendor directory
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
-v, --verbose verbose output
--verboseLog verbose logging SEE ALSO hugo - hugo builds your site hugo gen autocomplete - Generate shell autocompletion script for Hugo hugo gen chromastyles - Generate CSS stylesheet for the Chroma code highlighter hugo gen doc - Generate Markdown documentation for the Hugo CLI.
hugo gen autocomplete Generate shell autocompletion script for Hugo
Synopsis Generates a shell autocompletion script for Hugo.
NOTE: The current version supports Bash only.
This should work for *nix systems with Bash installed.
By default, the file is written directly to /etc/bash_completion.d
for convenience, and the command may need superuser rights, e.g.:
$ sudo hugo gen autocomplete
Add --completionfile=/path/to/file flag to set alternative
file-path and name.
Logout and in again to reload the completion scripts,
hugo gen chromastyles Generate CSS stylesheet for the Chroma code highlighter
Synopsis Generate CSS stylesheet for the Chroma code highlighter for a given style. This stylesheet is needed if pygmentsUseClasses is enabled in config.
See https://help.farbox.com/pygments.html for preview of available styles
hugo gen chromastyles [flags] Options -h, --help help for chromastyles
--highlightStyle string style used for highlighting lines (see https://github.com/alecthomas/chroma) (default "bg:#ffffcc")
--linesStyle string style used for line numbers (see https://github.