Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. Drush can be extended by 3rd party commandfiles.
If you would like to install Drush, please follow these steps:
Run these commands:
cd /usr/local/src/ php -r "readfile('http://files.drush.org/drush.phar');" > drush chmod +x drush mv drush /usr/local/bin/
If you are using CageFS, you will need to run these commands:
echo -en '[drush]\ncomment=Allow drush to work on the server\npaths=/usr/local/bin/drush\n' > /etc/cagefs/conf.d/drush.cfg cagefsctl --force-update
In order to allow Drush run disabled commands, under user run the following commands:
mkdir ~/.drush echo "disable_functions=" > ~/.drush/drush.ini
Run the final command to start Drush:
drush init
That's all, you can now use drush.