package version update

Update a package version.

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

To display details about a package version, run “sf package version display”.

force:package:version:update

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

Override the api version used for api requests made by this command
‑‑branch‑bType: Value

New package version branch.
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑installation‑key‑kType: Value

New installation key for key-protected package (default: null)
‑‑jsonN/AType: Boolean

Format output as json.
‑‑package‑pType: Value
Required

ID (starts with 04t) or alias of the package to update a version of.
‑‑tag‑tType: Value

New package version tag.
‑‑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.
‑‑version‑description‑eType: Value

New package version description.
‑‑version‑name‑aType: Value

New package version name.

Update the package version that has the specified alias (that contains spaces) with a new installation key “password123”; uses your default Dev Hub org:

Update the package version that has the specified ID with a new branch and tag; use the Dev Hub org with username devhub@example.com:

Update the package version that has the specified ID with a new description: