Specify a new value for each option you want to update.
To display details about a package version, run “sf package version display”.
Aliases for package version update
force:package:version:update
Flags
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
‑‑branch
‑b
Type: Value
New package version branch.
‑‑flags‑dir
N/A
Type: Value
Import flag values from a directory.
‑‑installation‑key
‑k
Type: Value
New installation key for key-protected package (default: null)
‑‑json
N/A
Type: Boolean
Format output as json.
‑‑package
‑p
Type: Value Required
ID (starts with 04t) or alias of the package to update a version of.
‑‑tag
‑t
Type: Value
New package version tag.
‑‑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.
‑‑version‑description
‑e
Type: Value
New package version description.
‑‑version‑name
‑a
Type: Value
New package version name.
Examples for package version update
Update the package version that has the specified alias (that contains spaces) with a new installation key “password123”; uses your default Dev Hub org:
1sf package version update --package "Your Package Alias" --installation-key password123
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:
1sf package version update --package 04t... --branch main --tag 'Release 1.0.7' --target-dev-hub devhub@example.com
Update the package version that has the specified ID with a new description:
1sf package version update --package 04t... --version-description "New Package Version Description"