Packaging Checklist
Ready to deploy your packaging metadata and start creating a package? Take a few
minutes to verify that you covered the items in this checklist, and you’re good to
go.
- Link the namespace of each package you want to work with to the Dev Hub org.
- Copy the metadata of the package from your version control system to a local project.
- Update the config files, if needed. For example, to work with managed packages, sfdx-project.json must include the namespace.
1"namespace": "acme_example", - (Optional) Create an alias for each org you want to work with.
If you haven’t yet created an alias for each org, consider doing that now. Using aliases is an easy way to switch between orgs when you’re working in the CLI.
- Authenticate the Dev Hub org.
- Create a scratch org. A scratch org is different than a sandbox org. You specify the org shape using project-scratch.json. To create a scratch org and set it as the defaultusername org, run this command from the project directory.
1sf org create scratch --definition-file config/project-scratch-def.json - Push source to the scratch org.
- Update source in the scratch org as needed.
- Pull the source from the scratch org if you used declarative tools to make changes there.
With these steps complete, you’re ready to deploy your package metadata to the packaging org.