Newer Version Available
Install the Package in a Target Org
After you create a package with the CLI, install the package in a target org. You can
install the package in any org you can authenticate, including a scratch org.
If you want to create a scratch org and set it as the defaultusername org, run this command from the project
directory.
To locate the ID of the package version to install, run sf package1 version list.
You can then copy the package version ID you want to install. For example, the ID 04txx000000069zAAA is for version 1.4.0.
-
Install the package. You supply the package alias or version ID, which starts with 04t, in
the required --package parameter.
If you’ve set a default target org, the package is installed there. You can specify a different target org with the --target-org parameter. If the package is protected by an installation key, supply the key with the --installation-key parameter.
To uninstall a package, open the target org and choose Setup. On
the Installed Packages page, locate the package and choose
Uninstall.