commands.sh

kubectx

all

Utility to manage and switch between `kubectl` contexts.

More info →

Options (1)

-c, --currentboolean

Show the current named context

Example: kubectx {{[-c|--current]}}

Examples (6)

List the contexts

Switch to a named context

kubectx name

Switch to the previous context

Rename a named context

kubectx alias=name

Show the current named context

kubectx [-c|--current]

Delete a named context

kubectx -d name
made by @shridhargupta | data from tldr-pages