- From the URL https://github.com/drush-ops/drush, clone or download the zip file.
- Make sure to check the 'Drupal Compatability' here http://docs.drush.org/en/master/install/?highlight=versions.
- Put into home folder and extract it.
- Rename folder as drush.
- Drush now requires Composer in order to install its dependencies and autoload classes.
- If you don't have composer run below commands or else skip this step.
In terminal:
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer
7 . From the drush directory run composer install.
composer install
8 . nano ~/.bash_profile and add the following line to the end of the file:
export PATH=$PATH:/Users/myusername/drush
Replace /Users/myusername/drush with the name of the directory where you unpacked Drush.
Alternative export path would be:
export PATH="$HOME/drush:$PATH"
10 . Run below command.
source ~/.bash_profile
11 . Test drush --version
Very helpful. Thanks.