kx context
Lists kubeconfig contexts, or switches to one by index.
The listing is saved to a slot of its own, outside the kx get history, so an index here keeps meaning the same entry however much you have listed since. kx state --targets shows the slot without listing again.
Usage
kx context [OPTIONS] [index]Aliases
kx contexts
Arguments
| Argument | Description |
|---|---|
[index] | Row number from the current listing; run kx state to see it |
Global options
| Option | Description |
|---|---|
--no-color | Disable styled output |
-h, --help | Show this message and exit |
Examples
kx context
kx context 2