Can I add an apple id to Xcode from the command line?

We have CI machines that now require provisioning profiles to be downloaded after we added keychain shared access to the project entitlements.

Is there a way to add/log in a developer account to Xcode from the command line? That way the provisioning profiles could be automatically downloaded.

We want this because we would like to have a fully automated setup for our CI.

Any help would be really appreciated :) Also if you have any alternative ways to deal with this problem.

is there any solution to this problem? I am also looking for a way to add developer account to xcode through terminal.

Can I add an apple id to Xcode from the command line?
 
 
Q