Drupal - How to install Drush

What is Drush?

It's a command line shell and scripting interface for Drupal. The Drush Package Manager allows you to download, enable, disable, uninstall, update modules/themes/profiles/translations from the command line in a very simple way (apt-get style) - just type,

 drush dl views 

and

 drush pm-enable views 

in a Drupal directory to install the Views project!

Additionally, the Drush Package Manager also allows you to update all your modules and even Drupal core with just one command,

 drush pm-update 

How to install Drush

  1. Download the current version of the Drush Package from the Drupal website.
  2. Upload the folder to the root directory of your server. I did this on a shared environment.
  3. Login to your server via shell.
  4. Make the 'drush' command executable:
    $ chmod u+x ~/drush/drush
  5. create an alias to drush:
    $ alias drush='~/drush/drush'
    Now, you must log out and then log back in again or re-load your bash configuration file to apply your changes to your current session:
    $ source .bashrc
  6. Start using drush by running "drush" from your Drupal root directory.

3 comments for Drupal - How to install Drush

Yurtdışı Eğitim's picture

It seems like a very good web...

It seems like a very good web site but my English is not good. But, I like this web site very much.

By the way, Thanks for this information.

Sean Brady's picture

Very interesting article!...

Very interesting article! Thank you for sharing this with us!

Miguel's picture

Thanks for this. The Drush...

Thanks for this. The Drush project page outlines a different protocol for installing Drush in Windows. Was just wondering if your instructions refer to Windows or non-Windows environments (and if non, which one?) Thanks.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.