Quickly manage Kubernetes contexts.
kubectl must be installed.
Kontext is POSIX compliant.
-
switchcurrent the context from selectable menukontextkontext -f <kubeconfig_file> -
deletea context and its associated cluster/userkontext -d <context_name> -
display help
kontext --help
- Bash
KONTEXT_CLI="/home/$USER/.kube/kontext.sh" \ && curl https://raw.githubusercontent.com/ggtrd/kontext/refs/heads/main/kontext.sh -o $KONTEXT_CLI \ && chmod +x $KONTEXT_CLI \ && echo "alias kontext='$KONTEXT_CLI'" >> /home/$USER/.bashrc \ && source /home/$USER/.bashrc - Fish
set -g KONTEXT_CLI "/home/$USER/.kube/kontext.sh" \ && curl https://raw.githubusercontent.com/ggtrd/kontext/refs/heads/main/kontext.sh -o $KONTEXT_CLI \ && chmod +x $KONTEXT_CLI \ && echo "alias kontext '$KONTEXT_CLI'" >> /home/$USER/.config/fish/config.fish \ && source /home/$USER/.config/fish/config.fish
./kontext.sh
This project is licensed under the MIT License. See the LICENSE file for details.
