commerce-react-storefront-create
create-react-storefront
What this does
Deploys the commerce-b2b-headless reference React storefront (a React 19 + Vite UIBundle
served from the Experience Cloud Site Container) into a user's B2B Commerce org and returns the
hosted storefront URL. The repo is a reference implementation — it ships four org-specific
values as <…_Placeholder> strings that throw at runtime until replaced. This skill's whole job
is to resolve those four values against the target org, then drive build → deploy → guest-user
entitlement so the storefront actually renders.
The repo's scripts/org-setup.mjs (npm run setup) automates login → build → deploy → permset →
dev-server, but it does not discover the WebStore, replace the placeholders, or entitle the
site's guest user (the README's own "Limitations" say there is no auto-discovery). Those
gaps are exactly the manual work below — do them, and the deploy is reliable.
Requires: Node 22+, sf CLI 2.130+, and a target org with B2B Commerce + Multi-framework React
enabled (API version 67.0+). Only work against orgs the user owns or is authorized to modify — deploy,
Apex edits, and permission-set assignment are real, side-effecting writes.