ANT is a salesforce tool use to deploy components from one organization to another Steps to do Deployment using ANT:
- Create package.xml file and enter all the components which you want to retrieve. A sample package.xml can be found here
- Edit build.properties and specify source and target username, password and URL.
- Open command prompt where you've install ANT. You can specify source directory in build.xml where you want to retrieve files. Keep package.xml,build.properties and build.xml in same directory.
- Enter command "ant retrieveOnly" will retrieve all the components specified in package.xml from respective source.
- Enter command "ant validateOnly" will validate retrieved components on target org where we need to deploy.
- Once package is successfully validated with no errors, enter command "ant deployOnly". This will deploy all the components on target org.