In a Rush? Install with Drush!

You know how to install Drupal the normal way, but there is a shortcut, if you have drush.

Drush provides a command (site-install) for downloading modules. Drupal, itself, is kept as a project in the modules section of Drupal. So, drush can download it, as well. Installing Drupal can be done with another drush command. Here is how to install Drupal, in 3 easy steps:

drush dl drupal --drupal-project-rename=<my project name>

cd example

drush site-install standard --db-url='mysqli://[db_user]:[db_pass]@localhost/[db_name]' --site-name=<site directory name>

 


Type:
Tip
Tags:
D7
Drupal
drush
install