+ Start a Discussion
snippets@sfsnippets@sf 

sfdx force:source:retrieve -p force-app\main\default\lwc -u <username>

What is working 
sfdx force:source:retrieve -p  force-app\main\default\classes  -u <username>
retrieves all classes.

What is not working 
sfdx force:source:retrieve -p  force-app\main\default\lwc-u lwc@popcornapps.com

Dose not retrieve all LightningWebComponents.

I had also tried -m for metatdata
for the following and did not work
1. LightningComponentBundle

Please help to fetch all LWC componets from the source org
Ajay K DubediAjay K Dubedi
Hi,

In your post, which IDE you are used
If you are used the VS Code to retrieve all LWC(Lightning Web Component) and it's classes
then you can follow this link: https://www.youtube.com/watch?v=7qR0c8h5cCU
          Or
https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi