Type
magento2-module
Command line Magento 2 to show module list
magento2-module
OSL-3.0
None
None
None
None
None
This sample module creates one new command-line command:
magento module:list
(displays the list of modules)-vend|--vendor[="..."]
-en|--enabled[="..."] ('y' or 'n')
You can use this sample module as an example to create your own custom commands.