On a LAMP environment I have a Drupal 8.5.6 website which is nearly all-core with the Bartik theme and a few stable contrib modules. Nothing is customized and I have daily backups so I don't "fear" of updating anything in one go this time.

I tried drush up * but got:

Command "up" is ambiguous.

I didn't find an update command in Drupal Console documentation.

How could I upgrade all in one go from the CLI?

  • 1
    Composer is responsible for updating Drupal now, not Drush. See the documentation. – Felix Eve Sep 14 '18 at 8:58
  • 3
    @people-down-voting-this-question: Yes, John could have made some more research, but the base question: "How to update core and all modules" is in fact useful IMHO. – hansfn Sep 14 '18 at 9:06

Assuming you are using Composer to maintain your Drupal 8 installation, you can use the following command to update core and all modules (and dependencies):

composer update drupal/* --with-dependencies

If you started your project from "drupal-composer/drupal-project" the command should otherwise be:

composer update drupal/* webflo/drupal-core-require-dev --with-dependencies

And always after updating, don't forget to run database updates and rebuild the cache:

drush updatedb
drush cache:rebuild

To better understand the two commands and how they differ, read:

  1. https://www.drupal.org/docs/8/update/update-core-via-composer
  2. https://www.drupal.org/docs/8/update/update-modules


  • If you started your composer project from "drupal/drupal" as the user guide says, you are in trouble. I think you are since "drupal/core" isn't listed as installed. This is really a new question, but you could try to use Composerize Drupal to fix the problem.

  • If you started your project from a tar-ball, you also need use Composerize Drupal if you don't plan to do manual updates for ever ;-)

  • Drush 9 doesn't support updating core or modules. It will tell you to use Composer. Anyway, reading the Drush docs is very useful


Are you using composer? If so, it's three steps

First, CD into your root DIR, then

composer update drupal/core --with-dependencies
drush updb -y
drush cr

@see https://www.drupal.org/docs/8/update/update-core-via-composer for me details.

  • 2
    IINW, this command covers only core, without contrib modules and contrib themes. – JohnDoea Sep 14 '18 at 4:48
  • This is the uppermost output I got (before all the "downloading" and "installing" part). Does it seem okay to you (the first line made me a bit worried)? --- --- --- Package "drupal/core" listed for update is not installed. Ignoring. – JohnDoea Sep 14 '18 at 7:39
  • No, it's not OK. Read my answer to your question. PS! Run composer info | grep '^drupal/' to see what Drupal stuff you have installed. – hansfn Sep 14 '18 at 7:54
  • 1
    Which probably means you started your composer project from "drupal/drupal" as I was afraid of. Please read the PS in my answer ... – hansfn Sep 14 '18 at 7:59
  • 1
    OK, so you weren't really using Composer. Anyway, the solution still is github.com/grasmash/composerize-drupal - or manually upgrading core drupal.org/docs/8/update/update-core-manually – hansfn Sep 14 '18 at 8:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.