sfdx force:cmdt:field:create [file]

Generate a custom metadata field based on the field type provided

Arguments

NameDescription
file

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-n, --fieldname <fieldname>Unique name for the field
-f, --fieldtype <fieldtype>Type of field
-p, --picklistvalues <picklistvalues>Comma-separated list of picklist values; required for Picklist fields
-s, --decimalplaces <decimalplaces>Number of decimal places to use for Number or Percent fields
-l, --label <label>Label for the field
-d, --outputdir <outputdir>Directory to store newly-created field definition files