creating-b2b-commerce-store

Create Salesforce Commerce B2B Stores and retrieve storefront metadata via sf project retrieve start.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/sf-skills --skill creating-b2b-commerce-store-forcedotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-b2b-commerce-store
Source: https://github.com/forcedotcom/sf-skills/tree/main/skills/creating-b2b-commerce-store
Command: npx skills add https://github.com/forcedotcom/sf-skills --skill creating-b2b-commerce-store-forcedotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you set up Salesforce Commerce B2B correctly and avoid the common failure of trying to manually create storefront metadata before the required Store exists.

Core Features & Use Cases

  • Guided interactive setup: Walks you through the exact UI steps to create the Commerce B2B Store so the Storefront is auto-generated.
  • Safe metadata retrieval: Lists available Digital Experience (LWR) sites and retrieves the correct storefront bundle into source control.
  • Guardrails against broken workflows: Enforces the order of operations and prevents manual storefront metadata creation.

Quick Start

Ask an AI agent to guide you through creating your Commerce B2B Store in Setup, then retrieve the generated storefront metadata into your repo for deployment.

Frequently Asked Questions about creating-b2b-commerce-store

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve Salesforce Commerce B2B storefront metadata into source control?

To retrieve Salesforce Commerce B2B storefront metadata, list available LWR sites via sf org list metadata, then use sf project retrieve start -m DigitalExperienceBundle:site/<name> --json to pull the auto-generated bundle into your repo.

Why does manually creating B2B storefront metadata fail in Salesforce Commerce?

Manually creating B2B storefront metadata fails because the Storefront must be auto-generated by the system. You must first create the Commerce B2B Store in Setup to generate the required Digital Experience bundle before retrieval.

What's the best way to set up a B2B Commerce store and deploy a Digital Experience bundle?

The best way to set up a B2B Commerce store is following an interactive guided flow to create the store in Setup, ensuring the Storefront auto-generates, then retrieving the DigitalExperienceBundle for deployment via sf cli.

How do I list available LWR sites before retrieving a storefront bundle?

List available LWR sites by running sf org list metadata to view existing Digital Experience sites. This confirms the auto-generated storefront exists before executing the sf project retrieve start command.

Do I need to create the Commerce B2B Store before retrieving storefront metadata?

Yes, creating the Commerce B2B Store first is required. Enforcing this order of operations prevents broken workflows, as the storefront metadata only auto-generates after the store exists in Setup.

Can I use sf cli to retrieve a specific DigitalExperienceBundle for a B2B storefront?

Yes, you can use sf cli to retrieve a specific DigitalExperienceBundle. Execute sf project retrieve start -m DigitalExperienceBundle:site/<selected-store-name> --json to pull the exact storefront bundle into version control.