---
title: "How to Install Drush"
id: "2874"
type: "ht_kb"
slug: "how-do-i-install-drush"
published_at: "2013-05-21T16:14:57+00:00"
modified_at: "2020-03-18T17:10:51+00:00"
url: "https://www.greengeeks.com/support/article/how-do-i-install-drush/"
markdown_url: "https://www.greengeeks.com/support/article/how-do-i-install-drush.md"
excerpt: "Drush is a command-line utility for advanced users administering Drupal websites. Check the compatibility chart to see which version of Drush is right for your version of Drupal. How to install Drush (dev-master version) on GreenGeeks Request SSH access for..."
taxonomy_ht_kb_category:
  - "Developer Tools"
---

Drush is a command-line utility for advanced users administering [Drupal](https://www.greengeeks.com/scripts/drupal-hosting.php)
 websites.

*[Check the compatibility chart](http://docs.drush.org/en/master/install/#drupal-compatibility)
 to see which version of Drush is right for your version of Drupal.*

How to install Drush (dev-master version) on GreenGeeks

1. [Request SSH access for your account](https://www.greengeeks.com/support/article/does-green-geeks-provide-shell-accessssh/) .
2. SSH to your GreenGeeks Account.
3. Run the following commands in this order:

Go to your home directory:

```
cd
```

Create the Drush directory:

```
mkdir drush
```

Go to the Drush directory:

```
cd drush
```

Download the Drush installer:

```
curl -sS https://getcomposer.org/installer | php
```

Install:

```
./composer.phar require drush/drush:dev-master
```

Add the alias line to the bottom of your .bashrc file:

```
cd
echo "alias drush='~/drush/vendor/bin/drush'" >> .bashrc
```

Reload your profile:

```
source .bashrc
```

### To install a specific version of Drush

In this example, we’ll install version 8. The commands that are different from the above installation steps are **green**.

Go to your home directory:

```
cd
```

Create the Drush directory:

```
mkdir drush8
```

Go to the Drush directory:

```
cd drush8
```

Download the Drush installer:

```
curl -sS https://getcomposer.org/installer | php
```

Install:

```
./composer.phar require "drush/drush:8.*"
```

Add the alias line to the bottom of your .bashrc file:

```
cd
echo "alias drush8='~/drush8/vendor/bin/drush'" >> .bashrc
```

Reload your profile:

```
source .bashrc
```

### If you encounter errors installing Drush

When you run the last command, you should see Drush running correctly. However, you may encounter shell_exec errors that our support team will need to address for you.

If you have any problems installing Drush—including any shell_exec errors—please [contact our support team](https://www.greengeeks.com/support/)
, and we will be happy to help. [Opening a support ticket in GreenGeeks](https://my.greengeeks.com)
 is the best way to reach us.
