> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing Drush manually

> Learn how to manually install Drush on your hosting account.

This article describes how to install Drush manually.

<Note>
  Most hosting accounts already include Drush by default. However, it may be a few versions behind the newest version. To run the latest version of Drush, install it manually using the following procedure.
</Note>

## Installing Drush

The Drush installation process uses *composer*, a PHP dependency manager. Therefore, if you have not already installed composer on your account, you must do so before installing Drush.

<Note>
  For information about how to install composer on your account, please see [this article](/docs/installing-composer).
</Note>

To install Drush, follow these steps:

1. Log in to your account [using SSH](/docs/using-ssh-secure-shell).

2. Change to the directory where you installed Drupal. For example, type `cd ~/public_html/drupal`.

3. To install Drush, type the following command:

   ```bash theme={null}
   composer require drush/drush
   ```

4. To add Drush to your path, type the following command:

   ```bash theme={null}
   echo 'export PATH="./vendor/bin:$PATH"' > ~/.bashrc
   ```

5. To make the new path take effect immediately, type the following command:

   ```bash theme={null}
   source ~/.bashrc
   ```

   Drush is now installed and ready to use on your account. To run it, change to the Drupal root directory, and then type `drush`.

   > 📘 Note
   >
   > * To confirm Drush installed correctly, type the following command:
   >
   >   ```bash theme={null}
   >   drush version
   >   ```
   >
   > * To update Drush to the newest version, type the following command:
   >
   >   ```bash theme={null}
   >   composer update drush/drush
   >   ```

6. If you have multiple Drupal sites installed on your account, repeat steps 2 to 3 for each Drupal site.

## More information

For more information about Drush, please visit [http://drush.org](http://drush.org).

## Related articles

* [Using Drush for Drupal](/docs/using-drush-for-drupal)

* [Configuring Drush site aliases for Drupal](/docs/configuring-drush-site-aliases-for-drupal)
