Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (21 sloc) 1.06 KB
# getdrush is designed to do one thing, and do it well: get and install drush on a (debian linux) server.
# it turns out, this is getting easier, and easier, and the official way now
# involves composer:
# Step 1: get composer
curl -sS | sudo php -- --install-dir=/usr/local/bin
# Step 2: install drush globally for all users
# (see
# Download latest stable release manually or use code below. See
# Test your install.
php drush.phar core-status
# Rename to `drush` instead of `php drush.phar`. Destination can be anywhere on $PATH.
# on my systems, /usr/local/src is group-owned by my adm/dev group, and writable by me
chmod +x drush.phar
sudo mv drush.phar /usr/local/bin/drush
# Enrich the bash startup file with completion and aliases.
drush init
# Step 3: Profit! Print the version to confirm
drush --version