How to Install Drupal Console

Note Statistics

Note Statistics

  • Viewed 92 times
  • 1 Grateful readers
Sun, 08/09/2020 - 18:28

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