Hugo Commands
Dev
To launch current site on a different port :
hugo serve -D --port 8000
-D
: to build draft posts
Command | Description |
---|---|
hugo --help | Lists all available commands |
hugo --version | Shows current version |
hugo gen doc --dir myfolder | Generate 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