Newer Version Available

This content describes an older version of this product. View Latest

Upgrade a Second-Generation Managed Package Version

Are you introducing metadata changes to an existing second-generation managed package? You can use the CLI to upgrade one package version to another.

When you perform a package upgrade, here’s what to expect for metadata changes.

  • Metadata introduced in the new version is installed as part of the upgrade.
  • Metadata modified in the new version is updated as part of the upgrade.
  • Metadata removed in the new version is either deprecated or deleted as part of the upgrade.

To upgrade a package version, the new version must be a direct descendent of the package version installed in your org. See Specify a Package Ancestor in the Project File for a Second-Generation Managed Package for more information.