1.6.4: Command line usage

On Windows 7 64 bit, while I can successfully compile and upload .ino files, I am unable to do so via the command line:

c:\home\projects\ap>c:\opt\arduino-1.6.4\arduino.exe --port COM3 --upload c:\home\projects\ap\ap.ino

What is the right syntax for compiling and uploading from the command line?

Thanks,

Have you tried '--help' to get usage instructions? That works on many command line programs.