Last Reviewed: December 13, 2022
Set Drupal Core Version
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