Editing Bundle ID via commandline

I have two account, one developer account and one developer enterprise account. I believe that Apple wont allow to register same bundle id in two different accounts. So we have to slighty modify the bundle identifier if we want to distribute via enterprise account. Is there a way to change the bundle identifier via command line like xcodebuild so that we can change while building the app which will be a part of our continous integration.

You can create a new build configuration and call it "Enterprise" for example. Bundle identifier can be different for every build configuration so you can keep the regular one on Debug and Release configurations and change it to whatever you want on Enterprise one (if regular bundle id is com.example, enterprise one could be com.example.enterprise). When building on CI, you just need to specify which build configuration you want to build and that's it.
Editing Bundle ID via commandline
 
 
Q