Let's say I have a Custom Metadata created on my Org: MyCustomMetadata
.
Downloading its record within Org Browser:
- Command used:
sfdx force:source:retrieve -m CustomMetadata:MyCustomMetadata.MyCustomMetadataRecord
- File retrieved:
MyCustomMetadata.MyCustomMetadataRecord.md-meta.xml
Via mdapi:
- Command used:
sfdx force:mdapi:retrieve -u MyOrgAlias -r "./" -k package.xml
- File retrieved:
MyCustomMetadata.MyCustomMetadataRecord.md
package.xml contents:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>MyCustomMetadata.MyCustomMetadataRecord</members>
<name>CustomMetadata</name>
</types>
<version>45.0</version>
</Package>
There's a difference in file extension, a -meta.xml
suffix is added when using Org Browser / force:source:retrieve
.
What's the reason for that and are there any consequences of using these two commands interchangeably?