Hugo Commands


Specify the Hugo Source Directory Path - Command Option (hugo server --source)

If you specify the Hugo command option “–source” and set it as a command alias (alias), you can run the command from anywhere.

Specify the Port When Starting the Hugo Server - Command Option (hugo server --port)

You can specify the port when starting the Hugo server. This is useful when running multiple Hugo servers.

When Page Changes Are Not Reflected in the Hugo Server (hugo server --ignoreCache)

This article explains the option that prevents cache from remaining when pages change in the Hugo server.

Configure the Same Theme Directory Across Multiple Hugo Sites (themesDir)

When creating multiple Hugo sites and a shared theme on a local PC, you can develop them while referencing the same theme directory.

Check Unused Templates or Shortcodes in Hugo (hugo --printUnusedTemplates)

This article explains how to check unused templates or shortcodes in Hugo.

How to Start and Stop Multiple Hugo Servers at Once

This article explains how to start multiple Hugo sites with a single command.