Drupal Console installation

There are two ways for installing the Drupal Console. In both of them, there are two steps. These comments are for Linux or Mac machines.

  • Using composer 

Run this command

$ composer global require drupal/console:@stable --prefer-dist

or this command if you want to keep the commands "drupal site:mode dev" and  "drupal site:mode dev" that were removed in newer releases


Drupal Console compilation

This is for the launcher. You have to download a compressed version (tar or zip) from

Next, you have to run inside of the uncompressed folder

$ composer install
$ box build

This will create the launcher drupal.phar. You can move it to /usr/bin/local to make available anywhere.

Do not forget that in addition you must add the Drupal Console each time you work over a Drupal installation