Hugo its a very useful framework to build websites in the geekiest way possible but at the same time I consider it very simple (depending on your skill set).

This is a list of the most useful and only commands that I use:


Create a new site

Note: Remember you need to be in the parent folder, it will create the new folder and all the Hugo files inside of it.

> hugo new site my-blog


Create a new post or a new page

> hugo new posts/hugo-helpful-commands.md

or

> hugo projects.md


Preview in localhost including drafts

> hugo server -D


Build the ‘compiled’ version

> hugo