The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
Salesforce supports packaging for named credentials. With Govern, Manage, and Release Changes with DevOps Center and your version control system, you can create managed 2GP and unlocked packages to promote named credentials from a development to a production environment and distribute named credentials across many orgs. Then, you can automate the population of authentication tokens across orgs so users can make authenticated callouts.
The packaging and deployment process for named credentials involves these high-level steps.
After you install the named credential in the target org, you can also upgrade the package and reinstall it without overwriting the credential’s principals.
For more information about these steps, review each section.