Drupal Console | Modules Unraveled

147 - Using Drupal Console with Drupal 8 with Jesus Manuel Olivas - Modules Unraveled Podcast

Photo of Jesus Manuel Olivas

Drupal Console

  • What is Drupal Console?
    • It is a suite of tools that you run on a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 installation.
  • How is it different from Drush? And are there overlapping features?
    • There are many similarities between these two tools, but the main difference is how it was built, using an object-oriented architecture and Symfony components.
  • Will we continue to use both? Or will Drupal Console replace Drush?
    • I think we will keep using both at least for now and maybe at some point we can merge both tools.
  • What are some of the things that you will keep using Drush for in Drupal 8?
    • Site alias (sync, backup), download modules, installing the site.
  • Are you planning to introduce those features into Drupal Console?
    • Yes we are actually working on site alias.
  • What are some things that Drupal Console can do that Drush can’t?
  • Who is the intended audience of Drupal Console?
    • You can use Drupal Console to help you developing faster and smarter with Drupal 8
    • Developers and SiteBuilders since you can Generate code and files required by a Drupal 8 module and Interacting with your Drupal installation (debugging services, routes) you can put your site in Maintenance mode or Switch system performance configuration.
    • But you can use this tool to Learn Drupal 8.
    • We are also working on a GUI so if you are afraid of CLIs we will provide a web site you will be able to use and select what you want to generate (module, controller, services, blocks, entities, etc…) and generate and download the generated code.
  • Would it be fair to say that right now, it’s most useful to developers who are actually writing code, while later, it will also be useful for sitebuilders who are used to using Drush to create site, install modules and themes, and perform routine tasks?

Use Cases

  • What are some things you can do with DrupalConsole?
    • Drupal Console help you developing faster and smarter with Drupal 8.
    • Generating the code and files required by a Drupal 8 module.
    • Interacting with your Drupal installation.
    • Learning Drupal 8.

Updates and Future

  • You were on the Drupalize.me podcast back in February talking about Drupal Console, what are some of the improvements that have been made since then? (Especially with Drupal 8 progressing the way it is.)