AgentSkillsCN

b2c-sites

借助 b2c cli 列出并检查 B2C Commerce(SFCC/Demandware)实例上的门店站点。当您需要查找站点 ID、检查站点配置,或列出可用的站点时,此技能非常有用——尤其是在运行其他命令时,有助于准确把握站点的上下文。

SKILL.md
--- frontmatter
name: b2c-sites
description: List and inspect storefront sites on B2C Commerce (SFCC/Demandware) instances with the b2c cli. Use when finding site IDs, checking site configuration, or listing available sites. Helpful for determining site context when running other commands.

B2C Sites Skill

Use the b2c CLI plugin to list and inspect storefront sites on Salesforce B2C Commerce instances.

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

Examples

List Sites

bash
# list all sites on the configured instance
b2c sites list

# list sites on a specific server
b2c sites list --server my-sandbox.demandware.net

# list sites with JSON output (useful for parsing/automation)
b2c sites list --json

# use a specific instance from config
b2c sites list --instance production

# enable debug logging
b2c sites list --debug

More Commands

See b2c sites --help for a full list of available commands and options in the sites topic.