testingterm
These docs were written by an AI agent. They were checked against the code, but may still contain mistakes; when in doubt, trust testingterm --help and the types.

CLI

Every testingterm command.

testingterm --help lists the commands and testingterm <command> --help explains one. Commands that act on a terminal take --id <id> when more than one is running.

Running scripts

Command Description
run <files...> Run scripts and test files and print results. See writing tests
run -e '<code>' Run code directly with launch, expect and test in scope

Terminals

Command Description
new [options] [-- command] Start a terminal and print its id
ls List running terminals
close [--all] Close a terminal, finishing any video or profile

Reading

Command Description
screen [--styles] [--json] Screen text with cursor, title and modes
scrollback Everything printed
find <text> [--regex] Positions in cells and pixels
info Process ids, sizes and recording state

Input

Command Description
type <text> [--delay ms] Type text; \n presses Enter
press <keys...> [--count n] Press keys
paste <text> Paste text
click <x> <y>, click --cell <col> <row>, click --text <text> Click; --right, --middle, --double, --nth
move, drag, wheel Mouse movement
resize <cols> <rows> Resize
signal <signal> Send a signal
theme <name> Switch theme
wait <condition> --text, --regex, --gone, --idle, --stable, --title, --exit

Artifacts

Command Description
screenshot [file] [--no-cursor] Save a PNG
record start [file], record stop Record a video
profile start [file], profile stop Record a profile

Other

Command Description
themes [filter] List themes
verify <statement> Experimental AI check
report --pass/--fail <reason> Used by agents during verify
setup [--yes] Install the agent skill
upgrade [--check] Upgrade to the latest release
version Print the version