/b2c-cli:b2c-scapi-schemasfrom b2c-cli
Browses and retrieves SCAPI OpenAPI schema specifications for Salesforce B2C Commerce. Helps list APIs, inspect endpoints, request/response shapes, data models, and fields.
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.
Browse standard or tenant-specific SCAPI OpenAPI contracts.
When B2C MCP is available, prefer scapi_search for Admin and Shopper contracts.
Read skill://mcp/b2c-mcp-scapi/SKILL.md via resource or skills_read first; pass
skillRead: true. Discover method/path/operationId, then selected inputs and
fields. The default searches bundled standard contracts offline; schemas: "live"
searches the tenant's contracts (custom attributes, custom APIs, newer APIs) and
makes them callable from scapi_execute.
Use scapi_schemas_list for live schemas, custom attributes, and custom APIs.
For tenant fields, supply API family/name/version and includeSchemas: true.
Custom-property expansion defaults to true; expandAll: true preserves full definitions.
For large schemas, fetch/filter through code mode as described in the MCP SCAPI skill.
Use scapi_custom_apis_get_status for registration status. Live schema access needs
sfcc.scapi-schemas. Prefer a dedicated task tool for execution, otherwise
scapi_execute supports Admin and guest Shopper JSON calls with configured auth/scopes. For custom
Admin endpoints, fetch the live contract through scapi.request in each program
before calling it; follow the MCP SCAPI skill. Registered-shopper and binary execution are
unsupported. Use docs tools for semantics
and limits rather than duplicating contract discovery.
For CLI work, use b2c scapi schemas list and
b2c scapi schemas get <family> <name> <version>; both use live access and fall back to the
bundled standard contracts (with a warning and source: "bundled" in --json) when it fails.
The Schemas API returns operation summaries/descriptions and examples only when asked:
--expand-paths/--expand-schemas fetch the prose, --expand-all fetches everything, and
--include summaries,descriptions,... chooses sections directly.
CLI get expands custom properties by default; --no-expand-custom-properties
requests the standard contract. MCP also defaults to expansion; disable it with
expandCustomProperties: false. Known custom fields can be sent through standard
Admin code-mode requests without a schema read or offline refresh.
config_inspect is the masked MCP equivalent of b2c setup inspect.
Read CLI examples for filters, selective expansion,
custom properties, and file output. There is no CLI code-mode equivalent.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli scapi schemas list).
Values like tenantId, shortCode, clientId, and clientSecret resolve from dw.json / SFCC_* env vars / the active instance / configuration plugins. Examples below show minimal usage; add flags only to override configured values — passing --client-id/--client-secret/--tenant-id/--short-code is usually unnecessary. If a required value is missing, the CLI emits an actionable error pointing at the flag, env var, and config key.
Run b2c setup inspect to see the resolved configuration and which source provided each value (--json for scripting; secrets stay masked by default). For precedence rules and troubleshooting, see the b2c-cli:b2c-config skill.
The tenant ID identifies your B2C Commerce instance for SCAPI calls. It is not the same as the organization ID:
zzxy_prd (the tenantId value in dw.json, or --tenant-id override)f_ecom_zzxy_prd (used in SCAPI URLs, has f_ecom_ prefix)For sandbox instances, derive the tenant ID from the hostname by replacing hyphens with underscores:
| Hostname | Tenant ID |
|---|---|
zzpq-013.dx.commercecloud.salesforce.com | zzpq_013 |
zzxy-001.dx.commercecloud.salesforce.com | zzxy_001 |
abcd-dev.dx.commercecloud.salesforce.com | abcd_dev |
For production instances, use your realm and instance identifier (e.g., zzxy_prd).
What 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"./b2c-capManage Commerce App Packages (CAPs), also called commerce apps or apps, and commerce features using the b2c CLI. Use this skill whenever the user needs to validate, package, install, uninstall, list, or pull commerce apps on B2C Commerce instances, view configuration tasks, or pull app sources for cartridge deployment or Storefront Next development. Also use when checking which apps are installed on an instance, inspecting app details or versions, or managing app lifecycle — even if they just say "what apps do I have", "list my commerce apps", "which CAPs are installed", "install this app", "pull app sources", or "show installed apps"./b2c-cipQuery CIP/CCAC sales, merchandising, payment, traffic, and API/controller analytics with the B2C CLI or MCP. Discover reports/tables, scope SQL, export results, and resolve analytics access./b2c-codeDeploy, download, and manage cartridge code versions on B2C Commerce instances. Use this skill whenever the user needs to upload or download cartridges to/from a sandbox, activate or delete code versions, watch for local file changes during development, or deploy a subset of cartridges. Also use when pushing code to an instance, pulling code from an instance, or setting up a dev workflow with live reload -- even if they just say 'push my code to the sandbox', 'download the code', or 'how do I activate the new version'./b2c-configConfigure B2C CLI/MCP authentication, instances, and project defaults; troubleshoot missing credentials, wrong targets, or configuration precedence. Routine inspection can use config_inspect or b2c setup inspect directly.Other plugins' skills for the same job