pm3 logopm3

TUI Guide

Navigate the interactive terminal UI for real-time process monitoring.

pm3 includes a full-featured terminal user interface (TUI) for monitoring and managing your processes in real-time.

pm3 tui

Views

The TUI has two views: Process List and Log Viewer.

Process List

The main view shows a table of all processes with real-time status updates. The header shows connection status and process counts by state.

Log Viewer

Press Enter on a process to open its log viewer. Logs stream in real-time with tab-switching between stdout and stderr.

Status Colors

ColorStatus
GreenOnline — process is healthy and running
YellowStarting — process launched, waiting for health check
RedUnhealthy / Errored — health check failed or process crashed
GrayStopped — process is not running

Keyboard Shortcuts

Process List

KeyAction
/ kMove cursor up
/ jMove cursor down
HomeJump to first process
EndJump to last process
EnterOpen log viewer for selected process
sStart selected process
xStop selected process
rRestart selected process
SStart all processes
XStop all processes
RRestart all processes
q / EscQuit TUI
Ctrl+CForce quit

Log Viewer

KeyAction
/ kScroll up one line
/ jScroll down one line
PgUpScroll up one page
PgDnScroll down one page
Home / gScroll to top
End / GScroll to bottom
TabSwitch between stdout and stderr
sStart the viewed process
xStop the viewed process
rRestart the viewed process
q / EscBack to process list
Ctrl+CForce quit

Responsive Layout

The TUI adapts to your terminal width:

  • Wide (100+ columns): Shows all columns (NAME, PID, STATUS, UPTIME, RESTARTS, CPU, MEM).
  • Medium (70+ columns): Hides CPU% and MEM columns.
  • Narrow (< 70 columns): Shows only NAME, STATUS, and UPTIME.

When to Use TUI vs CLI

Use TUI when...Use CLI when...
Monitoring multiple processes at onceRunning a quick one-off command
Watching logs in real-timeScripting or automating with --json
Interactive start/stop/restartCI/CD pipelines
Debugging startup issuesRemote/headless servers

The TUI refreshes every second and maintains a live connection to the pm3 daemon.

On this page