https://github.com/onatm/kx
Interactively switch between kubernetes contexts without any external dependencies
https://github.com/onatm/kx
kubectl-plugins kubernetes kubernetes-context kubernetes-contexts rust
Last synced: 10 months ago
JSON representation
Interactively switch between kubernetes contexts without any external dependencies
- Host: GitHub
- URL: https://github.com/onatm/kx
- Owner: onatm
- License: mit
- Created: 2020-01-31T16:47:45.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T23:00:08.000Z (about 2 years ago)
- Last Synced: 2025-08-13T22:29:43.491Z (11 months ago)
- Topics: kubectl-plugins, kubernetes, kubernetes-context, kubernetes-contexts, rust
- Language: Rust
- Homepage:
- Size: 103 KB
- Stars: 45
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kx
`kx` is a utility to switch interactively between kubernetes contexts without any external dependencies and bash witchcraft. Written in Rust :crab:

## Installation
### From binary
You can directly [download the kx executable](https://github.com/onatm/kx/releases).
### Install from crates.io
```sh
cargo install kx
```
### Build Manually
Clone the repo and run:
```sh
cargo install --path .
```
Alternatively, run:
```sh
cargo build --release
```
then put the resulting `target/release/kx` executable on your PATH.
## Usage
```md
kx : list the contexts
kx : switch to context
kx -c, --current : show the current context name
kx -u, --unset : unset the current context
```
## Todo
- [ ] Add tests
- [ ] `bash`/`zsh`/`fish` completions
- [ ] Use [crossterm](https://github.com/crossterm-rs/crossterm) based solution instead of [skim](https://github.com/lotabout/skim)
- [ ] Windows support