Here are the steps to use the ANT Migration Tool in Salesforce:

Install the ANT Migration Tool: You need to download and install Apache Ant and the Salesforce ANT libraries to use the tool.

Set up your environment: You need to set up environment variables and configure the build.xml file to point to the location of the Salesforce ANT libraries.

Define your metadata: You need to create a package.xml file that defines the metadata components that you want to deploy.

Authenticate to your Salesforce environment: You need to create a properties file that contains your Salesforce credentials, such as your username and password.

Run the deployment: You can run the deployment using the following command: ant deploy -propertyfile <properties_file_name>

Monitor the deployment: You can monitor the deployment process by checking the output generated by the ANT Migration Tool.