Retrieve All Salesforce Metadata
Retrieve all Salesforce metadata
Two Salesforce CLI commands pull an entire org's metadata: generate a manifest from the org, including managed and unlocked packages, then retrieve against that manifest.
You can retrieve all Salesforce metadata using just 2 Salesforce CLI commands.
bash
sf project generate manifest \
--from-org {ORG-ALIAS} \
--name package.xml \
--output-dir ./manifest \
--include-packages managed,unlocked
sf project retrieve start \
--manifest ./manifest/package.xml \
--target-org {ORG-ALIAS} \
--wait 120If your retrieve is failing due to hitting limits, split your package.xml into smaller ones that do not exceed 10,000 components per file.


