Jump to the navigation menu

drush deploy

This week I learned about the drush deploy command.

It's been available since Drush 10.3 and combines several commands together in an attempt to "standardise how Drupal deployments work".

These commands are:

drush updatedb
drush config:import
drush cache:rebuild
drush deploy:hook

Usually, I run these commands separately but grouping them and standardising makes a lot of sense.

drush deploy:hook is also very interesting and allows for adding deploy hooks similar to update hooks in .install files.

I'm looking forward to updating my deployment pipelines to use this and making them simpler and easier to maintain.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 18 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.