Loading...
Loading...
Use when user asks about updating outdated Drupal packages, upgrading Drupal core minor or patch versions, updating contrib modules, or resolving composer version conflicts.
npx skill4agent add acquia/acquia-skills dependency-updatesThis step is mandatory. Do not run any composer commands until a new branch is created and confirmed. Never update packages directly onormain.master
git branch --show-currentmainmasterdeps/drupal-updates-YYYY-MM-DDgit checkout -b <branch-name>git branch --show-currentcomposer outdatedcomposer outdated --directcomposer outdated drupal/core-recommendedcomposer update drupal/package --with-all-dependenciescomposer update drupal/package1 drupal/package2 --with-all-dependenciescomposer update drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --with-all-dependenciesNote: Minor upgrades (e.g., 10.2 → 10.3) may require relaxing the version constraint infirst:composer.jsonjson"drupal/core-recommended": "^10.3"Then run the update command above.
composer show drupal/core | grep versionscomposer.jsoncomposer updateThis updatesbut will not change version constraints incomposer.lock. Packages pinned to an older major will not cross that boundary.composer.json
composer update "drupal/*" --with-all-dependencies# What requires the package you're trying to update?
composer why drupal/package
# What prevents the target version?
composer why-not drupal/package 2.xcomposer.json# Check full dependency chain
composer depends drupal/module-a
composer depends drupal/module-bcomposer update drupal/module-a drupal/module-b --with-all-dependenciescomposer updategit checkout composer.lock
composer install# Confirm installed versions
composer show drupal/core-recommended
composer show --outdatedcomposer auditcomposer auditAfter verification, always ask the user these questions in order:1. "Do you want to commit these changes?"
- If yes:
bashgit add composer.json composer.lock git commit -m "Update Drupal dependencies"- If no → remind the user that
andcomposer.jsonare uncommitted before proceeding.composer.lock2. "Do you want to deploy these changes to an Acquia environment?"
- If yes → follow the Drupal Update and Deploy playbook to push code, switch the environment, and optionally trigger a pipeline build.
- If no → done.
| Problem | Command |
|---|---|
| Update ignored — package still old | Check constraint in |
| Run |
| Unexpected packages changed | Review |
| Memory limit error | |