Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Frequently Used Packaging Operations for Second-Generation Managed Packages
For a complete list of Salesforce CLI packaging commands, see: Salesforce Command Line Reference Guide.
| Salesforce CLI command | What it Does |
|---|---|
| sf package create | Creates a package. When you create a package, you specify its package type and name, among other things. |
| sf package version create | Creates a package version. |
| sf package install | Installs a package version in a scratch, sandbox, or production org. |
| sf package uninstall | Removes a package that has been installed in an org. This process deletes the metadata and data associated with the package. |
| sf package version promote | Changes the state of the package version from beta to the managed-released state. |
| sf org create scratch | Creates a scratch org. |
| sf org open | Opens an org in the browser. |