description: "Interactive workflow to create Commerce B2B Stores and retrieve storefront metadata. Use when users want to: create B2B Commerce stores, build Commerce storefronts, set up B2B stores from Vibes, retrieve Commerce metadata, deploy Commerce experiences, work with DigitalExperienceBundle for Commerce."
Interactive workflow to create a Commerce B2B Store in Salesforce and retrieve the auto-generated storefront metadata to your repository.
## Critical Concepts
Commerce B2B = Store (backend data) + Storefront (frontend metadata). **Store must be created first** in the org to auto-generate the Storefront. Never create storefront metadata manually.
> See [Store vs Storefront Reference](references/store-vs-storefront.md)
## When to Use This Skill
Trigger when users request:
- "Create a B2B Commerce store"
- "Build a Commerce storefront"
- "Set up Commerce B2B"
- "Create B2B Commerce"
- "Retrieve Commerce storefront metadata"
- "Deploy B2B storefront"
## Rules That Always Apply
1.**Always follow the interactive flow.** Do NOT skip steps. Each step requires user confirmation before proceeding.
2.**Never create storefront metadata manually.** The Commerce setup wizard generates hundreds of configuration values. Manual creation will fail.
3.**Always list sites before retrieval.** Store names get underscores and number suffixes (e.g., "My B2B Store" → "My_B2B_Store1"). Let the user select from the actual list.
4.**Always use `--json` flag.** Include `--json` on all Salesforce CLI commands for parseable output.
## Interactive Workflow: 7 Steps
### Step 1: Explain Commerce B2B Concept
**Agent explains:** Commerce has Store (data) + Storefront (metadata). Store must be created first.
> See: [Store vs Storefront Reference](references/store-vs-storefront.md)
---
### Step 2: Guide User to Create B2B Store
**Agent provides these steps:**
1. Navigate to **Setup → Commerce → Stores**
- Or: **App Launcher → Commerce → Create Store**
2. Click **"Create Store"** or **"Setup New Store"**
3. Select **"Commerce Store"** as the store type
4. Follow the wizard:
- **Store Name**: Choose descriptive name (e.g., "My B2B Store")
- Important: Spaces become underscores in folder names
- **[store-vs-storefront.md](references/store-vs-storefront.md)** - Technical details on Store vs Storefront, source control, and why manual creation fails
---
## Remember
**Store first (creates storefront) → Retrieve → Customize**