KUBECTX(1)

✨ NAME ✨

hiii bestie, meet kubectx β€” the tool that switches between contexts (aka clusters) on kubectl, but faster. like, actually faster. πŸ’¨

πŸ’– DESCRIPTION πŸ’–

Manage and switch between kubectl contexts. that's it, that's the whole vibe β€” you've got contexts, and this lil icon moves you between them before you can even finish typing the long version. obsessed. 🫢


πŸŽ€ USAGE πŸŽ€

  • kubectx β€” list the contexts. no args, no stress, just a cute lil list. πŸ“‹
  • kubectx <NAME> β€” switch to context <NAME>. ✨
  • kubectx - β€” switch to the previous context. the uno reverse, the "wait go back", the main character move. πŸ”
  • kubectx -s, --shell <NAME> β€” start a shell scoped to context <NAME>.
  • kubectx -s, --shell β€” no name given? then it lets you interactively select a context to start a shell. you pick, bestie. 🧚
  • kubectx -r, --readonly <NAME> β€” start a read-only shell for context <NAME>. look, don't touch. very demure, very mindful. πŸŽ€
  • kubectx -r, --readonly β€” interactively select a context for a read-only shell. same energy, you choose.
  • kubectx -c, --current β€” show the current context name. who am i rn πŸͺž
  • kubectx -u, --unset β€” unset the current context. okay bye!!! πŸ‘‹
  • kubectx <NEW_NAME>=<NAME> β€” rename context <NAME> to <NEW_NAME>.
  • kubectx <NEW_NAME>=. β€” rename current-context to <NEW_NAME>.
  • kubectx -d <NAME> [<NAME...>] β€” delete context <NAME> (. for current-context).
heads up bestie, this command won't delete the user/cluster entry referenced by the context entry. so it deletes the context and leaves the user and cluster entries behind, untouched. it's giving "i said what i said". πŸ’€
  • kubectx -h, --help β€” show this message.
  • kubectx -V, --version β€” show version. 🏷️

and that's the whole page, slay 🌈

this was the kubectx 0.11.0-1 manual page, dated April 2026, filed under User Commands, page KUBECTX(1). go switch some contexts, you got this. πŸ’…πŸŒΈ

πŸ“¦ where this page comes from