Last Updated: February 25, 2016
·
1.556K
· sanguis

download and enable modules in one command with drush

In the past I have always used two commands to download and enable a module.

drush dl MODULE
drush en MODULE

Recently I realized that since drush en will download module dependencies when enabling the module it would also download the primary module.

So just run

drush en -y MODULE

It will download and enable MODULE and any of its dependencies.