1. Start with empty directory and prepared empty database (or user with permission to create database)
  2. drush dl drupal --drupal-project-rename=example
  3. cd example
  4. drush site-install standard --db-url='mysql://[db_user]:[db_pass]@localhost/[db_name]' --site-name=Example

https://www.drupal.org/documentation/install/developers

Advertisements