2025-03-14 21:59:59 -06:00
|
|
|
# kubectx
|
|
|
|
|
|
|
|
|
|
> Utility to manage and switch between `kubectl` contexts.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/kubectx>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List the contexts:
|
|
|
|
|
|
|
|
|
|
`kubectx`
|
|
|
|
|
|
|
|
|
|
- Switch to a named context:
|
|
|
|
|
|
|
|
|
|
`kubectx {{name}}`
|
|
|
|
|
|
|
|
|
|
- Switch to the previous context:
|
|
|
|
|
|
|
|
|
|
`kubectx -`
|
|
|
|
|
|
|
|
|
|
- Rename a named context:
|
|
|
|
|
|
|
|
|
|
`kubectx {{alias}}={{name}}`
|
|
|
|
|
|
|
|
|
|
- Show the current named context:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`kubectx {{[-c|--current]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete a named context:
|
|
|
|
|
|
|
|
|
|
`kubectx -d {{name}}`
|