CLI

CLI command reference

Every command, flag, and REPL shortcut in tempr — plus the tool set the agent drives. New here? Start with the CLI quickstart.

Commands

CommandDoes
tempr "<prompt>"One-shot agent turn: a real tool-calling loop that reads, edits, runs commands, and searches your codebase, then exits.
temprInteractive REPL with persistent cross-session history, line editing, and tab-completion for /commands and @personas.
<something> | temprHeadless/piped mode — reads stdin as the prompt context, writes to stdout. See Scripts, pipes & CI.
tempr authSign in with your Tempr license key (the same license as the IDE).
tempr logoutClear the stored credential on this machine.
tempr configManage settings — tempr config set-model <id> sets your default model.
tempr historyList saved sessions; resume one with tempr --id <SESSION_ID>.
tempr mcpAdd, list, and manage MCP servers for the terminal agent.
tempr doctorCheck connectivity and diagnose your setup.
tempr --versionPrint the installed CLI version.

Options

These flags apply to a chat or agent run:

FlagDoes
-m, --model <MODEL>Use this model for the run, overriding tempr config set-model.
-y, --yoloAuto-approve every tool call for this run — approval-mode bypass for a single invocation. Ideal for scripted, non-interactive runs you trust.
--askPlain single-turn chat with no tool-calling — quick questions, no file access.
--id <SESSION_ID>Resume a saved session (see tempr history). A new id is generated and saved automatically when omitted.
--jsonEmit newline-delimited JSON (one event per line) instead of formatted text — built for scripting. See the JSON event stream.
--verbosePrint token usage (prompt/completion/total, and cost if known) after each turn.

REPL slash commands

Inside an interactive tempr session:

CommandDoes
/helpList available commands.
/modelShow or switch the active model.
/personaShow or switch the active persona (also type @name with tab-completion).
/mcpShow connected MCP servers and their tools.
/historyBrowse earlier turns in this session.
/clearClear the screen.

The agent tool set

In agent mode, the model drives the same tool families as the IDE — executed locally against your workspace:

Tool familyWhat it does
FilesRead, write, and edit files (read first, then targeted edits).
run_commandRun shell commands, gated by the command-safety whitelist.
Semantic searchEmbedding-based search over the workspace — finds conceptually related code.
SymbolsLook up and navigate code symbols.
TestsDiscover and run tests with structured pass/fail results.
DiagnosticsRead compiler and analyzer diagnostics.
Workspace graphProject references and call-graph context.
Sub-agent delegationHand a focused sub-task to a specialist persona mid-turn.
MCP bridgeExpose tools from your configured MCP servers.
Tip

The agent loop runs server-side like the IDE, so a dropped connection doesn't lose an in-flight turn — and every session is saved automatically, ready to resume with tempr --id.

Next steps