b2c-sites

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

B2C Sites Skill

B2C站点操作技能

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
).
使用
b2c
CLI插件列出并检查Salesforce B2C Commerce实例上的店铺站点。
提示: 如果未全局安装
b2c
,请改用
npx @salesforce/b2c-cli
(例如:
npx @salesforce/b2c-cli sites list
)。

Examples

示例

List Sites

列出站点

bash
undefined
bash
undefined

list all sites on the configured instance

列出已配置实例上的所有站点

b2c sites list
b2c sites list

list sites on a specific server

列出指定服务器上的站点

b2c sites list --server my-sandbox.demandware.net
b2c sites list --server my-sandbox.demandware.net

list sites with JSON output (useful for parsing/automation)

以JSON格式输出站点列表(便于解析/自动化处理)

b2c sites list --json
b2c sites list --json

use a specific instance from config

使用配置中的指定实例

b2c sites list --instance production
b2c sites list --instance production

enable debug logging

启用调试日志

b2c sites list --debug
undefined
b2c sites list --debug
undefined

More Commands

更多命令

See
b2c sites --help
for a full list of available commands and options in the
sites
topic.
查看
b2c sites --help
以获取
sites
主题下的所有可用命令和选项的完整列表。