---
schema_version: "1"
id: 9ba74ee7643f08d8e0776d64aabb907253403bf0e023cb93ffa21a45d771bfb8
title: Test Your Converted Managed 2GP Package
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform-pkg-exchange/managed_packaging/guides/first-generation/migration-testing.md
canonical_url: https://developer.salesforce.com/docs/platform/pkg1-dev/guide/migration-testing.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6343333e3df7eed6cfc65b1a2c9d5623c0a158ec55dce51ff137aacd3ed55929
products:
  - First-Generation Managed Packaging Developer Guide
  - merged-docs
---

# Test Your Converted Managed 2GP Package

Before you migrate your first subscribers, we strongly recommend you install your newly converted managed 2GP package into a new scratch org and test its functionality. If you prefer, you can also install the converted package in a sandbox, or developer edition org.

1.  Create a scratch org. When creating your scratch org, be sure to include a scratch org definition file that includes any Salesforce features that your package depends on.

    ```nolang
    sf org create scratch --target-dev-hub MyHub --definition-file config/project-scratch-def.json
    ```

2.  Migrate the converted package.

    To verify the 04t ID of the converted package, run `sf package version list` and review the command output. Then run the package install command and specify the 04t ID. In this scenario, the package version is being migrated, not installed.

    Example:

    ```nolang
    sf package install --package 04t...
    ```

    Next, explore your package and test its functionality. Make sure everything is operating as expected. Note that the converted package is a beta version.

## Next Steps

During phase one you can convert your 1GP package, install the converted package in a scratch org, and try out package migration by using packages that are installed in scratch orgs. By testing these steps in a scratch org first, you can understand how package migration works, before migrating packages used by active customers.
