CLI overview
devtidy is the same engine as the app, for terminals, scripts and CI.
devtidy scan # what is using spacedevtidy explain gradle.caches # what an item is and what removing it costsdevtidy clean --safe --dry-run # what would be removeddevtidy clean --safe # remove everything marked safe (asks first)devtidy history # past cleanups and what they freeddevtidy rules # every known locationGlobal options
Section titled “Global options”These work with every command.
| Option | Environment | Meaning |
|---|---|---|
--json |
Print machine-readable JSON instead of a table. See JSON output. | |
--home <HOME> |
DEVTIDY_HOME |
Home directory to scan. |
--rules-dir <DIR> |
DEVTIDY_RULES_DIR |
Directory with extra custom rules. Defaults to ~/.config/devtidy/rules. |
DEVTIDY_DATA_DIR |
Where the history database lives. Defaults to ~/Library/Application Support/devtidy on macOS. |
|
NO_COLOR |
Disable colors. |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Success. |
1 |
Error, or a cleanup action failed. |
2 |
Invalid usage. |
3 |
scan --fail-above threshold exceeded. |
Output streams
Section titled “Output streams”Progress messages go to stderr and data to stdout, so piping is always safe:
devtidy scan --json | jq '.totals.reclaimable'