Install Command-line utilities for Drupal 8

If using the drupal/recommended-project template, it doesn't contain the site local Drush and Drupal Console binaries by default. Here's how to get them running.

When following the basic instruction for Setting up a New Drupal Installation there's another step.

composer require drush/drush

composer require drupal/console

Drush uses the "drush" command. To see a list of Drush commands:

drush help

Drupal Console uses the "drupal" command. To see a list of Drupal Console commands:

drupal list

 

Article references

Add new comment

comment editor

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.