# Terminal UI

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).

> A live, keyboard-driven dashboard over your workstations, configs, bindings, SSH keys, and grants.


`rl tui` opens a full-screen, keyboard-driven dashboard over your
workstations and the resources around them. If you have used
[k9s](https://k9scli.io/) for Kubernetes, it will feel immediately familiar:
tabs across the top for each kind, a live table in the middle, and a footer that
always shows the keys available right now.

It is a convenience layer, not a separate control path. The TUI is a pure client
of the same resource API every other command uses, so anything you can see here
you can also reach with [`get`](https://docs.ringleader.dev/reference/cli/commands/resource-verbs/),
[`describe`](https://docs.ringleader.dev/reference/cli/commands/resource-verbs/), and friends. Actions in the TUI do
not reach around the API either: starting a workstation or toggling a share edits desired
state and lets the control loop apply it, exactly as a `rl apply` would.

## The 60-second tour

The other pages are [Terminal UI navigation](https://docs.ringleader.dev/reference/tui/navigation/), [Filters and search](https://docs.ringleader.dev/reference/tui/filters-search/), [Inspection views](https://docs.ringleader.dev/reference/tui/inspection-views/), [Resource management](https://docs.ringleader.dev/reference/tui/resource-management/), [Live updates and federation](https://docs.ringleader.dev/reference/tui/live-federation/) and [Terminal UI keybindings](https://docs.ringleader.dev/reference/tui/keybindings/).

Launch it from any terminal:

```bash
rl tui
```

<figure class="screenshot">
  <img src="https://docs.ringleader.dev/images/tui/TUI-workstations-tab.png" alt="The Workstations tab: the header tabs up top, the detail pane for the selected workstation, the live table with an OWNER column, and the footer key hints." loading="lazy"><figcaption>The Workstations tab: the header tabs up top, the detail pane for the selected workstation, the live table with an OWNER column, and the footer key hints.</figcaption>
</figure>


You land on the **Workstations** tab. The pane at the top is a live summary of the
selected row (its status, address, and everything attached to it), and it follows
your selection as you move. From here, four moves get you most of the value:

1. Switch tabs with the number keys: `1` Workstations, `2` Configs, `3`
   Bindings, `4` SSH Keys, `5` Grants. Each tab is a table of that kind.
2. Move with the arrow keys or `j` / `k`, and jump to the top or bottom with
   `g` / `G`. The footer always lists the actions for whatever is selected.
3. Act on the selected row. On a workstation, `S` starts it, `s` stops it,
   `Enter` opens an SSH shell, and `D` shows a full describe view. The footer
   shows these keys, and `?` lists the keys for the current tab. `Ctrl+P` lists
   every command you can run here and runs the one you pick.
4. Quit with `q`.

That is enough to watch your fleet and drive the common lifecycle actions. The
table refreshes on its own, so a workstation you start climbs through its phases in front
of you without a manual reload.

<div class="callout callout-tip">
  <p class="callout-title">How the tables stay current</p>
  <div class="callout-body">
    The TUI re-reads every table on a timer, every five seconds by default. Set a
different interval with <code>--refresh</code>. While a workstation is changing phase, the
Workstations tab refreshes every two seconds. <code>R</code> or <code>Ctrl+R</code> refreshes at once.
See <a href="https://docs.ringleader.dev/reference/tui/live-federation/">Live updates and federation</a>.
  </div>
</div>


## Launch the terminal UI

```bash
rl tui                       # all namespaces you can see
rl tui -n team-blue          # scope to one namespace
rl tui --theme dark --refresh 3
```

| Flag | Description |
|------|-------------|
| `--theme <theme>` | Color theme: `auto` (default), `dark`, `light`, `basic`. |
| `--refresh <seconds>` | How often the tables refresh, in seconds (default `5`). |
| `-n, --namespace <ns>` | Start scoped to one namespace. |
| `-A, --all-namespaces` | All namespaces (the default; equivalent to `-n ""`). |
| `--as <subject>` | Impersonate a subject (requires the right to do so). |
| `--home <dir>` | Data directory (default `$RINGLEADER_HOME`, else `~/.ringleader`). |

## Next steps

The pages below take you from everyday use into the corners. Read them in order
for a full tour, or jump straight to what you need.


## Pages in this section

- [Terminal UI navigation](https://docs.ringleader.dev/reference/tui/navigation/index.md): Move around the TUI with tabs, selection, namespace and owner scope, and themes, all working the same on every view.
- [Resource management](https://docs.ringleader.dev/reference/tui/resource-management/index.md): Per-view actions: start and stop workstations, edit and copy and delete, toggle bindings and shares, and create with the wizard.
- [Inspection views](https://docs.ringleader.dev/reference/tui/inspection-views/index.md): The three read-only views for looking closely at one object: describe it, troubleshoot it, and see what relates to it.
- [Filters and search](https://docs.ringleader.dev/reference/tui/filters-search/index.md): The / filter: substring search, field:value restrictions, and how it composes with namespaces and owner scope.
- [Live updates and federation](https://docs.ringleader.dev/reference/tui/live-federation/index.md): How the TUI keeps its tables current on its own, and shows every control plane you are logged into in one view.
- [Terminal UI keybindings](https://docs.ringleader.dev/reference/tui/keybindings/index.md): Every key the TUI binds, grouped by scope: global navigation and the per-view actions.

