/b2c-cli:b2c-object-typesfrom b2c-cli
Inspects and manages B2C Commerce system object type attribute definitions and groups via the SCAPI Object Definitions API.
Ships in b2c-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use b2c object-types to work with the attribute definitions and attribute groups of system object types on an instance, through the SCAPI Object Definitions API (dx/object-definitions/v1). The changes take effect immediately, with no site archive or import job.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cli.
object-types
├── list - system object types with attribute/group counts
├── get <type>
├── export <type...> [-o file] [--format xml|json] - custom attributes + groups as metadata XML
├── apply <file|dir> [--dry-run] [-t type] [--import] [--force] - create/update from metadata XML or JSON
├── attributes
│ ├── list <type> [--custom|--system] [-q text] [-g group] [--values]
│ ├── get <type> <id> - includes enum values
│ ├── create <type> <id> --type <valueType> [property flags] [--file body.json] [--replace]
│ ├── update <type> <id> [property flags] [--file changes.json] - partial (PATCH)
│ └── delete <type> <id> [--force]
└── groups
├── list <type>
├── get <type> <group> - includes assigned attributes
├── create <type> <group> [-n name] [-a attr ...]
├── update <type> <group> [-n name] [--position n]
├── delete <type> <group> [--force]
├── assign <type> <group> <attr...>
└── unassign <type> <group> <attr...>
Attribute IDs work with or without the c_ prefix (fabric or c_fabric). All commands support --json.
tenantId, shortCode, clientId, and clientSecret are read from dw.json, SFCC_* environment variables, or the active instance. Pass flags only when you need to override a configured value. Run b2c setup inspect to see where each value comes from (see the b2c-cli:b2c-config skill).
Scopes the API client needs:
sfcc.object-definitions.rw for writes, filtered listing (--custom, --system, -q, -g), and enum valuessfcc.object-definitions is enough for an unfiltered list and getSALESFORCE_COMMERCE_API:<tenant_id># Which system object types exist
b2c object-types list
# Custom attributes on Product, with enum values
b2c object-types attributes list Product --custom --extended
# Find attributes by name
b2c object-types attributes list Product -q color
# One attribute, including enum values
b2c object-types attributes get Product c_color --json
# Attributes in a Business Manager group
b2c object-types groups get Product storefrontAttributes
# Create a localizable string attribute with translations
b2c object-types attributes create Product fabric --type string -n Fabric -n fr=Tissu --localizable
# Change some properties (others are left as they are)
b2c object-types attributes update Product c_fabric --searchable
# Create a group and assign attributes to it
b2c object-types groups create Product materials -n Materials -a c_fabric -a c_lining
b2c object-types groups assign Product materials c_care
# Delete (asks for confirmation unless --force or --json)
b2c object-types attributes delete Product c_fabric --force
export writes custom attribute definitions and groups as system-objecttype-extensions.xml. apply compares a metadata XML file (or a site archive directory with meta/*.xml) against the instance and makes the changes through the API, with no import job.
# Snapshot Product and Order definitions into an import set
b2c object-types export Product Order -o site-data/meta/system-objecttype-extensions.xml
# Preview what applying a file would change, then apply it
b2c object-types apply site-data --dry-run
b2c object-types apply site-data --force
# Also set enum values and default values (runs a site import for just those attributes)
b2c object-types apply site-data --import --force
# Only one object type from a larger file
b2c object-types apply site-data/meta/system-objecttype-extensions.xml -t Product --dry-run
apply is additive: it creates missing attributes and groups, updates properties that differ, and assigns missing group members. It never deletes or unassigns. Enum values and default values are listed as needing an import; add --import to set them with a site import of just those attributes (needs the hostname and WebDAV and job access). The import keeps every value already on the instance and applies the file's changes. Value type changes and custom object types are reported as warnings.
valueDefinitions is ignored on create and update. Use apply --import, or meta/system-objecttype-extensions.xml with b2c job import (see b2c:b2c-metadata). A metadata import replaces an attribute's whole value list, so include every value you want to keep. You can read the values with attributes get.custom-objecttype-definitions.xml instead.create --replace replaces the whole definition. Properties you leave out are reset to their defaults. Use update for partial changes.obj.custom.* is generated from these definitions with b2c setup ide vscode-types --custom-attributes (b2c-cli:b2c-config).b2c-cli:b2c-import-set-migrations). apply --dry-run shows how an instance differs from that XML.b2c:b2c-metadata - Metadata XML for attributes, enum values, custom objects, and preferencesb2c-cli:b2c-import-set-migrations - Repeatable metadata changes through import setsb2c-cli:b2c-site-import-export - Importing site archivesb2c-cli:b2c-config - Resolving instance and credential configurationWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin b2c-cli28 skills in this plugin
/b2c-amManage 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-bm-users-rolesManage Business Manager users, access roles, role permissions, and per-user access keys on a B2C Commerce instance using the b2c CLI. Use this skill whenever the user needs to list or search BM users on a sandbox or production instance, identify which BM user an OAuth token resolves to ("whoami"), assign or revoke instance-level access roles, edit role permissions, look up a user's WebDAV / OCAPI / Storefront access key, or rotate access keys for SSO-managed users. Also use when the user asks "what's my BM login on sandbox X", "rotate my WebDAV password", "how do I make a custom BM role", "audit BM users on this instance", or "delete a stale BM user from a sandbox"./b2c-capManage Commerce App Packages (CAPs), also called commerce apps or apps, and commerce features using the b2c CLI. Use this skill whenever the user needs to validate, package, install, uninstall, list, or pull commerce apps on B2C Commerce instances, view configuration tasks, or pull app sources for cartridge deployment or Storefront Next development. Also use when checking which apps are installed on an instance, inspecting app details or versions, or managing app lifecycle — even if they just say "what apps do I have", "list my commerce apps", "which CAPs are installed", "install this app", "pull app sources", or "show installed apps"./b2c-cipQuery CIP/CCAC sales, merchandising, payment, traffic, and API/controller analytics with the B2C CLI or MCP. Discover reports/tables, scope SQL, export results, and resolve analytics access./b2c-codeDeploy, download, and manage cartridge code versions on B2C Commerce instances. Use this skill whenever the user needs to upload or download cartridges to/from a sandbox, activate or delete code versions, watch for local file changes during development, or deploy a subset of cartridges. Also use when pushing code to an instance, pulling code from an instance, or setting up a dev workflow with live reload -- even if they just say 'push my code to the sandbox', 'download the code', or 'how do I activate the new version'./b2c-configConfigure B2C CLI/MCP authentication, instances, and project defaults; troubleshoot missing credentials, wrong targets, or configuration precedence. Routine inspection can use config_inspect or b2c setup inspect directly.Other plugins' skills for the same job