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
Nicolas VuillamyNicolas Vuillamy 

How can I export Lightning components ?

Hi dear salesforce developers ,

I have built an integration between my company back-office application, Apex classes and Lightning components to build a front-end application.
Now the project is become mature, I'd like to version it ( I still do lots of enhancements and i'd like to keep backups of my previous versions ).

I saw the Eclipe plugin for Apex classes, and I can use it to export the Apex pages, but what about the Lightning components ?
I've browsed lots of forums but didn't find the answer yet.

Do anyone have a solution to export lightning components into files ? :)

Thanks & best regards
Best Answer chosen by Nicolas Vuillamy
@Karanraj@Karanraj
Make sure you are using apex API version 33.0

1. Open Eclipse package.xml
2. Use following package.xml code
<?xml version="1.0" encoding="UTF-8"?> 
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
 <types> 
<members>*</members> 
<name>AuraDefinitionBundle</name>
 </types>
 <version>33.0</version>
 </Package>
3. Right click on your Project Force.com -> Refresh from server.
 

All Answers

@Karanraj@Karanraj
Make sure you are using apex API version 33.0

1. Open Eclipse package.xml
2. Use following package.xml code
<?xml version="1.0" encoding="UTF-8"?> 
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
 <types> 
<members>*</members> 
<name>AuraDefinitionBundle</name>
 </types>
 <version>33.0</version>
 </Package>
3. Right click on your Project Force.com -> Refresh from server.
 
This was selected as the best answer
Nicolas VuillamyNicolas Vuillamy
Working perfectly, thank you very much :)
Rao PotlapalliRao Potlapalli
It helped me too.
Thanks