Install Kubectx On A Debian, Ubuntu, Kali And MacOS

Install Kubectx On A Debian, Ubuntu, Kali And MacOS

kubectx

Utility to manage and switch between `kubectl` contexts.

Maintainer: ChangZhuo Chen (u9673u660cu502c)



Section: devel

Install kubectx

  • Debian apt-get install kubectx Click to copy
  • Ubuntu apt-get install kubectx Click to copy
  • Kali Linux apt-get install kubectx Click to copy
  • macOS brew install kubectx Click to copy

Utility to manage and switch between `kubectl` contexts.

How to use kubectx?

Below are few example commands for kubectx that you can use in the terminal.

List the contexts:
kubectxClick to copy
Switch to a named context:
kubectx nameClick to copy
Switch to the previous context:
kubectx -Click to copy
Delete a named context:
kubectx -d nameClick to copy
To install the latest version of kubectx in your favorite operating system just copy the kubectx installation command from above and paste it into terminal. It will download and install the latest version of kubectx 2026 package in your OS.