I would like to create a custom console command for my Craft 3 plugin. I've looked at the Yii docs and understand commands are defined using controllers extending \yii\console\Controller
but cannot work out how these controllers should be registered with the application.
To register site routes in Craft 3, we listen for the UrlManager::EVENT_REGISTER_SITE_URL_RULES
event and then define rules. What's the equivalent for registering console commands?
Thanks