Setting Provisioning Profile / Signing Certificate from command line

I’m still trying to set up a CI environment to build my game for iOS. I am able to build from the command line on a remote Mac, but I can’t figure out how to set the provisioning profile / signing certificate from the command line. I am not able to launch the editor no the remote machine. The editor / engine I’m using was built form source on the remote machine. The game build seems to work up until it errors complaining about needing a profile. I know how to set that from the UE4 editor, but not how to do it by hand from the command line. Any thoughts on how to do this? Any other tips on setting up CI for iOS builds would also be appreciated.