hugo
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.
Read More »
hugo benchmark
hugo benchmark Benchmark Hugo by building a site a number of times.
Synopsis Hugo can build a site many times over and analyze the running process creating a benchmark.
hugo benchmark [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.
Read More »
hugo check
hugo check Contains some verification checks
Synopsis Contains some verification checks
Options -h, --help help for check Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site hugo check ulimit - Check system ulimit settings Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo check ulimit
hugo check ulimit Check system ulimit settings
Synopsis Hugo will inspect the current ulimit settings on the system. This is primarily to ensure that Hugo can watch enough files on some OSs
hugo check ulimit [flags] Options -h, --help help for ulimit Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo check - Contains some verification checks Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo config
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) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo convert
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 -s, --source string filesystem path to read files relative from --unsafe enable less safe operations, please backup first Options inherited from parent commands --config string config file (default is path/config.
Read More »
hugo convert toJSON
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) --debug debug output --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 --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-Sep-2017
Read More »
hugo convert toTOML
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) --debug debug output --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 --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-Sep-2017
Read More »
hugo convert toYAML
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) --debug debug output --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 --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-Sep-2017
Read More »
hugo env
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) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo gen
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) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -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.
Read More »
hugo gen autocomplete
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, or just source them in directly:
Read More »
hugo gen chromastyles
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.
Read More »
hugo gen doc
hugo gen doc Generate Markdown documentation for the Hugo CLI.
Synopsis Generate Markdown documentation for the Hugo CLI.
This command is, mostly, used to create up-to-date documentation of Hugo’s command-line interface for http://gohugo.io/.
It creates one Markdown file per command with front matter suitable for rendering in Hugo.
hugo gen doc [flags] Options --dir string the directory to write the doc. (default "/tmp/hugodoc/") -h, --help help for doc Options inherited from parent commands --config string config file (default is path/config.
Read More »
hugo gen man
hugo gen man Generate man pages for the Hugo CLI
Synopsis This command automatically generates up-to-date man pages of Hugo’s command-line interface. By default, it creates the man page files in the “man” directory under the current directory.
hugo gen man [flags] Options --dir string the directory to write the man pages. (default "man/") -h, --help help for man Options inherited from parent commands --config string config file (default is path/config.
Read More »
hugo import
hugo import Import your site from others.
Synopsis Import your site from other web site generators like Jekyll.
Import requires a subcommand, e.g. hugo import jekyll jekyll_root_path target_path.
Options -h, --help help for import Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site hugo import jekyll - hugo import from Jekyll Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo import jekyll
hugo import jekyll hugo import from Jekyll
Synopsis hugo import from Jekyll.
Import from Jekyll requires two paths, e.g. hugo import jekyll jekyll_root_path target_path.
hugo import jekyll [flags] Options --force allow import into non-empty target directory -h, --help help for jekyll Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo import - Import your site from others.
Read More »
hugo list
hugo list Listing out various types of content
Synopsis Listing out various types of content.
List requires a subcommand, e.g. hugo list drafts.
Options -h, --help help for list -s, --source string filesystem path to read files relative from Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site hugo list drafts - List all drafts hugo list expired - List all posts already expired hugo list future - List all posts dated in the future Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo list drafts
hugo list drafts List all drafts
Synopsis List all of the drafts in your content directory.
hugo list drafts [flags] Options -h, --help help for drafts Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --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 -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo list - Listing out various types of content Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo list expired
hugo list expired List all posts already expired
Synopsis List all of the posts in your content directory which has already expired.
hugo list expired [flags] Options -h, --help help for expired Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --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 -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo list - Listing out various types of content Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo list future
hugo list future List all posts dated in the future
Synopsis List all of the posts in your content directory which will be posted in the future.
hugo list future [flags] Options -h, --help help for future Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --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 -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo list - Listing out various types of content Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo new
hugo new Create new content for your site
Synopsis Create a new content file and automatically set the date and title. It will guess which kind of file to create based on the path provided.
You can also specify the kind with -k KIND.
If archetypes are provided in your theme or site, they will be used.
hugo new [path] [flags] Options --editor string edit new content with this editor, if provided -h, --help help for new -k, --kind string content type to create -s, --source string filesystem path to read files relative from Options inherited from parent commands --config string config file (default is path/config.
Read More »
hugo new site
hugo new site Create a new site (skeleton)
Synopsis Create a new site in the provided directory. The new site will have the correct structure, but no content or theme yet. Use hugo new [contentPath] to create new content.
hugo new site [path] [flags] Options --force init inside non-empty directory -f, --format string config & frontmatter format (default "toml") -h, --help help for site Options inherited from parent commands --config string config file (default is path/config.
Read More »
hugo new theme
hugo new theme Create a new theme
Synopsis Create a new theme (skeleton) called [name] in the current directory. New theme is a skeleton. Please add content to the touched files. Add your name to the copyright line in the license and adjust the theme.toml file as you see fit.
hugo new theme [name] [flags] Options -h, --help help for theme Options inherited from parent commands --config string config file (default is path/config.
Read More »
hugo server
hugo server A high performance webserver
Synopsis Hugo provides its own webserver which builds and serves the site. While hugo server is high performance, it is a webserver with limited options. Many run it in production, but the standard behavior is for people to use it in development and use a more full featured server such as Nginx or Caddy.
‘hugo server’ will avoid writing the rendered and served content to disk, preferring to store it in memory.
Read More »
hugo undraft
hugo undraft Undraft resets the content’s draft status
Synopsis Undraft resets the content’s draft status and updates the date to the current date and time. If the content’s draft status is ‘False’, nothing is done.
hugo undraft path/to/content [flags] Options -h, --help help for undraft Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site Auto generated by spf13/cobra on 26-Sep-2017
Read More »
hugo version
hugo version Print the version number of Hugo
Synopsis All software has versions. This is Hugo’s.
hugo version [flags] Options -h, --help help for version Options inherited from parent commands --config string config file (default is path/config.yaml|json|toml) --debug debug output --log enable Logging --logFile string log File path (if set, logging enabled automatically) --quiet build in quiet mode -v, --verbose verbose output --verboseLog verbose logging SEE ALSO hugo - hugo builds your site Auto generated by spf13/cobra on 26-Sep-2017
Read More »