sfdx-cmdt-plugin
Converts CSV files to Custom Metadata Type records. Streamlines the bulk creation and management of CMDT records from spreadsheet data.
Installation
$sf plugins install sfdx-cmdt-pluginAbout
sfdx-cmdt-plugin
A plugin for Salesforce DX CLI that converts CSV to XML custom metadata records.
Notice
The official CLI topic sfdx force:cmdt is now available at v49. This plugin is no longer actively maintained.
Setup
Install as plugin
- Install plugin:
sfdx plugins:install sfdx-cmdt-plugin
Install from source
Install the SDFX CLI.
Clone the repository:
git clone git@github.com:shunkosa/sfdx-cmdt-plugin.gitInstall npm modules:
npm installLink the plugin:
sfdx plugins:link.
Use
Convert
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
Show list of custom fields
sfdx cmdt:field:list -t Example__mdt
Reviews (0)
No reviews yet. Be the first to leave one!
Details
- Author
- Shun Kosaka
- Category
- CLI Plugin
- Published
- Feb 16, 2026