Build arduino with windows command line
The command line interface of the Arduino IDE is described in this document

https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc

For example, this command will compile and upload the Blink example to my Arduino Leonardo

./arduino --upload --board arduino:avr:leonardo --port /dev/ttyACM0 --verbose examples/01.Basics/Blink/Blink.ino


Foot note: with IDE 1.6.0, there is an experimental version of the IDE for recent MacOSXs. It doesn't yet support the command line. If you need the command line on Mac, use the recommended version. This will be fixed with 1.6.1