Los comandos de los módulos yii2 no se muestran en la consola

#Do this in bootstrap file of your module, you just have to register the consoleControllerNamespace

    public function bootstrap($app)
    {
        if ($app instanceof \yii\console\Application) {
            $app->getModule('test')->controllerNamespace = 'mymodules\test\console';
        }
    }
M. Wasim Abbasi