Post

update drupal core with composer

Check Status report under Reports in the Administrative GUI. Fix all errors and warnings before proceeding. Before updating, make a back up with Backup and Migrate or Drush, so you can roll back if anything goes wrong. If you use Drush, update to minimum Drush 12.4.3 to be Drupal 10.2 compatible:

1
composer update drush/drush

Update Drupal core with this command:

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

Use Drush to run required database updates and rebuild caches:

1
2
drush updatedb
drush cache:rebuild

Check Status report under Reports. Fix all errors and warnings.

If using ddev

1
2
ddev ssh
composer update "drupal/core-*" --with-all-dependencies
This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.