# Install kubernetes-cli

Kubernetes command-line interface. Version 1.36.1 via Homebrew; verified 2026-05-12.

## Install

```sh
sudo av install brew:kubernetes-cli
```

## Agent safety answer

kubernetes-cli provides kubectl, which controls Kubernetes clusters and workloads.

- **Credential access:** Reads kubeconfig, exec credentials, cluster tokens, and namespace context.
- **Remote mutation:** Can create, patch, delete, scale, and exec into cluster workloads.
- **Publish/artifact risk:** Can apply manifests that deploy or expose application artifacts.
- **Recommended control:** Gate kubectl apply, delete, patch, exec, port-forward, and context changes.
- **Agent-use guidance:** Allow get/describe with safe contexts; require approval for cluster writes and secret reads.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install kubernetes-cli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kubectl
```

  Evidence: MacPorts ports tree: sysutils/kubectl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add kubectl
```

  Evidence: Alpine Linux edge package indexes: kubectl from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install kubectl
```

  Evidence: Debian stable package indexes: kubectl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#kubectl
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ku/kubectl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S kubectl
```

  Evidence: Arch Linux sync databases: kubectl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install kubernetes-cli
```

  Evidence: Chocolatey community package catalog: kubernetes-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kubectx'

- winget (92%):

```sh
winget install --id Kubernetes.kubectl -e
```

  Evidence: Windows Package Manager source index: Kubernetes.kubectl from https://cdn.winget.microsoft.com/cache/source.msix

- Scoop (92%):

```sh
scoop install main/kubectl
```

  Evidence: Scoop official bucket manifest trees: bucket/kubectl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:kubernetes-cli
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/kubernetes-cli>
- **Version:** 1.36.1
- **Source summary:** Kubernetes command-line interface
- **Homepage:** <https://kubernetes.io/docs/reference/kubectl/>
- **Repository:** <https://github.com/kubernetes/kubernetes>
- **Upstream docs:** <https://kubernetes.io/docs/reference/kubectl>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/kubernetes/kubernetes.git>
- **Last updated:** 2026-05-12T19:04:48Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- kubectl (cli)
- kubectl (alias)

## Build Dependencies

- bash
- coreutils
- go

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 1.36.1
- Package-manager updated: 2026-05-12
- Local data status: ok
- Upstream repository: https://github.com/kubernetes/kubernetes
- info: No cached GitHub release or tag data was available.

## Notes de sécurité

cluster orchestration infrastructure.

- **Protected-tool coverage:** Plain Text Kubeconfig Secrets
- **Geiger risk:** orange / high
- cluster orchestration infrastructure

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** kubernetes-cli
- **Aliases:** kubectl, kubernetes-cli@1.36
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Chocolatey - kubernetes-cli: normalized package name match | Chocolatey community package catalog: kubernetes-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kubectx'
- winget - Kubernetes.kubectl: normalized package name match | Windows Package Manager source index: Kubernetes.kubectl from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - kubectl: installed executable or alias match | MacPorts ports tree: sysutils/kubectl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - kubectl - 1.32.3+ds-2: installed executable or alias match | Debian stable package indexes: kubectl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command-line tool for controlling Kubernetes clusters | https://kubernetes.io/
- Nix - kubectl: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ku/kubectl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - kubectl - 1.36.1-r0: installed executable or alias match | Alpine Linux edge package indexes: kubectl from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Kubernetes - kubectl | https://kubernetes.io/
- pacman - kubectl - 1.36.1-1: installed executable or alias match | Arch Linux sync databases: kubectl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A command line tool for communicating with a Kubernetes API server | https://kubernetes.io/
- Scoop - main/kubectl: installed executable or alias match | Scoop official bucket manifest trees: bucket/kubectl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related Links

- [Cloud CLI packages](https://www.automicvault.com/fr/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://www.automicvault.com/fr/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/fr/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/fr/pkg/brew/go/) - Build dependency declared by Homebrew.
- [coreutils](https://www.automicvault.com/fr/pkg/brew/coreutils/) - Build dependency declared by Homebrew.
- [bash](https://www.automicvault.com/fr/pkg/brew/bash/) - Build dependency declared by Homebrew.
- [minikube](https://www.automicvault.com/fr/pkg/brew/minikube/) - Popular package that depends on this formula.
- [krew](https://www.automicvault.com/fr/pkg/brew/krew/) - Popular package that depends on this formula.
- [kops](https://www.automicvault.com/fr/pkg/brew/kops/) - Popular package that depends on this formula.
- [devspace](https://www.automicvault.com/fr/pkg/brew/devspace/) - Popular package that depends on this formula.
- [vcluster](https://www.automicvault.com/fr/pkg/brew/vcluster/) - Popular package that depends on this formula.
- [testkube](https://www.automicvault.com/fr/pkg/brew/testkube/) - Popular package that depends on this formula.
- [tanka](https://www.automicvault.com/fr/pkg/brew/tanka/) - Popular package that depends on this formula.
- [helmsman](https://www.automicvault.com/fr/pkg/brew/helmsman/) - Popular package that depends on this formula.
- [kubectx](https://www.automicvault.com/fr/pkg/brew/kubectx/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubelogin](https://www.automicvault.com/fr/pkg/brew/kubelogin/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [cmctl](https://www.automicvault.com/fr/pkg/brew/cmctl/) - Shares av.db curated category or tags: cli, cluster-management, developer-tools, kubernetes.
- [kubecolor](https://www.automicvault.com/fr/pkg/brew/kubecolor/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubecm](https://www.automicvault.com/fr/pkg/brew/kubecm/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubectl-ai](https://www.automicvault.com/fr/pkg/brew/kubectl-ai/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubergrunt](https://www.automicvault.com/fr/pkg/brew/kubergrunt/) - Shares av.db curated category or tags: cli, developer-tools, kubectl, kubernetes.
- [kubekey](https://www.automicvault.com/fr/pkg/brew/kubekey/) - Local package facts share a topical domain. Shared terms: cli, cluster, cluster-management, developer, developer-tools.

## Sources

- Nucleus package database
- Geiger risk classifier
- secret-handling manifest
- local coverage README
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
