+ Start a Discussion
Victor JanhiVictor Janhi 

How to retrieve a salesforce project locally

I was working on my project for the Lightning Web Components Specialist: Trailhead Challenge when my laptop crashed and I had to get a new one. I am now trying to pull my code/project from my salesforce org and continue working on the challenge.

Is this possible? How can I do this? I imagine my code exists somewhere in my org.
SubratSubrat (Salesforce Developers) 
Hello Victor ,

Salesforce provides several tools for developers to retrieve and deploy metadata, including source code. One such tool is the Salesforce CLI (Command Line Interface), which can be installed on your new laptop.

Once you have installed Salesforce CLI, you can use the sfdx force:source:retrieve command to retrieve the source code for your project from your org.

Reference -> https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_source.htm#cli_reference_force_source_retrieve

If it helps please mark this as Best Answer.
Thank you.