Skip to content

Instantly share code, notes, and snippets.

@mikedamoiseau
Created December 13, 2022 03:55
Show Gist options
  • Save mikedamoiseau/ef53798bae2118c53f445d9c6163a9f6 to your computer and use it in GitHub Desktop.
Save mikedamoiseau/ef53798bae2118c53f445d9c6163a9f6 to your computer and use it in GitHub Desktop.
Updating Drupal core via Composer

See "Updating Drupal core via Composer" on Drupal's website.

# List available Drupal updates
composer outdated "drupal/*"

# Verify we are using "drupal/core-recommended"`
composer show drupal/core-recommended

# Update the core with its dependencies
composer update "drupal/core-*" --with-all-dependencies

# Run database updates
drush updatedb

# Rebuild the cache
drush cache:rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment