Newer Version Available
Package Installation Key
To ensure the security of the metadata in your package, you must specify an
installation key when creating a package version. Package creators provide the key to authorized
subscribers so they can install the package. Package installers provide the key during
installation, whether installing the package from the CLI or from a browser. An installation key
is the first step during installation. The key ensures that no package information, such as the
name or components, is disclosed until the correct installation key is supplied.
To set the installation key, add the --installationkey
parameter to the command when you create the package version. This command creates a package
and protects it with the installation
key.
1sfdx force:package:version:create --package "Expense Manager" --installationkey "JSB7s8vXU93fI"Supply the installation key when you install the package version in the target org.
1sfdx force:package:install --package "Expense Manager" --installationkey "JSB7s8vXU93fI”Change the Installation Key for an Existing Package Version
You can change the installation key for an existing package version with the force:package:version:update command.
1sfdx force:package:version:update --package "Expense Manager@1.2.0-4" --installationkey “HIF83kS8kS7C”Create a Package Version Without an Installation Key
If you don’t require security measures to protect your package metadata, you can create a package version without an installation key.
1sfdx force:package:version:create --package "Expense Manager" --directory common \
2--tag 'Release 1.0.0' --installationkeybypassCheck Whether a Package Version Requires an Installation Key
To determine whether a package version requires an installation key, use either the force:package:version:list or force:package:version:report CLI command.