sfdx force:mdapi:retrieve

Retrieve metadata from an org using Metadata API


--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-u, --targetusername <targetusername>Username or alias for the target org; overrides default target org
-a, --apiversion <apiversion>Target API version for the retrieve
-w, --wait <wait>Wait time for command to finish in minutes (default: -1 (no limit))
-r, --retrievetargetdir <retrievetargetdir>Directory root for the retrieved files
-k, --unpackaged <unpackaged>File path of manifest of components to retrieve
--verboseVerbose output of retrieve result
-d, --sourcedir <sourcedir>Source dir to use instead of the default package dir in sfdx-project.json
-p, --packagenames <packagenames>A comma-separated list of packages to retrieve
-s, --singlepackageIndicates that the zip file points to a directory structure for a single package