nf tui
Browse, plan, apply and destroy a project's apps in a terminal UI laid out like
k9s: a header with the context and the keys of the current view, a framed
table, breadcrumbs, and a : command line to move between views. ctrl-p searches every view
and action, with the key that does it.
Synopsis
nf tui [OPTIONS]
nf tui [OPTIONS] follow [--app APP] [--run ID] [--graph]
nf tui [--skin SKIN] replay PATH [--speed N]
What It Shows
nf tui reads the apps configured in [tool.nf]:
- Hybrid apps (the focus) are read through their execution engine, as
nf plan --appdoes: the configured state backend (local, S3, PostgreSQL...), the stacks and resources the app declares, and, on a graph state backend, its operations, history and checkpoints. - Legacy apps are read from their synthesized stacks under
.nf.out/:nf.tf.jsonfor what each stack declares, and its Terraform state (terraform.tfstate, orterraform show -jsonfor an initialized remote backend). Plans and applies run the Terraform or OpenTofu CLI.
Each resource row compares configuration with state:
| Status | Meaning |
|---|---|
ready |
declared and in state |
pending |
declared, not in state yet: the next apply creates it |
orphaned |
in state, no longer declared: the next apply destroys it |
tainted |
in state and marked for replacement |
data |
a declared data source's last read |
A declared resource depends on what its configuration refers to and on its depends_on (for
a legacy app, the ${...} references and depends_on of its synthesized block); a resource
only in state, on what state recorded at its last apply.
Plans are shown with an attribute diff for each change, and applied from the plan view; see
Applying and Destroying. A change deferred to apply time (its
provider cannot be configured until values known only then exist) is a row of its own,
… create in the deferred color, its INFO saying why and what it waits for; d describes it.
A run marks it deferred: applied in a later round with apply_deferred, else left for the
next plan. Taint and untaint edit state after a
confirmation. Apps can be made read-only; see Read-Only Apps.
Views
Go to a view with : and its name or an alias. Tab completes.
| Command | Aliases | Shows |
|---|---|---|
:apps |
app, a, ctx |
configured apps; :app NAME switches to one |
:overview |
ov, home, pulse |
the app at a glance; see Overview |
:stacks |
stack, st |
the app's stacks: declared, in state, pending, orphaned, tainted, and the stacks each depends on |
:resources [STACK] |
res, rs, r |
resources in configuration and state |
:graph [STACK] |
gr, deps, dag |
resources as a dependency graph; see Graph |
:outputs [STACK] |
out, o |
output values (sensitive values masked) |
:providers [STACK] |
prov, pv |
provider configurations, versions and resource counts |
:plan [STACK] |
pl, diff |
a plan of the app, or of one stack |
:operations [all] |
ops, op |
graph operations, unresolved by default |
:history [ADDRESS] |
hist, hi |
graph history, newest first |
:checkpoints |
cp |
graph history checkpoints |
:runs |
run |
the applies and destroys started in this session, and those of other processes |
:commands |
log, cmd |
what the explorer did, each as the nf command that does the same; see Command Log |
:messages |
msg, errors |
what the explorer said, newest first: a flash goes away, its message stays here |
:readonly |
ro |
make the app read-only, or allow changes to it again; see Read-Only Apps |
Enter drills down: an app to its overview, the overview to the stacks, a stack to its resources, a provider to the resources using it, and anything else to its description.
Keys
Every key runs an action. The keys below are the default k9s keymap's (k9s's keys, vim's
moves) and the emacs keymap's (emacs's control and alt keys, magit's letters); a project moves
single keys (Keymaps). The header, the help, the palette and the explorer's
messages name the keys of the keymap in use. Elsewhere on this page, keys are the k9s keymap's.
| Action | k9s | emacs | What it does |
|---|---|---|---|
command |
: |
: |
go to a view |
filter |
/ |
/ ctrl-s |
filter rows (case-insensitive; !text keeps rows without it; what matched is marked, and the title counts [2/14]); in a document, search |
back |
esc |
esc q ctrl-g |
close the prompt, clear the search, focus, filter or marks, or go back |
help |
? |
? h |
help: this view's keys, every action's, the commands |
palette |
ctrl-p |
alt-x |
the command palette: views, the keys of this view, apps, stacks, skins |
refresh |
ctrl-r |
g |
read state again (re-plan in a plan view); the app's code too when its sources changed |
enter |
enter |
enter |
drill down; on the graph, focus on the box |
describe |
d |
tab |
describe the selection (a plan's change: its diff) |
yaml |
y |
y |
the selection as YAML |
plan |
p |
d |
plan the app, the selected or narrowed stack, or what is marked |
apply |
a |
a |
in a plan, apply it (after the approval) |
destroy |
ctrl-d |
k |
destroy the app selected in :apps, or the stack selected (or the stacks marked) in :stacks (after the approval) |
stop |
ctrl-k |
ctrl-k |
stop the run shown (or selected in :runs) after a confirmation: what is in flight finishes, nothing else starts |
taint |
t |
t |
taint the selected resource, or the marked ones |
untaint |
u |
u |
untaint the selected resource, or the marked ones |
history |
h |
l |
history of the selected resource (graph state backend) |
outputs |
o |
o |
the outputs of the selected stack |
info |
i |
i |
in a plan, its summary and notes; in a run, its result |
logs |
l |
L |
in a run, its logs (followed while it runs) |
reveal |
x |
x |
reveal or hide sensitive values in a document |
next_match |
n |
alt-n |
next search match |
previous_match |
N |
alt-p |
previous search match |
copy |
c |
alt-w |
copy the selected address, the marked addresses, the open document, a logged command or a message |
mark |
space |
m |
mark the selected stack or resource; see Marks |
edit |
e |
e |
open the line declaring the selected resource in $VISUAL or $EDITOR (hybrid apps) |
watch |
w |
w |
watch the app's sources: a change reloads the app and re-plans a plan view |
detail |
v |
v |
show or hide the detail pane |
wide |
ctrl-w |
ctrl-w |
show every column however narrow the terminal (k9s's wide view); again, the columns that fit |
run_graph |
G |
G |
in a run's view or on a run in :runs: the graph, colored by how the run's resources went |
graph_lines |
b |
b |
the graph's lines between layers: bundled, all, shared, in turn; see Lines between layers |
commands |
- | $ |
the command log (:commands) |
redraw |
ctrl-l |
ctrl-l |
draw the whole screen again (after another program wrote over it) |
quit |
ctrl-c |
ctrl-c |
quit (also :q) |
down |
down j |
down n ctrl-n |
down |
up |
up k |
up p ctrl-p |
up |
page_down |
ctrl-f pagedown |
ctrl-v pagedown |
page down |
page_up |
ctrl-b pageup |
alt-v pageup |
page up |
top |
g home |
< home |
top |
left |
left |
left ctrl-b |
on the graph, the box to the left |
right |
right |
right ctrl-f |
on the graph, the box to the right |
pan_up |
shift-up K |
shift-up alt-up |
pan the graph up |
pan_down |
shift-down J |
shift-down alt-down |
pan the graph down |
pan_left |
shift-left H |
shift-left alt-b |
pan the graph left |
pan_right |
shift-right L |
shift-right alt-f |
pan the graph right |
Every keymap keeps these: 0-9 narrow to a stack (0: all), as k9s's namespace keys;
Shift with a letter sorts by a column (press again to reverse; ? lists each view's columns),
before an action bound to that letter, in a table that has the column; a table's arrows, page
keys, home and end move as they do; y, n and esc answer a confirmation; Tab completes the
prompt. :follow [RUN] opens the app's newest run (or RUN), wherever it runs, and follows each
next one (Following a run). The mouse works too: a click selects a row
(again, drills down), a column header sorts by it, a crumb goes back to it, and a key hint in
the header runs its action.
Keymaps
--keymap (or keymap under [tool.nf.tui]) chooses the keys: k9s, the default, or emacs.
The emacs keymap moves with n/p and ctrl-n/ctrl-p, pages with ctrl-v/alt-v, cancels
with ctrl-g (or q), searches with ctrl-s and runs the palette with alt-x; its letters are
magit's where magit has one: g refreshes, d diffs (plans), a applies, k discards
(destroys), l shows history, $ the command log (magit's process buffer), tab describes.
alt-< goes to the top, as < (a terminal sends alt with a punctuation key as the key alone).
[tool.nf.tui.keys] moves single actions' keys, over the keymap chosen:
[tool.nf.tui]
keymap = "emacs"
[tool.nf.tui.keys]
stop = "ctrl-x" # one key
destroy = ["ctrl-c", "f8"] # several
page_up = "" # none: the palette still runs it
A key is written as it is shown (ctrl-k, alt-x, shift-up, ?, esc, f5) or as Textual
names it (ctrl+k, question_mark). The explorer refuses to start, saying why, when a key is
not one, an action is unknown, two actions share a key, a number key is given (they narrow to a
stack), or a table's own key (its arrows, page keys, home, end, enter) is given to an action that
does not move in tables: a table with the focus would take it first. An action without a key is
left out of the header and stays in the palette (ctrl-p, or the keymap's palette key). A
printable key given to quitting or to the palette waits its turn behind the prompt, so typing it
into a filter does not quit.
Overview
:overview, where an app opens: its state (backend, serial or commit, lock), its resources
(declared, in state, pending, orphaned, tainted, outputs), the last plan made in the session
with its changes, the last run, whether the app's sources changed since it was loaded (and
whether they are watched), and on a graph state backend its unresolved operations, newest
checkpoint and last commit. Then each stack with its counts, its planned changes and the
stacks it depends on, and the providers with their versions.
Graph
:graph draws the resources as boxes, each under what it depends on, with an arrow down from
each dependency: layers by the longest dependency path, ordered to cross few lines, edges
leaving a box sharing one line (and boxes leading to the same boxes sharing it too), and an
edge across layers as one straight line. A box's top border names its stack.
┌─ ▲ network ──┐
│ aws_vpc.main │
└───────┬──────┘
┌───────────┴───────────┐
▼ ▼
┌─ network ──────────────┐ ┏━ network ━━━━━━┓
│ aws_security_group.web │ ┃ ~ aws_subnet.a ┃
└────────────┬───────────┘ ┗━━━━━━━━┯━━━━━━━┛
└───────────┬───────────┘
▼
┌─ ▼ compute ──┐
│ ± aws_lb.web │
└──────────────┘
- The arrows move between boxes (the view follows),
shift+arrows pan (orHJKL, where tmux or the terminal does not pass Shift with the arrows), a click selects a box. - The selected box is drawn heavy, its text in the skin's cursor colors, as a list shows its
selected row (black on aqua with the k9s skin; dimmed while another pane has the focus), even
while a run's status colors its border. Everything it needs, directly or not, and the edges leading
to it are drawn in one color with
▲before their stack; everything that needs it, and the edges leading from it, in another with▼(with the k9s skin, orchid and amber). Other boxes' borders and edges stay plain, so a border's color means its relation to the selection; a box's label keeps the color of its planned change or status. The subtitle counts both (▲ needs 2 · ▼ needed by 5). - The plan last made for the app marks each box with its change (
+ ~ ± - → <, colored as in the plan); a change deferred to apply time is marked…in its own color. - While a run of the app goes, and after, the graph shows the run instead: each box in the
color of how it went, with its glyph (
✓completed, green;◐running;✗failed, red;·waiting;-skipped;…deferred), and the resources the run does not touch greyed. The subtitle counts each status in its color.Gin a run's view, or on a run in:runs, draws that run (of this session or another process) whatever ran since. - Enter (or a second click) focuses on a box: only it, what it depends on and what depends on
it, transitively. Enter again, or
esc, draws everything again. - Number keys narrow to a stack: its resources, and dashed, the resources of other stacks that its resources depend on or that depend on them.
/dims the boxes that do not match.d,y,h,t,u,e,candspaceact on the selected box as on a resource row.
More than 400 resources are not drawn at once: narrow to a stack, filter, or focus.
Lines between layers
A few resources most others need (a VPC, its subnets, a KMS key, a role) draw a line each across
the whole graph, a row each between two layers, so a large graph can show more lines than
boxes. b goes through three ways of drawing them, and --graph-lines (or graph_lines under
[tool.nf.tui], or graph-lines under [tui] in your config file)
chooses the first:
bundled(the default): at most 3 rows of lines between two layers. When more are needed, the lines that cross the most others run on the last row, over each other, as one double line (a bundle). The subtitle says═ bundled lineswhen there is one.all: every box's line on a row of its own, however many rows that takes.shared: boxes leading to the very same boxes share a row (bundleddoes this too); every other line keeps a row of its own. Nothing is lost: each box on a shared line needs each box it leads to.
A bundle no longer says which box leads to which: select a box, and its own lines are colored along the bundle, as on any shared line, with the arrows into the boxes that need it.
┌─ net ────────┐ ┌─ net ─────────┐ ┌─ net ──────────┐ ┌─ net ────────┐
│ aws_vpc.main │ │ aws_kms_key.a │ │ aws_iam_role.a │ │ aws_subnet.a │
└───────┬──────┘ └───────┬───────┘ └────────┬───────┘ └───────┬──────┘
┌───────────┼─────────────────│─────────┬─────────│─────────┐ │
├───────────┼─────────────────┴─────────┼─────────│─────────│────────│──────────┐
╞═══════════╪═══════════════════════════╪═════════╧═════════╪════════╧══════════╡
▼ ▼ ▼ ▼ ▼
┌─ app ──────────┐ ┌─ app ──────────┐ ┌─ app ──────────┐ ┌─ app ──────────┐ ┌─ app ──────────┐
│ aws_instance.d │ │ aws_instance.c │ │ aws_instance.e │ │ aws_instance.b │ │ aws_instance.a │
└────────────────┘ └────────────────┘ └────────────────┘ └────────────────┘ └────────────────┘
Marks
space marks the selected row (and moves down), as k9s's marks do; esc clears the marks.
- In
:resourcesand:graph,pplans the marked resources and what they depend on (nf plan --targetfor a hybrid app,-targetfor a legacy app's stacks);t/utaint or untaint all of them after one confirmation;ccopies their addresses. - In
:stacks,pplans the marked stacks (a hybrid app targets everything in them; a legacy app plans each), andctrl-ddestroys them one after another, each after its approval, a stack before those it depends on. The first that fails, or is declined, ends the run.
A plan of marks is applied with a like any other.
Detail Pane
On a terminal 150 columns wide or more, the selected row's description shows beside the table
(the diff of a plan's change, a run row's output, a resource's attributes, sensitive values
masked), following the cursor. v hides or shows it. Of the table and the detail pane, the one
without the keys is drawn quieter, as Rex fades its inactive panes.
Narrow Terminals
Columns that do not fit are left out, least useful first (a resource's provider and
dependency count before its address and status); ctrl-w shows them all. The header leaves out
its logo below 110 columns, and its key hints below 76.
Command Palette
ctrl-p opens a search over what can be done here: every view, this view's keys, switching
apps, narrowing to or planning a stack, watching, skins, the detail pane and wide columns. Each
names its key or command after it (Describe <d>, Go to graph :graph), and what it does
on the line below. Type part of a name; Enter runs it.
Messages
A flash at the bottom right goes away after a few seconds; :messages keeps each one, newest
first, with its time and level, so an error read too late can be read again (c copies it).
Until :messages is shown, the header counts the errors said (Errors 2 unread · :messages).
A run that ends while it is not on screen (you were in another view, or another process ran it)
is marked at the bottom right until :runs or its own view shows it: ● 1 failed · 2 finished
:runs, as Rex marks the tab of a program that finished or failed unseen.
Read-Only Apps
An app that is read-only cannot be applied, destroyed, tainted or untainted from the explorer:
those keys are left out of the header, and the app's line says read-only.
readonlyunder[tool.nf.tui]makes apps read-only as the explorer opens:truefor every app, or a list of apps (readonly = ["prod"], by selector,hybrid:NAMEor spec).:readonlymakes the current app read-only for the session; on a read-only app, it asks before allowing changes again (until:readonlyor quitting).--readonlymakes every app read-only for the session, and nothing in the explorer turns it off: for showing a production app, or a shared screen.
Command Log
:commands lists what the explorer did in this session (plans, applies, destroys, taints,
stops, editor opens), each with its outcome and the nf command that does the same from a
shell, as lazygit's command log does: nf plan --app web --target network.aws_vpc.main,
nf destroy --stack web for a legacy app's stack, and so on. c copies the selected command.
The command asks for approval itself where the explorer asked.
Watching Sources
The explorer notices when the files an app was loaded from change: a hybrid app's own modules
(those under the project, not installed packages), a legacy app's synthesized nf.tf.json
files (nf synth rewrites them). The header and overview say so, a plan made before shows
stale, and ctrl-r reloads the app's code (dropping the plans made from the old code).
w watches the app: once the changed files settle, it reloads the app and re-plans the plan
view, as pulumi watch re-deploys (here, only a plan: nothing is applied). Watching stops with
w again, and waits for a plan or run in progress.
Opening a Declaration
e opens the line of the app's code that declares the selected resource (in :resources,
:graph, a plan or a run) in $VISUAL, else $EDITOR: a terminal editor (vim, nvim, nano,
emacs, hx, kak...) takes the screen until it exits; a windowed one (code, cursor, zed, subl)
opens beside. Without either, the location is copied. Hybrid apps only: the explorer records
where each resource is declared as it loads the app (netherframe.core.constructs.sources),
which a legacy app's synthesized JSON does not say.
Skins
--skin chooses the colors: k9s (k9s's dark default), light, terminal (the
terminal's own 16 colors, so its light or dark theme decides), or charm. Default: skin under
[tool.nf.tui] in pyproject.toml, else k9s. The palette switches skins while
running.
charm is Charm's look, as Bubble Tea's programs have it: pink and purple, quiet borders and
help, the view's name in a pill on the left of its frame, a gradient logo, and the keys on one
line at the bottom (<d> Describe • <y> YAML • … • <?> more, as many as fit) instead of
the header's columns. It is light or dark
as the terminal's background is, and draws on that background: nf tui asks the terminal for it
(the OSC 11 query, then the DA1 one, which nearly every terminal answers and which ends the
wait), before it loads and reads the answer once loaded, so the round trip, an ssh one too,
costs no time. A terminal that answers neither is waited for up to a second; one that does not
tell its background gets the dark variant. charm-dark and charm-light choose a variant;
they still take the terminal's background when it suits them. Only Charm skins ask the
terminal anything, and only when nf tui runs on one (not piped, not through the API's
runner). Switching to charm while running uses what the terminal said at start, else dark. With NO_COLOR set, everything is drawn monochrome; actions and statuses keep their
symbols and names.
Applying and Destroying
a in a plan view applies that plan, exactly as it was reviewed:
- a hybrid app applies the engine's plan artifact (
apply, orapply_stackfor a stack's plan), which is rejected when state changed since it was made: plan again withctrl-r - a legacy app applies the plan files
terraform plan -outwrote for each stack with changes, in a private temporary directory removed when the explorer exits, stack by stack in dependency order, stopping at the first that fails
ctrl-d destroys the app selected in :apps, or the stack selected in :stacks. A hybrid app
destroys as nf destroy does; a legacy app runs terraform plan -destroy for each stack (in
reverse dependency order) and applies those plans.
Nothing changes until the approval is answered: it lists what the run will do (counts, each
address with its action, and the engine's notes on imports, deferred and output changes; for
a destroy, every resource it deletes) and only typing yes approves it. Typing details
shows each change's attributes, sensitive values masked, and typing it again goes back to the
list.
esc, or any other answer, declines it: nothing changes, and a declined plan can still be
applied. What is typed in the half second after the question appears is not an answer: keys
typed ahead (meant for a filter or another window) are discarded, and confirmations (taint,
stop, quit) take y only after it, though n and esc decline at once. A confirmation's
button names what y does (Taint net.random_pet.vpc <y>), beside Cancel <n>. On a graph state backend the approval counts down the engine's approval timeout and
declines when it expires. The engine's other questions (a deferred round under
deferred_approval = "each_round") are asked the same way.
A run opens its own view: each address with its action, status (waiting, running,
completed, failed, skipped, deferred), elapsed time and error, updated as the run goes.
Its frame's bottom line shows how far it is: a spinner while it runs, a progress bar (Charm's
gradient in the charm skins) and 9/14; loading and planning turn a spinner too. l follows
its logs (a hybrid app's resource progress; Terraform's output for a legacy app) and i shows
its result: counts, errors, warnings and changes left deferred. :runs lists this session's
runs. The header shows a run in progress from any view.
:runs also lists the runs of other processes (nf apply in another terminal, CI), read from
the status a run keeps beside its state, or from graph state's operations (see
nf follow): its BY column says who runs it and where, a flash says when one
starts and ends, and its run view, logs, the graph and the overview follow it as they follow
this session's runs. The explorer reads it every 2 seconds on those views, or while such a
run goes on, and every 10 seconds otherwise. It only reads: ctrl-k does not stop it (stop it
where it runs), and quitting leaves it running.
Telling the terminal
The explorer tells the terminal it runs in what it is doing, so a terminal can show it while
the explorer is not in front: waiting for an approval, applying or destroying (how far), planning,
or how the last run ended. It is told only to terminals known to read it, as
nf apply tells them, and to a terminal that says it reads Rex's
reports when the charm skins ask it their background. Quitting leaves nothing reported.
Following a run
nf tui follow opens on an app's run in progress, wherever it runs (--run ID for one of
several; --graph for the graph colored by how its resources go, rather than its table). With
none in progress it opens how the last one ended, or waits on the app's overview. While the
followed run's view stays open, each next run that starts takes its place (Esc goes back past
it); elsewhere, a new run is only announced. :follow [RUN] does the same from within the explorer. nf tui's options come
before follow: nf tui --skin light follow --app web.
Stopping a run
ctrl-k in a run view (or on a run selected in :runs) stops it after a confirmation, as
Terraform's first Ctrl-C does: what is being applied finishes and is recorded in state, and
nothing else starts. The run shows stopping until then, and ends stopped: the addresses
that never started show skipped, and i lists what happened.
- A hybrid app's engine is asked to stop (
request_stop, see Rollback and Recovery). The stopped run counts as failed, so the app'srecovery_strategyapplies:CHECKPOINTkeeps the pre-apply checkpoint,ROLLBACKdeletes what the run created. - A legacy app's Terraform is interrupted (SIGINT): it finishes what it is applying, records state and exits; the stacks after it are not applied.
A run stopped before its approval is answered ends without changes. Plan again to apply what did not start.
A plan is applied once: after its run, a asks for a new plan. Quitting while a run is in
progress asks first, as it stops the run where it is, without waiting for what is in flight
(changes in flight may not be recorded in state; nf state recover and the app's recovery
strategy restore what they can). Stop it with ctrl-k instead.
Recording and Replaying a Session
--record FILE writes the session to a file as it goes: where it started, and each key,
event and outcome the explorer took (what a read found, how a plan and a run went, how a
question was answered), with the time it took it. nf tui replay FILE plays it back: the same
keys and outcomes go through the explorer again, at their pace, so the screen shows what it
showed, the cursor's moves included. Nothing is read from an app and nothing is changed. It is
for showing what happened, and for reporting what went wrong: a session that fails on a
message, replayed, fails on it too.
What state holds is masked as it is recorded: resources' attributes, identities and metadata,
output values, the values of plans' changes, and the text of describe and YAML documents (so a
revealed secret is not recorded either). Addresses, statuses, errors, run logs and the
commands run stay as shown. A replay shows (masked) and (not recorded: ...) for them.
--speed Nplays N times as fast (0: as fast as it can); a wait between two messages is shortened to 3 seconds at most.- Space pauses and resumes;
qquits. Other keys change nothing in a replay, and dialogs are not shown again (their answers are among the messages). - A recording is read back only as the explorer's own records: a file holding anything else is refused, so a recording cannot run code. A recording cut short (the explorer was killed) replays to where it ends.
- A recording replays with the version of
nfthat made it: another version may draw from the same messages otherwise, and stops where it does.
Sensitive Values
Documents mask sensitive attributes until x reveals them. Hybrid state does not record which
attributes are sensitive: the explorer reads the provider schema from the local schema cache
(filled by the provider's first plan or apply), without starting the provider. When no cached
schema is found, the document says so and shows values as stored. Legacy state records its
sensitive paths, and plans of legacy stacks carry them.
Copying a document copies what is shown, masked or not.
Options
--app TEXT: open this app (its selector,hybrid:NAME/legacy:NAME, or its import spec)--view TEXT: open this view (a view name or alias)--outdir PATH: synthesis output directory for legacy apps (overrides auto-detection)--legacy-bin TEXT: Terraform or OpenTofu binary for legacy apps (default:nf --legacy-binary, elselegacy_binaryin[tool.nf.config], elseterraform)--refresh FLOAT: seconds between state re-reads (default 10;0re-reads only onctrl-r). Plans never re-run on their own--readonly: make every app read-only for the session (Read-Only Apps)--skin [k9s|light|terminal|charm|charm-dark|charm-light]: colors (default:[tool.nf.tui] skin, elsek9s); see Skins--keymap [k9s|emacs]: keys (default:[tool.nf.tui] keymap, elsek9s); see Keymaps--graph-lines [bundled|all|shared]: how the graph draws the lines between layers (default:[tool.nf.tui] graph_lines, elsebundled); see Lines between layers--record FILE: write the session to FILE, fornf tui replay(Recording and Replaying a Session)
nf tui replay PATH takes --speed N (default 1; 0 as fast as it can), and nf tui's --skin
before replay.
App inputs (nf tui ++env=prod, ++@file.toml; see nf vars) are
given to each app the explorer opens, which takes those it declares and ignores the rest; the
header's App line shows what the app was built with, and a run's i says what it was.
Examples
# Open the only configured app at its overview
nf tui
# Open one app's dependency graph in the terminal's own colors
nf tui --app web --view graph --skin terminal
# Open one app's plan, re-reading state only on request
nf tui --app web --view plan --refresh 0
# Browse without applying, destroying or editing state
nf tui --readonly
# Follow the deployment running in CI, on the graph
nf tui follow --app web --graph
# Emacs's keys and magit's letters
nf tui --keymap emacs
[tool.nf.tui]
skin = "light"
readonly = ["prod"] # or true: every app, until :readonly allows changes
keymap = "emacs"
graph_lines = "all" # every line on a row of its own (b goes through bundled, all, shared)
[tool.nf.tui.keys]
stop = "ctrl-x"
Notes
- With one configured app the explorer opens at its overview; with several, at
:apps. - Loading a hybrid app imports and constructs it, as
nf plan --appdoes. - Planning starts the app's providers (and refreshes resources) like
nf plan; they are stopped when the plan is done, and started again to apply it. - Legacy stacks must be initialized (
nf init --stack NAME) before they can be planned, applied or destroyed. - The app's own settings apply as they do for
nf apply(recovery_strategy,apply_deferred,deferred_approval,approve_imports...).