Skip to content

CLI Reference

Run squeal --help for the full command and flag list of your installed version. Below are the primary commands used by agents, developers, and CI workflows.

Lists every check group Squeal runs in this repository (from squeal.config.json or defaults), its description, selected files, trigger moment, run command, and last stored result. The final line explicitly names what Squeal does not run (e.g., typecheck, build, excluded suites). Needs no daemon and writes nothing.

squeal status [--full] [--notes] [--json] [--wait <ms>] [<path>...] [--check <text>]

Section titled “squeal status [--full] [--notes] [--json] [--wait <ms>] [<path>...] [--check <text>]”

Prints the worktree’s current validation state, verdict first.

  • squeal status: immediate snapshot from the store (needs no daemon).
  • squeal status --wait 60000: waits until test files re-keyed by your edits have results, or a check changes (Returned on quiet, Returned on news, Returned on timeout, or Returned without a daemon).
  • squeal status --wait 60000 <path>...: selects exact test files (by test path, source file via closure, or directory) and waits for their verdict. Exits 0 (pass), 1 (fail), or 3 (no verdict — wait again).
  • squeal status --wait 60000 <test-file> --check '<text>': runs matching tests inside a large test file first, alone, returning early for fast iteration (exits 1 on failure, 3 on focused pass since the whole file has not finished yet).
  • squeal status --at <commit> [--run]: compares results against an earlier commit in a temporary checkout without modifying your working tree.

squeal why '<check name>' [--include-logs]

Section titled “squeal why '<check name>' [--include-logs]”

Prints full history, provenance, files changed since the run, and run-log path for a failing check. Add --include-logs to print up to 200 lines of that test file’s console output.

squeal failures [<path>...] [--check <text>] [--error <text>] [--per-check] [--all-worktrees] [--limit <n|all>]

Section titled “squeal failures [<path>...] [--check <text>] [--error <text>] [--per-check] [--all-worktrees] [--limit <n|all>]”

Lists stored failing results newest first. Useful when a grouped report summarizes many failures sharing one error message.

squeal run --all [--force] [--wait [<ms>]]

Section titled “squeal run --all [--force] [--wait [<ms>]]”

Queues every test file without a current result (--force re-runs all) and records a Full-suite checkpoint when complete. With --wait, exits 0 (pass), 1 (known failures), or 3 (no verdict).

Queues slow-tier test files immediately once edit fast tests finish, joining any slow file already running.

squeal run <group> [<path>...] [--base <ref>] [--wait <ms>]

Section titled “squeal run <group> [<path>...] [--base <ref>] [--wait <ms>]”

Runs a named check group (checks in squeal.config.json), narrowed optionally to specific paths or changed files since --base <ref>.

squeal retry <test-file>... [--reason load|environment]

Section titled “squeal retry <test-file>... [--reason load|environment]”

Requests one clean re-run of a failure you did not cause (for example, host load or a temporarily stopped local service).

squeal proof <test-file> --base <commit> [--env ...] [--without ...] [--repeat <n>]

Section titled “squeal proof <test-file> --base <commit> [--env ...] [--without ...] [--repeat <n>]”

Proves a committed fix by running the test file against both <commit> and HEAD in temporary checkouts without touching your working tree.

squeal code [<path>...] [--changed | --told] [--json]

Section titled “squeal code [<path>...] [--changed | --told] [--json]”

Lists functions exceeding complexity.threshold (with decision-point breakdown and CRAP when coverage is enabled). Reads the store directly; needs no daemon.

squeal code --base <ref> [<path>...] [--test <file>...] [--group <name>...] [--parts <dir>...] [--timeout <sec>] [--exceptions <file>] [--json]

Section titled “squeal code --base <ref> [<path>...] [--test <file>...] [--group <name>...] [--parts <dir>...] [--timeout <sec>] [--exceptions <file>] [--json]”

One-shot PR/CI quality gate evaluating CC and CRAP on every changed JS/TS function. Exits 0 (pass), 1 (violations), 3 (incomplete), 2 (usage/setup error). See Code Quality Gate.

squeal impact [<path>...] [--limit <n>] [--offset <n>] [--json]

Section titled “squeal impact [<path>...] [--limit <n>] [--offset <n>] [--json]”

Analyzes stored edit history, import walks, and coverage to show which barrels, test helpers, setup files, or runtime reads cause the most avoidable re-run seconds across your suite — with concrete suggestions (such as splitting a barrel or using export type *).

Command Purpose
squeal setup [--check] Initialize or verify Squeal in the current repository.
squeal init Write a squeal.config.json containing all keys with default values.
squeal start [root] Start (or connect to) a worktree’s daemon and lift any --until-start hold.
squeal stop [--until-start] [root] Stop a worktree’s daemon and all child processes cleanly.
squeal hold [--max <dur>] -- <cmd> Hold background validation while running a manual command or gate.
squeal warmup Populate stored closures, durations, and coverage records across the suite.
squeal ps List live Squeal daemons and their local or remote runner hosts.
squeal update Update Squeal across every installed harness on this machine.
squeal remove Remove Squeal configuration/state from a worktree.