---
name: "kubectx"
section: "1"
platform: "linux"
package: "kubectx"
version: "0.9.5-2+b10"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kubectx"
---

# kubectx(1)

Tool to switch between contexts (clusters) on kubectl faster

## NAME

kubectx - Tool to switch between contexts (clusters) on kubectl faster

## DESCRIPTION

### USAGE:

- kubectx

  : list the contexts

- kubectx \<NAME\>

  : switch to context \<NAME\>

- kubectx -

  : switch to the previous context

- kubectx **-c**, **--current**

  : show the current context name

- kubectx \<NEW\_NAME\>=\<NAME\>

  : rename context \<NAME\> to \<NEW\_NAME\>

- kubectx \<NEW\_NAME\>=.

  : rename current-context to \<NEW\_NAME\>

- kubectx **-u**, **--unset**

  : unset the current context

- kubectx **-d** \<NAME\> \[\<NAME...\>\] : delete context \<NAME\> ('.' for current-context)

  (this command won't delete the user/cluster entry

-

  referenced by the context entry)

- kubectx **-h**,--help

  : show this message

- kubectx **-V**,--version

  : show version
