@salesforce/b2c-cli 0.8.0 → 0.10.0

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 (138) hide show
  1. package/dist/commands/auth/client/index.d.ts +32 -0
  2. package/dist/commands/auth/client/index.js +181 -0
  3. package/dist/commands/auth/client/index.js.map +1 -0
  4. package/dist/commands/auth/client/renew.d.ts +20 -0
  5. package/dist/commands/auth/client/renew.js +88 -0
  6. package/dist/commands/auth/client/renew.js.map +1 -0
  7. package/dist/commands/auth/client/token.d.ts +24 -0
  8. package/dist/commands/auth/client/token.js +66 -0
  9. package/dist/commands/auth/client/token.js.map +1 -0
  10. package/dist/commands/auth/login.d.ts +20 -0
  11. package/dist/commands/auth/login.js +83 -0
  12. package/dist/commands/auth/login.js.map +1 -0
  13. package/dist/commands/auth/logout.d.ts +12 -0
  14. package/dist/commands/auth/logout.js +23 -0
  15. package/dist/commands/auth/logout.js.map +1 -0
  16. package/dist/commands/cip/describe.d.ts +3 -3
  17. package/dist/commands/cip/query.d.ts +3 -3
  18. package/dist/commands/cip/report/customer-registration-trends.d.ts +3 -3
  19. package/dist/commands/cip/report/ocapi-requests.d.ts +3 -3
  20. package/dist/commands/cip/report/payment-method-performance.d.ts +3 -3
  21. package/dist/commands/cip/report/product-co-purchase-analysis.d.ts +3 -3
  22. package/dist/commands/cip/report/promotion-discount-analysis.d.ts +3 -3
  23. package/dist/commands/cip/report/sales-analytics.d.ts +3 -3
  24. package/dist/commands/cip/report/sales-summary.d.ts +3 -3
  25. package/dist/commands/cip/report/search-query-performance.d.ts +3 -3
  26. package/dist/commands/cip/report/top-referrers.d.ts +3 -3
  27. package/dist/commands/cip/report/top-selling-products.d.ts +3 -3
  28. package/dist/commands/cip/tables.d.ts +3 -3
  29. package/dist/commands/code/activate.d.ts +4 -3
  30. package/dist/commands/code/activate.js +1 -0
  31. package/dist/commands/code/activate.js.map +1 -1
  32. package/dist/commands/code/delete.d.ts +4 -3
  33. package/dist/commands/code/delete.js +1 -0
  34. package/dist/commands/code/delete.js.map +1 -1
  35. package/dist/commands/code/deploy.d.ts +4 -3
  36. package/dist/commands/code/deploy.js +1 -0
  37. package/dist/commands/code/deploy.js.map +1 -1
  38. package/dist/commands/code/list.d.ts +1 -0
  39. package/dist/commands/code/list.js +1 -0
  40. package/dist/commands/code/list.js.map +1 -1
  41. package/dist/commands/code/watch.d.ts +3 -3
  42. package/dist/commands/content/export.d.ts +3 -3
  43. package/dist/commands/content/list.d.ts +3 -3
  44. package/dist/commands/content/validate.d.ts +39 -0
  45. package/dist/commands/content/validate.js +110 -0
  46. package/dist/commands/content/validate.js.map +1 -0
  47. package/dist/commands/docs/download.d.ts +3 -3
  48. package/dist/commands/docs/schema.d.ts +7 -1
  49. package/dist/commands/docs/schema.js +15 -2
  50. package/dist/commands/docs/schema.js.map +1 -1
  51. package/dist/commands/ecdn/cache/purge.d.ts +3 -3
  52. package/dist/commands/ecdn/certificates/add.d.ts +3 -3
  53. package/dist/commands/ecdn/certificates/delete.d.ts +3 -3
  54. package/dist/commands/ecdn/certificates/list.d.ts +3 -3
  55. package/dist/commands/ecdn/certificates/update.d.ts +3 -3
  56. package/dist/commands/ecdn/certificates/validate.d.ts +3 -3
  57. package/dist/commands/ecdn/cipher-suites/get.d.ts +3 -3
  58. package/dist/commands/ecdn/cipher-suites/update.d.ts +3 -3
  59. package/dist/commands/ecdn/logpush/jobs/create.d.ts +3 -3
  60. package/dist/commands/ecdn/logpush/jobs/delete.d.ts +3 -3
  61. package/dist/commands/ecdn/logpush/jobs/get.d.ts +3 -3
  62. package/dist/commands/ecdn/logpush/jobs/list.d.ts +3 -3
  63. package/dist/commands/ecdn/logpush/jobs/update.d.ts +3 -3
  64. package/dist/commands/ecdn/logpush/ownership.d.ts +3 -3
  65. package/dist/commands/ecdn/mrt-rules/create.d.ts +3 -3
  66. package/dist/commands/ecdn/mrt-rules/delete.d.ts +3 -3
  67. package/dist/commands/ecdn/mrt-rules/get.d.ts +3 -3
  68. package/dist/commands/ecdn/mrt-rules/rules/delete.d.ts +3 -3
  69. package/dist/commands/ecdn/mrt-rules/rules/update.d.ts +3 -3
  70. package/dist/commands/ecdn/mrt-rules/update.d.ts +3 -3
  71. package/dist/commands/ecdn/mtls/create.d.ts +3 -3
  72. package/dist/commands/ecdn/mtls/delete.d.ts +3 -3
  73. package/dist/commands/ecdn/mtls/get.d.ts +3 -3
  74. package/dist/commands/ecdn/mtls/list.d.ts +3 -3
  75. package/dist/commands/ecdn/origin-headers/delete.d.ts +3 -3
  76. package/dist/commands/ecdn/origin-headers/get.d.ts +3 -3
  77. package/dist/commands/ecdn/origin-headers/set.d.ts +3 -3
  78. package/dist/commands/ecdn/page-shield/notifications/create.d.ts +3 -3
  79. package/dist/commands/ecdn/page-shield/notifications/delete.d.ts +3 -3
  80. package/dist/commands/ecdn/page-shield/notifications/list.d.ts +3 -3
  81. package/dist/commands/ecdn/page-shield/policies/create.d.ts +3 -3
  82. package/dist/commands/ecdn/page-shield/policies/delete.d.ts +3 -3
  83. package/dist/commands/ecdn/page-shield/policies/get.d.ts +3 -3
  84. package/dist/commands/ecdn/page-shield/policies/list.d.ts +3 -3
  85. package/dist/commands/ecdn/page-shield/policies/update.d.ts +3 -3
  86. package/dist/commands/ecdn/page-shield/scripts/get.d.ts +3 -3
  87. package/dist/commands/ecdn/page-shield/scripts/list.d.ts +3 -3
  88. package/dist/commands/ecdn/security/get.d.ts +3 -3
  89. package/dist/commands/ecdn/security/update.d.ts +3 -3
  90. package/dist/commands/ecdn/speed/get.d.ts +3 -3
  91. package/dist/commands/ecdn/speed/update.d.ts +3 -3
  92. package/dist/commands/ecdn/waf/groups/list.d.ts +3 -3
  93. package/dist/commands/ecdn/waf/groups/update.d.ts +3 -3
  94. package/dist/commands/ecdn/waf/managed-rules/list.d.ts +3 -3
  95. package/dist/commands/ecdn/waf/managed-rules/update.d.ts +3 -3
  96. package/dist/commands/ecdn/waf/migrate.d.ts +3 -3
  97. package/dist/commands/ecdn/waf/owasp/get.d.ts +3 -3
  98. package/dist/commands/ecdn/waf/owasp/update.d.ts +3 -3
  99. package/dist/commands/ecdn/waf/rules/get.d.ts +3 -3
  100. package/dist/commands/ecdn/waf/rules/list.d.ts +3 -3
  101. package/dist/commands/ecdn/waf/rules/update.d.ts +3 -3
  102. package/dist/commands/ecdn/waf/rulesets/list.d.ts +3 -3
  103. package/dist/commands/ecdn/waf/rulesets/update.d.ts +3 -3
  104. package/dist/commands/ecdn/zones/create.d.ts +3 -3
  105. package/dist/commands/ecdn/zones/list.d.ts +3 -3
  106. package/dist/commands/job/export.d.ts +3 -3
  107. package/dist/commands/job/import.d.ts +3 -3
  108. package/dist/commands/job/log.d.ts +3 -3
  109. package/dist/commands/job/run.d.ts +4 -3
  110. package/dist/commands/job/run.js +1 -0
  111. package/dist/commands/job/run.js.map +1 -1
  112. package/dist/commands/job/search.d.ts +3 -3
  113. package/dist/commands/job/wait.d.ts +3 -3
  114. package/dist/commands/logs/get.d.ts +3 -3
  115. package/dist/commands/logs/list.d.ts +3 -3
  116. package/dist/commands/logs/tail.d.ts +3 -3
  117. package/dist/commands/scapi/custom/status.d.ts +3 -3
  118. package/dist/commands/scapi/schemas/get.d.ts +3 -3
  119. package/dist/commands/scapi/schemas/list.d.ts +3 -3
  120. package/dist/commands/slas/client/create.d.ts +3 -3
  121. package/dist/commands/slas/client/delete.d.ts +3 -3
  122. package/dist/commands/slas/client/get.d.ts +3 -3
  123. package/dist/commands/slas/client/list.d.ts +3 -3
  124. package/dist/commands/slas/client/update.d.ts +3 -3
  125. package/dist/commands/slas/token.d.ts +3 -3
  126. package/dist/commands/webdav/get.d.ts +3 -3
  127. package/dist/commands/webdav/rm.d.ts +3 -3
  128. package/dist/i18n/locales/de.d.ts +26 -0
  129. package/dist/i18n/locales/de.js +24 -0
  130. package/dist/i18n/locales/de.js.map +1 -1
  131. package/dist/i18n/locales/en.d.ts +26 -0
  132. package/dist/i18n/locales/en.js +26 -0
  133. package/dist/i18n/locales/en.js.map +1 -1
  134. package/dist/i18n/locales/index.d.ts +52 -0
  135. package/dist/utils/cip/command.d.ts +3 -3
  136. package/dist/utils/ecdn/zone-command.d.ts +3 -3
  137. package/oclif.manifest.json +2051 -1046
  138. package/package.json +4 -4
@@ -137,15 +137,16 @@
137
137
  "index.js"
138
138
  ]
139
139
  },
140
- "auth:token": {
140
+ "cip:describe": {
141
141
  "aliases": [],
142
- "args": {},
143
- "description": "Get an OAuth access token\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html#b2c-auth-token",
144
- "examples": [
145
- "<%= config.bin %> <%= command.id %>",
146
- "<%= config.bin %> <%= command.id %> --auth-scope sfcc.orders --auth-scope sfcc.products",
147
- "<%= config.bin %> <%= command.id %> --json"
148
- ],
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",
149
150
  "flags": {
150
151
  "json": {
151
152
  "description": "Output result as JSON",
@@ -347,11 +348,78 @@
347
348
  "hasDynamicHelp": false,
348
349
  "multiple": false,
349
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-03-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-03-22",
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"
350
418
  }
351
419
  },
352
420
  "hasDynamicHelp": false,
353
421
  "hiddenAliases": [],
354
- "id": "auth:token",
422
+ "id": "cip:describe",
355
423
  "pluginAlias": "@salesforce/b2c-cli",
356
424
  "pluginName": "@salesforce/b2c-cli",
357
425
  "pluginType": "core",
@@ -361,20 +429,20 @@
361
429
  "relativePath": [
362
430
  "dist",
363
431
  "commands",
364
- "auth",
365
- "token.js"
432
+ "cip",
433
+ "describe.js"
366
434
  ]
367
435
  },
368
- "cip:describe": {
436
+ "cip:query": {
369
437
  "aliases": [],
370
438
  "args": {
371
- "table": {
372
- "description": "Table name to describe",
373
- "name": "table",
374
- "required": true
439
+ "sql": {
440
+ "description": "SQL query text",
441
+ "name": "sql",
442
+ "required": false
375
443
  }
376
444
  },
377
- "description": "Describe columns for a CIP table\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-describe",
445
+ "description": "Execute raw SQL against CIP analytics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-query",
378
446
  "flags": {
379
447
  "json": {
380
448
  "description": "Output result as JSON",
@@ -607,7 +675,7 @@
607
675
  "description": "Inclusive end date (YYYY-MM-DD)",
608
676
  "helpGroup": "QUERY",
609
677
  "name": "to",
610
- "default": "2026-03-18",
678
+ "default": "2026-03-22",
611
679
  "hasDynamicHelp": false,
612
680
  "multiple": false,
613
681
  "type": "option"
@@ -635,11 +703,11 @@
635
703
  "multiple": false,
636
704
  "type": "option"
637
705
  },
638
- "schema": {
639
- "description": "Metadata schema name",
706
+ "file": {
707
+ "char": "f",
708
+ "description": "Read SQL query from file",
640
709
  "helpGroup": "QUERY",
641
- "name": "schema",
642
- "default": "warehouse",
710
+ "name": "file",
643
711
  "hasDynamicHelp": false,
644
712
  "multiple": false,
645
713
  "type": "option"
@@ -647,7 +715,7 @@
647
715
  },
648
716
  "hasDynamicHelp": false,
649
717
  "hiddenAliases": [],
650
- "id": "cip:describe",
718
+ "id": "cip:query",
651
719
  "pluginAlias": "@salesforce/b2c-cli",
652
720
  "pluginName": "@salesforce/b2c-cli",
653
721
  "pluginType": "core",
@@ -658,19 +726,154 @@
658
726
  "dist",
659
727
  "commands",
660
728
  "cip",
661
- "describe.js"
729
+ "query.js"
662
730
  ]
663
731
  },
664
- "cip:query": {
732
+ "cip:report": {
665
733
  "aliases": [],
666
- "args": {
667
- "sql": {
668
- "description": "SQL query text",
669
- "name": "sql",
670
- "required": false
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",
747
+ "hasDynamicHelp": false,
748
+ "multiple": false,
749
+ "options": [
750
+ "trace",
751
+ "debug",
752
+ "info",
753
+ "warn",
754
+ "error",
755
+ "silent"
756
+ ],
757
+ "type": "option"
758
+ },
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",
765
+ "allowNo": false,
766
+ "type": "boolean"
767
+ },
768
+ "json": {
769
+ "description": "Output result as JSON",
770
+ "helpGroup": "GLOBAL",
771
+ "name": "json",
772
+ "allowNo": false,
773
+ "type": "boolean"
774
+ },
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",
783
+ "allowNo": false,
784
+ "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"
671
855
  }
672
856
  },
673
- "description": "Execute raw SQL against CIP analytics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-query",
857
+ "hasDynamicHelp": false,
858
+ "hiddenAliases": [],
859
+ "id": "cip:report",
860
+ "pluginAlias": "@salesforce/b2c-cli",
861
+ "pluginName": "@salesforce/b2c-cli",
862
+ "pluginType": "core",
863
+ "strict": true,
864
+ "enableJsonFlag": false,
865
+ "isESM": true,
866
+ "relativePath": [
867
+ "dist",
868
+ "commands",
869
+ "cip",
870
+ "report.js"
871
+ ]
872
+ },
873
+ "cip:tables": {
874
+ "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",
674
877
  "flags": {
675
878
  "json": {
676
879
  "description": "Output result as JSON",
@@ -903,7 +1106,7 @@
903
1106
  "description": "Inclusive end date (YYYY-MM-DD)",
904
1107
  "helpGroup": "QUERY",
905
1108
  "name": "to",
906
- "default": "2026-03-18",
1109
+ "default": "2026-03-22",
907
1110
  "hasDynamicHelp": false,
908
1111
  "multiple": false,
909
1112
  "type": "option"
@@ -931,11 +1134,26 @@
931
1134
  "multiple": false,
932
1135
  "type": "option"
933
1136
  },
934
- "file": {
935
- "char": "f",
936
- "description": "Read SQL query from file",
1137
+ "all": {
1138
+ "description": "Include all table types (default only TABLE)",
937
1139
  "helpGroup": "QUERY",
938
- "name": "file",
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",
1148
+ "hasDynamicHelp": false,
1149
+ "multiple": false,
1150
+ "type": "option"
1151
+ },
1152
+ "schema": {
1153
+ "description": "Metadata schema name",
1154
+ "helpGroup": "QUERY",
1155
+ "name": "schema",
1156
+ "default": "warehouse",
939
1157
  "hasDynamicHelp": false,
940
1158
  "multiple": false,
941
1159
  "type": "option"
@@ -943,7 +1161,7 @@
943
1161
  },
944
1162
  "hasDynamicHelp": false,
945
1163
  "hiddenAliases": [],
946
- "id": "cip:query",
1164
+ "id": "cip:tables",
947
1165
  "pluginAlias": "@salesforce/b2c-cli",
948
1166
  "pluginName": "@salesforce/b2c-cli",
949
1167
  "pluginType": "core",
@@ -954,17 +1172,182 @@
954
1172
  "dist",
955
1173
  "commands",
956
1174
  "cip",
957
- "query.js"
1175
+ "tables.js"
958
1176
  ]
959
1177
  },
960
- "cip:report": {
1178
+ "auth:login": {
1179
+ "aliases": [],
1180
+ "args": {
1181
+ "clientId": {
1182
+ "description": "Client ID for OAuth (falls back to SFCC_CLIENT_ID env var)",
1183
+ "name": "clientId",
1184
+ "required": false
1185
+ }
1186
+ },
1187
+ "description": "Log in via browser and save session (stateful auth)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html#b2c-auth-login",
1188
+ "examples": [
1189
+ "<%= config.bin %> <%= command.id %>",
1190
+ "<%= config.bin %> <%= command.id %> your-client-id"
1191
+ ],
1192
+ "flags": {
1193
+ "log-level": {
1194
+ "description": "Set logging verbosity level",
1195
+ "env": "SFCC_LOG_LEVEL",
1196
+ "helpGroup": "GLOBAL",
1197
+ "name": "log-level",
1198
+ "hasDynamicHelp": false,
1199
+ "multiple": false,
1200
+ "options": [
1201
+ "trace",
1202
+ "debug",
1203
+ "info",
1204
+ "warn",
1205
+ "error",
1206
+ "silent"
1207
+ ],
1208
+ "type": "option"
1209
+ },
1210
+ "debug": {
1211
+ "char": "D",
1212
+ "description": "Enable debug logging (shorthand for --log-level debug)",
1213
+ "env": "SFCC_DEBUG",
1214
+ "helpGroup": "GLOBAL",
1215
+ "name": "debug",
1216
+ "allowNo": false,
1217
+ "type": "boolean"
1218
+ },
1219
+ "json": {
1220
+ "description": "Output result as JSON",
1221
+ "helpGroup": "GLOBAL",
1222
+ "name": "json",
1223
+ "allowNo": false,
1224
+ "type": "boolean"
1225
+ },
1226
+ "jsonl": {
1227
+ "aliases": [
1228
+ "json-logs"
1229
+ ],
1230
+ "description": "Output log messages as JSON lines",
1231
+ "env": "SFCC_JSON_LOGS",
1232
+ "helpGroup": "GLOBAL",
1233
+ "name": "jsonl",
1234
+ "allowNo": false,
1235
+ "type": "boolean"
1236
+ },
1237
+ "lang": {
1238
+ "char": "L",
1239
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
1240
+ "helpGroup": "GLOBAL",
1241
+ "name": "lang",
1242
+ "hasDynamicHelp": false,
1243
+ "multiple": false,
1244
+ "type": "option"
1245
+ },
1246
+ "config": {
1247
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
1248
+ "env": "SFCC_CONFIG",
1249
+ "helpGroup": "GLOBAL",
1250
+ "name": "config",
1251
+ "hasDynamicHelp": false,
1252
+ "multiple": false,
1253
+ "type": "option"
1254
+ },
1255
+ "instance": {
1256
+ "char": "i",
1257
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
1258
+ "env": "SFCC_INSTANCE",
1259
+ "helpGroup": "GLOBAL",
1260
+ "name": "instance",
1261
+ "hasDynamicHelp": false,
1262
+ "multiple": false,
1263
+ "type": "option"
1264
+ },
1265
+ "project-directory": {
1266
+ "aliases": [
1267
+ "working-directory"
1268
+ ],
1269
+ "description": "Project directory",
1270
+ "env": "SFCC_PROJECT_DIRECTORY",
1271
+ "helpGroup": "GLOBAL",
1272
+ "name": "project-directory",
1273
+ "hasDynamicHelp": false,
1274
+ "multiple": false,
1275
+ "type": "option"
1276
+ },
1277
+ "extra-query": {
1278
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
1279
+ "env": "SFCC_EXTRA_QUERY",
1280
+ "helpGroup": "GLOBAL",
1281
+ "hidden": true,
1282
+ "name": "extra-query",
1283
+ "hasDynamicHelp": false,
1284
+ "multiple": false,
1285
+ "type": "option"
1286
+ },
1287
+ "extra-body": {
1288
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
1289
+ "env": "SFCC_EXTRA_BODY",
1290
+ "helpGroup": "GLOBAL",
1291
+ "hidden": true,
1292
+ "name": "extra-body",
1293
+ "hasDynamicHelp": false,
1294
+ "multiple": false,
1295
+ "type": "option"
1296
+ },
1297
+ "extra-headers": {
1298
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
1299
+ "env": "SFCC_EXTRA_HEADERS",
1300
+ "helpGroup": "GLOBAL",
1301
+ "hidden": true,
1302
+ "name": "extra-headers",
1303
+ "hasDynamicHelp": false,
1304
+ "multiple": false,
1305
+ "type": "option"
1306
+ },
1307
+ "account-manager-host": {
1308
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
1309
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
1310
+ "helpGroup": "AUTH",
1311
+ "name": "account-manager-host",
1312
+ "hasDynamicHelp": false,
1313
+ "multiple": false,
1314
+ "type": "option"
1315
+ },
1316
+ "auth-scope": {
1317
+ "description": "OAuth scopes to request (comma-separated)",
1318
+ "env": "SFCC_OAUTH_SCOPES",
1319
+ "helpGroup": "AUTH",
1320
+ "name": "auth-scope",
1321
+ "delimiter": ",",
1322
+ "hasDynamicHelp": false,
1323
+ "multiple": true,
1324
+ "type": "option"
1325
+ }
1326
+ },
1327
+ "hasDynamicHelp": false,
1328
+ "hiddenAliases": [
1329
+ "auth:login"
1330
+ ],
1331
+ "id": "auth:login",
1332
+ "pluginAlias": "@salesforce/b2c-cli",
1333
+ "pluginName": "@salesforce/b2c-cli",
1334
+ "pluginType": "core",
1335
+ "strict": true,
1336
+ "enableJsonFlag": false,
1337
+ "isESM": true,
1338
+ "relativePath": [
1339
+ "dist",
1340
+ "commands",
1341
+ "auth",
1342
+ "login.js"
1343
+ ]
1344
+ },
1345
+ "auth:logout": {
961
1346
  "aliases": [],
962
1347
  "args": {},
963
- "description": "Run curated CIP analytics reports\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report",
1348
+ "description": "Clear stored session (stateful auth)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html#b2c-auth-logout",
964
1349
  "examples": [
965
- "<%= config.bin %> cip report --help",
966
- "<%= config.bin %> cip report sales-analytics --site-id Sites-SiteGenesis-Site",
967
- "<%= config.bin %> cip report sales-analytics --site-id Sites-SiteGenesis-Site --sql"
1350
+ "<%= config.bin %> <%= command.id %>"
968
1351
  ],
969
1352
  "flags": {
970
1353
  "log-level": {
@@ -1083,8 +1466,10 @@
1083
1466
  }
1084
1467
  },
1085
1468
  "hasDynamicHelp": false,
1086
- "hiddenAliases": [],
1087
- "id": "cip:report",
1469
+ "hiddenAliases": [
1470
+ "auth:logout"
1471
+ ],
1472
+ "id": "auth:logout",
1088
1473
  "pluginAlias": "@salesforce/b2c-cli",
1089
1474
  "pluginName": "@salesforce/b2c-cli",
1090
1475
  "pluginType": "core",
@@ -1094,14 +1479,19 @@
1094
1479
  "relativePath": [
1095
1480
  "dist",
1096
1481
  "commands",
1097
- "cip",
1098
- "report.js"
1482
+ "auth",
1483
+ "logout.js"
1099
1484
  ]
1100
1485
  },
1101
- "cip:tables": {
1486
+ "auth:token": {
1102
1487
  "aliases": [],
1103
1488
  "args": {},
1104
- "description": "List tables from CIP metadata catalog\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-tables",
1489
+ "description": "Get an OAuth access token\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html#b2c-auth-token",
1490
+ "examples": [
1491
+ "<%= config.bin %> <%= command.id %>",
1492
+ "<%= config.bin %> <%= command.id %> --auth-scope sfcc.orders --auth-scope sfcc.products",
1493
+ "<%= config.bin %> <%= command.id %> --json"
1494
+ ],
1105
1495
  "flags": {
1106
1496
  "json": {
1107
1497
  "description": "Output result as JSON",
@@ -1303,93 +1693,11 @@
1303
1693
  "hasDynamicHelp": false,
1304
1694
  "multiple": false,
1305
1695
  "type": "option"
1306
- },
1307
- "cip-host": {
1308
- "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
1309
- "env": "SFCC_CIP_HOST",
1310
- "helpGroup": "QUERY",
1311
- "name": "cip-host",
1312
- "hasDynamicHelp": false,
1313
- "multiple": false,
1314
- "type": "option"
1315
- },
1316
- "staging": {
1317
- "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
1318
- "env": "SFCC_CIP_STAGING",
1319
- "helpGroup": "QUERY",
1320
- "name": "staging",
1321
- "allowNo": false,
1322
- "type": "boolean"
1323
- },
1324
- "from": {
1325
- "description": "Inclusive start date (YYYY-MM-DD)",
1326
- "helpGroup": "QUERY",
1327
- "name": "from",
1328
- "default": "2026-03-01",
1329
- "hasDynamicHelp": false,
1330
- "multiple": false,
1331
- "type": "option"
1332
- },
1333
- "to": {
1334
- "description": "Inclusive end date (YYYY-MM-DD)",
1335
- "helpGroup": "QUERY",
1336
- "name": "to",
1337
- "default": "2026-03-18",
1338
- "hasDynamicHelp": false,
1339
- "multiple": false,
1340
- "type": "option"
1341
- },
1342
- "format": {
1343
- "description": "Output format",
1344
- "helpGroup": "QUERY",
1345
- "name": "format",
1346
- "default": "table",
1347
- "hasDynamicHelp": false,
1348
- "multiple": false,
1349
- "options": [
1350
- "table",
1351
- "json",
1352
- "csv"
1353
- ],
1354
- "type": "option"
1355
- },
1356
- "fetch-size": {
1357
- "description": "Frame fetch size for CIP paging",
1358
- "helpGroup": "QUERY",
1359
- "name": "fetch-size",
1360
- "default": 1000,
1361
- "hasDynamicHelp": false,
1362
- "multiple": false,
1363
- "type": "option"
1364
- },
1365
- "all": {
1366
- "description": "Include all table types (default only TABLE)",
1367
- "helpGroup": "QUERY",
1368
- "name": "all",
1369
- "allowNo": false,
1370
- "type": "boolean"
1371
- },
1372
- "pattern": {
1373
- "description": "Table name pattern (SQL LIKE)",
1374
- "helpGroup": "QUERY",
1375
- "name": "pattern",
1376
- "hasDynamicHelp": false,
1377
- "multiple": false,
1378
- "type": "option"
1379
- },
1380
- "schema": {
1381
- "description": "Metadata schema name",
1382
- "helpGroup": "QUERY",
1383
- "name": "schema",
1384
- "default": "warehouse",
1385
- "hasDynamicHelp": false,
1386
- "multiple": false,
1387
- "type": "option"
1388
1696
  }
1389
1697
  },
1390
1698
  "hasDynamicHelp": false,
1391
1699
  "hiddenAliases": [],
1392
- "id": "cip:tables",
1700
+ "id": "auth:token",
1393
1701
  "pluginAlias": "@salesforce/b2c-cli",
1394
1702
  "pluginName": "@salesforce/b2c-cli",
1395
1703
  "pluginType": "core",
@@ -1399,8 +1707,8 @@
1399
1707
  "relativePath": [
1400
1708
  "dist",
1401
1709
  "commands",
1402
- "cip",
1403
- "tables.js"
1710
+ "auth",
1711
+ "token.js"
1404
1712
  ]
1405
1713
  },
1406
1714
  "code:activate": {
@@ -1712,7 +2020,9 @@
1712
2020
  }
1713
2021
  },
1714
2022
  "hasDynamicHelp": false,
1715
- "hiddenAliases": [],
2023
+ "hiddenAliases": [
2024
+ "code:activate"
2025
+ ],
1716
2026
  "id": "code:activate",
1717
2027
  "pluginAlias": "@salesforce/b2c-cli",
1718
2028
  "pluginName": "@salesforce/b2c-cli",
@@ -2035,7 +2345,9 @@
2035
2345
  }
2036
2346
  },
2037
2347
  "hasDynamicHelp": false,
2038
- "hiddenAliases": [],
2348
+ "hiddenAliases": [
2349
+ "code:delete"
2350
+ ],
2039
2351
  "id": "code:delete",
2040
2352
  "pluginAlias": "@salesforce/b2c-cli",
2041
2353
  "pluginName": "@salesforce/b2c-cli",
@@ -2386,7 +2698,9 @@
2386
2698
  }
2387
2699
  },
2388
2700
  "hasDynamicHelp": false,
2389
- "hiddenAliases": [],
2701
+ "hiddenAliases": [
2702
+ "code:deploy"
2703
+ ],
2390
2704
  "id": "code:deploy",
2391
2705
  "pluginAlias": "@salesforce/b2c-cli",
2392
2706
  "pluginName": "@salesforce/b2c-cli",
@@ -2724,7 +3038,9 @@
2724
3038
  }
2725
3039
  },
2726
3040
  "hasDynamicHelp": false,
2727
- "hiddenAliases": [],
3041
+ "hiddenAliases": [
3042
+ "code:list"
3043
+ ],
2728
3044
  "id": "code:list",
2729
3045
  "pluginAlias": "@salesforce/b2c-cli",
2730
3046
  "pluginName": "@salesforce/b2c-cli",
@@ -3103,23 +3419,20 @@
3103
3419
  "watch.js"
3104
3420
  ]
3105
3421
  },
3106
- "content:export": {
3422
+ "docs:download": {
3107
3423
  "aliases": [],
3108
3424
  "args": {
3109
- "pages": {
3110
- "description": "Content IDs to export (pages, content assets, or components)",
3111
- "name": "pages",
3425
+ "output": {
3426
+ "description": "Output directory for extracted documentation",
3427
+ "name": "output",
3112
3428
  "required": true
3113
3429
  }
3114
3430
  },
3115
- "description": "Export Page Designer pages with components and assets from a content library",
3431
+ "description": "Download Script API documentation from a B2C Commerce instance",
3116
3432
  "examples": [
3117
- "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage",
3118
- "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage about-us",
3119
- "<%= config.bin %> <%= command.id %> --library SharedLibrary \"hero-.*\" --regex",
3120
- "<%= config.bin %> <%= command.id %> --library RefArch --site-library homepage -o ./export",
3121
- "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage --json",
3122
- "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage --dry-run"
3433
+ "<%= config.bin %> <%= command.id %> ./docs",
3434
+ "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
3435
+ "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
3123
3436
  ],
3124
3437
  "flags": {
3125
3438
  "json": {
@@ -3405,115 +3718,45 @@
3405
3718
  "allowNo": true,
3406
3719
  "type": "boolean"
3407
3720
  },
3408
- "library": {
3409
- "description": "Library ID or site ID (also configurable via dw.json \"content-library\")",
3410
- "name": "library",
3411
- "hasDynamicHelp": false,
3412
- "multiple": false,
3413
- "type": "option"
3414
- },
3415
- "output": {
3416
- "char": "o",
3417
- "description": "Output directory",
3418
- "name": "output",
3419
- "hasDynamicHelp": false,
3420
- "multiple": false,
3421
- "type": "option"
3422
- },
3423
- "site-library": {
3424
- "description": "Library is a site-private library",
3425
- "name": "site-library",
3426
- "allowNo": false,
3427
- "type": "boolean"
3428
- },
3429
- "asset-query": {
3430
- "char": "q",
3431
- "description": "JSON dot-paths for asset extraction",
3432
- "name": "asset-query",
3433
- "default": [
3434
- "image.path"
3435
- ],
3436
- "hasDynamicHelp": false,
3437
- "multiple": true,
3438
- "type": "option"
3439
- },
3440
- "regex": {
3441
- "char": "r",
3442
- "description": "Treat page IDs as regular expressions",
3443
- "name": "regex",
3444
- "allowNo": false,
3445
- "type": "boolean"
3446
- },
3447
- "folder": {
3448
- "description": "Filter by folder classification",
3449
- "name": "folder",
3450
- "hasDynamicHelp": false,
3451
- "multiple": true,
3452
- "type": "option"
3453
- },
3454
- "offline": {
3455
- "description": "Skip asset downloads",
3456
- "name": "offline",
3457
- "allowNo": false,
3458
- "type": "boolean"
3459
- },
3460
- "library-file": {
3461
- "description": "Use a local library XML file instead of fetching from instance",
3462
- "name": "library-file",
3463
- "hasDynamicHelp": false,
3464
- "multiple": false,
3465
- "type": "option"
3466
- },
3467
- "keep-orphans": {
3468
- "description": "Include orphan components in export",
3469
- "name": "keep-orphans",
3470
- "allowNo": false,
3471
- "type": "boolean"
3472
- },
3473
- "show-tree": {
3474
- "description": "Display tree structure of exported content",
3475
- "name": "show-tree",
3476
- "allowNo": false,
3477
- "type": "boolean"
3478
- },
3479
- "timeout": {
3480
- "description": "Export job timeout in seconds",
3481
- "name": "timeout",
3482
- "hasDynamicHelp": false,
3483
- "multiple": false,
3484
- "type": "option"
3485
- },
3486
- "dry-run": {
3487
- "description": "Preview export without downloading assets or writing files",
3488
- "name": "dry-run",
3721
+ "keep-archive": {
3722
+ "description": "Keep the downloaded archive file",
3723
+ "name": "keep-archive",
3489
3724
  "allowNo": false,
3490
3725
  "type": "boolean"
3491
3726
  }
3492
3727
  },
3493
3728
  "hasDynamicHelp": false,
3494
3729
  "hiddenAliases": [],
3495
- "id": "content:export",
3730
+ "id": "docs:download",
3496
3731
  "pluginAlias": "@salesforce/b2c-cli",
3497
3732
  "pluginName": "@salesforce/b2c-cli",
3498
3733
  "pluginType": "core",
3499
- "strict": false,
3734
+ "strict": true,
3500
3735
  "enableJsonFlag": true,
3501
3736
  "isESM": true,
3502
3737
  "relativePath": [
3503
3738
  "dist",
3504
3739
  "commands",
3505
- "content",
3506
- "export.js"
3740
+ "docs",
3741
+ "download.js"
3507
3742
  ]
3508
3743
  },
3509
- "content:list": {
3744
+ "docs:read": {
3510
3745
  "aliases": [],
3511
- "args": {},
3512
- "description": "List pages and content in a content library",
3746
+ "args": {
3747
+ "query": {
3748
+ "description": "Search query for documentation (class name, module path, or partial match)",
3749
+ "name": "query",
3750
+ "required": true
3751
+ }
3752
+ },
3753
+ "description": "Read Script API documentation for a class or module",
3513
3754
  "examples": [
3514
- "<%= config.bin %> <%= command.id %> --library SharedLibrary",
3515
- "<%= config.bin %> <%= command.id %> --library SharedLibrary --tree",
3516
- "<%= config.bin %> <%= command.id %> --library RefArch --site-library --type page"
3755
+ "<%= config.bin %> <%= command.id %> ProductMgr",
3756
+ "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
3757
+ "<%= config.bin %> <%= command.id %> \"dw system Status\"",
3758
+ "<%= config.bin %> <%= command.id %> ProductMgr --raw",
3759
+ "<%= config.bin %> <%= command.id %> ProductMgr --json"
3517
3760
  ],
3518
3761
  "flags": {
3519
3762
  "json": {
@@ -3630,230 +3873,17 @@
3630
3873
  "multiple": false,
3631
3874
  "type": "option"
3632
3875
  },
3633
- "client-id": {
3634
- "description": "Client ID for OAuth",
3635
- "env": "SFCC_CLIENT_ID",
3636
- "helpGroup": "AUTH",
3637
- "name": "client-id",
3638
- "hasDynamicHelp": false,
3639
- "multiple": false,
3640
- "type": "option"
3641
- },
3642
- "client-secret": {
3643
- "description": "Client Secret for OAuth",
3644
- "env": "SFCC_CLIENT_SECRET",
3645
- "helpGroup": "AUTH",
3646
- "name": "client-secret",
3647
- "hasDynamicHelp": false,
3648
- "multiple": false,
3649
- "type": "option"
3650
- },
3651
- "auth-scope": {
3652
- "description": "OAuth scopes to request (comma-separated)",
3653
- "env": "SFCC_OAUTH_SCOPES",
3654
- "helpGroup": "AUTH",
3655
- "name": "auth-scope",
3656
- "delimiter": ",",
3657
- "hasDynamicHelp": false,
3658
- "multiple": true,
3659
- "type": "option"
3660
- },
3661
- "short-code": {
3662
- "description": "SCAPI short code",
3663
- "env": "SFCC_SHORTCODE",
3664
- "helpGroup": "AUTH",
3665
- "name": "short-code",
3666
- "hasDynamicHelp": false,
3667
- "multiple": false,
3668
- "type": "option"
3669
- },
3670
- "tenant-id": {
3671
- "aliases": [
3672
- "tenant"
3673
- ],
3674
- "description": "Organization/tenant ID",
3675
- "env": "SFCC_TENANT_ID",
3676
- "helpGroup": "AUTH",
3677
- "name": "tenant-id",
3678
- "hasDynamicHelp": false,
3679
- "multiple": false,
3680
- "type": "option"
3681
- },
3682
- "auth-methods": {
3683
- "description": "Allowed auth methods in priority order (comma-separated)",
3684
- "env": "SFCC_AUTH_METHODS",
3685
- "exclusive": [
3686
- "user-auth"
3687
- ],
3688
- "helpGroup": "AUTH",
3689
- "name": "auth-methods",
3690
- "delimiter": ",",
3691
- "hasDynamicHelp": false,
3692
- "multiple": true,
3693
- "options": [
3694
- "client-credentials",
3695
- "implicit",
3696
- "basic",
3697
- "api-key"
3698
- ],
3699
- "type": "option"
3700
- },
3701
- "user-auth": {
3702
- "description": "Use browser-based user authentication (implicit OAuth flow)",
3703
- "exclusive": [
3704
- "auth-methods"
3705
- ],
3706
- "helpGroup": "AUTH",
3707
- "name": "user-auth",
3708
- "allowNo": false,
3709
- "type": "boolean"
3710
- },
3711
- "account-manager-host": {
3712
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
3713
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
3714
- "helpGroup": "AUTH",
3715
- "name": "account-manager-host",
3716
- "hasDynamicHelp": false,
3717
- "multiple": false,
3718
- "type": "option"
3719
- },
3720
- "server": {
3721
- "char": "s",
3722
- "description": "B2C instance hostname",
3723
- "env": "SFCC_SERVER",
3724
- "helpGroup": "INSTANCE",
3725
- "name": "server",
3726
- "hasDynamicHelp": false,
3727
- "multiple": false,
3728
- "type": "option"
3729
- },
3730
- "webdav-server": {
3731
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
3732
- "env": "SFCC_WEBDAV_SERVER",
3733
- "helpGroup": "INSTANCE",
3734
- "name": "webdav-server",
3735
- "hasDynamicHelp": false,
3736
- "multiple": false,
3737
- "type": "option"
3738
- },
3739
- "code-version": {
3740
- "char": "v",
3741
- "description": "Code version",
3742
- "env": "SFCC_CODE_VERSION",
3743
- "helpGroup": "INSTANCE",
3744
- "name": "code-version",
3745
- "hasDynamicHelp": false,
3746
- "multiple": false,
3747
- "type": "option"
3748
- },
3749
- "username": {
3750
- "char": "u",
3751
- "description": "Username for Basic Auth (WebDAV)",
3752
- "env": "SFCC_USERNAME",
3753
- "helpGroup": "AUTH",
3754
- "name": "username",
3755
- "hasDynamicHelp": false,
3756
- "multiple": false,
3757
- "type": "option"
3758
- },
3759
- "password": {
3760
- "char": "p",
3761
- "description": "Password/access key for Basic Auth (WebDAV)",
3762
- "env": "SFCC_PASSWORD",
3763
- "helpGroup": "AUTH",
3764
- "name": "password",
3765
- "hasDynamicHelp": false,
3766
- "multiple": false,
3767
- "type": "option"
3768
- },
3769
- "certificate": {
3770
- "description": "Path to PKCS12 certificate for two-factor auth",
3771
- "env": "SFCC_CERTIFICATE",
3772
- "helpGroup": "AUTH",
3773
- "name": "certificate",
3774
- "hasDynamicHelp": false,
3775
- "multiple": false,
3776
- "type": "option"
3777
- },
3778
- "passphrase": {
3779
- "description": "Passphrase for the certificate",
3780
- "env": "SFCC_CERTIFICATE_PASSPHRASE",
3781
- "helpGroup": "AUTH",
3782
- "name": "passphrase",
3783
- "hasDynamicHelp": false,
3784
- "multiple": false,
3785
- "type": "option"
3786
- },
3787
- "selfsigned": {
3788
- "description": "Allow self-signed server certificates",
3789
- "env": "SFCC_SELFSIGNED",
3790
- "helpGroup": "AUTH",
3791
- "name": "selfsigned",
3792
- "allowNo": false,
3793
- "type": "boolean"
3794
- },
3795
- "verify": {
3796
- "description": "Verify SSL certificates",
3797
- "helpGroup": "AUTH",
3798
- "name": "verify",
3799
- "allowNo": true,
3800
- "type": "boolean"
3801
- },
3802
- "library": {
3803
- "description": "Library ID or site ID (also configurable via dw.json \"content-library\")",
3804
- "name": "library",
3805
- "hasDynamicHelp": false,
3806
- "multiple": false,
3807
- "type": "option"
3808
- },
3809
- "site-library": {
3810
- "description": "Site-private library",
3811
- "name": "site-library",
3812
- "allowNo": false,
3813
- "type": "boolean"
3814
- },
3815
- "library-file": {
3816
- "description": "Local XML file",
3817
- "name": "library-file",
3818
- "hasDynamicHelp": false,
3819
- "multiple": false,
3820
- "type": "option"
3821
- },
3822
- "type": {
3823
- "description": "Filter by node type",
3824
- "name": "type",
3825
- "hasDynamicHelp": false,
3826
- "multiple": false,
3827
- "options": [
3828
- "page",
3829
- "content",
3830
- "component"
3831
- ],
3832
- "type": "option"
3833
- },
3834
- "components": {
3835
- "description": "Include components in output",
3836
- "name": "components",
3837
- "allowNo": false,
3838
- "type": "boolean"
3839
- },
3840
- "tree": {
3841
- "description": "Show tree structure",
3842
- "name": "tree",
3876
+ "raw": {
3877
+ "char": "r",
3878
+ "description": "Output raw markdown without terminal formatting",
3879
+ "name": "raw",
3843
3880
  "allowNo": false,
3844
3881
  "type": "boolean"
3845
- },
3846
- "timeout": {
3847
- "description": "Job timeout in seconds",
3848
- "name": "timeout",
3849
- "hasDynamicHelp": false,
3850
- "multiple": false,
3851
- "type": "option"
3852
3882
  }
3853
3883
  },
3854
3884
  "hasDynamicHelp": false,
3855
3885
  "hiddenAliases": [],
3856
- "id": "content:list",
3886
+ "id": "docs:read",
3857
3887
  "pluginAlias": "@salesforce/b2c-cli",
3858
3888
  "pluginName": "@salesforce/b2c-cli",
3859
3889
  "pluginType": "core",
@@ -3863,24 +3893,353 @@
3863
3893
  "relativePath": [
3864
3894
  "dist",
3865
3895
  "commands",
3866
- "content",
3867
- "list.js"
3896
+ "docs",
3897
+ "read.js"
3868
3898
  ]
3869
3899
  },
3870
- "docs:download": {
3900
+ "docs:schema": {
3871
3901
  "aliases": [],
3872
3902
  "args": {
3873
- "output": {
3874
- "description": "Output directory for extracted documentation",
3875
- "name": "output",
3876
- "required": true
3903
+ "query": {
3904
+ "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
3905
+ "name": "query",
3906
+ "required": false
3877
3907
  }
3878
3908
  },
3879
- "description": "Download Script API documentation from a B2C Commerce instance",
3909
+ "description": "Read an XSD schema file",
3880
3910
  "examples": [
3881
- "<%= config.bin %> <%= command.id %> ./docs",
3882
- "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
3883
- "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
3911
+ "<%= config.bin %> <%= command.id %> catalog",
3912
+ "<%= config.bin %> <%= command.id %> order",
3913
+ "<%= config.bin %> <%= command.id %> --list",
3914
+ "<%= config.bin %> <%= command.id %> catalog --json",
3915
+ "xmllint --schema \"$(<%= config.bin %> <%= command.id %> catalog --path)\" file.xml --noout"
3916
+ ],
3917
+ "flags": {
3918
+ "json": {
3919
+ "description": "Output result as JSON",
3920
+ "helpGroup": "GLOBAL",
3921
+ "name": "json",
3922
+ "allowNo": false,
3923
+ "type": "boolean"
3924
+ },
3925
+ "log-level": {
3926
+ "description": "Set logging verbosity level",
3927
+ "env": "SFCC_LOG_LEVEL",
3928
+ "helpGroup": "GLOBAL",
3929
+ "name": "log-level",
3930
+ "hasDynamicHelp": false,
3931
+ "multiple": false,
3932
+ "options": [
3933
+ "trace",
3934
+ "debug",
3935
+ "info",
3936
+ "warn",
3937
+ "error",
3938
+ "silent"
3939
+ ],
3940
+ "type": "option"
3941
+ },
3942
+ "debug": {
3943
+ "char": "D",
3944
+ "description": "Enable debug logging (shorthand for --log-level debug)",
3945
+ "env": "SFCC_DEBUG",
3946
+ "helpGroup": "GLOBAL",
3947
+ "name": "debug",
3948
+ "allowNo": false,
3949
+ "type": "boolean"
3950
+ },
3951
+ "jsonl": {
3952
+ "aliases": [
3953
+ "json-logs"
3954
+ ],
3955
+ "description": "Output log messages as JSON lines",
3956
+ "env": "SFCC_JSON_LOGS",
3957
+ "helpGroup": "GLOBAL",
3958
+ "name": "jsonl",
3959
+ "allowNo": false,
3960
+ "type": "boolean"
3961
+ },
3962
+ "lang": {
3963
+ "char": "L",
3964
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
3965
+ "helpGroup": "GLOBAL",
3966
+ "name": "lang",
3967
+ "hasDynamicHelp": false,
3968
+ "multiple": false,
3969
+ "type": "option"
3970
+ },
3971
+ "config": {
3972
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
3973
+ "env": "SFCC_CONFIG",
3974
+ "helpGroup": "GLOBAL",
3975
+ "name": "config",
3976
+ "hasDynamicHelp": false,
3977
+ "multiple": false,
3978
+ "type": "option"
3979
+ },
3980
+ "instance": {
3981
+ "char": "i",
3982
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
3983
+ "env": "SFCC_INSTANCE",
3984
+ "helpGroup": "GLOBAL",
3985
+ "name": "instance",
3986
+ "hasDynamicHelp": false,
3987
+ "multiple": false,
3988
+ "type": "option"
3989
+ },
3990
+ "project-directory": {
3991
+ "aliases": [
3992
+ "working-directory"
3993
+ ],
3994
+ "description": "Project directory",
3995
+ "env": "SFCC_PROJECT_DIRECTORY",
3996
+ "helpGroup": "GLOBAL",
3997
+ "name": "project-directory",
3998
+ "hasDynamicHelp": false,
3999
+ "multiple": false,
4000
+ "type": "option"
4001
+ },
4002
+ "extra-query": {
4003
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
4004
+ "env": "SFCC_EXTRA_QUERY",
4005
+ "helpGroup": "GLOBAL",
4006
+ "hidden": true,
4007
+ "name": "extra-query",
4008
+ "hasDynamicHelp": false,
4009
+ "multiple": false,
4010
+ "type": "option"
4011
+ },
4012
+ "extra-body": {
4013
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
4014
+ "env": "SFCC_EXTRA_BODY",
4015
+ "helpGroup": "GLOBAL",
4016
+ "hidden": true,
4017
+ "name": "extra-body",
4018
+ "hasDynamicHelp": false,
4019
+ "multiple": false,
4020
+ "type": "option"
4021
+ },
4022
+ "extra-headers": {
4023
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
4024
+ "env": "SFCC_EXTRA_HEADERS",
4025
+ "helpGroup": "GLOBAL",
4026
+ "hidden": true,
4027
+ "name": "extra-headers",
4028
+ "hasDynamicHelp": false,
4029
+ "multiple": false,
4030
+ "type": "option"
4031
+ },
4032
+ "list": {
4033
+ "char": "l",
4034
+ "description": "List all available schemas",
4035
+ "name": "list",
4036
+ "allowNo": false,
4037
+ "type": "boolean"
4038
+ },
4039
+ "path": {
4040
+ "char": "p",
4041
+ "description": "Print the filesystem path to the schema instead of its content",
4042
+ "name": "path",
4043
+ "allowNo": false,
4044
+ "type": "boolean"
4045
+ }
4046
+ },
4047
+ "hasDynamicHelp": false,
4048
+ "hiddenAliases": [],
4049
+ "id": "docs:schema",
4050
+ "pluginAlias": "@salesforce/b2c-cli",
4051
+ "pluginName": "@salesforce/b2c-cli",
4052
+ "pluginType": "core",
4053
+ "strict": true,
4054
+ "enableJsonFlag": true,
4055
+ "isESM": true,
4056
+ "relativePath": [
4057
+ "dist",
4058
+ "commands",
4059
+ "docs",
4060
+ "schema.js"
4061
+ ]
4062
+ },
4063
+ "docs:search": {
4064
+ "aliases": [],
4065
+ "args": {
4066
+ "query": {
4067
+ "description": "Search query (fuzzy match against class/module names)",
4068
+ "name": "query",
4069
+ "required": false
4070
+ }
4071
+ },
4072
+ "description": "Search Script API documentation",
4073
+ "examples": [
4074
+ "<%= config.bin %> <%= command.id %> ProductMgr",
4075
+ "<%= config.bin %> <%= command.id %> \"catalog product\"",
4076
+ "<%= config.bin %> <%= command.id %> status --limit 5",
4077
+ "<%= config.bin %> <%= command.id %> --list"
4078
+ ],
4079
+ "flags": {
4080
+ "json": {
4081
+ "description": "Output result as JSON",
4082
+ "helpGroup": "GLOBAL",
4083
+ "name": "json",
4084
+ "allowNo": false,
4085
+ "type": "boolean"
4086
+ },
4087
+ "log-level": {
4088
+ "description": "Set logging verbosity level",
4089
+ "env": "SFCC_LOG_LEVEL",
4090
+ "helpGroup": "GLOBAL",
4091
+ "name": "log-level",
4092
+ "hasDynamicHelp": false,
4093
+ "multiple": false,
4094
+ "options": [
4095
+ "trace",
4096
+ "debug",
4097
+ "info",
4098
+ "warn",
4099
+ "error",
4100
+ "silent"
4101
+ ],
4102
+ "type": "option"
4103
+ },
4104
+ "debug": {
4105
+ "char": "D",
4106
+ "description": "Enable debug logging (shorthand for --log-level debug)",
4107
+ "env": "SFCC_DEBUG",
4108
+ "helpGroup": "GLOBAL",
4109
+ "name": "debug",
4110
+ "allowNo": false,
4111
+ "type": "boolean"
4112
+ },
4113
+ "jsonl": {
4114
+ "aliases": [
4115
+ "json-logs"
4116
+ ],
4117
+ "description": "Output log messages as JSON lines",
4118
+ "env": "SFCC_JSON_LOGS",
4119
+ "helpGroup": "GLOBAL",
4120
+ "name": "jsonl",
4121
+ "allowNo": false,
4122
+ "type": "boolean"
4123
+ },
4124
+ "lang": {
4125
+ "char": "L",
4126
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
4127
+ "helpGroup": "GLOBAL",
4128
+ "name": "lang",
4129
+ "hasDynamicHelp": false,
4130
+ "multiple": false,
4131
+ "type": "option"
4132
+ },
4133
+ "config": {
4134
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
4135
+ "env": "SFCC_CONFIG",
4136
+ "helpGroup": "GLOBAL",
4137
+ "name": "config",
4138
+ "hasDynamicHelp": false,
4139
+ "multiple": false,
4140
+ "type": "option"
4141
+ },
4142
+ "instance": {
4143
+ "char": "i",
4144
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
4145
+ "env": "SFCC_INSTANCE",
4146
+ "helpGroup": "GLOBAL",
4147
+ "name": "instance",
4148
+ "hasDynamicHelp": false,
4149
+ "multiple": false,
4150
+ "type": "option"
4151
+ },
4152
+ "project-directory": {
4153
+ "aliases": [
4154
+ "working-directory"
4155
+ ],
4156
+ "description": "Project directory",
4157
+ "env": "SFCC_PROJECT_DIRECTORY",
4158
+ "helpGroup": "GLOBAL",
4159
+ "name": "project-directory",
4160
+ "hasDynamicHelp": false,
4161
+ "multiple": false,
4162
+ "type": "option"
4163
+ },
4164
+ "extra-query": {
4165
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
4166
+ "env": "SFCC_EXTRA_QUERY",
4167
+ "helpGroup": "GLOBAL",
4168
+ "hidden": true,
4169
+ "name": "extra-query",
4170
+ "hasDynamicHelp": false,
4171
+ "multiple": false,
4172
+ "type": "option"
4173
+ },
4174
+ "extra-body": {
4175
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
4176
+ "env": "SFCC_EXTRA_BODY",
4177
+ "helpGroup": "GLOBAL",
4178
+ "hidden": true,
4179
+ "name": "extra-body",
4180
+ "hasDynamicHelp": false,
4181
+ "multiple": false,
4182
+ "type": "option"
4183
+ },
4184
+ "extra-headers": {
4185
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
4186
+ "env": "SFCC_EXTRA_HEADERS",
4187
+ "helpGroup": "GLOBAL",
4188
+ "hidden": true,
4189
+ "name": "extra-headers",
4190
+ "hasDynamicHelp": false,
4191
+ "multiple": false,
4192
+ "type": "option"
4193
+ },
4194
+ "limit": {
4195
+ "char": "l",
4196
+ "description": "Maximum number of results to display",
4197
+ "name": "limit",
4198
+ "default": 20,
4199
+ "hasDynamicHelp": false,
4200
+ "multiple": false,
4201
+ "type": "option"
4202
+ },
4203
+ "list": {
4204
+ "description": "List all available documentation entries",
4205
+ "name": "list",
4206
+ "allowNo": false,
4207
+ "type": "boolean"
4208
+ }
4209
+ },
4210
+ "hasDynamicHelp": false,
4211
+ "hiddenAliases": [],
4212
+ "id": "docs:search",
4213
+ "pluginAlias": "@salesforce/b2c-cli",
4214
+ "pluginName": "@salesforce/b2c-cli",
4215
+ "pluginType": "core",
4216
+ "strict": true,
4217
+ "enableJsonFlag": true,
4218
+ "isESM": true,
4219
+ "relativePath": [
4220
+ "dist",
4221
+ "commands",
4222
+ "docs",
4223
+ "search.js"
4224
+ ]
4225
+ },
4226
+ "content:export": {
4227
+ "aliases": [],
4228
+ "args": {
4229
+ "pages": {
4230
+ "description": "Content IDs to export (pages, content assets, or components)",
4231
+ "name": "pages",
4232
+ "required": true
4233
+ }
4234
+ },
4235
+ "description": "Export Page Designer pages with components and assets from a content library",
4236
+ "examples": [
4237
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage",
4238
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage about-us",
4239
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary \"hero-.*\" --regex",
4240
+ "<%= config.bin %> <%= command.id %> --library RefArch --site-library homepage -o ./export",
4241
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage --json",
4242
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage --dry-run"
3884
4243
  ],
3885
4244
  "flags": {
3886
4245
  "json": {
@@ -4166,200 +4525,115 @@
4166
4525
  "allowNo": true,
4167
4526
  "type": "boolean"
4168
4527
  },
4169
- "keep-archive": {
4170
- "description": "Keep the downloaded archive file",
4171
- "name": "keep-archive",
4172
- "allowNo": false,
4173
- "type": "boolean"
4174
- }
4175
- },
4176
- "hasDynamicHelp": false,
4177
- "hiddenAliases": [],
4178
- "id": "docs:download",
4179
- "pluginAlias": "@salesforce/b2c-cli",
4180
- "pluginName": "@salesforce/b2c-cli",
4181
- "pluginType": "core",
4182
- "strict": true,
4183
- "enableJsonFlag": true,
4184
- "isESM": true,
4185
- "relativePath": [
4186
- "dist",
4187
- "commands",
4188
- "docs",
4189
- "download.js"
4190
- ]
4191
- },
4192
- "docs:read": {
4193
- "aliases": [],
4194
- "args": {
4195
- "query": {
4196
- "description": "Search query for documentation (class name, module path, or partial match)",
4197
- "name": "query",
4198
- "required": true
4199
- }
4200
- },
4201
- "description": "Read Script API documentation for a class or module",
4202
- "examples": [
4203
- "<%= config.bin %> <%= command.id %> ProductMgr",
4204
- "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
4205
- "<%= config.bin %> <%= command.id %> \"dw system Status\"",
4206
- "<%= config.bin %> <%= command.id %> ProductMgr --raw",
4207
- "<%= config.bin %> <%= command.id %> ProductMgr --json"
4208
- ],
4209
- "flags": {
4210
- "json": {
4211
- "description": "Output result as JSON",
4212
- "helpGroup": "GLOBAL",
4213
- "name": "json",
4214
- "allowNo": false,
4215
- "type": "boolean"
4528
+ "library": {
4529
+ "description": "Library ID or site ID (also configurable via dw.json \"content-library\")",
4530
+ "name": "library",
4531
+ "hasDynamicHelp": false,
4532
+ "multiple": false,
4533
+ "type": "option"
4216
4534
  },
4217
- "log-level": {
4218
- "description": "Set logging verbosity level",
4219
- "env": "SFCC_LOG_LEVEL",
4220
- "helpGroup": "GLOBAL",
4221
- "name": "log-level",
4535
+ "output": {
4536
+ "char": "o",
4537
+ "description": "Output directory",
4538
+ "name": "output",
4222
4539
  "hasDynamicHelp": false,
4223
4540
  "multiple": false,
4224
- "options": [
4225
- "trace",
4226
- "debug",
4227
- "info",
4228
- "warn",
4229
- "error",
4230
- "silent"
4231
- ],
4232
4541
  "type": "option"
4233
4542
  },
4234
- "debug": {
4235
- "char": "D",
4236
- "description": "Enable debug logging (shorthand for --log-level debug)",
4237
- "env": "SFCC_DEBUG",
4238
- "helpGroup": "GLOBAL",
4239
- "name": "debug",
4543
+ "site-library": {
4544
+ "description": "Library is a site-private library",
4545
+ "name": "site-library",
4240
4546
  "allowNo": false,
4241
4547
  "type": "boolean"
4242
4548
  },
4243
- "jsonl": {
4244
- "aliases": [
4245
- "json-logs"
4549
+ "asset-query": {
4550
+ "char": "q",
4551
+ "description": "JSON dot-paths for asset extraction",
4552
+ "name": "asset-query",
4553
+ "default": [
4554
+ "image.path"
4246
4555
  ],
4247
- "description": "Output log messages as JSON lines",
4248
- "env": "SFCC_JSON_LOGS",
4249
- "helpGroup": "GLOBAL",
4250
- "name": "jsonl",
4251
- "allowNo": false,
4252
- "type": "boolean"
4253
- },
4254
- "lang": {
4255
- "char": "L",
4256
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
4257
- "helpGroup": "GLOBAL",
4258
- "name": "lang",
4259
4556
  "hasDynamicHelp": false,
4260
- "multiple": false,
4557
+ "multiple": true,
4261
4558
  "type": "option"
4262
4559
  },
4263
- "config": {
4264
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
4265
- "env": "SFCC_CONFIG",
4266
- "helpGroup": "GLOBAL",
4267
- "name": "config",
4268
- "hasDynamicHelp": false,
4269
- "multiple": false,
4270
- "type": "option"
4560
+ "regex": {
4561
+ "char": "r",
4562
+ "description": "Treat page IDs as regular expressions",
4563
+ "name": "regex",
4564
+ "allowNo": false,
4565
+ "type": "boolean"
4271
4566
  },
4272
- "instance": {
4273
- "char": "i",
4274
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
4275
- "env": "SFCC_INSTANCE",
4276
- "helpGroup": "GLOBAL",
4277
- "name": "instance",
4567
+ "folder": {
4568
+ "description": "Filter by folder classification",
4569
+ "name": "folder",
4278
4570
  "hasDynamicHelp": false,
4279
- "multiple": false,
4571
+ "multiple": true,
4280
4572
  "type": "option"
4281
4573
  },
4282
- "project-directory": {
4283
- "aliases": [
4284
- "working-directory"
4285
- ],
4286
- "description": "Project directory",
4287
- "env": "SFCC_PROJECT_DIRECTORY",
4288
- "helpGroup": "GLOBAL",
4289
- "name": "project-directory",
4290
- "hasDynamicHelp": false,
4291
- "multiple": false,
4292
- "type": "option"
4574
+ "offline": {
4575
+ "description": "Skip asset downloads",
4576
+ "name": "offline",
4577
+ "allowNo": false,
4578
+ "type": "boolean"
4293
4579
  },
4294
- "extra-query": {
4295
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
4296
- "env": "SFCC_EXTRA_QUERY",
4297
- "helpGroup": "GLOBAL",
4298
- "hidden": true,
4299
- "name": "extra-query",
4580
+ "library-file": {
4581
+ "description": "Use a local library XML file instead of fetching from instance",
4582
+ "name": "library-file",
4300
4583
  "hasDynamicHelp": false,
4301
4584
  "multiple": false,
4302
4585
  "type": "option"
4303
4586
  },
4304
- "extra-body": {
4305
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
4306
- "env": "SFCC_EXTRA_BODY",
4307
- "helpGroup": "GLOBAL",
4308
- "hidden": true,
4309
- "name": "extra-body",
4310
- "hasDynamicHelp": false,
4311
- "multiple": false,
4312
- "type": "option"
4587
+ "keep-orphans": {
4588
+ "description": "Include orphan components in export",
4589
+ "name": "keep-orphans",
4590
+ "allowNo": false,
4591
+ "type": "boolean"
4313
4592
  },
4314
- "extra-headers": {
4315
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
4316
- "env": "SFCC_EXTRA_HEADERS",
4317
- "helpGroup": "GLOBAL",
4318
- "hidden": true,
4319
- "name": "extra-headers",
4593
+ "show-tree": {
4594
+ "description": "Display tree structure of exported content",
4595
+ "name": "show-tree",
4596
+ "allowNo": false,
4597
+ "type": "boolean"
4598
+ },
4599
+ "timeout": {
4600
+ "description": "Export job timeout in seconds",
4601
+ "name": "timeout",
4320
4602
  "hasDynamicHelp": false,
4321
4603
  "multiple": false,
4322
4604
  "type": "option"
4323
4605
  },
4324
- "raw": {
4325
- "char": "r",
4326
- "description": "Output raw markdown without terminal formatting",
4327
- "name": "raw",
4606
+ "dry-run": {
4607
+ "description": "Preview export without downloading assets or writing files",
4608
+ "name": "dry-run",
4328
4609
  "allowNo": false,
4329
4610
  "type": "boolean"
4330
4611
  }
4331
4612
  },
4332
4613
  "hasDynamicHelp": false,
4333
4614
  "hiddenAliases": [],
4334
- "id": "docs:read",
4615
+ "id": "content:export",
4335
4616
  "pluginAlias": "@salesforce/b2c-cli",
4336
4617
  "pluginName": "@salesforce/b2c-cli",
4337
4618
  "pluginType": "core",
4338
- "strict": true,
4619
+ "strict": false,
4339
4620
  "enableJsonFlag": true,
4340
4621
  "isESM": true,
4341
4622
  "relativePath": [
4342
4623
  "dist",
4343
4624
  "commands",
4344
- "docs",
4345
- "read.js"
4625
+ "content",
4626
+ "export.js"
4346
4627
  ]
4347
4628
  },
4348
- "docs:schema": {
4629
+ "content:list": {
4349
4630
  "aliases": [],
4350
- "args": {
4351
- "query": {
4352
- "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
4353
- "name": "query",
4354
- "required": false
4355
- }
4356
- },
4357
- "description": "Read an XSD schema file",
4631
+ "args": {},
4632
+ "description": "List pages and content in a content library",
4358
4633
  "examples": [
4359
- "<%= config.bin %> <%= command.id %> catalog",
4360
- "<%= config.bin %> <%= command.id %> order",
4361
- "<%= config.bin %> <%= command.id %> --list",
4362
- "<%= config.bin %> <%= command.id %> catalog --json"
4634
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary",
4635
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary --tree",
4636
+ "<%= config.bin %> <%= command.id %> --library RefArch --site-library --type page"
4363
4637
  ],
4364
4638
  "flags": {
4365
4639
  "json": {
@@ -4476,17 +4750,230 @@
4476
4750
  "multiple": false,
4477
4751
  "type": "option"
4478
4752
  },
4479
- "list": {
4480
- "char": "l",
4481
- "description": "List all available schemas",
4482
- "name": "list",
4753
+ "client-id": {
4754
+ "description": "Client ID for OAuth",
4755
+ "env": "SFCC_CLIENT_ID",
4756
+ "helpGroup": "AUTH",
4757
+ "name": "client-id",
4758
+ "hasDynamicHelp": false,
4759
+ "multiple": false,
4760
+ "type": "option"
4761
+ },
4762
+ "client-secret": {
4763
+ "description": "Client Secret for OAuth",
4764
+ "env": "SFCC_CLIENT_SECRET",
4765
+ "helpGroup": "AUTH",
4766
+ "name": "client-secret",
4767
+ "hasDynamicHelp": false,
4768
+ "multiple": false,
4769
+ "type": "option"
4770
+ },
4771
+ "auth-scope": {
4772
+ "description": "OAuth scopes to request (comma-separated)",
4773
+ "env": "SFCC_OAUTH_SCOPES",
4774
+ "helpGroup": "AUTH",
4775
+ "name": "auth-scope",
4776
+ "delimiter": ",",
4777
+ "hasDynamicHelp": false,
4778
+ "multiple": true,
4779
+ "type": "option"
4780
+ },
4781
+ "short-code": {
4782
+ "description": "SCAPI short code",
4783
+ "env": "SFCC_SHORTCODE",
4784
+ "helpGroup": "AUTH",
4785
+ "name": "short-code",
4786
+ "hasDynamicHelp": false,
4787
+ "multiple": false,
4788
+ "type": "option"
4789
+ },
4790
+ "tenant-id": {
4791
+ "aliases": [
4792
+ "tenant"
4793
+ ],
4794
+ "description": "Organization/tenant ID",
4795
+ "env": "SFCC_TENANT_ID",
4796
+ "helpGroup": "AUTH",
4797
+ "name": "tenant-id",
4798
+ "hasDynamicHelp": false,
4799
+ "multiple": false,
4800
+ "type": "option"
4801
+ },
4802
+ "auth-methods": {
4803
+ "description": "Allowed auth methods in priority order (comma-separated)",
4804
+ "env": "SFCC_AUTH_METHODS",
4805
+ "exclusive": [
4806
+ "user-auth"
4807
+ ],
4808
+ "helpGroup": "AUTH",
4809
+ "name": "auth-methods",
4810
+ "delimiter": ",",
4811
+ "hasDynamicHelp": false,
4812
+ "multiple": true,
4813
+ "options": [
4814
+ "client-credentials",
4815
+ "implicit",
4816
+ "basic",
4817
+ "api-key"
4818
+ ],
4819
+ "type": "option"
4820
+ },
4821
+ "user-auth": {
4822
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
4823
+ "exclusive": [
4824
+ "auth-methods"
4825
+ ],
4826
+ "helpGroup": "AUTH",
4827
+ "name": "user-auth",
4828
+ "allowNo": false,
4829
+ "type": "boolean"
4830
+ },
4831
+ "account-manager-host": {
4832
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
4833
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
4834
+ "helpGroup": "AUTH",
4835
+ "name": "account-manager-host",
4836
+ "hasDynamicHelp": false,
4837
+ "multiple": false,
4838
+ "type": "option"
4839
+ },
4840
+ "server": {
4841
+ "char": "s",
4842
+ "description": "B2C instance hostname",
4843
+ "env": "SFCC_SERVER",
4844
+ "helpGroup": "INSTANCE",
4845
+ "name": "server",
4846
+ "hasDynamicHelp": false,
4847
+ "multiple": false,
4848
+ "type": "option"
4849
+ },
4850
+ "webdav-server": {
4851
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
4852
+ "env": "SFCC_WEBDAV_SERVER",
4853
+ "helpGroup": "INSTANCE",
4854
+ "name": "webdav-server",
4855
+ "hasDynamicHelp": false,
4856
+ "multiple": false,
4857
+ "type": "option"
4858
+ },
4859
+ "code-version": {
4860
+ "char": "v",
4861
+ "description": "Code version",
4862
+ "env": "SFCC_CODE_VERSION",
4863
+ "helpGroup": "INSTANCE",
4864
+ "name": "code-version",
4865
+ "hasDynamicHelp": false,
4866
+ "multiple": false,
4867
+ "type": "option"
4868
+ },
4869
+ "username": {
4870
+ "char": "u",
4871
+ "description": "Username for Basic Auth (WebDAV)",
4872
+ "env": "SFCC_USERNAME",
4873
+ "helpGroup": "AUTH",
4874
+ "name": "username",
4875
+ "hasDynamicHelp": false,
4876
+ "multiple": false,
4877
+ "type": "option"
4878
+ },
4879
+ "password": {
4880
+ "char": "p",
4881
+ "description": "Password/access key for Basic Auth (WebDAV)",
4882
+ "env": "SFCC_PASSWORD",
4883
+ "helpGroup": "AUTH",
4884
+ "name": "password",
4885
+ "hasDynamicHelp": false,
4886
+ "multiple": false,
4887
+ "type": "option"
4888
+ },
4889
+ "certificate": {
4890
+ "description": "Path to PKCS12 certificate for two-factor auth",
4891
+ "env": "SFCC_CERTIFICATE",
4892
+ "helpGroup": "AUTH",
4893
+ "name": "certificate",
4894
+ "hasDynamicHelp": false,
4895
+ "multiple": false,
4896
+ "type": "option"
4897
+ },
4898
+ "passphrase": {
4899
+ "description": "Passphrase for the certificate",
4900
+ "env": "SFCC_CERTIFICATE_PASSPHRASE",
4901
+ "helpGroup": "AUTH",
4902
+ "name": "passphrase",
4903
+ "hasDynamicHelp": false,
4904
+ "multiple": false,
4905
+ "type": "option"
4906
+ },
4907
+ "selfsigned": {
4908
+ "description": "Allow self-signed server certificates",
4909
+ "env": "SFCC_SELFSIGNED",
4910
+ "helpGroup": "AUTH",
4911
+ "name": "selfsigned",
4912
+ "allowNo": false,
4913
+ "type": "boolean"
4914
+ },
4915
+ "verify": {
4916
+ "description": "Verify SSL certificates",
4917
+ "helpGroup": "AUTH",
4918
+ "name": "verify",
4919
+ "allowNo": true,
4920
+ "type": "boolean"
4921
+ },
4922
+ "library": {
4923
+ "description": "Library ID or site ID (also configurable via dw.json \"content-library\")",
4924
+ "name": "library",
4925
+ "hasDynamicHelp": false,
4926
+ "multiple": false,
4927
+ "type": "option"
4928
+ },
4929
+ "site-library": {
4930
+ "description": "Site-private library",
4931
+ "name": "site-library",
4932
+ "allowNo": false,
4933
+ "type": "boolean"
4934
+ },
4935
+ "library-file": {
4936
+ "description": "Local XML file",
4937
+ "name": "library-file",
4938
+ "hasDynamicHelp": false,
4939
+ "multiple": false,
4940
+ "type": "option"
4941
+ },
4942
+ "type": {
4943
+ "description": "Filter by node type",
4944
+ "name": "type",
4945
+ "hasDynamicHelp": false,
4946
+ "multiple": false,
4947
+ "options": [
4948
+ "page",
4949
+ "content",
4950
+ "component"
4951
+ ],
4952
+ "type": "option"
4953
+ },
4954
+ "components": {
4955
+ "description": "Include components in output",
4956
+ "name": "components",
4957
+ "allowNo": false,
4958
+ "type": "boolean"
4959
+ },
4960
+ "tree": {
4961
+ "description": "Show tree structure",
4962
+ "name": "tree",
4483
4963
  "allowNo": false,
4484
4964
  "type": "boolean"
4965
+ },
4966
+ "timeout": {
4967
+ "description": "Job timeout in seconds",
4968
+ "name": "timeout",
4969
+ "hasDynamicHelp": false,
4970
+ "multiple": false,
4971
+ "type": "option"
4485
4972
  }
4486
4973
  },
4487
4974
  "hasDynamicHelp": false,
4488
4975
  "hiddenAliases": [],
4489
- "id": "docs:schema",
4976
+ "id": "content:list",
4490
4977
  "pluginAlias": "@salesforce/b2c-cli",
4491
4978
  "pluginName": "@salesforce/b2c-cli",
4492
4979
  "pluginType": "core",
@@ -4496,25 +4983,26 @@
4496
4983
  "relativePath": [
4497
4984
  "dist",
4498
4985
  "commands",
4499
- "docs",
4500
- "schema.js"
4986
+ "content",
4987
+ "list.js"
4501
4988
  ]
4502
4989
  },
4503
- "docs:search": {
4990
+ "content:validate": {
4504
4991
  "aliases": [],
4505
4992
  "args": {
4506
- "query": {
4507
- "description": "Search query (fuzzy match against class/module names)",
4508
- "name": "query",
4509
- "required": false
4993
+ "files": {
4994
+ "description": "File(s), directory, or glob pattern(s) for JSON metadefinition files to validate",
4995
+ "name": "files",
4996
+ "required": true
4510
4997
  }
4511
4998
  },
4512
- "description": "Search Script API documentation",
4999
+ "description": "Validate Page Designer metadefinition JSON files against schemas",
4513
5000
  "examples": [
4514
- "<%= config.bin %> <%= command.id %> ProductMgr",
4515
- "<%= config.bin %> <%= command.id %> \"catalog product\"",
4516
- "<%= config.bin %> <%= command.id %> status --limit 5",
4517
- "<%= config.bin %> <%= command.id %> --list"
5001
+ "<%= config.bin %> <%= command.id %> cartridge/experience/pages/storePage.json",
5002
+ "<%= config.bin %> <%= command.id %> --type componenttype mycomponent.json",
5003
+ "<%= config.bin %> <%= command.id %> 'cartridge/experience/**/*.json'",
5004
+ "<%= config.bin %> <%= command.id %> cartridge/experience/",
5005
+ "<%= config.bin %> <%= command.id %> storePage.json --json"
4518
5006
  ],
4519
5007
  "flags": {
4520
5008
  "json": {
@@ -4631,36 +5119,40 @@
4631
5119
  "multiple": false,
4632
5120
  "type": "option"
4633
5121
  },
4634
- "limit": {
4635
- "char": "l",
4636
- "description": "Maximum number of results to display",
4637
- "name": "limit",
4638
- "default": 20,
5122
+ "type": {
5123
+ "char": "t",
5124
+ "description": "Schema type (auto-detected if not specified)",
5125
+ "name": "type",
4639
5126
  "hasDynamicHelp": false,
4640
5127
  "multiple": false,
5128
+ "options": [
5129
+ "pagetype",
5130
+ "componenttype",
5131
+ "aspecttype",
5132
+ "cmsrecord",
5133
+ "customeditortype",
5134
+ "contentassetpageconfig",
5135
+ "contentassetcomponentconfig",
5136
+ "contentassetstructuredcontentdata",
5137
+ "image"
5138
+ ],
4641
5139
  "type": "option"
4642
- },
4643
- "list": {
4644
- "description": "List all available documentation entries",
4645
- "name": "list",
4646
- "allowNo": false,
4647
- "type": "boolean"
4648
5140
  }
4649
5141
  },
4650
5142
  "hasDynamicHelp": false,
4651
5143
  "hiddenAliases": [],
4652
- "id": "docs:search",
5144
+ "id": "content:validate",
4653
5145
  "pluginAlias": "@salesforce/b2c-cli",
4654
5146
  "pluginName": "@salesforce/b2c-cli",
4655
5147
  "pluginType": "core",
4656
- "strict": true,
5148
+ "strict": false,
4657
5149
  "enableJsonFlag": true,
4658
5150
  "isESM": true,
4659
5151
  "relativePath": [
4660
5152
  "dist",
4661
5153
  "commands",
4662
- "docs",
4663
- "search.js"
5154
+ "content",
5155
+ "validate.js"
4664
5156
  ]
4665
5157
  },
4666
5158
  "job:export": {
@@ -6110,7 +6602,9 @@
6110
6602
  }
6111
6603
  },
6112
6604
  "hasDynamicHelp": false,
6113
- "hiddenAliases": [],
6605
+ "hiddenAliases": [
6606
+ "job:run"
6607
+ ],
6114
6608
  "id": "job:run",
6115
6609
  "pluginAlias": "@salesforce/b2c-cli",
6116
6610
  "pluginName": "@salesforce/b2c-cli",
@@ -18936,52 +19430,303 @@
18936
19430
  "multiple": false,
18937
19431
  "type": "option"
18938
19432
  },
18939
- "size": {
18940
- "char": "s",
18941
- "description": "Page size (default: 20, min: 1, max: 4000)",
18942
- "name": "size",
18943
- "hasDynamicHelp": false,
18944
- "multiple": false,
18945
- "type": "option"
18946
- },
18947
- "page": {
18948
- "description": "Page number (zero-based index, default: 0, min: 0)",
18949
- "name": "page",
18950
- "hasDynamicHelp": false,
18951
- "multiple": false,
18952
- "type": "option"
18953
- },
18954
- "target-type": {
18955
- "char": "t",
18956
- "description": "Filter by target type (User or ApiClient)",
18957
- "name": "target-type",
19433
+ "size": {
19434
+ "char": "s",
19435
+ "description": "Page size (default: 20, min: 1, max: 4000)",
19436
+ "name": "size",
19437
+ "hasDynamicHelp": false,
19438
+ "multiple": false,
19439
+ "type": "option"
19440
+ },
19441
+ "page": {
19442
+ "description": "Page number (zero-based index, default: 0, min: 0)",
19443
+ "name": "page",
19444
+ "hasDynamicHelp": false,
19445
+ "multiple": false,
19446
+ "type": "option"
19447
+ },
19448
+ "target-type": {
19449
+ "char": "t",
19450
+ "description": "Filter by target type (User or ApiClient)",
19451
+ "name": "target-type",
19452
+ "hasDynamicHelp": false,
19453
+ "multiple": false,
19454
+ "options": [
19455
+ "User",
19456
+ "ApiClient"
19457
+ ],
19458
+ "type": "option"
19459
+ },
19460
+ "columns": {
19461
+ "char": "c",
19462
+ "description": "Columns to display (comma-separated). Available: id, description, roleEnumName, scope, targetType, twoFAEnabled, permissions",
19463
+ "name": "columns",
19464
+ "hasDynamicHelp": false,
19465
+ "multiple": false,
19466
+ "type": "option"
19467
+ },
19468
+ "extended": {
19469
+ "char": "x",
19470
+ "description": "Show all columns including extended fields",
19471
+ "name": "extended",
19472
+ "allowNo": false,
19473
+ "type": "boolean"
19474
+ }
19475
+ },
19476
+ "hasDynamicHelp": false,
19477
+ "hiddenAliases": [],
19478
+ "id": "am:roles:list",
19479
+ "pluginAlias": "@salesforce/b2c-cli",
19480
+ "pluginName": "@salesforce/b2c-cli",
19481
+ "pluginType": "core",
19482
+ "strict": true,
19483
+ "enableJsonFlag": true,
19484
+ "isESM": true,
19485
+ "relativePath": [
19486
+ "dist",
19487
+ "commands",
19488
+ "am",
19489
+ "roles",
19490
+ "list.js"
19491
+ ]
19492
+ },
19493
+ "am:roles:revoke": {
19494
+ "aliases": [],
19495
+ "args": {
19496
+ "login": {
19497
+ "description": "User login (email)",
19498
+ "name": "login",
19499
+ "required": true
19500
+ }
19501
+ },
19502
+ "description": "Revoke a role from an Account Manager user",
19503
+ "examples": [
19504
+ "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin",
19505
+ "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin --scope tenant1"
19506
+ ],
19507
+ "flags": {
19508
+ "json": {
19509
+ "description": "Output result as JSON",
19510
+ "helpGroup": "GLOBAL",
19511
+ "name": "json",
19512
+ "allowNo": false,
19513
+ "type": "boolean"
19514
+ },
19515
+ "log-level": {
19516
+ "description": "Set logging verbosity level",
19517
+ "env": "SFCC_LOG_LEVEL",
19518
+ "helpGroup": "GLOBAL",
19519
+ "name": "log-level",
19520
+ "hasDynamicHelp": false,
19521
+ "multiple": false,
19522
+ "options": [
19523
+ "trace",
19524
+ "debug",
19525
+ "info",
19526
+ "warn",
19527
+ "error",
19528
+ "silent"
19529
+ ],
19530
+ "type": "option"
19531
+ },
19532
+ "debug": {
19533
+ "char": "D",
19534
+ "description": "Enable debug logging (shorthand for --log-level debug)",
19535
+ "env": "SFCC_DEBUG",
19536
+ "helpGroup": "GLOBAL",
19537
+ "name": "debug",
19538
+ "allowNo": false,
19539
+ "type": "boolean"
19540
+ },
19541
+ "jsonl": {
19542
+ "aliases": [
19543
+ "json-logs"
19544
+ ],
19545
+ "description": "Output log messages as JSON lines",
19546
+ "env": "SFCC_JSON_LOGS",
19547
+ "helpGroup": "GLOBAL",
19548
+ "name": "jsonl",
19549
+ "allowNo": false,
19550
+ "type": "boolean"
19551
+ },
19552
+ "lang": {
19553
+ "char": "L",
19554
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
19555
+ "helpGroup": "GLOBAL",
19556
+ "name": "lang",
19557
+ "hasDynamicHelp": false,
19558
+ "multiple": false,
19559
+ "type": "option"
19560
+ },
19561
+ "config": {
19562
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
19563
+ "env": "SFCC_CONFIG",
19564
+ "helpGroup": "GLOBAL",
19565
+ "name": "config",
19566
+ "hasDynamicHelp": false,
19567
+ "multiple": false,
19568
+ "type": "option"
19569
+ },
19570
+ "instance": {
19571
+ "char": "i",
19572
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
19573
+ "env": "SFCC_INSTANCE",
19574
+ "helpGroup": "GLOBAL",
19575
+ "name": "instance",
19576
+ "hasDynamicHelp": false,
19577
+ "multiple": false,
19578
+ "type": "option"
19579
+ },
19580
+ "project-directory": {
19581
+ "aliases": [
19582
+ "working-directory"
19583
+ ],
19584
+ "description": "Project directory",
19585
+ "env": "SFCC_PROJECT_DIRECTORY",
19586
+ "helpGroup": "GLOBAL",
19587
+ "name": "project-directory",
19588
+ "hasDynamicHelp": false,
19589
+ "multiple": false,
19590
+ "type": "option"
19591
+ },
19592
+ "extra-query": {
19593
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
19594
+ "env": "SFCC_EXTRA_QUERY",
19595
+ "helpGroup": "GLOBAL",
19596
+ "hidden": true,
19597
+ "name": "extra-query",
19598
+ "hasDynamicHelp": false,
19599
+ "multiple": false,
19600
+ "type": "option"
19601
+ },
19602
+ "extra-body": {
19603
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
19604
+ "env": "SFCC_EXTRA_BODY",
19605
+ "helpGroup": "GLOBAL",
19606
+ "hidden": true,
19607
+ "name": "extra-body",
19608
+ "hasDynamicHelp": false,
19609
+ "multiple": false,
19610
+ "type": "option"
19611
+ },
19612
+ "extra-headers": {
19613
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
19614
+ "env": "SFCC_EXTRA_HEADERS",
19615
+ "helpGroup": "GLOBAL",
19616
+ "hidden": true,
19617
+ "name": "extra-headers",
19618
+ "hasDynamicHelp": false,
19619
+ "multiple": false,
19620
+ "type": "option"
19621
+ },
19622
+ "client-id": {
19623
+ "description": "Client ID for OAuth",
19624
+ "env": "SFCC_CLIENT_ID",
19625
+ "helpGroup": "AUTH",
19626
+ "name": "client-id",
19627
+ "hasDynamicHelp": false,
19628
+ "multiple": false,
19629
+ "type": "option"
19630
+ },
19631
+ "client-secret": {
19632
+ "description": "Client Secret for OAuth",
19633
+ "env": "SFCC_CLIENT_SECRET",
19634
+ "helpGroup": "AUTH",
19635
+ "name": "client-secret",
19636
+ "hasDynamicHelp": false,
19637
+ "multiple": false,
19638
+ "type": "option"
19639
+ },
19640
+ "auth-scope": {
19641
+ "description": "OAuth scopes to request (comma-separated)",
19642
+ "env": "SFCC_OAUTH_SCOPES",
19643
+ "helpGroup": "AUTH",
19644
+ "name": "auth-scope",
19645
+ "delimiter": ",",
19646
+ "hasDynamicHelp": false,
19647
+ "multiple": true,
19648
+ "type": "option"
19649
+ },
19650
+ "short-code": {
19651
+ "description": "SCAPI short code",
19652
+ "env": "SFCC_SHORTCODE",
19653
+ "helpGroup": "AUTH",
19654
+ "name": "short-code",
19655
+ "hasDynamicHelp": false,
19656
+ "multiple": false,
19657
+ "type": "option"
19658
+ },
19659
+ "tenant-id": {
19660
+ "aliases": [
19661
+ "tenant"
19662
+ ],
19663
+ "description": "Organization/tenant ID",
19664
+ "env": "SFCC_TENANT_ID",
19665
+ "helpGroup": "AUTH",
19666
+ "name": "tenant-id",
19667
+ "hasDynamicHelp": false,
19668
+ "multiple": false,
19669
+ "type": "option"
19670
+ },
19671
+ "auth-methods": {
19672
+ "description": "Allowed auth methods in priority order (comma-separated)",
19673
+ "env": "SFCC_AUTH_METHODS",
19674
+ "exclusive": [
19675
+ "user-auth"
19676
+ ],
19677
+ "helpGroup": "AUTH",
19678
+ "name": "auth-methods",
19679
+ "delimiter": ",",
19680
+ "hasDynamicHelp": false,
19681
+ "multiple": true,
19682
+ "options": [
19683
+ "client-credentials",
19684
+ "implicit",
19685
+ "basic",
19686
+ "api-key"
19687
+ ],
19688
+ "type": "option"
19689
+ },
19690
+ "user-auth": {
19691
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
19692
+ "exclusive": [
19693
+ "auth-methods"
19694
+ ],
19695
+ "helpGroup": "AUTH",
19696
+ "name": "user-auth",
19697
+ "allowNo": false,
19698
+ "type": "boolean"
19699
+ },
19700
+ "account-manager-host": {
19701
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
19702
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
19703
+ "helpGroup": "AUTH",
19704
+ "name": "account-manager-host",
19705
+ "hasDynamicHelp": false,
19706
+ "multiple": false,
19707
+ "type": "option"
19708
+ },
19709
+ "role": {
19710
+ "char": "r",
19711
+ "description": "Role to revoke",
19712
+ "name": "role",
19713
+ "required": true,
18958
19714
  "hasDynamicHelp": false,
18959
19715
  "multiple": false,
18960
- "options": [
18961
- "User",
18962
- "ApiClient"
18963
- ],
18964
19716
  "type": "option"
18965
19717
  },
18966
- "columns": {
18967
- "char": "c",
18968
- "description": "Columns to display (comma-separated). Available: id, description, roleEnumName, scope, targetType, twoFAEnabled, permissions",
18969
- "name": "columns",
19718
+ "scope": {
19719
+ "char": "s",
19720
+ "description": "Scope to remove (if not provided, removes entire role)",
19721
+ "name": "scope",
18970
19722
  "hasDynamicHelp": false,
18971
19723
  "multiple": false,
18972
19724
  "type": "option"
18973
- },
18974
- "extended": {
18975
- "char": "x",
18976
- "description": "Show all columns including extended fields",
18977
- "name": "extended",
18978
- "allowNo": false,
18979
- "type": "boolean"
18980
19725
  }
18981
19726
  },
18982
19727
  "hasDynamicHelp": false,
18983
19728
  "hiddenAliases": [],
18984
- "id": "am:roles:list",
19729
+ "id": "am:roles:revoke",
18985
19730
  "pluginAlias": "@salesforce/b2c-cli",
18986
19731
  "pluginName": "@salesforce/b2c-cli",
18987
19732
  "pluginType": "core",
@@ -18993,22 +19738,16 @@
18993
19738
  "commands",
18994
19739
  "am",
18995
19740
  "roles",
18996
- "list.js"
19741
+ "revoke.js"
18997
19742
  ]
18998
19743
  },
18999
- "am:roles:revoke": {
19744
+ "am:users:create": {
19000
19745
  "aliases": [],
19001
- "args": {
19002
- "login": {
19003
- "description": "User login (email)",
19004
- "name": "login",
19005
- "required": true
19006
- }
19007
- },
19008
- "description": "Revoke a role from an Account Manager user",
19746
+ "args": {},
19747
+ "description": "Create a new Account Manager user",
19009
19748
  "examples": [
19010
- "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin",
19011
- "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin --scope tenant1"
19749
+ "<%= config.bin %> <%= command.id %> --org org-id --mail user@example.com --first-name John --last-name Doe",
19750
+ "<%= config.bin %> <%= command.id %> --org \"My Organization\" --mail user@example.com --first-name John --last-name Doe --json"
19012
19751
  ],
19013
19752
  "flags": {
19014
19753
  "json": {
@@ -19212,19 +19951,36 @@
19212
19951
  "multiple": false,
19213
19952
  "type": "option"
19214
19953
  },
19215
- "role": {
19216
- "char": "r",
19217
- "description": "Role to revoke",
19218
- "name": "role",
19954
+ "org": {
19955
+ "char": "o",
19956
+ "description": "Organization ID or name",
19957
+ "name": "org",
19219
19958
  "required": true,
19220
19959
  "hasDynamicHelp": false,
19221
19960
  "multiple": false,
19222
19961
  "type": "option"
19223
19962
  },
19224
- "scope": {
19225
- "char": "s",
19226
- "description": "Scope to remove (if not provided, removes entire role)",
19227
- "name": "scope",
19963
+ "mail": {
19964
+ "char": "m",
19965
+ "description": "User email (login)",
19966
+ "name": "mail",
19967
+ "required": true,
19968
+ "hasDynamicHelp": false,
19969
+ "multiple": false,
19970
+ "type": "option"
19971
+ },
19972
+ "first-name": {
19973
+ "description": "First name",
19974
+ "name": "first-name",
19975
+ "required": true,
19976
+ "hasDynamicHelp": false,
19977
+ "multiple": false,
19978
+ "type": "option"
19979
+ },
19980
+ "last-name": {
19981
+ "description": "Last name",
19982
+ "name": "last-name",
19983
+ "required": true,
19228
19984
  "hasDynamicHelp": false,
19229
19985
  "multiple": false,
19230
19986
  "type": "option"
@@ -19232,7 +19988,7 @@
19232
19988
  },
19233
19989
  "hasDynamicHelp": false,
19234
19990
  "hiddenAliases": [],
19235
- "id": "am:roles:revoke",
19991
+ "id": "am:users:create",
19236
19992
  "pluginAlias": "@salesforce/b2c-cli",
19237
19993
  "pluginName": "@salesforce/b2c-cli",
19238
19994
  "pluginType": "core",
@@ -19243,17 +19999,23 @@
19243
19999
  "dist",
19244
20000
  "commands",
19245
20001
  "am",
19246
- "roles",
19247
- "revoke.js"
20002
+ "users",
20003
+ "create.js"
19248
20004
  ]
19249
20005
  },
19250
- "am:users:create": {
20006
+ "am:users:delete": {
19251
20007
  "aliases": [],
19252
- "args": {},
19253
- "description": "Create a new Account Manager user",
20008
+ "args": {
20009
+ "login": {
20010
+ "description": "User login (email)",
20011
+ "name": "login",
20012
+ "required": true
20013
+ }
20014
+ },
20015
+ "description": "Delete an Account Manager user",
19254
20016
  "examples": [
19255
- "<%= config.bin %> <%= command.id %> --org org-id --mail user@example.com --first-name John --last-name Doe",
19256
- "<%= config.bin %> <%= command.id %> --org \"My Organization\" --mail user@example.com --first-name John --last-name Doe --json"
20017
+ "<%= config.bin %> <%= command.id %> user@example.com",
20018
+ "<%= config.bin %> <%= command.id %> user@example.com --purge"
19257
20019
  ],
19258
20020
  "flags": {
19259
20021
  "json": {
@@ -19457,44 +20219,16 @@
19457
20219
  "multiple": false,
19458
20220
  "type": "option"
19459
20221
  },
19460
- "org": {
19461
- "char": "o",
19462
- "description": "Organization ID or name",
19463
- "name": "org",
19464
- "required": true,
19465
- "hasDynamicHelp": false,
19466
- "multiple": false,
19467
- "type": "option"
19468
- },
19469
- "mail": {
19470
- "char": "m",
19471
- "description": "User email (login)",
19472
- "name": "mail",
19473
- "required": true,
19474
- "hasDynamicHelp": false,
19475
- "multiple": false,
19476
- "type": "option"
19477
- },
19478
- "first-name": {
19479
- "description": "First name",
19480
- "name": "first-name",
19481
- "required": true,
19482
- "hasDynamicHelp": false,
19483
- "multiple": false,
19484
- "type": "option"
19485
- },
19486
- "last-name": {
19487
- "description": "Last name",
19488
- "name": "last-name",
19489
- "required": true,
19490
- "hasDynamicHelp": false,
19491
- "multiple": false,
19492
- "type": "option"
20222
+ "purge": {
20223
+ "description": "Purge the user completely (hard delete). User must be in DELETED state first.",
20224
+ "name": "purge",
20225
+ "allowNo": false,
20226
+ "type": "boolean"
19493
20227
  }
19494
20228
  },
19495
20229
  "hasDynamicHelp": false,
19496
20230
  "hiddenAliases": [],
19497
- "id": "am:users:create",
20231
+ "id": "am:users:delete",
19498
20232
  "pluginAlias": "@salesforce/b2c-cli",
19499
20233
  "pluginName": "@salesforce/b2c-cli",
19500
20234
  "pluginType": "core",
@@ -19506,10 +20240,10 @@
19506
20240
  "commands",
19507
20241
  "am",
19508
20242
  "users",
19509
- "create.js"
20243
+ "delete.js"
19510
20244
  ]
19511
20245
  },
19512
- "am:users:delete": {
20246
+ "am:users:get": {
19513
20247
  "aliases": [],
19514
20248
  "args": {
19515
20249
  "login": {
@@ -19518,10 +20252,13 @@
19518
20252
  "required": true
19519
20253
  }
19520
20254
  },
19521
- "description": "Delete an Account Manager user",
20255
+ "description": "Get details of an Account Manager user",
19522
20256
  "examples": [
19523
20257
  "<%= config.bin %> <%= command.id %> user@example.com",
19524
- "<%= config.bin %> <%= command.id %> user@example.com --purge"
20258
+ "<%= config.bin %> <%= command.id %> user@example.com --json",
20259
+ "<%= config.bin %> <%= command.id %> user@example.com --expand-all",
20260
+ "<%= config.bin %> <%= command.id %> user@example.com --expand organizations",
20261
+ "<%= config.bin %> <%= command.id %> user@example.com --expand organizations,roles"
19525
20262
  ],
19526
20263
  "flags": {
19527
20264
  "json": {
@@ -19725,16 +20462,23 @@
19725
20462
  "multiple": false,
19726
20463
  "type": "option"
19727
20464
  },
19728
- "purge": {
19729
- "description": "Purge the user completely (hard delete). User must be in DELETED state first.",
19730
- "name": "purge",
20465
+ "expand": {
20466
+ "description": "Comma-separated list of fields to expand. Valid values: organizations, roles",
20467
+ "name": "expand",
20468
+ "hasDynamicHelp": false,
20469
+ "multiple": false,
20470
+ "type": "option"
20471
+ },
20472
+ "expand-all": {
20473
+ "description": "Expand both organizations and roles",
20474
+ "name": "expand-all",
19731
20475
  "allowNo": false,
19732
20476
  "type": "boolean"
19733
20477
  }
19734
20478
  },
19735
20479
  "hasDynamicHelp": false,
19736
20480
  "hiddenAliases": [],
19737
- "id": "am:users:delete",
20481
+ "id": "am:users:get",
19738
20482
  "pluginAlias": "@salesforce/b2c-cli",
19739
20483
  "pluginName": "@salesforce/b2c-cli",
19740
20484
  "pluginType": "core",
@@ -19746,25 +20490,19 @@
19746
20490
  "commands",
19747
20491
  "am",
19748
20492
  "users",
19749
- "delete.js"
20493
+ "get.js"
19750
20494
  ]
19751
20495
  },
19752
- "am:users:get": {
20496
+ "am:users:list": {
19753
20497
  "aliases": [],
19754
- "args": {
19755
- "login": {
19756
- "description": "User login (email)",
19757
- "name": "login",
19758
- "required": true
19759
- }
19760
- },
19761
- "description": "Get details of an Account Manager user",
20498
+ "args": {},
20499
+ "description": "List Account Manager users",
19762
20500
  "examples": [
19763
- "<%= config.bin %> <%= command.id %> user@example.com",
19764
- "<%= config.bin %> <%= command.id %> user@example.com --json",
19765
- "<%= config.bin %> <%= command.id %> user@example.com --expand-all",
19766
- "<%= config.bin %> <%= command.id %> user@example.com --expand organizations",
19767
- "<%= config.bin %> <%= command.id %> user@example.com --expand organizations,roles"
20501
+ "<%= config.bin %> <%= command.id %>",
20502
+ "<%= config.bin %> <%= command.id %> --size 50",
20503
+ "<%= config.bin %> <%= command.id %> --size 100",
20504
+ "<%= config.bin %> <%= command.id %> --extended",
20505
+ "<%= config.bin %> <%= command.id %> --json"
19768
20506
  ],
19769
20507
  "flags": {
19770
20508
  "json": {
@@ -19968,23 +20706,40 @@
19968
20706
  "multiple": false,
19969
20707
  "type": "option"
19970
20708
  },
19971
- "expand": {
19972
- "description": "Comma-separated list of fields to expand. Valid values: organizations, roles",
19973
- "name": "expand",
20709
+ "size": {
20710
+ "char": "s",
20711
+ "description": "Page size (default: 20, min: 1, max: 4000)",
20712
+ "name": "size",
19974
20713
  "hasDynamicHelp": false,
19975
20714
  "multiple": false,
19976
20715
  "type": "option"
19977
20716
  },
19978
- "expand-all": {
19979
- "description": "Expand both organizations and roles",
19980
- "name": "expand-all",
20717
+ "page": {
20718
+ "description": "Page number (zero-based index, default: 0, min: 0)",
20719
+ "name": "page",
20720
+ "hasDynamicHelp": false,
20721
+ "multiple": false,
20722
+ "type": "option"
20723
+ },
20724
+ "columns": {
20725
+ "char": "c",
20726
+ "description": "Columns to display (comma-separated). Available: mail, firstName, lastName, userState, passwordExpired, twoFAEnabled, linkedToSfIdentity, lastLoginDate, roles, organizations",
20727
+ "name": "columns",
20728
+ "hasDynamicHelp": false,
20729
+ "multiple": false,
20730
+ "type": "option"
20731
+ },
20732
+ "extended": {
20733
+ "char": "x",
20734
+ "description": "Show all columns including extended fields",
20735
+ "name": "extended",
19981
20736
  "allowNo": false,
19982
20737
  "type": "boolean"
19983
20738
  }
19984
20739
  },
19985
20740
  "hasDynamicHelp": false,
19986
20741
  "hiddenAliases": [],
19987
- "id": "am:users:get",
20742
+ "id": "am:users:list",
19988
20743
  "pluginAlias": "@salesforce/b2c-cli",
19989
20744
  "pluginName": "@salesforce/b2c-cli",
19990
20745
  "pluginType": "core",
@@ -19996,19 +20751,22 @@
19996
20751
  "commands",
19997
20752
  "am",
19998
20753
  "users",
19999
- "get.js"
20754
+ "list.js"
20000
20755
  ]
20001
20756
  },
20002
- "am:users:list": {
20757
+ "am:users:reset": {
20003
20758
  "aliases": [],
20004
- "args": {},
20005
- "description": "List Account Manager users",
20759
+ "args": {
20760
+ "login": {
20761
+ "description": "User login (email)",
20762
+ "name": "login",
20763
+ "required": true
20764
+ }
20765
+ },
20766
+ "description": "Reset an Account Manager user password",
20006
20767
  "examples": [
20007
- "<%= config.bin %> <%= command.id %>",
20008
- "<%= config.bin %> <%= command.id %> --size 50",
20009
- "<%= config.bin %> <%= command.id %> --size 100",
20010
- "<%= config.bin %> <%= command.id %> --extended",
20011
- "<%= config.bin %> <%= command.id %> --json"
20768
+ "<%= config.bin %> <%= command.id %> user@example.com",
20769
+ "<%= config.bin %> <%= command.id %> user@example.com --json"
20012
20770
  ],
20013
20771
  "flags": {
20014
20772
  "json": {
@@ -20211,41 +20969,11 @@
20211
20969
  "hasDynamicHelp": false,
20212
20970
  "multiple": false,
20213
20971
  "type": "option"
20214
- },
20215
- "size": {
20216
- "char": "s",
20217
- "description": "Page size (default: 20, min: 1, max: 4000)",
20218
- "name": "size",
20219
- "hasDynamicHelp": false,
20220
- "multiple": false,
20221
- "type": "option"
20222
- },
20223
- "page": {
20224
- "description": "Page number (zero-based index, default: 0, min: 0)",
20225
- "name": "page",
20226
- "hasDynamicHelp": false,
20227
- "multiple": false,
20228
- "type": "option"
20229
- },
20230
- "columns": {
20231
- "char": "c",
20232
- "description": "Columns to display (comma-separated). Available: mail, firstName, lastName, userState, passwordExpired, twoFAEnabled, linkedToSfIdentity, lastLoginDate, roles, organizations",
20233
- "name": "columns",
20234
- "hasDynamicHelp": false,
20235
- "multiple": false,
20236
- "type": "option"
20237
- },
20238
- "extended": {
20239
- "char": "x",
20240
- "description": "Show all columns including extended fields",
20241
- "name": "extended",
20242
- "allowNo": false,
20243
- "type": "boolean"
20244
20972
  }
20245
20973
  },
20246
20974
  "hasDynamicHelp": false,
20247
20975
  "hiddenAliases": [],
20248
- "id": "am:users:list",
20976
+ "id": "am:users:reset",
20249
20977
  "pluginAlias": "@salesforce/b2c-cli",
20250
20978
  "pluginName": "@salesforce/b2c-cli",
20251
20979
  "pluginType": "core",
@@ -20257,10 +20985,10 @@
20257
20985
  "commands",
20258
20986
  "am",
20259
20987
  "users",
20260
- "list.js"
20988
+ "reset.js"
20261
20989
  ]
20262
20990
  },
20263
- "am:users:reset": {
20991
+ "am:users:update": {
20264
20992
  "aliases": [],
20265
20993
  "args": {
20266
20994
  "login": {
@@ -20269,10 +20997,10 @@
20269
20997
  "required": true
20270
20998
  }
20271
20999
  },
20272
- "description": "Reset an Account Manager user password",
21000
+ "description": "Update an Account Manager user",
20273
21001
  "examples": [
20274
- "<%= config.bin %> <%= command.id %> user@example.com",
20275
- "<%= config.bin %> <%= command.id %> user@example.com --json"
21002
+ "<%= config.bin %> <%= command.id %> user@example.com --first-name Jane",
21003
+ "<%= config.bin %> <%= command.id %> user@example.com --last-name Smith --json"
20276
21004
  ],
20277
21005
  "flags": {
20278
21006
  "json": {
@@ -20475,11 +21203,25 @@
20475
21203
  "hasDynamicHelp": false,
20476
21204
  "multiple": false,
20477
21205
  "type": "option"
21206
+ },
21207
+ "first-name": {
21208
+ "description": "First name",
21209
+ "name": "first-name",
21210
+ "hasDynamicHelp": false,
21211
+ "multiple": false,
21212
+ "type": "option"
21213
+ },
21214
+ "last-name": {
21215
+ "description": "Last name",
21216
+ "name": "last-name",
21217
+ "hasDynamicHelp": false,
21218
+ "multiple": false,
21219
+ "type": "option"
20478
21220
  }
20479
21221
  },
20480
21222
  "hasDynamicHelp": false,
20481
21223
  "hiddenAliases": [],
20482
- "id": "am:users:reset",
21224
+ "id": "am:users:update",
20483
21225
  "pluginAlias": "@salesforce/b2c-cli",
20484
21226
  "pluginName": "@salesforce/b2c-cli",
20485
21227
  "pluginType": "core",
@@ -20491,23 +21233,13 @@
20491
21233
  "commands",
20492
21234
  "am",
20493
21235
  "users",
20494
- "reset.js"
21236
+ "update.js"
20495
21237
  ]
20496
21238
  },
20497
- "am:users:update": {
21239
+ "cip:report:customer-registration-trends": {
20498
21240
  "aliases": [],
20499
- "args": {
20500
- "login": {
20501
- "description": "User login (email)",
20502
- "name": "login",
20503
- "required": true
20504
- }
20505
- },
20506
- "description": "Update an Account Manager user",
20507
- "examples": [
20508
- "<%= config.bin %> <%= command.id %> user@example.com --first-name Jane",
20509
- "<%= config.bin %> <%= command.id %> user@example.com --last-name Smith --json"
20510
- ],
21241
+ "args": {},
21242
+ "description": "Track customer registration trends by date and device\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-customer-registration-trends",
20511
21243
  "flags": {
20512
21244
  "json": {
20513
21245
  "description": "Output result as JSON",
@@ -20710,16 +21442,89 @@
20710
21442
  "multiple": false,
20711
21443
  "type": "option"
20712
21444
  },
20713
- "first-name": {
20714
- "description": "First name",
20715
- "name": "first-name",
21445
+ "cip-host": {
21446
+ "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
21447
+ "env": "SFCC_CIP_HOST",
21448
+ "helpGroup": "QUERY",
21449
+ "name": "cip-host",
20716
21450
  "hasDynamicHelp": false,
20717
21451
  "multiple": false,
20718
21452
  "type": "option"
20719
21453
  },
20720
- "last-name": {
20721
- "description": "Last name",
20722
- "name": "last-name",
21454
+ "staging": {
21455
+ "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
21456
+ "env": "SFCC_CIP_STAGING",
21457
+ "helpGroup": "QUERY",
21458
+ "name": "staging",
21459
+ "allowNo": false,
21460
+ "type": "boolean"
21461
+ },
21462
+ "from": {
21463
+ "description": "Inclusive start date (YYYY-MM-DD)",
21464
+ "helpGroup": "QUERY",
21465
+ "name": "from",
21466
+ "default": "2026-03-01",
21467
+ "hasDynamicHelp": false,
21468
+ "multiple": false,
21469
+ "type": "option"
21470
+ },
21471
+ "to": {
21472
+ "description": "Inclusive end date (YYYY-MM-DD)",
21473
+ "helpGroup": "QUERY",
21474
+ "name": "to",
21475
+ "default": "2026-03-22",
21476
+ "hasDynamicHelp": false,
21477
+ "multiple": false,
21478
+ "type": "option"
21479
+ },
21480
+ "format": {
21481
+ "description": "Output format",
21482
+ "helpGroup": "QUERY",
21483
+ "name": "format",
21484
+ "default": "table",
21485
+ "hasDynamicHelp": false,
21486
+ "multiple": false,
21487
+ "options": [
21488
+ "table",
21489
+ "json",
21490
+ "csv"
21491
+ ],
21492
+ "type": "option"
21493
+ },
21494
+ "fetch-size": {
21495
+ "description": "Frame fetch size for CIP paging",
21496
+ "helpGroup": "QUERY",
21497
+ "name": "fetch-size",
21498
+ "default": 1000,
21499
+ "hasDynamicHelp": false,
21500
+ "multiple": false,
21501
+ "type": "option"
21502
+ },
21503
+ "describe": {
21504
+ "description": "Show report details and expected parameters",
21505
+ "exclusive": [
21506
+ "sql"
21507
+ ],
21508
+ "helpGroup": "QUERY",
21509
+ "name": "describe",
21510
+ "allowNo": false,
21511
+ "type": "boolean"
21512
+ },
21513
+ "sql": {
21514
+ "description": "Print generated SQL and exit",
21515
+ "exclusive": [
21516
+ "describe"
21517
+ ],
21518
+ "helpGroup": "QUERY",
21519
+ "name": "sql",
21520
+ "allowNo": false,
21521
+ "type": "boolean"
21522
+ },
21523
+ "site-id": {
21524
+ "description": "Site ID parameter for CIP report filters",
21525
+ "helpGroup": "QUERY",
21526
+ "name": "site-id",
21527
+ "required": false,
20723
21528
  "hasDynamicHelp": false,
20724
21529
  "multiple": false,
20725
21530
  "type": "option"
@@ -20727,25 +21532,45 @@
20727
21532
  },
20728
21533
  "hasDynamicHelp": false,
20729
21534
  "hiddenAliases": [],
20730
- "id": "am:users:update",
21535
+ "id": "cip:report:customer-registration-trends",
20731
21536
  "pluginAlias": "@salesforce/b2c-cli",
20732
21537
  "pluginName": "@salesforce/b2c-cli",
20733
21538
  "pluginType": "core",
20734
21539
  "strict": true,
20735
21540
  "enableJsonFlag": true,
21541
+ "reportFlags": {
21542
+ "describe": {
21543
+ "description": "Show report details and expected parameters",
21544
+ "exclusive": [
21545
+ "sql"
21546
+ ],
21547
+ "helpGroup": "QUERY",
21548
+ "allowNo": false,
21549
+ "type": "boolean"
21550
+ },
21551
+ "sql": {
21552
+ "description": "Print generated SQL and exit",
21553
+ "exclusive": [
21554
+ "describe"
21555
+ ],
21556
+ "helpGroup": "QUERY",
21557
+ "allowNo": false,
21558
+ "type": "boolean"
21559
+ }
21560
+ },
20736
21561
  "isESM": true,
20737
21562
  "relativePath": [
20738
21563
  "dist",
20739
21564
  "commands",
20740
- "am",
20741
- "users",
20742
- "update.js"
21565
+ "cip",
21566
+ "report",
21567
+ "customer-registration-trends.js"
20743
21568
  ]
20744
21569
  },
20745
- "cip:report:customer-registration-trends": {
21570
+ "cip:report:ocapi-requests": {
20746
21571
  "aliases": [],
20747
21572
  "args": {},
20748
- "description": "Track customer registration trends by date and device\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-customer-registration-trends",
21573
+ "description": "Analyze OCAPI request volume and response latency\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-ocapi-requests",
20749
21574
  "flags": {
20750
21575
  "json": {
20751
21576
  "description": "Output result as JSON",
@@ -20978,7 +21803,7 @@
20978
21803
  "description": "Inclusive end date (YYYY-MM-DD)",
20979
21804
  "helpGroup": "QUERY",
20980
21805
  "name": "to",
20981
- "default": "2026-03-18",
21806
+ "default": "2026-03-22",
20982
21807
  "hasDynamicHelp": false,
20983
21808
  "multiple": false,
20984
21809
  "type": "option"
@@ -21038,7 +21863,7 @@
21038
21863
  },
21039
21864
  "hasDynamicHelp": false,
21040
21865
  "hiddenAliases": [],
21041
- "id": "cip:report:customer-registration-trends",
21866
+ "id": "cip:report:ocapi-requests",
21042
21867
  "pluginAlias": "@salesforce/b2c-cli",
21043
21868
  "pluginName": "@salesforce/b2c-cli",
21044
21869
  "pluginType": "core",
@@ -21070,13 +21895,13 @@
21070
21895
  "commands",
21071
21896
  "cip",
21072
21897
  "report",
21073
- "customer-registration-trends.js"
21898
+ "ocapi-requests.js"
21074
21899
  ]
21075
21900
  },
21076
- "cip:report:ocapi-requests": {
21901
+ "cip:report:payment-method-performance": {
21077
21902
  "aliases": [],
21078
21903
  "args": {},
21079
- "description": "Analyze OCAPI request volume and response latency\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-ocapi-requests",
21904
+ "description": "Track payment method adoption and transaction metrics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-payment-method-performance",
21080
21905
  "flags": {
21081
21906
  "json": {
21082
21907
  "description": "Output result as JSON",
@@ -21309,7 +22134,7 @@
21309
22134
  "description": "Inclusive end date (YYYY-MM-DD)",
21310
22135
  "helpGroup": "QUERY",
21311
22136
  "name": "to",
21312
- "default": "2026-03-18",
22137
+ "default": "2026-03-22",
21313
22138
  "hasDynamicHelp": false,
21314
22139
  "multiple": false,
21315
22140
  "type": "option"
@@ -21369,7 +22194,7 @@
21369
22194
  },
21370
22195
  "hasDynamicHelp": false,
21371
22196
  "hiddenAliases": [],
21372
- "id": "cip:report:ocapi-requests",
22197
+ "id": "cip:report:payment-method-performance",
21373
22198
  "pluginAlias": "@salesforce/b2c-cli",
21374
22199
  "pluginName": "@salesforce/b2c-cli",
21375
22200
  "pluginType": "core",
@@ -21401,13 +22226,13 @@
21401
22226
  "commands",
21402
22227
  "cip",
21403
22228
  "report",
21404
- "ocapi-requests.js"
22229
+ "payment-method-performance.js"
21405
22230
  ]
21406
22231
  },
21407
- "cip:report:payment-method-performance": {
22232
+ "cip:report:product-co-purchase-analysis": {
21408
22233
  "aliases": [],
21409
22234
  "args": {},
21410
- "description": "Track payment method adoption and transaction metrics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-payment-method-performance",
22235
+ "description": "Analyze frequently co-purchased products\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-product-co-purchase-analysis",
21411
22236
  "flags": {
21412
22237
  "json": {
21413
22238
  "description": "Output result as JSON",
@@ -21640,7 +22465,7 @@
21640
22465
  "description": "Inclusive end date (YYYY-MM-DD)",
21641
22466
  "helpGroup": "QUERY",
21642
22467
  "name": "to",
21643
- "default": "2026-03-18",
22468
+ "default": "2026-03-22",
21644
22469
  "hasDynamicHelp": false,
21645
22470
  "multiple": false,
21646
22471
  "type": "option"
@@ -21700,7 +22525,7 @@
21700
22525
  },
21701
22526
  "hasDynamicHelp": false,
21702
22527
  "hiddenAliases": [],
21703
- "id": "cip:report:payment-method-performance",
22528
+ "id": "cip:report:product-co-purchase-analysis",
21704
22529
  "pluginAlias": "@salesforce/b2c-cli",
21705
22530
  "pluginName": "@salesforce/b2c-cli",
21706
22531
  "pluginType": "core",
@@ -21732,13 +22557,13 @@
21732
22557
  "commands",
21733
22558
  "cip",
21734
22559
  "report",
21735
- "payment-method-performance.js"
22560
+ "product-co-purchase-analysis.js"
21736
22561
  ]
21737
22562
  },
21738
- "cip:report:product-co-purchase-analysis": {
22563
+ "cip:report:promotion-discount-analysis": {
21739
22564
  "aliases": [],
21740
22565
  "args": {},
21741
- "description": "Analyze frequently co-purchased products\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-product-co-purchase-analysis",
22566
+ "description": "Measure promotional discount impact on orders\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-promotion-discount-analysis",
21742
22567
  "flags": {
21743
22568
  "json": {
21744
22569
  "description": "Output result as JSON",
@@ -21971,7 +22796,7 @@
21971
22796
  "description": "Inclusive end date (YYYY-MM-DD)",
21972
22797
  "helpGroup": "QUERY",
21973
22798
  "name": "to",
21974
- "default": "2026-03-18",
22799
+ "default": "2026-03-22",
21975
22800
  "hasDynamicHelp": false,
21976
22801
  "multiple": false,
21977
22802
  "type": "option"
@@ -22018,20 +22843,11 @@
22018
22843
  "name": "sql",
22019
22844
  "allowNo": false,
22020
22845
  "type": "boolean"
22021
- },
22022
- "site-id": {
22023
- "description": "Site ID parameter for CIP report filters",
22024
- "helpGroup": "QUERY",
22025
- "name": "site-id",
22026
- "required": false,
22027
- "hasDynamicHelp": false,
22028
- "multiple": false,
22029
- "type": "option"
22030
22846
  }
22031
22847
  },
22032
22848
  "hasDynamicHelp": false,
22033
22849
  "hiddenAliases": [],
22034
- "id": "cip:report:product-co-purchase-analysis",
22850
+ "id": "cip:report:promotion-discount-analysis",
22035
22851
  "pluginAlias": "@salesforce/b2c-cli",
22036
22852
  "pluginName": "@salesforce/b2c-cli",
22037
22853
  "pluginType": "core",
@@ -22063,13 +22879,13 @@
22063
22879
  "commands",
22064
22880
  "cip",
22065
22881
  "report",
22066
- "product-co-purchase-analysis.js"
22882
+ "promotion-discount-analysis.js"
22067
22883
  ]
22068
22884
  },
22069
- "cip:report:promotion-discount-analysis": {
22885
+ "cip:report:sales-analytics": {
22070
22886
  "aliases": [],
22071
22887
  "args": {},
22072
- "description": "Measure promotional discount impact on orders\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-promotion-discount-analysis",
22888
+ "description": "Track daily sales performance with AOV and AOS metrics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-sales-analytics",
22073
22889
  "flags": {
22074
22890
  "json": {
22075
22891
  "description": "Output result as JSON",
@@ -22302,7 +23118,7 @@
22302
23118
  "description": "Inclusive end date (YYYY-MM-DD)",
22303
23119
  "helpGroup": "QUERY",
22304
23120
  "name": "to",
22305
- "default": "2026-03-18",
23121
+ "default": "2026-03-22",
22306
23122
  "hasDynamicHelp": false,
22307
23123
  "multiple": false,
22308
23124
  "type": "option"
@@ -22349,11 +23165,20 @@
22349
23165
  "name": "sql",
22350
23166
  "allowNo": false,
22351
23167
  "type": "boolean"
23168
+ },
23169
+ "site-id": {
23170
+ "description": "Site ID parameter for CIP report filters",
23171
+ "helpGroup": "QUERY",
23172
+ "name": "site-id",
23173
+ "required": false,
23174
+ "hasDynamicHelp": false,
23175
+ "multiple": false,
23176
+ "type": "option"
22352
23177
  }
22353
23178
  },
22354
23179
  "hasDynamicHelp": false,
22355
23180
  "hiddenAliases": [],
22356
- "id": "cip:report:promotion-discount-analysis",
23181
+ "id": "cip:report:sales-analytics",
22357
23182
  "pluginAlias": "@salesforce/b2c-cli",
22358
23183
  "pluginName": "@salesforce/b2c-cli",
22359
23184
  "pluginType": "core",
@@ -22385,13 +23210,13 @@
22385
23210
  "commands",
22386
23211
  "cip",
22387
23212
  "report",
22388
- "promotion-discount-analysis.js"
23213
+ "sales-analytics.js"
22389
23214
  ]
22390
23215
  },
22391
- "cip:report:sales-analytics": {
23216
+ "cip:report:sales-summary": {
22392
23217
  "aliases": [],
22393
23218
  "args": {},
22394
- "description": "Track daily sales performance with AOV and AOS metrics\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-sales-analytics",
23219
+ "description": "Query detailed sales records for custom analysis\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-sales-summary",
22395
23220
  "flags": {
22396
23221
  "json": {
22397
23222
  "description": "Output result as JSON",
@@ -22624,7 +23449,7 @@
22624
23449
  "description": "Inclusive end date (YYYY-MM-DD)",
22625
23450
  "helpGroup": "QUERY",
22626
23451
  "name": "to",
22627
- "default": "2026-03-18",
23452
+ "default": "2026-03-22",
22628
23453
  "hasDynamicHelp": false,
22629
23454
  "multiple": false,
22630
23455
  "type": "option"
@@ -22684,7 +23509,7 @@
22684
23509
  },
22685
23510
  "hasDynamicHelp": false,
22686
23511
  "hiddenAliases": [],
22687
- "id": "cip:report:sales-analytics",
23512
+ "id": "cip:report:sales-summary",
22688
23513
  "pluginAlias": "@salesforce/b2c-cli",
22689
23514
  "pluginName": "@salesforce/b2c-cli",
22690
23515
  "pluginType": "core",
@@ -22716,13 +23541,13 @@
22716
23541
  "commands",
22717
23542
  "cip",
22718
23543
  "report",
22719
- "sales-analytics.js"
23544
+ "sales-summary.js"
22720
23545
  ]
22721
23546
  },
22722
- "cip:report:sales-summary": {
23547
+ "cip:report:search-query-performance": {
22723
23548
  "aliases": [],
22724
23549
  "args": {},
22725
- "description": "Query detailed sales records for custom analysis\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-sales-summary",
23550
+ "description": "Identify search terms driving revenue and conversion\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-search-query-performance",
22726
23551
  "flags": {
22727
23552
  "json": {
22728
23553
  "description": "Output result as JSON",
@@ -22955,7 +23780,7 @@
22955
23780
  "description": "Inclusive end date (YYYY-MM-DD)",
22956
23781
  "helpGroup": "QUERY",
22957
23782
  "name": "to",
22958
- "default": "2026-03-18",
23783
+ "default": "2026-03-22",
22959
23784
  "hasDynamicHelp": false,
22960
23785
  "multiple": false,
22961
23786
  "type": "option"
@@ -23003,6 +23828,19 @@
23003
23828
  "allowNo": false,
23004
23829
  "type": "boolean"
23005
23830
  },
23831
+ "has-results": {
23832
+ "description": "Filter by result-bearing searches",
23833
+ "helpGroup": "QUERY",
23834
+ "name": "has-results",
23835
+ "required": false,
23836
+ "hasDynamicHelp": false,
23837
+ "multiple": false,
23838
+ "options": [
23839
+ "false",
23840
+ "true"
23841
+ ],
23842
+ "type": "option"
23843
+ },
23006
23844
  "site-id": {
23007
23845
  "description": "Site ID parameter for CIP report filters",
23008
23846
  "helpGroup": "QUERY",
@@ -23015,7 +23853,7 @@
23015
23853
  },
23016
23854
  "hasDynamicHelp": false,
23017
23855
  "hiddenAliases": [],
23018
- "id": "cip:report:sales-summary",
23856
+ "id": "cip:report:search-query-performance",
23019
23857
  "pluginAlias": "@salesforce/b2c-cli",
23020
23858
  "pluginName": "@salesforce/b2c-cli",
23021
23859
  "pluginType": "core",
@@ -23047,13 +23885,13 @@
23047
23885
  "commands",
23048
23886
  "cip",
23049
23887
  "report",
23050
- "sales-summary.js"
23888
+ "search-query-performance.js"
23051
23889
  ]
23052
23890
  },
23053
- "cip:report:search-query-performance": {
23891
+ "cip:report:top-referrers": {
23054
23892
  "aliases": [],
23055
23893
  "args": {},
23056
- "description": "Identify search terms driving revenue and conversion\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-search-query-performance",
23894
+ "description": "Identify top traffic referrers and visit share\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-top-referrers",
23057
23895
  "flags": {
23058
23896
  "json": {
23059
23897
  "description": "Output result as JSON",
@@ -23286,7 +24124,7 @@
23286
24124
  "description": "Inclusive end date (YYYY-MM-DD)",
23287
24125
  "helpGroup": "QUERY",
23288
24126
  "name": "to",
23289
- "default": "2026-03-18",
24127
+ "default": "2026-03-22",
23290
24128
  "hasDynamicHelp": false,
23291
24129
  "multiple": false,
23292
24130
  "type": "option"
@@ -23334,17 +24172,13 @@
23334
24172
  "allowNo": false,
23335
24173
  "type": "boolean"
23336
24174
  },
23337
- "has-results": {
23338
- "description": "Filter by result-bearing searches",
24175
+ "limit": {
24176
+ "description": "Maximum number of rows",
23339
24177
  "helpGroup": "QUERY",
23340
- "name": "has-results",
24178
+ "name": "limit",
23341
24179
  "required": false,
23342
24180
  "hasDynamicHelp": false,
23343
24181
  "multiple": false,
23344
- "options": [
23345
- "false",
23346
- "true"
23347
- ],
23348
24182
  "type": "option"
23349
24183
  },
23350
24184
  "site-id": {
@@ -23359,7 +24193,7 @@
23359
24193
  },
23360
24194
  "hasDynamicHelp": false,
23361
24195
  "hiddenAliases": [],
23362
- "id": "cip:report:search-query-performance",
24196
+ "id": "cip:report:top-referrers",
23363
24197
  "pluginAlias": "@salesforce/b2c-cli",
23364
24198
  "pluginName": "@salesforce/b2c-cli",
23365
24199
  "pluginType": "core",
@@ -23391,13 +24225,13 @@
23391
24225
  "commands",
23392
24226
  "cip",
23393
24227
  "report",
23394
- "search-query-performance.js"
24228
+ "top-referrers.js"
23395
24229
  ]
23396
24230
  },
23397
- "cip:report:top-referrers": {
24231
+ "cip:report:top-selling-products": {
23398
24232
  "aliases": [],
23399
24233
  "args": {},
23400
- "description": "Identify top traffic referrers and visit share\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-top-referrers",
24234
+ "description": "Identify top selling products across channels\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-top-selling-products",
23401
24235
  "flags": {
23402
24236
  "json": {
23403
24237
  "description": "Output result as JSON",
@@ -23630,7 +24464,7 @@
23630
24464
  "description": "Inclusive end date (YYYY-MM-DD)",
23631
24465
  "helpGroup": "QUERY",
23632
24466
  "name": "to",
23633
- "default": "2026-03-18",
24467
+ "default": "2026-03-22",
23634
24468
  "hasDynamicHelp": false,
23635
24469
  "multiple": false,
23636
24470
  "type": "option"
@@ -23678,15 +24512,6 @@
23678
24512
  "allowNo": false,
23679
24513
  "type": "boolean"
23680
24514
  },
23681
- "limit": {
23682
- "description": "Maximum number of rows",
23683
- "helpGroup": "QUERY",
23684
- "name": "limit",
23685
- "required": false,
23686
- "hasDynamicHelp": false,
23687
- "multiple": false,
23688
- "type": "option"
23689
- },
23690
24515
  "site-id": {
23691
24516
  "description": "Site ID parameter for CIP report filters",
23692
24517
  "helpGroup": "QUERY",
@@ -23699,7 +24524,7 @@
23699
24524
  },
23700
24525
  "hasDynamicHelp": false,
23701
24526
  "hiddenAliases": [],
23702
- "id": "cip:report:top-referrers",
24527
+ "id": "cip:report:top-selling-products",
23703
24528
  "pluginAlias": "@salesforce/b2c-cli",
23704
24529
  "pluginName": "@salesforce/b2c-cli",
23705
24530
  "pluginType": "core",
@@ -23731,21 +24556,20 @@
23731
24556
  "commands",
23732
24557
  "cip",
23733
24558
  "report",
23734
- "top-referrers.js"
24559
+ "top-selling-products.js"
23735
24560
  ]
23736
24561
  },
23737
- "cip:report:top-selling-products": {
24562
+ "auth:client": {
23738
24563
  "aliases": [],
23739
24564
  "args": {},
23740
- "description": "Identify top selling products across channels\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html#b2c-cip-report-top-selling-products",
24565
+ "description": "Authenticate an API client and save session",
24566
+ "examples": [
24567
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret>",
24568
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --renew",
24569
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --user <email> --user-password <pwd>",
24570
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --grant-type client_credentials"
24571
+ ],
23741
24572
  "flags": {
23742
- "json": {
23743
- "description": "Output result as JSON",
23744
- "helpGroup": "GLOBAL",
23745
- "name": "json",
23746
- "allowNo": false,
23747
- "type": "boolean"
23748
- },
23749
24573
  "log-level": {
23750
24574
  "description": "Set logging verbosity level",
23751
24575
  "env": "SFCC_LOG_LEVEL",
@@ -23772,6 +24596,13 @@
23772
24596
  "allowNo": false,
23773
24597
  "type": "boolean"
23774
24598
  },
24599
+ "json": {
24600
+ "description": "Output result as JSON",
24601
+ "helpGroup": "GLOBAL",
24602
+ "name": "json",
24603
+ "allowNo": false,
24604
+ "type": "boolean"
24605
+ },
23775
24606
  "jsonl": {
23776
24607
  "aliases": [
23777
24608
  "json-logs"
@@ -23863,7 +24694,7 @@
23863
24694
  "type": "option"
23864
24695
  },
23865
24696
  "client-secret": {
23866
- "description": "Client Secret for OAuth",
24697
+ "description": "Client secret for OAuth",
23867
24698
  "env": "SFCC_CLIENT_SECRET",
23868
24699
  "helpGroup": "AUTH",
23869
24700
  "name": "client-secret",
@@ -23871,6 +24702,15 @@
23871
24702
  "multiple": false,
23872
24703
  "type": "option"
23873
24704
  },
24705
+ "account-manager-host": {
24706
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
24707
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
24708
+ "helpGroup": "AUTH",
24709
+ "name": "account-manager-host",
24710
+ "hasDynamicHelp": false,
24711
+ "multiple": false,
24712
+ "type": "option"
24713
+ },
23874
24714
  "auth-scope": {
23875
24715
  "description": "OAuth scopes to request (comma-separated)",
23876
24716
  "env": "SFCC_OAUTH_SCOPES",
@@ -23881,56 +24721,183 @@
23881
24721
  "multiple": true,
23882
24722
  "type": "option"
23883
24723
  },
23884
- "short-code": {
23885
- "description": "SCAPI short code",
23886
- "env": "SFCC_SHORTCODE",
23887
- "helpGroup": "AUTH",
23888
- "name": "short-code",
24724
+ "renew": {
24725
+ "char": "r",
24726
+ "description": "Enable automatic token renewal (stores credentials for later refresh)",
24727
+ "name": "renew",
24728
+ "allowNo": false,
24729
+ "type": "boolean"
24730
+ },
24731
+ "grant-type": {
24732
+ "char": "t",
24733
+ "description": "OAuth grant type (default: auto-detect based on provided credentials)",
24734
+ "name": "grant-type",
23889
24735
  "hasDynamicHelp": false,
23890
24736
  "multiple": false,
24737
+ "options": [
24738
+ "client_credentials",
24739
+ "password"
24740
+ ],
23891
24741
  "type": "option"
23892
24742
  },
23893
- "tenant-id": {
23894
- "aliases": [
23895
- "tenant"
23896
- ],
23897
- "description": "Organization/tenant ID",
23898
- "env": "SFCC_TENANT_ID",
23899
- "helpGroup": "AUTH",
23900
- "name": "tenant-id",
24743
+ "user": {
24744
+ "description": "Username for resource owner password credentials grant",
24745
+ "env": "SFCC_OAUTH_USER_NAME",
24746
+ "name": "user",
23901
24747
  "hasDynamicHelp": false,
23902
24748
  "multiple": false,
23903
24749
  "type": "option"
23904
24750
  },
23905
- "auth-methods": {
23906
- "description": "Allowed auth methods in priority order (comma-separated)",
23907
- "env": "SFCC_AUTH_METHODS",
23908
- "exclusive": [
23909
- "user-auth"
23910
- ],
23911
- "helpGroup": "AUTH",
23912
- "name": "auth-methods",
23913
- "delimiter": ",",
24751
+ "user-password": {
24752
+ "description": "Password for resource owner password credentials grant",
24753
+ "env": "SFCC_OAUTH_USER_PASSWORD",
24754
+ "name": "user-password",
23914
24755
  "hasDynamicHelp": false,
23915
- "multiple": true,
24756
+ "multiple": false,
24757
+ "type": "option"
24758
+ }
24759
+ },
24760
+ "hasDynamicHelp": false,
24761
+ "hiddenAliases": [
24762
+ "client:auth"
24763
+ ],
24764
+ "id": "auth:client",
24765
+ "pluginAlias": "@salesforce/b2c-cli",
24766
+ "pluginName": "@salesforce/b2c-cli",
24767
+ "pluginType": "core",
24768
+ "strict": true,
24769
+ "enableJsonFlag": false,
24770
+ "isESM": true,
24771
+ "relativePath": [
24772
+ "dist",
24773
+ "commands",
24774
+ "auth",
24775
+ "client",
24776
+ "index.js"
24777
+ ]
24778
+ },
24779
+ "auth:client:renew": {
24780
+ "aliases": [],
24781
+ "args": {},
24782
+ "description": "Renew the client authentication token",
24783
+ "examples": [
24784
+ "<%= config.bin %> <%= command.id %>"
24785
+ ],
24786
+ "flags": {
24787
+ "log-level": {
24788
+ "description": "Set logging verbosity level",
24789
+ "env": "SFCC_LOG_LEVEL",
24790
+ "helpGroup": "GLOBAL",
24791
+ "name": "log-level",
24792
+ "hasDynamicHelp": false,
24793
+ "multiple": false,
23916
24794
  "options": [
23917
- "client-credentials",
23918
- "implicit",
23919
- "basic",
23920
- "api-key"
24795
+ "trace",
24796
+ "debug",
24797
+ "info",
24798
+ "warn",
24799
+ "error",
24800
+ "silent"
23921
24801
  ],
23922
24802
  "type": "option"
23923
24803
  },
23924
- "user-auth": {
23925
- "description": "Use browser-based user authentication (implicit OAuth flow)",
23926
- "exclusive": [
23927
- "auth-methods"
24804
+ "debug": {
24805
+ "char": "D",
24806
+ "description": "Enable debug logging (shorthand for --log-level debug)",
24807
+ "env": "SFCC_DEBUG",
24808
+ "helpGroup": "GLOBAL",
24809
+ "name": "debug",
24810
+ "allowNo": false,
24811
+ "type": "boolean"
24812
+ },
24813
+ "json": {
24814
+ "description": "Output result as JSON",
24815
+ "helpGroup": "GLOBAL",
24816
+ "name": "json",
24817
+ "allowNo": false,
24818
+ "type": "boolean"
24819
+ },
24820
+ "jsonl": {
24821
+ "aliases": [
24822
+ "json-logs"
23928
24823
  ],
23929
- "helpGroup": "AUTH",
23930
- "name": "user-auth",
24824
+ "description": "Output log messages as JSON lines",
24825
+ "env": "SFCC_JSON_LOGS",
24826
+ "helpGroup": "GLOBAL",
24827
+ "name": "jsonl",
23931
24828
  "allowNo": false,
23932
24829
  "type": "boolean"
23933
24830
  },
24831
+ "lang": {
24832
+ "char": "L",
24833
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
24834
+ "helpGroup": "GLOBAL",
24835
+ "name": "lang",
24836
+ "hasDynamicHelp": false,
24837
+ "multiple": false,
24838
+ "type": "option"
24839
+ },
24840
+ "config": {
24841
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
24842
+ "env": "SFCC_CONFIG",
24843
+ "helpGroup": "GLOBAL",
24844
+ "name": "config",
24845
+ "hasDynamicHelp": false,
24846
+ "multiple": false,
24847
+ "type": "option"
24848
+ },
24849
+ "instance": {
24850
+ "char": "i",
24851
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
24852
+ "env": "SFCC_INSTANCE",
24853
+ "helpGroup": "GLOBAL",
24854
+ "name": "instance",
24855
+ "hasDynamicHelp": false,
24856
+ "multiple": false,
24857
+ "type": "option"
24858
+ },
24859
+ "project-directory": {
24860
+ "aliases": [
24861
+ "working-directory"
24862
+ ],
24863
+ "description": "Project directory",
24864
+ "env": "SFCC_PROJECT_DIRECTORY",
24865
+ "helpGroup": "GLOBAL",
24866
+ "name": "project-directory",
24867
+ "hasDynamicHelp": false,
24868
+ "multiple": false,
24869
+ "type": "option"
24870
+ },
24871
+ "extra-query": {
24872
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
24873
+ "env": "SFCC_EXTRA_QUERY",
24874
+ "helpGroup": "GLOBAL",
24875
+ "hidden": true,
24876
+ "name": "extra-query",
24877
+ "hasDynamicHelp": false,
24878
+ "multiple": false,
24879
+ "type": "option"
24880
+ },
24881
+ "extra-body": {
24882
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
24883
+ "env": "SFCC_EXTRA_BODY",
24884
+ "helpGroup": "GLOBAL",
24885
+ "hidden": true,
24886
+ "name": "extra-body",
24887
+ "hasDynamicHelp": false,
24888
+ "multiple": false,
24889
+ "type": "option"
24890
+ },
24891
+ "extra-headers": {
24892
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
24893
+ "env": "SFCC_EXTRA_HEADERS",
24894
+ "helpGroup": "GLOBAL",
24895
+ "hidden": true,
24896
+ "name": "extra-headers",
24897
+ "hasDynamicHelp": false,
24898
+ "multiple": false,
24899
+ "type": "option"
24900
+ },
23934
24901
  "account-manager-host": {
23935
24902
  "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
23936
24903
  "env": "SFCC_ACCOUNT_MANAGER_HOST",
@@ -23939,130 +24906,168 @@
23939
24906
  "hasDynamicHelp": false,
23940
24907
  "multiple": false,
23941
24908
  "type": "option"
24909
+ }
24910
+ },
24911
+ "hasDynamicHelp": false,
24912
+ "hiddenAliases": [
24913
+ "client:auth:renew"
24914
+ ],
24915
+ "id": "auth:client:renew",
24916
+ "pluginAlias": "@salesforce/b2c-cli",
24917
+ "pluginName": "@salesforce/b2c-cli",
24918
+ "pluginType": "core",
24919
+ "strict": true,
24920
+ "enableJsonFlag": false,
24921
+ "isESM": true,
24922
+ "relativePath": [
24923
+ "dist",
24924
+ "commands",
24925
+ "auth",
24926
+ "client",
24927
+ "renew.js"
24928
+ ]
24929
+ },
24930
+ "auth:client:token": {
24931
+ "aliases": [],
24932
+ "args": {},
24933
+ "description": "Return the current authentication token (stateful)",
24934
+ "examples": [
24935
+ "<%= config.bin %> <%= command.id %>",
24936
+ "<%= config.bin %> <%= command.id %> --json"
24937
+ ],
24938
+ "flags": {
24939
+ "json": {
24940
+ "description": "Output result as JSON",
24941
+ "helpGroup": "GLOBAL",
24942
+ "name": "json",
24943
+ "allowNo": false,
24944
+ "type": "boolean"
23942
24945
  },
23943
- "cip-host": {
23944
- "description": "CIP host override (default: jdbc.analytics.commercecloud.salesforce.com)",
23945
- "env": "SFCC_CIP_HOST",
23946
- "helpGroup": "QUERY",
23947
- "name": "cip-host",
24946
+ "log-level": {
24947
+ "description": "Set logging verbosity level",
24948
+ "env": "SFCC_LOG_LEVEL",
24949
+ "helpGroup": "GLOBAL",
24950
+ "name": "log-level",
23948
24951
  "hasDynamicHelp": false,
23949
24952
  "multiple": false,
24953
+ "options": [
24954
+ "trace",
24955
+ "debug",
24956
+ "info",
24957
+ "warn",
24958
+ "error",
24959
+ "silent"
24960
+ ],
23950
24961
  "type": "option"
23951
24962
  },
23952
- "staging": {
23953
- "description": "Use staging analytics host (jdbc.stg.analytics.commercecloud.salesforce.com)",
23954
- "env": "SFCC_CIP_STAGING",
23955
- "helpGroup": "QUERY",
23956
- "name": "staging",
24963
+ "debug": {
24964
+ "char": "D",
24965
+ "description": "Enable debug logging (shorthand for --log-level debug)",
24966
+ "env": "SFCC_DEBUG",
24967
+ "helpGroup": "GLOBAL",
24968
+ "name": "debug",
23957
24969
  "allowNo": false,
23958
24970
  "type": "boolean"
23959
24971
  },
23960
- "from": {
23961
- "description": "Inclusive start date (YYYY-MM-DD)",
23962
- "helpGroup": "QUERY",
23963
- "name": "from",
23964
- "default": "2026-03-01",
24972
+ "jsonl": {
24973
+ "aliases": [
24974
+ "json-logs"
24975
+ ],
24976
+ "description": "Output log messages as JSON lines",
24977
+ "env": "SFCC_JSON_LOGS",
24978
+ "helpGroup": "GLOBAL",
24979
+ "name": "jsonl",
24980
+ "allowNo": false,
24981
+ "type": "boolean"
24982
+ },
24983
+ "lang": {
24984
+ "char": "L",
24985
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
24986
+ "helpGroup": "GLOBAL",
24987
+ "name": "lang",
23965
24988
  "hasDynamicHelp": false,
23966
24989
  "multiple": false,
23967
24990
  "type": "option"
23968
24991
  },
23969
- "to": {
23970
- "description": "Inclusive end date (YYYY-MM-DD)",
23971
- "helpGroup": "QUERY",
23972
- "name": "to",
23973
- "default": "2026-03-18",
24992
+ "config": {
24993
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
24994
+ "env": "SFCC_CONFIG",
24995
+ "helpGroup": "GLOBAL",
24996
+ "name": "config",
23974
24997
  "hasDynamicHelp": false,
23975
24998
  "multiple": false,
23976
24999
  "type": "option"
23977
25000
  },
23978
- "format": {
23979
- "description": "Output format",
23980
- "helpGroup": "QUERY",
23981
- "name": "format",
23982
- "default": "table",
25001
+ "instance": {
25002
+ "char": "i",
25003
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
25004
+ "env": "SFCC_INSTANCE",
25005
+ "helpGroup": "GLOBAL",
25006
+ "name": "instance",
23983
25007
  "hasDynamicHelp": false,
23984
25008
  "multiple": false,
23985
- "options": [
23986
- "table",
23987
- "json",
23988
- "csv"
23989
- ],
23990
25009
  "type": "option"
23991
25010
  },
23992
- "fetch-size": {
23993
- "description": "Frame fetch size for CIP paging",
23994
- "helpGroup": "QUERY",
23995
- "name": "fetch-size",
23996
- "default": 1000,
25011
+ "project-directory": {
25012
+ "aliases": [
25013
+ "working-directory"
25014
+ ],
25015
+ "description": "Project directory",
25016
+ "env": "SFCC_PROJECT_DIRECTORY",
25017
+ "helpGroup": "GLOBAL",
25018
+ "name": "project-directory",
23997
25019
  "hasDynamicHelp": false,
23998
25020
  "multiple": false,
23999
25021
  "type": "option"
24000
25022
  },
24001
- "describe": {
24002
- "description": "Show report details and expected parameters",
24003
- "exclusive": [
24004
- "sql"
24005
- ],
24006
- "helpGroup": "QUERY",
24007
- "name": "describe",
24008
- "allowNo": false,
24009
- "type": "boolean"
25023
+ "extra-query": {
25024
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
25025
+ "env": "SFCC_EXTRA_QUERY",
25026
+ "helpGroup": "GLOBAL",
25027
+ "hidden": true,
25028
+ "name": "extra-query",
25029
+ "hasDynamicHelp": false,
25030
+ "multiple": false,
25031
+ "type": "option"
24010
25032
  },
24011
- "sql": {
24012
- "description": "Print generated SQL and exit",
24013
- "exclusive": [
24014
- "describe"
24015
- ],
24016
- "helpGroup": "QUERY",
24017
- "name": "sql",
24018
- "allowNo": false,
24019
- "type": "boolean"
25033
+ "extra-body": {
25034
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
25035
+ "env": "SFCC_EXTRA_BODY",
25036
+ "helpGroup": "GLOBAL",
25037
+ "hidden": true,
25038
+ "name": "extra-body",
25039
+ "hasDynamicHelp": false,
25040
+ "multiple": false,
25041
+ "type": "option"
24020
25042
  },
24021
- "site-id": {
24022
- "description": "Site ID parameter for CIP report filters",
24023
- "helpGroup": "QUERY",
24024
- "name": "site-id",
24025
- "required": false,
25043
+ "extra-headers": {
25044
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
25045
+ "env": "SFCC_EXTRA_HEADERS",
25046
+ "helpGroup": "GLOBAL",
25047
+ "hidden": true,
25048
+ "name": "extra-headers",
24026
25049
  "hasDynamicHelp": false,
24027
25050
  "multiple": false,
24028
25051
  "type": "option"
24029
25052
  }
24030
25053
  },
24031
25054
  "hasDynamicHelp": false,
24032
- "hiddenAliases": [],
24033
- "id": "cip:report:top-selling-products",
25055
+ "hiddenAliases": [
25056
+ "client:auth:token"
25057
+ ],
25058
+ "id": "auth:client:token",
24034
25059
  "pluginAlias": "@salesforce/b2c-cli",
24035
25060
  "pluginName": "@salesforce/b2c-cli",
24036
25061
  "pluginType": "core",
24037
25062
  "strict": true,
24038
25063
  "enableJsonFlag": true,
24039
- "reportFlags": {
24040
- "describe": {
24041
- "description": "Show report details and expected parameters",
24042
- "exclusive": [
24043
- "sql"
24044
- ],
24045
- "helpGroup": "QUERY",
24046
- "allowNo": false,
24047
- "type": "boolean"
24048
- },
24049
- "sql": {
24050
- "description": "Print generated SQL and exit",
24051
- "exclusive": [
24052
- "describe"
24053
- ],
24054
- "helpGroup": "QUERY",
24055
- "allowNo": false,
24056
- "type": "boolean"
24057
- }
24058
- },
24059
25064
  "isESM": true,
24060
25065
  "relativePath": [
24061
25066
  "dist",
24062
25067
  "commands",
24063
- "cip",
24064
- "report",
24065
- "top-selling-products.js"
25068
+ "auth",
25069
+ "client",
25070
+ "token.js"
24066
25071
  ]
24067
25072
  },
24068
25073
  "ecdn:cache:purge": {
@@ -52295,5 +53300,5 @@
52295
53300
  ]
52296
53301
  }
52297
53302
  },
52298
- "version": "0.8.0"
53303
+ "version": "0.10.0"
52299
53304
  }