Interactive Workflow with nf tui and nf follow
nf tui gives you a keyboard-driven, k9s-style terminal explorer over every app in your
project—combining state inspection, attribute diffs, dependency graph visualization,
approvals, and live run monitoring in one window. nf follow brings the same live run
visibility to any plain terminal or CI viewer.
For the full list of key bindings, actions, and config keys, see
nf tui and nf follow.
1. Launch nf tui and pick your look
From any project directory with [tool.nf] in pyproject.toml:
# Open the explorer on all configured apps
nf tui
# Open directly on one app with typed inputs
nf tui --app web ++env=staging
# Inspect production safely with mutations disabled
nf tui --app web ++env=prod --readonly
Skins and keymaps
Choose between the classic k9s look and the charm skin (auto-detecting light or dark
terminal background), and between k9s or emacs keymaps:
nf tui --skin charm --keymap emacs
Persist your personal preferences across every project in ~/.config/nf/config.toml:
[tui]
skin = "charm"
keymap = "k9s"
graph-lines = "bundled"
Protect production apps project-wide in pyproject.toml so nobody accidentally triggers an
apply without explicitly toggling :readonly:
[tool.nf.tui]
readonly = ["prod_web", "prod_data"]
2. Core views to know
Open the command prompt with : (or the command palette with ctrl-p) to jump between
views:
| View | What you see | Useful when |
|---|---|---|
| Overview | App state summary, resource count, last plan/run, whether Python sources changed | Landing on an app to check health at a glance |
:resources |
Every resource with type, stack, status, and side-by-side detail pane on wide screens | Filtering resources, inspecting attributes, marking targets with space |
:graph |
Layered dependency graph showing upstream prerequisites and downstream dependents in distinct colors | Understanding blast radius before applying, or watching a live run color each box by status (running, completed, failed, deferred) |
:runs |
Active and recent applies/destroys (both local and remote runs sharing the state backend) | Checking unseen run outcomes (● 1 failed :runs) or inspecting live YAML |
:commands |
Exact nf CLI command equivalent for every action taken in the TUI |
Copying a reproducible CLI command into a runbook or CI pipeline |
:messages |
Complete history of flash notices and errors | Reviewing an error toast after it fades |
Press e on any resource to jump straight to the exact Python file and line where it was
declared in $EDITOR. Press w to watch source files and auto-replan on save.
3. Safe planning, approvals, and targeted runs
- Plan: Press
p(ordin emacs keymap) to plan the app; select any changed resource to inspect its attribute diff (sensitive attributes stay masked until revealed). - Target specific resources: Mark one or more resources in
:resourceswithspaceto plan, taint, or destroy only the marked subset (--target). - Approve safely: Applying or destroying opens a confirmation dialog listing the exact
changes—and ignores accidental type-ahead keystrokes immediately after the dialog opens.
You must explicitly type
yesto apply. - Stop cleanly: Press
ctrl-kduring a running apply to trigger a graceful stop (request_stop): in-flight resources finish and record state, unstarted ones never begin, and yourrecovery_strategyapplies.
4. Follow a remote or CI apply (nf follow and nf tui follow)
By default (run_status = true), every direct nf apply, nf destroy, or nf deploy
writes a lightweight live status record beside its state (<state>.run.json on document
backends; operation rows on PostgreSQL graph state).
Watch a teammate's or CI job's active run from your own terminal:
# Stream progress in a plain terminal and exit with the run's exit code
nf follow --app web ++env=prod
# Open the TUI directly on the active run and follow each subsequent run
nf tui follow --app web ++env=prod
(Pass --no-run-status or set run_status = false in [tool.nf.config] to disable
live status files.)
5. Record and replay sessions (--record / replay)
Capture a deterministic, state-masked recording of a TUI session to share in bug reports, incident postmortems, or team demos—replay needs no cloud credentials and changes nothing:
# Record a session (values from state are masked automatically)
nf tui --app web --record incident-2026-11.nftui
# Replay the exact screen sequence offline on any machine
nf tui replay incident-2026-11.nftui