b2c-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseB2C Docs Skill
B2C Docs Skill
Use the CLI to search and read bundled Script API documentation and XSD schemas for Salesforce B2C Commerce.
b2cTip: Ifis not installed globally, useb2cinstead (e.g.,npx @salesforce/b2c-cli).npx @salesforce/b2c-cli docs search ProductMgr
使用 CLI搜索和阅读Salesforce B2C Commerce的内置Script API文档及XSD模式。
b2c提示: 如果未全局安装,请改用b2c(例如:npx @salesforce/b2c-cli)。npx @salesforce/b2c-cli docs search ProductMgr
Examples
示例
Search Documentation
搜索文档
bash
undefinedbash
undefinedSearch for a class by name
按名称搜索类
b2c docs search ProductMgr
b2c docs search ProductMgr
Search with partial match
模糊匹配搜索
b2c docs search "catalog product"
b2c docs search "catalog product"
Limit results
限制结果数量
b2c docs search status --limit 5
b2c docs search status --limit 5
List all available documentation
列出所有可用文档
b2c docs search --list
undefinedb2c docs search --list
undefinedRead Documentation
查阅文档
bash
undefinedbash
undefinedRead documentation for a class (renders in terminal)
查阅类文档(在终端中渲染)
b2c docs read ProductMgr
b2c docs read ProductMgr
Read by fully qualified name
按完全限定名称查阅
b2c docs read dw.catalog.ProductMgr
b2c docs read dw.catalog.ProductMgr
Output raw markdown (for piping)
输出原始Markdown格式(用于管道操作)
b2c docs read ProductMgr --raw
b2c docs read ProductMgr --raw
Output as JSON
以JSON格式输出
b2c docs read ProductMgr --json
undefinedb2c docs read ProductMgr --json
undefinedDownload Documentation
下载文档
Download the latest Script API documentation from a B2C Commerce instance:
bash
undefined从B2C Commerce实例下载最新的Script API文档:
bash
undefinedDownload to a directory
下载到指定目录
b2c docs download ./my-docs
b2c docs download ./my-docs
Download with specific server
指定服务器下载
b2c docs download ./docs --server sandbox.demandware.net
b2c docs download ./docs --server sandbox.demandware.net
Keep the original archive
保留原始压缩包
b2c docs download ./docs --keep-archive
undefinedb2c docs download ./docs --keep-archive
undefinedRead XSD Schemas
查阅XSD模式
Read bundled XSD schema files for import/export data formats:
bash
undefined查阅用于数据导入/导出格式的内置XSD模式文件:
bash
undefinedRead a schema by name
按名称查阅模式
b2c docs schema catalog
b2c docs schema catalog
Fuzzy match schema name
模糊匹配模式名称
b2c docs schema order
b2c docs schema order
List all available schemas
列出所有可用模式
b2c docs schema --list
b2c docs schema --list
Output as JSON
以JSON格式输出
b2c docs schema catalog --json
undefinedb2c docs schema catalog --json
undefinedCommon Classes
常用类
| Class | Description |
|---|---|
| Product management and queries |
| Product data and attributes |
| Shopping basket operations |
| Order processing |
| Customer management |
| Site configuration |
| URL generation utilities |
| 类 | 描述 |
|---|---|
| 商品管理与查询 |
| 商品数据与属性 |
| 购物车操作 |
| 订单处理 |
| 客户管理 |
| 站点配置 |
| URL生成工具 |
Common Schemas
常用模式
| Schema | Description |
|---|---|
| Product catalog import/export |
| Order data import/export |
| Customer data import/export |
| Inventory data import/export |
| Price book import/export |
| Promotion definitions |
| Coupon codes import/export |
| Job step definitions |
| 模式 | 描述 |
|---|---|
| 商品目录导入/导出 |
| 订单数据导入/导出 |
| 客户数据导入/导出 |
| 库存数据导入/导出 |
| 价格手册导入/导出 |
| 促销规则定义 |
| 优惠券代码导入/导出 |
| 作业步骤定义 |
More Commands
更多命令
See for a full list of available commands and options.
b2c docs --help查看获取所有可用命令及选项的完整列表。
b2c docs --help