# Download latest stable release using the code below or browse to github.com/drush-ops/drush/releases.
# Example: drush 8.4.5
php -r readfile('https://github.com/drush-ops/drush/releases/download/8.4.5/drush.phar'); > drush
#ORwget 'https://github.com/drush-ops/drush/releases/download/8.4.5/drush.phar'# For ex to get 8.17 : wget 'https://github.com/drush-ops/drush/releases/download/8.4.5/drush.phar'
mv drush.phar drush
# Test your install.
php drush core-status
# Make `drush` executable as a command from anywhere. Destination can be anywhere on $PATH.
chmod +x drush
sudo mv drush /usr/local/bin
# Optional. Enrich the bash startup file with completion and aliases.
drush init
Aa a script: (Run sudo a command first, like sudo ls)
Comments