+ Start a Discussion
Matty BMatty B 

How to access Lightning Metadata

I want to backup the aura folder that contains my Lightning bundles. I don't see this metadata as a subscribe option in Eclipse or SublimeText (Maven's Mate). What am I missing and how can I access this to back everything up prior to a sandbox refresh?
Best Answer chosen by Matty B
@Karanraj@Karanraj
Hi Matty

Make sure you are using apex API version 33.0
  • Open Eclipse package.xml
  • Use the 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>
  • Right click on your Project Force.com -> Refresh from server.

All Answers

@Karanraj@Karanraj
Hi Matty

Make sure you are using apex API version 33.0
  • Open Eclipse package.xml
  • Use the 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>
  • Right click on your Project Force.com -> Refresh from server.
This was selected as the best answer
Matty BMatty B
thank you this worked perfectly.

how can I select EVERYTHING in my package.xml? I literally want an entire backup of all metadata (include static resources)