[SOLVED] How we can download and enabled a module using Drush command

| | 1 min read

We can use the following command for downloading and enabling module till the version of drupal7

drush dl module_name
drush en module_name -y

In Drupal 8 and Drupal9 you no longer use Drush. Use composer command instead 

composer require drupal/module_name

After, you will need to enable the module using the Drush command

drush pm:enable module_name

Reference

https://drupal.stackexchange.com/questions/60375/drush-command-to-download-and-enable-a-module