

DRUPAL COMPOSER UPDATE UPDATE
Run composer require :dev-# Update an existing Drupal 8 project to use Composerĭelete everything that will be managed by Composer: Drupal's "core" folder, contrib modules, etc.ĭelete all Drupal "root" files, such as index.php, update.php, README.txt. The cweagans/composer-patches plugin (which comes with the Drupal Composer template) will take patches from the "extra" section of the composer.json file:

composer update drupal/ to update a single module.composer update -dry-run to check for updates.composer require drupal/:dev-# to get the exact version.composer require drupal/:dev- to get the latest dev version.composer require drupal/:~8.0 to get the latest stable version (or latest dev, if there is no “stable release").(All recipes consider Drupal 8, but they should work for Drupal 7 as well) Installing contrib modules

