Hugo Commands

Dev

To launch current site on a different port :

hugo serve -D --port 8000

-D : to build draft posts

CommandDescription
hugo --helpLists all available commands
hugo --versionShows current version
hugo gen doc --dir myfolderGenerate markdown documentation for the Hugo CLI to a specific directory
``
``
``
``

Archetypes

To create a new entry from archetypes :

hugo new posts/mynewpost.md
hugo new posts/mynewpost.md -k posts

References

gohugo.io Auto Completion