Skip to main content

Installing Hugo and Its Toolchain

View SourceEdit this page (external link)
Published:

This page explains how to install Hugo on each operating system and configure the PATH environment variable it requires.

Hugo Editions Link to this heading

Hugo ships in three editions.

  • Standard: the base edition. It does not include Sass/SCSS processing.
  • Extended: the edition recommended for most use cases. It includes built-in Sass/SCSS compilation. As of v0.153.0 (external link), it is identical to the standard edition.
  • Extended/Deploy: builds on Extended and adds the hugo deploy command, which lets you deploy directly to cloud storage services.

If you are not sure which one to pick, install the Extended edition.

Installation Methods Link to this heading

You can install Hugo through a package manager or by downloading the binary manually. As explained in Understanding Hugo, Hugo is a single binary executable, so you can also download it and run it directly. Here is how the two approaches compare.

  • Package manager: manages your system packages in one place, but you need to learn how to use the manager. Some managers make it hard to downgrade or pin a version.
  • Manual binary: you install and manage versions by hand. It takes a bit more effort, but comes with no restrictions.


Pick the package manager for your operating system. The PATH is set automatically.

Verifying the Installation Link to this heading

Whichever method you used, run the following command to check.

hugo version
  • If you see a version number, the installation succeeded. You can move on to the next step.
  • If you see command not found (macOS/Linux) or is not recognized as an internal or external command (Windows), the PATH was not set up correctly. Restart your terminal and try again, or check that you copied and ran the commands above correctly.

The following tools are not required for Hugo to run, but you will commonly use them when building a Hugo site in practice.

  • Git (external link): version control software, used when installing themes or managing your project.
  • Go (external link): Hugo also supports managing project dependencies more flexibly through Go modules. This means your site project itself becomes a Go module, which is required to use the hugo mod family of commands.

Accessibility settings

Font size