The Drupal console makes Drupal developers' lives really easy.
Install the Drupal console on your system.
Download and move it to the local path with execute permission, then run the following commands:
curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal
Run the following command to copy the config file into your home directory.
drupal init
Now that you have the Drupal console installed on your system, run the following command to check.
drupal list
Setup a drupal project using aquia/blt, please refer my post Setup drupal 8 using aquia/blt on nginx Ubuntu.
Now add the Drupal console to your existing project using the below commands.
cd /var/www/blt-drupal.com/
rm -rf vendor/ composer.lock
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
- Log in to post comments