kubectx

Install command:
brew install kubectx

Tool that can switch between kubectl contexts easily and create aliases

https://github.com/ahmetb/kubectx

License: Apache-2.0

Development: Pull requests

Formula JSON API: /api/formula/kubectx.json

Formula code: kubectx.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 0.11.0
head ⚡️ HEAD

Depends on when building from source:

go 1.27.4 Open source programming language to build simple/reliable/efficient software

Binaries: kubectl-ctx, kubectl-ns, kubectx, kubens

GitHub Packages downloads:

Last 30 days25,392
Downloads1,528,892
Analytics install events (30 days)3,380
Downloads / install events (30 days)7.5×

Source: GitHub Packages, fetched 2026-11-14T00:23:46Z. Analytics dates: 2026-10-15 to 2026-11-14. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs3,3758,01151,594
Installs (--HEAD)51398
Installs on Request3,2097,76150,674
Installs on Request (--HEAD)51398
Build Errors1