Currently drush does not bootstrap drupal 8 database (drush si), tested on D8 git repository. The official drush docu on github suggests drush master branch to use for D8. So I did a
git clone --branch master http://git.drupal.org/project/drush.git drush
git status #On branch master
> README.txt
> Drush development is no longer being done on the branch 'master'.
> Please run 'git checkout 8.x-6.x' to continue.
The master branch seems to be the branch of 8.x-6.x which is just drush 6.0-dev whereas this version clearly states that it does not work with D8. "Drush 6.0-dev does not support Drupal". I noticed that the master branch contains drush.info which declares "drush_version=7.0-dev".
So how to enable drush (7?) to work with D8 (alpha) as D8 earns interest for people to try out but don't want to miss the flavours of drush?
If DRUSH / D8 are broken, please update the official information for other users!
additional info: this issue has been reported on github.com, too.
Comments
Comment #1
wschleicher CreditAttribution: wschleicher commented"Issue" has been solved by using Github repo as announced on drupal.org. Thanks to drush owner for pointing me in the right direction!
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedGlad to hear your problem was solved.
Comment #3
lolandese CreditAttribution: lolandese commentedCan you please provide the necessary terminal commands to accomplish an upgrade from Drush version 6.0 to the one that supports Drupal 8? I tried several but with no success.
Thanks.
Comment #4
wschleicher CreditAttribution: wschleicher commentedNot sure what's meant about drush 'update'. Just remove the old drush folder and its symbolic link and get a fresh git version. In my case there are no drush ALIAS or PATH settings inside .bash_profile.
## drush_version=7.0-dev [D6,D7,D8]
cd /usr/local
rm -rf drush-7.x
git clone --branch master https://github.com/drush-ops/drush drush-7.x
#cd /usr/local/drush-7.x
#git status
#git branch -a
rm -f /usr/bin/drush
ln -s /usr/local/drush-7.x/drush /usr/bin/drush
Comment #5
lolandese CreditAttribution: lolandese commentedI was hoping I could use something like
pear upgrade drush/drush-7.x
or
pear upgrade drush/drush-HEAD
Did a fresh manual install instead, as suggested.
Thanks anyway.
Comment #6
himanshubhawsar CreditAttribution: himanshubhawsar commentedI install Drush Version 8.0-dev Version, and it works fine.
Thanks.