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‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑description | ‑d | Type: Value New description of the package. |
‑‑enable‑app‑analytics | N/A | Type: Boolean Enable AppExchange App Analytics usage data collection on this managed package and its components. |
‑‑error‑notification‑username | ‑o | Type: 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‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑name | ‑n | Type: Value New name of the package. |
‑‑package | ‑p | Type: Value Required ID (starts with 0Ho) or alias of the package to update. |
‑‑recommended‑version‑id | ‑r | Type: 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‑check | N/A | Type: Boolean Bypass the ancestry check for setting a recommended version. |
‑‑target‑dev‑hub | ‑v | Type: 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: