Installation

Installation #

This part of the documentation will guide you through the installation process of Hugo onto a windows machine with Chocolatey.

Requirements #

  1. Windows device
  2. Internet connection
  3. Chocolatey (Windows package management)
  4. Basic command line knowledge

Installing Chocolatey #

I recommend using Chocolatey to install Hugo.

  1. Open up powershell as adminstrator.
  2. Run the following command to install Chocolatey.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  1. Wait a few moments for the command to complete.
  2. If you don’t see any errors, you should be ready to use Chocolatey.
  3. You can also run the following command to see a list of avaliable commands.
choco -?

Installing Hugo #

Installing Hugo is a very simple process with Chocolatey.

  1. Run the following command install Hugo.
choco install hugo-extended -confirm
  1. If there are no errors Hugo should be installed and you can check the version with the following command.
hugo -v
#output
Start building sites … 
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended windows/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
INFO 2022/09/04 03:56:23 syncing static files to \

                   | EN  
-------------------+-----
  Pages            | 16
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 79
  Processed images |  0
  Aliases          |  2
  Sitemaps         |  1
  Cleaned          |  0

Total in 994 ms