@salesforce/b2c-cli 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/commands/mrt/bundle/deploy.d.ts +2 -2
  2. package/dist/commands/mrt/bundle/download.d.ts +2 -2
  3. package/dist/commands/mrt/bundle/history.d.ts +2 -2
  4. package/dist/commands/mrt/bundle/list.d.ts +2 -2
  5. package/dist/commands/mrt/env/access-control/list.d.ts +2 -2
  6. package/dist/commands/mrt/env/b2c.d.ts +2 -2
  7. package/dist/commands/mrt/env/create.d.ts +2 -2
  8. package/dist/commands/mrt/env/delete.d.ts +2 -2
  9. package/dist/commands/mrt/env/get.d.ts +2 -2
  10. package/dist/commands/mrt/env/invalidate.d.ts +2 -2
  11. package/dist/commands/mrt/env/list.d.ts +2 -2
  12. package/dist/commands/mrt/env/redirect/clone.d.ts +2 -2
  13. package/dist/commands/mrt/env/redirect/create.d.ts +2 -2
  14. package/dist/commands/mrt/env/redirect/delete.d.ts +2 -2
  15. package/dist/commands/mrt/env/redirect/list.d.ts +2 -2
  16. package/dist/commands/mrt/env/update.d.ts +2 -2
  17. package/dist/commands/mrt/env/var/delete.d.ts +2 -2
  18. package/dist/commands/mrt/env/var/list.d.ts +2 -2
  19. package/dist/commands/mrt/env/var/set.d.ts +2 -2
  20. package/dist/commands/mrt/org/b2c.d.ts +2 -2
  21. package/dist/commands/mrt/org/list.d.ts +2 -2
  22. package/dist/commands/mrt/project/create.d.ts +2 -2
  23. package/dist/commands/mrt/project/delete.d.ts +2 -2
  24. package/dist/commands/mrt/project/get.d.ts +2 -2
  25. package/dist/commands/mrt/project/list.d.ts +2 -2
  26. package/dist/commands/mrt/project/member/add.d.ts +2 -2
  27. package/dist/commands/mrt/project/member/get.d.ts +2 -2
  28. package/dist/commands/mrt/project/member/list.d.ts +2 -2
  29. package/dist/commands/mrt/project/member/remove.d.ts +2 -2
  30. package/dist/commands/mrt/project/member/update.d.ts +2 -2
  31. package/dist/commands/mrt/project/notification/create.d.ts +2 -2
  32. package/dist/commands/mrt/project/notification/delete.d.ts +2 -2
  33. package/dist/commands/mrt/project/notification/get.d.ts +2 -2
  34. package/dist/commands/mrt/project/notification/list.d.ts +2 -2
  35. package/dist/commands/mrt/project/notification/update.d.ts +2 -2
  36. package/dist/commands/mrt/project/update.d.ts +2 -2
  37. package/dist/commands/mrt/tail-logs.d.ts +2 -2
  38. package/dist/commands/mrt/user/api-key.d.ts +2 -2
  39. package/dist/commands/mrt/user/email-prefs.d.ts +2 -2
  40. package/dist/commands/mrt/user/profile.d.ts +2 -2
  41. package/oclif.manifest.json +715 -715
  42. package/package.json +2 -2
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "commands": {
3
- "_test": {
3
+ "auth:token": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Test logging output",
6
+ "description": "Get an OAuth access token\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html#b2c-auth-token",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>",
9
+ "<%= config.bin %> <%= command.id %> --auth-scope sfcc.orders --auth-scope sfcc.products",
10
+ "<%= config.bin %> <%= command.id %> --json"
11
+ ],
7
12
  "flags": {
13
+ "json": {
14
+ "description": "Output result as JSON",
15
+ "helpGroup": "GLOBAL",
16
+ "name": "json",
17
+ "allowNo": false,
18
+ "type": "boolean"
19
+ },
8
20
  "log-level": {
9
21
  "description": "Set logging verbosity level",
10
22
  "env": "SFCC_LOG_LEVEL",
@@ -31,13 +43,6 @@
31
43
  "allowNo": false,
32
44
  "type": "boolean"
33
45
  },
34
- "json": {
35
- "description": "Output result as JSON",
36
- "helpGroup": "GLOBAL",
37
- "name": "json",
38
- "allowNo": false,
39
- "type": "boolean"
40
- },
41
46
  "jsonl": {
42
47
  "aliases": [
43
48
  "json-logs"
@@ -118,43 +123,116 @@
118
123
  "hasDynamicHelp": false,
119
124
  "multiple": false,
120
125
  "type": "option"
126
+ },
127
+ "client-id": {
128
+ "description": "Client ID for OAuth",
129
+ "env": "SFCC_CLIENT_ID",
130
+ "helpGroup": "AUTH",
131
+ "name": "client-id",
132
+ "hasDynamicHelp": false,
133
+ "multiple": false,
134
+ "type": "option"
135
+ },
136
+ "client-secret": {
137
+ "description": "Client Secret for OAuth",
138
+ "env": "SFCC_CLIENT_SECRET",
139
+ "helpGroup": "AUTH",
140
+ "name": "client-secret",
141
+ "hasDynamicHelp": false,
142
+ "multiple": false,
143
+ "type": "option"
144
+ },
145
+ "auth-scope": {
146
+ "description": "OAuth scopes to request (comma-separated)",
147
+ "env": "SFCC_OAUTH_SCOPES",
148
+ "helpGroup": "AUTH",
149
+ "name": "auth-scope",
150
+ "delimiter": ",",
151
+ "hasDynamicHelp": false,
152
+ "multiple": true,
153
+ "type": "option"
154
+ },
155
+ "short-code": {
156
+ "description": "SCAPI short code",
157
+ "env": "SFCC_SHORTCODE",
158
+ "helpGroup": "AUTH",
159
+ "name": "short-code",
160
+ "hasDynamicHelp": false,
161
+ "multiple": false,
162
+ "type": "option"
163
+ },
164
+ "tenant-id": {
165
+ "aliases": [
166
+ "tenant"
167
+ ],
168
+ "description": "Organization/tenant ID",
169
+ "env": "SFCC_TENANT_ID",
170
+ "helpGroup": "AUTH",
171
+ "name": "tenant-id",
172
+ "hasDynamicHelp": false,
173
+ "multiple": false,
174
+ "type": "option"
175
+ },
176
+ "auth-methods": {
177
+ "description": "Allowed auth methods in priority order (comma-separated)",
178
+ "env": "SFCC_AUTH_METHODS",
179
+ "exclusive": [
180
+ "user-auth"
181
+ ],
182
+ "helpGroup": "AUTH",
183
+ "name": "auth-methods",
184
+ "delimiter": ",",
185
+ "hasDynamicHelp": false,
186
+ "multiple": true,
187
+ "options": [
188
+ "client-credentials",
189
+ "implicit",
190
+ "basic",
191
+ "api-key"
192
+ ],
193
+ "type": "option"
194
+ },
195
+ "user-auth": {
196
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
197
+ "exclusive": [
198
+ "auth-methods"
199
+ ],
200
+ "helpGroup": "AUTH",
201
+ "name": "user-auth",
202
+ "allowNo": false,
203
+ "type": "boolean"
204
+ },
205
+ "account-manager-host": {
206
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
207
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
208
+ "helpGroup": "AUTH",
209
+ "name": "account-manager-host",
210
+ "hasDynamicHelp": false,
211
+ "multiple": false,
212
+ "type": "option"
121
213
  }
122
214
  },
123
215
  "hasDynamicHelp": false,
124
- "hidden": true,
125
216
  "hiddenAliases": [],
126
- "id": "_test",
217
+ "id": "auth:token",
127
218
  "pluginAlias": "@salesforce/b2c-cli",
128
219
  "pluginName": "@salesforce/b2c-cli",
129
220
  "pluginType": "core",
130
221
  "strict": true,
131
- "enableJsonFlag": false,
222
+ "enableJsonFlag": true,
132
223
  "isESM": true,
133
224
  "relativePath": [
134
225
  "dist",
135
226
  "commands",
136
- "_test",
137
- "index.js"
227
+ "auth",
228
+ "token.js"
138
229
  ]
139
230
  },
140
- "cip:describe": {
231
+ "_test": {
141
232
  "aliases": [],
142
- "args": {
143
- "table": {
144
- "description": "Table name to describe",
145
- "name": "table",
146
- "required": true
147
- }
148
- },
149
- "description": "Describe columns for a CIP table\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-describe",
233
+ "args": {},
234
+ "description": "Test logging output",
150
235
  "flags": {
151
- "json": {
152
- "description": "Output result as JSON",
153
- "helpGroup": "GLOBAL",
154
- "name": "json",
155
- "allowNo": false,
156
- "type": "boolean"
157
- },
158
236
  "log-level": {
159
237
  "description": "Set logging verbosity level",
160
238
  "env": "SFCC_LOG_LEVEL",
@@ -181,6 +259,13 @@
181
259
  "allowNo": false,
182
260
  "type": "boolean"
183
261
  },
262
+ "json": {
263
+ "description": "Output result as JSON",
264
+ "helpGroup": "GLOBAL",
265
+ "name": "json",
266
+ "allowNo": false,
267
+ "type": "boolean"
268
+ },
184
269
  "jsonl": {
185
270
  "aliases": [
186
271
  "json-logs"
@@ -261,196 +346,42 @@
261
346
  "hasDynamicHelp": false,
262
347
  "multiple": false,
263
348
  "type": "option"
264
- },
265
- "client-id": {
266
- "description": "Client ID for OAuth",
267
- "env": "SFCC_CLIENT_ID",
268
- "helpGroup": "AUTH",
269
- "name": "client-id",
270
- "hasDynamicHelp": false,
271
- "multiple": false,
272
- "type": "option"
273
- },
274
- "client-secret": {
275
- "description": "Client Secret for OAuth",
276
- "env": "SFCC_CLIENT_SECRET",
277
- "helpGroup": "AUTH",
278
- "name": "client-secret",
279
- "hasDynamicHelp": false,
280
- "multiple": false,
281
- "type": "option"
282
- },
283
- "auth-scope": {
284
- "description": "OAuth scopes to request (comma-separated)",
285
- "env": "SFCC_OAUTH_SCOPES",
286
- "helpGroup": "AUTH",
287
- "name": "auth-scope",
288
- "delimiter": ",",
289
- "hasDynamicHelp": false,
290
- "multiple": true,
291
- "type": "option"
292
- },
293
- "short-code": {
294
- "description": "SCAPI short code",
295
- "env": "SFCC_SHORTCODE",
296
- "helpGroup": "AUTH",
297
- "name": "short-code",
298
- "hasDynamicHelp": false,
299
- "multiple": false,
300
- "type": "option"
301
- },
302
- "tenant-id": {
303
- "aliases": [
304
- "tenant"
305
- ],
306
- "description": "Organization/tenant ID",
307
- "env": "SFCC_TENANT_ID",
308
- "helpGroup": "AUTH",
309
- "name": "tenant-id",
310
- "hasDynamicHelp": false,
311
- "multiple": false,
312
- "type": "option"
313
- },
314
- "auth-methods": {
315
- "description": "Allowed auth methods in priority order (comma-separated)",
316
- "env": "SFCC_AUTH_METHODS",
317
- "exclusive": [
318
- "user-auth"
319
- ],
320
- "helpGroup": "AUTH",
321
- "name": "auth-methods",
322
- "delimiter": ",",
323
- "hasDynamicHelp": false,
324
- "multiple": true,
325
- "options": [
326
- "client-credentials",
327
- "implicit",
328
- "basic",
329
- "api-key"
330
- ],
331
- "type": "option"
332
- },
333
- "user-auth": {
334
- "description": "Use browser-based user authentication (implicit OAuth flow)",
335
- "exclusive": [
336
- "auth-methods"
337
- ],
338
- "helpGroup": "AUTH",
339
- "name": "user-auth",
340
- "allowNo": false,
341
- "type": "boolean"
342
- },
343
- "account-manager-host": {
344
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
345
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
346
- "helpGroup": "AUTH",
347
- "name": "account-manager-host",
348
- "hasDynamicHelp": false,
349
- "multiple": false,
350
- "type": "option"
351
- },
352
- "cip-host": {
353
- "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
354
- "env": "SFCC_CIP_HOST",
355
- "helpGroup": "QUERY",
356
- "name": "cip-host",
357
- "hasDynamicHelp": false,
358
- "multiple": false,
359
- "type": "option"
360
- },
361
- "staging": {
362
- "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
363
- "env": "SFCC_CIP_STAGING",
364
- "helpGroup": "QUERY",
365
- "name": "staging",
366
- "allowNo": false,
367
- "type": "boolean"
368
- },
369
- "from": {
370
- "description": "Inclusive start date (YYYY-MM-DD)",
371
- "helpGroup": "QUERY",
372
- "name": "from",
373
- "default": "2026-02-01",
374
- "hasDynamicHelp": false,
375
- "multiple": false,
376
- "type": "option"
377
- },
378
- "to": {
379
- "description": "Inclusive end date (YYYY-MM-DD)",
380
- "helpGroup": "QUERY",
381
- "name": "to",
382
- "default": "2026-02-24",
383
- "hasDynamicHelp": false,
384
- "multiple": false,
385
- "type": "option"
386
- },
387
- "format": {
388
- "description": "Output format",
389
- "helpGroup": "QUERY",
390
- "name": "format",
391
- "default": "table",
392
- "hasDynamicHelp": false,
393
- "multiple": false,
394
- "options": [
395
- "table",
396
- "json",
397
- "csv"
398
- ],
399
- "type": "option"
400
- },
401
- "fetch-size": {
402
- "description": "Frame fetch size for CIP paging",
403
- "helpGroup": "QUERY",
404
- "name": "fetch-size",
405
- "default": 1000,
406
- "hasDynamicHelp": false,
407
- "multiple": false,
408
- "type": "option"
409
- },
410
- "schema": {
411
- "description": "Metadata schema name",
412
- "helpGroup": "QUERY",
413
- "name": "schema",
414
- "default": "warehouse",
415
- "hasDynamicHelp": false,
416
- "multiple": false,
417
- "type": "option"
418
349
  }
419
350
  },
420
351
  "hasDynamicHelp": false,
352
+ "hidden": true,
421
353
  "hiddenAliases": [],
422
- "id": "cip:describe",
354
+ "id": "_test",
423
355
  "pluginAlias": "@salesforce/b2c-cli",
424
356
  "pluginName": "@salesforce/b2c-cli",
425
357
  "pluginType": "core",
426
358
  "strict": true,
427
- "enableJsonFlag": true,
359
+ "enableJsonFlag": false,
428
360
  "isESM": true,
429
361
  "relativePath": [
430
362
  "dist",
431
363
  "commands",
432
- "cip",
433
- "describe.js"
364
+ "_test",
365
+ "index.js"
434
366
  ]
435
367
  },
436
- "cip:query": {
368
+ "code:activate": {
437
369
  "aliases": [],
438
370
  "args": {
439
- "sql": {
440
- "description": "SQL query text",
441
- "name": "sql",
371
+ "codeVersion": {
372
+ "description": "Code version ID to activate",
373
+ "name": "codeVersion",
442
374
  "required": false
443
375
  }
444
376
  },
445
- "description": "Execute raw SQL against CIP analytics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-query",
377
+ "description": "Activate or reload a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-activate",
378
+ "examples": [
379
+ "<%= config.bin %> <%= command.id %> v1",
380
+ "<%= config.bin %> <%= command.id %> v1 --server my-sandbox.demandware.net",
381
+ "<%= config.bin %> <%= command.id %> --reload",
382
+ "<%= config.bin %> <%= command.id %> v1 --reload"
383
+ ],
446
384
  "flags": {
447
- "json": {
448
- "description": "Output result as JSON",
449
- "helpGroup": "GLOBAL",
450
- "name": "json",
451
- "allowNo": false,
452
- "type": "boolean"
453
- },
454
385
  "log-level": {
455
386
  "description": "Set logging verbosity level",
456
387
  "env": "SFCC_LOG_LEVEL",
@@ -477,6 +408,13 @@
477
408
  "allowNo": false,
478
409
  "type": "boolean"
479
410
  },
411
+ "json": {
412
+ "description": "Output result as JSON",
413
+ "helpGroup": "GLOBAL",
414
+ "name": "json",
415
+ "allowNo": false,
416
+ "type": "boolean"
417
+ },
480
418
  "jsonl": {
481
419
  "aliases": [
482
420
  "json-logs"
@@ -645,218 +583,99 @@
645
583
  "multiple": false,
646
584
  "type": "option"
647
585
  },
648
- "cip-host": {
649
- "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
650
- "env": "SFCC_CIP_HOST",
651
- "helpGroup": "QUERY",
652
- "name": "cip-host",
586
+ "server": {
587
+ "char": "s",
588
+ "description": "B2C instance hostname",
589
+ "env": "SFCC_SERVER",
590
+ "helpGroup": "INSTANCE",
591
+ "name": "server",
653
592
  "hasDynamicHelp": false,
654
593
  "multiple": false,
655
594
  "type": "option"
656
595
  },
657
- "staging": {
658
- "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
659
- "env": "SFCC_CIP_STAGING",
660
- "helpGroup": "QUERY",
661
- "name": "staging",
662
- "allowNo": false,
663
- "type": "boolean"
664
- },
665
- "from": {
666
- "description": "Inclusive start date (YYYY-MM-DD)",
667
- "helpGroup": "QUERY",
668
- "name": "from",
669
- "default": "2026-02-01",
596
+ "webdav-server": {
597
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
598
+ "env": "SFCC_WEBDAV_SERVER",
599
+ "helpGroup": "INSTANCE",
600
+ "name": "webdav-server",
670
601
  "hasDynamicHelp": false,
671
602
  "multiple": false,
672
603
  "type": "option"
673
604
  },
674
- "to": {
675
- "description": "Inclusive end date (YYYY-MM-DD)",
676
- "helpGroup": "QUERY",
677
- "name": "to",
678
- "default": "2026-02-24",
605
+ "code-version": {
606
+ "char": "v",
607
+ "description": "Code version",
608
+ "env": "SFCC_CODE_VERSION",
609
+ "helpGroup": "INSTANCE",
610
+ "name": "code-version",
679
611
  "hasDynamicHelp": false,
680
612
  "multiple": false,
681
613
  "type": "option"
682
614
  },
683
- "format": {
684
- "description": "Output format",
685
- "helpGroup": "QUERY",
686
- "name": "format",
687
- "default": "table",
615
+ "username": {
616
+ "char": "u",
617
+ "description": "Username for Basic Auth (WebDAV)",
618
+ "env": "SFCC_USERNAME",
619
+ "helpGroup": "AUTH",
620
+ "name": "username",
688
621
  "hasDynamicHelp": false,
689
622
  "multiple": false,
690
- "options": [
691
- "table",
692
- "json",
693
- "csv"
694
- ],
695
623
  "type": "option"
696
624
  },
697
- "fetch-size": {
698
- "description": "Frame fetch size for CIP paging",
699
- "helpGroup": "QUERY",
700
- "name": "fetch-size",
701
- "default": 1000,
625
+ "password": {
626
+ "char": "p",
627
+ "description": "Password/access key for Basic Auth (WebDAV)",
628
+ "env": "SFCC_PASSWORD",
629
+ "helpGroup": "AUTH",
630
+ "name": "password",
702
631
  "hasDynamicHelp": false,
703
632
  "multiple": false,
704
633
  "type": "option"
705
634
  },
706
- "file": {
707
- "char": "f",
708
- "description": "Read SQL query from file",
709
- "helpGroup": "QUERY",
710
- "name": "file",
635
+ "certificate": {
636
+ "description": "Path to PKCS12 certificate for two-factor auth",
637
+ "env": "SFCC_CERTIFICATE",
638
+ "helpGroup": "AUTH",
639
+ "name": "certificate",
711
640
  "hasDynamicHelp": false,
712
641
  "multiple": false,
713
642
  "type": "option"
714
- }
715
- },
716
- "hasDynamicHelp": false,
717
- "hiddenAliases": [],
718
- "id": "cip:query",
719
- "pluginAlias": "@salesforce/b2c-cli",
720
- "pluginName": "@salesforce/b2c-cli",
721
- "pluginType": "core",
722
- "strict": true,
723
- "enableJsonFlag": true,
724
- "isESM": true,
725
- "relativePath": [
726
- "dist",
727
- "commands",
728
- "cip",
729
- "query.js"
730
- ]
731
- },
732
- "cip:report": {
733
- "aliases": [],
734
- "args": {},
735
- "description": "Run curated CIP analytics reports\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report",
736
- "examples": [
737
- "<%= config.bin %> cip report --help",
738
- "<%= config.bin %> cip report sales-analytics --site-id Sites-SiteGenesis-Site",
739
- "<%= config.bin %> cip report sales-analytics --site-id Sites-SiteGenesis-Site --sql"
740
- ],
741
- "flags": {
742
- "log-level": {
743
- "description": "Set logging verbosity level",
744
- "env": "SFCC_LOG_LEVEL",
745
- "helpGroup": "GLOBAL",
746
- "name": "log-level",
643
+ },
644
+ "passphrase": {
645
+ "description": "Passphrase for the certificate",
646
+ "env": "SFCC_CERTIFICATE_PASSPHRASE",
647
+ "helpGroup": "AUTH",
648
+ "name": "passphrase",
747
649
  "hasDynamicHelp": false,
748
650
  "multiple": false,
749
- "options": [
750
- "trace",
751
- "debug",
752
- "info",
753
- "warn",
754
- "error",
755
- "silent"
756
- ],
757
651
  "type": "option"
758
652
  },
759
- "debug": {
760
- "char": "D",
761
- "description": "Enable debug logging (shorthand for --log-level debug)",
762
- "env": "SFCC_DEBUG",
763
- "helpGroup": "GLOBAL",
764
- "name": "debug",
653
+ "selfsigned": {
654
+ "description": "Allow self-signed server certificates",
655
+ "env": "SFCC_SELFSIGNED",
656
+ "helpGroup": "AUTH",
657
+ "name": "selfsigned",
765
658
  "allowNo": false,
766
659
  "type": "boolean"
767
660
  },
768
- "json": {
769
- "description": "Output result as JSON",
770
- "helpGroup": "GLOBAL",
771
- "name": "json",
772
- "allowNo": false,
661
+ "verify": {
662
+ "description": "Verify SSL certificates",
663
+ "helpGroup": "AUTH",
664
+ "name": "verify",
665
+ "allowNo": true,
773
666
  "type": "boolean"
774
667
  },
775
- "jsonl": {
776
- "aliases": [
777
- "json-logs"
778
- ],
779
- "description": "Output log messages as JSON lines",
780
- "env": "SFCC_JSON_LOGS",
781
- "helpGroup": "GLOBAL",
782
- "name": "jsonl",
668
+ "reload": {
669
+ "char": "r",
670
+ "description": "Reload the code version (toggle activation to force reload)",
671
+ "name": "reload",
783
672
  "allowNo": false,
784
673
  "type": "boolean"
785
- },
786
- "lang": {
787
- "char": "L",
788
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
789
- "helpGroup": "GLOBAL",
790
- "name": "lang",
791
- "hasDynamicHelp": false,
792
- "multiple": false,
793
- "type": "option"
794
- },
795
- "config": {
796
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
797
- "env": "SFCC_CONFIG",
798
- "helpGroup": "GLOBAL",
799
- "name": "config",
800
- "hasDynamicHelp": false,
801
- "multiple": false,
802
- "type": "option"
803
- },
804
- "instance": {
805
- "char": "i",
806
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
807
- "env": "SFCC_INSTANCE",
808
- "helpGroup": "GLOBAL",
809
- "name": "instance",
810
- "hasDynamicHelp": false,
811
- "multiple": false,
812
- "type": "option"
813
- },
814
- "project-directory": {
815
- "aliases": [
816
- "working-directory"
817
- ],
818
- "description": "Project directory",
819
- "env": "SFCC_PROJECT_DIRECTORY",
820
- "helpGroup": "GLOBAL",
821
- "name": "project-directory",
822
- "hasDynamicHelp": false,
823
- "multiple": false,
824
- "type": "option"
825
- },
826
- "extra-query": {
827
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
828
- "env": "SFCC_EXTRA_QUERY",
829
- "helpGroup": "GLOBAL",
830
- "hidden": true,
831
- "name": "extra-query",
832
- "hasDynamicHelp": false,
833
- "multiple": false,
834
- "type": "option"
835
- },
836
- "extra-body": {
837
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
838
- "env": "SFCC_EXTRA_BODY",
839
- "helpGroup": "GLOBAL",
840
- "hidden": true,
841
- "name": "extra-body",
842
- "hasDynamicHelp": false,
843
- "multiple": false,
844
- "type": "option"
845
- },
846
- "extra-headers": {
847
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
848
- "env": "SFCC_EXTRA_HEADERS",
849
- "helpGroup": "GLOBAL",
850
- "hidden": true,
851
- "name": "extra-headers",
852
- "hasDynamicHelp": false,
853
- "multiple": false,
854
- "type": "option"
855
674
  }
856
675
  },
857
676
  "hasDynamicHelp": false,
858
677
  "hiddenAliases": [],
859
- "id": "cip:report",
678
+ "id": "code:activate",
860
679
  "pluginAlias": "@salesforce/b2c-cli",
861
680
  "pluginName": "@salesforce/b2c-cli",
862
681
  "pluginType": "core",
@@ -866,22 +685,26 @@
866
685
  "relativePath": [
867
686
  "dist",
868
687
  "commands",
869
- "cip",
870
- "report.js"
688
+ "code",
689
+ "activate.js"
871
690
  ]
872
691
  },
873
- "cip:tables": {
692
+ "code:delete": {
874
693
  "aliases": [],
875
- "args": {},
876
- "description": "List tables from CIP metadata catalog\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-tables",
694
+ "args": {
695
+ "codeVersion": {
696
+ "description": "Code version ID to delete",
697
+ "name": "codeVersion",
698
+ "required": true
699
+ }
700
+ },
701
+ "description": "Delete a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-delete",
702
+ "examples": [
703
+ "<%= config.bin %> <%= command.id %> old-version",
704
+ "<%= config.bin %> <%= command.id %> old-version --force",
705
+ "<%= config.bin %> <%= command.id %> old-version --server my-sandbox.demandware.net"
706
+ ],
877
707
  "flags": {
878
- "json": {
879
- "description": "Output result as JSON",
880
- "helpGroup": "GLOBAL",
881
- "name": "json",
882
- "allowNo": false,
883
- "type": "boolean"
884
- },
885
708
  "log-level": {
886
709
  "description": "Set logging verbosity level",
887
710
  "env": "SFCC_LOG_LEVEL",
@@ -908,6 +731,13 @@
908
731
  "allowNo": false,
909
732
  "type": "boolean"
910
733
  },
734
+ "json": {
735
+ "description": "Output result as JSON",
736
+ "helpGroup": "GLOBAL",
737
+ "name": "json",
738
+ "allowNo": false,
739
+ "type": "boolean"
740
+ },
911
741
  "jsonl": {
912
742
  "aliases": [
913
743
  "json-logs"
@@ -1076,122 +906,139 @@
1076
906
  "multiple": false,
1077
907
  "type": "option"
1078
908
  },
1079
- "cip-host": {
1080
- "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
1081
- "env": "SFCC_CIP_HOST",
1082
- "helpGroup": "QUERY",
1083
- "name": "cip-host",
909
+ "server": {
910
+ "char": "s",
911
+ "description": "B2C instance hostname",
912
+ "env": "SFCC_SERVER",
913
+ "helpGroup": "INSTANCE",
914
+ "name": "server",
1084
915
  "hasDynamicHelp": false,
1085
916
  "multiple": false,
1086
917
  "type": "option"
1087
918
  },
1088
- "staging": {
1089
- "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
1090
- "env": "SFCC_CIP_STAGING",
1091
- "helpGroup": "QUERY",
1092
- "name": "staging",
1093
- "allowNo": false,
1094
- "type": "boolean"
1095
- },
1096
- "from": {
1097
- "description": "Inclusive start date (YYYY-MM-DD)",
1098
- "helpGroup": "QUERY",
1099
- "name": "from",
1100
- "default": "2026-02-01",
919
+ "webdav-server": {
920
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
921
+ "env": "SFCC_WEBDAV_SERVER",
922
+ "helpGroup": "INSTANCE",
923
+ "name": "webdav-server",
1101
924
  "hasDynamicHelp": false,
1102
925
  "multiple": false,
1103
926
  "type": "option"
1104
927
  },
1105
- "to": {
1106
- "description": "Inclusive end date (YYYY-MM-DD)",
1107
- "helpGroup": "QUERY",
1108
- "name": "to",
1109
- "default": "2026-02-24",
928
+ "code-version": {
929
+ "char": "v",
930
+ "description": "Code version",
931
+ "env": "SFCC_CODE_VERSION",
932
+ "helpGroup": "INSTANCE",
933
+ "name": "code-version",
1110
934
  "hasDynamicHelp": false,
1111
935
  "multiple": false,
1112
936
  "type": "option"
1113
937
  },
1114
- "format": {
1115
- "description": "Output format",
1116
- "helpGroup": "QUERY",
1117
- "name": "format",
1118
- "default": "table",
938
+ "username": {
939
+ "char": "u",
940
+ "description": "Username for Basic Auth (WebDAV)",
941
+ "env": "SFCC_USERNAME",
942
+ "helpGroup": "AUTH",
943
+ "name": "username",
1119
944
  "hasDynamicHelp": false,
1120
945
  "multiple": false,
1121
- "options": [
1122
- "table",
1123
- "json",
1124
- "csv"
1125
- ],
1126
946
  "type": "option"
1127
947
  },
1128
- "fetch-size": {
1129
- "description": "Frame fetch size for CIP paging",
1130
- "helpGroup": "QUERY",
1131
- "name": "fetch-size",
1132
- "default": 1000,
948
+ "password": {
949
+ "char": "p",
950
+ "description": "Password/access key for Basic Auth (WebDAV)",
951
+ "env": "SFCC_PASSWORD",
952
+ "helpGroup": "AUTH",
953
+ "name": "password",
1133
954
  "hasDynamicHelp": false,
1134
955
  "multiple": false,
1135
956
  "type": "option"
1136
957
  },
1137
- "all": {
1138
- "description": "Include all table types (default only TABLE)",
1139
- "helpGroup": "QUERY",
1140
- "name": "all",
1141
- "allowNo": false,
1142
- "type": "boolean"
1143
- },
1144
- "pattern": {
1145
- "description": "Table name pattern (SQL LIKE)",
1146
- "helpGroup": "QUERY",
1147
- "name": "pattern",
958
+ "certificate": {
959
+ "description": "Path to PKCS12 certificate for two-factor auth",
960
+ "env": "SFCC_CERTIFICATE",
961
+ "helpGroup": "AUTH",
962
+ "name": "certificate",
1148
963
  "hasDynamicHelp": false,
1149
964
  "multiple": false,
1150
965
  "type": "option"
1151
966
  },
1152
- "schema": {
1153
- "description": "Metadata schema name",
1154
- "helpGroup": "QUERY",
1155
- "name": "schema",
1156
- "default": "warehouse",
967
+ "passphrase": {
968
+ "description": "Passphrase for the certificate",
969
+ "env": "SFCC_CERTIFICATE_PASSPHRASE",
970
+ "helpGroup": "AUTH",
971
+ "name": "passphrase",
1157
972
  "hasDynamicHelp": false,
1158
973
  "multiple": false,
1159
974
  "type": "option"
975
+ },
976
+ "selfsigned": {
977
+ "description": "Allow self-signed server certificates",
978
+ "env": "SFCC_SELFSIGNED",
979
+ "helpGroup": "AUTH",
980
+ "name": "selfsigned",
981
+ "allowNo": false,
982
+ "type": "boolean"
983
+ },
984
+ "verify": {
985
+ "description": "Verify SSL certificates",
986
+ "helpGroup": "AUTH",
987
+ "name": "verify",
988
+ "allowNo": true,
989
+ "type": "boolean"
990
+ },
991
+ "force": {
992
+ "char": "f",
993
+ "description": "Skip confirmation prompt",
994
+ "name": "force",
995
+ "allowNo": false,
996
+ "type": "boolean"
1160
997
  }
1161
998
  },
1162
999
  "hasDynamicHelp": false,
1163
1000
  "hiddenAliases": [],
1164
- "id": "cip:tables",
1001
+ "id": "code:delete",
1165
1002
  "pluginAlias": "@salesforce/b2c-cli",
1166
1003
  "pluginName": "@salesforce/b2c-cli",
1167
1004
  "pluginType": "core",
1168
1005
  "strict": true,
1169
- "enableJsonFlag": true,
1006
+ "enableJsonFlag": false,
1170
1007
  "isESM": true,
1171
1008
  "relativePath": [
1172
1009
  "dist",
1173
1010
  "commands",
1174
- "cip",
1175
- "tables.js"
1011
+ "code",
1012
+ "delete.js"
1176
1013
  ]
1177
1014
  },
1178
- "code:activate": {
1015
+ "code:deploy": {
1179
1016
  "aliases": [],
1180
1017
  "args": {
1181
- "codeVersion": {
1182
- "description": "Code version ID to activate",
1183
- "name": "codeVersion",
1184
- "required": false
1018
+ "cartridgePath": {
1019
+ "default": ".",
1020
+ "description": "Path to cartridges directory",
1021
+ "name": "cartridgePath"
1185
1022
  }
1186
1023
  },
1187
- "description": "Activate or reload a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-activate",
1024
+ "description": "Deploy cartridges to a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-deploy",
1188
1025
  "examples": [
1189
- "<%= config.bin %> <%= command.id %> v1",
1190
- "<%= config.bin %> <%= command.id %> v1 --server my-sandbox.demandware.net",
1026
+ "<%= config.bin %> <%= command.id %>",
1027
+ "<%= config.bin %> <%= command.id %> ./my-cartridges",
1028
+ "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net --code-version v1",
1191
1029
  "<%= config.bin %> <%= command.id %> --reload",
1192
- "<%= config.bin %> <%= command.id %> v1 --reload"
1030
+ "<%= config.bin %> <%= command.id %> --delete --reload",
1031
+ "<%= config.bin %> <%= command.id %> -c app_storefront_base -c plugin_applepay",
1032
+ "<%= config.bin %> <%= command.id %> -x test_cartridge"
1193
1033
  ],
1194
1034
  "flags": {
1035
+ "json": {
1036
+ "description": "Output result as JSON",
1037
+ "helpGroup": "GLOBAL",
1038
+ "name": "json",
1039
+ "allowNo": false,
1040
+ "type": "boolean"
1041
+ },
1195
1042
  "log-level": {
1196
1043
  "description": "Set logging verbosity level",
1197
1044
  "env": "SFCC_LOG_LEVEL",
@@ -1218,13 +1065,6 @@
1218
1065
  "allowNo": false,
1219
1066
  "type": "boolean"
1220
1067
  },
1221
- "json": {
1222
- "description": "Output result as JSON",
1223
- "helpGroup": "GLOBAL",
1224
- "name": "json",
1225
- "allowNo": false,
1226
- "type": "boolean"
1227
- },
1228
1068
  "jsonl": {
1229
1069
  "aliases": [
1230
1070
  "json-logs"
@@ -1475,46 +1315,99 @@
1475
1315
  "allowNo": true,
1476
1316
  "type": "boolean"
1477
1317
  },
1318
+ "cartridge": {
1319
+ "char": "c",
1320
+ "description": "Include specific cartridge(s) (comma-separated)",
1321
+ "name": "cartridge",
1322
+ "delimiter": ",",
1323
+ "hasDynamicHelp": false,
1324
+ "multiple": true,
1325
+ "type": "option"
1326
+ },
1327
+ "exclude-cartridge": {
1328
+ "char": "x",
1329
+ "description": "Exclude specific cartridge(s) (comma-separated)",
1330
+ "name": "exclude-cartridge",
1331
+ "delimiter": ",",
1332
+ "hasDynamicHelp": false,
1333
+ "multiple": true,
1334
+ "type": "option"
1335
+ },
1478
1336
  "reload": {
1479
1337
  "char": "r",
1480
- "description": "Reload the code version (toggle activation to force reload)",
1338
+ "description": "Reload (re-activate) code version after deploy",
1481
1339
  "name": "reload",
1482
1340
  "allowNo": false,
1483
1341
  "type": "boolean"
1342
+ },
1343
+ "delete": {
1344
+ "description": "Delete existing cartridges before upload",
1345
+ "name": "delete",
1346
+ "allowNo": false,
1347
+ "type": "boolean"
1484
1348
  }
1485
1349
  },
1486
1350
  "hasDynamicHelp": false,
1487
1351
  "hiddenAliases": [],
1488
- "id": "code:activate",
1352
+ "id": "code:deploy",
1489
1353
  "pluginAlias": "@salesforce/b2c-cli",
1490
1354
  "pluginName": "@salesforce/b2c-cli",
1491
1355
  "pluginType": "core",
1492
1356
  "strict": true,
1493
- "enableJsonFlag": false,
1357
+ "enableJsonFlag": true,
1358
+ "baseArgs": {
1359
+ "cartridgePath": {
1360
+ "description": "Path to cartridges directory",
1361
+ "default": ".",
1362
+ "input": [],
1363
+ "type": "option"
1364
+ }
1365
+ },
1366
+ "cartridgeFlags": {
1367
+ "cartridge": {
1368
+ "char": "c",
1369
+ "description": "Include specific cartridge(s) (comma-separated)",
1370
+ "multiple": true,
1371
+ "multipleNonGreedy": true,
1372
+ "delimiter": ",",
1373
+ "input": [],
1374
+ "type": "option"
1375
+ },
1376
+ "exclude-cartridge": {
1377
+ "char": "x",
1378
+ "description": "Exclude specific cartridge(s) (comma-separated)",
1379
+ "multiple": true,
1380
+ "multipleNonGreedy": true,
1381
+ "delimiter": ",",
1382
+ "input": [],
1383
+ "type": "option"
1384
+ }
1385
+ },
1494
1386
  "isESM": true,
1495
1387
  "relativePath": [
1496
1388
  "dist",
1497
1389
  "commands",
1498
1390
  "code",
1499
- "activate.js"
1391
+ "deploy.js"
1500
1392
  ]
1501
1393
  },
1502
- "code:delete": {
1394
+ "code:list": {
1503
1395
  "aliases": [],
1504
- "args": {
1505
- "codeVersion": {
1506
- "description": "Code version ID to delete",
1507
- "name": "codeVersion",
1508
- "required": true
1509
- }
1510
- },
1511
- "description": "Delete a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-delete",
1396
+ "args": {},
1397
+ "description": "List code versions on a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-list",
1512
1398
  "examples": [
1513
- "<%= config.bin %> <%= command.id %> old-version",
1514
- "<%= config.bin %> <%= command.id %> old-version --force",
1515
- "<%= config.bin %> <%= command.id %> old-version --server my-sandbox.demandware.net"
1399
+ "<%= config.bin %> <%= command.id %>",
1400
+ "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
1401
+ "<%= config.bin %> <%= command.id %> --json"
1516
1402
  ],
1517
1403
  "flags": {
1404
+ "json": {
1405
+ "description": "Output result as JSON",
1406
+ "helpGroup": "GLOBAL",
1407
+ "name": "json",
1408
+ "allowNo": false,
1409
+ "type": "boolean"
1410
+ },
1518
1411
  "log-level": {
1519
1412
  "description": "Set logging verbosity level",
1520
1413
  "env": "SFCC_LOG_LEVEL",
@@ -1541,13 +1434,6 @@
1541
1434
  "allowNo": false,
1542
1435
  "type": "boolean"
1543
1436
  },
1544
- "json": {
1545
- "description": "Output result as JSON",
1546
- "helpGroup": "GLOBAL",
1547
- "name": "json",
1548
- "allowNo": false,
1549
- "type": "boolean"
1550
- },
1551
1437
  "jsonl": {
1552
1438
  "aliases": [
1553
1439
  "json-logs"
@@ -1797,32 +1683,25 @@
1797
1683
  "name": "verify",
1798
1684
  "allowNo": true,
1799
1685
  "type": "boolean"
1800
- },
1801
- "force": {
1802
- "char": "f",
1803
- "description": "Skip confirmation prompt",
1804
- "name": "force",
1805
- "allowNo": false,
1806
- "type": "boolean"
1807
1686
  }
1808
1687
  },
1809
1688
  "hasDynamicHelp": false,
1810
1689
  "hiddenAliases": [],
1811
- "id": "code:delete",
1690
+ "id": "code:list",
1812
1691
  "pluginAlias": "@salesforce/b2c-cli",
1813
1692
  "pluginName": "@salesforce/b2c-cli",
1814
1693
  "pluginType": "core",
1815
1694
  "strict": true,
1816
- "enableJsonFlag": false,
1695
+ "enableJsonFlag": true,
1817
1696
  "isESM": true,
1818
1697
  "relativePath": [
1819
1698
  "dist",
1820
1699
  "commands",
1821
1700
  "code",
1822
- "delete.js"
1701
+ "list.js"
1823
1702
  ]
1824
1703
  },
1825
- "code:deploy": {
1704
+ "code:watch": {
1826
1705
  "aliases": [],
1827
1706
  "args": {
1828
1707
  "cartridgePath": {
@@ -1831,24 +1710,15 @@
1831
1710
  "name": "cartridgePath"
1832
1711
  }
1833
1712
  },
1834
- "description": "Deploy cartridges to a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-deploy",
1713
+ "description": "Watch cartridges and upload changes to an instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-watch",
1835
1714
  "examples": [
1836
1715
  "<%= config.bin %> <%= command.id %>",
1837
1716
  "<%= config.bin %> <%= command.id %> ./my-cartridges",
1838
1717
  "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net --code-version v1",
1839
- "<%= config.bin %> <%= command.id %> --reload",
1840
- "<%= config.bin %> <%= command.id %> --delete --reload",
1841
- "<%= config.bin %> <%= command.id %> -c app_storefront_base -c plugin_applepay",
1718
+ "<%= config.bin %> <%= command.id %> -c app_storefront_base",
1842
1719
  "<%= config.bin %> <%= command.id %> -x test_cartridge"
1843
1720
  ],
1844
1721
  "flags": {
1845
- "json": {
1846
- "description": "Output result as JSON",
1847
- "helpGroup": "GLOBAL",
1848
- "name": "json",
1849
- "allowNo": false,
1850
- "type": "boolean"
1851
- },
1852
1722
  "log-level": {
1853
1723
  "description": "Set logging verbosity level",
1854
1724
  "env": "SFCC_LOG_LEVEL",
@@ -1875,6 +1745,13 @@
1875
1745
  "allowNo": false,
1876
1746
  "type": "boolean"
1877
1747
  },
1748
+ "json": {
1749
+ "description": "Output result as JSON",
1750
+ "helpGroup": "GLOBAL",
1751
+ "name": "json",
1752
+ "allowNo": false,
1753
+ "type": "boolean"
1754
+ },
1878
1755
  "jsonl": {
1879
1756
  "aliases": [
1880
1757
  "json-logs"
@@ -2142,29 +2019,16 @@
2142
2019
  "hasDynamicHelp": false,
2143
2020
  "multiple": true,
2144
2021
  "type": "option"
2145
- },
2146
- "reload": {
2147
- "char": "r",
2148
- "description": "Reload (re-activate) code version after deploy",
2149
- "name": "reload",
2150
- "allowNo": false,
2151
- "type": "boolean"
2152
- },
2153
- "delete": {
2154
- "description": "Delete existing cartridges before upload",
2155
- "name": "delete",
2156
- "allowNo": false,
2157
- "type": "boolean"
2158
2022
  }
2159
2023
  },
2160
2024
  "hasDynamicHelp": false,
2161
2025
  "hiddenAliases": [],
2162
- "id": "code:deploy",
2026
+ "id": "code:watch",
2163
2027
  "pluginAlias": "@salesforce/b2c-cli",
2164
2028
  "pluginName": "@salesforce/b2c-cli",
2165
2029
  "pluginType": "core",
2166
2030
  "strict": true,
2167
- "enableJsonFlag": true,
2031
+ "enableJsonFlag": false,
2168
2032
  "baseArgs": {
2169
2033
  "cartridgePath": {
2170
2034
  "description": "Path to cartridges directory",
@@ -2198,18 +2062,19 @@
2198
2062
  "dist",
2199
2063
  "commands",
2200
2064
  "code",
2201
- "deploy.js"
2065
+ "watch.js"
2202
2066
  ]
2203
- },
2204
- "code:list": {
2205
- "aliases": [],
2206
- "args": {},
2207
- "description": "List code versions on a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-list",
2208
- "examples": [
2209
- "<%= config.bin %> <%= command.id %>",
2210
- "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
2211
- "<%= config.bin %> <%= command.id %> --json"
2212
- ],
2067
+ },
2068
+ "cip:describe": {
2069
+ "aliases": [],
2070
+ "args": {
2071
+ "table": {
2072
+ "description": "Table name to describe",
2073
+ "name": "table",
2074
+ "required": true
2075
+ }
2076
+ },
2077
+ "description": "Describe columns for a CIP table\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-describe",
2213
2078
  "flags": {
2214
2079
  "json": {
2215
2080
  "description": "Output result as JSON",
@@ -2412,92 +2277,77 @@
2412
2277
  "multiple": false,
2413
2278
  "type": "option"
2414
2279
  },
2415
- "server": {
2416
- "char": "s",
2417
- "description": "B2C instance hostname",
2418
- "env": "SFCC_SERVER",
2419
- "helpGroup": "INSTANCE",
2420
- "name": "server",
2280
+ "cip-host": {
2281
+ "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
2282
+ "env": "SFCC_CIP_HOST",
2283
+ "helpGroup": "QUERY",
2284
+ "name": "cip-host",
2421
2285
  "hasDynamicHelp": false,
2422
2286
  "multiple": false,
2423
2287
  "type": "option"
2424
2288
  },
2425
- "webdav-server": {
2426
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
2427
- "env": "SFCC_WEBDAV_SERVER",
2428
- "helpGroup": "INSTANCE",
2429
- "name": "webdav-server",
2430
- "hasDynamicHelp": false,
2431
- "multiple": false,
2432
- "type": "option"
2289
+ "staging": {
2290
+ "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
2291
+ "env": "SFCC_CIP_STAGING",
2292
+ "helpGroup": "QUERY",
2293
+ "name": "staging",
2294
+ "allowNo": false,
2295
+ "type": "boolean"
2433
2296
  },
2434
- "code-version": {
2435
- "char": "v",
2436
- "description": "Code version",
2437
- "env": "SFCC_CODE_VERSION",
2438
- "helpGroup": "INSTANCE",
2439
- "name": "code-version",
2297
+ "from": {
2298
+ "description": "Inclusive start date (YYYY-MM-DD)",
2299
+ "helpGroup": "QUERY",
2300
+ "name": "from",
2301
+ "default": "2026-02-01",
2440
2302
  "hasDynamicHelp": false,
2441
2303
  "multiple": false,
2442
2304
  "type": "option"
2443
2305
  },
2444
- "username": {
2445
- "char": "u",
2446
- "description": "Username for Basic Auth (WebDAV)",
2447
- "env": "SFCC_USERNAME",
2448
- "helpGroup": "AUTH",
2449
- "name": "username",
2306
+ "to": {
2307
+ "description": "Inclusive end date (YYYY-MM-DD)",
2308
+ "helpGroup": "QUERY",
2309
+ "name": "to",
2310
+ "default": "2026-02-24",
2450
2311
  "hasDynamicHelp": false,
2451
2312
  "multiple": false,
2452
2313
  "type": "option"
2453
2314
  },
2454
- "password": {
2455
- "char": "p",
2456
- "description": "Password/access key for Basic Auth (WebDAV)",
2457
- "env": "SFCC_PASSWORD",
2458
- "helpGroup": "AUTH",
2459
- "name": "password",
2315
+ "format": {
2316
+ "description": "Output format",
2317
+ "helpGroup": "QUERY",
2318
+ "name": "format",
2319
+ "default": "table",
2460
2320
  "hasDynamicHelp": false,
2461
2321
  "multiple": false,
2322
+ "options": [
2323
+ "table",
2324
+ "json",
2325
+ "csv"
2326
+ ],
2462
2327
  "type": "option"
2463
2328
  },
2464
- "certificate": {
2465
- "description": "Path to PKCS12 certificate for two-factor auth",
2466
- "env": "SFCC_CERTIFICATE",
2467
- "helpGroup": "AUTH",
2468
- "name": "certificate",
2329
+ "fetch-size": {
2330
+ "description": "Frame fetch size for CIP paging",
2331
+ "helpGroup": "QUERY",
2332
+ "name": "fetch-size",
2333
+ "default": 1000,
2469
2334
  "hasDynamicHelp": false,
2470
2335
  "multiple": false,
2471
2336
  "type": "option"
2472
2337
  },
2473
- "passphrase": {
2474
- "description": "Passphrase for the certificate",
2475
- "env": "SFCC_CERTIFICATE_PASSPHRASE",
2476
- "helpGroup": "AUTH",
2477
- "name": "passphrase",
2338
+ "schema": {
2339
+ "description": "Metadata schema name",
2340
+ "helpGroup": "QUERY",
2341
+ "name": "schema",
2342
+ "default": "warehouse",
2478
2343
  "hasDynamicHelp": false,
2479
2344
  "multiple": false,
2480
2345
  "type": "option"
2481
- },
2482
- "selfsigned": {
2483
- "description": "Allow self-signed server certificates",
2484
- "env": "SFCC_SELFSIGNED",
2485
- "helpGroup": "AUTH",
2486
- "name": "selfsigned",
2487
- "allowNo": false,
2488
- "type": "boolean"
2489
- },
2490
- "verify": {
2491
- "description": "Verify SSL certificates",
2492
- "helpGroup": "AUTH",
2493
- "name": "verify",
2494
- "allowNo": true,
2495
- "type": "boolean"
2496
2346
  }
2497
2347
  },
2498
2348
  "hasDynamicHelp": false,
2499
2349
  "hiddenAliases": [],
2500
- "id": "code:list",
2350
+ "id": "cip:describe",
2501
2351
  "pluginAlias": "@salesforce/b2c-cli",
2502
2352
  "pluginName": "@salesforce/b2c-cli",
2503
2353
  "pluginType": "core",
@@ -2507,28 +2357,28 @@
2507
2357
  "relativePath": [
2508
2358
  "dist",
2509
2359
  "commands",
2510
- "code",
2511
- "list.js"
2360
+ "cip",
2361
+ "describe.js"
2512
2362
  ]
2513
2363
  },
2514
- "code:watch": {
2364
+ "cip:query": {
2515
2365
  "aliases": [],
2516
2366
  "args": {
2517
- "cartridgePath": {
2518
- "default": ".",
2519
- "description": "Path to cartridges directory",
2520
- "name": "cartridgePath"
2367
+ "sql": {
2368
+ "description": "SQL query text",
2369
+ "name": "sql",
2370
+ "required": false
2521
2371
  }
2522
2372
  },
2523
- "description": "Watch cartridges and upload changes to an instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-watch",
2524
- "examples": [
2525
- "<%= config.bin %> <%= command.id %>",
2526
- "<%= config.bin %> <%= command.id %> ./my-cartridges",
2527
- "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net --code-version v1",
2528
- "<%= config.bin %> <%= command.id %> -c app_storefront_base",
2529
- "<%= config.bin %> <%= command.id %> -x test_cartridge"
2530
- ],
2373
+ "description": "Execute raw SQL against CIP analytics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-query",
2531
2374
  "flags": {
2375
+ "json": {
2376
+ "description": "Output result as JSON",
2377
+ "helpGroup": "GLOBAL",
2378
+ "name": "json",
2379
+ "allowNo": false,
2380
+ "type": "boolean"
2381
+ },
2532
2382
  "log-level": {
2533
2383
  "description": "Set logging verbosity level",
2534
2384
  "env": "SFCC_LOG_LEVEL",
@@ -2555,13 +2405,6 @@
2555
2405
  "allowNo": false,
2556
2406
  "type": "boolean"
2557
2407
  },
2558
- "json": {
2559
- "description": "Output result as JSON",
2560
- "helpGroup": "GLOBAL",
2561
- "name": "json",
2562
- "allowNo": false,
2563
- "type": "boolean"
2564
- },
2565
2408
  "jsonl": {
2566
2409
  "aliases": [
2567
2410
  "json-logs"
@@ -2730,160 +2573,235 @@
2730
2573
  "multiple": false,
2731
2574
  "type": "option"
2732
2575
  },
2733
- "server": {
2734
- "char": "s",
2735
- "description": "B2C instance hostname",
2736
- "env": "SFCC_SERVER",
2737
- "helpGroup": "INSTANCE",
2738
- "name": "server",
2576
+ "cip-host": {
2577
+ "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
2578
+ "env": "SFCC_CIP_HOST",
2579
+ "helpGroup": "QUERY",
2580
+ "name": "cip-host",
2739
2581
  "hasDynamicHelp": false,
2740
2582
  "multiple": false,
2741
2583
  "type": "option"
2742
2584
  },
2743
- "webdav-server": {
2744
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
2745
- "env": "SFCC_WEBDAV_SERVER",
2746
- "helpGroup": "INSTANCE",
2747
- "name": "webdav-server",
2585
+ "staging": {
2586
+ "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
2587
+ "env": "SFCC_CIP_STAGING",
2588
+ "helpGroup": "QUERY",
2589
+ "name": "staging",
2590
+ "allowNo": false,
2591
+ "type": "boolean"
2592
+ },
2593
+ "from": {
2594
+ "description": "Inclusive start date (YYYY-MM-DD)",
2595
+ "helpGroup": "QUERY",
2596
+ "name": "from",
2597
+ "default": "2026-02-01",
2748
2598
  "hasDynamicHelp": false,
2749
2599
  "multiple": false,
2750
2600
  "type": "option"
2751
2601
  },
2752
- "code-version": {
2753
- "char": "v",
2754
- "description": "Code version",
2755
- "env": "SFCC_CODE_VERSION",
2756
- "helpGroup": "INSTANCE",
2757
- "name": "code-version",
2602
+ "to": {
2603
+ "description": "Inclusive end date (YYYY-MM-DD)",
2604
+ "helpGroup": "QUERY",
2605
+ "name": "to",
2606
+ "default": "2026-02-24",
2758
2607
  "hasDynamicHelp": false,
2759
2608
  "multiple": false,
2760
2609
  "type": "option"
2761
2610
  },
2762
- "username": {
2763
- "char": "u",
2764
- "description": "Username for Basic Auth (WebDAV)",
2765
- "env": "SFCC_USERNAME",
2766
- "helpGroup": "AUTH",
2767
- "name": "username",
2611
+ "format": {
2612
+ "description": "Output format",
2613
+ "helpGroup": "QUERY",
2614
+ "name": "format",
2615
+ "default": "table",
2768
2616
  "hasDynamicHelp": false,
2769
2617
  "multiple": false,
2618
+ "options": [
2619
+ "table",
2620
+ "json",
2621
+ "csv"
2622
+ ],
2770
2623
  "type": "option"
2771
2624
  },
2772
- "password": {
2773
- "char": "p",
2774
- "description": "Password/access key for Basic Auth (WebDAV)",
2775
- "env": "SFCC_PASSWORD",
2776
- "helpGroup": "AUTH",
2777
- "name": "password",
2625
+ "fetch-size": {
2626
+ "description": "Frame fetch size for CIP paging",
2627
+ "helpGroup": "QUERY",
2628
+ "name": "fetch-size",
2629
+ "default": 1000,
2778
2630
  "hasDynamicHelp": false,
2779
2631
  "multiple": false,
2780
2632
  "type": "option"
2781
2633
  },
2782
- "certificate": {
2783
- "description": "Path to PKCS12 certificate for two-factor auth",
2784
- "env": "SFCC_CERTIFICATE",
2785
- "helpGroup": "AUTH",
2786
- "name": "certificate",
2634
+ "file": {
2635
+ "char": "f",
2636
+ "description": "Read SQL query from file",
2637
+ "helpGroup": "QUERY",
2638
+ "name": "file",
2787
2639
  "hasDynamicHelp": false,
2788
2640
  "multiple": false,
2789
2641
  "type": "option"
2790
- },
2791
- "passphrase": {
2792
- "description": "Passphrase for the certificate",
2793
- "env": "SFCC_CERTIFICATE_PASSPHRASE",
2794
- "helpGroup": "AUTH",
2795
- "name": "passphrase",
2642
+ }
2643
+ },
2644
+ "hasDynamicHelp": false,
2645
+ "hiddenAliases": [],
2646
+ "id": "cip:query",
2647
+ "pluginAlias": "@salesforce/b2c-cli",
2648
+ "pluginName": "@salesforce/b2c-cli",
2649
+ "pluginType": "core",
2650
+ "strict": true,
2651
+ "enableJsonFlag": true,
2652
+ "isESM": true,
2653
+ "relativePath": [
2654
+ "dist",
2655
+ "commands",
2656
+ "cip",
2657
+ "query.js"
2658
+ ]
2659
+ },
2660
+ "cip:report": {
2661
+ "aliases": [],
2662
+ "args": {},
2663
+ "description": "Run curated CIP analytics reports\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report",
2664
+ "examples": [
2665
+ "<%= config.bin %> cip report --help",
2666
+ "<%= config.bin %> cip report sales-analytics --site-id Sites-SiteGenesis-Site",
2667
+ "<%= config.bin %> cip report sales-analytics --site-id Sites-SiteGenesis-Site --sql"
2668
+ ],
2669
+ "flags": {
2670
+ "log-level": {
2671
+ "description": "Set logging verbosity level",
2672
+ "env": "SFCC_LOG_LEVEL",
2673
+ "helpGroup": "GLOBAL",
2674
+ "name": "log-level",
2796
2675
  "hasDynamicHelp": false,
2797
2676
  "multiple": false,
2677
+ "options": [
2678
+ "trace",
2679
+ "debug",
2680
+ "info",
2681
+ "warn",
2682
+ "error",
2683
+ "silent"
2684
+ ],
2798
2685
  "type": "option"
2799
2686
  },
2800
- "selfsigned": {
2801
- "description": "Allow self-signed server certificates",
2802
- "env": "SFCC_SELFSIGNED",
2803
- "helpGroup": "AUTH",
2804
- "name": "selfsigned",
2687
+ "debug": {
2688
+ "char": "D",
2689
+ "description": "Enable debug logging (shorthand for --log-level debug)",
2690
+ "env": "SFCC_DEBUG",
2691
+ "helpGroup": "GLOBAL",
2692
+ "name": "debug",
2805
2693
  "allowNo": false,
2806
2694
  "type": "boolean"
2807
2695
  },
2808
- "verify": {
2809
- "description": "Verify SSL certificates",
2810
- "helpGroup": "AUTH",
2811
- "name": "verify",
2812
- "allowNo": true,
2696
+ "json": {
2697
+ "description": "Output result as JSON",
2698
+ "helpGroup": "GLOBAL",
2699
+ "name": "json",
2700
+ "allowNo": false,
2813
2701
  "type": "boolean"
2814
2702
  },
2815
- "cartridge": {
2816
- "char": "c",
2817
- "description": "Include specific cartridge(s) (comma-separated)",
2818
- "name": "cartridge",
2819
- "delimiter": ",",
2703
+ "jsonl": {
2704
+ "aliases": [
2705
+ "json-logs"
2706
+ ],
2707
+ "description": "Output log messages as JSON lines",
2708
+ "env": "SFCC_JSON_LOGS",
2709
+ "helpGroup": "GLOBAL",
2710
+ "name": "jsonl",
2711
+ "allowNo": false,
2712
+ "type": "boolean"
2713
+ },
2714
+ "lang": {
2715
+ "char": "L",
2716
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
2717
+ "helpGroup": "GLOBAL",
2718
+ "name": "lang",
2820
2719
  "hasDynamicHelp": false,
2821
- "multiple": true,
2720
+ "multiple": false,
2822
2721
  "type": "option"
2823
2722
  },
2824
- "exclude-cartridge": {
2825
- "char": "x",
2826
- "description": "Exclude specific cartridge(s) (comma-separated)",
2827
- "name": "exclude-cartridge",
2828
- "delimiter": ",",
2723
+ "config": {
2724
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
2725
+ "env": "SFCC_CONFIG",
2726
+ "helpGroup": "GLOBAL",
2727
+ "name": "config",
2829
2728
  "hasDynamicHelp": false,
2830
- "multiple": true,
2729
+ "multiple": false,
2730
+ "type": "option"
2731
+ },
2732
+ "instance": {
2733
+ "char": "i",
2734
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
2735
+ "env": "SFCC_INSTANCE",
2736
+ "helpGroup": "GLOBAL",
2737
+ "name": "instance",
2738
+ "hasDynamicHelp": false,
2739
+ "multiple": false,
2740
+ "type": "option"
2741
+ },
2742
+ "project-directory": {
2743
+ "aliases": [
2744
+ "working-directory"
2745
+ ],
2746
+ "description": "Project directory",
2747
+ "env": "SFCC_PROJECT_DIRECTORY",
2748
+ "helpGroup": "GLOBAL",
2749
+ "name": "project-directory",
2750
+ "hasDynamicHelp": false,
2751
+ "multiple": false,
2752
+ "type": "option"
2753
+ },
2754
+ "extra-query": {
2755
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
2756
+ "env": "SFCC_EXTRA_QUERY",
2757
+ "helpGroup": "GLOBAL",
2758
+ "hidden": true,
2759
+ "name": "extra-query",
2760
+ "hasDynamicHelp": false,
2761
+ "multiple": false,
2762
+ "type": "option"
2763
+ },
2764
+ "extra-body": {
2765
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
2766
+ "env": "SFCC_EXTRA_BODY",
2767
+ "helpGroup": "GLOBAL",
2768
+ "hidden": true,
2769
+ "name": "extra-body",
2770
+ "hasDynamicHelp": false,
2771
+ "multiple": false,
2772
+ "type": "option"
2773
+ },
2774
+ "extra-headers": {
2775
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
2776
+ "env": "SFCC_EXTRA_HEADERS",
2777
+ "helpGroup": "GLOBAL",
2778
+ "hidden": true,
2779
+ "name": "extra-headers",
2780
+ "hasDynamicHelp": false,
2781
+ "multiple": false,
2831
2782
  "type": "option"
2832
2783
  }
2833
2784
  },
2834
2785
  "hasDynamicHelp": false,
2835
2786
  "hiddenAliases": [],
2836
- "id": "code:watch",
2787
+ "id": "cip:report",
2837
2788
  "pluginAlias": "@salesforce/b2c-cli",
2838
2789
  "pluginName": "@salesforce/b2c-cli",
2839
2790
  "pluginType": "core",
2840
2791
  "strict": true,
2841
2792
  "enableJsonFlag": false,
2842
- "baseArgs": {
2843
- "cartridgePath": {
2844
- "description": "Path to cartridges directory",
2845
- "default": ".",
2846
- "input": [],
2847
- "type": "option"
2848
- }
2849
- },
2850
- "cartridgeFlags": {
2851
- "cartridge": {
2852
- "char": "c",
2853
- "description": "Include specific cartridge(s) (comma-separated)",
2854
- "multiple": true,
2855
- "multipleNonGreedy": true,
2856
- "delimiter": ",",
2857
- "input": [],
2858
- "type": "option"
2859
- },
2860
- "exclude-cartridge": {
2861
- "char": "x",
2862
- "description": "Exclude specific cartridge(s) (comma-separated)",
2863
- "multiple": true,
2864
- "multipleNonGreedy": true,
2865
- "delimiter": ",",
2866
- "input": [],
2867
- "type": "option"
2868
- }
2869
- },
2870
2793
  "isESM": true,
2871
2794
  "relativePath": [
2872
2795
  "dist",
2873
2796
  "commands",
2874
- "code",
2875
- "watch.js"
2797
+ "cip",
2798
+ "report.js"
2876
2799
  ]
2877
2800
  },
2878
- "auth:token": {
2801
+ "cip:tables": {
2879
2802
  "aliases": [],
2880
2803
  "args": {},
2881
- "description": "Get an OAuth access token\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html#b2c-auth-token",
2882
- "examples": [
2883
- "<%= config.bin %> <%= command.id %>",
2884
- "<%= config.bin %> <%= command.id %> --auth-scope sfcc.orders --auth-scope sfcc.products",
2885
- "<%= config.bin %> <%= command.id %> --json"
2886
- ],
2804
+ "description": "List tables from CIP metadata catalog\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-tables",
2887
2805
  "flags": {
2888
2806
  "json": {
2889
2807
  "description": "Output result as JSON",
@@ -3085,11 +3003,93 @@
3085
3003
  "hasDynamicHelp": false,
3086
3004
  "multiple": false,
3087
3005
  "type": "option"
3006
+ },
3007
+ "cip-host": {
3008
+ "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
3009
+ "env": "SFCC_CIP_HOST",
3010
+ "helpGroup": "QUERY",
3011
+ "name": "cip-host",
3012
+ "hasDynamicHelp": false,
3013
+ "multiple": false,
3014
+ "type": "option"
3015
+ },
3016
+ "staging": {
3017
+ "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
3018
+ "env": "SFCC_CIP_STAGING",
3019
+ "helpGroup": "QUERY",
3020
+ "name": "staging",
3021
+ "allowNo": false,
3022
+ "type": "boolean"
3023
+ },
3024
+ "from": {
3025
+ "description": "Inclusive start date (YYYY-MM-DD)",
3026
+ "helpGroup": "QUERY",
3027
+ "name": "from",
3028
+ "default": "2026-02-01",
3029
+ "hasDynamicHelp": false,
3030
+ "multiple": false,
3031
+ "type": "option"
3032
+ },
3033
+ "to": {
3034
+ "description": "Inclusive end date (YYYY-MM-DD)",
3035
+ "helpGroup": "QUERY",
3036
+ "name": "to",
3037
+ "default": "2026-02-24",
3038
+ "hasDynamicHelp": false,
3039
+ "multiple": false,
3040
+ "type": "option"
3041
+ },
3042
+ "format": {
3043
+ "description": "Output format",
3044
+ "helpGroup": "QUERY",
3045
+ "name": "format",
3046
+ "default": "table",
3047
+ "hasDynamicHelp": false,
3048
+ "multiple": false,
3049
+ "options": [
3050
+ "table",
3051
+ "json",
3052
+ "csv"
3053
+ ],
3054
+ "type": "option"
3055
+ },
3056
+ "fetch-size": {
3057
+ "description": "Frame fetch size for CIP paging",
3058
+ "helpGroup": "QUERY",
3059
+ "name": "fetch-size",
3060
+ "default": 1000,
3061
+ "hasDynamicHelp": false,
3062
+ "multiple": false,
3063
+ "type": "option"
3064
+ },
3065
+ "all": {
3066
+ "description": "Include all table types (default only TABLE)",
3067
+ "helpGroup": "QUERY",
3068
+ "name": "all",
3069
+ "allowNo": false,
3070
+ "type": "boolean"
3071
+ },
3072
+ "pattern": {
3073
+ "description": "Table name pattern (SQL LIKE)",
3074
+ "helpGroup": "QUERY",
3075
+ "name": "pattern",
3076
+ "hasDynamicHelp": false,
3077
+ "multiple": false,
3078
+ "type": "option"
3079
+ },
3080
+ "schema": {
3081
+ "description": "Metadata schema name",
3082
+ "helpGroup": "QUERY",
3083
+ "name": "schema",
3084
+ "default": "warehouse",
3085
+ "hasDynamicHelp": false,
3086
+ "multiple": false,
3087
+ "type": "option"
3088
3088
  }
3089
3089
  },
3090
3090
  "hasDynamicHelp": false,
3091
3091
  "hiddenAliases": [],
3092
- "id": "auth:token",
3092
+ "id": "cip:tables",
3093
3093
  "pluginAlias": "@salesforce/b2c-cli",
3094
3094
  "pluginName": "@salesforce/b2c-cli",
3095
3095
  "pluginType": "core",
@@ -3099,8 +3099,8 @@
3099
3099
  "relativePath": [
3100
3100
  "dist",
3101
3101
  "commands",
3102
- "auth",
3103
- "token.js"
3102
+ "cip",
3103
+ "tables.js"
3104
3104
  ]
3105
3105
  },
3106
3106
  "content:export": {
@@ -50433,5 +50433,5 @@
50433
50433
  ]
50434
50434
  }
50435
50435
  },
50436
- "version": "0.5.1"
50436
+ "version": "0.5.2"
50437
50437
  }