Drupal Console is a tool to generate boilerplate code, interact with, and debug Drupal.
Please refer to the official Drupal Console docs for usage details.
Drupal Console is expected to be installed as a project level dependency via Composer.
# Change directory to Drupal site
cd /path/to/drupal8
# Download DrupalConsole
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
A global Drupal Console Launcher is installed in the cli
container and will pass the execution to the project level binary.
From the host via fin
:
fin drupal --version
From the cli container (fin bash
) Drupal Console can be called directly:
drupal --version
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Docksal, ask it in Discussions on GitHub. Open an issue if you want to report a problem or suggest an improvement. You can also contribute changes to this page using the link in the top right corner.