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,488
Downloads1,546,278
Analytics install events (30 days)3,092
Downloads / install events (30 days)8.2×

Source: GitHub Packages, fetched 2026-12-04T01:05:55Z. Analytics dates: 2026-11-04 to 2026-12-04. 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,0908,08251,442
Installs (--HEAD)21089
Installs on Request2,8177,69650,369
Installs on Request (--HEAD)21089
Build Errors1