CLI Reference
Commands
Section titled “Commands”domainlint check [path]
Section titled “domainlint check [path]”Main command — analyzes your codebase and reports violations.
domainlint check # Analyze current directorydomainlint check ./app # Analyze a specific pathdomainlint debug <file>
Section titled “domainlint debug <file>”Debug imports and violations for a single file. Useful for understanding why a file triggers a violation.
domainlint debug src/features/billing/ui/Form.tsxAll flags apply to the check command.
| Flag | Description |
|---|---|
-c, --config=<path> | Path to config file |
-v, --verbose | Verbose output |
--src-dir=<value> | Source directory (default: src) |
--features-dir=<value> | Features directory (default: src/features) |
--tsconfig-path=<value> | Path to tsconfig.json |
--include-dynamic-imports | Include dynamic imports in analysis |
--feature=<value> | Filter violations by feature name |
--shortest-cycles | Show only the shortest cycles |
--max-cycle-length=<value> | Hide cycles longer than this (default: 50) |
--no-color | Disable colored output |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | No violations |
1 | Violations found |
2 | Internal error (e.g. unreadable tsconfig) |