sfdx-cmdt-plugin
A plugin for Salesforce DX CLI that converts CSV to Custom Metadata records
Last updated a month ago by shunkosa .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sfdx-cmdt-plugin 
SYNC missed versions from official npm registry.

sfdx-cmdt-plugin

Version Downloads/week License

A plugin for Salesforce DX CLI that converts CSV to XML custom metadata records.

Setup

Install as plugin

  1. Install plugin: sfdx plugins:install sfdx-cmdt-plugin

Install from source

  1. Install the SDFX CLI.

  2. Clone the repository: git clone git@github.com:shunkosa/sfdx-cmdt-plugin.git

  3. Install npm modules: npm install

  4. Link 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

Current Tags

  • 0.0.4                                ...           latest (a month ago)

5 Versions

  • 0.0.4                                ...           a month ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
  • 0.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |