Visual C++ : Building on the Command Line
Visual C++ cl.exe Compiler Options
Visual C++ link.exe Linker Options

Devenv Command Line Switches : Devenv allows you to set various options for the integrated development environment (IDE) as well as compile, build, and debug projects from the command line