We saw in the previous example how we can retrieve metadata from a sandbox and deploy to a local environment. We can use Eclipse to edit and make changes in code or add new feature code. Developers can use the Force.com migration plugin to sync metadata with a workspace in Eclipse. After making changes in code, developers can deploy changes on a test/UAT sandbox. We can use the Force.com Migration Tool to deploy changes to the sandbox.
We will go through the common procedure to deploy metadata to a Salesforce organization from a local machine using the Ant Migration Tool. To provide access to the sandbox, we need to add sandbox credentials in the
build.properties file as we provided credentials in Step 3 in the Retrieve metadata from sandbox section previously. The value of the
Sf.serverurl field will depend on where you want to deploy your changes. If you want to deploy on test, UAT sandbox, or any other development sandbox, then it will be