https://github.com/stenstromen/kubectx-edit
Small software utility to efficiently manage multiple kubeconfig contexts.
https://github.com/stenstromen/kubectx-edit
cli context kubeconfig kubernetes management rust tool
Last synced: 4 months ago
JSON representation
Small software utility to efficiently manage multiple kubeconfig contexts.
- Host: GitHub
- URL: https://github.com/stenstromen/kubectx-edit
- Owner: Stenstromen
- License: mit
- Created: 2024-09-12T14:15:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-15T15:39:09.000Z (6 months ago)
- Last Synced: 2025-12-18T21:10:22.560Z (6 months ago)
- Topics: cli, context, kubeconfig, kubernetes, management, rust, tool
- Language: Rust
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KubeCTX-Edit

Small software utility to efficiently manage multiple kubeconfig contexts.
Add, Remove and Edit entries in kubeconfig
- [KubeCTX-Edit](#kubectx-edit)
- [Installation](#installation)
- [Homebrew](#homebrew)
- [Download and Run Binary](#download-and-run-binary)
- [Build from source](#build-from-source)
- [Build and Run](#build-and-run)
- [Kubeconfig in non-default location](#kubeconfig-in-non-default-location)
- [Editor](#editor)
## Installation
### Homebrew
```bash
brew install stenstromen/tap/kubectx-edit
```
### Download and Run Binary
- For **MacOS** and **Linux**: Checkout and download the latest binary from [Releases page](https://github.com/Stenstromen/kubectx-edit/releases/latest/)
- For **Windows**: Build the binary yourself.
### Build from source
## Build and Run
```bash
cargo build --release --
./target/release/kubectx-edit
```
## Kubeconfig in non-default location
If your kubeconfig is in a non-default location, you can set the `KUBECONFIG` environment variable to the path of your kubeconfig file.
```bash
export KUBECONFIG=/path/to/your/kubeconfig
```
## Editor
You can set the `EDITOR` environment variable to the editor of your choice. (default `vi`)
```bash
export EDITOR=nano
```