Skip to content

Commit a9eb5d3

Browse files
committed
docs: document --theme flag for docker agent run (refs #2933)
1 parent 01ad536 commit a9eb5d3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/features/cli/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ $ docker agent run [config] [message...] [flags]
3737
| `--dry-run` | Initialize the agent without executing anything (useful for validating a config) |
3838
| `--remote <addr>` | Use a remote runtime at the given address instead of running the agent locally |
3939
| `--lean` | Use a simplified TUI with minimal chrome |
40+
| `--theme <name>` | Preselect a TUI theme by name at launch (overrides `settings.theme` in user config; ignored in `--exec` mode). Run `/theme` to browse available names. |
4041
| `--app-name <name>` | Override the application name label shown in the TUI (status bar, window title, "/exit" notifications). |
4142
| `--sidebar` | Control sidebar visibility. Set to `--sidebar=false` to hide the sidebar and disable the Ctrl+B toggle (default: `true`). |
4243
| `--disable-commands <list>` | Hide and disable specific slash commands in the TUI. Accepts a comma-separated list of command names (leading slash optional, case-insensitive). E.g. `--disable-commands="/cost,/eval,/model"`. |
@@ -82,6 +83,7 @@ $ docker agent run agent.yaml --hook-pre-tool-use "./scripts/validate.sh" --hook
8283
$ docker agent run agent.yaml "question 1" "question 2" "question 3"
8384

8485
# Customize TUI display
86+
$ docker agent run agent.yaml --theme dracula
8587
$ docker agent run agent.yaml --app-name "My Project"
8688
$ docker agent run agent.yaml --sidebar=false
8789
$ docker agent run agent.yaml --disable-commands="/cost,/eval,/model"

docs/features/tui/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ settings:
261261
theme: my-theme # References ~/.cagent/themes/my-theme.yaml
262262
```
263263

264+
**At launch:** Pass `--theme <name>` to `docker agent run` to preselect a theme for that session. This overrides `settings.theme` in your config but is not saved. Invalid theme names print an error at startup listing the available options. Has no effect in `--exec` mode.
265+
264266
**At runtime:** Use the `/theme` command to open the theme picker and select from available themes. Your selection is saved globally in `~/.config/cagent/config.yaml` under `settings.theme` and persists across sessions.
265267

266268
<div class="callout callout-tip" markdown="1">

0 commit comments

Comments
 (0)