sfdx force:source:convert

Convert source into Metadata API format

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-r, --rootdir <rootdir>A source directory other than the default package to convert
-d, --outputdir <outputdir>Output directory to store the Metadata API–formatted files in
-n, --packagename <packagename>Name of the package to associate with the metadata-formatted files
-x, --manifest <manifest>File path to manifest (package.xml) of metadata types to convert
-p, --sourcepath <sourcepath>Comma-separated list of paths to the local source files to convert
-m, --metadata <metadata>Comma-separated list of metadata component names to convert