We have a CI script which build a new beta package version out of the source code in SFDX format and when the package version is built, the new scratch org is created so that a previous release package version can be installed in it and upgraded with the new beta package version.
Since a scratch org is created from client production, the default user inherited email and some other properties from the production user from which the scratch is created.
When package is installed and upgraded, an email is sent to the production user email.
My clients don't like that and would prefer to replace the destination email.
I know we can use sfdx force:user:create
command to create a user in a scratch org with a different email, but we can't get an sfdx auth url
for such a user to use it instead of default user?
Alternatively, can we just change the email of the default user by CI?
sfdx auth web login
to getsfdx auth url
token. But looks like, I have found a solution