Newer Version Available

This content describes an older version of this product. View Latest

Deploying Components

The Ant Migration Tool is retired with Spring ’24. The tool continues to function for future API versions but isn’t updated with new functionality and isn’t supported. To manage metadata changes, switch to Salesforce CLI for a modern, supported developer experience.

Note

You can deploy any set of components as a package or into your organization directly in the unpackaged package. The package used is not determined by the build.xml target, but by the project manifest (package.xml). A sample deployment target follows:

1<target name="deployUnpackaged">
2  <sf:deploy 
3      username="${sf.username}" 
4      password="${sf.password}" 
5      sessionId="${sf.sessionId}"
6      serverurl="${sf.serverurl}" 
7      deployroot="projectFolder"/>
8</target>