| title | Quick start | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| description | Get your first list of unused code, duplication, and complexity hotspots in under a minute. Then add fallow to VS Code, CI, MCP, or Fallow Cloud. | ||||||||
| keywords |
|
||||||||
| icon | rocket |
In under a minute, you get a list of unused code, duplication, and complexity hotspots in your project. Everyone starts with the same command. At the end, pick the integration that fits your work.
From your project root, run:
npx fallowThis command runs these analyses in one pass:
- Dead code: unused files, exports, dependencies, and more
- Architecture: import cycles, boundary violations, and rule-pack policy violations
- Duplication: repeated logic across files
- Health: complexity hotspots and refactor targets
npx fallow dead-code # Cleanup candidates
npx fallow architecture # Import cycles, boundaries, and policy rules
npx fallow dupes # Repeated logic
npx fallow health # Complexity and refactor targets
npx fallow review # Advisory review brief over changed files (always exits 0)
npx fallow fix --dry-run # Preview automatic cleanupdead-codereports unused files, exports, types, and dependencies. See the dead code guide.architecturereports circular dependencies, re-export cycles, package cycles, boundary violations, and rule-pack policy violations. Seefallow architecture.dupesfinds AST-based duplicates in the defaultmildmode. To also find clones with renamed variables, add--mode semantic. See the duplication guide.healthreports complexity findings, maintainability per file, hotspots, and ranked refactor targets. See the health explanation.fix --dry-runshows the automatic cleanup without changing files. To apply it, remove--dry-run. See the auto-fix guide.
Fallow works without a config file. To customize it, run:
fallow initfallow init detects your project structure and writes a config for it. It also adds .fallow/ to your .gitignore.
[rules] unused-files = "error" unused-exports = "warn" unused-types = "off"
</CodeGroup>
<Info>
To migrate from knip or jscpd, run `fallow migrate`, or read the [knip](/migration/from-knip) or [jscpd](/migration/from-jscpd) guide.
</Info>
## Optional: Fallow Cloud
The static layer of fallow is free and open source (MIT). To learn which code actually executed in production, add Fallow Cloud, the paid product. A single local capture is free. The trial below turns on continuous and multi-capture monitoring for 30 days:
```bash
npx fallow license activate --trial --email you@company.com
npx fallow coverage setup
npx fallow health --runtime-coverage ./coverage
Before you start, read Static analysis vs production data to learn how the two layers differ. Then follow the runtime coverage guide for the setup.
See what fallow analyzes. Customize entry points, rules, and ignore patterns. Learn how fallow works. Look up every command and flag.