macOS
brew install kubectxlocal Homebrew formula metadata
sudo port install kubectxMacPorts ports tree · sysutils/kubectx/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für kubectx in AI-Agent-Workflows.
Installation
brew install kubectxlocal Homebrew formula metadata
sudo port install kubectxMacPorts ports tree · sysutils/kubectx/Portfile · Quelle: api.github.com
sudo apk add kubectxAlpine Linux edge package indexes · kubectx · Quelle: dl-cdn.alpinelinux.org
sudo apt install kubectxDebian stable package indexes · kubectx · Quelle: deb.debian.org
nix profile install nixpkgs#kubectxnixpkgs package indexes · pkgs/by-name/ku/kubectx/package.nix · Quelle: api.github.com
sudo pacman -S kubectxArch Linux sync databases · kubectx · Quelle: geo.mirror.pkgbuild.com
sudo zypper install kubectxopenSUSE Tumbleweed package metadata · kubectx · Quelle: download.opensuse.org
choco install kubectxChocolatey community package catalog · kubectx · Quelle: community.chocolatey.org
scoop install main/kubectxScoop official bucket manifest trees · bucket/kubectx.json · Quelle: api.github.com
winget install --id ahmetb.kubectx -eWindows Package Manager source index · ahmetb.kubectx · Quelle: cdn.winget.microsoft.com
Überblick
Tool that can switch between kubectl contexts easily and create aliases
Verlauf
kubectx is a small Kubernetes command-line companion that packages two everyday workflow shortcuts: switching kubeconfig contexts with kubectx and switching namespaces with kubens. It became a widely installed kubectl-adjacent utility because it solves a repetitive operator problem without introducing a larger cluster-management framework.
The public GitHub repository was created on March 30, 2017, and the v0.1 release was published on April 25, 2017. The original project was shell-oriented; later releases added a Go implementation while retaining the simple command names and shell-completion focused workflow.
The README describes the package as 'Power tools for kubectl' and positions kubectx for faster cluster/context changes and kubens for namespace changes. That pairing made the project fit naturally beside kubectl rather than replacing it.
kubectx spread through multiple packaging ecosystems because it is useful on every workstation that touches more than one Kubernetes cluster. The official README documents installation through Homebrew, MacPorts, apt, pacman, Chocolatey, Scoop, winget, and Krew, which reflects cross-platform adoption by both Kubernetes operators and developers.
Its inclusion as Krew plugins named ctx and ns gave it a Kubernetes-native installation path, while Homebrew and Linux distribution packages made it familiar to package-manager users outside the Kubernetes plugin index.
kubectx reads the user's kubeconfig contexts and switches the active context, including a shortcut for returning to the previous context. kubens similarly updates the namespace on the active context. Optional fzf integration adds interactive selection for long cluster and namespace lists.
The tool is commonly paired with shell completions and prompt helpers such as kube-ps1 or oh-my-posh so operators can both switch context quickly and see the selected cluster or namespace before running kubectl commands.
kubectx is a package-nerd staple because it is tiny, scriptable, and heavily repackaged: one upstream repository feeds native OS package managers, Windows package managers, and Krew. It is also a good example of a CLI whose adoption comes from reducing command friction rather than adding a new control plane.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.kube/configExecutables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
kubectl-ctx | cli | globales Executable | |
kubectl-ns | cli | globales Executable | |
kubectx | cli | globales Executable | |
kubens | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/ahmetb/kubectx
Installationsmetadaten
| Paketschlüssel | brew:kubectx |
|---|---|
| Version | 0.11.0 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/kubectx |
| Homepage | https://github.com/ahmetb/kubectx |
| Repository | https://github.com/ahmetb/kubectx |
| Upstream-Dokumentation | https://github.com/ahmetb/kubectx#readme |
| Lizenz | Apache-2.0 |
| Quellarchiv | https://github.com/ahmetb/kubectx/archive/refs/tags/v0.11.0.tar.gz |
| Build-Abhängigkeiten | go |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | kubectx |
| 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 |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
kubectx 0.9.5-2+b10
Fast way to switch between clusters and namespaces in kubectl
https://github.com/ahmetb/kubectx
sudo apt install kubectxkubectx
nix profile install nixpkgs#kubectxkubectx 0.9.5-1
Fast way to switch between clusters and namespaces in kubectl
https://github.com/ahmetb/kubectx
sudo apt install kubectxkubectx 0.11.0-r2
Faster way to switch between clusters and namespaces in kubectl
sudo apk add kubectxkubectx-bash-completion 0.11.0-r2
Bash completions for kubectx
sudo apk add kubectx-bash-completionkubectx-fish-completion 0.11.0-r2
Fish completions for kubectx
sudo apk add kubectx-fish-completionkubectx-zsh-completion 0.11.0-r2
Zsh completions for kubectx
sudo apk add kubectx-zsh-completionkubectx 0.11.0-1
Utility to manage and switch between kubectl contexts and Kubernetes namespaces
https://github.com/ahmetb/kubectx
sudo pacman -S kubectxkubectx 0.11.0-1.2
Faster way to switch between clusters and namespaces in kubectl
https://github.com/ahmetb/kubectx
sudo zypper install kubectxkubectx-bash-completion 0.11.0-1.2
Bash Completion for kubectx
https://github.com/ahmetb/kubectx
sudo zypper install kubectx-bash-completionkubectx-fish-completion 0.11.0-1.2
Fish Completion for kubectx
https://github.com/ahmetb/kubectx
sudo zypper install kubectx-fish-completionkubectx-zsh-completion 0.11.0-1.2
Zsh Completion for kubectx
https://github.com/ahmetb/kubectx
sudo zypper install kubectx-zsh-completionkubectx
sudo port install kubectxkubectx
choco install kubectxmain/kubectx
scoop install main/kubectxahmetb.kubectx
winget install --id ahmetb.kubectx -eQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.