Skip to content

heyihong/krepl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

krepl — An interactive REPL for Kubernetes

krepl is an interactive REPL for managing Kubernetes clusters and is inspired by Click. One of its goals is best-effort Click compatibility, so Click users can also use krepl in an intuitive way. It maintains context, namespace, and selected object state between commands, so you do not need to pass --context and --namespace flags or object names on every invocation. It also supports a few capabilities Click does not currently support, including editing Kubernetes objects and running without a dependency on the kubectl binary.

Code Status

build and test

Requirements

  • Go 1.25+
  • A valid kubeconfig (~/.kube/config or $KUBECONFIG)

Installation

Install directly with go install:

go install github.com/heyihong/krepl/cmd/krepl@latest

Or, from a local clone:

git clone https://github.com/heyihong/krepl.git
cd krepl
go install ./cmd/krepl

Getting Started

If you installed the binary with go install, run:

krepl

If you cloned the repository and want to run without installing, use the startup script:

bin/krepl.sh

For command discovery, type help in the repl. For detailed command help, use help <command> or <command> --help.

Demo Screenshot

Screenshot 2026-04-09 at 9 31 34 PM

About

An interactive REPL for Kubernetes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages