hugo new site <site-name> | Creates a new Hugo site with the specified name. |
hugo new <content-path> | Creates a new content file at the specified path. |
hugo new posts/my-first-post.md | Creates a new blog post in the posts directory. |
hugo serve | Starts a local server and rebuilds the site on file changes. |
hugo serve -D | Serves the site including draft content. |
hugo | Builds the static site in the public/ directory. |
hugo -D | Builds the static site, including draft content. |
hugo server --watch | Watches for changes and automatically rebuilds the site. |
hugo server --disableFastRender | Serves the site with all pages fully rendered, useful for debugging. |
hugo config | Prints the current Hugo configuration. |
hugo env | Prints Hugo environment information, including version and OS details. |
hugo version | Displays the current Hugo version. |
hugo list drafts | Lists all draft content. |
hugo list future | Lists all future content (posts with future publish dates). |
hugo list expired | Lists all expired content (posts with past expiration dates). |
hugo gen autocomplete | Generates shell autocompletion script. |
hugo gen doc | Generates Hugo documentation. |
hugo deploy | Deploys the site using the configuration defined in config.toml . |
hugo mod init <module-path> | Initializes a new Hugo module. |
hugo mod get | Downloads the dependencies for the current Hugo module. |
hugo mod tidy | Cleans up unused module dependencies. |
hugo server -t <theme-name> | Starts a local server using a specific theme. |