What is Drush ?
Drush is a command-line interface specifically made for dealing with Drupal. It provides a much faster management experience and is recommended if you are not afraid of using the command line.
1. Clone Drush master branch from git
We want to get the master branch from the Drush github repository. This will be placed under “usr/local/lib” as a new folder named “drush”. Launch your Terminal and type:
> cd /usr/local/lib/
> git clone --branch master https://github.com/drush-ops/drush.git
if suppose after executing the above command , if it says "permission denied" you can just try getting permission or else just change the directory and install it over there for time being .... which solves your problem , but not a permanent solution
Note:-
2. Get composer
Drush 8 requires composer to install, so you need to get that if you don’t have it already. We also want to move composer to /usr/local/bin/ so that it’s easier to use.
> curl -sS https://getcomposer.org/installer | php
> mv composer.phar /usr/local/bin/composer
3. Install Drush
We can now install Drush through Composer. At the end, Composer will generate some autoload files, though you can ignore the suggestions.
> cd drush
> composer install
4. Go ahead and unleash the power of Drush 8
Now it’s time to test that everything we did works well. Type:
> drush8 version
It should return this text:
Drush Version : 8.0-dev
Comments
Post a Comment