home / skills / salesforcecommercecloud / b2c-developer-tooling / b2c-sites
This skill helps you list and inspect storefront sites on Salesforce B2C Commerce using the b2c cli, enabling quick site context and configuration checks.
npx playbooks add skill salesforcecommercecloud/b2c-developer-tooling --skill b2c-sitesReview the files below or copy the command above to add this skill to your agents.
---
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.
This skill lets you list and inspect storefront sites on Salesforce B2C Commerce (SFCC/Demandware) instances using the b2c CLI. It helps you find site IDs, review site configuration, and confirm which sites are available on a given instance. Use it to determine the correct site context before running other B2C CLI commands or automation scripts.
The skill invokes the b2c CLI plugin to query a configured B2C Commerce instance and returns a list of sites and their details. It supports selecting instances or servers from your local b2c config, JSON output for automation, and debug logging for troubleshooting. If the b2c plugin is not installed globally, it works with npx to run the CLI without global installation.
Do I need a global b2c CLI install to use this skill?
No. If b2c is not installed globally you can run the commands via npx, for example: npx @salesforce/b2c-cli sites list.
Can I get machine-readable output for automation?
Yes. Use the --json flag to produce JSON output suitable for scripts and CI pipelines.