diff --git a/Setting-up-Drush.md b/Setting-up-Drush.md new file mode 100644 index 0000000..5c32611 --- /dev/null +++ b/Setting-up-Drush.md @@ -0,0 +1,42 @@ +In this guide we are installing Drush, the command line interface of Drupal. According the the developers: + +> Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt. + +## Prerequisites + +* A [[Drupal setup|Setting up Drupal 7]] + +## Install dependencies + +Run the commands as the *ubuntu* user: + +``` +$ sudo apt -y install curl unzip +$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer +``` + +## Install Drush + +Switch to the *webadmin* user: + +``` +$ sudo su - webadmin +``` + +Install Drush: + +``` +$ cd cms/ +$ composer require drush/drush +``` + +You can run *drush* to check the status of your Drupal install, with: + +``` +$ ./vendor/bin/drush status +``` + +References +---------- +* http://docs.drush.org/en/master/ +* http://www.bravo-kernel.com/2014/08/how-to-install-composer-on-debian/ \ No newline at end of file