store Commands
-
Comprehensive create and set up a store. This will create your community/store push store sources, create buyer user, import products, create search index.
-
Display buyer info.
-
Open store(s).
-
commerce:store:quickstart:create
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
-
commerce:store:quickstart:setup
Set up a store.
commerce:store:create
Comprehensive create and set up a store. This will create your community/store push store sources, create buyer user, import products, create search index.
Examples for commerce:store:create
sfdx commerce:store:create --store-name test-store
Command Syntax
sfdx commerce:store:create[
--json][
--loglevelLOGLEVEL][
-vTARGETDEVHUBUSERNAME][
-uTARGETUSERNAME][
--apiversionAPIVERSION][
-fDEFINITIONFILE][
-oTYPE][
-y][
-tTEMPLATENAME][
-bBUYER-USERNAME][
-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
-v|--targetdevhubusernameTARGETDEVHUBUSERNAMEOptional
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
Type: string
-u|--targetusernameTARGETUSERNAMEOptional
A username or alias for the target org. Overrides the default target org.
Type: string
--apiversionAPIVERSIONOptional
Override the API version used for API requests made by this command.
Type: string
-f|--definitionfileDEFINITIONFILEOptional
Config file.
Type: filepath
Default value: ~/.commerce/config/store-scratch-def.json
-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
-t|--templatenameTEMPLATENAMEOptional
Template to use to create a site .
Type: string
Default value: b2c-lite-storefront
-b|--buyer-usernameBUYER-USERNAMEOptional
Buyer's username.
Type: string
Default value: buyer@1commerce.com
-n|--store-nameSTORE-NAMERequired
Name of the site to create.
Type: string
Default value: 1commerce
commerce:store:display
Display buyer info.
Examples for commerce:store:display
sfdx commerce:store:display --store-name test-store
Command Syntax
sfdx commerce:store:display[
--json][
--loglevelLOGLEVEL][
-vTARGETDEVHUBUSERNAME][
-uTARGETUSERNAME][
--apiversionAPIVERSION][
-bBUYER-USERNAME][
-nSTORE-NAME][
-pURLPATHPREFIX]
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
-v|--targetdevhubusernameTARGETDEVHUBUSERNAMEOptional
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
Type: string
-u|--targetusernameTARGETUSERNAMEOptional
A username or alias for the target org. Overrides the default target org.
Type: string
--apiversionAPIVERSIONOptional
Override the API version used for API requests made by this command.
Type: string
-b|--buyer-usernameBUYER-USERNAMEOptional
Buyer's username.
Type: string
Default value: buyer@1commerce.com
-n|--store-nameSTORE-NAMERequired
Name of the site to create.
Type: string
Default value: 1commerce
-p|--urlpathprefixURLPATHPREFIXOptional
Required if different from store-name URL to append to the domain created when Experiences was enabled for this org.
Type: string
commerce:store:open
Open store(s).
Examples for commerce:store:open
sfdx commerce:store:open --store-name test-store
sfdx commerce:store:open --all
Command Syntax
sfdx commerce:store:open[
--json][
--loglevelLOGLEVEL][
-vTARGETDEVHUBUSERNAME][
-uTARGETUSERNAME][
--apiversionAPIVERSION][
-nSTORE-NAME][
--all]
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
-v|--targetdevhubusernameTARGETDEVHUBUSERNAMEOptional
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
Type: string
-u|--targetusernameTARGETUSERNAMEOptional
A username or alias for the target org. Overrides the default target org.
Type: string
--apiversionAPIVERSIONOptional
Override the API version used for API requests made by this command.
Type: string
-n|--store-nameSTORE-NAMERequired
Name of the site to create.
Type: string
Default value: 1commerce
--allOptional
View All stores using sfdx force:org:open _ui/networks/setup/SetupNetworksPage page.
Type: boolean
commerce:store:quickstart:create
Use this command to just create a community. It will use sfdx force:community:create until a community is created or failed.
Examples for commerce:store:quickstart:create
sfdx commerce:store:quickstart:create --templatename ‘b2c-lite-storefront’
Command Syntax
sfdx commerce:store:quickstart:create[
--json][
--loglevelLOGLEVEL][
-uTARGETUSERNAME][
--apiversionAPIVERSION][
-tTEMPLATENAME][
-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
-u|--targetusernameTARGETUSERNAMEOptional
A username or alias for the target org. Overrides the default target org.
Type: string
--apiversionAPIVERSIONOptional
Override the API version used for API requests made by this command.
Type: string
-t|--templatenameTEMPLATENAMEOptional
Template to use to create a site .
Type: string
Default value: b2c-lite-storefront
-n|--store-nameSTORE-NAMERequired
Name of the site to create.
Type: string
Default value: 1commerce
commerce:store:quickstart:setup
Set up a store.
Examples for commerce:store:quickstart:setup
sfdx commerce:store:quickstart:setup --definitionfile store-scratch-def.json
Command Syntax
sfdx commerce:store:quickstart:setup[
--json][
--loglevelLOGLEVEL][
-vTARGETDEVHUBUSERNAME][
-uTARGETUSERNAME][
--apiversionAPIVERSION][
-fDEFINITIONFILE][
-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
-v|--targetdevhubusernameTARGETDEVHUBUSERNAMEOptional
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
Type: string
-u|--targetusernameTARGETUSERNAMEOptional
A username or alias for the target org. Overrides the default target org.
Type: string
--apiversionAPIVERSIONOptional
Override the API version used for API requests made by this command.
Type: string
-f|--definitionfileDEFINITIONFILEOptional
Config file.
Type: filepath
Default value: ~/.commerce/config/store-scratch-def.json
-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