Download Salesforce metadata using SFDX

Reading Time: < 1 minutes

cd some/directory
sfdx auth:web:login -a --instanceurl=
sfdx force:project:create -n myProject --manifest
cd myProject
sfdx config:set
# Modify the package xml to retieve whatever we want
sfdx force:source:retrieve -x manifest/package.xml
# or retrieve this way
sfdx force:source:retrieve -m "ApexClass:MyApexClass"

Photo by Cookie the Pom on Unsplash

About the author

Andrés Canavesi
Andrés Canavesi

Software Engineer with 15+ experience in software development, specialized in Salesforce, Java and Node.js.

Related posts

Leave a Reply

%d bloggers like this: