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,
1 |
drush dl views |
and
1 |
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,
1 |
drush pm-update |
How to install Drush
- Download the current version of the Drush Package from the Drupal website.
- Upload the folder to the root directory of your server. I did this on a shared environment.
- Login to your server via shell.
- Make the ‘drush’ command executable:
1$ chmod u+x ~/drush/drush
- create an alias to drush:
1$ 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:
1$ source .bashrc
- Start using drush by running “drush” from your Drupal root directory.
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.
Very interesting article! Thank you for sharing this with us!
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.