Created Setting up Drush (markdown)

Theodotos Andreou 2018-01-14 15:19:55 +02:00
parent 211b80a433
commit 600193cd7c

42
Setting-up-Drush.md Normal file

@ -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/