Is there a simple drush site-install script for Drupal 8? I've gotten very used to running the following script to install Drupal.

drush site-install standard --account-name=admin --account-pass=admin --db-url=mysql://username:password@localhost/sitename -y; 

I manage to install Drupal 8 with Drush after creating the project with Composer from drupal-composer/drupal-project. Steps I take are as follows:

  1. Create project with dev dependencies:

composer create-project drupal-composer/drupal-project:8.x-dev directory-name --stability dev --no-interaction

  1. Create site-database for the project.

  2. Run inside web folder:

../vendor/bin/drush site:install standard --account-name=admin --account-pass=admin --db-url=mysql://username:password@localhost/site-database -y

| improve this answer | |

drush site:install or drush si seems to work as intended. You can also use drush make to download the core files and any other modules that you need.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.