From b2c-cli
Manages B2C Commerce eCDN (Cloudflare-powered) via b2c CLI: list/create zones, purge cache by path/tag/everything, provision/validate SSL certs, configure security (WAF, firewall, rate limiting), speed optimizations.
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin b2c-cliThis skill uses the workspace's default tool permissions.
Use the `b2c` CLI plugin to manage eCDN (embedded Content Delivery Network) zones, certificates, security settings, and more.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Use the b2c CLI plugin to manage eCDN (embedded Content Delivery Network) zones, certificates, security settings, and more.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli ecdn zones list).
sfcc.cdn-zones scope (read operations)sfcc.cdn-zones.rw scope (write operations)# list all CDN zones for a tenant
b2c ecdn zones list --tenant-id zzxy_prd
# list with JSON output
b2c ecdn zones list --tenant-id zzxy_prd --json
# create a new storefront zone
b2c ecdn zones create --tenant-id zzxy_prd --storefront-hostname www.example.com --origin-hostname origin.example.com
# purge cache for specific paths
b2c ecdn cache purge --tenant-id zzxy_prd --zone my-zone --path /products --path /categories
# purge by cache tags
b2c ecdn cache purge --tenant-id zzxy_prd --zone my-zone --tag product-123 --tag category-456
# purge everything
b2c ecdn cache purge --tenant-id zzxy_prd --zone my-zone --purge-everything
# list certificates for a zone
b2c ecdn certificates list --tenant-id zzxy_prd --zone my-zone
# add a new certificate
b2c ecdn certificates add --tenant-id zzxy_prd --zone my-zone --hostname www.example.com --certificate-file ./cert.pem --private-key-file ./key.pem
# get certificate details
b2c ecdn certificates get --tenant-id zzxy_prd --zone my-zone --certificate-id abc123
# validate a custom hostname
b2c ecdn certificates validate --tenant-id zzxy_prd --zone my-zone --certificate-id abc123
# get security settings
b2c ecdn security get --tenant-id zzxy_prd --zone my-zone
# update security settings
b2c ecdn security update --tenant-id zzxy_prd --zone my-zone --ssl-mode full --min-tls-version 1.2 --always-use-https
# get speed optimization settings
b2c ecdn speed get --tenant-id zzxy_prd --zone my-zone
# update speed settings
b2c ecdn speed update --tenant-id zzxy_prd --zone my-zone --browser-cache-ttl 14400 --auto-minify-html --auto-minify-css
For less commonly used eCDN features, see the reference files:
The tenant ID can be set via environment variable:
SFCC_TENANT_ID: B2C Commerce tenant IDThe --zone flag accepts either:
| Operation | Required Scope |
|---|---|
| Read operations | sfcc.cdn-zones |
| Write operations | sfcc.cdn-zones.rw |
See b2c ecdn --help for a full list of available commands and options in the ecdn topic.