Compiling C++ from command line

I’m currently working in a team with some artists which don’t have Visual Studio installed, so I have to submit to Perforce the Binaries directory when I update something. I am looking forward to automate the task and create a batch file which compiles the project and submits it to perforce. I have done the perforce part, but I don’t know how to compile the project from the command line, all the links I have seen talk about cooking the game, not compiling it.
Do someone know how to compile from command line the project. I don’t need it to hot reload, only to update the binaries folder. Thanks in advance.