Skip to content

Commit 4b05eab

Browse files
authored
Merge pull request #37192 from maciejporebski/patch-1
Add Kubectl Install Instructions Using Winget
2 parents 9892beb + 5254265 commit 4b05eab

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

content/en/docs/tasks/tools/install-kubectl-windows.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Using the latest compatible version of kubectl helps avoid unforeseen issues.
2020
The following methods exist for installing kubectl on Windows:
2121

2222
- [Install kubectl binary with curl on Windows](#install-kubectl-binary-with-curl-on-windows)
23-
- [Install on Windows using Chocolatey or Scoop](#install-on-windows-using-chocolatey-or-scoop)
23+
- [Install on Windows using Chocolatey, Scoop, or Winget](#install-nonstandard-package-tools)
2424

2525
### Install kubectl binary with curl on Windows
2626

@@ -76,9 +76,9 @@ The following methods exist for installing kubectl on Windows:
7676
If you have installed Docker Desktop before, you may need to place your `PATH` entry before the one added by the Docker Desktop installer or remove the Docker Desktop's `kubectl`.
7777
{{< /note >}}
7878

79-
### Install on Windows using Chocolatey or Scoop
79+
### Install on Windows using Chocolatey, Scoop, or Winget {#install-nonstandard-package-tools}
8080

81-
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager or [Scoop](https://scoop.sh) command-line installer.
81+
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager, [Scoop](https://scoop.sh) command-line installer, or [Winget](https://winget.run/) package manager.
8282

8383
{{< tabs name="kubectl_win_install" >}}
8484
{{% tab name="choco" %}}
@@ -91,6 +91,11 @@ If you have installed Docker Desktop before, you may need to place your `PATH` e
9191
scoop install kubectl
9292
```
9393
{{% /tab %}}
94+
{{% tab name="winget" %}}
95+
```powershell
96+
winget install -e --id Kubernetes.kubectl
97+
```
98+
{{% /tab %}}
9499
{{< /tabs >}}
95100

96101

0 commit comments

Comments
 (0)