Drupal 11 cheatsheet

Drupal 11: Updates

5 common Drupal 11 tasks.

Find outdated Drupal packages

List Drupal packages that have newer versions.

composer outdated "drupal/*"

Update Drupal core

Update core and its dependencies.

composer update "drupal/core-*" --with-all-dependencies

Caution: Back up the database and code first, and read the release notes.

Run database updates

Run pending update hooks after updating code.

vendor/bin/drush updatedb

Run the deploy steps

Run database updates, import configuration and rebuild the cache in one go.

vendor/bin/drush deploy

Check for security updates

List installed packages that have security advisories.

vendor/bin/drush pm:security

Was this page helpful?