Quick Start¶
This page walks you through the most common docstr-health commands.
Scan a local project¶
docstr-health /path/to/project
If you omit the path, the current directory is scanned:
docstr-health
Scan a Git repository¶
docstr-health --repo-url https://github.com/user/repo.git
The repository is cloned into a cache directory (shallow clone) and scanned automatically. Subsequent runs reuse the cache.
Scan a PyPI package¶
docstr-health --pypi-package requests
The package is downloaded and scanned without affecting your environment.
Get a summary only¶
Hide the per-module panels and print only the statistics tables:
docstr-health --compact
Use it in CI¶
docstr-health --ci --repo-url https://github.com/user/repo.git
In CI mode the terminal output is suppressed and the process exits with a non-zero code when the project status falls below the configured failure level.
See Basic Usage for a deeper look at every scanning mode, and Thresholds & CI Mode to learn how statuses are computed.