How do i retrieve metadata, as .object files? Currently what i do is:
- use workbench or Package xml Generator to create a package.xml like this
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>HFS_Features__mdt</members>
<name>CustomObject</name>
</types>
<version>55.0</version>
</Package>
then this command retrieves the data:
sfdx project retrieve start -c -x .\manifest\package.xml
but instead of a single .object file for each object, it returns an hierarchical folder structure, with a file for every field definition. But what i need is the .object file, with a path like force-app\main\default\objects\HFS_Features__mdt.object
Actually, that file is here, but as soon as i retrieve it from the org it becomes as below, with the field definitions going to that file structure
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<label>HFS Features</label>
<pluralLabel>HFS Features</pluralLabel>
<visibility>Public</visibility>
</CustomObject>
So, i do need those .object files, because our deployment process requires them for deployment. Any clue on how to get them?