Topic

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.

Example tasks

  • 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

Confidence

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.

Drupalize.Me resources

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:

More Guides

We have guides on many Drupal skills and topics.

Explore guides

External resources

  • Drupal Console GitHub repository (github.com)
    • This is the canonical source for the Drupal Console codebase. It contains links to many of the other resources mentioned here.
  • Drupal Console documentation (docs.drupalconsole.com)
    • This is the official source for Drupal Console documentation (available in several languages). This documentation includes installation instructions as well as thorough documentation for each of the commands available in Drupal Console.