Quickstart
Install
The only requirement is kubectl on your PATH.
The install script fetches the newest build, checks it against the release’s checksums, and installs it without sudo:
curl -fsSL https://jzills.github.io/kx/install.sh | shHomebrew, krew, uv, pipx and a standalone binary are on the install page.
List something
kx get podsPods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m56s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 15s 7 nightly-failing-29914553-mztvk 0/1 Error 0 4s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (29s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m56s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 15s 7 nightly-failing-29914553-mztvk 0/1 Error 0 4s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (29s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m56s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 15s 7 nightly-failing-29914553-mztvk 0/1 Error 0 4s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (29s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m57s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 16s 7 nightly-failing-29914553-mztvk 0/1 Error 0 5s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (30s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m57s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 16s 7 nightly-failing-29914553-mztvk 0/1 Error 0 5s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (30s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m57s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 16s 7 nightly-failing-29914553-mztvk 0/1 Error 0 5s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (30s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m57s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 16s 7 nightly-failing-29914553-mztvk 0/1 Error 0 5s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (30s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m57s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 16s 7 nightly-failing-29914553-mztvk 0/1 Error 0 5s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (30s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m58s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 17s 7 nightly-failing-29914553-mztvk 0/1 Error 0 6s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (31s ago) 17d
Pods · diagnostics · 11 items X NAME READY STATUS RESTARTS AGE 1 api-badimage-b97d844fd-5s8jd 0/1 ImagePullBackOff 0 17d 2 billing-flaky-b7878b475-4hj7b 1/1 Running 10 (10h ago) 17d 3 cache-oom-cc849dbdb-n2hnn 0/1 CrashLoopBackOff 1382 (3m58s ago) 17d 4 frontend-notready-7fc649587b-8qzm5 0/1 Running 4 (10h ago) 17d 5 frontend-notready-7fc649587b-tj4vj 0/1 Running 4 (10h ago) 17d 6 nightly-failing-29914553-c25bg 0/1 Error 0 17s 7 nightly-failing-29914553-mztvk 0/1 Error 0 6s 8 report-unschedulable-57d7f65ccc-fph56 0/1 Pending 0 124d 9 web-healthy-7c7f586dcb-trsrc 1/1 Running 2 (10h ago) 8d 10 web-healthy-7c7f586dcb-zxhsj 1/1 Running 2 (10h ago) 8d 11 worker-crashloop-bc7cb7b55-pwpg8 0/1 CrashLoopBackOff 1378 (31s ago) 17d
That is kubectl’s own table with a column in front of it. The numbers are the whole idea: they are what every other command takes.
Use the numbers
kx describe 3
kx logs 2 -f --tail=100
kx yaml 1
kx exec 2The index is resolved against the listing you just ran, so 3 means the third row of it — the cache-oom Pod above — until you list something else.
Several at once, and ranges:
kx describe 1 3 5 # three resources
kx delete 3..5 # a range
kx delete ..3 # from the start
kx delete 5.. # to the end of the listingDrop the get
Known kinds can be spelled directly, kubectl’s shorthands included:
kx pods
kx deploy -n kube-system
kx svc -m apiAn integer after a kind relists just that row — kx po 3.
Anything kx doesn’t recognize as a kind falls back to kx get <resource>, so a CRD you have installed works the same way.
Narrow the listing
The --match/-m flag filters rows by name substring, and any flag kx doesn’t recognize goes through to kubectl untouched:
kx pods -m api
kx pods -n prod -l app=web
kx pods -AA listing made with -A is indexed like everything else: each row remembers the namespace it came from, so kx logs 7 reaches into a namespace you aren’t in.
See where you are
kx stateThat prints the listing your indexes currently resolve against, and the namespace and context it was read in. Recent listings are kept as a history, ten by default — see state and history for moving between them.
Where next
- Indexes and selection — everything the numbers can do
- State and history — what an index resolves against, and when it stops
- Configuration —
~/.kx/config.tomland the environment overrides - Themes — including the one this page is drawn in