Installation #
This part of the documentation will guide you through the installation process of Hugo onto a windows machine with Chocolatey.
Requirements #
- Windows device
- Internet connection
- Chocolatey (Windows package management)
- Basic command line knowledge
Installing Chocolatey #
I recommend using Chocolatey to install Hugo.
- Open up powershell as adminstrator.
- 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'))
- Wait a few moments for the command to complete.
- If you don’t see any errors, you should be ready to use Chocolatey.
- 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.
- Run the following command install Hugo.
choco install hugo-extended -confirm
- 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