/b2c-cli:b2c-setupfrom b2c-cli
Plans and runs end-to-end B2C Commerce sandbox or realm setup with the b2c CLI: sample data, sites, search indexes, code, and replication.
Ships in b2c-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Set up a B2C Commerce sandbox or realm from an empty instance to a working storefront. This skill is an index: pick the path for the target, follow its reference, and use the workflow catalog for product- or feature-specific steps.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (for example,npx @salesforce/b2c-cli sites list).
Classify every target before changing it. Staging, production, and development instances are shared and can serve live traffic; imports and replication there change global settings for every site on the instance.
| Target | Before each change |
|---|---|
| Sandbox | Confirm creating (billable) or deleting a sandbox. Imports and storefront setup can proceed once the user asked. |
| Staging, production, development instances | State the instance hostname and the exact change, then wait for explicit approval. Ask again for each separate change. |
| Account Manager (API clients, users, roles) | Show every detail (organization, roles, tenant filter, scopes) and wait for explicit approval. Ask again for each client. |
b2c-cli:b2c-storefronts).Recommend Safety Mode for shared instances: safety.
| Goal | Path |
|---|---|
| A development sandbox with sample data and a storefront | Sandbox setup |
| A new realm: staging first, then production / development | Realm setup |
| Sample sites, catalogs, and content for any instance | Storefront datasets |
A Storefront Next storefront, project code, and .env | Storefront Next setup |
| Add an instance to an existing Storefront Next project | b2c-cli:b2c-storefronts |
Every path starts the same way:
b2c setup inspect. See b2c-cli:b2c-config. Jobs, sites, and storefront commands need an API client; if the user has none, create one with their sign-in (b2c-cli:b2c-am, Create Client), and only after they approve every detail of it. Creating a Storefront Next storefront from the CLI needs storefront scopes on the client: Storefront Next setup.b2c sites list and b2c code list show existing sites and code versions. Do not overwrite existing sites or settings without approval.Steps that depend on the product line, license, or feature. Use only the rows that apply to the user's realm.
| Workflow | Applies to | Guidance |
|---|---|---|
| Instance connection, API clients, roles | All | b2c-cli:b2c-config, b2c-cli:b2c-am, b2c-cli:b2c-bm-users-roles |
| Sample data and search indexes | All | Storefront datasets, b2c-cli:b2c-job |
| Site archives and custom data | All | b2c-cli:b2c-site-import-export |
| Code and data replication | Realms (staging to production/development) | b2c-cli:b2c-replication |
| Storefront Next storefront and MRT project | Storefront Next | Storefront Next setup, b2c-cli:b2c-storefronts, b2c-cli:b2c-mrt |
| Cartridge storefronts (SFRA) | Cartridge-based storefronts | b2c-cli:b2c-code, b2c-cli:b2c-sites |
| Shopper authentication (SLAS) | Headless and composable storefronts | b2c-cli:b2c-slas |
| Commerce apps | Commerce apps | b2c-cli:b2c-cap |
| eCDN zones and certificates | Storefronts on eCDN | b2c-cli:b2c-ecdn |
b2c docs read guide-realm-setup) — the user-facing version of this skillb2c-cli:b2c-sandbox — create, start, stop, and clone sandboxesb2c-cli:b2c-storefronts — create or import Storefront Next storefrontsb2c-cli:b2c-replication — replication jobs for stagingb2c-ops:b2c-production-triage — investigate problems after launchWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin b2c-cli28 skills in this plugin
/b2c-amManage Account Manager resources including API clients, users, roles, and organizations. Use this skill whenever the user needs to create or update API clients, onboard or offboard developers, assign Account Manager roles scoped to tenants, audit user permissions, look up organizations, or provision API clients for CI/CD pipelines. Also use when managing AM role assignments or querying Account Manager data — even if they just say "add a new developer" or "set up an API client". For instance-level Business Manager administration (BM roles, BM users, BM access keys, BM whoami), defer to the `b2c-cli:b2c-bm-users-roles` skill./b2c-bm-users-rolesManage Business Manager users, access roles, role permissions, and per-user access keys on a B2C Commerce instance using the b2c CLI. Use this skill whenever the user needs to list or search BM users on a sandbox or production instance, identify which BM user an OAuth token resolves to ("whoami"), assign or revoke instance-level access roles, edit role permissions, look up a user's WebDAV / OCAPI / Storefront access key, or rotate access keys for SSO-managed users. Also use when the user asks "what's my BM login on sandbox X", "rotate my WebDAV password", "how do I make a custom BM role", "audit BM users on this instance", or "delete a stale BM user from a sandbox".Other plugins' skills for the same job