ExamGecko
Question list
Search
Search

List of questions

Search

Question 4 - Certified B2B Commerce Administrator discussion

Report
Export

A developer is setting up a storefront from scratch. They need to create a storefront, push 05m 28s store sources, create buyer users, import products, and create and search index.

Which command allows the developer to accomplish this task?

A.
sfdx commerce:store:quickstart:create -templatename 'b2c-lite-storefront'
Answers
A.
sfdx commerce:store:quickstart:create -templatename 'b2c-lite-storefront'
B.
sfdx commerce:store:quickstart:setup ---definitionfile store-scratch-def json
Answers
B.
sfdx commerce:store:quickstart:setup ---definitionfile store-scratch-def json
C.
sfdx commerce:store:create ---store-name test-store
Answers
C.
sfdx commerce:store:create ---store-name test-store
D.
sfdx commerce:store:open ---store-name test-store
Answers
D.
sfdx commerce:store:open ---store-name test-store
Suggested answer: B

Explanation:

To set up a storefront from scratch, the developer can use the sfdx commerce:store:quickstart:setup command, which performs all the necessary steps to create a storefront, push store sources, create buyer users, import products, and create and search index. The command requires a definition file that specifies the store name, template name, and other parameters. For example, a store-scratch-def.json file could look like this:

{ ''storeName'': ''test-store'', ''templateName'': ''b2c-lite-storefront'', ''orgName'': ''Test Org'', ''edition'': ''Developer'', ''features'': [''Communities'', ''B2BCommerce''], ''settings'': { ''communitiesSettings'': { ''enableNetworksEnabled'': true } } }

The developer can then run the command as follows:

sfdx commerce:store:quickstart:setup ---definitionfile store-scratch-def.json

This will create a test-store storefront using the b2c-lite-storefront template in a scratch org named Test Org with Developer edition and B2B Commerce features enabled. The other options are not correct because:

sfdx commerce:store:quickstart:create -templatename 'b2c-lite-storefront' is an invalid command. There is no quickstart:create command in sfdx commerce:store.

sfdx commerce:store:create ---store-name test-store is a valid command, but it only creates a storefront with a default template. It does not push store sources, create buyer users, import products, or create and search index.

sfdx commerce:store:open ---store-name test-store is a valid command, but it only opens an existing storefront in a web browser. It does not set up a storefront from scratch

asked 23/09/2024
RAOUL AMODIO
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first