function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to pull code into vscode from sandbox?

I used to use the Eclipse Force IDE and I'm switching to VSCode/SFDX. When creating a project in Force IDE, you could specify retreiving "Apex, Lightning, and Visualforce (classes, triggers, test suites, LIghtinging component bundles, pages, Visualforce comonents, and static resources)" 
It appears the -m option of sfdx force:sourc:retrieve could alow for grabbing these same items, but what -m options do I specify? What options are necessary to retrieve new development items (Aura, LWC, etc)?
Raj VakatiRaj Vakati
Refer this links
These are all great links. Thanks!
One of the trailhead modules suggested that the deployment zip file only encapulated changes, but when I created a simple file, then entire force-app folder was in the zip. Should the zip only have had the one file (simple VF page) in it?
Ajay K DubediAjay K Dubedi
Hi ethanone,
When you created a folder in VS code than you have followed these options that necessary to retrieve new development items (Aura, LWC, etc)
- Make sure you 'Create a project with Manifest' (Not create a  project)
- Authorize an Org (on click this you will have to give access your sandbox to vs code)
- Retrieve Source in Manifest from Org
Then you can get your Org data in your VS code folder and when you will reopen this Without having to re-authenticate it each time.
If you change anything in your org then you can retrieve your data through a manifest(On click on manifest there are a package.xml file,
open package.xml and then on right click you can retrieve your data).
For more information refer:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Ajay Dubedi
Vignaesh Ram AmarnathVignaesh Ram Amarnath
Hi ethanone,
You need to modify your package.xml file to retrieve other items. You can use Salesforce Package.xml generator extension for VS Code to do this.It provides an UI like the IDE to choose metadata needed for package.xml.
User-added image
Mridula AnuragMridula Anurag
I am new to Visual Studio Code. I want to clone git repository from github and retrieve the data from sandbox based on the metadata provided in the package.xml .After making changes ,I need to push that changes to git as I am using JEnkins for my deployment.
Currently I was able to create project with manifest and authorize the org and was able to retrieve data from org.After making changes how I commit those changes to my git repo created or how can I sync those with git repo?