refactor: finish moving ssh-* scripts to own installers
[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 To update or switch versions, run `webi kubectx@stable` (or `@v0.9`, `@beta`,
9 etc).
10
11 ## Cheat Sheet
12
13 > `kubectx` kubectx helps you switch between Kubernetes clusters back and forth
14
15 To run kubectx:
16
17 ```bash
18 kubectx
19 ```
20
21 ### Command line arguments
22
23 ```bash
24 USAGE:
25   kubectx                   : list the contexts
26   kubectx <NAME>            : switch to context <NAME>
27   kubectx -                 : switch to the previous context
28   kubectx -c, --current     : show the current context name
29   kubectx <NEW_NAME>=<NAME> : rename context <NAME> to <NEW_NAME>
30   kubectx <NEW_NAME>=.      : rename current-context to <NEW_NAME>
31   kubectx -d <NAME>         : delete context <NAME> ('.' for current-context)
32                               (this command won't delete the user/cluster entry
33                               that is used by the context)
34   kubectx -u, --unset       : unset the current context
35 ```