drupal 8 composer show updates status code example
Example 1: drupal composer update
composer update drupal/core 'drupal/core-*' --with-all-dependencies
Example 2: drupal 8 composer update
composer update drupal/core "drupal/core-*" --with-all-dependencies