b2c-config

Installation
SKILL.md

B2C Config Skill

The B2C CLI (@salesforce/b2c-cli) is a command-line tool for Salesforce B2C Commerce development. It provides commands organized by topic: auth, code, webdav, sandbox, mrt, scapi, slas, ecdn, job, logs, sites, content, cip, setup, and more. Use b2c --help or b2c <topic> --help for a full list.

Tip: If b2c is not installed globally, use npx @salesforce/b2c-cli instead (e.g., npx @salesforce/b2c-cli setup inspect).

Authentication

Most commands that interact with a B2C Commerce instance require authentication. The CLI supports several methods:

  • Client credentials (API client): Configure clientId and clientSecret in dw.json or environment variables. This is the default for automated/CI use.
  • Browser-based (implicit OAuth): Use --user-auth on any OAuth-enabled command to authenticate interactively via the browser. This opens Account Manager in your default browser for login.
  • Basic auth: Configure username and password for WebDAV operations.
  • Stateful sessions: Use b2c auth login for persistent browser-based login sessions.

--user-auth Flag

Many commands support --user-auth to use browser-based implicit OAuth instead of client credentials. This is useful when:

Installs
91
GitHub Stars
44
First Seen
Feb 11, 2026
b2c-config — salesforcecommercecloud/b2c-developer-tooling