examples Commands
-
Convert repo examples to SFDX scratch org.
commerce:examples:convert
Convert repo examples to SFDX scratch org.
Examples for commerce:examples:convert
sfdx commerce:examples:convert -f store-scratch-def.json
Command Syntax
sfdx commerce:examples:convert[
--json][
--loglevelLOGLEVEL][
-fDEFINITIONFILE][
-dOUTPUTDIR][
-pSOURCEPATH][
-oTYPE][
-y][
-nSTORE-NAME]
Parameters
--jsonOptional
Format output as JSON.
Type: boolean
--loglevelLOGLEVELOptional
The logging level for this command invocation. Logs are stored in $HOME/.sfdx/sfdx.log.
Type: enum
Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
Default value: warn
-f|--definitionfileDEFINITIONFILEOptional
Config file.
Type: filepath
Default value: ~/.commerce/config/store-scratch-def.json
-d|--outputdirOUTPUTDIROptional
Directory to output the conversion.
Type: string
Default value: ~/.commerce/force-app
-p|--sourcepathSOURCEPATHOptional
Files to convert.
Type: string
-o|--typeTYPEOptional
The type of store you want to create.
Type: string
Permissible values are: b2c, b2b
Default value: b2c
-y|--promptOptional
If there is a file difference detected, prompt before overwriting file.
Type: boolean
-n|--store-nameSTORE-NAMERequired
Name of the site to create.
Type: string
Default value: 1commerce