b2c-am
Installation
SKILL.md
B2C Account Manager Skill
Use the b2c am commands to manage Account Manager resources: API clients, users, roles, and organizations.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli am clients list).
Authentication
Account Manager commands work out of the box with no configuration. The CLI uses a built-in public client and opens a browser for login.
- Zero-config (browser login): Default. Just run the commands -- the CLI opens a browser for login.
- Client credentials: For CI/CD and automation. The CLI auto-discovers
clientId/clientSecretfromSFCC_*env vars,dw.json(in the current or a parent directory),package.json, or configuration plugins — passing--client-id/--client-secretflags is usually unnecessary. - Force browser login (
--user-auth): When client credentials are configured but you need browser-based login (required for org and client management).
Run
b2c setup inspectto confirm which credentials the CLI sees and where they came from. For precedence and troubleshooting, see theb2c-cli:b2c-configskill.