If you developed and tested your app, you’re well on your way to releasing it. Luckily, when it’s time to build and release an app as a managed package, you’ve got options. You can package an app you developed from scratch. If you’re experimenting, you can also build a sample app from Salesforce and emulate the release process.
Before You Begin
Working with a package is an iterative process. You typically retrieve, convert, and deploy source multiple times as you create scratch orgs, test, and update the package components.
Chances are, you already have a namespace and package defined in your packaging org. If not, run this command to open the packaging org in your browser.
sf org open --target-org me@my.org --path lightning/setup/Package/home
In the Salesforce UI, you can define a namespace and a package. Each packaging org can have a single managed package and one namespace.
See Also
- [Retrieve Source from an Existing Managed Package](Retrieve Source from an Existing Managed Packagehttps://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_retrieve_man_pack.htm)