1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 21:35:25 +02:00
tldr/pages/common/kubectx.md
2025-04-25 05:54:18 +03:00

28 lines
423 B
Markdown

# kubectx
> Utility to manage and switch between `kubectl` contexts.
> More information: <https://manned.org/kubectx>.
- 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:
`kubectx {{[-c|--current]}}`
- Delete a named context:
`kubectx -d {{name}}`