Skip to content

CLI reference

Command

bash
composer hpbxxtr:upgrade-interactive [options]
Namehpbxxtr:upgrade-interactive
Aliasesh:ui, upgrade-interactive
DescriptionInteractively select and upgrade outdated dependencies

Options

OptionDescription
--caretWrite a caret range constraint (e.g. ^1.2.3) instead of an exact version (1.2.3)
--min-age=<duration>Minimum release age before a version may be selected. Accepts 7d, 2w, 3m, 1y or a bare number of days (14). 0 disables the gate.

Neither option has a short form. Global Composer options (-v, --no-ansi, --working-dir, …) work as usual.

--caret

Pin exact versions (default):

bash
composer h:ui
# writes: "vendor/pkg": "1.2.3"

Allow future minor and patch updates:

bash
composer h:ui --caret
# writes: "vendor/pkg": "^1.2.3"

--min-age

Skip releases younger than two weeks:

bash
composer h:ui --min-age=2w

The option overrides extra.hpbxxtr-upgrade-interactive.minimum-release-age from composer.json. See Minimum release age for the behaviour and Configuration for the accepted syntax.

Exit codes

CodeConditionOutput
0Upgrades applied successfully
0Nothing to upgradeAll direct dependencies are up to date.
0The TUI was confirmed with no selectionNo packages selected. Nothing to do.
1Malformed --min-age or extra thresholdInvalid duration "…". Expected a number of days (e.g. "14") or a value with a unit: "7d", "2w", "3m", "1y".
1No TTY availableupgrade-interactive requires an interactive terminal.
1Resolution failed (network, repository, metadata)the underlying exception message
1composer update failed while applyingthe underlying exception message

Aborting with Ctrl+C leaves composer.json untouched.

Non-interactive use

There is no --no-interaction mode. The command exists to make a human choose, so with no TTY it refuses rather than guessing. Use composer outdated in CI.