You can use:
deploytool -build foo.prj
To build from the command line using the current settings in the project.
Form the os command line, you can use
deploytool /build foo.prj
These are current supported, but are on a path to deprecation. The command will be replaced with similar, but improved functionality in a future release.