How to Install Drupal Console

Note Statistics

Note Statistics

  • Viewed 17 times
  • 1 Grateful readers

This option installs Drupal Console via composer

  1. Type and execute the following command
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
  1. To ensure you can run drupal from any directory type
echo 'alias drupal="/home/username/public_html/drupal_dir/vendor/bin/drupal"' >> ~/.bashrc
source ~/.bashrc
  1. Test installation by executing the command bellow
drupal site:status
Authored by
AlexSopanovich