Source control disabled building lighting on command lin

I’m using the resavepackages commandlet to build lightmaps on the command line for a project that’s in a Perforce repository. I need it to automagically check out any files being changed from Perforce, but the build log is telling me that source control is disabled. I know that source control is configured correctly as I can check out when I’m using the editor, but the command line just refuses to cooperate. The command I’m using is:

ue4editor.exe project.uproject -run=resavepackages -buildlighting -allowcommandletrendering -map=map.umap

Thanks for your help.

Did you ever figure out what was wrong? I’m attempting to get a commandlet based on resavepackages working and it has the same problem…