Salesforce DX Developer Guide
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Spring '21 (API version 51.0)
Winter '21 (API version 50.0)
Summer '20 (API version 49.0)
Spring '20 (API version 48.0)
Winter '20 (API version 47.0)
Summer '19 (API version 46.0)
Spring '19 (API version 45.0)
Winter '19 (API version 44.0)
Summer '18 (API version 43.0)
Spring '18 (API version 42.0)
Winter '18 (API version 41.0)
Summer '17 (API version 40.0)
Metadata Coverage
Build and Release Your App
Second-Generation Packaging
What’s a Package?
Workflow for Second-Generation Packages
User Profiles for Installed Packages
Install Packages with the CLI
Install Packages from a URL
Upgrade a Package Version
Sample Script for Installing Packages with Dependencies
Migrate Deprecated Metadata from Unlocked Packages
Uninstall a Package
Limitations for Salesforce DX
Newer Version Available
Install a Package
Install second-generation packages using the CLI or the Salesforce browser. You can
install package versions in a scratch org, sandbox org, DE org, or production org, depending on
the package type.
-
User Profiles for Installed Packages
When you install a package with the CLI, all users are given full access to all the metadata contained in the package. We acknowledge that this experience is not optimal, and plan on improving it in the future. -
Install Packages with the CLI
If you’re working with the Salesforce CLI, you can use the force:package:install command to install packages in a scratch org or target subscriber org. -
Install Packages from a URL
Install second-generation packages from the CLI or from a browser, similar to how you install classic managed packages. -
Upgrade a Package Version
Are you introducing metadata changes to an existing package? You can use the CLI to upgrade one package version to another. -
Sample Script for Installing Packages with Dependencies
Use this sample script as a basis to create your own script to install packages with dependencies. This script contains a query that finds dependent packages and installs them in the correct dependency order.