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★ 58 звёзд на GitHubОб этом скилле
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 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/clientSecretfromSFCC_*env vars (including project.env), the selected project-local or shareddw.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.
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.
Find the organization:
b2c am orgs list --user-auth(orb2c am orgs get <org-id>).Choose access for what the user needs:
Need Roles and tenant filter Scopes Every client mail,roles,tenantFilter,openidJobs, sites, and other SCAPI commands SALESFORCE_COMMERCE_APIwith tenant IDs (abcd_001)Per command: sfcc.jobs.rw,sfcc.sites, ... (b2c docs read guide-authentication)Storefront Next storefronts (SCAPI) SALESFORCE_COMMERCE_APIwith tenant IDssfcc.storefront.storefronts.rw,sfcc.storefront.environments.rw,sfcc.storefront.deployments.rwSandboxes and SLAS clients Sandbox API Userwith realm or tenant IDsAdd the same scopes to
--scopesand--default-scopes. Only grant the tenants and scopes the user asked for.Create it after the user approves. The command prints the details and asks for confirmation; when the agent cannot answer the prompt, pass
--forceonly after the user approved those exact details.b2c am clients create --user-auth \ --name "CI/CD Pipeline" \ --orgs <org-id> \ --password "<client-secr
Установить b2c-am в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic