How to install a drupal module using drush in ubuntu 14.04

Drush is a command line shell and Unix scripting interface for Drupal.

Drush can easily install in ubuntu using following command:

sudo apt-get install drush

we can easily install a drupal module using drush in ubuntu using following command:

drush dl module_name

for example we need to install module pathauto like

drush dl pathauto

we also multiple modules can be installed  at a time by using drush like

drush dl module_name1,module_name2,………….

drush dl pathauto,token,addtoany

To enable modules using drush in drupal like this

drush en module_name

drush en token

here token is a module name.

here i mentioned some of the useful drush commands:

dl – download a module

en – enable a module

dis – disable a module

pm- uninstall  a module

up – show update information

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s