Merge two Profiles into a single source file
Merge Profiles between SFDC orgs in a CI/CD pipeline.
Merge two Profiles to a single Profile source record, using sfpowerkit.
sfdx sfpowerkit:source:profile:merge
-n|--profilelist # Comma'd list of profiles
-u|--targetusername # The target username
-m|--metadata # Comma'd list of metadata for which to get permissions
The primary use-case here is merging reconciled Profiles from a development org, into a Production org, which may have more or enhanced types available, such as ScratchOrgSettings
.