Terminal UI Guide

The KubeGraf terminal UI provides a fast, keyboard-driven interface for managing Kubernetes clusters. Inspired by vim, it's designed for engineers who prefer staying in the terminal.

Launching the TUI

kubegraf

The TUI automatically connects to your current kubectl context.

Key Capabilities

⚡ Keyboard-Driven

Vim-inspired navigation with j/k movement, gg/G jumps, and modal editing. All operations can be performed without touching the mouse.

🔍 Real-Time Updates

Watch mode automatically refreshes resource states. See pod status changes, deployment rollouts, and events as they happen.

📊 Multi-Resource Views

Switch between pods, deployments, services, nodes, and more using tab navigation or number keys 1-9.

🚀 Quick Actions

View logs, shell into containers, describe resources, edit YAML, and port-forward—all with single keypresses.

Essential Keyboard Shortcuts

Navigation & Movement

KeyAction
j / Move down
k / Move up
gGo to top
GGo to bottom
Ctrl+dPage down
Ctrl+uPage up

Resource Actions

KeyAction
EnterView details / YAML
lView logs
sShell into container
dDescribe resource
eEdit (opens $EDITOR)
yCopy YAML

Tab & Resource Switching

KeyResource
TabNext tab
Shift+TabPrevious tab
1Pods
2Deployments
3Services
4Ingresses
5-9ConfigMaps, Secrets, Nodes...

Search & Filtering

KeyAction
/Start search/filter
EscClear filter
nChange namespace
cChange context/cluster
rRefresh
?Show help
qQuit

Workload Operations

KeyAction
RRestart (rollout restart)
SScale replicas
pPort forward
DeleteDelete (with confirmation)

Log Viewer Controls

KeyAction
fToggle follow mode
wToggle line wrap
tToggle timestamps
/Search in logs
n / NNext/Prev match

Pro tip: Press ? at any time to see context-sensitive keybindings for the current view.

Why Use the Terminal UI?

🖥️

Remote-Friendly

Works perfectly over SSH even on slow connections. Terminal-based means minimal bandwidth.

Fast & Efficient

Keyboard shortcuts are faster than mouse clicks. Power users can navigate clusters instantly.

🔧

Scriptable

Integrates with tmux, screen, and other terminal multiplexers for advanced workflows.

Customization

You can customize keybindings in the configuration file. See Configuration for details.