Skip to main content
Last Reviewed: December 12, 2022

Set Drupal Core Version


Change your core version to the latest version of Drupal now that you've confirmed that your core dependencies are compatible.

Run the code below to set the Drupal core version to the latest version of Drupal:

composer require --update-with-dependencies --no-update 'drupal/core-recommended:^10' 'drupal/core-composer-scaffold:^10'
composer update drupal/core* -W
git add composer.*
git commit -m "upgrade to Drupal 10"
Info:
Note

If you receive the error message Your requirements could not be resolved to an installable set of packages, replace the composer update drupal/core* -W command with composer update