REA CLI command cheat sheet
Unofficial guide. This site is an independent community guide and is not affiliated with the REA project. For authoritative docs see the official REA website and the morluto/rea GitHub repository. Commands here are taken from the official README/docs (checked 2026-10-13); REA changes quickly, so verify against the official docs.
Setup & health
rea setup [--client ID ...] [--dry-run]
rea doctor --json
rea doctor --client claude_code --json
rea doctor --provider ghidra --json
rea update
rea uninstall [--purge-data]
Native binaries (needs Hopper / Ghidra / IDA)
rea analyze /absolute/path/to/program --provider ghidra --json
rea search /absolute/path/to/program "search" --provider ghidra --json
rea function /absolute/path/to/program main --provider ghidra --json
rea decompile /absolute/path/to/program 0x1000 --provider ghidra --json
rea xrefs /absolute/path/to/program 0x1000 --provider ghidra --json
rea trace /absolute/path/to/program "search" --provider ghidra --json
rea providers --json
rea capabilities --jsonFor instructions only, use rea instructions. A macOS .app bundle can be passed directly.
No engine needed
rea analyze-javascript-application /absolute/path/to/app --json
rea inspect-managed-artifact /absolute/path/Assembly.dll --json
rea inspect-go-binary /absolute/path/to/program --json
rea inspect-sqlite-database PATH --json
rea inspect-web-network-capture /absolute/session.har har --json
Output & exit codes
Default terminal format is TOON; use --json for files. Exit 0 = completed (may be partial), 1 = could not complete, 128+N = killed by signal. Use set -o pipefail when piping to jq.
Related guides
Sources: cli.md · installation.md
FAQ
What does exit code 1 mean in REA?
The operation could not complete; structured output identifies the failure such as invalid input or timeout.