Compile under the command line

I want to compile the project and engine with command line. We use the source version of the engine, How do I compile it under the command line ? because we modify code of engine, so we need to compile engine code under command line too.