Install AI Tools

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

Claude

Install the plugin Recommended

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

Start a new Claude Code session in your project. Use --scope user instead for all projects.

Manual MCP setup

From your project directory:

bash
claude mcp add --transport stdio --scope project b2c-dx-mcp -- npx -y @salesforce/b2c-dx-mcp@latest

Start a new session. Use --scope user instead for all projects. See Claude Code MCP setup.

Claude Desktop setup

Codex

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. This setup also works with the Codex IDE extension and the ChatGPT Work desktop app.

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.

ChatGPT online setup

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

From your project directory, run:

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

Start a new Gemini CLI session. Use --scope user instead for all projects. 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:1297

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:1342

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:1336

Create a new API client

Parameters

body

Returns

Promise<{ }>


createUser()

createUser(user): Promise<{ }>

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

Create a new user

Parameters

user

Returns

Promise<{ }>


deleteApiClient()

deleteApiClient(apiClientId): Promise<void>

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

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:1308

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:1314

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:1334

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:1346

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:1348

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:1328

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:1322

Get role by ID

Parameters

roleId

string

Returns

Promise<{ }>


getRoleMapping()

getRoleMapping(): Promise<RoleMapping>

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

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:1300

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:1316

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:1332

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:1350

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:1324

List roles with pagination

Parameters

options?

ListRolesOptions

Returns

Promise<{ }>


listUsers()

listUsers(options?): Promise<{ }>

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

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:1310

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:1312

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:1318

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:1338

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:1306

Update an existing user

Parameters

userId

string

changes

Returns

Promise<{ }>