tui#
Launch the terminal UI (Ink when raw input is available, otherwise Rich). Same as running openprogram with no verb.
usage: openprogram tui [-h] [--print [PROMPT]] [--standalone]
[--output-format {text,json,stream-json}]
[--include-partial-messages] [--permission-mode MODE]
[--continue] [--session-id ID] [--at REF]
[--no-project-binding] [--no-web] [--json-schema PATH]
[--model PROVIDER/MODEL] [--effort LEVEL]
[--usage-file PATH] [--transcript-file PATH]
[--resume SESSION_ID] [--no-alt-screen]
[--screen-reader]
Options#
| Option | Description |
|---|---|
--print, -p PROMPT |
One-shot prompt; send, print reply, exit |
--standalone |
Run in this process instead of the running App's Worker |
--output-format OUTPUT_FORMAT |
What a --print call writes on stdout: text (the reply), json (one record of how the run ended) or stream-json (one event per line, init first and result last) |
--include-partial-messages |
With --output-format stream-json, also stream text and reasoning deltas |
--permission-mode MODE |
Permission mode for this --print turn only (ask, acceptEdits, plan, auto, bypass); not saved to the conversation |
--continue, -c |
Continue the most recently updated conversation of this folder's project |
--session-id ID |
Start the --print conversation with this id; fails if it exists |
--at REF |
With --resume or --continue: run on this branch, or after this message (a message inside a branch starts a new branch) |
--no-project-binding |
Do not bind a new --print conversation to this folder: nothing is written here, the conversation is kept in the profile |
--no-web |
Run this --print turn without any web tool (search, fetch) and without the provider's own web search |
--json-schema PATH |
Require JSON Schema output for a one-shot --print call; '-' reads stdin |
--model PROVIDER/MODEL |
Model for a one-shot --print call in a new conversation |
--effort LEVEL |
Reasoning effort for a one-shot --print call |
--usage-file PATH |
After a one-shot --print call, write its usage summary to PATH as JSON |
--transcript-file PATH |
After a one-shot --print call, write its turn to PATH as JSON lines |
--resume SESSION_ID |
Resume a prior CLI chat session. |
--no-alt-screen |
Render inline and preserve terminal scrollback. |
--screen-reader |
Use an assistive-technology-friendly inline TUI without mouse tracking. |