Skip to content

CLI Reference

Main command — analyzes your codebase and reports violations.

Terminal window
domainlint check # Analyze current directory
domainlint check ./app # Analyze a specific path

Debug imports and violations for a single file. Useful for understanding why a file triggers a violation.

Terminal window
domainlint debug src/features/billing/ui/Form.tsx

All flags apply to the check command.

FlagDescription
-c, --config=<path>Path to config file
-v, --verboseVerbose 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-importsInclude dynamic imports in analysis
--feature=<value>Filter violations by feature name
--shortest-cyclesShow only the shortest cycles
--max-cycle-length=<value>Hide cycles longer than this (default: 50)
--no-colorDisable colored output
CodeMeaning
0No violations
1Violations found
2Internal error (e.g. unreadable tsconfig)