Newer Version Available
Migrate Your Subscribers from 1GP to 2GP
After a package is migrated there’s no change to the metadata or customer data associated with the package.
If your package has dependencies on other packages, the order in which you migrate the base and dependent packages is important. For more details, see Plan Your Package Migration.
Bulk Migrate Multiple Subscribers (Beta)
To migrate multiple subscribers that all have the same package version installed, use the Salesforce CLI command to schedule a push upgrade and specify the --migrate-to-2gp flag. Remember the major.minor.patch version of the package you're migrating, must be identical to the major.minor.patch version installed in a subscriber org.
The subscriber package version ID (starts with 04t) that you specify when migrating a package version, must be the ID for the converted 2GP package version, not the ID for the original 1GP package version.
Example:
1sf package push-upgrade schedule --migrate-to-2gp --package-version 04txyz --scheduled-start-time "2024-12-06T21:00:00" --org-file upgrade-orgs.csvPush upgrades for package migrations have a daily limit. Currently, you can use push upgrades to migrate 5 subscriber orgs per day.
Before migrating customers using push upgrades, please review these best practices. In particular, we strongly recommend that you work with your subscribers and follow a staggered approach, starting by migrating sandboxes first, before carrying out migrations in production.
Manually Migrate One Subscriber
If you have subscribers who don't allow push upgrades to their org, they can manually upgrade to the 2GP package. Provide them with the package installation URL and they can migrate the package.
Push Upgrade History and Org Migrations
From time to time, Salesforce migrates production orgs from one instance to another. If your Dev Hub org is scheduled for an org migration, it's crucial to back up your historical data related to push upgrades and 2GP migrations, as this data won't be retained post-migration.