Newer Version Available
Generate the Package
When you’re ready to test or share your package, use the force:package:create command to create a package.
You specify the package namespace in the sfdx-project.json file.
To create the package, change to the project directory. The name becomes the package alias, which is automatically added to the project file. You can choose to designate an active Dev Hub org user to receive email notifications for Apex gacks, and install, upgrade, or uninstall failures associated with your packages.
1sfdx force:package:create --name "Expenser App" --packagetype Managed \
2--path "expenser-main" --targetdevhubusername my-hub --errornotificationusername \
3me@devhub.orgThe output is similar to this example.
1sfdx-project.json has been updated.
2Successfully created a package. 0HoB00000004CzHKAU
3=== Ids
4NAME VALUE
5────────── ──────────────────
6Package Id 0HoB00000004CzHKAUUpdate the Package
To update the name or description of an existing package, use this
command.
1sfdx force:package:update --package "Expense App" --name "Expense Manager App" \
2--description "The Winter ’20 release is packed with an exciting set of features." \
3--errornotificationusername me2@devhub.org