11

Between Drush and Drupal Console, which seems to have similar functionalities, which one should I install?

5
  • 1
    Drush, definitely. AFAIK Drupal Console is not compatible with Drupal 8.7-9, there are various issues in its issue queue, with the last commit being Nov 2019. github.com/hechoendrupal/drupal-console/issues
    – Kevin
    Aug 11 '20 at 19:25
  • One great thing about Drupal Console, that you can't do on drush command, is easily generating a custom module or a new block in a custom module. Here's a video on youtube, showing how easy it is to generate your own module: youtube.com/watch?v=VXi6g1-pLXk Aug 11 '20 at 22:16
  • That's wrong. Drupal Console requires github.com/Chi-teck/drupal-code-generator as does Drush. Try drush generate controller or try drush generate theme --answers '{"Theme name": "test", "Theme machine name": "test", "Base theme": "Classy"}' or try drush generate block etc. Have fun 😃
    – leymannx
    Aug 11 '20 at 22:34
  • 1
    drush.org/commands/10.x/generate
    – leymannx
    Aug 11 '20 at 22:40
  • 3
    That may be, but does not negate the fact that you can no longer install Console on newer versions of Drupal.
    – Kevin
    Aug 12 '20 at 1:20
10

You should use Drush.

Drush is about to be added to the drupal/recommended-project, see #3159647, while Drupal Console seems to be abandoned and currently is incompatible with Drupal 9 due to mismatched dependencies, see #4251.

Maybe Drupal Console finally accomplished its mission by triggering the modernisation of Drush. And there's no need for two CLIs. Now forces can be joined again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy