@salesforce/b2c-cli 1.0.0 → 1.0.1

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.
@@ -906,7 +906,7 @@
906
906
  "description": "Inclusive start date (YYYY-MM-DD)",
907
907
  "helpGroup": "QUERY",
908
908
  "name": "from",
909
- "default": "2026-03-01",
909
+ "default": "2026-04-01",
910
910
  "hasDynamicHelp": false,
911
911
  "multiple": false,
912
912
  "type": "option"
@@ -915,7 +915,7 @@
915
915
  "description": "Inclusive end date (YYYY-MM-DD)",
916
916
  "helpGroup": "QUERY",
917
917
  "name": "to",
918
- "default": "2026-03-30",
918
+ "default": "2026-04-01",
919
919
  "hasDynamicHelp": false,
920
920
  "multiple": false,
921
921
  "type": "option"
@@ -1202,7 +1202,7 @@
1202
1202
  "description": "Inclusive start date (YYYY-MM-DD)",
1203
1203
  "helpGroup": "QUERY",
1204
1204
  "name": "from",
1205
- "default": "2026-03-01",
1205
+ "default": "2026-04-01",
1206
1206
  "hasDynamicHelp": false,
1207
1207
  "multiple": false,
1208
1208
  "type": "option"
@@ -1211,7 +1211,7 @@
1211
1211
  "description": "Inclusive end date (YYYY-MM-DD)",
1212
1212
  "helpGroup": "QUERY",
1213
1213
  "name": "to",
1214
- "default": "2026-03-30",
1214
+ "default": "2026-04-01",
1215
1215
  "hasDynamicHelp": false,
1216
1216
  "multiple": false,
1217
1217
  "type": "option"
@@ -1633,7 +1633,7 @@
1633
1633
  "description": "Inclusive start date (YYYY-MM-DD)",
1634
1634
  "helpGroup": "QUERY",
1635
1635
  "name": "from",
1636
- "default": "2026-03-01",
1636
+ "default": "2026-04-01",
1637
1637
  "hasDynamicHelp": false,
1638
1638
  "multiple": false,
1639
1639
  "type": "option"
@@ -1642,7 +1642,7 @@
1642
1642
  "description": "Inclusive end date (YYYY-MM-DD)",
1643
1643
  "helpGroup": "QUERY",
1644
1644
  "name": "to",
1645
- "default": "2026-03-30",
1645
+ "default": "2026-04-01",
1646
1646
  "hasDynamicHelp": false,
1647
1647
  "multiple": false,
1648
1648
  "type": "option"
@@ -1711,23 +1711,32 @@
1711
1711
  "tables.js"
1712
1712
  ]
1713
1713
  },
1714
- "code:activate": {
1714
+ "content:export": {
1715
1715
  "aliases": [],
1716
1716
  "args": {
1717
- "codeVersion": {
1718
- "description": "Code version ID to activate",
1719
- "name": "codeVersion",
1720
- "required": false
1717
+ "pages": {
1718
+ "description": "Content IDs to export (pages, content assets, or components)",
1719
+ "name": "pages",
1720
+ "required": true
1721
1721
  }
1722
1722
  },
1723
- "description": "Activate or reload a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-activate",
1723
+ "description": "Export Page Designer pages with components and assets from a content library",
1724
1724
  "examples": [
1725
- "<%= config.bin %> <%= command.id %> v1",
1726
- "<%= config.bin %> <%= command.id %> v1 --server my-sandbox.demandware.net",
1727
- "<%= config.bin %> <%= command.id %> --reload",
1728
- "<%= config.bin %> <%= command.id %> v1 --reload"
1725
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage",
1726
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage about-us",
1727
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary \"hero-.*\" --regex",
1728
+ "<%= config.bin %> <%= command.id %> --library RefArch --site-library homepage -o ./export",
1729
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage --json",
1730
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary homepage --dry-run"
1729
1731
  ],
1730
1732
  "flags": {
1733
+ "json": {
1734
+ "description": "Output result as JSON",
1735
+ "helpGroup": "GLOBAL",
1736
+ "name": "json",
1737
+ "allowNo": false,
1738
+ "type": "boolean"
1739
+ },
1731
1740
  "log-level": {
1732
1741
  "description": "Set logging verbosity level",
1733
1742
  "env": "SFCC_LOG_LEVEL",
@@ -1754,13 +1763,6 @@
1754
1763
  "allowNo": false,
1755
1764
  "type": "boolean"
1756
1765
  },
1757
- "json": {
1758
- "description": "Output result as JSON",
1759
- "helpGroup": "GLOBAL",
1760
- "name": "json",
1761
- "allowNo": false,
1762
- "type": "boolean"
1763
- },
1764
1766
  "jsonl": {
1765
1767
  "aliases": [
1766
1768
  "json-logs"
@@ -2011,48 +2013,124 @@
2011
2013
  "allowNo": true,
2012
2014
  "type": "boolean"
2013
2015
  },
2014
- "reload": {
2016
+ "library": {
2017
+ "description": "Library ID or site ID (also configurable via dw.json \"content-library\")",
2018
+ "name": "library",
2019
+ "hasDynamicHelp": false,
2020
+ "multiple": false,
2021
+ "type": "option"
2022
+ },
2023
+ "output": {
2024
+ "char": "o",
2025
+ "description": "Output directory",
2026
+ "name": "output",
2027
+ "hasDynamicHelp": false,
2028
+ "multiple": false,
2029
+ "type": "option"
2030
+ },
2031
+ "site-library": {
2032
+ "description": "Library is a site-private library",
2033
+ "name": "site-library",
2034
+ "allowNo": false,
2035
+ "type": "boolean"
2036
+ },
2037
+ "asset-query": {
2038
+ "char": "q",
2039
+ "description": "JSON dot-paths for asset extraction",
2040
+ "name": "asset-query",
2041
+ "default": [
2042
+ "image.path"
2043
+ ],
2044
+ "hasDynamicHelp": false,
2045
+ "multiple": true,
2046
+ "type": "option"
2047
+ },
2048
+ "regex": {
2015
2049
  "char": "r",
2016
- "description": "Reload the code version (toggle activation to force reload)",
2017
- "name": "reload",
2050
+ "description": "Treat page IDs as regular expressions",
2051
+ "name": "regex",
2052
+ "allowNo": false,
2053
+ "type": "boolean"
2054
+ },
2055
+ "folder": {
2056
+ "description": "Filter by folder classification",
2057
+ "name": "folder",
2058
+ "hasDynamicHelp": false,
2059
+ "multiple": true,
2060
+ "type": "option"
2061
+ },
2062
+ "offline": {
2063
+ "description": "Skip asset downloads",
2064
+ "name": "offline",
2065
+ "allowNo": false,
2066
+ "type": "boolean"
2067
+ },
2068
+ "library-file": {
2069
+ "description": "Use a local library XML file instead of fetching from instance",
2070
+ "name": "library-file",
2071
+ "hasDynamicHelp": false,
2072
+ "multiple": false,
2073
+ "type": "option"
2074
+ },
2075
+ "keep-orphans": {
2076
+ "description": "Include orphan components in export",
2077
+ "name": "keep-orphans",
2078
+ "allowNo": false,
2079
+ "type": "boolean"
2080
+ },
2081
+ "show-tree": {
2082
+ "description": "Display tree structure of exported content",
2083
+ "name": "show-tree",
2084
+ "allowNo": false,
2085
+ "type": "boolean"
2086
+ },
2087
+ "timeout": {
2088
+ "description": "Export job timeout in seconds",
2089
+ "name": "timeout",
2090
+ "hasDynamicHelp": false,
2091
+ "multiple": false,
2092
+ "type": "option"
2093
+ },
2094
+ "dry-run": {
2095
+ "description": "Preview export without downloading assets or writing files",
2096
+ "name": "dry-run",
2018
2097
  "allowNo": false,
2019
2098
  "type": "boolean"
2020
2099
  }
2021
2100
  },
2022
2101
  "hasDynamicHelp": false,
2023
- "hiddenAliases": [
2024
- "code:activate"
2025
- ],
2026
- "id": "code:activate",
2102
+ "hiddenAliases": [],
2103
+ "id": "content:export",
2027
2104
  "pluginAlias": "@salesforce/b2c-cli",
2028
2105
  "pluginName": "@salesforce/b2c-cli",
2029
2106
  "pluginType": "core",
2030
- "strict": true,
2031
- "enableJsonFlag": false,
2107
+ "strict": false,
2108
+ "enableJsonFlag": true,
2032
2109
  "isESM": true,
2033
2110
  "relativePath": [
2034
2111
  "dist",
2035
2112
  "commands",
2036
- "code",
2037
- "activate.js"
2113
+ "content",
2114
+ "export.js"
2038
2115
  ]
2039
2116
  },
2040
- "code:delete": {
2117
+ "content:list": {
2041
2118
  "aliases": [],
2042
- "args": {
2043
- "codeVersion": {
2044
- "description": "Code version ID to delete",
2045
- "name": "codeVersion",
2046
- "required": true
2047
- }
2048
- },
2049
- "description": "Delete a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-delete",
2119
+ "args": {},
2120
+ "description": "List pages and content in a content library",
2050
2121
  "examples": [
2051
- "<%= config.bin %> <%= command.id %> old-version",
2052
- "<%= config.bin %> <%= command.id %> old-version --force",
2053
- "<%= config.bin %> <%= command.id %> old-version --server my-sandbox.demandware.net"
2122
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary",
2123
+ "<%= config.bin %> <%= command.id %> --library SharedLibrary --tree",
2124
+ "<%= config.bin %> <%= command.id %> --library RefArch --site-library --type page"
2054
2125
  ],
2055
2126
  "flags": {
2127
+ "json": {
2128
+ "description": "Output result as JSON",
2129
+ "helpGroup": "GLOBAL",
2130
+ "name": "json",
2131
+ "allowNo": false,
2132
+ "type": "boolean"
2133
+ },
2056
2134
  "log-level": {
2057
2135
  "description": "Set logging verbosity level",
2058
2136
  "env": "SFCC_LOG_LEVEL",
@@ -2079,13 +2157,6 @@
2079
2157
  "allowNo": false,
2080
2158
  "type": "boolean"
2081
2159
  },
2082
- "json": {
2083
- "description": "Output result as JSON",
2084
- "helpGroup": "GLOBAL",
2085
- "name": "json",
2086
- "allowNo": false,
2087
- "type": "boolean"
2088
- },
2089
2160
  "jsonl": {
2090
2161
  "aliases": [
2091
2162
  "json-logs"
@@ -2336,50 +2407,90 @@
2336
2407
  "allowNo": true,
2337
2408
  "type": "boolean"
2338
2409
  },
2339
- "force": {
2340
- "char": "f",
2341
- "description": "Skip confirmation prompt",
2342
- "name": "force",
2410
+ "library": {
2411
+ "description": "Library ID or site ID (also configurable via dw.json \"content-library\")",
2412
+ "name": "library",
2413
+ "hasDynamicHelp": false,
2414
+ "multiple": false,
2415
+ "type": "option"
2416
+ },
2417
+ "site-library": {
2418
+ "description": "Site-private library",
2419
+ "name": "site-library",
2420
+ "allowNo": false,
2421
+ "type": "boolean"
2422
+ },
2423
+ "library-file": {
2424
+ "description": "Local XML file",
2425
+ "name": "library-file",
2426
+ "hasDynamicHelp": false,
2427
+ "multiple": false,
2428
+ "type": "option"
2429
+ },
2430
+ "type": {
2431
+ "description": "Filter by node type",
2432
+ "name": "type",
2433
+ "hasDynamicHelp": false,
2434
+ "multiple": false,
2435
+ "options": [
2436
+ "page",
2437
+ "content",
2438
+ "component"
2439
+ ],
2440
+ "type": "option"
2441
+ },
2442
+ "components": {
2443
+ "description": "Include components in output",
2444
+ "name": "components",
2445
+ "allowNo": false,
2446
+ "type": "boolean"
2447
+ },
2448
+ "tree": {
2449
+ "description": "Show tree structure",
2450
+ "name": "tree",
2343
2451
  "allowNo": false,
2344
2452
  "type": "boolean"
2453
+ },
2454
+ "timeout": {
2455
+ "description": "Job timeout in seconds",
2456
+ "name": "timeout",
2457
+ "hasDynamicHelp": false,
2458
+ "multiple": false,
2459
+ "type": "option"
2345
2460
  }
2346
2461
  },
2347
2462
  "hasDynamicHelp": false,
2348
- "hiddenAliases": [
2349
- "code:delete"
2350
- ],
2351
- "id": "code:delete",
2463
+ "hiddenAliases": [],
2464
+ "id": "content:list",
2352
2465
  "pluginAlias": "@salesforce/b2c-cli",
2353
2466
  "pluginName": "@salesforce/b2c-cli",
2354
2467
  "pluginType": "core",
2355
2468
  "strict": true,
2356
- "enableJsonFlag": false,
2469
+ "enableJsonFlag": true,
2357
2470
  "isESM": true,
2358
2471
  "relativePath": [
2359
2472
  "dist",
2360
2473
  "commands",
2361
- "code",
2362
- "delete.js"
2474
+ "content",
2475
+ "list.js"
2363
2476
  ]
2364
2477
  },
2365
- "code:deploy": {
2478
+ "content:validate": {
2366
2479
  "aliases": [],
2367
2480
  "args": {
2368
- "cartridgePath": {
2369
- "default": ".",
2370
- "description": "Path to cartridges directory",
2371
- "name": "cartridgePath"
2481
+ "files": {
2482
+ "description": "File(s), directory, or glob pattern(s) for JSON metadefinition files to validate",
2483
+ "name": "files",
2484
+ "required": true
2372
2485
  }
2373
2486
  },
2374
- "description": "Deploy cartridges to a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-deploy",
2487
+ "description": "Validate Page Designer metadefinition JSON files against schemas",
2375
2488
  "examples": [
2376
- "<%= config.bin %> <%= command.id %>",
2377
- "<%= config.bin %> <%= command.id %> ./my-cartridges",
2378
- "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net --code-version v1",
2379
- "<%= config.bin %> <%= command.id %> --reload",
2380
- "<%= config.bin %> <%= command.id %> --delete --reload",
2381
- "<%= config.bin %> <%= command.id %> -c app_storefront_base -c plugin_applepay",
2382
- "<%= config.bin %> <%= command.id %> -x test_cartridge"
2489
+ "<%= config.bin %> <%= command.id %> cartridge/experience/pages/storePage.json",
2490
+ "<%= config.bin %> <%= command.id %> --type componenttype mycomponent.json",
2491
+ "<%= config.bin %> <%= command.id %> 'cartridge/experience/**/*.json'",
2492
+ "<%= config.bin %> <%= command.id %> cartridge/experience/",
2493
+ "<%= config.bin %> <%= command.id %> storePage.json --json"
2383
2494
  ],
2384
2495
  "flags": {
2385
2496
  "json": {
@@ -2496,6 +2607,173 @@
2496
2607
  "multiple": false,
2497
2608
  "type": "option"
2498
2609
  },
2610
+ "type": {
2611
+ "char": "t",
2612
+ "description": "Schema type (auto-detected if not specified)",
2613
+ "name": "type",
2614
+ "hasDynamicHelp": false,
2615
+ "multiple": false,
2616
+ "options": [
2617
+ "pagetype",
2618
+ "componenttype",
2619
+ "aspecttype",
2620
+ "cmsrecord",
2621
+ "customeditortype",
2622
+ "contentassetpageconfig",
2623
+ "contentassetcomponentconfig",
2624
+ "contentassetstructuredcontentdata",
2625
+ "image"
2626
+ ],
2627
+ "type": "option"
2628
+ }
2629
+ },
2630
+ "hasDynamicHelp": false,
2631
+ "hiddenAliases": [],
2632
+ "id": "content:validate",
2633
+ "pluginAlias": "@salesforce/b2c-cli",
2634
+ "pluginName": "@salesforce/b2c-cli",
2635
+ "pluginType": "core",
2636
+ "strict": false,
2637
+ "enableJsonFlag": true,
2638
+ "isESM": true,
2639
+ "relativePath": [
2640
+ "dist",
2641
+ "commands",
2642
+ "content",
2643
+ "validate.js"
2644
+ ]
2645
+ },
2646
+ "code:activate": {
2647
+ "aliases": [],
2648
+ "args": {
2649
+ "codeVersion": {
2650
+ "description": "Code version ID to activate",
2651
+ "name": "codeVersion",
2652
+ "required": false
2653
+ }
2654
+ },
2655
+ "description": "Activate or reload a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-activate",
2656
+ "examples": [
2657
+ "<%= config.bin %> <%= command.id %> v1",
2658
+ "<%= config.bin %> <%= command.id %> v1 --server my-sandbox.demandware.net",
2659
+ "<%= config.bin %> <%= command.id %> --reload",
2660
+ "<%= config.bin %> <%= command.id %> v1 --reload"
2661
+ ],
2662
+ "flags": {
2663
+ "log-level": {
2664
+ "description": "Set logging verbosity level",
2665
+ "env": "SFCC_LOG_LEVEL",
2666
+ "helpGroup": "GLOBAL",
2667
+ "name": "log-level",
2668
+ "hasDynamicHelp": false,
2669
+ "multiple": false,
2670
+ "options": [
2671
+ "trace",
2672
+ "debug",
2673
+ "info",
2674
+ "warn",
2675
+ "error",
2676
+ "silent"
2677
+ ],
2678
+ "type": "option"
2679
+ },
2680
+ "debug": {
2681
+ "char": "D",
2682
+ "description": "Enable debug logging (shorthand for --log-level debug)",
2683
+ "env": "SFCC_DEBUG",
2684
+ "helpGroup": "GLOBAL",
2685
+ "name": "debug",
2686
+ "allowNo": false,
2687
+ "type": "boolean"
2688
+ },
2689
+ "json": {
2690
+ "description": "Output result as JSON",
2691
+ "helpGroup": "GLOBAL",
2692
+ "name": "json",
2693
+ "allowNo": false,
2694
+ "type": "boolean"
2695
+ },
2696
+ "jsonl": {
2697
+ "aliases": [
2698
+ "json-logs"
2699
+ ],
2700
+ "description": "Output log messages as JSON lines",
2701
+ "env": "SFCC_JSON_LOGS",
2702
+ "helpGroup": "GLOBAL",
2703
+ "name": "jsonl",
2704
+ "allowNo": false,
2705
+ "type": "boolean"
2706
+ },
2707
+ "lang": {
2708
+ "char": "L",
2709
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
2710
+ "helpGroup": "GLOBAL",
2711
+ "name": "lang",
2712
+ "hasDynamicHelp": false,
2713
+ "multiple": false,
2714
+ "type": "option"
2715
+ },
2716
+ "config": {
2717
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
2718
+ "env": "SFCC_CONFIG",
2719
+ "helpGroup": "GLOBAL",
2720
+ "name": "config",
2721
+ "hasDynamicHelp": false,
2722
+ "multiple": false,
2723
+ "type": "option"
2724
+ },
2725
+ "instance": {
2726
+ "char": "i",
2727
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
2728
+ "env": "SFCC_INSTANCE",
2729
+ "helpGroup": "GLOBAL",
2730
+ "name": "instance",
2731
+ "hasDynamicHelp": false,
2732
+ "multiple": false,
2733
+ "type": "option"
2734
+ },
2735
+ "project-directory": {
2736
+ "aliases": [
2737
+ "working-directory"
2738
+ ],
2739
+ "description": "Project directory",
2740
+ "env": "SFCC_PROJECT_DIRECTORY",
2741
+ "helpGroup": "GLOBAL",
2742
+ "name": "project-directory",
2743
+ "hasDynamicHelp": false,
2744
+ "multiple": false,
2745
+ "type": "option"
2746
+ },
2747
+ "extra-query": {
2748
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
2749
+ "env": "SFCC_EXTRA_QUERY",
2750
+ "helpGroup": "GLOBAL",
2751
+ "hidden": true,
2752
+ "name": "extra-query",
2753
+ "hasDynamicHelp": false,
2754
+ "multiple": false,
2755
+ "type": "option"
2756
+ },
2757
+ "extra-body": {
2758
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
2759
+ "env": "SFCC_EXTRA_BODY",
2760
+ "helpGroup": "GLOBAL",
2761
+ "hidden": true,
2762
+ "name": "extra-body",
2763
+ "hasDynamicHelp": false,
2764
+ "multiple": false,
2765
+ "type": "option"
2766
+ },
2767
+ "extra-headers": {
2768
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
2769
+ "env": "SFCC_EXTRA_HEADERS",
2770
+ "helpGroup": "GLOBAL",
2771
+ "hidden": true,
2772
+ "name": "extra-headers",
2773
+ "hasDynamicHelp": false,
2774
+ "multiple": false,
2775
+ "type": "option"
2776
+ },
2499
2777
  "client-id": {
2500
2778
  "description": "Client ID for OAuth",
2501
2779
  "env": "SFCC_CLIENT_ID",
@@ -2665,101 +2943,48 @@
2665
2943
  "allowNo": true,
2666
2944
  "type": "boolean"
2667
2945
  },
2668
- "cartridge": {
2669
- "char": "c",
2670
- "description": "Include specific cartridge(s) (comma-separated)",
2671
- "name": "cartridge",
2672
- "delimiter": ",",
2673
- "hasDynamicHelp": false,
2674
- "multiple": true,
2675
- "type": "option"
2676
- },
2677
- "exclude-cartridge": {
2678
- "char": "x",
2679
- "description": "Exclude specific cartridge(s) (comma-separated)",
2680
- "name": "exclude-cartridge",
2681
- "delimiter": ",",
2682
- "hasDynamicHelp": false,
2683
- "multiple": true,
2684
- "type": "option"
2685
- },
2686
2946
  "reload": {
2687
2947
  "char": "r",
2688
- "description": "Reload (re-activate) code version after deploy",
2948
+ "description": "Reload the code version (toggle activation to force reload)",
2689
2949
  "name": "reload",
2690
2950
  "allowNo": false,
2691
2951
  "type": "boolean"
2692
- },
2693
- "delete": {
2694
- "description": "Delete existing cartridges before upload",
2695
- "name": "delete",
2696
- "allowNo": false,
2697
- "type": "boolean"
2698
2952
  }
2699
2953
  },
2700
2954
  "hasDynamicHelp": false,
2701
2955
  "hiddenAliases": [
2702
- "code:deploy"
2956
+ "code:activate"
2703
2957
  ],
2704
- "id": "code:deploy",
2958
+ "id": "code:activate",
2705
2959
  "pluginAlias": "@salesforce/b2c-cli",
2706
2960
  "pluginName": "@salesforce/b2c-cli",
2707
2961
  "pluginType": "core",
2708
2962
  "strict": true,
2709
- "enableJsonFlag": true,
2710
- "baseArgs": {
2711
- "cartridgePath": {
2712
- "description": "Path to cartridges directory",
2713
- "default": ".",
2714
- "input": [],
2715
- "type": "option"
2716
- }
2717
- },
2718
- "cartridgeFlags": {
2719
- "cartridge": {
2720
- "char": "c",
2721
- "description": "Include specific cartridge(s) (comma-separated)",
2722
- "multiple": true,
2723
- "multipleNonGreedy": true,
2724
- "delimiter": ",",
2725
- "input": [],
2726
- "type": "option"
2727
- },
2728
- "exclude-cartridge": {
2729
- "char": "x",
2730
- "description": "Exclude specific cartridge(s) (comma-separated)",
2731
- "multiple": true,
2732
- "multipleNonGreedy": true,
2733
- "delimiter": ",",
2734
- "input": [],
2735
- "type": "option"
2736
- }
2737
- },
2963
+ "enableJsonFlag": false,
2738
2964
  "isESM": true,
2739
2965
  "relativePath": [
2740
2966
  "dist",
2741
2967
  "commands",
2742
2968
  "code",
2743
- "deploy.js"
2969
+ "activate.js"
2744
2970
  ]
2745
2971
  },
2746
- "code:list": {
2972
+ "code:delete": {
2747
2973
  "aliases": [],
2748
- "args": {},
2749
- "description": "List code versions on a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-list",
2974
+ "args": {
2975
+ "codeVersion": {
2976
+ "description": "Code version ID to delete",
2977
+ "name": "codeVersion",
2978
+ "required": true
2979
+ }
2980
+ },
2981
+ "description": "Delete a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-delete",
2750
2982
  "examples": [
2751
- "<%= config.bin %> <%= command.id %>",
2752
- "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
2753
- "<%= config.bin %> <%= command.id %> --json"
2983
+ "<%= config.bin %> <%= command.id %> old-version",
2984
+ "<%= config.bin %> <%= command.id %> old-version --force",
2985
+ "<%= config.bin %> <%= command.id %> old-version --server my-sandbox.demandware.net"
2754
2986
  ],
2755
2987
  "flags": {
2756
- "json": {
2757
- "description": "Output result as JSON",
2758
- "helpGroup": "GLOBAL",
2759
- "name": "json",
2760
- "allowNo": false,
2761
- "type": "boolean"
2762
- },
2763
2988
  "log-level": {
2764
2989
  "description": "Set logging verbosity level",
2765
2990
  "env": "SFCC_LOG_LEVEL",
@@ -2786,6 +3011,13 @@
2786
3011
  "allowNo": false,
2787
3012
  "type": "boolean"
2788
3013
  },
3014
+ "json": {
3015
+ "description": "Output result as JSON",
3016
+ "helpGroup": "GLOBAL",
3017
+ "name": "json",
3018
+ "allowNo": false,
3019
+ "type": "boolean"
3020
+ },
2789
3021
  "jsonl": {
2790
3022
  "aliases": [
2791
3023
  "json-logs"
@@ -3035,27 +3267,34 @@
3035
3267
  "name": "verify",
3036
3268
  "allowNo": true,
3037
3269
  "type": "boolean"
3270
+ },
3271
+ "force": {
3272
+ "char": "f",
3273
+ "description": "Skip confirmation prompt",
3274
+ "name": "force",
3275
+ "allowNo": false,
3276
+ "type": "boolean"
3038
3277
  }
3039
3278
  },
3040
3279
  "hasDynamicHelp": false,
3041
3280
  "hiddenAliases": [
3042
- "code:list"
3281
+ "code:delete"
3043
3282
  ],
3044
- "id": "code:list",
3283
+ "id": "code:delete",
3045
3284
  "pluginAlias": "@salesforce/b2c-cli",
3046
3285
  "pluginName": "@salesforce/b2c-cli",
3047
3286
  "pluginType": "core",
3048
3287
  "strict": true,
3049
- "enableJsonFlag": true,
3288
+ "enableJsonFlag": false,
3050
3289
  "isESM": true,
3051
3290
  "relativePath": [
3052
3291
  "dist",
3053
3292
  "commands",
3054
3293
  "code",
3055
- "list.js"
3294
+ "delete.js"
3056
3295
  ]
3057
3296
  },
3058
- "code:watch": {
3297
+ "code:deploy": {
3059
3298
  "aliases": [],
3060
3299
  "args": {
3061
3300
  "cartridgePath": {
@@ -3064,15 +3303,25 @@
3064
3303
  "name": "cartridgePath"
3065
3304
  }
3066
3305
  },
3067
- "description": "Watch cartridges and upload changes to an instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-watch",
3306
+ "description": "Deploy cartridges to a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-deploy",
3068
3307
  "examples": [
3069
3308
  "<%= config.bin %> <%= command.id %>",
3070
3309
  "<%= config.bin %> <%= command.id %> ./my-cartridges",
3071
3310
  "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net --code-version v1",
3072
- "<%= config.bin %> <%= command.id %> -c app_storefront_base",
3311
+ "<%= config.bin %> <%= command.id %> --activate",
3312
+ "<%= config.bin %> <%= command.id %> --delete --activate",
3313
+ "<%= config.bin %> <%= command.id %> --reload",
3314
+ "<%= config.bin %> <%= command.id %> -c app_storefront_base -c plugin_applepay",
3073
3315
  "<%= config.bin %> <%= command.id %> -x test_cartridge"
3074
3316
  ],
3075
3317
  "flags": {
3318
+ "json": {
3319
+ "description": "Output result as JSON",
3320
+ "helpGroup": "GLOBAL",
3321
+ "name": "json",
3322
+ "allowNo": false,
3323
+ "type": "boolean"
3324
+ },
3076
3325
  "log-level": {
3077
3326
  "description": "Set logging verbosity level",
3078
3327
  "env": "SFCC_LOG_LEVEL",
@@ -3099,13 +3348,6 @@
3099
3348
  "allowNo": false,
3100
3349
  "type": "boolean"
3101
3350
  },
3102
- "json": {
3103
- "description": "Output result as JSON",
3104
- "helpGroup": "GLOBAL",
3105
- "name": "json",
3106
- "allowNo": false,
3107
- "type": "boolean"
3108
- },
3109
3351
  "jsonl": {
3110
3352
  "aliases": [
3111
3353
  "json-logs"
@@ -3373,16 +3615,44 @@
3373
3615
  "hasDynamicHelp": false,
3374
3616
  "multiple": true,
3375
3617
  "type": "option"
3618
+ },
3619
+ "activate": {
3620
+ "char": "a",
3621
+ "description": "Activate code version after deploy",
3622
+ "exclusive": [
3623
+ "reload"
3624
+ ],
3625
+ "name": "activate",
3626
+ "allowNo": false,
3627
+ "type": "boolean"
3628
+ },
3629
+ "reload": {
3630
+ "char": "r",
3631
+ "description": "Reload (toggle activation to force reload) code version after deploy",
3632
+ "exclusive": [
3633
+ "activate"
3634
+ ],
3635
+ "name": "reload",
3636
+ "allowNo": false,
3637
+ "type": "boolean"
3638
+ },
3639
+ "delete": {
3640
+ "description": "Delete existing cartridges before upload",
3641
+ "name": "delete",
3642
+ "allowNo": false,
3643
+ "type": "boolean"
3376
3644
  }
3377
3645
  },
3378
3646
  "hasDynamicHelp": false,
3379
- "hiddenAliases": [],
3380
- "id": "code:watch",
3647
+ "hiddenAliases": [
3648
+ "code:deploy"
3649
+ ],
3650
+ "id": "code:deploy",
3381
3651
  "pluginAlias": "@salesforce/b2c-cli",
3382
3652
  "pluginName": "@salesforce/b2c-cli",
3383
3653
  "pluginType": "core",
3384
3654
  "strict": true,
3385
- "enableJsonFlag": false,
3655
+ "enableJsonFlag": true,
3386
3656
  "baseArgs": {
3387
3657
  "cartridgePath": {
3388
3658
  "description": "Path to cartridges directory",
@@ -3416,23 +3686,17 @@
3416
3686
  "dist",
3417
3687
  "commands",
3418
3688
  "code",
3419
- "watch.js"
3689
+ "deploy.js"
3420
3690
  ]
3421
3691
  },
3422
- "docs:download": {
3692
+ "code:list": {
3423
3693
  "aliases": [],
3424
- "args": {
3425
- "output": {
3426
- "description": "Output directory for extracted documentation",
3427
- "name": "output",
3428
- "required": true
3429
- }
3430
- },
3431
- "description": "Download Script API documentation from a B2C Commerce instance",
3694
+ "args": {},
3695
+ "description": "List code versions on a B2C Commerce instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-list",
3432
3696
  "examples": [
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"
3697
+ "<%= config.bin %> <%= command.id %>",
3698
+ "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
3699
+ "<%= config.bin %> <%= command.id %> --json"
3436
3700
  ],
3437
3701
  "flags": {
3438
3702
  "json": {
@@ -3717,17 +3981,13 @@
3717
3981
  "name": "verify",
3718
3982
  "allowNo": true,
3719
3983
  "type": "boolean"
3720
- },
3721
- "keep-archive": {
3722
- "description": "Keep the downloaded archive file",
3723
- "name": "keep-archive",
3724
- "allowNo": false,
3725
- "type": "boolean"
3726
3984
  }
3727
3985
  },
3728
3986
  "hasDynamicHelp": false,
3729
- "hiddenAliases": [],
3730
- "id": "docs:download",
3987
+ "hiddenAliases": [
3988
+ "code:list"
3989
+ ],
3990
+ "id": "code:list",
3731
3991
  "pluginAlias": "@salesforce/b2c-cli",
3732
3992
  "pluginName": "@salesforce/b2c-cli",
3733
3993
  "pluginType": "core",
@@ -3737,35 +3997,28 @@
3737
3997
  "relativePath": [
3738
3998
  "dist",
3739
3999
  "commands",
3740
- "docs",
3741
- "download.js"
4000
+ "code",
4001
+ "list.js"
3742
4002
  ]
3743
4003
  },
3744
- "docs:read": {
4004
+ "code:watch": {
3745
4005
  "aliases": [],
3746
4006
  "args": {
3747
- "query": {
3748
- "description": "Search query for documentation (class name, module path, or partial match)",
3749
- "name": "query",
3750
- "required": true
4007
+ "cartridgePath": {
4008
+ "default": ".",
4009
+ "description": "Path to cartridges directory",
4010
+ "name": "cartridgePath"
3751
4011
  }
3752
4012
  },
3753
- "description": "Read Script API documentation for a class or module",
4013
+ "description": "Watch cartridges and upload changes to an instance\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-watch",
3754
4014
  "examples": [
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"
4015
+ "<%= config.bin %> <%= command.id %>",
4016
+ "<%= config.bin %> <%= command.id %> ./my-cartridges",
4017
+ "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net --code-version v1",
4018
+ "<%= config.bin %> <%= command.id %> -c app_storefront_base",
4019
+ "<%= config.bin %> <%= command.id %> -x test_cartridge"
3760
4020
  ],
3761
4021
  "flags": {
3762
- "json": {
3763
- "description": "Output result as JSON",
3764
- "helpGroup": "GLOBAL",
3765
- "name": "json",
3766
- "allowNo": false,
3767
- "type": "boolean"
3768
- },
3769
4022
  "log-level": {
3770
4023
  "description": "Set logging verbosity level",
3771
4024
  "env": "SFCC_LOG_LEVEL",
@@ -3792,129 +4045,6 @@
3792
4045
  "allowNo": false,
3793
4046
  "type": "boolean"
3794
4047
  },
3795
- "jsonl": {
3796
- "aliases": [
3797
- "json-logs"
3798
- ],
3799
- "description": "Output log messages as JSON lines",
3800
- "env": "SFCC_JSON_LOGS",
3801
- "helpGroup": "GLOBAL",
3802
- "name": "jsonl",
3803
- "allowNo": false,
3804
- "type": "boolean"
3805
- },
3806
- "lang": {
3807
- "char": "L",
3808
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
3809
- "helpGroup": "GLOBAL",
3810
- "name": "lang",
3811
- "hasDynamicHelp": false,
3812
- "multiple": false,
3813
- "type": "option"
3814
- },
3815
- "config": {
3816
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
3817
- "env": "SFCC_CONFIG",
3818
- "helpGroup": "GLOBAL",
3819
- "name": "config",
3820
- "hasDynamicHelp": false,
3821
- "multiple": false,
3822
- "type": "option"
3823
- },
3824
- "instance": {
3825
- "char": "i",
3826
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
3827
- "env": "SFCC_INSTANCE",
3828
- "helpGroup": "GLOBAL",
3829
- "name": "instance",
3830
- "hasDynamicHelp": false,
3831
- "multiple": false,
3832
- "type": "option"
3833
- },
3834
- "project-directory": {
3835
- "aliases": [
3836
- "working-directory"
3837
- ],
3838
- "description": "Project directory",
3839
- "env": "SFCC_PROJECT_DIRECTORY",
3840
- "helpGroup": "GLOBAL",
3841
- "name": "project-directory",
3842
- "hasDynamicHelp": false,
3843
- "multiple": false,
3844
- "type": "option"
3845
- },
3846
- "extra-query": {
3847
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
3848
- "env": "SFCC_EXTRA_QUERY",
3849
- "helpGroup": "GLOBAL",
3850
- "hidden": true,
3851
- "name": "extra-query",
3852
- "hasDynamicHelp": false,
3853
- "multiple": false,
3854
- "type": "option"
3855
- },
3856
- "extra-body": {
3857
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
3858
- "env": "SFCC_EXTRA_BODY",
3859
- "helpGroup": "GLOBAL",
3860
- "hidden": true,
3861
- "name": "extra-body",
3862
- "hasDynamicHelp": false,
3863
- "multiple": false,
3864
- "type": "option"
3865
- },
3866
- "extra-headers": {
3867
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
3868
- "env": "SFCC_EXTRA_HEADERS",
3869
- "helpGroup": "GLOBAL",
3870
- "hidden": true,
3871
- "name": "extra-headers",
3872
- "hasDynamicHelp": false,
3873
- "multiple": false,
3874
- "type": "option"
3875
- },
3876
- "raw": {
3877
- "char": "r",
3878
- "description": "Output raw markdown without terminal formatting",
3879
- "name": "raw",
3880
- "allowNo": false,
3881
- "type": "boolean"
3882
- }
3883
- },
3884
- "hasDynamicHelp": false,
3885
- "hiddenAliases": [],
3886
- "id": "docs:read",
3887
- "pluginAlias": "@salesforce/b2c-cli",
3888
- "pluginName": "@salesforce/b2c-cli",
3889
- "pluginType": "core",
3890
- "strict": true,
3891
- "enableJsonFlag": true,
3892
- "isESM": true,
3893
- "relativePath": [
3894
- "dist",
3895
- "commands",
3896
- "docs",
3897
- "read.js"
3898
- ]
3899
- },
3900
- "docs:schema": {
3901
- "aliases": [],
3902
- "args": {
3903
- "query": {
3904
- "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
3905
- "name": "query",
3906
- "required": false
3907
- }
3908
- },
3909
- "description": "Read an XSD schema file",
3910
- "examples": [
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
4048
  "json": {
3919
4049
  "description": "Output result as JSON",
3920
4050
  "helpGroup": "GLOBAL",
@@ -3922,32 +4052,6 @@
3922
4052
  "allowNo": false,
3923
4053
  "type": "boolean"
3924
4054
  },
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
4055
  "jsonl": {
3952
4056
  "aliases": [
3953
4057
  "json-logs"
@@ -4029,217 +4133,252 @@
4029
4133
  "multiple": false,
4030
4134
  "type": "option"
4031
4135
  },
4032
- "list": {
4033
- "char": "l",
4034
- "description": "List all available schemas",
4035
- "name": "list",
4036
- "allowNo": false,
4037
- "type": "boolean"
4136
+ "client-id": {
4137
+ "description": "Client ID for OAuth",
4138
+ "env": "SFCC_CLIENT_ID",
4139
+ "helpGroup": "AUTH",
4140
+ "name": "client-id",
4141
+ "hasDynamicHelp": false,
4142
+ "multiple": false,
4143
+ "type": "option"
4038
4144
  },
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"
4145
+ "client-secret": {
4146
+ "description": "Client Secret for OAuth",
4147
+ "env": "SFCC_CLIENT_SECRET",
4148
+ "helpGroup": "AUTH",
4149
+ "name": "client-secret",
4150
+ "hasDynamicHelp": false,
4151
+ "multiple": false,
4152
+ "type": "option"
4086
4153
  },
4087
- "log-level": {
4088
- "description": "Set logging verbosity level",
4089
- "env": "SFCC_LOG_LEVEL",
4090
- "helpGroup": "GLOBAL",
4091
- "name": "log-level",
4154
+ "auth-scope": {
4155
+ "description": "OAuth scopes to request (comma-separated)",
4156
+ "env": "SFCC_OAUTH_SCOPES",
4157
+ "helpGroup": "AUTH",
4158
+ "name": "auth-scope",
4159
+ "delimiter": ",",
4160
+ "hasDynamicHelp": false,
4161
+ "multiple": true,
4162
+ "type": "option"
4163
+ },
4164
+ "short-code": {
4165
+ "description": "SCAPI short code",
4166
+ "env": "SFCC_SHORTCODE",
4167
+ "helpGroup": "AUTH",
4168
+ "name": "short-code",
4092
4169
  "hasDynamicHelp": false,
4093
4170
  "multiple": false,
4094
- "options": [
4095
- "trace",
4096
- "debug",
4097
- "info",
4098
- "warn",
4099
- "error",
4100
- "silent"
4171
+ "type": "option"
4172
+ },
4173
+ "tenant-id": {
4174
+ "aliases": [
4175
+ "tenant"
4101
4176
  ],
4177
+ "description": "Organization/tenant ID",
4178
+ "env": "SFCC_TENANT_ID",
4179
+ "helpGroup": "AUTH",
4180
+ "name": "tenant-id",
4181
+ "hasDynamicHelp": false,
4182
+ "multiple": false,
4102
4183
  "type": "option"
4103
4184
  },
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"
4185
+ "auth-methods": {
4186
+ "description": "Allowed auth methods in priority order (comma-separated)",
4187
+ "env": "SFCC_AUTH_METHODS",
4188
+ "exclusive": [
4189
+ "user-auth"
4190
+ ],
4191
+ "helpGroup": "AUTH",
4192
+ "name": "auth-methods",
4193
+ "delimiter": ",",
4194
+ "hasDynamicHelp": false,
4195
+ "multiple": true,
4196
+ "options": [
4197
+ "client-credentials",
4198
+ "implicit",
4199
+ "basic",
4200
+ "api-key"
4201
+ ],
4202
+ "type": "option"
4112
4203
  },
4113
- "jsonl": {
4114
- "aliases": [
4115
- "json-logs"
4204
+ "user-auth": {
4205
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
4206
+ "exclusive": [
4207
+ "auth-methods"
4116
4208
  ],
4117
- "description": "Output log messages as JSON lines",
4118
- "env": "SFCC_JSON_LOGS",
4119
- "helpGroup": "GLOBAL",
4120
- "name": "jsonl",
4209
+ "helpGroup": "AUTH",
4210
+ "name": "user-auth",
4121
4211
  "allowNo": false,
4122
4212
  "type": "boolean"
4123
4213
  },
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",
4214
+ "account-manager-host": {
4215
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
4216
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
4217
+ "helpGroup": "AUTH",
4218
+ "name": "account-manager-host",
4129
4219
  "hasDynamicHelp": false,
4130
4220
  "multiple": false,
4131
4221
  "type": "option"
4132
4222
  },
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",
4223
+ "server": {
4224
+ "char": "s",
4225
+ "description": "B2C instance hostname",
4226
+ "env": "SFCC_SERVER",
4227
+ "helpGroup": "INSTANCE",
4228
+ "name": "server",
4138
4229
  "hasDynamicHelp": false,
4139
4230
  "multiple": false,
4140
4231
  "type": "option"
4141
4232
  },
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",
4233
+ "webdav-server": {
4234
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
4235
+ "env": "SFCC_WEBDAV_SERVER",
4236
+ "helpGroup": "INSTANCE",
4237
+ "name": "webdav-server",
4148
4238
  "hasDynamicHelp": false,
4149
4239
  "multiple": false,
4150
4240
  "type": "option"
4151
4241
  },
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",
4242
+ "code-version": {
4243
+ "char": "v",
4244
+ "description": "Code version",
4245
+ "env": "SFCC_CODE_VERSION",
4246
+ "helpGroup": "INSTANCE",
4247
+ "name": "code-version",
4160
4248
  "hasDynamicHelp": false,
4161
4249
  "multiple": false,
4162
4250
  "type": "option"
4163
4251
  },
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",
4252
+ "username": {
4253
+ "char": "u",
4254
+ "description": "Username for Basic Auth (WebDAV)",
4255
+ "env": "SFCC_USERNAME",
4256
+ "helpGroup": "AUTH",
4257
+ "name": "username",
4170
4258
  "hasDynamicHelp": false,
4171
4259
  "multiple": false,
4172
4260
  "type": "option"
4173
4261
  },
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",
4262
+ "password": {
4263
+ "char": "p",
4264
+ "description": "Password/access key for Basic Auth (WebDAV)",
4265
+ "env": "SFCC_PASSWORD",
4266
+ "helpGroup": "AUTH",
4267
+ "name": "password",
4180
4268
  "hasDynamicHelp": false,
4181
4269
  "multiple": false,
4182
4270
  "type": "option"
4183
4271
  },
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",
4272
+ "certificate": {
4273
+ "description": "Path to PKCS12 certificate for two-factor auth",
4274
+ "env": "SFCC_CERTIFICATE",
4275
+ "helpGroup": "AUTH",
4276
+ "name": "certificate",
4190
4277
  "hasDynamicHelp": false,
4191
4278
  "multiple": false,
4192
4279
  "type": "option"
4193
4280
  },
4194
- "limit": {
4195
- "char": "l",
4196
- "description": "Maximum number of results to display",
4197
- "name": "limit",
4198
- "default": 20,
4281
+ "passphrase": {
4282
+ "description": "Passphrase for the certificate",
4283
+ "env": "SFCC_CERTIFICATE_PASSPHRASE",
4284
+ "helpGroup": "AUTH",
4285
+ "name": "passphrase",
4199
4286
  "hasDynamicHelp": false,
4200
4287
  "multiple": false,
4201
4288
  "type": "option"
4202
4289
  },
4203
- "list": {
4204
- "description": "List all available documentation entries",
4205
- "name": "list",
4290
+ "selfsigned": {
4291
+ "description": "Allow self-signed server certificates",
4292
+ "env": "SFCC_SELFSIGNED",
4293
+ "helpGroup": "AUTH",
4294
+ "name": "selfsigned",
4206
4295
  "allowNo": false,
4207
4296
  "type": "boolean"
4297
+ },
4298
+ "verify": {
4299
+ "description": "Verify SSL certificates",
4300
+ "helpGroup": "AUTH",
4301
+ "name": "verify",
4302
+ "allowNo": true,
4303
+ "type": "boolean"
4304
+ },
4305
+ "cartridge": {
4306
+ "char": "c",
4307
+ "description": "Include specific cartridge(s) (comma-separated)",
4308
+ "name": "cartridge",
4309
+ "delimiter": ",",
4310
+ "hasDynamicHelp": false,
4311
+ "multiple": true,
4312
+ "type": "option"
4313
+ },
4314
+ "exclude-cartridge": {
4315
+ "char": "x",
4316
+ "description": "Exclude specific cartridge(s) (comma-separated)",
4317
+ "name": "exclude-cartridge",
4318
+ "delimiter": ",",
4319
+ "hasDynamicHelp": false,
4320
+ "multiple": true,
4321
+ "type": "option"
4208
4322
  }
4209
4323
  },
4210
4324
  "hasDynamicHelp": false,
4211
4325
  "hiddenAliases": [],
4212
- "id": "docs:search",
4326
+ "id": "code:watch",
4213
4327
  "pluginAlias": "@salesforce/b2c-cli",
4214
4328
  "pluginName": "@salesforce/b2c-cli",
4215
4329
  "pluginType": "core",
4216
4330
  "strict": true,
4217
- "enableJsonFlag": true,
4331
+ "enableJsonFlag": false,
4332
+ "baseArgs": {
4333
+ "cartridgePath": {
4334
+ "description": "Path to cartridges directory",
4335
+ "default": ".",
4336
+ "input": [],
4337
+ "type": "option"
4338
+ }
4339
+ },
4340
+ "cartridgeFlags": {
4341
+ "cartridge": {
4342
+ "char": "c",
4343
+ "description": "Include specific cartridge(s) (comma-separated)",
4344
+ "multiple": true,
4345
+ "multipleNonGreedy": true,
4346
+ "delimiter": ",",
4347
+ "input": [],
4348
+ "type": "option"
4349
+ },
4350
+ "exclude-cartridge": {
4351
+ "char": "x",
4352
+ "description": "Exclude specific cartridge(s) (comma-separated)",
4353
+ "multiple": true,
4354
+ "multipleNonGreedy": true,
4355
+ "delimiter": ",",
4356
+ "input": [],
4357
+ "type": "option"
4358
+ }
4359
+ },
4218
4360
  "isESM": true,
4219
4361
  "relativePath": [
4220
4362
  "dist",
4221
4363
  "commands",
4222
- "docs",
4223
- "search.js"
4364
+ "code",
4365
+ "watch.js"
4224
4366
  ]
4225
4367
  },
4226
- "content:export": {
4368
+ "docs:download": {
4227
4369
  "aliases": [],
4228
4370
  "args": {
4229
- "pages": {
4230
- "description": "Content IDs to export (pages, content assets, or components)",
4231
- "name": "pages",
4371
+ "output": {
4372
+ "description": "Output directory for extracted documentation",
4373
+ "name": "output",
4232
4374
  "required": true
4233
4375
  }
4234
4376
  },
4235
- "description": "Export Page Designer pages with components and assets from a content library",
4377
+ "description": "Download Script API documentation from a B2C Commerce instance",
4236
4378
  "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"
4379
+ "<%= config.bin %> <%= command.id %> ./docs",
4380
+ "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
4381
+ "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
4243
4382
  ],
4244
4383
  "flags": {
4245
4384
  "json": {
@@ -4525,115 +4664,45 @@
4525
4664
  "allowNo": true,
4526
4665
  "type": "boolean"
4527
4666
  },
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"
4534
- },
4535
- "output": {
4536
- "char": "o",
4537
- "description": "Output directory",
4538
- "name": "output",
4539
- "hasDynamicHelp": false,
4540
- "multiple": false,
4541
- "type": "option"
4542
- },
4543
- "site-library": {
4544
- "description": "Library is a site-private library",
4545
- "name": "site-library",
4546
- "allowNo": false,
4547
- "type": "boolean"
4548
- },
4549
- "asset-query": {
4550
- "char": "q",
4551
- "description": "JSON dot-paths for asset extraction",
4552
- "name": "asset-query",
4553
- "default": [
4554
- "image.path"
4555
- ],
4556
- "hasDynamicHelp": false,
4557
- "multiple": true,
4558
- "type": "option"
4559
- },
4560
- "regex": {
4561
- "char": "r",
4562
- "description": "Treat page IDs as regular expressions",
4563
- "name": "regex",
4564
- "allowNo": false,
4565
- "type": "boolean"
4566
- },
4567
- "folder": {
4568
- "description": "Filter by folder classification",
4569
- "name": "folder",
4570
- "hasDynamicHelp": false,
4571
- "multiple": true,
4572
- "type": "option"
4573
- },
4574
- "offline": {
4575
- "description": "Skip asset downloads",
4576
- "name": "offline",
4577
- "allowNo": false,
4578
- "type": "boolean"
4579
- },
4580
- "library-file": {
4581
- "description": "Use a local library XML file instead of fetching from instance",
4582
- "name": "library-file",
4583
- "hasDynamicHelp": false,
4584
- "multiple": false,
4585
- "type": "option"
4586
- },
4587
- "keep-orphans": {
4588
- "description": "Include orphan components in export",
4589
- "name": "keep-orphans",
4590
- "allowNo": false,
4591
- "type": "boolean"
4592
- },
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",
4602
- "hasDynamicHelp": false,
4603
- "multiple": false,
4604
- "type": "option"
4605
- },
4606
- "dry-run": {
4607
- "description": "Preview export without downloading assets or writing files",
4608
- "name": "dry-run",
4667
+ "keep-archive": {
4668
+ "description": "Keep the downloaded archive file",
4669
+ "name": "keep-archive",
4609
4670
  "allowNo": false,
4610
4671
  "type": "boolean"
4611
4672
  }
4612
4673
  },
4613
4674
  "hasDynamicHelp": false,
4614
4675
  "hiddenAliases": [],
4615
- "id": "content:export",
4676
+ "id": "docs:download",
4616
4677
  "pluginAlias": "@salesforce/b2c-cli",
4617
4678
  "pluginName": "@salesforce/b2c-cli",
4618
4679
  "pluginType": "core",
4619
- "strict": false,
4680
+ "strict": true,
4620
4681
  "enableJsonFlag": true,
4621
4682
  "isESM": true,
4622
4683
  "relativePath": [
4623
4684
  "dist",
4624
4685
  "commands",
4625
- "content",
4626
- "export.js"
4686
+ "docs",
4687
+ "download.js"
4627
4688
  ]
4628
4689
  },
4629
- "content:list": {
4690
+ "docs:read": {
4630
4691
  "aliases": [],
4631
- "args": {},
4632
- "description": "List pages and content in a content library",
4692
+ "args": {
4693
+ "query": {
4694
+ "description": "Search query for documentation (class name, module path, or partial match)",
4695
+ "name": "query",
4696
+ "required": true
4697
+ }
4698
+ },
4699
+ "description": "Read Script API documentation for a class or module",
4633
4700
  "examples": [
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"
4701
+ "<%= config.bin %> <%= command.id %> ProductMgr",
4702
+ "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
4703
+ "<%= config.bin %> <%= command.id %> \"dw system Status\"",
4704
+ "<%= config.bin %> <%= command.id %> ProductMgr --raw",
4705
+ "<%= config.bin %> <%= command.id %> ProductMgr --json"
4637
4706
  ],
4638
4707
  "flags": {
4639
4708
  "json": {
@@ -4750,230 +4819,180 @@
4750
4819
  "multiple": false,
4751
4820
  "type": "option"
4752
4821
  },
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"
4822
+ "raw": {
4823
+ "char": "r",
4824
+ "description": "Output raw markdown without terminal formatting",
4825
+ "name": "raw",
4826
+ "allowNo": false,
4827
+ "type": "boolean"
4828
+ }
4829
+ },
4830
+ "hasDynamicHelp": false,
4831
+ "hiddenAliases": [],
4832
+ "id": "docs:read",
4833
+ "pluginAlias": "@salesforce/b2c-cli",
4834
+ "pluginName": "@salesforce/b2c-cli",
4835
+ "pluginType": "core",
4836
+ "strict": true,
4837
+ "enableJsonFlag": true,
4838
+ "isESM": true,
4839
+ "relativePath": [
4840
+ "dist",
4841
+ "commands",
4842
+ "docs",
4843
+ "read.js"
4844
+ ]
4845
+ },
4846
+ "docs:schema": {
4847
+ "aliases": [],
4848
+ "args": {
4849
+ "query": {
4850
+ "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
4851
+ "name": "query",
4852
+ "required": false
4853
+ }
4854
+ },
4855
+ "description": "Read an XSD schema file",
4856
+ "examples": [
4857
+ "<%= config.bin %> <%= command.id %> catalog",
4858
+ "<%= config.bin %> <%= command.id %> order",
4859
+ "<%= config.bin %> <%= command.id %> --list",
4860
+ "<%= config.bin %> <%= command.id %> catalog --json",
4861
+ "xmllint --schema \"$(<%= config.bin %> <%= command.id %> catalog --path)\" file.xml --noout"
4862
+ ],
4863
+ "flags": {
4864
+ "json": {
4865
+ "description": "Output result as JSON",
4866
+ "helpGroup": "GLOBAL",
4867
+ "name": "json",
4868
+ "allowNo": false,
4869
+ "type": "boolean"
4789
4870
  },
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",
4871
+ "log-level": {
4872
+ "description": "Set logging verbosity level",
4873
+ "env": "SFCC_LOG_LEVEL",
4874
+ "helpGroup": "GLOBAL",
4875
+ "name": "log-level",
4798
4876
  "hasDynamicHelp": false,
4799
4877
  "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
4878
  "options": [
4814
- "client-credentials",
4815
- "implicit",
4816
- "basic",
4817
- "api-key"
4879
+ "trace",
4880
+ "debug",
4881
+ "info",
4882
+ "warn",
4883
+ "error",
4884
+ "silent"
4818
4885
  ],
4819
4886
  "type": "option"
4820
4887
  },
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",
4888
+ "debug": {
4889
+ "char": "D",
4890
+ "description": "Enable debug logging (shorthand for --log-level debug)",
4891
+ "env": "SFCC_DEBUG",
4892
+ "helpGroup": "GLOBAL",
4893
+ "name": "debug",
4828
4894
  "allowNo": false,
4829
4895
  "type": "boolean"
4830
4896
  },
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"
4897
+ "jsonl": {
4898
+ "aliases": [
4899
+ "json-logs"
4900
+ ],
4901
+ "description": "Output log messages as JSON lines",
4902
+ "env": "SFCC_JSON_LOGS",
4903
+ "helpGroup": "GLOBAL",
4904
+ "name": "jsonl",
4905
+ "allowNo": false,
4906
+ "type": "boolean"
4868
4907
  },
4869
- "username": {
4870
- "char": "u",
4871
- "description": "Username for Basic Auth (WebDAV)",
4872
- "env": "SFCC_USERNAME",
4873
- "helpGroup": "AUTH",
4874
- "name": "username",
4908
+ "lang": {
4909
+ "char": "L",
4910
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
4911
+ "helpGroup": "GLOBAL",
4912
+ "name": "lang",
4875
4913
  "hasDynamicHelp": false,
4876
4914
  "multiple": false,
4877
4915
  "type": "option"
4878
4916
  },
4879
- "password": {
4880
- "char": "p",
4881
- "description": "Password/access key for Basic Auth (WebDAV)",
4882
- "env": "SFCC_PASSWORD",
4883
- "helpGroup": "AUTH",
4884
- "name": "password",
4917
+ "config": {
4918
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
4919
+ "env": "SFCC_CONFIG",
4920
+ "helpGroup": "GLOBAL",
4921
+ "name": "config",
4885
4922
  "hasDynamicHelp": false,
4886
4923
  "multiple": false,
4887
4924
  "type": "option"
4888
4925
  },
4889
- "certificate": {
4890
- "description": "Path to PKCS12 certificate for two-factor auth",
4891
- "env": "SFCC_CERTIFICATE",
4892
- "helpGroup": "AUTH",
4893
- "name": "certificate",
4926
+ "instance": {
4927
+ "char": "i",
4928
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
4929
+ "env": "SFCC_INSTANCE",
4930
+ "helpGroup": "GLOBAL",
4931
+ "name": "instance",
4894
4932
  "hasDynamicHelp": false,
4895
4933
  "multiple": false,
4896
4934
  "type": "option"
4897
4935
  },
4898
- "passphrase": {
4899
- "description": "Passphrase for the certificate",
4900
- "env": "SFCC_CERTIFICATE_PASSPHRASE",
4901
- "helpGroup": "AUTH",
4902
- "name": "passphrase",
4936
+ "project-directory": {
4937
+ "aliases": [
4938
+ "working-directory"
4939
+ ],
4940
+ "description": "Project directory",
4941
+ "env": "SFCC_PROJECT_DIRECTORY",
4942
+ "helpGroup": "GLOBAL",
4943
+ "name": "project-directory",
4903
4944
  "hasDynamicHelp": false,
4904
4945
  "multiple": false,
4905
4946
  "type": "option"
4906
4947
  },
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",
4948
+ "extra-query": {
4949
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
4950
+ "env": "SFCC_EXTRA_QUERY",
4951
+ "helpGroup": "GLOBAL",
4952
+ "hidden": true,
4953
+ "name": "extra-query",
4925
4954
  "hasDynamicHelp": false,
4926
4955
  "multiple": false,
4927
4956
  "type": "option"
4928
4957
  },
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",
4958
+ "extra-body": {
4959
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
4960
+ "env": "SFCC_EXTRA_BODY",
4961
+ "helpGroup": "GLOBAL",
4962
+ "hidden": true,
4963
+ "name": "extra-body",
4938
4964
  "hasDynamicHelp": false,
4939
4965
  "multiple": false,
4940
4966
  "type": "option"
4941
4967
  },
4942
- "type": {
4943
- "description": "Filter by node type",
4944
- "name": "type",
4968
+ "extra-headers": {
4969
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
4970
+ "env": "SFCC_EXTRA_HEADERS",
4971
+ "helpGroup": "GLOBAL",
4972
+ "hidden": true,
4973
+ "name": "extra-headers",
4945
4974
  "hasDynamicHelp": false,
4946
4975
  "multiple": false,
4947
- "options": [
4948
- "page",
4949
- "content",
4950
- "component"
4951
- ],
4952
4976
  "type": "option"
4953
4977
  },
4954
- "components": {
4955
- "description": "Include components in output",
4956
- "name": "components",
4978
+ "list": {
4979
+ "char": "l",
4980
+ "description": "List all available schemas",
4981
+ "name": "list",
4957
4982
  "allowNo": false,
4958
4983
  "type": "boolean"
4959
4984
  },
4960
- "tree": {
4961
- "description": "Show tree structure",
4962
- "name": "tree",
4985
+ "path": {
4986
+ "char": "p",
4987
+ "description": "Print the filesystem path to the schema instead of its content",
4988
+ "name": "path",
4963
4989
  "allowNo": false,
4964
4990
  "type": "boolean"
4965
- },
4966
- "timeout": {
4967
- "description": "Job timeout in seconds",
4968
- "name": "timeout",
4969
- "hasDynamicHelp": false,
4970
- "multiple": false,
4971
- "type": "option"
4972
4991
  }
4973
4992
  },
4974
4993
  "hasDynamicHelp": false,
4975
4994
  "hiddenAliases": [],
4976
- "id": "content:list",
4995
+ "id": "docs:schema",
4977
4996
  "pluginAlias": "@salesforce/b2c-cli",
4978
4997
  "pluginName": "@salesforce/b2c-cli",
4979
4998
  "pluginType": "core",
@@ -4983,26 +5002,25 @@
4983
5002
  "relativePath": [
4984
5003
  "dist",
4985
5004
  "commands",
4986
- "content",
4987
- "list.js"
5005
+ "docs",
5006
+ "schema.js"
4988
5007
  ]
4989
5008
  },
4990
- "content:validate": {
5009
+ "docs:search": {
4991
5010
  "aliases": [],
4992
5011
  "args": {
4993
- "files": {
4994
- "description": "File(s), directory, or glob pattern(s) for JSON metadefinition files to validate",
4995
- "name": "files",
4996
- "required": true
5012
+ "query": {
5013
+ "description": "Search query (fuzzy match against class/module names)",
5014
+ "name": "query",
5015
+ "required": false
4997
5016
  }
4998
5017
  },
4999
- "description": "Validate Page Designer metadefinition JSON files against schemas",
5018
+ "description": "Search Script API documentation",
5000
5019
  "examples": [
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"
5020
+ "<%= config.bin %> <%= command.id %> ProductMgr",
5021
+ "<%= config.bin %> <%= command.id %> \"catalog product\"",
5022
+ "<%= config.bin %> <%= command.id %> status --limit 5",
5023
+ "<%= config.bin %> <%= command.id %> --list"
5006
5024
  ],
5007
5025
  "flags": {
5008
5026
  "json": {
@@ -5119,40 +5137,36 @@
5119
5137
  "multiple": false,
5120
5138
  "type": "option"
5121
5139
  },
5122
- "type": {
5123
- "char": "t",
5124
- "description": "Schema type (auto-detected if not specified)",
5125
- "name": "type",
5140
+ "limit": {
5141
+ "char": "l",
5142
+ "description": "Maximum number of results to display",
5143
+ "name": "limit",
5144
+ "default": 20,
5126
5145
  "hasDynamicHelp": false,
5127
5146
  "multiple": false,
5128
- "options": [
5129
- "pagetype",
5130
- "componenttype",
5131
- "aspecttype",
5132
- "cmsrecord",
5133
- "customeditortype",
5134
- "contentassetpageconfig",
5135
- "contentassetcomponentconfig",
5136
- "contentassetstructuredcontentdata",
5137
- "image"
5138
- ],
5139
5147
  "type": "option"
5148
+ },
5149
+ "list": {
5150
+ "description": "List all available documentation entries",
5151
+ "name": "list",
5152
+ "allowNo": false,
5153
+ "type": "boolean"
5140
5154
  }
5141
5155
  },
5142
5156
  "hasDynamicHelp": false,
5143
5157
  "hiddenAliases": [],
5144
- "id": "content:validate",
5158
+ "id": "docs:search",
5145
5159
  "pluginAlias": "@salesforce/b2c-cli",
5146
5160
  "pluginName": "@salesforce/b2c-cli",
5147
5161
  "pluginType": "core",
5148
- "strict": false,
5162
+ "strict": true,
5149
5163
  "enableJsonFlag": true,
5150
5164
  "isESM": true,
5151
5165
  "relativePath": [
5152
5166
  "dist",
5153
5167
  "commands",
5154
- "content",
5155
- "validate.js"
5168
+ "docs",
5169
+ "search.js"
5156
5170
  ]
5157
5171
  },
5158
5172
  "job:export": {
@@ -19654,303 +19668,52 @@
19654
19668
  "multiple": false,
19655
19669
  "type": "option"
19656
19670
  },
19657
- "size": {
19658
- "char": "s",
19659
- "description": "Page size (default: 20, min: 1, max: 4000)",
19660
- "name": "size",
19661
- "hasDynamicHelp": false,
19662
- "multiple": false,
19663
- "type": "option"
19664
- },
19665
- "page": {
19666
- "description": "Page number (zero-based index, default: 0, min: 0)",
19667
- "name": "page",
19668
- "hasDynamicHelp": false,
19669
- "multiple": false,
19670
- "type": "option"
19671
- },
19672
- "target-type": {
19673
- "char": "t",
19674
- "description": "Filter by target type (User or ApiClient)",
19675
- "name": "target-type",
19676
- "hasDynamicHelp": false,
19677
- "multiple": false,
19678
- "options": [
19679
- "User",
19680
- "ApiClient"
19681
- ],
19682
- "type": "option"
19683
- },
19684
- "columns": {
19685
- "char": "c",
19686
- "description": "Columns to display (comma-separated). Available: id, description, roleEnumName, scope, targetType, twoFAEnabled, permissions",
19687
- "name": "columns",
19688
- "hasDynamicHelp": false,
19689
- "multiple": false,
19690
- "type": "option"
19691
- },
19692
- "extended": {
19693
- "char": "x",
19694
- "description": "Show all columns including extended fields",
19695
- "name": "extended",
19696
- "allowNo": false,
19697
- "type": "boolean"
19698
- }
19699
- },
19700
- "hasDynamicHelp": false,
19701
- "hiddenAliases": [],
19702
- "id": "am:roles:list",
19703
- "pluginAlias": "@salesforce/b2c-cli",
19704
- "pluginName": "@salesforce/b2c-cli",
19705
- "pluginType": "core",
19706
- "strict": true,
19707
- "enableJsonFlag": true,
19708
- "isESM": true,
19709
- "relativePath": [
19710
- "dist",
19711
- "commands",
19712
- "am",
19713
- "roles",
19714
- "list.js"
19715
- ]
19716
- },
19717
- "am:roles:revoke": {
19718
- "aliases": [],
19719
- "args": {
19720
- "login": {
19721
- "description": "User login (email)",
19722
- "name": "login",
19723
- "required": true
19724
- }
19725
- },
19726
- "description": "Revoke a role from an Account Manager user",
19727
- "examples": [
19728
- "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin",
19729
- "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin --scope tenant1"
19730
- ],
19731
- "flags": {
19732
- "json": {
19733
- "description": "Output result as JSON",
19734
- "helpGroup": "GLOBAL",
19735
- "name": "json",
19736
- "allowNo": false,
19737
- "type": "boolean"
19738
- },
19739
- "log-level": {
19740
- "description": "Set logging verbosity level",
19741
- "env": "SFCC_LOG_LEVEL",
19742
- "helpGroup": "GLOBAL",
19743
- "name": "log-level",
19744
- "hasDynamicHelp": false,
19745
- "multiple": false,
19746
- "options": [
19747
- "trace",
19748
- "debug",
19749
- "info",
19750
- "warn",
19751
- "error",
19752
- "silent"
19753
- ],
19754
- "type": "option"
19755
- },
19756
- "debug": {
19757
- "char": "D",
19758
- "description": "Enable debug logging (shorthand for --log-level debug)",
19759
- "env": "SFCC_DEBUG",
19760
- "helpGroup": "GLOBAL",
19761
- "name": "debug",
19762
- "allowNo": false,
19763
- "type": "boolean"
19764
- },
19765
- "jsonl": {
19766
- "aliases": [
19767
- "json-logs"
19768
- ],
19769
- "description": "Output log messages as JSON lines",
19770
- "env": "SFCC_JSON_LOGS",
19771
- "helpGroup": "GLOBAL",
19772
- "name": "jsonl",
19773
- "allowNo": false,
19774
- "type": "boolean"
19775
- },
19776
- "lang": {
19777
- "char": "L",
19778
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
19779
- "helpGroup": "GLOBAL",
19780
- "name": "lang",
19781
- "hasDynamicHelp": false,
19782
- "multiple": false,
19783
- "type": "option"
19784
- },
19785
- "config": {
19786
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
19787
- "env": "SFCC_CONFIG",
19788
- "helpGroup": "GLOBAL",
19789
- "name": "config",
19790
- "hasDynamicHelp": false,
19791
- "multiple": false,
19792
- "type": "option"
19793
- },
19794
- "instance": {
19795
- "char": "i",
19796
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
19797
- "env": "SFCC_INSTANCE",
19798
- "helpGroup": "GLOBAL",
19799
- "name": "instance",
19800
- "hasDynamicHelp": false,
19801
- "multiple": false,
19802
- "type": "option"
19803
- },
19804
- "project-directory": {
19805
- "aliases": [
19806
- "working-directory"
19807
- ],
19808
- "description": "Project directory",
19809
- "env": "SFCC_PROJECT_DIRECTORY",
19810
- "helpGroup": "GLOBAL",
19811
- "name": "project-directory",
19812
- "hasDynamicHelp": false,
19813
- "multiple": false,
19814
- "type": "option"
19815
- },
19816
- "extra-query": {
19817
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
19818
- "env": "SFCC_EXTRA_QUERY",
19819
- "helpGroup": "GLOBAL",
19820
- "hidden": true,
19821
- "name": "extra-query",
19822
- "hasDynamicHelp": false,
19823
- "multiple": false,
19824
- "type": "option"
19825
- },
19826
- "extra-body": {
19827
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
19828
- "env": "SFCC_EXTRA_BODY",
19829
- "helpGroup": "GLOBAL",
19830
- "hidden": true,
19831
- "name": "extra-body",
19832
- "hasDynamicHelp": false,
19833
- "multiple": false,
19834
- "type": "option"
19835
- },
19836
- "extra-headers": {
19837
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
19838
- "env": "SFCC_EXTRA_HEADERS",
19839
- "helpGroup": "GLOBAL",
19840
- "hidden": true,
19841
- "name": "extra-headers",
19842
- "hasDynamicHelp": false,
19843
- "multiple": false,
19844
- "type": "option"
19845
- },
19846
- "client-id": {
19847
- "description": "Client ID for OAuth",
19848
- "env": "SFCC_CLIENT_ID",
19849
- "helpGroup": "AUTH",
19850
- "name": "client-id",
19851
- "hasDynamicHelp": false,
19852
- "multiple": false,
19853
- "type": "option"
19854
- },
19855
- "client-secret": {
19856
- "description": "Client Secret for OAuth",
19857
- "env": "SFCC_CLIENT_SECRET",
19858
- "helpGroup": "AUTH",
19859
- "name": "client-secret",
19860
- "hasDynamicHelp": false,
19861
- "multiple": false,
19862
- "type": "option"
19863
- },
19864
- "auth-scope": {
19865
- "description": "OAuth scopes to request (comma-separated)",
19866
- "env": "SFCC_OAUTH_SCOPES",
19867
- "helpGroup": "AUTH",
19868
- "name": "auth-scope",
19869
- "delimiter": ",",
19870
- "hasDynamicHelp": false,
19871
- "multiple": true,
19872
- "type": "option"
19873
- },
19874
- "short-code": {
19875
- "description": "SCAPI short code",
19876
- "env": "SFCC_SHORTCODE",
19877
- "helpGroup": "AUTH",
19878
- "name": "short-code",
19879
- "hasDynamicHelp": false,
19880
- "multiple": false,
19881
- "type": "option"
19882
- },
19883
- "tenant-id": {
19884
- "aliases": [
19885
- "tenant"
19886
- ],
19887
- "description": "Organization/tenant ID",
19888
- "env": "SFCC_TENANT_ID",
19889
- "helpGroup": "AUTH",
19890
- "name": "tenant-id",
19891
- "hasDynamicHelp": false,
19892
- "multiple": false,
19893
- "type": "option"
19894
- },
19895
- "auth-methods": {
19896
- "description": "Allowed auth methods in priority order (comma-separated)",
19897
- "env": "SFCC_AUTH_METHODS",
19898
- "exclusive": [
19899
- "user-auth"
19900
- ],
19901
- "helpGroup": "AUTH",
19902
- "name": "auth-methods",
19903
- "delimiter": ",",
19904
- "hasDynamicHelp": false,
19905
- "multiple": true,
19906
- "options": [
19907
- "client-credentials",
19908
- "implicit",
19909
- "basic",
19910
- "api-key"
19911
- ],
19912
- "type": "option"
19913
- },
19914
- "user-auth": {
19915
- "description": "Use browser-based user authentication (implicit OAuth flow)",
19916
- "exclusive": [
19917
- "auth-methods"
19918
- ],
19919
- "helpGroup": "AUTH",
19920
- "name": "user-auth",
19921
- "allowNo": false,
19922
- "type": "boolean"
19923
- },
19924
- "account-manager-host": {
19925
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
19926
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
19927
- "helpGroup": "AUTH",
19928
- "name": "account-manager-host",
19929
- "hasDynamicHelp": false,
19930
- "multiple": false,
19931
- "type": "option"
19932
- },
19933
- "role": {
19934
- "char": "r",
19935
- "description": "Role to revoke",
19936
- "name": "role",
19937
- "required": true,
19671
+ "size": {
19672
+ "char": "s",
19673
+ "description": "Page size (default: 20, min: 1, max: 4000)",
19674
+ "name": "size",
19938
19675
  "hasDynamicHelp": false,
19939
19676
  "multiple": false,
19940
19677
  "type": "option"
19941
19678
  },
19942
- "scope": {
19943
- "char": "s",
19944
- "description": "Scope to remove (if not provided, removes entire role)",
19945
- "name": "scope",
19679
+ "page": {
19680
+ "description": "Page number (zero-based index, default: 0, min: 0)",
19681
+ "name": "page",
19946
19682
  "hasDynamicHelp": false,
19947
19683
  "multiple": false,
19948
19684
  "type": "option"
19685
+ },
19686
+ "target-type": {
19687
+ "char": "t",
19688
+ "description": "Filter by target type (User or ApiClient)",
19689
+ "name": "target-type",
19690
+ "hasDynamicHelp": false,
19691
+ "multiple": false,
19692
+ "options": [
19693
+ "User",
19694
+ "ApiClient"
19695
+ ],
19696
+ "type": "option"
19697
+ },
19698
+ "columns": {
19699
+ "char": "c",
19700
+ "description": "Columns to display (comma-separated). Available: id, description, roleEnumName, scope, targetType, twoFAEnabled, permissions",
19701
+ "name": "columns",
19702
+ "hasDynamicHelp": false,
19703
+ "multiple": false,
19704
+ "type": "option"
19705
+ },
19706
+ "extended": {
19707
+ "char": "x",
19708
+ "description": "Show all columns including extended fields",
19709
+ "name": "extended",
19710
+ "allowNo": false,
19711
+ "type": "boolean"
19949
19712
  }
19950
19713
  },
19951
19714
  "hasDynamicHelp": false,
19952
19715
  "hiddenAliases": [],
19953
- "id": "am:roles:revoke",
19716
+ "id": "am:roles:list",
19954
19717
  "pluginAlias": "@salesforce/b2c-cli",
19955
19718
  "pluginName": "@salesforce/b2c-cli",
19956
19719
  "pluginType": "core",
@@ -19962,16 +19725,22 @@
19962
19725
  "commands",
19963
19726
  "am",
19964
19727
  "roles",
19965
- "revoke.js"
19728
+ "list.js"
19966
19729
  ]
19967
19730
  },
19968
- "am:users:create": {
19731
+ "am:roles:revoke": {
19969
19732
  "aliases": [],
19970
- "args": {},
19971
- "description": "Create a new Account Manager user",
19733
+ "args": {
19734
+ "login": {
19735
+ "description": "User login (email)",
19736
+ "name": "login",
19737
+ "required": true
19738
+ }
19739
+ },
19740
+ "description": "Revoke a role from an Account Manager user",
19972
19741
  "examples": [
19973
- "<%= config.bin %> <%= command.id %> --org org-id --mail user@example.com --first-name John --last-name Doe",
19974
- "<%= config.bin %> <%= command.id %> --org \"My Organization\" --mail user@example.com --first-name John --last-name Doe --json"
19742
+ "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin",
19743
+ "<%= config.bin %> <%= command.id %> user@example.com --role bm-admin --scope tenant1"
19975
19744
  ],
19976
19745
  "flags": {
19977
19746
  "json": {
@@ -20175,36 +19944,19 @@
20175
19944
  "multiple": false,
20176
19945
  "type": "option"
20177
19946
  },
20178
- "org": {
20179
- "char": "o",
20180
- "description": "Organization ID or name",
20181
- "name": "org",
20182
- "required": true,
20183
- "hasDynamicHelp": false,
20184
- "multiple": false,
20185
- "type": "option"
20186
- },
20187
- "mail": {
20188
- "char": "m",
20189
- "description": "User email (login)",
20190
- "name": "mail",
20191
- "required": true,
20192
- "hasDynamicHelp": false,
20193
- "multiple": false,
20194
- "type": "option"
20195
- },
20196
- "first-name": {
20197
- "description": "First name",
20198
- "name": "first-name",
19947
+ "role": {
19948
+ "char": "r",
19949
+ "description": "Role to revoke",
19950
+ "name": "role",
20199
19951
  "required": true,
20200
19952
  "hasDynamicHelp": false,
20201
19953
  "multiple": false,
20202
19954
  "type": "option"
20203
19955
  },
20204
- "last-name": {
20205
- "description": "Last name",
20206
- "name": "last-name",
20207
- "required": true,
19956
+ "scope": {
19957
+ "char": "s",
19958
+ "description": "Scope to remove (if not provided, removes entire role)",
19959
+ "name": "scope",
20208
19960
  "hasDynamicHelp": false,
20209
19961
  "multiple": false,
20210
19962
  "type": "option"
@@ -20212,7 +19964,7 @@
20212
19964
  },
20213
19965
  "hasDynamicHelp": false,
20214
19966
  "hiddenAliases": [],
20215
- "id": "am:users:create",
19967
+ "id": "am:roles:revoke",
20216
19968
  "pluginAlias": "@salesforce/b2c-cli",
20217
19969
  "pluginName": "@salesforce/b2c-cli",
20218
19970
  "pluginType": "core",
@@ -20223,23 +19975,17 @@
20223
19975
  "dist",
20224
19976
  "commands",
20225
19977
  "am",
20226
- "users",
20227
- "create.js"
19978
+ "roles",
19979
+ "revoke.js"
20228
19980
  ]
20229
19981
  },
20230
- "am:users:delete": {
19982
+ "am:users:create": {
20231
19983
  "aliases": [],
20232
- "args": {
20233
- "login": {
20234
- "description": "User login (email)",
20235
- "name": "login",
20236
- "required": true
20237
- }
20238
- },
20239
- "description": "Delete an Account Manager user",
19984
+ "args": {},
19985
+ "description": "Create a new Account Manager user",
20240
19986
  "examples": [
20241
- "<%= config.bin %> <%= command.id %> user@example.com",
20242
- "<%= config.bin %> <%= command.id %> user@example.com --purge"
19987
+ "<%= config.bin %> <%= command.id %> --org org-id --mail user@example.com --first-name John --last-name Doe",
19988
+ "<%= config.bin %> <%= command.id %> --org \"My Organization\" --mail user@example.com --first-name John --last-name Doe --json"
20243
19989
  ],
20244
19990
  "flags": {
20245
19991
  "json": {
@@ -20443,16 +20189,44 @@
20443
20189
  "multiple": false,
20444
20190
  "type": "option"
20445
20191
  },
20446
- "purge": {
20447
- "description": "Purge the user completely (hard delete). User must be in DELETED state first.",
20448
- "name": "purge",
20449
- "allowNo": false,
20450
- "type": "boolean"
20192
+ "org": {
20193
+ "char": "o",
20194
+ "description": "Organization ID or name",
20195
+ "name": "org",
20196
+ "required": true,
20197
+ "hasDynamicHelp": false,
20198
+ "multiple": false,
20199
+ "type": "option"
20200
+ },
20201
+ "mail": {
20202
+ "char": "m",
20203
+ "description": "User email (login)",
20204
+ "name": "mail",
20205
+ "required": true,
20206
+ "hasDynamicHelp": false,
20207
+ "multiple": false,
20208
+ "type": "option"
20209
+ },
20210
+ "first-name": {
20211
+ "description": "First name",
20212
+ "name": "first-name",
20213
+ "required": true,
20214
+ "hasDynamicHelp": false,
20215
+ "multiple": false,
20216
+ "type": "option"
20217
+ },
20218
+ "last-name": {
20219
+ "description": "Last name",
20220
+ "name": "last-name",
20221
+ "required": true,
20222
+ "hasDynamicHelp": false,
20223
+ "multiple": false,
20224
+ "type": "option"
20451
20225
  }
20452
20226
  },
20453
20227
  "hasDynamicHelp": false,
20454
20228
  "hiddenAliases": [],
20455
- "id": "am:users:delete",
20229
+ "id": "am:users:create",
20456
20230
  "pluginAlias": "@salesforce/b2c-cli",
20457
20231
  "pluginName": "@salesforce/b2c-cli",
20458
20232
  "pluginType": "core",
@@ -20464,10 +20238,10 @@
20464
20238
  "commands",
20465
20239
  "am",
20466
20240
  "users",
20467
- "delete.js"
20241
+ "create.js"
20468
20242
  ]
20469
20243
  },
20470
- "am:users:get": {
20244
+ "am:users:delete": {
20471
20245
  "aliases": [],
20472
20246
  "args": {
20473
20247
  "login": {
@@ -20476,13 +20250,10 @@
20476
20250
  "required": true
20477
20251
  }
20478
20252
  },
20479
- "description": "Get details of an Account Manager user",
20253
+ "description": "Delete an Account Manager user",
20480
20254
  "examples": [
20481
20255
  "<%= config.bin %> <%= command.id %> user@example.com",
20482
- "<%= config.bin %> <%= command.id %> user@example.com --json",
20483
- "<%= config.bin %> <%= command.id %> user@example.com --expand-all",
20484
- "<%= config.bin %> <%= command.id %> user@example.com --expand organizations",
20485
- "<%= config.bin %> <%= command.id %> user@example.com --expand organizations,roles"
20256
+ "<%= config.bin %> <%= command.id %> user@example.com --purge"
20486
20257
  ],
20487
20258
  "flags": {
20488
20259
  "json": {
@@ -20686,23 +20457,16 @@
20686
20457
  "multiple": false,
20687
20458
  "type": "option"
20688
20459
  },
20689
- "expand": {
20690
- "description": "Comma-separated list of fields to expand. Valid values: organizations, roles",
20691
- "name": "expand",
20692
- "hasDynamicHelp": false,
20693
- "multiple": false,
20694
- "type": "option"
20695
- },
20696
- "expand-all": {
20697
- "description": "Expand both organizations and roles",
20698
- "name": "expand-all",
20460
+ "purge": {
20461
+ "description": "Purge the user completely (hard delete). User must be in DELETED state first.",
20462
+ "name": "purge",
20699
20463
  "allowNo": false,
20700
20464
  "type": "boolean"
20701
20465
  }
20702
20466
  },
20703
20467
  "hasDynamicHelp": false,
20704
20468
  "hiddenAliases": [],
20705
- "id": "am:users:get",
20469
+ "id": "am:users:delete",
20706
20470
  "pluginAlias": "@salesforce/b2c-cli",
20707
20471
  "pluginName": "@salesforce/b2c-cli",
20708
20472
  "pluginType": "core",
@@ -20714,19 +20478,25 @@
20714
20478
  "commands",
20715
20479
  "am",
20716
20480
  "users",
20717
- "get.js"
20481
+ "delete.js"
20718
20482
  ]
20719
20483
  },
20720
- "am:users:list": {
20484
+ "am:users:get": {
20721
20485
  "aliases": [],
20722
- "args": {},
20723
- "description": "List Account Manager users",
20486
+ "args": {
20487
+ "login": {
20488
+ "description": "User login (email)",
20489
+ "name": "login",
20490
+ "required": true
20491
+ }
20492
+ },
20493
+ "description": "Get details of an Account Manager user",
20724
20494
  "examples": [
20725
- "<%= config.bin %> <%= command.id %>",
20726
- "<%= config.bin %> <%= command.id %> --size 50",
20727
- "<%= config.bin %> <%= command.id %> --size 100",
20728
- "<%= config.bin %> <%= command.id %> --extended",
20729
- "<%= config.bin %> <%= command.id %> --json"
20495
+ "<%= config.bin %> <%= command.id %> user@example.com",
20496
+ "<%= config.bin %> <%= command.id %> user@example.com --json",
20497
+ "<%= config.bin %> <%= command.id %> user@example.com --expand-all",
20498
+ "<%= config.bin %> <%= command.id %> user@example.com --expand organizations",
20499
+ "<%= config.bin %> <%= command.id %> user@example.com --expand organizations,roles"
20730
20500
  ],
20731
20501
  "flags": {
20732
20502
  "json": {
@@ -20930,40 +20700,23 @@
20930
20700
  "multiple": false,
20931
20701
  "type": "option"
20932
20702
  },
20933
- "size": {
20934
- "char": "s",
20935
- "description": "Page size (default: 20, min: 1, max: 4000)",
20936
- "name": "size",
20937
- "hasDynamicHelp": false,
20938
- "multiple": false,
20939
- "type": "option"
20940
- },
20941
- "page": {
20942
- "description": "Page number (zero-based index, default: 0, min: 0)",
20943
- "name": "page",
20944
- "hasDynamicHelp": false,
20945
- "multiple": false,
20946
- "type": "option"
20947
- },
20948
- "columns": {
20949
- "char": "c",
20950
- "description": "Columns to display (comma-separated). Available: mail, firstName, lastName, userState, passwordExpired, twoFAEnabled, linkedToSfIdentity, lastLoginDate, roles, organizations",
20951
- "name": "columns",
20703
+ "expand": {
20704
+ "description": "Comma-separated list of fields to expand. Valid values: organizations, roles",
20705
+ "name": "expand",
20952
20706
  "hasDynamicHelp": false,
20953
20707
  "multiple": false,
20954
20708
  "type": "option"
20955
20709
  },
20956
- "extended": {
20957
- "char": "x",
20958
- "description": "Show all columns including extended fields",
20959
- "name": "extended",
20710
+ "expand-all": {
20711
+ "description": "Expand both organizations and roles",
20712
+ "name": "expand-all",
20960
20713
  "allowNo": false,
20961
20714
  "type": "boolean"
20962
20715
  }
20963
20716
  },
20964
20717
  "hasDynamicHelp": false,
20965
20718
  "hiddenAliases": [],
20966
- "id": "am:users:list",
20719
+ "id": "am:users:get",
20967
20720
  "pluginAlias": "@salesforce/b2c-cli",
20968
20721
  "pluginName": "@salesforce/b2c-cli",
20969
20722
  "pluginType": "core",
@@ -20975,22 +20728,19 @@
20975
20728
  "commands",
20976
20729
  "am",
20977
20730
  "users",
20978
- "list.js"
20731
+ "get.js"
20979
20732
  ]
20980
20733
  },
20981
- "am:users:reset": {
20734
+ "am:users:list": {
20982
20735
  "aliases": [],
20983
- "args": {
20984
- "login": {
20985
- "description": "User login (email)",
20986
- "name": "login",
20987
- "required": true
20988
- }
20989
- },
20990
- "description": "Reset an Account Manager user password",
20736
+ "args": {},
20737
+ "description": "List Account Manager users",
20991
20738
  "examples": [
20992
- "<%= config.bin %> <%= command.id %> user@example.com",
20993
- "<%= config.bin %> <%= command.id %> user@example.com --json"
20739
+ "<%= config.bin %> <%= command.id %>",
20740
+ "<%= config.bin %> <%= command.id %> --size 50",
20741
+ "<%= config.bin %> <%= command.id %> --size 100",
20742
+ "<%= config.bin %> <%= command.id %> --extended",
20743
+ "<%= config.bin %> <%= command.id %> --json"
20994
20744
  ],
20995
20745
  "flags": {
20996
20746
  "json": {
@@ -21193,11 +20943,41 @@
21193
20943
  "hasDynamicHelp": false,
21194
20944
  "multiple": false,
21195
20945
  "type": "option"
20946
+ },
20947
+ "size": {
20948
+ "char": "s",
20949
+ "description": "Page size (default: 20, min: 1, max: 4000)",
20950
+ "name": "size",
20951
+ "hasDynamicHelp": false,
20952
+ "multiple": false,
20953
+ "type": "option"
20954
+ },
20955
+ "page": {
20956
+ "description": "Page number (zero-based index, default: 0, min: 0)",
20957
+ "name": "page",
20958
+ "hasDynamicHelp": false,
20959
+ "multiple": false,
20960
+ "type": "option"
20961
+ },
20962
+ "columns": {
20963
+ "char": "c",
20964
+ "description": "Columns to display (comma-separated). Available: mail, firstName, lastName, userState, passwordExpired, twoFAEnabled, linkedToSfIdentity, lastLoginDate, roles, organizations",
20965
+ "name": "columns",
20966
+ "hasDynamicHelp": false,
20967
+ "multiple": false,
20968
+ "type": "option"
20969
+ },
20970
+ "extended": {
20971
+ "char": "x",
20972
+ "description": "Show all columns including extended fields",
20973
+ "name": "extended",
20974
+ "allowNo": false,
20975
+ "type": "boolean"
21196
20976
  }
21197
20977
  },
21198
20978
  "hasDynamicHelp": false,
21199
20979
  "hiddenAliases": [],
21200
- "id": "am:users:reset",
20980
+ "id": "am:users:list",
21201
20981
  "pluginAlias": "@salesforce/b2c-cli",
21202
20982
  "pluginName": "@salesforce/b2c-cli",
21203
20983
  "pluginType": "core",
@@ -21209,10 +20989,10 @@
21209
20989
  "commands",
21210
20990
  "am",
21211
20991
  "users",
21212
- "reset.js"
20992
+ "list.js"
21213
20993
  ]
21214
20994
  },
21215
- "am:users:update": {
20995
+ "am:users:reset": {
21216
20996
  "aliases": [],
21217
20997
  "args": {
21218
20998
  "login": {
@@ -21221,10 +21001,10 @@
21221
21001
  "required": true
21222
21002
  }
21223
21003
  },
21224
- "description": "Update an Account Manager user",
21004
+ "description": "Reset an Account Manager user password",
21225
21005
  "examples": [
21226
- "<%= config.bin %> <%= command.id %> user@example.com --first-name Jane",
21227
- "<%= config.bin %> <%= command.id %> user@example.com --last-name Smith --json"
21006
+ "<%= config.bin %> <%= command.id %> user@example.com",
21007
+ "<%= config.bin %> <%= command.id %> user@example.com --json"
21228
21008
  ],
21229
21009
  "flags": {
21230
21010
  "json": {
@@ -21427,25 +21207,11 @@
21427
21207
  "hasDynamicHelp": false,
21428
21208
  "multiple": false,
21429
21209
  "type": "option"
21430
- },
21431
- "first-name": {
21432
- "description": "First name",
21433
- "name": "first-name",
21434
- "hasDynamicHelp": false,
21435
- "multiple": false,
21436
- "type": "option"
21437
- },
21438
- "last-name": {
21439
- "description": "Last name",
21440
- "name": "last-name",
21441
- "hasDynamicHelp": false,
21442
- "multiple": false,
21443
- "type": "option"
21444
21210
  }
21445
21211
  },
21446
21212
  "hasDynamicHelp": false,
21447
21213
  "hiddenAliases": [],
21448
- "id": "am:users:update",
21214
+ "id": "am:users:reset",
21449
21215
  "pluginAlias": "@salesforce/b2c-cli",
21450
21216
  "pluginName": "@salesforce/b2c-cli",
21451
21217
  "pluginType": "core",
@@ -21457,20 +21223,31 @@
21457
21223
  "commands",
21458
21224
  "am",
21459
21225
  "users",
21460
- "update.js"
21226
+ "reset.js"
21461
21227
  ]
21462
21228
  },
21463
- "auth:client": {
21229
+ "am:users:update": {
21464
21230
  "aliases": [],
21465
- "args": {},
21466
- "description": "Authenticate an API client and save session",
21231
+ "args": {
21232
+ "login": {
21233
+ "description": "User login (email)",
21234
+ "name": "login",
21235
+ "required": true
21236
+ }
21237
+ },
21238
+ "description": "Update an Account Manager user",
21467
21239
  "examples": [
21468
- "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret>",
21469
- "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --renew",
21470
- "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --user <email> --user-password <pwd>",
21471
- "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --grant-type client_credentials"
21240
+ "<%= config.bin %> <%= command.id %> user@example.com --first-name Jane",
21241
+ "<%= config.bin %> <%= command.id %> user@example.com --last-name Smith --json"
21472
21242
  ],
21473
21243
  "flags": {
21244
+ "json": {
21245
+ "description": "Output result as JSON",
21246
+ "helpGroup": "GLOBAL",
21247
+ "name": "json",
21248
+ "allowNo": false,
21249
+ "type": "boolean"
21250
+ },
21474
21251
  "log-level": {
21475
21252
  "description": "Set logging verbosity level",
21476
21253
  "env": "SFCC_LOG_LEVEL",
@@ -21497,13 +21274,6 @@
21497
21274
  "allowNo": false,
21498
21275
  "type": "boolean"
21499
21276
  },
21500
- "json": {
21501
- "description": "Output result as JSON",
21502
- "helpGroup": "GLOBAL",
21503
- "name": "json",
21504
- "allowNo": false,
21505
- "type": "boolean"
21506
- },
21507
21277
  "jsonl": {
21508
21278
  "aliases": [
21509
21279
  "json-logs"
@@ -21595,7 +21365,7 @@
21595
21365
  "type": "option"
21596
21366
  },
21597
21367
  "client-secret": {
21598
- "description": "Client secret for OAuth",
21368
+ "description": "Client Secret for OAuth",
21599
21369
  "env": "SFCC_CLIENT_SECRET",
21600
21370
  "helpGroup": "AUTH",
21601
21371
  "name": "client-secret",
@@ -21603,15 +21373,6 @@
21603
21373
  "multiple": false,
21604
21374
  "type": "option"
21605
21375
  },
21606
- "account-manager-host": {
21607
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
21608
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
21609
- "helpGroup": "AUTH",
21610
- "name": "account-manager-host",
21611
- "hasDynamicHelp": false,
21612
- "multiple": false,
21613
- "type": "option"
21614
- },
21615
21376
  "auth-scope": {
21616
21377
  "description": "OAuth scopes to request (comma-separated)",
21617
21378
  "env": "SFCC_OAUTH_SCOPES",
@@ -21622,219 +21383,111 @@
21622
21383
  "multiple": true,
21623
21384
  "type": "option"
21624
21385
  },
21625
- "renew": {
21626
- "char": "r",
21627
- "description": "Enable automatic token renewal (stores credentials for later refresh)",
21628
- "name": "renew",
21629
- "allowNo": false,
21630
- "type": "boolean"
21631
- },
21632
- "grant-type": {
21633
- "char": "t",
21634
- "description": "OAuth grant type (default: auto-detect based on provided credentials)",
21635
- "name": "grant-type",
21386
+ "short-code": {
21387
+ "description": "SCAPI short code",
21388
+ "env": "SFCC_SHORTCODE",
21389
+ "helpGroup": "AUTH",
21390
+ "name": "short-code",
21636
21391
  "hasDynamicHelp": false,
21637
21392
  "multiple": false,
21638
- "options": [
21639
- "client_credentials",
21640
- "password"
21641
- ],
21642
21393
  "type": "option"
21643
21394
  },
21644
- "user": {
21645
- "description": "Username for resource owner password credentials grant",
21646
- "env": "SFCC_OAUTH_USER_NAME",
21647
- "name": "user",
21395
+ "tenant-id": {
21396
+ "aliases": [
21397
+ "tenant"
21398
+ ],
21399
+ "description": "Organization/tenant ID",
21400
+ "env": "SFCC_TENANT_ID",
21401
+ "helpGroup": "AUTH",
21402
+ "name": "tenant-id",
21648
21403
  "hasDynamicHelp": false,
21649
21404
  "multiple": false,
21650
21405
  "type": "option"
21651
21406
  },
21652
- "user-password": {
21653
- "description": "Password for resource owner password credentials grant",
21654
- "env": "SFCC_OAUTH_USER_PASSWORD",
21655
- "name": "user-password",
21656
- "hasDynamicHelp": false,
21657
- "multiple": false,
21658
- "type": "option"
21659
- }
21660
- },
21661
- "hasDynamicHelp": false,
21662
- "hiddenAliases": [
21663
- "client:auth"
21664
- ],
21665
- "id": "auth:client",
21666
- "pluginAlias": "@salesforce/b2c-cli",
21667
- "pluginName": "@salesforce/b2c-cli",
21668
- "pluginType": "core",
21669
- "strict": true,
21670
- "enableJsonFlag": false,
21671
- "isESM": true,
21672
- "relativePath": [
21673
- "dist",
21674
- "commands",
21675
- "auth",
21676
- "client",
21677
- "index.js"
21678
- ]
21679
- },
21680
- "auth:client:renew": {
21681
- "aliases": [],
21682
- "args": {},
21683
- "description": "Renew the client authentication token",
21684
- "examples": [
21685
- "<%= config.bin %> <%= command.id %>"
21686
- ],
21687
- "flags": {
21688
- "log-level": {
21689
- "description": "Set logging verbosity level",
21690
- "env": "SFCC_LOG_LEVEL",
21691
- "helpGroup": "GLOBAL",
21692
- "name": "log-level",
21407
+ "auth-methods": {
21408
+ "description": "Allowed auth methods in priority order (comma-separated)",
21409
+ "env": "SFCC_AUTH_METHODS",
21410
+ "exclusive": [
21411
+ "user-auth"
21412
+ ],
21413
+ "helpGroup": "AUTH",
21414
+ "name": "auth-methods",
21415
+ "delimiter": ",",
21693
21416
  "hasDynamicHelp": false,
21694
- "multiple": false,
21417
+ "multiple": true,
21695
21418
  "options": [
21696
- "trace",
21697
- "debug",
21698
- "info",
21699
- "warn",
21700
- "error",
21701
- "silent"
21419
+ "client-credentials",
21420
+ "implicit",
21421
+ "basic",
21422
+ "api-key"
21702
21423
  ],
21703
21424
  "type": "option"
21704
21425
  },
21705
- "debug": {
21706
- "char": "D",
21707
- "description": "Enable debug logging (shorthand for --log-level debug)",
21708
- "env": "SFCC_DEBUG",
21709
- "helpGroup": "GLOBAL",
21710
- "name": "debug",
21711
- "allowNo": false,
21712
- "type": "boolean"
21713
- },
21714
- "json": {
21715
- "description": "Output result as JSON",
21716
- "helpGroup": "GLOBAL",
21717
- "name": "json",
21718
- "allowNo": false,
21719
- "type": "boolean"
21720
- },
21721
- "jsonl": {
21722
- "aliases": [
21723
- "json-logs"
21426
+ "user-auth": {
21427
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
21428
+ "exclusive": [
21429
+ "auth-methods"
21724
21430
  ],
21725
- "description": "Output log messages as JSON lines",
21726
- "env": "SFCC_JSON_LOGS",
21727
- "helpGroup": "GLOBAL",
21728
- "name": "jsonl",
21431
+ "helpGroup": "AUTH",
21432
+ "name": "user-auth",
21729
21433
  "allowNo": false,
21730
21434
  "type": "boolean"
21731
21435
  },
21732
- "lang": {
21733
- "char": "L",
21734
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
21735
- "helpGroup": "GLOBAL",
21736
- "name": "lang",
21737
- "hasDynamicHelp": false,
21738
- "multiple": false,
21739
- "type": "option"
21740
- },
21741
- "config": {
21742
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
21743
- "env": "SFCC_CONFIG",
21744
- "helpGroup": "GLOBAL",
21745
- "name": "config",
21746
- "hasDynamicHelp": false,
21747
- "multiple": false,
21748
- "type": "option"
21749
- },
21750
- "instance": {
21751
- "char": "i",
21752
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
21753
- "env": "SFCC_INSTANCE",
21754
- "helpGroup": "GLOBAL",
21755
- "name": "instance",
21756
- "hasDynamicHelp": false,
21757
- "multiple": false,
21758
- "type": "option"
21759
- },
21760
- "project-directory": {
21761
- "aliases": [
21762
- "working-directory"
21763
- ],
21764
- "description": "Project directory",
21765
- "env": "SFCC_PROJECT_DIRECTORY",
21766
- "helpGroup": "GLOBAL",
21767
- "name": "project-directory",
21768
- "hasDynamicHelp": false,
21769
- "multiple": false,
21770
- "type": "option"
21771
- },
21772
- "extra-query": {
21773
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
21774
- "env": "SFCC_EXTRA_QUERY",
21775
- "helpGroup": "GLOBAL",
21776
- "hidden": true,
21777
- "name": "extra-query",
21778
- "hasDynamicHelp": false,
21779
- "multiple": false,
21780
- "type": "option"
21781
- },
21782
- "extra-body": {
21783
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
21784
- "env": "SFCC_EXTRA_BODY",
21785
- "helpGroup": "GLOBAL",
21786
- "hidden": true,
21787
- "name": "extra-body",
21436
+ "account-manager-host": {
21437
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
21438
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
21439
+ "helpGroup": "AUTH",
21440
+ "name": "account-manager-host",
21788
21441
  "hasDynamicHelp": false,
21789
21442
  "multiple": false,
21790
21443
  "type": "option"
21791
21444
  },
21792
- "extra-headers": {
21793
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
21794
- "env": "SFCC_EXTRA_HEADERS",
21795
- "helpGroup": "GLOBAL",
21796
- "hidden": true,
21797
- "name": "extra-headers",
21445
+ "first-name": {
21446
+ "description": "First name",
21447
+ "name": "first-name",
21798
21448
  "hasDynamicHelp": false,
21799
21449
  "multiple": false,
21800
21450
  "type": "option"
21801
21451
  },
21802
- "account-manager-host": {
21803
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
21804
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
21805
- "helpGroup": "AUTH",
21806
- "name": "account-manager-host",
21452
+ "last-name": {
21453
+ "description": "Last name",
21454
+ "name": "last-name",
21807
21455
  "hasDynamicHelp": false,
21808
21456
  "multiple": false,
21809
21457
  "type": "option"
21810
21458
  }
21811
21459
  },
21812
21460
  "hasDynamicHelp": false,
21813
- "hiddenAliases": [
21814
- "client:auth:renew"
21815
- ],
21816
- "id": "auth:client:renew",
21461
+ "hiddenAliases": [],
21462
+ "id": "am:users:update",
21817
21463
  "pluginAlias": "@salesforce/b2c-cli",
21818
21464
  "pluginName": "@salesforce/b2c-cli",
21819
21465
  "pluginType": "core",
21820
21466
  "strict": true,
21821
- "enableJsonFlag": false,
21467
+ "enableJsonFlag": true,
21822
21468
  "isESM": true,
21823
21469
  "relativePath": [
21824
21470
  "dist",
21825
21471
  "commands",
21826
- "auth",
21827
- "client",
21828
- "renew.js"
21472
+ "am",
21473
+ "users",
21474
+ "update.js"
21829
21475
  ]
21830
21476
  },
21831
- "auth:client:token": {
21477
+ "bm:roles:create": {
21832
21478
  "aliases": [],
21833
- "args": {},
21834
- "description": "Return the current authentication token (stateful)",
21479
+ "args": {
21480
+ "role": {
21481
+ "description": "Role ID to create",
21482
+ "name": "role",
21483
+ "required": true
21484
+ }
21485
+ },
21486
+ "description": "Create a Business Manager access role",
21835
21487
  "examples": [
21836
- "<%= config.bin %> <%= command.id %>",
21837
- "<%= config.bin %> <%= command.id %> --json"
21488
+ "<%= config.bin %> <%= command.id %> MyCustomRole",
21489
+ "<%= config.bin %> <%= command.id %> MyCustomRole --description \"Custom role for content editors\"",
21490
+ "<%= config.bin %> <%= command.id %> MyCustomRole --json"
21838
21491
  ],
21839
21492
  "flags": {
21840
21493
  "json": {
@@ -21950,13 +21603,188 @@
21950
21603
  "hasDynamicHelp": false,
21951
21604
  "multiple": false,
21952
21605
  "type": "option"
21606
+ },
21607
+ "client-id": {
21608
+ "description": "Client ID for OAuth",
21609
+ "env": "SFCC_CLIENT_ID",
21610
+ "helpGroup": "AUTH",
21611
+ "name": "client-id",
21612
+ "hasDynamicHelp": false,
21613
+ "multiple": false,
21614
+ "type": "option"
21615
+ },
21616
+ "client-secret": {
21617
+ "description": "Client Secret for OAuth",
21618
+ "env": "SFCC_CLIENT_SECRET",
21619
+ "helpGroup": "AUTH",
21620
+ "name": "client-secret",
21621
+ "hasDynamicHelp": false,
21622
+ "multiple": false,
21623
+ "type": "option"
21624
+ },
21625
+ "auth-scope": {
21626
+ "description": "OAuth scopes to request (comma-separated)",
21627
+ "env": "SFCC_OAUTH_SCOPES",
21628
+ "helpGroup": "AUTH",
21629
+ "name": "auth-scope",
21630
+ "delimiter": ",",
21631
+ "hasDynamicHelp": false,
21632
+ "multiple": true,
21633
+ "type": "option"
21634
+ },
21635
+ "short-code": {
21636
+ "description": "SCAPI short code",
21637
+ "env": "SFCC_SHORTCODE",
21638
+ "helpGroup": "AUTH",
21639
+ "name": "short-code",
21640
+ "hasDynamicHelp": false,
21641
+ "multiple": false,
21642
+ "type": "option"
21643
+ },
21644
+ "tenant-id": {
21645
+ "aliases": [
21646
+ "tenant"
21647
+ ],
21648
+ "description": "Organization/tenant ID",
21649
+ "env": "SFCC_TENANT_ID",
21650
+ "helpGroup": "AUTH",
21651
+ "name": "tenant-id",
21652
+ "hasDynamicHelp": false,
21653
+ "multiple": false,
21654
+ "type": "option"
21655
+ },
21656
+ "auth-methods": {
21657
+ "description": "Allowed auth methods in priority order (comma-separated)",
21658
+ "env": "SFCC_AUTH_METHODS",
21659
+ "exclusive": [
21660
+ "user-auth"
21661
+ ],
21662
+ "helpGroup": "AUTH",
21663
+ "name": "auth-methods",
21664
+ "delimiter": ",",
21665
+ "hasDynamicHelp": false,
21666
+ "multiple": true,
21667
+ "options": [
21668
+ "client-credentials",
21669
+ "implicit",
21670
+ "basic",
21671
+ "api-key"
21672
+ ],
21673
+ "type": "option"
21674
+ },
21675
+ "user-auth": {
21676
+ "description": "Use browser-based user authentication (implicit OAuth flow)",
21677
+ "exclusive": [
21678
+ "auth-methods"
21679
+ ],
21680
+ "helpGroup": "AUTH",
21681
+ "name": "user-auth",
21682
+ "allowNo": false,
21683
+ "type": "boolean"
21684
+ },
21685
+ "account-manager-host": {
21686
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
21687
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
21688
+ "helpGroup": "AUTH",
21689
+ "name": "account-manager-host",
21690
+ "hasDynamicHelp": false,
21691
+ "multiple": false,
21692
+ "type": "option"
21693
+ },
21694
+ "server": {
21695
+ "char": "s",
21696
+ "description": "B2C instance hostname",
21697
+ "env": "SFCC_SERVER",
21698
+ "helpGroup": "INSTANCE",
21699
+ "name": "server",
21700
+ "hasDynamicHelp": false,
21701
+ "multiple": false,
21702
+ "type": "option"
21703
+ },
21704
+ "webdav-server": {
21705
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
21706
+ "env": "SFCC_WEBDAV_SERVER",
21707
+ "helpGroup": "INSTANCE",
21708
+ "name": "webdav-server",
21709
+ "hasDynamicHelp": false,
21710
+ "multiple": false,
21711
+ "type": "option"
21712
+ },
21713
+ "code-version": {
21714
+ "char": "v",
21715
+ "description": "Code version",
21716
+ "env": "SFCC_CODE_VERSION",
21717
+ "helpGroup": "INSTANCE",
21718
+ "name": "code-version",
21719
+ "hasDynamicHelp": false,
21720
+ "multiple": false,
21721
+ "type": "option"
21722
+ },
21723
+ "username": {
21724
+ "char": "u",
21725
+ "description": "Username for Basic Auth (WebDAV)",
21726
+ "env": "SFCC_USERNAME",
21727
+ "helpGroup": "AUTH",
21728
+ "name": "username",
21729
+ "hasDynamicHelp": false,
21730
+ "multiple": false,
21731
+ "type": "option"
21732
+ },
21733
+ "password": {
21734
+ "char": "p",
21735
+ "description": "Password/access key for Basic Auth (WebDAV)",
21736
+ "env": "SFCC_PASSWORD",
21737
+ "helpGroup": "AUTH",
21738
+ "name": "password",
21739
+ "hasDynamicHelp": false,
21740
+ "multiple": false,
21741
+ "type": "option"
21742
+ },
21743
+ "certificate": {
21744
+ "description": "Path to PKCS12 certificate for two-factor auth",
21745
+ "env": "SFCC_CERTIFICATE",
21746
+ "helpGroup": "AUTH",
21747
+ "name": "certificate",
21748
+ "hasDynamicHelp": false,
21749
+ "multiple": false,
21750
+ "type": "option"
21751
+ },
21752
+ "passphrase": {
21753
+ "description": "Passphrase for the certificate",
21754
+ "env": "SFCC_CERTIFICATE_PASSPHRASE",
21755
+ "helpGroup": "AUTH",
21756
+ "name": "passphrase",
21757
+ "hasDynamicHelp": false,
21758
+ "multiple": false,
21759
+ "type": "option"
21760
+ },
21761
+ "selfsigned": {
21762
+ "description": "Allow self-signed server certificates",
21763
+ "env": "SFCC_SELFSIGNED",
21764
+ "helpGroup": "AUTH",
21765
+ "name": "selfsigned",
21766
+ "allowNo": false,
21767
+ "type": "boolean"
21768
+ },
21769
+ "verify": {
21770
+ "description": "Verify SSL certificates",
21771
+ "helpGroup": "AUTH",
21772
+ "name": "verify",
21773
+ "allowNo": true,
21774
+ "type": "boolean"
21775
+ },
21776
+ "description": {
21777
+ "char": "d",
21778
+ "description": "Description for the role",
21779
+ "name": "description",
21780
+ "hasDynamicHelp": false,
21781
+ "multiple": false,
21782
+ "type": "option"
21953
21783
  }
21954
21784
  },
21955
21785
  "hasDynamicHelp": false,
21956
- "hiddenAliases": [
21957
- "client:auth:token"
21958
- ],
21959
- "id": "auth:client:token",
21786
+ "hiddenAliases": [],
21787
+ "id": "bm:roles:create",
21960
21788
  "pluginAlias": "@salesforce/b2c-cli",
21961
21789
  "pluginName": "@salesforce/b2c-cli",
21962
21790
  "pluginType": "core",
@@ -21966,24 +21794,23 @@
21966
21794
  "relativePath": [
21967
21795
  "dist",
21968
21796
  "commands",
21969
- "auth",
21970
- "client",
21971
- "token.js"
21797
+ "bm",
21798
+ "roles",
21799
+ "create.js"
21972
21800
  ]
21973
21801
  },
21974
- "bm:roles:create": {
21802
+ "bm:roles:delete": {
21975
21803
  "aliases": [],
21976
21804
  "args": {
21977
21805
  "role": {
21978
- "description": "Role ID to create",
21806
+ "description": "Role ID to delete",
21979
21807
  "name": "role",
21980
21808
  "required": true
21981
21809
  }
21982
21810
  },
21983
- "description": "Create a Business Manager access role",
21811
+ "description": "Delete a Business Manager access role",
21984
21812
  "examples": [
21985
21813
  "<%= config.bin %> <%= command.id %> MyCustomRole",
21986
- "<%= config.bin %> <%= command.id %> MyCustomRole --description \"Custom role for content editors\"",
21987
21814
  "<%= config.bin %> <%= command.id %> MyCustomRole --json"
21988
21815
  ],
21989
21816
  "flags": {
@@ -22269,19 +22096,11 @@
22269
22096
  "name": "verify",
22270
22097
  "allowNo": true,
22271
22098
  "type": "boolean"
22272
- },
22273
- "description": {
22274
- "char": "d",
22275
- "description": "Description for the role",
22276
- "name": "description",
22277
- "hasDynamicHelp": false,
22278
- "multiple": false,
22279
- "type": "option"
22280
22099
  }
22281
22100
  },
22282
22101
  "hasDynamicHelp": false,
22283
22102
  "hiddenAliases": [],
22284
- "id": "bm:roles:create",
22103
+ "id": "bm:roles:delete",
22285
22104
  "pluginAlias": "@salesforce/b2c-cli",
22286
22105
  "pluginName": "@salesforce/b2c-cli",
22287
22106
  "pluginType": "core",
@@ -22293,22 +22112,23 @@
22293
22112
  "commands",
22294
22113
  "bm",
22295
22114
  "roles",
22296
- "create.js"
22115
+ "delete.js"
22297
22116
  ]
22298
22117
  },
22299
- "bm:roles:delete": {
22118
+ "bm:roles:get": {
22300
22119
  "aliases": [],
22301
22120
  "args": {
22302
22121
  "role": {
22303
- "description": "Role ID to delete",
22122
+ "description": "Role ID (e.g. \"Administrator\")",
22304
22123
  "name": "role",
22305
22124
  "required": true
22306
22125
  }
22307
22126
  },
22308
- "description": "Delete a Business Manager access role",
22127
+ "description": "Get details of a Business Manager access role",
22309
22128
  "examples": [
22310
- "<%= config.bin %> <%= command.id %> MyCustomRole",
22311
- "<%= config.bin %> <%= command.id %> MyCustomRole --json"
22129
+ "<%= config.bin %> <%= command.id %> Administrator",
22130
+ "<%= config.bin %> <%= command.id %> Administrator --expand users",
22131
+ "<%= config.bin %> <%= command.id %> Administrator --json"
22312
22132
  ],
22313
22133
  "flags": {
22314
22134
  "json": {
@@ -22593,11 +22413,19 @@
22593
22413
  "name": "verify",
22594
22414
  "allowNo": true,
22595
22415
  "type": "boolean"
22416
+ },
22417
+ "expand": {
22418
+ "char": "e",
22419
+ "description": "Expansions to apply (e.g. users, permissions)",
22420
+ "name": "expand",
22421
+ "hasDynamicHelp": false,
22422
+ "multiple": true,
22423
+ "type": "option"
22596
22424
  }
22597
22425
  },
22598
22426
  "hasDynamicHelp": false,
22599
22427
  "hiddenAliases": [],
22600
- "id": "bm:roles:delete",
22428
+ "id": "bm:roles:get",
22601
22429
  "pluginAlias": "@salesforce/b2c-cli",
22602
22430
  "pluginName": "@salesforce/b2c-cli",
22603
22431
  "pluginType": "core",
@@ -22609,23 +22437,22 @@
22609
22437
  "commands",
22610
22438
  "bm",
22611
22439
  "roles",
22612
- "delete.js"
22440
+ "get.js"
22613
22441
  ]
22614
22442
  },
22615
- "bm:roles:get": {
22443
+ "bm:roles:grant": {
22616
22444
  "aliases": [],
22617
22445
  "args": {
22618
- "role": {
22619
- "description": "Role ID (e.g. \"Administrator\")",
22620
- "name": "role",
22446
+ "login": {
22447
+ "description": "User login (email)",
22448
+ "name": "login",
22621
22449
  "required": true
22622
22450
  }
22623
22451
  },
22624
- "description": "Get details of a Business Manager access role",
22452
+ "description": "Grant a Business Manager role to a user on an instance",
22625
22453
  "examples": [
22626
- "<%= config.bin %> <%= command.id %> Administrator",
22627
- "<%= config.bin %> <%= command.id %> Administrator --expand users",
22628
- "<%= config.bin %> <%= command.id %> Administrator --json"
22454
+ "<%= config.bin %> <%= command.id %> user@example.com --role Administrator",
22455
+ "<%= config.bin %> <%= command.id %> user@example.com --role Administrator --json"
22629
22456
  ],
22630
22457
  "flags": {
22631
22458
  "json": {
@@ -22911,18 +22738,19 @@
22911
22738
  "allowNo": true,
22912
22739
  "type": "boolean"
22913
22740
  },
22914
- "expand": {
22915
- "char": "e",
22916
- "description": "Expansions to apply (e.g. users, permissions)",
22917
- "name": "expand",
22741
+ "role": {
22742
+ "char": "r",
22743
+ "description": "Role ID to grant",
22744
+ "name": "role",
22745
+ "required": true,
22918
22746
  "hasDynamicHelp": false,
22919
- "multiple": true,
22747
+ "multiple": false,
22920
22748
  "type": "option"
22921
22749
  }
22922
22750
  },
22923
22751
  "hasDynamicHelp": false,
22924
22752
  "hiddenAliases": [],
22925
- "id": "bm:roles:get",
22753
+ "id": "bm:roles:grant",
22926
22754
  "pluginAlias": "@salesforce/b2c-cli",
22927
22755
  "pluginName": "@salesforce/b2c-cli",
22928
22756
  "pluginType": "core",
@@ -22934,22 +22762,18 @@
22934
22762
  "commands",
22935
22763
  "bm",
22936
22764
  "roles",
22937
- "get.js"
22765
+ "grant.js"
22938
22766
  ]
22939
22767
  },
22940
- "bm:roles:grant": {
22768
+ "bm:roles:list": {
22941
22769
  "aliases": [],
22942
- "args": {
22943
- "login": {
22944
- "description": "User login (email)",
22945
- "name": "login",
22946
- "required": true
22947
- }
22948
- },
22949
- "description": "Grant a Business Manager role to a user on an instance",
22770
+ "args": {},
22771
+ "description": "List Business Manager access roles on an instance",
22950
22772
  "examples": [
22951
- "<%= config.bin %> <%= command.id %> user@example.com --role Administrator",
22952
- "<%= config.bin %> <%= command.id %> user@example.com --role Administrator --json"
22773
+ "<%= config.bin %> <%= command.id %>",
22774
+ "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
22775
+ "<%= config.bin %> <%= command.id %> --count 50",
22776
+ "<%= config.bin %> <%= command.id %> --json"
22953
22777
  ],
22954
22778
  "flags": {
22955
22779
  "json": {
@@ -23235,11 +23059,17 @@
23235
23059
  "allowNo": true,
23236
23060
  "type": "boolean"
23237
23061
  },
23238
- "role": {
23239
- "char": "r",
23240
- "description": "Role ID to grant",
23241
- "name": "role",
23242
- "required": true,
23062
+ "count": {
23063
+ "char": "n",
23064
+ "description": "Number of roles to return (default 25)",
23065
+ "name": "count",
23066
+ "hasDynamicHelp": false,
23067
+ "multiple": false,
23068
+ "type": "option"
23069
+ },
23070
+ "start": {
23071
+ "description": "Start index for pagination (default 0)",
23072
+ "name": "start",
23243
23073
  "hasDynamicHelp": false,
23244
23074
  "multiple": false,
23245
23075
  "type": "option"
@@ -23247,7 +23077,7 @@
23247
23077
  },
23248
23078
  "hasDynamicHelp": false,
23249
23079
  "hiddenAliases": [],
23250
- "id": "bm:roles:grant",
23080
+ "id": "bm:roles:list",
23251
23081
  "pluginAlias": "@salesforce/b2c-cli",
23252
23082
  "pluginName": "@salesforce/b2c-cli",
23253
23083
  "pluginType": "core",
@@ -23259,18 +23089,22 @@
23259
23089
  "commands",
23260
23090
  "bm",
23261
23091
  "roles",
23262
- "grant.js"
23092
+ "list.js"
23263
23093
  ]
23264
23094
  },
23265
- "bm:roles:list": {
23095
+ "bm:roles:revoke": {
23266
23096
  "aliases": [],
23267
- "args": {},
23268
- "description": "List Business Manager access roles on an instance",
23097
+ "args": {
23098
+ "login": {
23099
+ "description": "User login (email)",
23100
+ "name": "login",
23101
+ "required": true
23102
+ }
23103
+ },
23104
+ "description": "Revoke a Business Manager role from a user on an instance",
23269
23105
  "examples": [
23270
- "<%= config.bin %> <%= command.id %>",
23271
- "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
23272
- "<%= config.bin %> <%= command.id %> --count 50",
23273
- "<%= config.bin %> <%= command.id %> --json"
23106
+ "<%= config.bin %> <%= command.id %> user@example.com --role Administrator",
23107
+ "<%= config.bin %> <%= command.id %> user@example.com --role Administrator --json"
23274
23108
  ],
23275
23109
  "flags": {
23276
23110
  "json": {
@@ -23556,17 +23390,11 @@
23556
23390
  "allowNo": true,
23557
23391
  "type": "boolean"
23558
23392
  },
23559
- "count": {
23560
- "char": "n",
23561
- "description": "Number of roles to return (default 25)",
23562
- "name": "count",
23563
- "hasDynamicHelp": false,
23564
- "multiple": false,
23565
- "type": "option"
23566
- },
23567
- "start": {
23568
- "description": "Start index for pagination (default 0)",
23569
- "name": "start",
23393
+ "role": {
23394
+ "char": "r",
23395
+ "description": "Role ID to revoke",
23396
+ "name": "role",
23397
+ "required": true,
23570
23398
  "hasDynamicHelp": false,
23571
23399
  "multiple": false,
23572
23400
  "type": "option"
@@ -23574,7 +23402,7 @@
23574
23402
  },
23575
23403
  "hasDynamicHelp": false,
23576
23404
  "hiddenAliases": [],
23577
- "id": "bm:roles:list",
23405
+ "id": "bm:roles:revoke",
23578
23406
  "pluginAlias": "@salesforce/b2c-cli",
23579
23407
  "pluginName": "@salesforce/b2c-cli",
23580
23408
  "pluginType": "core",
@@ -23586,31 +23414,20 @@
23586
23414
  "commands",
23587
23415
  "bm",
23588
23416
  "roles",
23589
- "list.js"
23417
+ "revoke.js"
23590
23418
  ]
23591
23419
  },
23592
- "bm:roles:revoke": {
23420
+ "auth:client": {
23593
23421
  "aliases": [],
23594
- "args": {
23595
- "login": {
23596
- "description": "User login (email)",
23597
- "name": "login",
23598
- "required": true
23599
- }
23600
- },
23601
- "description": "Revoke a Business Manager role from a user on an instance",
23422
+ "args": {},
23423
+ "description": "Authenticate an API client and save session",
23602
23424
  "examples": [
23603
- "<%= config.bin %> <%= command.id %> user@example.com --role Administrator",
23604
- "<%= config.bin %> <%= command.id %> user@example.com --role Administrator --json"
23425
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret>",
23426
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --renew",
23427
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --user <email> --user-password <pwd>",
23428
+ "<%= config.bin %> <%= command.id %> --client-id <id> --client-secret <secret> --grant-type client_credentials"
23605
23429
  ],
23606
23430
  "flags": {
23607
- "json": {
23608
- "description": "Output result as JSON",
23609
- "helpGroup": "GLOBAL",
23610
- "name": "json",
23611
- "allowNo": false,
23612
- "type": "boolean"
23613
- },
23614
23431
  "log-level": {
23615
23432
  "description": "Set logging verbosity level",
23616
23433
  "env": "SFCC_LOG_LEVEL",
@@ -23637,6 +23454,13 @@
23637
23454
  "allowNo": false,
23638
23455
  "type": "boolean"
23639
23456
  },
23457
+ "json": {
23458
+ "description": "Output result as JSON",
23459
+ "helpGroup": "GLOBAL",
23460
+ "name": "json",
23461
+ "allowNo": false,
23462
+ "type": "boolean"
23463
+ },
23640
23464
  "jsonl": {
23641
23465
  "aliases": [
23642
23466
  "json-logs"
@@ -23728,7 +23552,7 @@
23728
23552
  "type": "option"
23729
23553
  },
23730
23554
  "client-secret": {
23731
- "description": "Client Secret for OAuth",
23555
+ "description": "Client secret for OAuth",
23732
23556
  "env": "SFCC_CLIENT_SECRET",
23733
23557
  "helpGroup": "AUTH",
23734
23558
  "name": "client-secret",
@@ -23736,6 +23560,15 @@
23736
23560
  "multiple": false,
23737
23561
  "type": "option"
23738
23562
  },
23563
+ "account-manager-host": {
23564
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
23565
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
23566
+ "helpGroup": "AUTH",
23567
+ "name": "account-manager-host",
23568
+ "hasDynamicHelp": false,
23569
+ "multiple": false,
23570
+ "type": "option"
23571
+ },
23739
23572
  "auth-scope": {
23740
23573
  "description": "OAuth scopes to request (comma-separated)",
23741
23574
  "env": "SFCC_OAUTH_SCOPES",
@@ -23746,160 +23579,341 @@
23746
23579
  "multiple": true,
23747
23580
  "type": "option"
23748
23581
  },
23749
- "short-code": {
23750
- "description": "SCAPI short code",
23751
- "env": "SFCC_SHORTCODE",
23752
- "helpGroup": "AUTH",
23753
- "name": "short-code",
23582
+ "renew": {
23583
+ "char": "r",
23584
+ "description": "Enable automatic token renewal (stores credentials for later refresh)",
23585
+ "name": "renew",
23586
+ "allowNo": false,
23587
+ "type": "boolean"
23588
+ },
23589
+ "grant-type": {
23590
+ "char": "t",
23591
+ "description": "OAuth grant type (default: auto-detect based on provided credentials)",
23592
+ "name": "grant-type",
23754
23593
  "hasDynamicHelp": false,
23755
23594
  "multiple": false,
23595
+ "options": [
23596
+ "client_credentials",
23597
+ "password"
23598
+ ],
23756
23599
  "type": "option"
23757
23600
  },
23758
- "tenant-id": {
23759
- "aliases": [
23760
- "tenant"
23761
- ],
23762
- "description": "Organization/tenant ID",
23763
- "env": "SFCC_TENANT_ID",
23764
- "helpGroup": "AUTH",
23765
- "name": "tenant-id",
23601
+ "user": {
23602
+ "description": "Username for resource owner password credentials grant",
23603
+ "env": "SFCC_OAUTH_USER_NAME",
23604
+ "name": "user",
23766
23605
  "hasDynamicHelp": false,
23767
23606
  "multiple": false,
23768
23607
  "type": "option"
23769
23608
  },
23770
- "auth-methods": {
23771
- "description": "Allowed auth methods in priority order (comma-separated)",
23772
- "env": "SFCC_AUTH_METHODS",
23773
- "exclusive": [
23774
- "user-auth"
23775
- ],
23776
- "helpGroup": "AUTH",
23777
- "name": "auth-methods",
23778
- "delimiter": ",",
23609
+ "user-password": {
23610
+ "description": "Password for resource owner password credentials grant",
23611
+ "env": "SFCC_OAUTH_USER_PASSWORD",
23612
+ "name": "user-password",
23779
23613
  "hasDynamicHelp": false,
23780
- "multiple": true,
23614
+ "multiple": false,
23615
+ "type": "option"
23616
+ }
23617
+ },
23618
+ "hasDynamicHelp": false,
23619
+ "hiddenAliases": [
23620
+ "client:auth"
23621
+ ],
23622
+ "id": "auth:client",
23623
+ "pluginAlias": "@salesforce/b2c-cli",
23624
+ "pluginName": "@salesforce/b2c-cli",
23625
+ "pluginType": "core",
23626
+ "strict": true,
23627
+ "enableJsonFlag": false,
23628
+ "isESM": true,
23629
+ "relativePath": [
23630
+ "dist",
23631
+ "commands",
23632
+ "auth",
23633
+ "client",
23634
+ "index.js"
23635
+ ]
23636
+ },
23637
+ "auth:client:renew": {
23638
+ "aliases": [],
23639
+ "args": {},
23640
+ "description": "Renew the client authentication token",
23641
+ "examples": [
23642
+ "<%= config.bin %> <%= command.id %>"
23643
+ ],
23644
+ "flags": {
23645
+ "log-level": {
23646
+ "description": "Set logging verbosity level",
23647
+ "env": "SFCC_LOG_LEVEL",
23648
+ "helpGroup": "GLOBAL",
23649
+ "name": "log-level",
23650
+ "hasDynamicHelp": false,
23651
+ "multiple": false,
23781
23652
  "options": [
23782
- "client-credentials",
23783
- "implicit",
23784
- "basic",
23785
- "api-key"
23653
+ "trace",
23654
+ "debug",
23655
+ "info",
23656
+ "warn",
23657
+ "error",
23658
+ "silent"
23786
23659
  ],
23787
23660
  "type": "option"
23788
23661
  },
23789
- "user-auth": {
23790
- "description": "Use browser-based user authentication (implicit OAuth flow)",
23791
- "exclusive": [
23792
- "auth-methods"
23662
+ "debug": {
23663
+ "char": "D",
23664
+ "description": "Enable debug logging (shorthand for --log-level debug)",
23665
+ "env": "SFCC_DEBUG",
23666
+ "helpGroup": "GLOBAL",
23667
+ "name": "debug",
23668
+ "allowNo": false,
23669
+ "type": "boolean"
23670
+ },
23671
+ "json": {
23672
+ "description": "Output result as JSON",
23673
+ "helpGroup": "GLOBAL",
23674
+ "name": "json",
23675
+ "allowNo": false,
23676
+ "type": "boolean"
23677
+ },
23678
+ "jsonl": {
23679
+ "aliases": [
23680
+ "json-logs"
23793
23681
  ],
23794
- "helpGroup": "AUTH",
23795
- "name": "user-auth",
23682
+ "description": "Output log messages as JSON lines",
23683
+ "env": "SFCC_JSON_LOGS",
23684
+ "helpGroup": "GLOBAL",
23685
+ "name": "jsonl",
23796
23686
  "allowNo": false,
23797
23687
  "type": "boolean"
23798
23688
  },
23799
- "account-manager-host": {
23800
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
23801
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
23802
- "helpGroup": "AUTH",
23803
- "name": "account-manager-host",
23689
+ "lang": {
23690
+ "char": "L",
23691
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
23692
+ "helpGroup": "GLOBAL",
23693
+ "name": "lang",
23804
23694
  "hasDynamicHelp": false,
23805
23695
  "multiple": false,
23806
23696
  "type": "option"
23807
23697
  },
23808
- "server": {
23809
- "char": "s",
23810
- "description": "B2C instance hostname",
23811
- "env": "SFCC_SERVER",
23812
- "helpGroup": "INSTANCE",
23813
- "name": "server",
23698
+ "config": {
23699
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
23700
+ "env": "SFCC_CONFIG",
23701
+ "helpGroup": "GLOBAL",
23702
+ "name": "config",
23814
23703
  "hasDynamicHelp": false,
23815
23704
  "multiple": false,
23816
23705
  "type": "option"
23817
23706
  },
23818
- "webdav-server": {
23819
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
23820
- "env": "SFCC_WEBDAV_SERVER",
23821
- "helpGroup": "INSTANCE",
23822
- "name": "webdav-server",
23707
+ "instance": {
23708
+ "char": "i",
23709
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
23710
+ "env": "SFCC_INSTANCE",
23711
+ "helpGroup": "GLOBAL",
23712
+ "name": "instance",
23823
23713
  "hasDynamicHelp": false,
23824
23714
  "multiple": false,
23825
23715
  "type": "option"
23826
23716
  },
23827
- "code-version": {
23828
- "char": "v",
23829
- "description": "Code version",
23830
- "env": "SFCC_CODE_VERSION",
23831
- "helpGroup": "INSTANCE",
23832
- "name": "code-version",
23717
+ "project-directory": {
23718
+ "aliases": [
23719
+ "working-directory"
23720
+ ],
23721
+ "description": "Project directory",
23722
+ "env": "SFCC_PROJECT_DIRECTORY",
23723
+ "helpGroup": "GLOBAL",
23724
+ "name": "project-directory",
23833
23725
  "hasDynamicHelp": false,
23834
23726
  "multiple": false,
23835
23727
  "type": "option"
23836
23728
  },
23837
- "username": {
23838
- "char": "u",
23839
- "description": "Username for Basic Auth (WebDAV)",
23840
- "env": "SFCC_USERNAME",
23841
- "helpGroup": "AUTH",
23842
- "name": "username",
23729
+ "extra-query": {
23730
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
23731
+ "env": "SFCC_EXTRA_QUERY",
23732
+ "helpGroup": "GLOBAL",
23733
+ "hidden": true,
23734
+ "name": "extra-query",
23843
23735
  "hasDynamicHelp": false,
23844
23736
  "multiple": false,
23845
23737
  "type": "option"
23846
23738
  },
23847
- "password": {
23848
- "char": "p",
23849
- "description": "Password/access key for Basic Auth (WebDAV)",
23850
- "env": "SFCC_PASSWORD",
23851
- "helpGroup": "AUTH",
23852
- "name": "password",
23739
+ "extra-body": {
23740
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
23741
+ "env": "SFCC_EXTRA_BODY",
23742
+ "helpGroup": "GLOBAL",
23743
+ "hidden": true,
23744
+ "name": "extra-body",
23853
23745
  "hasDynamicHelp": false,
23854
23746
  "multiple": false,
23855
23747
  "type": "option"
23856
23748
  },
23857
- "certificate": {
23858
- "description": "Path to PKCS12 certificate for two-factor auth",
23859
- "env": "SFCC_CERTIFICATE",
23860
- "helpGroup": "AUTH",
23861
- "name": "certificate",
23749
+ "extra-headers": {
23750
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
23751
+ "env": "SFCC_EXTRA_HEADERS",
23752
+ "helpGroup": "GLOBAL",
23753
+ "hidden": true,
23754
+ "name": "extra-headers",
23862
23755
  "hasDynamicHelp": false,
23863
23756
  "multiple": false,
23864
23757
  "type": "option"
23865
23758
  },
23866
- "passphrase": {
23867
- "description": "Passphrase for the certificate",
23868
- "env": "SFCC_CERTIFICATE_PASSPHRASE",
23759
+ "account-manager-host": {
23760
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
23761
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
23869
23762
  "helpGroup": "AUTH",
23870
- "name": "passphrase",
23763
+ "name": "account-manager-host",
23871
23764
  "hasDynamicHelp": false,
23872
23765
  "multiple": false,
23873
23766
  "type": "option"
23767
+ }
23768
+ },
23769
+ "hasDynamicHelp": false,
23770
+ "hiddenAliases": [
23771
+ "client:auth:renew"
23772
+ ],
23773
+ "id": "auth:client:renew",
23774
+ "pluginAlias": "@salesforce/b2c-cli",
23775
+ "pluginName": "@salesforce/b2c-cli",
23776
+ "pluginType": "core",
23777
+ "strict": true,
23778
+ "enableJsonFlag": false,
23779
+ "isESM": true,
23780
+ "relativePath": [
23781
+ "dist",
23782
+ "commands",
23783
+ "auth",
23784
+ "client",
23785
+ "renew.js"
23786
+ ]
23787
+ },
23788
+ "auth:client:token": {
23789
+ "aliases": [],
23790
+ "args": {},
23791
+ "description": "Return the current authentication token (stateful)",
23792
+ "examples": [
23793
+ "<%= config.bin %> <%= command.id %>",
23794
+ "<%= config.bin %> <%= command.id %> --json"
23795
+ ],
23796
+ "flags": {
23797
+ "json": {
23798
+ "description": "Output result as JSON",
23799
+ "helpGroup": "GLOBAL",
23800
+ "name": "json",
23801
+ "allowNo": false,
23802
+ "type": "boolean"
23874
23803
  },
23875
- "selfsigned": {
23876
- "description": "Allow self-signed server certificates",
23877
- "env": "SFCC_SELFSIGNED",
23878
- "helpGroup": "AUTH",
23879
- "name": "selfsigned",
23804
+ "log-level": {
23805
+ "description": "Set logging verbosity level",
23806
+ "env": "SFCC_LOG_LEVEL",
23807
+ "helpGroup": "GLOBAL",
23808
+ "name": "log-level",
23809
+ "hasDynamicHelp": false,
23810
+ "multiple": false,
23811
+ "options": [
23812
+ "trace",
23813
+ "debug",
23814
+ "info",
23815
+ "warn",
23816
+ "error",
23817
+ "silent"
23818
+ ],
23819
+ "type": "option"
23820
+ },
23821
+ "debug": {
23822
+ "char": "D",
23823
+ "description": "Enable debug logging (shorthand for --log-level debug)",
23824
+ "env": "SFCC_DEBUG",
23825
+ "helpGroup": "GLOBAL",
23826
+ "name": "debug",
23880
23827
  "allowNo": false,
23881
23828
  "type": "boolean"
23882
23829
  },
23883
- "verify": {
23884
- "description": "Verify SSL certificates",
23885
- "helpGroup": "AUTH",
23886
- "name": "verify",
23887
- "allowNo": true,
23830
+ "jsonl": {
23831
+ "aliases": [
23832
+ "json-logs"
23833
+ ],
23834
+ "description": "Output log messages as JSON lines",
23835
+ "env": "SFCC_JSON_LOGS",
23836
+ "helpGroup": "GLOBAL",
23837
+ "name": "jsonl",
23838
+ "allowNo": false,
23888
23839
  "type": "boolean"
23889
23840
  },
23890
- "role": {
23891
- "char": "r",
23892
- "description": "Role ID to revoke",
23893
- "name": "role",
23894
- "required": true,
23841
+ "lang": {
23842
+ "char": "L",
23843
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
23844
+ "helpGroup": "GLOBAL",
23845
+ "name": "lang",
23846
+ "hasDynamicHelp": false,
23847
+ "multiple": false,
23848
+ "type": "option"
23849
+ },
23850
+ "config": {
23851
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
23852
+ "env": "SFCC_CONFIG",
23853
+ "helpGroup": "GLOBAL",
23854
+ "name": "config",
23855
+ "hasDynamicHelp": false,
23856
+ "multiple": false,
23857
+ "type": "option"
23858
+ },
23859
+ "instance": {
23860
+ "char": "i",
23861
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
23862
+ "env": "SFCC_INSTANCE",
23863
+ "helpGroup": "GLOBAL",
23864
+ "name": "instance",
23865
+ "hasDynamicHelp": false,
23866
+ "multiple": false,
23867
+ "type": "option"
23868
+ },
23869
+ "project-directory": {
23870
+ "aliases": [
23871
+ "working-directory"
23872
+ ],
23873
+ "description": "Project directory",
23874
+ "env": "SFCC_PROJECT_DIRECTORY",
23875
+ "helpGroup": "GLOBAL",
23876
+ "name": "project-directory",
23877
+ "hasDynamicHelp": false,
23878
+ "multiple": false,
23879
+ "type": "option"
23880
+ },
23881
+ "extra-query": {
23882
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
23883
+ "env": "SFCC_EXTRA_QUERY",
23884
+ "helpGroup": "GLOBAL",
23885
+ "hidden": true,
23886
+ "name": "extra-query",
23887
+ "hasDynamicHelp": false,
23888
+ "multiple": false,
23889
+ "type": "option"
23890
+ },
23891
+ "extra-body": {
23892
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
23893
+ "env": "SFCC_EXTRA_BODY",
23894
+ "helpGroup": "GLOBAL",
23895
+ "hidden": true,
23896
+ "name": "extra-body",
23897
+ "hasDynamicHelp": false,
23898
+ "multiple": false,
23899
+ "type": "option"
23900
+ },
23901
+ "extra-headers": {
23902
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
23903
+ "env": "SFCC_EXTRA_HEADERS",
23904
+ "helpGroup": "GLOBAL",
23905
+ "hidden": true,
23906
+ "name": "extra-headers",
23895
23907
  "hasDynamicHelp": false,
23896
23908
  "multiple": false,
23897
23909
  "type": "option"
23898
23910
  }
23899
23911
  },
23900
23912
  "hasDynamicHelp": false,
23901
- "hiddenAliases": [],
23902
- "id": "bm:roles:revoke",
23913
+ "hiddenAliases": [
23914
+ "client:auth:token"
23915
+ ],
23916
+ "id": "auth:client:token",
23903
23917
  "pluginAlias": "@salesforce/b2c-cli",
23904
23918
  "pluginName": "@salesforce/b2c-cli",
23905
23919
  "pluginType": "core",
@@ -23909,9 +23923,9 @@
23909
23923
  "relativePath": [
23910
23924
  "dist",
23911
23925
  "commands",
23912
- "bm",
23913
- "roles",
23914
- "revoke.js"
23926
+ "auth",
23927
+ "client",
23928
+ "token.js"
23915
23929
  ]
23916
23930
  },
23917
23931
  "cip:report:customer-registration-trends": {
@@ -24141,7 +24155,7 @@
24141
24155
  "description": "Inclusive start date (YYYY-MM-DD)",
24142
24156
  "helpGroup": "QUERY",
24143
24157
  "name": "from",
24144
- "default": "2026-03-01",
24158
+ "default": "2026-04-01",
24145
24159
  "hasDynamicHelp": false,
24146
24160
  "multiple": false,
24147
24161
  "type": "option"
@@ -24150,7 +24164,7 @@
24150
24164
  "description": "Inclusive end date (YYYY-MM-DD)",
24151
24165
  "helpGroup": "QUERY",
24152
24166
  "name": "to",
24153
- "default": "2026-03-30",
24167
+ "default": "2026-04-01",
24154
24168
  "hasDynamicHelp": false,
24155
24169
  "multiple": false,
24156
24170
  "type": "option"
@@ -24472,7 +24486,7 @@
24472
24486
  "description": "Inclusive start date (YYYY-MM-DD)",
24473
24487
  "helpGroup": "QUERY",
24474
24488
  "name": "from",
24475
- "default": "2026-03-01",
24489
+ "default": "2026-04-01",
24476
24490
  "hasDynamicHelp": false,
24477
24491
  "multiple": false,
24478
24492
  "type": "option"
@@ -24481,7 +24495,7 @@
24481
24495
  "description": "Inclusive end date (YYYY-MM-DD)",
24482
24496
  "helpGroup": "QUERY",
24483
24497
  "name": "to",
24484
- "default": "2026-03-30",
24498
+ "default": "2026-04-01",
24485
24499
  "hasDynamicHelp": false,
24486
24500
  "multiple": false,
24487
24501
  "type": "option"
@@ -24803,7 +24817,7 @@
24803
24817
  "description": "Inclusive start date (YYYY-MM-DD)",
24804
24818
  "helpGroup": "QUERY",
24805
24819
  "name": "from",
24806
- "default": "2026-03-01",
24820
+ "default": "2026-04-01",
24807
24821
  "hasDynamicHelp": false,
24808
24822
  "multiple": false,
24809
24823
  "type": "option"
@@ -24812,7 +24826,7 @@
24812
24826
  "description": "Inclusive end date (YYYY-MM-DD)",
24813
24827
  "helpGroup": "QUERY",
24814
24828
  "name": "to",
24815
- "default": "2026-03-30",
24829
+ "default": "2026-04-01",
24816
24830
  "hasDynamicHelp": false,
24817
24831
  "multiple": false,
24818
24832
  "type": "option"
@@ -25134,7 +25148,7 @@
25134
25148
  "description": "Inclusive start date (YYYY-MM-DD)",
25135
25149
  "helpGroup": "QUERY",
25136
25150
  "name": "from",
25137
- "default": "2026-03-01",
25151
+ "default": "2026-04-01",
25138
25152
  "hasDynamicHelp": false,
25139
25153
  "multiple": false,
25140
25154
  "type": "option"
@@ -25143,7 +25157,7 @@
25143
25157
  "description": "Inclusive end date (YYYY-MM-DD)",
25144
25158
  "helpGroup": "QUERY",
25145
25159
  "name": "to",
25146
- "default": "2026-03-30",
25160
+ "default": "2026-04-01",
25147
25161
  "hasDynamicHelp": false,
25148
25162
  "multiple": false,
25149
25163
  "type": "option"
@@ -25465,7 +25479,7 @@
25465
25479
  "description": "Inclusive start date (YYYY-MM-DD)",
25466
25480
  "helpGroup": "QUERY",
25467
25481
  "name": "from",
25468
- "default": "2026-03-01",
25482
+ "default": "2026-04-01",
25469
25483
  "hasDynamicHelp": false,
25470
25484
  "multiple": false,
25471
25485
  "type": "option"
@@ -25474,7 +25488,7 @@
25474
25488
  "description": "Inclusive end date (YYYY-MM-DD)",
25475
25489
  "helpGroup": "QUERY",
25476
25490
  "name": "to",
25477
- "default": "2026-03-30",
25491
+ "default": "2026-04-01",
25478
25492
  "hasDynamicHelp": false,
25479
25493
  "multiple": false,
25480
25494
  "type": "option"
@@ -25787,7 +25801,7 @@
25787
25801
  "description": "Inclusive start date (YYYY-MM-DD)",
25788
25802
  "helpGroup": "QUERY",
25789
25803
  "name": "from",
25790
- "default": "2026-03-01",
25804
+ "default": "2026-04-01",
25791
25805
  "hasDynamicHelp": false,
25792
25806
  "multiple": false,
25793
25807
  "type": "option"
@@ -25796,7 +25810,7 @@
25796
25810
  "description": "Inclusive end date (YYYY-MM-DD)",
25797
25811
  "helpGroup": "QUERY",
25798
25812
  "name": "to",
25799
- "default": "2026-03-30",
25813
+ "default": "2026-04-01",
25800
25814
  "hasDynamicHelp": false,
25801
25815
  "multiple": false,
25802
25816
  "type": "option"
@@ -26118,7 +26132,7 @@
26118
26132
  "description": "Inclusive start date (YYYY-MM-DD)",
26119
26133
  "helpGroup": "QUERY",
26120
26134
  "name": "from",
26121
- "default": "2026-03-01",
26135
+ "default": "2026-04-01",
26122
26136
  "hasDynamicHelp": false,
26123
26137
  "multiple": false,
26124
26138
  "type": "option"
@@ -26127,7 +26141,7 @@
26127
26141
  "description": "Inclusive end date (YYYY-MM-DD)",
26128
26142
  "helpGroup": "QUERY",
26129
26143
  "name": "to",
26130
- "default": "2026-03-30",
26144
+ "default": "2026-04-01",
26131
26145
  "hasDynamicHelp": false,
26132
26146
  "multiple": false,
26133
26147
  "type": "option"
@@ -26449,7 +26463,7 @@
26449
26463
  "description": "Inclusive start date (YYYY-MM-DD)",
26450
26464
  "helpGroup": "QUERY",
26451
26465
  "name": "from",
26452
- "default": "2026-03-01",
26466
+ "default": "2026-04-01",
26453
26467
  "hasDynamicHelp": false,
26454
26468
  "multiple": false,
26455
26469
  "type": "option"
@@ -26458,7 +26472,7 @@
26458
26472
  "description": "Inclusive end date (YYYY-MM-DD)",
26459
26473
  "helpGroup": "QUERY",
26460
26474
  "name": "to",
26461
- "default": "2026-03-30",
26475
+ "default": "2026-04-01",
26462
26476
  "hasDynamicHelp": false,
26463
26477
  "multiple": false,
26464
26478
  "type": "option"
@@ -26793,7 +26807,7 @@
26793
26807
  "description": "Inclusive start date (YYYY-MM-DD)",
26794
26808
  "helpGroup": "QUERY",
26795
26809
  "name": "from",
26796
- "default": "2026-03-01",
26810
+ "default": "2026-04-01",
26797
26811
  "hasDynamicHelp": false,
26798
26812
  "multiple": false,
26799
26813
  "type": "option"
@@ -26802,7 +26816,7 @@
26802
26816
  "description": "Inclusive end date (YYYY-MM-DD)",
26803
26817
  "helpGroup": "QUERY",
26804
26818
  "name": "to",
26805
- "default": "2026-03-30",
26819
+ "default": "2026-04-01",
26806
26820
  "hasDynamicHelp": false,
26807
26821
  "multiple": false,
26808
26822
  "type": "option"
@@ -27133,7 +27147,7 @@
27133
27147
  "description": "Inclusive start date (YYYY-MM-DD)",
27134
27148
  "helpGroup": "QUERY",
27135
27149
  "name": "from",
27136
- "default": "2026-03-01",
27150
+ "default": "2026-04-01",
27137
27151
  "hasDynamicHelp": false,
27138
27152
  "multiple": false,
27139
27153
  "type": "option"
@@ -27142,7 +27156,7 @@
27142
27156
  "description": "Inclusive end date (YYYY-MM-DD)",
27143
27157
  "helpGroup": "QUERY",
27144
27158
  "name": "to",
27145
- "default": "2026-03-30",
27159
+ "default": "2026-04-01",
27146
27160
  "hasDynamicHelp": false,
27147
27161
  "multiple": false,
27148
27162
  "type": "option"
@@ -58586,5 +58600,5 @@
58586
58600
  ]
58587
58601
  }
58588
58602
  },
58589
- "version": "1.0.0"
58603
+ "version": "1.0.1"
58590
58604
  }