how to update drupal using composer code example Example: drupal composer update composer update drupal/core 'drupal/core-*' --with-all-dependencies