Global option: -C, --project-dir PATH — change to this directory before running
(the target project's root, where typemut.toml lives).
Command
Description
typemut run
Full pipeline: discover mutations, run the type checker on each, show the report
typemut init
Discover mutations and store them in SQLite (replaces previous results; the result cache keeps the kills of incremental runs)
typemut exec
Run the type checker against each pending mutation
typemut report
Show the terminal report
typemut html
Generate the HTML report with diffs
init + exec + report are the steps of run. Running them separately lets
you resume: results are saved as they arrive, so after an interrupted exec
(Ctrl+C, CI timeout) run typemut exec again and it continues with the
mutants that are still pending.
Reuse kills of earlier runs whose files are unchanged
--refresh
—
Run the pending mutants without reusing cached kills, and store the results for later incremental runs (exec only runs pending mutants: use run --refresh, or init first, to recheck every mutant)