Parameters to connect UnrealEditor-Cmd.exe to source control (perforce) on build machines

We want to run UnrealEditor-Cmd.exe in the build process (on the build machines) to automate some tasks. However, this tool does not connect to perforce if we did not opened at least once the Editor and set the parameters to connect to the source control. Is there any way to pass perforce connection parameters on the command line?

There is a ParseCommandLineSettings method on FPerforceSourceControlProvider but this method seems to only look in the ini file that does not exist since we are not editing the connections settings on each and every build machine with the Editor.

I know there is a SCCProvider argument, so may be -SCCProvider=Perforce does help. I’m unsure about how to give connection details though. Isn’t that some ini settings? So just copy that ini to your build machine.