I have set up a Named Credential with a linked External Credential following the instructions here The External Credential has a linked Permission Set with 2 Authentication Parameters, username and password. The username and password are referred to in a custom header.
This has been set up OK and works correctly in my scratch org. Since these credentials are not very secret (they access a dev environment for now) I would like to be able to retrieve them with sfdx cli and check them into git with the rest of the source and metadata. But the Authentication Parameters are missing. The External Credential and Permission Set are all present, just not the Authentication Parameters. How can I retrieve and redeploy them?
(later I will look at github secrets for the live environment authentication but not ready for that yet)
If this is not possible, what can be done to save admins from having to manually enter credentials to every single org on which this is to be deployed?