macOS
brew install kubectxprovider-native install command
brew / rank 669
Tool that can switch between kubectl contexts easily and create aliases. Version 0.11.0 via Homebrew; verified 2026-07-27.
install
brew install kubectxprovider-native install command
overview
Tool that can switch between kubectl contexts easily and create aliases
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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
| Command | Kind | Exposure | Note |
|---|---|---|---|
kubectl-ctx | executable | indexed executable | Discovered from the local executable index. |
kubectl-ns | executable | indexed executable | Discovered from the local executable index. |
kubectx | executable | indexed executable | Discovered from the local executable index. |
kubens | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:kubectx |
|---|---|
| Version | 0.11.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/ahmetb/kubectx |
| Repository | https://github.com/ahmetb/kubectx |
| Last updated | 2026-07-27T21:58:45+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.