You are here

How to install Drupal Console

You need a drupal 8 install.
Move to the drupal 8 root and type:

composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader

Replace username with your account username, and replace drupal_dir with the name of the directory where you installed Drupal:

echo 'alias drupal="/home/username/public_html/drupal_dir/vendor/bin/drupal"' >> ~/.bashrc
source ~/.bashrc

To verify that Drupal Console installed correctly

drupal site:status
drupal site:statistics
Taken from: 
https://www.a2hosting.com/kb/installable-applications/optimization-and-configuration/drupal2/installing-drupal-console