Link Search Menu Expand Document


Install Drush on root

Get a composer if you haven’t already

curl -sS | php
$mv composer.phar /usr/local/bin/composer
ln -s /usr/local/bin/composer /usr/bin/composer

Download drush from git repo

git clone /usr/local/src/drush

Get the latest one

cd /usr/local/src/drush git checkout master #for the latest one or whatever version you want
ln -s /usr/local/src/drush/drush /usr/bin/drush
composer install #if this results in error, run composer update to add the dependencies

Check the version

drush --version 

Have fun with drush within the folder where you installed Drupal.