Drush 7 for Drupal 8
- Drupalguy's Blog
- Log in to post comments
Over the last couple of weeks I have started playing with Drupal 8. So far it's been a pleasant experience (surprisingly) though originally I had issues with getting it installed. I tried using drush dl but it would not work (when used it would only download the latest version of Drupal 7). Turns out Drush 6 (the version I was currently at) does not support Drupal 8. Inorder to run Drush with Drupal 8 we have to upgrade Drush to version 7.
I searched and found a couple of resources to accomplish this. The major requirement to upgrading Drush is the need to have Composer installed. Fortunately I installed Composer when I first installed Drush, but to double-check you can run command 'which composer' which will retuen the path to your Composer install (/usr/local/bin/composer). After that you make sure Composer is in your system PATH and you can do that with the commands:
- sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
- source $HOME/.bashrc
To install Drush 7 all you have to do is issue the command:
-
composer global require drush/drush:dev-master
Once done installing Drush 7 you can verify it by issuing the command:
- drush status
And that is all there is to it.
If you are in need of more in dept instructions for installing Drush 7 & Composer you can checkout this page: