CLI
Interceptor ships with a CLI for one-off runs and watch mode.
Commands
bash
interceptor # run once
interceptor compile # run once
interceptor check # diff-only CI check (no writes)
interceptor watch # watch and re-run on changeOptions
bash
interceptor --config path/to/interceptor.config.ts
interceptor --cwd path/to/project
interceptor --dry-run
interceptor --diff
interceptor --report reports/interceptor.jsonNotes
- The CLI loads
.envfrom the current working directory. - Watch mode uses a debounced file watcher and respects
watcher.debounceMs. checkexits with code 1 when changes are required.--dry-runandchecknever write locale files or caches.
Reports
Use --report to write a JSON report for CI systems. The report includes per-locale changes, summary counts, and a timestamp.