docs/content/en/installation/windows.md
[!note] Hugo v0.121.1 and later require at least Windows 10 or Windows Server 2016.
{{% include "/_common/installation/01-editions.md" %}}
{{% include "/_common/installation/02-prerequisites.md" %}}
{{% include "/_common/installation/03-prebuilt-binaries.md" %}}
Chocolatey is a free and open-source package manager for Windows. To install the extended edition of Hugo:
choco install hugo-extended
Scoop is a free and open-source package manager for Windows. To install the extended edition of Hugo:
scoop install hugo-extended
Winget is Microsoft's official free and open-source package manager for Windows. To install the extended edition of Hugo:
winget install Hugo.Hugo.Extended
To uninstall the extended edition of Hugo:
winget uninstall --name "Hugo (Extended)"
To build Hugo from source you must install:
[!note] The Bash-style
KEY=VALUE cmdsyntax used in the macOS and Linux build-from-source instructions does not work in PowerShell or Command Prompt. Use the code block matching your shell.
To build and install the standard edition:
PowerShell:
$env:CGO_ENABLED=0; go install github.com/gohugoio/hugo@latest
Command Prompt:
set CGO_ENABLED=0
go install github.com/gohugoio/hugo@latest
{{< new-in v0.159.2 />}}
To build and install the deploy edition:
PowerShell:
$env:CGO_ENABLED=0; go install -tags withdeploy github.com/gohugoio/hugo@latest
Command Prompt:
set CGO_ENABLED=0
go install -tags withdeploy github.com/gohugoio/hugo@latest
To build and install the extended edition, first install a C compiler such as GCC or Clang and then run the following command:
PowerShell:
$env:CGO_ENABLED=1; go install -tags extended github.com/gohugoio/hugo@latest
Command Prompt:
set CGO_ENABLED=1
go install -tags extended github.com/gohugoio/hugo@latest
To build and install the extended/deploy edition, first install a C compiler such as GCC or Clang and then run the following command:
PowerShell:
$env:CGO_ENABLED=1; go install -tags extended,withdeploy github.com/gohugoio/hugo@latest
Command Prompt:
set CGO_ENABLED=1
go install -tags extended,withdeploy github.com/gohugoio/hugo@latest
[!note] See these detailed instructions to install GCC on Windows.
| Prebuilt binaries | Package managers | Build from source | |
|---|---|---|---|
| Easy to install? | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Easy to upgrade? | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Easy to downgrade? | :heavy_check_mark: | :heavy_check_mark: 1 | :heavy_check_mark: |
| Automatic updates? | :x: | :x: 2 | :x: |
| Latest version available? | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |