| name | sf-package |
| description | Package development commands including creating, versioning, installing, listing, and promoting packages. |
sf package Development
Commands for package development.
sf package create
Create package.
sf package create --name MyPackage --package-type Unlocked --path force-app
sf package create --name MyManagedPackage --package-type Managed --path force-app
sf package version create
Create package version.
sf package version create --package MyPackage \
--code-coverage \
--installation-key MyKey123 \
--wait 10
sf package install
Install package.
sf package install --package 04txx --target-org myOrg
sf package install --package "MyPackage@1.0.0" --target-org myOrg
sf package install --package 04txx --target-org myOrg --wait 10
sf package list / version list
List packages and versions.
sf package list --target-org myDevHub
sf package version list --target-org myDevHub --packages MyPackage
sf package version promote
Promote package version to released status.
sf package version promote --package "MyPackage@1.0.0" --target-org myDevHub
sf package uninstall / uninstall report
Uninstall package and report status.
sf package uninstall --package "MyPackage@1.0.0" --target-org myOrg
sf package uninstall report --request-id <request-id> --target-org myOrg
sf package version displayancestry / displaydependencies
Display package ancestry and dependencies.
sf package version displayancestry --package MyPackage --target-org myDevHub
sf package version displaydependencies --package 04txx --target-org myDevHub
sf package push-upgrade schedule / list / report / abort
Manage push upgrades (managed packages).
sf package push-upgrade schedule --package 04txx --start-time "2024-01-15T10:00:00"
sf package push-upgrade report --request-id <id>