---
schema_version: "1"
id: 27c5242db20855046aff069b70dc4cf9d07035c59b5f3469cc18af9cd3055913
title: Use Managed Packages to Develop Your AgentExchange Solution
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform-pkg-exchange/isvforce/guides/managed-packaging-intro.md
canonical_url: https://developer.salesforce.com/docs/platform/isvforce/guide/managed-packaging-intro.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 76d4e6ccaa6cd7be309a6f275f3243cba22845b72421a6aa2da29e7672f6bf91
products:
  - ISVforce Guide
  - merged-docs
---

# Use Managed Packages to Develop Your AgentExchange Solution

Managed packages are the tool that Salesforce partners use to create business apps, and distribute their apps to customers via AgentExchange. The suite of capabilities offered by managed packages helps you distribute, license, pilot features, troubleshoot, and monetize your offerings.

A package is a container for an app that you plan to sell and distribute to Salesforce customers. You create a package, then add the features, customizations, and schema that comprise your app. Examples of metadata components you might package are:

-   Apex classes and triggers
-   Custom fields on standard objects
-   Custom metadata types
-   Custom objects
-   Flows
-   Lightning pages
-   Page layouts

Your package can include many different metadata components, or you can package a single component, such as a flow.

Salesforce offers second-generation managed packaging (managed 2GP) and first-generation managed packaging (managed 1GP). Going forward we recommend that everyone use managed 2GPs to create new apps. For details on the advantages of using second-generation managed packaging, see [Why Switch to Second-Generation Managed Packaging?](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/why_switch_2GP.htm)

**See Also**  


-   [*Second-Generation Managed Packaging Developer Guide*](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp.htm)
-   [*First-Generation Managed Packaging Developer Guide*](https://developer.salesforce.com/docs/atlas.en-us.pkg1_dev.meta/pkg1_dev/sharing_apps.htm)

