«There are no commands defined» failure
If you get the «There are no commands defined» failure while trying to execute a console command in Magento 2, you can easily fix it. The reason of this problem is probably an absence of an extension’s etc/module.xml file or an error in the same file.

