Install AI Tools

B2C Commerce tools, documentation, and skills for your assistant.

Claude

Using Claude Desktop? See Claude Desktop (Cowork) setup.

Install the plugin Recommended

bash
claude plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
claude plugin install b2c-dx-mcp@b2c-developer-tooling

Start a new Claude Code session. To install for the current project only, run it from your project directory with --scope project.

Manual MCP setup
bash
claude mcp add --transport stdio --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Start a new session. To configure the current project only, run it from your project directory with --scope project. See Claude Code MCP setup.

Codex/ChatGPT

Using the ChatGPT desktop app (ChatGPT Work)? See ChatGPT Work setup.

Install the plugin Recommended

bash
codex plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling
codex plugin add b2c-dx-mcp@b2c-developer-tooling

Start a new Codex session in your project. Codex plugins also work in ChatGPT Work.

Manual MCP setup
bash
codex mcp add b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Or add this to ~/.codex/config.toml (or $CODEX_HOME/config.toml if customized):

toml
[mcp_servers.b2c-dx-mcp]
command = "npx"
args = ["-y", "@salesforce/b2c-dx-mcp@latest"]

Start a new session. See Codex MCP configuration.

VS Code

Install the plugin Recommended

  1. Open the Command Palette (Cmd/Ctrl+Shift+P) and run Chat: Install Plugin from Source.
  2. Enter SalesforceCommerceCloud/b2c-developer-tooling.
  3. Select b2c-dx-mcp and follow the installation prompts.
  4. Start a new chat in GitHub Copilot.
Manual MCP setup

Add this to .vscode/mcp.json in your workspace:

json
{
  "servers": {
    "b2c-dx-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@salesforce/b2c-dx-mcp@latest"]
    }
  }
}

See VS Code MCP setup.

Copilot CLI setup

Cursor

Reload the MCP server in Cursor after installation.

Manual MCP setup

Add this to .cursor/mcp.json in your project:

json
{
  "mcpServers": {
    "b2c-dx-mcp": {
      "command": "npx",
      "args": ["-y", "@salesforce/b2c-dx-mcp@latest"]
    }
  }
}

For all projects, use ~/.cursor/mcp.json instead.

See Cursor's MCP documentation.

OpenCode

Add this to opencode.json in your project:

json
{
  "mcp": {
    "b2c-dx-mcp": {
      "type": "local",
      "command": ["npx", "-y", "@salesforce/b2c-dx-mcp@latest"],
      "enabled": true
    }
  }
}

Restart OpenCode. For all projects, use ~/.config/opencode/opencode.json. See OpenCode MCP setup.

Gemini

Run:

bash
gemini mcp add --scope user b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Start a new Gemini CLI session. To configure the current project only, run it from your project directory with --scope project. See Gemini CLI MCP setup.

No separate skills plugins needed.

Other clients and manual setup →
Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / clients / AccountManagerClient

Interface: AccountManagerClient ​

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1308

Unified Account Manager API client that combines users, roles, and organizations.

This client provides direct access to all Account Manager API methods through a single interface, while internally using separate typed clients for type safety.

Methods ​

changeApiClientPassword() ​

changeApiClientPassword(apiClientId, oldPassword, newPassword): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1353

Change an API client password

Parameters ​

apiClientId ​

string

oldPassword ​

string

newPassword ​

string

Returns ​

Promise<void>


createApiClient() ​

createApiClient(body): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1347

Create a new API client

Parameters ​

body ​

Returns ​

Promise<{ }>


createUser() ​

createUser(user): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1315

Create a new user

Parameters ​

user ​

Returns ​

Promise<{ }>


deleteApiClient() ​

deleteApiClient(apiClientId): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1351

Delete an API client (must be disabled 7+ days)

Parameters ​

apiClientId ​

string

Returns ​

Promise<void>


deleteUser() ​

deleteUser(userId): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1319

Disable a user (soft delete)

Parameters ​

userId ​

string

Returns ​

Promise<void>


findUserByLogin() ​

findUserByLogin(login, expand?): Promise<{ } | undefined>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1325

Find a user by login (email)

Parameters ​

login ​

string

expand? ​

("roles" | "organizations")[]

Returns ​

Promise<{ } | undefined>


getApiClient() ​

getApiClient(apiClientId, expand?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1345

Get API client by ID

Parameters ​

apiClientId ​

string

expand? ​

("roles" | "organizations")[]

Returns ​

Promise<{ }>


getOrg() ​

getOrg(orgId): Promise<AccountManagerOrganization>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1357

Get organization by ID

Parameters ​

orgId ​

string

Returns ​

Promise<AccountManagerOrganization>


getOrgByName() ​

getOrgByName(name): Promise<AccountManagerOrganization>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1359

Get organization by name

Parameters ​

name ​

string

Returns ​

Promise<AccountManagerOrganization>


getOrgMapping() ​

getOrgMapping(): Promise<OrgMapping>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1339

Get the org mapping (id → name), lazily cached

Returns ​

Promise<OrgMapping>


getRole() ​

getRole(roleId): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1333

Get role by ID

Parameters ​

roleId ​

string

Returns ​

Promise<{ }>


getRoleMapping() ​

getRoleMapping(): Promise<RoleMapping>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1337

Get the role mapping (id ↔ roleEnumName), lazily cached

Returns ​

Promise<RoleMapping>


getUser() ​

getUser(userId, expand?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1311

Get user by ID

Parameters ​

userId ​

string

expand? ​

("roles" | "organizations")[]

Returns ​

Promise<{ }>


grantRole() ​

grantRole(userId, role, scope?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1327

Grant a role to a user, optionally with scope

Parameters ​

userId ​

string

role ​

string

scope? ​

string

Returns ​

Promise<{ }>


listApiClients() ​

listApiClients(options?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1343

List API clients with pagination

Parameters ​

options? ​

ListApiClientsOptions

Returns ​

Promise<{ }>


listOrgs() ​

listOrgs(options?): Promise<OrganizationCollection>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1361

List organizations with pagination

Parameters ​

options? ​

ListOrgsOptions

Returns ​

Promise<OrganizationCollection>


listRoles() ​

listRoles(options?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1335

List roles with pagination

Parameters ​

options? ​

ListRolesOptions

Returns ​

Promise<{ }>


listUsers() ​

listUsers(options?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1313

List users with pagination

Parameters ​

options? ​

ListUsersOptions

Returns ​

Promise<{ }>


purgeUser() ​

purgeUser(userId): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1321

Purge a user (hard delete)

Parameters ​

userId ​

string

Returns ​

Promise<void>


resetUser() ​

resetUser(userId): Promise<void>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1323

Reset a user to INITIAL state

Parameters ​

userId ​

string

Returns ​

Promise<void>


revokeRole() ​

revokeRole(userId, role, scope?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1329

Revoke a role from a user, optionally removing specific scope

Parameters ​

userId ​

string

role ​

string

scope? ​

string

Returns ​

Promise<{ }>


updateApiClient() ​

updateApiClient(apiClientId, body): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1349

Update an existing API client

Parameters ​

apiClientId ​

string

body ​

Returns ​

Promise<{ }>


updateUser() ​

updateUser(userId, changes): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:1317

Update an existing user

Parameters ​

userId ​

string

changes ​

Returns ​

Promise<{ }>