@dry-lint/cliThe official CLI for dry-lint.
Detect duplicate declarations in TypeScript, Zod, OpenAPI, GraphQL, and more — with a plugin-driven architecture.
Add the CLI and the plugins you want:
# Example: TypeScript + Zod plugins
bun add -D @dry-lint/cli @dry-lint/typescript @dry-lint/zod
Create a .drylintrc.json to specify which extractors to load:
{
  "plugins": ["@dry-lint/typescript", "@dry-lint/zod"]
}
If no config is present, the CLI will auto-load all installed @dry-lint/* packages (except dry-lint and cli).
Run duplicate detection across your project:
npx dry [projectDir] [options]
-t, --threshold <num> — similarity threshold (0–1, default 1)--ignore <patterns...> — glob patterns to exclude--json — output a JSON report--sarif — output a SARIF report--fix — generate alias stubs for exact matches--no-cache — disable file-level caching--ui — launch the interactive Ink UIMIT — see LICENSE.