winget
- 1. Installpowershell
winget install -e --id Kubernetes.kubectl
Verify install
powershell
kubectl version --clientChocolatey
- 1. Installpowershell
choco install kubernetes-cli
Scoop
- 1. Installpowershell
scoop install kubectl
Direct binary
Download via curl in PowerShell or your browser.
- 1. Download (amd64)powershell
curl.exe -LO "https://dl.k8s.io/release/v1.36.1/bin/windows/amd64/kubectl.exe" - 2. Verify checksumpowershell
curl.exe -LO "https://dl.k8s.io/v1.36.1/bin/windows/amd64/kubectl.exe.sha256" $(Get-FileHash -Algorithm SHA256 kubectl.exe).Hash.ToLower() -eq $(Get-Content kubectl.exe.sha256)
Always verify your binary
Treat every command on the internet with care. Each install command here is mirrored from official Kubernetes documentation. When piping a remote script to a shell, click View script to read it first, or download and verify the binary directly using the steps on the Verify page.