- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 94字
- 2025-04-04 18:20:50
Installing with Drush
As discussed in the first recipe's There's more... section, you can install a Drupal site through the Drush command-line tool. You can instruct Drush to use a specific installation profile by providing it as the first argument.
As of Drush 9, which supports Drupal 8.3+, this section is deprecated. Using Drush to download Drupal core or contributed modules will throw a warning to use Composer instead.
The following command would install the Drupal 8 site using the Demo Framework:
$ cd /path/to/drupal8
$ drush pm-download df $ drush site-install df -db-url=mysql://user:pass@localhost/database