This article describes how to install Drush manually.
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.
To install Drush, follow these steps:
composer require drush/drush
To add Drush to your path, type the following command:
echo 'export PATH="./vendor/bin:$PATH"' >> ~/.bashrc
To make the new path take effect immediately, type the following command:
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.
drush version
To update Drush to the newest version, type the following command:
composer update drush/drush
For more information about Drush, please visit http://drush.org.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.