Loading...
Loading...
Run Commerce Intelligence Platform (CIP/CCAC) analytics reports, metadata discovery, and SQL queries with the b2c cli. Always reference when using the CLI to run analytics reports, query Commerce Intelligence data, discover CIP tables, or export KPI metrics. Also use when users ask about sales, search, or payment analytics.
npx skill4agent add salesforcecommercecloud/b2c-developer-tooling b2c-cipb2c cipTip: Ifis not installed globally, useb2c.npx @salesforce/b2c-cli
cip
├── tables - list metadata catalog tables
├── describe <table> - describe table columns
├── query - raw SQL execution
└── report - curated report topic
├── sales-analytics
├── sales-summary
├── ocapi-requests
├── top-selling-products
├── product-co-purchase-analysis
├── promotion-discount-analysis
├── search-query-performance
├── payment-method-performance
├── customer-registration-trends
└── top-referrers--client-id--client-secret--tenant-id--tenantSalesforce Commerce API--cip-hostSFCC_CIP_HOST--stagingSFCC_CIP_STAGINGabcd_prdhttps://ccac.stg.analytics.commercecloud.salesforce.comb2c cip tablesb2c cip report --helpb2c cip describe <table>--describe--sqlcip query# List warehouse tables
b2c cip tables --tenant-id abcd_prd --client-id <client-id> --client-secret <client-secret>
# Filter table names
b2c cip tables --tenant-id abcd_prd --pattern "ccdw_aggr_%" --client-id <client-id> --client-secret <client-secret>
# Describe table columns
b2c cip describe ccdw_aggr_ocapi_request --tenant-id abcd_prd --client-id <client-id> --client-secret <client-secret>references/KNOWN_TABLES.mdreferences/STARTER_QUERIES.md# Show report commands
b2c cip report --help
# Run a report
b2c cip report sales-analytics \
--site-id Sites-RefArch-Site \
--from 2025-01-01 \
--to 2025-01-31 \
--tenant-id abcd_prd \
--client-id <client-id> \
--client-secret <client-secret>
# Show report parameter contract
b2c cip report top-referrers --describe
# Print generated SQL and stop
b2c cip report top-referrers --site-id Sites-RefArch-Site --limit 25 --sql
# Force staging analytics host
b2c cip report top-referrers --site-id Sites-RefArch-Site --limit 25 --staging --sqlb2c cip report sales-analytics --site-id Sites-RefArch-Site --sql \
| b2c cip query --tenant-id abcd_prd --client-id <client-id> --client-secret <client-secret>b2c cip query \
--tenant-id abcd_prd \
--client-id <client-id> \
--client-secret <client-secret> \
"SELECT * FROM ccdw_aggr_sales_summary LIMIT 10"--file ./query.sqlcat query.sql | b2c cip query ...b2c cip query<FROM>--from YYYY-MM-DD<TO>--to YYYY-MM-DD--from--to--site-idSites-{siteId}-SitesiteId--format table--format csv--format json--jsonSELECT *tenant-id is required--tenant-idSFCC_TENANT_ID--user-authb2c cip --help