http://www.gurobi.com/html/doc/refman/node383.html
If your model contains double-precision numerical coefficients (ex: many digits after the decimal point), MPS format is recommended. Otherwise, either LP or MPS formats can be used.
As for solving a model from the command-line, there are two options. Full control is available through the Interactive Shell, while a simple interface is available through the gurobi_cl command. These are both described in: