The same command is used to create newer versions of the package. This command generates an installation link that can be used in customer orgs.
1Successfully created the package version [08cB0000000****IA0]. Subscriber Package Version Id: 04tB0000000d****IAQ2Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB00000****DIAQ (https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000d2wDIAQ)
Release a Package Version
Each new package version is marked as beta when created. As you develop your package, you can create several package versions before you create a version that is ready to be released and distributed. Only released package versions can be listed on AppExchange and installed in customer orgs.
Before you promote the package version, make sure the Promote a package version to released user permission is enabled in the Dev Hub org associated with the package. Consider creating a permission set with this user permission, and then assigning the permission set to the appropriate user profiles.
When you’re ready to release, use sf package version promote --package "Expense Manager@1.3.0-7"
If the command is successful, a confirmation message appears. Successfully promoted the package version, ID: 04tB0000000719qIAA to released.
After the update succeeds, view the package details. sf package version report --package "Expense Manager@1.3.0.7"
Confirm that the value of the Released property is true.
1=== Package Version2NAME VALUE3────────────────────────────── ───────────────────4Name ver 1.05Alias Expense Manager-1.0.0.56Package Version Id 05iB0000000CaahIAC7Package Id 0HoB0000000CabmKAC8Subscriber Package Version Id 04tB0000000NPbBIAW9Version 1.0.0.510Description update version11Branch12Tag git commit id 08dcfsdf13Released true14Created Date 2018-05-08 09:4815Installation URL16https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000NPbBIAW
You can promote and release only one time for each package version number, and you can’t undo this change.
You can create a scratch org to test your package. This process can take a few minutes. sf org create scratch --definition-file config/project-scratch-def.json --target-org <Dev Hub Username>
Open the Scratch Org
To find a list of scratch orgs, including the one you created, run this command.
sf org ist --verbose
To open the scratch org, run this command.
sf org open -u <scratch org username>
Install the Package
Before installing, make sure that the org has the Salesforce Voice Partner Telephony license. Then, run this command:
Target Org is the org where you want to install the package.
Or, use the installation URL that’s created when you run the Salesforce CLI command for creating or promoting a package version.
Look for an email indicating whether the package was installed. If the installation failed, review the email for details and try again. To learn more about installation methods, see Use the CLI to Install a Second-Generation Managed Package.