Blog Banner Background

How To Install Drupal Console For Drupal 8 !!

Ultimate-Guide_-How
Jayesh Makwana
By Jayesh Makwana
Jayesh Makwana

Jayesh Makwana

Jayesh Makwana works as a Drupal Architect at cmsMinds. He designs Drupal architecture, works on complex builds, and supports teams with technical decisions across large and custom Drupal projects.

Table of Contents

$: curl https://drupalconsole.com/installer -L -o drupal.phar

$: php drupal.phardrupal 8 console

$: mv drupal.phar /usr/local/bin/drupal

$: chmod +x /usr/local/bin/drupal

$: drupal initdrupal 8 console

$: source “$HOME/.console/console.rc” 2>/dev/null
$: ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish

Congratulations!!! You, just installed Drupal console on our system.

Note: If you want to allow your project use Drupal Console for selected projects from other projects then you need to run below command. This is done using Composer.

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