(Part 2) Install Hugo Extended on Windows using winget
Use winget to easily install and update the latest system-wide version of Hugo on Windows via the command line. Winget (Windows Package Manager) is Microsoft’s official command-line tool for installing software on Windows, much like brew on macOS or apt on Linux.
Step 1: Open PowerShell
Search for PowerShell in the Start Menu and open it.
Step 2: Install Git (if not already installed)
winget install --id Git.Git -e --source wingetIf
gitis not yet installed, the command above will install it.
Check Git installation:
git --versionYou should see a version number if Git is correctly installed.
Step 3: Install Hugo Extended
Uninstall any previous Hugo version first to avoid conflicts.
winget uninstall Hugo.Hugo.ExtendedAfter removal, check:
hugo versionIf Hugo has been succesfully removed from your system, you should see the following error
message: hugo : The term 'hugo' is not recognized....
Next, install Hugo Extended by means of the following command:
winget install Hugo.Hugo.ExtendedStep 4: Confirm Installation
After install, check:
hugo versionYou should see a version number if Hugo is correctly installed. E.g., `hugo v0.148.2-40c3d8233d4b123eff74725e5766fc6272f0a84d+extended linux/amd64 BuildDate=...
Look for +extended in the output.
Hugo Extended is now installed on Windows!
Done installing? Proceed to the Launch Site page or go back to Hugo Tutorial: Start Here.