Files
cheatsheet-tldr/tldr/kubectx

26 lines
401 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectx
> Utility to manage and switch between `kubectl` contexts.
> More information: <https://github.com/ahmetb/kubectx>.
- List the contexts:
`kubectx`
- Switch to a named context:
`kubectx {{name}}`
- Switch to the previous context:
`kubectx -`
- Delete a named context:
`kubectx -d {{name}}`