Skip to main content

Install or Upgrade Drush for Drupal 7

Updated by Tim Rabbetts on
code, coding, programming
# Download latest stable release.
php -r "readfile('https://s3.amazonaws.com/files.drush.org/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

 

Add new comment