Search This Blog

Friday, July 26, 2019

How to retrieve LWC components from salesforce instance to Visual studio code tool - Salesforce Globe For You

How to retrieve LWC components from salesforce instance to Visual studio code tool

Step 1: Open the vs code editor and open the commands palette by pressing command+shift +P in Mac.
The following screen appears.


Step 2: Type the command :SFDX create project with Manifest and press enter.

It will ask for project alias.give name and then press enter.It will ask for the folder to store in your local directory(in your local machine laptop or system).

Give the folder and then the project creation will be done as shown in the screen below.


Step 3: Press command+shift+P and then type the following command :SFDX Authorize an org and press enter.

It will ask for alias and then it will be redirected the salesforce login page .

Select the salesforce instance from which we need to retrieve LWC components.

Step 4:Under manifest file, click on package.xml file.
Now if you right click on package.xml it will show you the option 'SFDX:Retrieve source in Manifest from Org'

Select that option, all the required files will get retrieved to your source folder.

Now you can go back to LWC folder and observe all required components are retrieved.

Enjoy..

1 comment: