3131
3232## Requirements
3333
34- - OAuth client credentials: ` --client-id ` , ` --client-secret `
34+ - OAuth client credentials (resolved from CLI configuration, or override with ` --client-id ` / ` --client-secret ` )
3535- CIP tenant: ` --tenant-id ` (or ` --tenant ` )
3636- API client has ` Salesforce Commerce API ` role with tenant filter for your instance
3737
@@ -59,13 +59,13 @@ Reports & Dashboards non-production URL: `https://ccac.stg.analytics.commerceclo
5959
6060``` bash
6161# List warehouse tables
62- b2c cip tables --tenant-id abcd_prd --client-id < client-id > --client-secret < client-secret >
62+ b2c cip tables --tenant-id abcd_prd
6363
6464# Filter table names
65- b2c cip tables --tenant-id abcd_prd --pattern " ccdw_aggr_%" --client-id < client-id > --client-secret < client-secret >
65+ b2c cip tables --tenant-id abcd_prd --pattern " ccdw_aggr_%"
6666
6767# Describe table columns
68- b2c cip describe ccdw_aggr_ocapi_request --tenant-id abcd_prd --client-id < client-id > --client-secret < client-secret >
68+ b2c cip describe ccdw_aggr_ocapi_request --tenant-id abcd_prd
6969```
7070
7171## Known Tables
@@ -88,12 +88,10 @@ b2c cip report --help
8888
8989# Run a report
9090b2c cip report sales-analytics \
91+ --tenant-id abcd_prd \
9192 --site-id Sites-RefArch-Site \
9293 --from 2025-01-01 \
93- --to 2025-01-31 \
94- --tenant-id abcd_prd \
95- --client-id < client-id> \
96- --client-secret < client-secret>
94+ --to 2025-01-31
9795
9896# Show report parameter contract
9997b2c cip report top-referrers --describe
@@ -109,16 +107,14 @@ b2c cip report top-referrers --site-id Sites-RefArch-Site --limit 25 --staging -
109107
110108``` bash
111109b2c cip report sales-analytics --site-id Sites-RefArch-Site --sql \
112- | b2c cip query --tenant-id abcd_prd --client-id < client-id > --client-secret < client-secret >
110+ | b2c cip query --tenant-id abcd_prd
113111```
114112
115113## Raw SQL Query Examples
116114
117115``` bash
118116b2c cip query \
119117 --tenant-id abcd_prd \
120- --client-id < client-id> \
121- --client-secret < client-secret> \
122118 " SELECT * FROM ccdw_aggr_sales_summary LIMIT 10"
123119```
124120
0 commit comments