Salesforce DX Developer Guide
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)
No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Metadata Coverage
What’s an Unlocked Package?
Package-Based Development Model
Before You Create Unlocked Packages
Know Your Orgs
Create Org-Dependent Unlocked Packages
Workflow for Unlocked Packages
How We Handle Profile Settings in Unlocked Packages
Install Packages with the CLI
Install Unlocked Packages from a URL
Upgrade a Version of an Unlocked Package
Sample Script for Installing Unlocked Packages with Dependencies
Migrate Deprecated Metadata from Unlocked Packages
Uninstall an Unlocked Package
Limitations for Salesforce DX
Install an Unlocked Package
Install unlocked packages using the CLI or the browser. You can install package versions
in a scratch org, sandbox org, DE org, or production org.
-
Install Packages with the CLI
If you’re working with the Salesforce CLI, you can use the sf package install command to install packages in a scratch org or target subscriber org. -
Install Unlocked Packages from a URL
Install unlocked packages from the CLI or from a browser, similar to how you install managed packages. -
Upgrade a Version of an Unlocked Package
A package upgrade occurs when you install a new package version into an org that has a previous version of that package installed. -
Sample Script for Installing Unlocked 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.