---
schema_version: "1"
id: 0e3f72ed7549d8872e21ab1410df7df588ec6e6ea3c025afe981cfa78d120bfe
title: Retrieving Unpackaged Components
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-migration-guide/guides/daas/forcemigrationtool-retrieve-unpackaged.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-migration-guide/guide/forcemigrationtool-retrieve-unpackaged.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: eec17acd81216b337a529e38dd4813f32236feda1e0daecbc6e8a6208043278b
products:
  - Ant Migration Tool Guide
  - Platform Developer Content
---

# Retrieving Unpackaged Components

**note:** The Ant Migration Tool is retired with Spring ’24. The tool continues to function as-is for future API versions but isn’t updated with new functionality and isn’t supported. If Salesforce adds a new feature that is incompatible with Ant, the Ant Migration Tool won't be updated to support it. To manage metadata changes, switch to Salesforce CLI for a modern, supported developer experience.

The unpackaged package contains all of the standard objects, custom objects, Apex classes and other metadata components that exist natively in your organization, and not within a package. To retrieve unpackaged components, use a build.xml target that contains the unpackaged attribute that points to a package.xml file. For example:

```xml
<target name="retrieveUnpackaged">
  <mkdir dir="projectFolder"/>
  <sf:retrieve 
      username="${sf.username}" 
      password="${sf.password}" 
      sessionId="${sf.sessionId}"
      serverurl="${sf.serverurl}" 
      retrieveTarget="projectFolder" 
      unpackaged="unpackaged/package.xml"/>
</target>

```

The salesforce-ant.jar file contains Ant tasks for accessing the Metadata API. In the code above, `sf:retrieve` is an Ant task. The full list of metadata Ant tasks are described in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/).

