The Drupal Console is a suite of tools run from a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 or Drupal 9 installation. It's an essential tool for anyone writing code for Drupal.
Drupal Console provides a command line utility for performing common site administration tasks, code generation scaffolding, and a Read-Evaluate-Print-Loop for interacting with your Drupal site. In addition to using the code generation tools for scaffolding new functionality they can also be used as an educational tool to learn about the various parts of different Drupal subsystems.
- Use Drupal Console to perform common site administration tasks, like rebuilding the cache, importing configuration, or executing Cron
- Use Drupal Console's code generation tools to create a new custom module
- Use the shell command to interact with your Drupal site in a Read-Evaluate-Print-Loop
Drupal Console has relatively recently moved to a new installation method that depends on Composer, and it is kept up to date with the latest versions of core.
While a couple of years old, in this podcast with the core Drupal Console team you will learn about their vision for the project, their evaluation of its core value proposition, and why you should give it a try.
This week on the podcast, Amber Matz chatted with Jesus Manuel Olivas about the Drupal Console project. What is Drupal Console? The Drupal Console is, at this time, a suite of tools that you run on a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 installation.
The following tutorials demonstrate the use of Drupal Console in various use-cases: