A plugin for Salesforce DX CLI that converts CSV to XML custom metadata records.
The official CLI topic sfdx force:cmdt is now available at v49. This plugin is no longer actively maintained.
- Install plugin:
sfdx plugins:install sfdx-cmdt-plugin
-
Install the SDFX CLI.
-
Clone the repository:
git clone git@github.com:shunkosa/sfdx-cmdt-plugin.git -
Install npm modules:
npm install -
Link the plugin:
sfdx plugins:link.
sfdx cmdt:csv:convert records.csv -t Example__mdt
(Optional) you can use a column mapping file like Data Loader.
sfdx cmdt:csv:convert records.csv -t Example__mdt -m mapping.txt
DeveloperName=API Name Label=Display Label Field__c=Field You can deploy the converted metadata records by sfdx force:source:deploy -m CustomMetadata
sfdx cmdt:field:list -t Example__mdt