Need: I have a profile configured for the 'Salesforce Platform' license type, and need a version of it that works for the 'Salesforce' license (you can't clone a profile across license types using the UI)
Proposed Solution: I'd like to pull the (complete) XML for the Platform profile, change the
<userLicense> tag from 'Salesforce Platform' to 'Salesforce', then deploy it to production as a new profile.
To get the full set of permissions for a profile, and to deploy the new profile with all those permissions, I need to pull/deploy all metadata that relates to profile permissions: apex classes, VF pages, objects, field level security, etc.
I used https://packagebuilder.herokuapp.com/ to build a package.xml of my Production org, including managed package metadata.
I used SFDX CLI command
sfdx force:mdapi:retrieve -r ./ -u Production -k ./package.xmlto pull the metadata from my Production org, and hit the error
The metadata retrieve operation failed: LIMIT_EXCEEDED: Too many files in retrieve call, limit is: 10000.
Question: The package.xml file for my full org has close to 30k metadata items in it, far beyond the 10k limit. How can I pull a profile with full info for the many classes/objects/fields/vf pages in my org, if it will exceed that limit?