Loading...
Loading...
Search and read B2C Commerce (SFCC/Demandware) Script API documentation and XSD schemas with the b2c cli. Always reference when using the CLI to search or read Script API documentation, look up dw.* classes, or browse XSD schemas. Also use when writing B2C scripts, answering "how do I" questions about URLs/products/orders, or verifying class methods and properties.
npx skill4agent add salesforcecommercecloud/b2c-developer-tooling b2c-docsb2cTip: Ifis not installed globally, useb2cinstead (e.g.,npx @salesforce/b2c-cli).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 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 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 |
|---|---|
| Product management and queries |
| Product data and attributes |
| Shopping basket operations |
| Order processing |
| Customer management |
| Site configuration |
| URL generation utilities |
| 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 |
b2c docs --help