Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

b2c-am

БесплатноБез исполняемых скриптовНе проверен

Manage Account Manager resources including API clients, users, roles, and organizations. Use this skill whenever the user needs to create or update API…

SalesforceCommerceCloudот SalesforceCommerceCloud★ 58 звёзд на GitHub

Об этом скилле

B2C Account Manager Skill

Use the b2c am commands to manage Account Manager resources: API clients, users, roles, and organizations.

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

Authentication

Account Manager commands work with no configuration: the user signs in with their Account Manager account in the browser.

  • 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/clientSecret from SFCC_* env vars (including project .env), the selected project-local or shared dw.json, or configuration plugins — passing --client-id/--client-secret flags 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 inspect to confirm which credentials the CLI sees and where they came from. For precedence and troubleshooting, see the b2c-cli:b2c-config skill.

Role Requirements

Operations Client Credentials (roles on API client) User Auth (roles on user account)
AM Users & Roles User Administrator Account Administrator or User Administrator
AM Organizations Not supported -- use --user-auth Account Administrator
AM API Clients Not supported -- use --user-auth Account Administrator or API Administrator

Organization and API client management are only available with user authentication. For Business Manager administration (BM roles, users, access keys, whoami), see the b2c-cli:b2c-bm-users-roles skill.

API Clients

List Clients

b2c am clients list

# with pagination
b2c am clients list --size 50 --page 2

# JSON output
b2c am clients list --json

Get Client

# by UUID
b2c am clients get <api-client-id>

# with expanded organizations and roles
b2c am clients get <api-client-id> --expand organizations,roles

Create Client

Jobs, sites, Storefront Next storefronts, and other SCAPI and OCAPI commands need an Account Manager API client. If the user has none, or b2c setup inspect shows no clientId, you can create one with the user's own sign-in. Requires user auth (--user-auth) with the API Administrator or Account Administrator role.

Always confirm the client in detail with the user before creating it. A new client is a credential for the organization, and it cannot be deleted until it has been disabled for 7 days. Before running create, show the user every value — name, organization, roles, role tenant filter (the tenant IDs it can reach), scopes and default scopes, redirect URLs, and whether it is active — and wait for explicit approval. Ask again for each client; do not reuse an approval. Let the user choose the password, or generate one and tell them where it is stored; never print it.

  1. Find the organization: b2c am orgs list --user-auth (or b2c am orgs get <org-id>).

  2. Choose access for what the user needs:

    Need Roles and tenant filter Scopes
    Every client mail,roles,tenantFilter,openid
    Jobs, sites, and other SCAPI commands SALESFORCE_COMMERCE_API with tenant IDs (abcd_001) Per command: sfcc.jobs.rw, sfcc.sites, ... (b2c docs read guide-authentication)
    Storefront Next storefronts (SCAPI) SALESFORCE_COMMERCE_API with tenant IDs sfcc.storefront.storefronts.rw, sfcc.storefront.environments.rw, sfcc.storefront.deployments.rw
    Sandboxes and SLAS clients Sandbox API User with realm or tenant IDs

    Add the same scopes to --scopes and --default-scopes. Only grant the tenants and scopes the user asked for.

  3. Create it after the user approves. The command prints the details and asks for confirmation; when the agent cannot answer the prompt, pass --force only after the user approved those exact details.

    b2c am clients create --user-auth \
      --name "CI/CD Pipeline" \
      --orgs <org-id> \
      --password "<client-secr
    
Полный SKILL.md на GitHub

Установить b2c-am в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/trigger-evals.json

FAQ

Что делает скилл b2c-am?

Manage Account Manager resources including API clients, users, roles, and organizations. Use this skill whenever the user needs to create or update API clients, onboard or offboard developers, assign Account Manager roles scoped to tenants, audit user permissions, look up organizations, or provision API clients for CI/CD pipelines. Also use when managing AM role assignments or querying Account Manager data — even if they just say "add a new developer" or "set up an API client". For instance-level Business Manager administration (BM roles, BM users, BM access keys, BM whoami), defer to the `b2c-cli:b2c-bm-users-roles` skill.

Как установить скилл b2c-am?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл b2c-am запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить b2c-am с