*** Salesforce CLI plugin for Custom Metadata Types is now available ***
Hello SFDX enthusiasts.
We are happy to announce that the CLI plugin for custom metadata types is available in CLI v49. These new commands simplify development and help you build automation and synchronize your source from scratch orgs when working with custom metadata types.
You can use the Salesforce command-line interface to create custom metadata types, fields and records. Additionally, you now will be able to bulk insert records from a CSV file or use an existing custom object / setting to generate custom metadata types from it.
Plugin - force:cmdt
Commands -
- force:cmdt:create. Creates a custom metadata type in the current project.
- force:cmdt:field:create. Generates a custom metadata field based on the provided field type.
- force:cmdt:generate. Generates a custom metadata type and all its records for the provided sObject.
- force:cmdt:record:create. Creates a record for a given custom metadata type in the current project.
- force:cmdt:record:insert. Creates custom metadata type records from a comma-separated values (CSV) file.
More details on the usage of various commands, with descriptions, flags and examples, is available in the CLI reference manual and help documentation.
Custom Metadata Types Documentation: https://help.salesforce.com/articleView?id=custommetadatatypes_cli.htm&type=5
Salesforce CLI Command Reference: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_cmdt.htm#cli_reference_force_cmdt
Trailhead unit coming soon !!