then you do this: https://github.com/doctrine/DoctrinePHPCRBundle/blob/master/DoctrinePHPCRBundle.php#L55

can we mention Bundle::registerCommands of the bundle for this, please? the important thing here i guess is thats in the bundle, not DI, so you can't use configuration to decide if you want to show the command (so the next point is whats really relevant).