How to register commands in bundle only on dev environment

So I have symfony 4.4 application and I would like to add new bundle that would be used only in dev environment to help with testing some backend functionalities. I would like this bundle to have commands that could be run on this dev enviroment only. On production enviroment such commands should be either not registered either disabled. Depends on implementation but overall goal here is to not be able to run such commands on production.

I know that such thing could be implemented by adding such check to command. But thing is that I would like not to have to add every time such lines. It should be done somehow automatically in other place. So when I would add 5 commands those 5 commands in bundle would be able to run only on dev environment

How can I achieve those 2 goals?