In a Rush? Install with Drush!

18 June, 2024

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>


Login or Register to Comment!