This article describes how to install Drupal Console.
Drupal Console is a command-line tool used for Drupal administration and development. It is currently intended to complement, rather than replace, the Drush command-line tool.
To install Drupal Console, follow these steps:
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
To ensure that you can run Drupal Console from any directory, type the following commands. 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
You can now run Drupal Console by simply typing drupal at the command prompt from any directory in your account.
To verify that Drupal Console installed correctly, type one or both of the following commands in the Drupal site directory:
drupal site:status drupal site:statistics
You should see information about your Drupal site.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.