package update

Update package details.

Specify a new value for each option you want to update.

Run “sf package list” to list all packages in the Dev Hub org.

force:package:update

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑description‑dType: Value

New description of the package.
‑‑enable‑app‑analyticsN/AType: Boolean

Enable AppExchange App Analytics usage data collection on this managed package and its components.
‑‑error‑notification‑username‑oType: Value

Active Dev Hub user designated to receive email notifications for package errors.

Email notifications include information about unhandled Apex exceptions, and install, upgrade, or uninstall failures associated with your package.
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑name‑nType: Value

New name of the package.
‑‑package‑pType: Value
Required

ID (starts with 0Ho) or alias of the package to update.
‑‑recommended‑version‑id‑rType: Value

ID of the package version that’s installed when subscribers click the Upgrade to Recommended Version option on the Installed Packages page of their org.

Specify the recommended package version for subscribers to install. If a subscriber has a package version installed in their org that’s lower than the version you set, the subscriber sees the Upgrade to Recommended Version option on the Installed Packages page. Only released package versions can be set as the recommended version.
‑‑skip‑ancestor‑checkN/AType: Boolean

Bypass the ancestry check for setting a recommended version.
‑‑target‑dev‑hub‑vType: Value
Required

Username or alias of the Dev Hub org. Not required if the target-dev-hub configuration variable is already set.

Update the name of the package with the specified alias; uses your default Dev Hub org:

Update the description of the package with the specified ID; uses the specified Dev Hub org: