Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Test Your Converted Managed 2GP Package
-
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.
1sf org create scratch --target-dev-hub MyHub --definition-file config/project-scratch-def.json -
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:
1sf 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.
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.