2b40f835273b91ad7b768899513414a177c49187
[webi-installers/.git] / kubectx / README.md
1 ---
2 title: Kubectx
3 homepage: https://github.com/ahmetb/kubectx
4 tagline: |
5   kubectx: kubectx is a utility to manage and switch between kubectl contexts.
6 ---
7
8 ### Updating `kubectx`
9
10 `webi kubectx@stable`
11
12 Use the `@beta` tag for pre-releases.
13
14 ## Cheat Sheet
15
16 > `kubectx` kubectx helps you switch between Kubernetes clusters back and forth
17
18 To run kubectx:
19
20 ```bash
21 kubectx
22 ```
23
24 ### Command line arguments
25
26 ```bash
27 USAGE:
28   kubectx                   : list the contexts
29   kubectx <NAME>            : switch to context <NAME>
30   kubectx -                 : switch to the previous context
31   kubectx -c, --current     : show the current context name
32   kubectx <NEW_NAME>=<NAME> : rename context <NAME> to <NEW_NAME>
33   kubectx <NEW_NAME>=.      : rename current-context to <NEW_NAME>
34   kubectx -d <NAME>         : delete context <NAME> ('.' for current-context)
35                               (this command won't delete the user/cluster entry
36                               that is used by the context)
37   kubectx -u, --unset       : unset the current context
38 ```