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