--- title: Kubectx homepage: https://github.com/ahmetb/kubectx tagline: | kubectx: kubectx is a utility to manage and switch between kubectl contexts. --- To update or switch versions, run `webi kubectx@stable` (or `@v0.9`, `@beta`, etc). ## Cheat Sheet > `kubectx` kubectx helps you switch between Kubernetes clusters back and forth To run kubectx: ```bash kubectx ``` ### Command line arguments ```bash USAGE: kubectx : list the contexts kubectx : switch to context kubectx - : switch to the previous context kubectx -c, --current : show the current context name kubectx = : rename context to kubectx =. : rename current-context to kubectx -d : delete context ('.' for current-context) (this command won't delete the user/cluster entry that is used by the context) kubectx -u, --unset : unset the current context ```