Run a scan
emendant scan is the main user command. It runs detection, feed selection, file filtering, structural matching, and version placement as one read-only operation.
Scan the current repository
Section titled “Scan the current repository”npx emendant scanTo scan a different directory:
npx emendant scan --cwd ../my-projectRun from the root of a monorepo. Emendant discovers only the workspaces declared by the root package manager and reports each one separately.
Narrow the report
Section titled “Narrow the report”Limit the scan to one or more packages by repeating --package:
npx emendant scan --package openainpx emendant scan --package openai --package aiFilter by comma-separated severity values:
npx emendant scan --severity breaking,deprecationThe accepted values are breaking, deprecation, and behaviour. When no severity filter is supplied, breaking changes and deprecations are selected by default.
Include adopted changes
Section titled “Include adopted changes”By default, Emendant focuses on changes ahead of the installed version. Add --adopted to include old call sites found in code that is already on the relevant release:
npx emendant scan --adoptedAn adopted result may be a live bug, dead compatibility code, or an intentional shim. It is kept out of the default report because the scanner cannot safely guess which.
Ask for more detail
Section titled “Ask for more detail”npx emendant scan --verboseVerbose output adds per-workspace walk and candidate counts, complete provenance hops, and informational notes. Coverage warnings appear even without --verbose because they mean Emendant could not check part of the repository.
Produce machine-readable output
Section titled “Produce machine-readable output”npx emendant scan --json > emendant-report.jsonJSON output includes the feed summary, totals, findings, call sites, workspace statistics, provenance chains, and warnings. The command still returns exit code 1 when findings are present.
Remove colour
Section titled “Remove colour”Use either interface:
npx emendant scan --no-colorNO_COLOR=1 npx emendant scanIgnore repository-specific paths
Section titled “Ignore repository-specific paths”Emendant already respects tracked .gitignore files and excludes common dependency, build, cache, coverage, virtual-environment, and vendored directories. Add project-specific exclusions with ignore in emendant.json.

