Skip to main content

An integrated shell for working effectively with multiple Kubernetes clusters

Project description

PyPI version PyPI pyversions License


No Need to Type kubectl Every Time

Kbsh accepts the same commands as Kubectl, except you don’t need to provide the kubectl prefix.

If you want to run a shell command rather than a Kubectl command, you can add the ! prefix to your command.

Switch Contexts/Namespaces on the Fly

You can provide --context (or -c) option to switch the context, and --namespace (or -n) option to switch the namespace, before executing the command.

Show Contexts and Namespaces at Toolbar

One man names a resource, many have to remember it. It may help to display all contexts and namespaces at the bottom of the shell so that no need to use config get-contexts and get ns.

Aliases and Short Options

Built-in aliases:

  • g -> get

  • d -> describe

  • e -> exec -i -t

  • l `` -> ``logs

  • lt -> logs --tail

  • ld -> logs deploy/

Built-in short options:

  • -t -> --tail

  • -c -> --context

Although, do not support configuration yet.

Highlight Output

Upstream Features

Kbsh is forked from kube-shell, and keeps all its features.


pip install kbsh


Kbsh has been working great for my personal use case. But given that its aim is to increase productivity and easy of use, it can be improved in a number of ways. If you have suggestions for improvements or new features, or run into a bug please open an issue here.


Kbsh is forked from kube-shell.

Kube-shell is inspired by AWS Shell, SAWS and uses awesome Python prompt toolkit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kbsh-0.1.1.tar.gz (31.1 kB view hashes)

Uploaded source

Built Distribution

kbsh-0.1.1-py2.py3-none-any.whl (38.2 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page