b2c-docs by salesforcecommercecloud/b2c-developer-tooling
npx skills add https://github.com/salesforcecommercecloud/b2c-developer-tooling --skill b2c-docs使用 b2c CLI 来搜索和阅读 Salesforce B2C Commerce 捆绑的 Script API 文档和 XSD 模式。
提示: 如果
b2c没有全局安装,请使用npx @salesforce/b2c-cli代替(例如,npx @salesforce/b2c-cli docs search ProductMgr)。
# 按名称搜索类
b2c docs search ProductMgr
# 使用部分匹配进行搜索
b2c docs search "catalog product"
# 限制结果数量
b2c docs search status --limit 5
# 列出所有可用文档
b2c docs search --list
# 阅读类的文档(在终端中渲染)
b2c docs read ProductMgr
# 通过完全限定名阅读
b2c docs read dw.catalog.ProductMgr
# 输出原始 markdown 格式(用于管道操作)
b2c docs read ProductMgr --raw
# 输出为 JSON 格式
b2c docs read ProductMgr --json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
从 B2C Commerce 实例下载最新的 Script API 文档:
# 下载到指定目录
b2c docs download ./my-docs
# 使用特定服务器下载
b2c docs download ./docs --server sandbox.demandware.net
# 保留原始归档文件
b2c docs download ./docs --keep-archive
阅读用于导入/导出数据格式的捆绑 XSD 模式文件:
# 按名称阅读模式
b2c docs schema catalog
# 模糊匹配模式名称
b2c docs schema order
# 列出所有可用模式
b2c docs schema --list
# 输出为 JSON 格式
b2c docs schema catalog --json
| 类 | 描述 |
|---|---|
dw.catalog.ProductMgr | 产品管理和查询 |
dw.catalog.Product | 产品数据和属性 |
dw.order.Basket | 购物篮操作 |
dw.order.Order | 订单处理 |
dw.customer.CustomerMgr | 客户管理 |
dw.system.Site | 站点配置 |
dw.web.URLUtils | URL 生成工具 |
| 模式 | 描述 |
|---|---|
catalog | 产品目录导入/导出 |
order | 订单数据导入/导出 |
customer | 客户数据导入/导出 |
inventory | 库存数据导入/导出 |
pricebook | 价格手册导入/导出 |
promotion | 促销定义 |
coupon | 优惠券代码导入/导出 |
jobs | 作业步骤定义 |
查看 b2c docs --help 以获取可用命令和选项的完整列表。
每周安装次数
86
代码仓库
GitHub 星标数
32
首次出现
2026年2月11日
安全审计
安装于
github-copilot81
codex78
opencode77
cursor77
gemini-cli76
amp76
Use the b2c CLI to search and read bundled Script API documentation and XSD schemas for Salesforce B2C Commerce.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli docs search ProductMgr).
# Search for a class by name
b2c docs search ProductMgr
# Search with partial match
b2c docs search "catalog product"
# Limit results
b2c docs search status --limit 5
# List all available documentation
b2c docs search --list
# Read documentation for a class (renders in terminal)
b2c docs read ProductMgr
# Read by fully qualified name
b2c docs read dw.catalog.ProductMgr
# Output raw markdown (for piping)
b2c docs read ProductMgr --raw
# Output as JSON
b2c docs read ProductMgr --json
Download the latest Script API documentation from a B2C Commerce instance:
# Download to a directory
b2c docs download ./my-docs
# Download with specific server
b2c docs download ./docs --server sandbox.demandware.net
# Keep the original archive
b2c docs download ./docs --keep-archive
Read bundled XSD schema files for import/export data formats:
# Read a schema by name
b2c docs schema catalog
# Fuzzy match schema name
b2c docs schema order
# List all available schemas
b2c docs schema --list
# Output as JSON
b2c docs schema catalog --json
| Class | Description |
|---|---|
dw.catalog.ProductMgr | Product management and queries |
dw.catalog.Product | Product data and attributes |
dw.order.Basket | Shopping basket operations |
dw.order.Order | Order processing |
dw.customer.CustomerMgr | Customer management |
dw.system.Site |
| Schema | Description |
|---|---|
catalog | Product catalog import/export |
order | Order data import/export |
customer | Customer data import/export |
inventory | Inventory data import/export |
pricebook | Price book import/export |
promotion | Promotion definitions |
See b2c docs --help for a full list of available commands and options.
Weekly Installs
86
Repository
GitHub Stars
32
First Seen
Feb 11, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot81
codex78
opencode77
cursor77
gemini-cli76
amp76
Lark CLI妙记查询工具:快速获取飞书妙记元信息(标题、封面、时长)
39,100 周安装
| Site configuration |
dw.web.URLUtils | URL generation utilities |
coupon | Coupon codes import/export |
jobs | Job step definitions |