Skip to content

Command Line Options ​

All options for gradle-check-updates (gcu).

Core Actions ​

OptionDefaultDescription
[directory].Root directory to scan.
-u, --upgradefalseWrite changes to disk. Without this, gcu runs a dry-run.
-i, --interactivefalseLaunch a TUI picker to selectively choose which deps to upgrade.

Upgrade Policy ​

OptionDefaultDescription
-t, --target <target>majorVersion ceiling for upgrades: major, minor, or patch.
-c, --cooldown <days>0Security feature: skip versions published newer than N days.
--allow-downgradefalseEnforce cooldowns by allowing rollbacks (requires --cooldown).
--prefalseAllow prereleases (e.g. betas, RCs) as upgrade candidates.

Filtering ​

OptionDefaultDescription
--include <pattern>Include filter, repeatable. Accepts comma-separated patterns (e.g. --include "com.google.*,org.jetbrains:*") or multiple flags.
--exclude <pattern>Exclude filter, repeatable. Accepts comma-separated patterns (e.g. --exclude "junit:*,org.legacy:*") or multiple flags.

Output & CI ​

OptionDefaultDescription
--jsonfalseJSON output mode (human output goes to stderr, JSON to stdout).
--error-on-outdatedfalseExit code 1 when upgrades are available but -u was not passed. Excellent for CI gates.
--verbose [level]0Verbosity. --verbose 1 shows held/skipped entries. --verbose 2 lists every detected dependency, including those already at the latest version.

Network & Cache ​

OptionDefaultDescription
--concurrency <n>5Max number of concurrent HTTP requests to the registry.
--no-cachefalseBypass the local metadata cache for this run.
--clear-cachefalseDelete the local cache before running, then fetch fresh data.

Exit Codes ​

CodeMeaning
0Success - no upgrades available, or -u applied all upgrades
1Upgrades available but -u was not passed (only when --error-on-outdated is set)
2Usage or config validation error
3Project file parse error
4Network / repository error
5Rich-block coherence conflict prevented a rewrite

Released under the MIT License.