Manage SLAS (Shopper Login and API Access Service) clients for B2C Commerce (SFCC/Demandware) with the b2c cli. Use when configuring shopper authentication, creating API clients for PWA/headless, managing OAuth scopes (including custom scopes like c_loyalty), or debugging token issues.
View on GitHubSalesforceCommerceCloud/b2c-developer-tooling
b2c-cli
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/main/skills/b2c-cli/skills/b2c-slas/SKILL.md -a claude-code --skill b2c-slasInstallation paths:
.claude/skills/b2c-slas/# B2C SLAS Skill Use the `b2c` CLI plugin to manage SLAS (Shopper Login and API Access Service) API clients and credentials. > **Tip:** If `b2c` is not installed globally, use `npx @salesforce/b2c-cli` instead (e.g., `npx @salesforce/b2c-cli slas client list`). ## When to Use Common scenarios requiring SLAS client management: - **Testing Custom APIs**: Create a client with custom scopes (e.g., `c_loyalty`) to test your Custom API endpoints - **PWA/Headless Development**: Configure clients for composable storefronts - **Integration Testing**: Create dedicated test clients with specific scope sets ## Examples ### List SLAS Clients ```bash # list all SLAS clients for a tenant b2c slas client list --tenant-id abcd_123 # list with JSON output b2c slas client list --tenant-id abcd_123 --json ``` ### Get SLAS Client Details ```bash # get details for a specific SLAS client b2c slas client get --tenant-id abcd_123 --client-id my-client-id ``` ### Create SLAS Client ```bash # create a new SLAS client with default scopes (auto-generates UUID client ID) b2c slas client create --tenant-id abcd_123 --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback # create with a specific client ID and custom scopes b2c slas client create my-client-id --tenant-id abcd_123 --channels RefArch --scopes sfcc.shopper-products,sfcc.shopper-search --redirect-uri http://localhost:3000/callback # create a public client b2c slas client create --tenant-id abcd_123 --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback --public # create client without auto-creating tenant (if you manage tenants separately) b2c slas client create --tenant-id abcd_123 --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback --no-create-tenant # output as JSON (useful for capturing the generated secret) b2c slas client create --tenant-id abcd_123 --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback -