Skip to main content

Install drush globally

sudo git clone https://github.com/drush-ops/drush.git /usr/local/src/drush

cd /usr/local/src/drush

You are on master now, the latest version of drush ... if you prefer another one, check it out:

sudo git checkout 10.2.2

Make it globally available and put it to work:

sudo ln -s /usr/local/src/drush/drush /usr/bin/drush

sudo composer install

Check if it works:

drush --version