Command line build tool ant

To perform builds from outside of Eclipse using ant
how I can install and run ant ?