Drupal 8 - How to quickly build a custom module with Drupal console

In this blog post I am going to describe only how to start with the module development using Drupal console and in the future blog bosts I will refer to this one as a starting point for any further development.

Drupal Console is a fantastic tool that enables to create custom modules with a single command.

drupal generate:module


drupal gm




All you need to do then is to answer a few questions




In result you will get a new directory called /modules/custom/droptimum (or your module name) and two files

- droptimum.info.yml

- droptimum.module




This is just a starting point and the fun begins here. With Drupal console you can further extend your module by adding plugin blocks, controllers, forms and much more.