Newer Version Available
Create and Deploy Your Package
Create the Package
Create a Package Version
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.
Release a Package Version
Each new package version is marked as beta when created. As you develop your package, you may 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 the AppExchange and installed in customer orgs.
Before you promote the package version, ensure that 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 force:package:version:promote. sfdx force: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. sfdx force:package:version:report --package "Expense Manager@1.3.0.7"
To learn more, see Workflow for Second-Generation Packages.
Create a Scratch Org
You can create a scratch org to test your package. This process may take a few minutes. sfdx force:org:create --definitionfile config/project-scratch-def.json --targetusername <Dev Hub Username>
Open the Scratch Org
To find a list of scratch orgs, including the one you created, run this command.
sfdx force:org:list --verboseTo open the scratch org, run this command.
sfdx force:org:open -u <scratch org username>Install the Package
Before installing, make sure that the org has the Service Cloud Voice Partner Telephony license. Then, run this command:
sfdx force:package:install --package "<Package Name>@<Package Version>" --targetusername <Target Org Username>Target Org Username is the org where you want to install the package.
Or, use the installation URL that’s created when you run the sfdx 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 Install Packages with the CLI.