# b4n

> Terminal user interface for Kubernetes API management with resource CRUD, logs, shell access, and port forwarding

Stars: 109 · Categories: Dev Tools

- Repository: https://github.com/fioletoven/b4n
- Page: https://www.trmn.sh/tools/b4n

## Install

- Build from source: `git clone https://github.com/fioletoven/b4n.git && cd b4n && cargo build --release`

## Overview

b4n is a terminal user interface (TUI) for the Kubernetes API, built with Rust using kube-rs and ratatui crates. It provides a k9s-inspired interface for viewing, filtering, and managing Kubernetes resources directly from the terminal. The tool supports complete CRUD operations on Kubernetes resources, along with the ability to view events, logs, and open shell sessions or attach to containers.

The TUI includes advanced filtering capabilities with namespace, name, annotation, and label prefixes that can be combined using logical operators. Users can enable port forwarding for containers, copy YAML configurations and logs to clipboard, and decode secrets. The interface supports mouse interaction across all views and includes configurable key bindings.

Developers and DevOps engineers working with Kubernetes clusters will find b4n useful for day-to-day cluster management tasks. The tool requires a Nerd Font for proper display and stores configuration, themes, and history in ~/.b4n directory. It supports context-specific settings and customizable themes for different environments.

### Installation

```bash
# via Build from source
git clone https://github.com/fioletoven/b4n.git && cd b4n && cargo build --release
```

![b4n TUI demo](https://media.trmn.sh/cached/77dcc34c7a92dd6231baeb9d85fbeec09bca50adebf553df746d46a91971f79b.gif)

## Alternatives

- [textual-astview](https://www.trmn.sh/tools/textual-astview.md): TUI tool for exploring Python Abstract Syntax Trees (AST) with interactive tree view and source highlighting (Python, 100 stars)
- [act3](https://www.trmn.sh/tools/act3.md): CLI tool that displays the status of the last 3 GitHub Actions workflow runs for repositories (83 stars)
- [awsesh](https://www.trmn.sh/tools/awsesh.md): TUI and CLI tool for managing AWS SSO sessions with fuzzy search, account switching, and shell integration. (Go, 143 stars)
- [termframe](https://www.trmn.sh/tools/termframe.md): Non-interactive terminal emulator that executes commands and exports their output as SVG screenshots. (Rust, 144 stars)
- [cargo-selector](https://www.trmn.sh/tools/cargo-selector.md): Cargo subcommand that provides an interactive TUI for selecting and executing binary or example targets in Rust projects (74 stars)

---

Canonical: https://www.trmn.sh/tools/b4n
