@salesforce/b2c-cli 0.0.0-nightly.20260119053920 → 0.0.0-nightly.20260120023917

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oclif.manifest.json +1348 -1348
  2. package/package.json +2 -2
@@ -1,128 +1,5 @@
1
1
  {
2
2
  "commands": {
3
- "_test": {
4
- "aliases": [],
5
- "args": {},
6
- "description": "Test logging output",
7
- "flags": {
8
- "log-level": {
9
- "description": "Set logging verbosity level",
10
- "env": "SFCC_LOG_LEVEL",
11
- "helpGroup": "GLOBAL",
12
- "name": "log-level",
13
- "hasDynamicHelp": false,
14
- "multiple": false,
15
- "options": [
16
- "trace",
17
- "debug",
18
- "info",
19
- "warn",
20
- "error",
21
- "silent"
22
- ],
23
- "type": "option"
24
- },
25
- "debug": {
26
- "char": "D",
27
- "description": "Enable debug logging (shorthand for --log-level debug)",
28
- "env": "SFCC_DEBUG",
29
- "helpGroup": "GLOBAL",
30
- "name": "debug",
31
- "allowNo": false,
32
- "type": "boolean"
33
- },
34
- "json": {
35
- "description": "Output logs as JSON lines",
36
- "helpGroup": "GLOBAL",
37
- "name": "json",
38
- "allowNo": false,
39
- "type": "boolean"
40
- },
41
- "lang": {
42
- "char": "L",
43
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
44
- "helpGroup": "GLOBAL",
45
- "name": "lang",
46
- "hasDynamicHelp": false,
47
- "multiple": false,
48
- "type": "option"
49
- },
50
- "config": {
51
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
52
- "env": "SFCC_CONFIG",
53
- "helpGroup": "GLOBAL",
54
- "name": "config",
55
- "hasDynamicHelp": false,
56
- "multiple": false,
57
- "type": "option"
58
- },
59
- "instance": {
60
- "char": "i",
61
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
62
- "env": "SFCC_INSTANCE",
63
- "helpGroup": "GLOBAL",
64
- "name": "instance",
65
- "hasDynamicHelp": false,
66
- "multiple": false,
67
- "type": "option"
68
- },
69
- "working-directory": {
70
- "description": "Project working directory",
71
- "env": "SFCC_WORKING_DIRECTORY",
72
- "helpGroup": "GLOBAL",
73
- "name": "working-directory",
74
- "hasDynamicHelp": false,
75
- "multiple": false,
76
- "type": "option"
77
- },
78
- "extra-query": {
79
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
80
- "env": "SFCC_EXTRA_QUERY",
81
- "helpGroup": "GLOBAL",
82
- "hidden": true,
83
- "name": "extra-query",
84
- "hasDynamicHelp": false,
85
- "multiple": false,
86
- "type": "option"
87
- },
88
- "extra-body": {
89
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
90
- "env": "SFCC_EXTRA_BODY",
91
- "helpGroup": "GLOBAL",
92
- "hidden": true,
93
- "name": "extra-body",
94
- "hasDynamicHelp": false,
95
- "multiple": false,
96
- "type": "option"
97
- },
98
- "extra-headers": {
99
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
100
- "env": "SFCC_EXTRA_HEADERS",
101
- "helpGroup": "GLOBAL",
102
- "hidden": true,
103
- "name": "extra-headers",
104
- "hasDynamicHelp": false,
105
- "multiple": false,
106
- "type": "option"
107
- }
108
- },
109
- "hasDynamicHelp": false,
110
- "hidden": true,
111
- "hiddenAliases": [],
112
- "id": "_test",
113
- "pluginAlias": "@salesforce/b2c-cli",
114
- "pluginName": "@salesforce/b2c-cli",
115
- "pluginType": "core",
116
- "strict": true,
117
- "enableJsonFlag": false,
118
- "isESM": true,
119
- "relativePath": [
120
- "dist",
121
- "commands",
122
- "_test",
123
- "index.js"
124
- ]
125
- },
126
3
  "auth:token": {
127
4
  "aliases": [],
128
5
  "args": {},
@@ -1652,29 +1529,11 @@
1652
1529
  "watch.js"
1653
1530
  ]
1654
1531
  },
1655
- "docs:download": {
1532
+ "_test": {
1656
1533
  "aliases": [],
1657
- "args": {
1658
- "output": {
1659
- "description": "Output directory for extracted documentation",
1660
- "name": "output",
1661
- "required": true
1662
- }
1663
- },
1664
- "description": "Download Script API documentation from a B2C Commerce instance",
1665
- "examples": [
1666
- "<%= config.bin %> <%= command.id %> ./docs",
1667
- "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
1668
- "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
1669
- ],
1534
+ "args": {},
1535
+ "description": "Test logging output",
1670
1536
  "flags": {
1671
- "json": {
1672
- "description": "Output logs as JSON lines",
1673
- "helpGroup": "GLOBAL",
1674
- "name": "json",
1675
- "allowNo": false,
1676
- "type": "boolean"
1677
- },
1678
1537
  "log-level": {
1679
1538
  "description": "Set logging verbosity level",
1680
1539
  "env": "SFCC_LOG_LEVEL",
@@ -1701,6 +1560,13 @@
1701
1560
  "allowNo": false,
1702
1561
  "type": "boolean"
1703
1562
  },
1563
+ "json": {
1564
+ "description": "Output logs as JSON lines",
1565
+ "helpGroup": "GLOBAL",
1566
+ "name": "json",
1567
+ "allowNo": false,
1568
+ "type": "boolean"
1569
+ },
1704
1570
  "lang": {
1705
1571
  "char": "L",
1706
1572
  "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
@@ -1767,48 +1633,178 @@
1767
1633
  "hasDynamicHelp": false,
1768
1634
  "multiple": false,
1769
1635
  "type": "option"
1636
+ }
1637
+ },
1638
+ "hasDynamicHelp": false,
1639
+ "hidden": true,
1640
+ "hiddenAliases": [],
1641
+ "id": "_test",
1642
+ "pluginAlias": "@salesforce/b2c-cli",
1643
+ "pluginName": "@salesforce/b2c-cli",
1644
+ "pluginType": "core",
1645
+ "strict": true,
1646
+ "enableJsonFlag": false,
1647
+ "isESM": true,
1648
+ "relativePath": [
1649
+ "dist",
1650
+ "commands",
1651
+ "_test",
1652
+ "index.js"
1653
+ ]
1654
+ },
1655
+ "job:export": {
1656
+ "aliases": [],
1657
+ "args": {},
1658
+ "description": "Job execution and site archive import/export (IMPEX)",
1659
+ "examples": [
1660
+ "<%= config.bin %> <%= command.id %> --global-data meta_data",
1661
+ "<%= config.bin %> <%= command.id %> --site RefArch --site-data content,site_preferences",
1662
+ "<%= config.bin %> <%= command.id %> --catalog storefront-catalog",
1663
+ "<%= config.bin %> <%= command.id %> --data-units '{\"global_data\":{\"meta_data\":true}}'",
1664
+ "<%= config.bin %> <%= command.id %> --output ./exports --no-download"
1665
+ ],
1666
+ "flags": {
1667
+ "json": {
1668
+ "description": "Output logs as JSON lines",
1669
+ "helpGroup": "GLOBAL",
1670
+ "name": "json",
1671
+ "allowNo": false,
1672
+ "type": "boolean"
1770
1673
  },
1771
- "client-id": {
1772
- "description": "Client ID for OAuth",
1773
- "env": "SFCC_CLIENT_ID",
1774
- "helpGroup": "AUTH",
1775
- "name": "client-id",
1674
+ "log-level": {
1675
+ "description": "Set logging verbosity level",
1676
+ "env": "SFCC_LOG_LEVEL",
1677
+ "helpGroup": "GLOBAL",
1678
+ "name": "log-level",
1776
1679
  "hasDynamicHelp": false,
1777
1680
  "multiple": false,
1681
+ "options": [
1682
+ "trace",
1683
+ "debug",
1684
+ "info",
1685
+ "warn",
1686
+ "error",
1687
+ "silent"
1688
+ ],
1778
1689
  "type": "option"
1779
1690
  },
1780
- "client-secret": {
1781
- "description": "Client Secret for OAuth",
1782
- "env": "SFCC_CLIENT_SECRET",
1783
- "helpGroup": "AUTH",
1784
- "name": "client-secret",
1691
+ "debug": {
1692
+ "char": "D",
1693
+ "description": "Enable debug logging (shorthand for --log-level debug)",
1694
+ "env": "SFCC_DEBUG",
1695
+ "helpGroup": "GLOBAL",
1696
+ "name": "debug",
1697
+ "allowNo": false,
1698
+ "type": "boolean"
1699
+ },
1700
+ "lang": {
1701
+ "char": "L",
1702
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
1703
+ "helpGroup": "GLOBAL",
1704
+ "name": "lang",
1785
1705
  "hasDynamicHelp": false,
1786
1706
  "multiple": false,
1787
1707
  "type": "option"
1788
1708
  },
1789
- "scope": {
1790
- "description": "OAuth scopes to request (comma-separated)",
1791
- "env": "SFCC_OAUTH_SCOPES",
1792
- "helpGroup": "AUTH",
1793
- "name": "scope",
1794
- "delimiter": ",",
1709
+ "config": {
1710
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
1711
+ "env": "SFCC_CONFIG",
1712
+ "helpGroup": "GLOBAL",
1713
+ "name": "config",
1795
1714
  "hasDynamicHelp": false,
1796
- "multiple": true,
1715
+ "multiple": false,
1797
1716
  "type": "option"
1798
1717
  },
1799
- "short-code": {
1800
- "description": "SCAPI short code",
1801
- "env": "SFCC_SHORTCODE",
1802
- "helpGroup": "AUTH",
1803
- "name": "short-code",
1718
+ "instance": {
1719
+ "char": "i",
1720
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
1721
+ "env": "SFCC_INSTANCE",
1722
+ "helpGroup": "GLOBAL",
1723
+ "name": "instance",
1804
1724
  "hasDynamicHelp": false,
1805
1725
  "multiple": false,
1806
1726
  "type": "option"
1807
1727
  },
1808
- "auth-methods": {
1809
- "description": "Allowed auth methods in priority order (comma-separated)",
1810
- "env": "SFCC_AUTH_METHODS",
1811
- "helpGroup": "AUTH",
1728
+ "working-directory": {
1729
+ "description": "Project working directory",
1730
+ "env": "SFCC_WORKING_DIRECTORY",
1731
+ "helpGroup": "GLOBAL",
1732
+ "name": "working-directory",
1733
+ "hasDynamicHelp": false,
1734
+ "multiple": false,
1735
+ "type": "option"
1736
+ },
1737
+ "extra-query": {
1738
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
1739
+ "env": "SFCC_EXTRA_QUERY",
1740
+ "helpGroup": "GLOBAL",
1741
+ "hidden": true,
1742
+ "name": "extra-query",
1743
+ "hasDynamicHelp": false,
1744
+ "multiple": false,
1745
+ "type": "option"
1746
+ },
1747
+ "extra-body": {
1748
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
1749
+ "env": "SFCC_EXTRA_BODY",
1750
+ "helpGroup": "GLOBAL",
1751
+ "hidden": true,
1752
+ "name": "extra-body",
1753
+ "hasDynamicHelp": false,
1754
+ "multiple": false,
1755
+ "type": "option"
1756
+ },
1757
+ "extra-headers": {
1758
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
1759
+ "env": "SFCC_EXTRA_HEADERS",
1760
+ "helpGroup": "GLOBAL",
1761
+ "hidden": true,
1762
+ "name": "extra-headers",
1763
+ "hasDynamicHelp": false,
1764
+ "multiple": false,
1765
+ "type": "option"
1766
+ },
1767
+ "client-id": {
1768
+ "description": "Client ID for OAuth",
1769
+ "env": "SFCC_CLIENT_ID",
1770
+ "helpGroup": "AUTH",
1771
+ "name": "client-id",
1772
+ "hasDynamicHelp": false,
1773
+ "multiple": false,
1774
+ "type": "option"
1775
+ },
1776
+ "client-secret": {
1777
+ "description": "Client Secret for OAuth",
1778
+ "env": "SFCC_CLIENT_SECRET",
1779
+ "helpGroup": "AUTH",
1780
+ "name": "client-secret",
1781
+ "hasDynamicHelp": false,
1782
+ "multiple": false,
1783
+ "type": "option"
1784
+ },
1785
+ "scope": {
1786
+ "description": "OAuth scopes to request (comma-separated)",
1787
+ "env": "SFCC_OAUTH_SCOPES",
1788
+ "helpGroup": "AUTH",
1789
+ "name": "scope",
1790
+ "delimiter": ",",
1791
+ "hasDynamicHelp": false,
1792
+ "multiple": true,
1793
+ "type": "option"
1794
+ },
1795
+ "short-code": {
1796
+ "description": "SCAPI short code",
1797
+ "env": "SFCC_SHORTCODE",
1798
+ "helpGroup": "AUTH",
1799
+ "name": "short-code",
1800
+ "hasDynamicHelp": false,
1801
+ "multiple": false,
1802
+ "type": "option"
1803
+ },
1804
+ "auth-methods": {
1805
+ "description": "Allowed auth methods in priority order (comma-separated)",
1806
+ "env": "SFCC_AUTH_METHODS",
1807
+ "helpGroup": "AUTH",
1812
1808
  "name": "auth-methods",
1813
1809
  "delimiter": ",",
1814
1810
  "hasDynamicHelp": false,
@@ -1879,16 +1875,114 @@
1879
1875
  "multiple": false,
1880
1876
  "type": "option"
1881
1877
  },
1878
+ "output": {
1879
+ "char": "o",
1880
+ "description": "Output path (directory or .zip file)",
1881
+ "name": "output",
1882
+ "default": "./export",
1883
+ "hasDynamicHelp": false,
1884
+ "multiple": false,
1885
+ "type": "option"
1886
+ },
1887
+ "site": {
1888
+ "description": "Site IDs to export (comma-separated)",
1889
+ "name": "site",
1890
+ "delimiter": ",",
1891
+ "hasDynamicHelp": false,
1892
+ "multiple": true,
1893
+ "type": "option"
1894
+ },
1895
+ "site-data": {
1896
+ "description": "Site data units to export (comma-separated: content,site_preferences,etc.)",
1897
+ "name": "site-data",
1898
+ "hasDynamicHelp": false,
1899
+ "multiple": false,
1900
+ "type": "option"
1901
+ },
1902
+ "catalog": {
1903
+ "description": "Catalog IDs to export (comma-separated)",
1904
+ "name": "catalog",
1905
+ "delimiter": ",",
1906
+ "hasDynamicHelp": false,
1907
+ "multiple": true,
1908
+ "type": "option"
1909
+ },
1910
+ "library": {
1911
+ "description": "Library IDs to export (comma-separated)",
1912
+ "name": "library",
1913
+ "delimiter": ",",
1914
+ "hasDynamicHelp": false,
1915
+ "multiple": true,
1916
+ "type": "option"
1917
+ },
1918
+ "inventory-list": {
1919
+ "description": "Inventory list IDs to export (comma-separated)",
1920
+ "name": "inventory-list",
1921
+ "delimiter": ",",
1922
+ "hasDynamicHelp": false,
1923
+ "multiple": true,
1924
+ "type": "option"
1925
+ },
1926
+ "price-book": {
1927
+ "description": "Price book IDs to export (comma-separated)",
1928
+ "name": "price-book",
1929
+ "delimiter": ",",
1930
+ "hasDynamicHelp": false,
1931
+ "multiple": true,
1932
+ "type": "option"
1933
+ },
1934
+ "global-data": {
1935
+ "description": "Global data units to export (comma-separated: meta_data,custom_types,etc.)",
1936
+ "name": "global-data",
1937
+ "hasDynamicHelp": false,
1938
+ "multiple": false,
1939
+ "type": "option"
1940
+ },
1941
+ "data-units": {
1942
+ "char": "d",
1943
+ "description": "Full data units configuration as JSON string",
1944
+ "name": "data-units",
1945
+ "hasDynamicHelp": false,
1946
+ "multiple": false,
1947
+ "type": "option"
1948
+ },
1882
1949
  "keep-archive": {
1883
- "description": "Keep the downloaded archive file",
1950
+ "char": "k",
1951
+ "description": "Keep archive on instance after download",
1884
1952
  "name": "keep-archive",
1885
1953
  "allowNo": false,
1886
1954
  "type": "boolean"
1955
+ },
1956
+ "no-download": {
1957
+ "description": "Do not download the archive (leave on instance)",
1958
+ "name": "no-download",
1959
+ "allowNo": false,
1960
+ "type": "boolean"
1961
+ },
1962
+ "zip-only": {
1963
+ "description": "Save as zip file without extracting",
1964
+ "name": "zip-only",
1965
+ "allowNo": false,
1966
+ "type": "boolean"
1967
+ },
1968
+ "timeout": {
1969
+ "char": "t",
1970
+ "description": "Timeout in seconds (default: no timeout)",
1971
+ "name": "timeout",
1972
+ "hasDynamicHelp": false,
1973
+ "multiple": false,
1974
+ "type": "option"
1975
+ },
1976
+ "show-log": {
1977
+ "description": "Show job log on failure",
1978
+ "name": "show-log",
1979
+ "allowNo": false,
1980
+ "type": "boolean"
1887
1981
  }
1888
1982
  },
1889
1983
  "hasDynamicHelp": false,
1890
1984
  "hiddenAliases": [],
1891
- "id": "docs:download",
1985
+ "id": "job:export",
1892
1986
  "pluginAlias": "@salesforce/b2c-cli",
1893
1987
  "pluginName": "@salesforce/b2c-cli",
1894
1988
  "pluginType": "core",
@@ -1898,26 +1992,25 @@
1898
1992
  "relativePath": [
1899
1993
  "dist",
1900
1994
  "commands",
1901
- "docs",
1902
- "download.js"
1995
+ "job",
1996
+ "export.js"
1903
1997
  ]
1904
1998
  },
1905
- "docs:read": {
1999
+ "job:import": {
1906
2000
  "aliases": [],
1907
2001
  "args": {
1908
- "query": {
1909
- "description": "Search query for documentation (class name, module path, or partial match)",
1910
- "name": "query",
2002
+ "target": {
2003
+ "description": "Directory, zip file, or remote filename to import",
2004
+ "name": "target",
1911
2005
  "required": true
1912
2006
  }
1913
2007
  },
1914
- "description": "Read Script API documentation for a class or module",
2008
+ "description": "Import a site archive to a B2C Commerce instance using sfcc-site-archive-import job",
1915
2009
  "examples": [
1916
- "<%= config.bin %> <%= command.id %> ProductMgr",
1917
- "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
1918
- "<%= config.bin %> <%= command.id %> \"dw system Status\"",
1919
- "<%= config.bin %> <%= command.id %> ProductMgr --raw",
1920
- "<%= config.bin %> <%= command.id %> ProductMgr --json"
2010
+ "<%= config.bin %> <%= command.id %> ./my-site-data",
2011
+ "<%= config.bin %> <%= command.id %> ./export.zip",
2012
+ "<%= config.bin %> <%= command.id %> ./my-site-data --keep-archive",
2013
+ "<%= config.bin %> <%= command.id %> existing-archive.zip --remote"
1921
2014
  ],
1922
2015
  "flags": {
1923
2016
  "json": {
@@ -2020,307 +2113,149 @@
2020
2113
  "multiple": false,
2021
2114
  "type": "option"
2022
2115
  },
2023
- "raw": {
2024
- "char": "r",
2025
- "description": "Output raw markdown without terminal formatting",
2026
- "name": "raw",
2027
- "allowNo": false,
2028
- "type": "boolean"
2029
- }
2030
- },
2031
- "hasDynamicHelp": false,
2032
- "hiddenAliases": [],
2033
- "id": "docs:read",
2034
- "pluginAlias": "@salesforce/b2c-cli",
2035
- "pluginName": "@salesforce/b2c-cli",
2036
- "pluginType": "core",
2037
- "strict": true,
2038
- "enableJsonFlag": true,
2039
- "isESM": true,
2040
- "relativePath": [
2041
- "dist",
2042
- "commands",
2043
- "docs",
2044
- "read.js"
2045
- ]
2046
- },
2047
- "docs:schema": {
2048
- "aliases": [],
2049
- "args": {
2050
- "query": {
2051
- "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
2052
- "name": "query",
2053
- "required": false
2054
- }
2055
- },
2056
- "description": "Read an XSD schema file",
2057
- "examples": [
2058
- "<%= config.bin %> <%= command.id %> catalog",
2059
- "<%= config.bin %> <%= command.id %> order",
2060
- "<%= config.bin %> <%= command.id %> --list",
2061
- "<%= config.bin %> <%= command.id %> catalog --json"
2062
- ],
2063
- "flags": {
2064
- "json": {
2065
- "description": "Output logs as JSON lines",
2066
- "helpGroup": "GLOBAL",
2067
- "name": "json",
2068
- "allowNo": false,
2069
- "type": "boolean"
2070
- },
2071
- "log-level": {
2072
- "description": "Set logging verbosity level",
2073
- "env": "SFCC_LOG_LEVEL",
2074
- "helpGroup": "GLOBAL",
2075
- "name": "log-level",
2076
- "hasDynamicHelp": false,
2077
- "multiple": false,
2078
- "options": [
2079
- "trace",
2080
- "debug",
2081
- "info",
2082
- "warn",
2083
- "error",
2084
- "silent"
2085
- ],
2086
- "type": "option"
2087
- },
2088
- "debug": {
2089
- "char": "D",
2090
- "description": "Enable debug logging (shorthand for --log-level debug)",
2091
- "env": "SFCC_DEBUG",
2092
- "helpGroup": "GLOBAL",
2093
- "name": "debug",
2094
- "allowNo": false,
2095
- "type": "boolean"
2096
- },
2097
- "lang": {
2098
- "char": "L",
2099
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
2100
- "helpGroup": "GLOBAL",
2101
- "name": "lang",
2102
- "hasDynamicHelp": false,
2103
- "multiple": false,
2104
- "type": "option"
2105
- },
2106
- "config": {
2107
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
2108
- "env": "SFCC_CONFIG",
2109
- "helpGroup": "GLOBAL",
2110
- "name": "config",
2111
- "hasDynamicHelp": false,
2112
- "multiple": false,
2113
- "type": "option"
2114
- },
2115
- "instance": {
2116
- "char": "i",
2117
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
2118
- "env": "SFCC_INSTANCE",
2119
- "helpGroup": "GLOBAL",
2120
- "name": "instance",
2121
- "hasDynamicHelp": false,
2122
- "multiple": false,
2123
- "type": "option"
2124
- },
2125
- "working-directory": {
2126
- "description": "Project working directory",
2127
- "env": "SFCC_WORKING_DIRECTORY",
2128
- "helpGroup": "GLOBAL",
2129
- "name": "working-directory",
2116
+ "client-id": {
2117
+ "description": "Client ID for OAuth",
2118
+ "env": "SFCC_CLIENT_ID",
2119
+ "helpGroup": "AUTH",
2120
+ "name": "client-id",
2130
2121
  "hasDynamicHelp": false,
2131
2122
  "multiple": false,
2132
2123
  "type": "option"
2133
2124
  },
2134
- "extra-query": {
2135
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
2136
- "env": "SFCC_EXTRA_QUERY",
2137
- "helpGroup": "GLOBAL",
2138
- "hidden": true,
2139
- "name": "extra-query",
2125
+ "client-secret": {
2126
+ "description": "Client Secret for OAuth",
2127
+ "env": "SFCC_CLIENT_SECRET",
2128
+ "helpGroup": "AUTH",
2129
+ "name": "client-secret",
2140
2130
  "hasDynamicHelp": false,
2141
2131
  "multiple": false,
2142
2132
  "type": "option"
2143
2133
  },
2144
- "extra-body": {
2145
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
2146
- "env": "SFCC_EXTRA_BODY",
2147
- "helpGroup": "GLOBAL",
2148
- "hidden": true,
2149
- "name": "extra-body",
2134
+ "scope": {
2135
+ "description": "OAuth scopes to request (comma-separated)",
2136
+ "env": "SFCC_OAUTH_SCOPES",
2137
+ "helpGroup": "AUTH",
2138
+ "name": "scope",
2139
+ "delimiter": ",",
2150
2140
  "hasDynamicHelp": false,
2151
- "multiple": false,
2141
+ "multiple": true,
2152
2142
  "type": "option"
2153
2143
  },
2154
- "extra-headers": {
2155
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
2156
- "env": "SFCC_EXTRA_HEADERS",
2157
- "helpGroup": "GLOBAL",
2158
- "hidden": true,
2159
- "name": "extra-headers",
2144
+ "short-code": {
2145
+ "description": "SCAPI short code",
2146
+ "env": "SFCC_SHORTCODE",
2147
+ "helpGroup": "AUTH",
2148
+ "name": "short-code",
2160
2149
  "hasDynamicHelp": false,
2161
2150
  "multiple": false,
2162
2151
  "type": "option"
2163
2152
  },
2164
- "list": {
2165
- "char": "l",
2166
- "description": "List all available schemas",
2167
- "name": "list",
2168
- "allowNo": false,
2169
- "type": "boolean"
2170
- }
2171
- },
2172
- "hasDynamicHelp": false,
2173
- "hiddenAliases": [],
2174
- "id": "docs:schema",
2175
- "pluginAlias": "@salesforce/b2c-cli",
2176
- "pluginName": "@salesforce/b2c-cli",
2177
- "pluginType": "core",
2178
- "strict": true,
2179
- "enableJsonFlag": true,
2180
- "isESM": true,
2181
- "relativePath": [
2182
- "dist",
2183
- "commands",
2184
- "docs",
2185
- "schema.js"
2186
- ]
2187
- },
2188
- "docs:search": {
2189
- "aliases": [],
2190
- "args": {
2191
- "query": {
2192
- "description": "Search query (fuzzy match against class/module names)",
2193
- "name": "query",
2194
- "required": false
2195
- }
2196
- },
2197
- "description": "Search Script API documentation",
2198
- "examples": [
2199
- "<%= config.bin %> <%= command.id %> ProductMgr",
2200
- "<%= config.bin %> <%= command.id %> \"catalog product\"",
2201
- "<%= config.bin %> <%= command.id %> status --limit 5",
2202
- "<%= config.bin %> <%= command.id %> --list"
2203
- ],
2204
- "flags": {
2205
- "json": {
2206
- "description": "Output logs as JSON lines",
2207
- "helpGroup": "GLOBAL",
2208
- "name": "json",
2209
- "allowNo": false,
2210
- "type": "boolean"
2211
- },
2212
- "log-level": {
2213
- "description": "Set logging verbosity level",
2214
- "env": "SFCC_LOG_LEVEL",
2215
- "helpGroup": "GLOBAL",
2216
- "name": "log-level",
2153
+ "auth-methods": {
2154
+ "description": "Allowed auth methods in priority order (comma-separated)",
2155
+ "env": "SFCC_AUTH_METHODS",
2156
+ "helpGroup": "AUTH",
2157
+ "name": "auth-methods",
2158
+ "delimiter": ",",
2217
2159
  "hasDynamicHelp": false,
2218
- "multiple": false,
2160
+ "multiple": true,
2219
2161
  "options": [
2220
- "trace",
2221
- "debug",
2222
- "info",
2223
- "warn",
2224
- "error",
2225
- "silent"
2162
+ "client-credentials",
2163
+ "implicit",
2164
+ "basic",
2165
+ "api-key"
2226
2166
  ],
2227
2167
  "type": "option"
2228
2168
  },
2229
- "debug": {
2230
- "char": "D",
2231
- "description": "Enable debug logging (shorthand for --log-level debug)",
2232
- "env": "SFCC_DEBUG",
2233
- "helpGroup": "GLOBAL",
2234
- "name": "debug",
2235
- "allowNo": false,
2236
- "type": "boolean"
2237
- },
2238
- "lang": {
2239
- "char": "L",
2240
- "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
2241
- "helpGroup": "GLOBAL",
2242
- "name": "lang",
2169
+ "account-manager-host": {
2170
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
2171
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
2172
+ "helpGroup": "AUTH",
2173
+ "name": "account-manager-host",
2243
2174
  "hasDynamicHelp": false,
2244
2175
  "multiple": false,
2245
2176
  "type": "option"
2246
2177
  },
2247
- "config": {
2248
- "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
2249
- "env": "SFCC_CONFIG",
2250
- "helpGroup": "GLOBAL",
2251
- "name": "config",
2178
+ "server": {
2179
+ "char": "s",
2180
+ "description": "B2C instance hostname",
2181
+ "env": "SFCC_SERVER",
2182
+ "helpGroup": "INSTANCE",
2183
+ "name": "server",
2252
2184
  "hasDynamicHelp": false,
2253
2185
  "multiple": false,
2254
2186
  "type": "option"
2255
2187
  },
2256
- "instance": {
2257
- "char": "i",
2258
- "description": "Instance name from configuration file (i.e. dw.json, etc)",
2259
- "env": "SFCC_INSTANCE",
2260
- "helpGroup": "GLOBAL",
2261
- "name": "instance",
2188
+ "webdav-server": {
2189
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
2190
+ "env": "SFCC_WEBDAV_SERVER",
2191
+ "helpGroup": "INSTANCE",
2192
+ "name": "webdav-server",
2262
2193
  "hasDynamicHelp": false,
2263
2194
  "multiple": false,
2264
2195
  "type": "option"
2265
2196
  },
2266
- "working-directory": {
2267
- "description": "Project working directory",
2268
- "env": "SFCC_WORKING_DIRECTORY",
2269
- "helpGroup": "GLOBAL",
2270
- "name": "working-directory",
2197
+ "code-version": {
2198
+ "char": "v",
2199
+ "description": "Code version",
2200
+ "env": "SFCC_CODE_VERSION",
2201
+ "helpGroup": "INSTANCE",
2202
+ "name": "code-version",
2271
2203
  "hasDynamicHelp": false,
2272
2204
  "multiple": false,
2273
2205
  "type": "option"
2274
2206
  },
2275
- "extra-query": {
2276
- "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
2277
- "env": "SFCC_EXTRA_QUERY",
2278
- "helpGroup": "GLOBAL",
2279
- "hidden": true,
2280
- "name": "extra-query",
2207
+ "username": {
2208
+ "char": "u",
2209
+ "description": "Username for Basic Auth (WebDAV)",
2210
+ "env": "SFCC_USERNAME",
2211
+ "helpGroup": "AUTH",
2212
+ "name": "username",
2281
2213
  "hasDynamicHelp": false,
2282
2214
  "multiple": false,
2283
2215
  "type": "option"
2284
2216
  },
2285
- "extra-body": {
2286
- "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
2287
- "env": "SFCC_EXTRA_BODY",
2288
- "helpGroup": "GLOBAL",
2289
- "hidden": true,
2290
- "name": "extra-body",
2217
+ "password": {
2218
+ "char": "p",
2219
+ "description": "Password/access key for Basic Auth (WebDAV)",
2220
+ "env": "SFCC_PASSWORD",
2221
+ "helpGroup": "AUTH",
2222
+ "name": "password",
2291
2223
  "hasDynamicHelp": false,
2292
2224
  "multiple": false,
2293
2225
  "type": "option"
2294
2226
  },
2295
- "extra-headers": {
2296
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
2297
- "env": "SFCC_EXTRA_HEADERS",
2298
- "helpGroup": "GLOBAL",
2299
- "hidden": true,
2300
- "name": "extra-headers",
2301
- "hasDynamicHelp": false,
2302
- "multiple": false,
2303
- "type": "option"
2227
+ "keep-archive": {
2228
+ "char": "k",
2229
+ "description": "Keep archive on instance after import",
2230
+ "name": "keep-archive",
2231
+ "allowNo": false,
2232
+ "type": "boolean"
2304
2233
  },
2305
- "limit": {
2306
- "char": "l",
2307
- "description": "Maximum number of results to display",
2308
- "name": "limit",
2309
- "default": 20,
2234
+ "remote": {
2235
+ "char": "r",
2236
+ "description": "Target is a filename already on the instance (in Impex/src/instance/)",
2237
+ "name": "remote",
2238
+ "allowNo": false,
2239
+ "type": "boolean"
2240
+ },
2241
+ "timeout": {
2242
+ "char": "t",
2243
+ "description": "Timeout in seconds (default: no timeout)",
2244
+ "name": "timeout",
2310
2245
  "hasDynamicHelp": false,
2311
2246
  "multiple": false,
2312
2247
  "type": "option"
2313
2248
  },
2314
- "list": {
2315
- "description": "List all available documentation entries",
2316
- "name": "list",
2249
+ "show-log": {
2250
+ "description": "Show job log on failure",
2251
+ "name": "show-log",
2317
2252
  "allowNo": false,
2318
2253
  "type": "boolean"
2319
2254
  }
2320
2255
  },
2321
2256
  "hasDynamicHelp": false,
2322
2257
  "hiddenAliases": [],
2323
- "id": "docs:search",
2258
+ "id": "job:import",
2324
2259
  "pluginAlias": "@salesforce/b2c-cli",
2325
2260
  "pluginName": "@salesforce/b2c-cli",
2326
2261
  "pluginType": "core",
@@ -2330,20 +2265,26 @@
2330
2265
  "relativePath": [
2331
2266
  "dist",
2332
2267
  "commands",
2333
- "docs",
2334
- "search.js"
2268
+ "job",
2269
+ "import.js"
2335
2270
  ]
2336
2271
  },
2337
- "job:export": {
2272
+ "job:run": {
2338
2273
  "aliases": [],
2339
- "args": {},
2340
- "description": "Job execution and site archive import/export (IMPEX)",
2274
+ "args": {
2275
+ "jobId": {
2276
+ "description": "Job ID to execute",
2277
+ "name": "jobId",
2278
+ "required": true
2279
+ }
2280
+ },
2281
+ "description": "Execute a job on a B2C Commerce instance",
2341
2282
  "examples": [
2342
- "<%= config.bin %> <%= command.id %> --global-data meta_data",
2343
- "<%= config.bin %> <%= command.id %> --site RefArch --site-data content,site_preferences",
2344
- "<%= config.bin %> <%= command.id %> --catalog storefront-catalog",
2345
- "<%= config.bin %> <%= command.id %> --data-units '{\"global_data\":{\"meta_data\":true}}'",
2346
- "<%= config.bin %> <%= command.id %> --output ./exports --no-download"
2283
+ "<%= config.bin %> <%= command.id %> my-custom-job",
2284
+ "<%= config.bin %> <%= command.id %> my-custom-job --wait",
2285
+ "<%= config.bin %> <%= command.id %> my-custom-job -P \"SiteScope={\\\"all_storefront_sites\\\":true}\" -P OtherParam=value",
2286
+ "<%= config.bin %> <%= command.id %> my-custom-job --wait --timeout 600",
2287
+ "<%= config.bin %> <%= command.id %> sfcc-search-index-product-full-update --body '{\"site_scope\":{\"named_sites\":[\"RefArch\"]}}'"
2347
2288
  ],
2348
2289
  "flags": {
2349
2290
  "json": {
@@ -2557,104 +2498,49 @@
2557
2498
  "multiple": false,
2558
2499
  "type": "option"
2559
2500
  },
2560
- "output": {
2561
- "char": "o",
2562
- "description": "Output path (directory or .zip file)",
2563
- "name": "output",
2564
- "default": "./export",
2565
- "hasDynamicHelp": false,
2566
- "multiple": false,
2567
- "type": "option"
2568
- },
2569
- "site": {
2570
- "description": "Site IDs to export (comma-separated)",
2571
- "name": "site",
2572
- "delimiter": ",",
2573
- "hasDynamicHelp": false,
2574
- "multiple": true,
2575
- "type": "option"
2501
+ "wait": {
2502
+ "char": "w",
2503
+ "description": "Wait for job to complete",
2504
+ "name": "wait",
2505
+ "allowNo": false,
2506
+ "type": "boolean"
2576
2507
  },
2577
- "site-data": {
2578
- "description": "Site data units to export (comma-separated: content,site_preferences,etc.)",
2579
- "name": "site-data",
2508
+ "timeout": {
2509
+ "char": "t",
2510
+ "description": "Timeout in seconds when waiting (default: no timeout)",
2511
+ "name": "timeout",
2580
2512
  "hasDynamicHelp": false,
2581
2513
  "multiple": false,
2582
2514
  "type": "option"
2583
2515
  },
2584
- "catalog": {
2585
- "description": "Catalog IDs to export (comma-separated)",
2586
- "name": "catalog",
2587
- "delimiter": ",",
2588
- "hasDynamicHelp": false,
2589
- "multiple": true,
2590
- "type": "option"
2591
- },
2592
- "library": {
2593
- "description": "Library IDs to export (comma-separated)",
2594
- "name": "library",
2595
- "delimiter": ",",
2596
- "hasDynamicHelp": false,
2597
- "multiple": true,
2598
- "type": "option"
2599
- },
2600
- "inventory-list": {
2601
- "description": "Inventory list IDs to export (comma-separated)",
2602
- "name": "inventory-list",
2603
- "delimiter": ",",
2604
- "hasDynamicHelp": false,
2605
- "multiple": true,
2606
- "type": "option"
2607
- },
2608
- "price-book": {
2609
- "description": "Price book IDs to export (comma-separated)",
2610
- "name": "price-book",
2611
- "delimiter": ",",
2516
+ "param": {
2517
+ "char": "P",
2518
+ "description": "Job parameter in format \"name=value\" (use -P multiple times for multiple params)",
2519
+ "exclusive": [
2520
+ "body"
2521
+ ],
2522
+ "name": "param",
2612
2523
  "hasDynamicHelp": false,
2613
2524
  "multiple": true,
2614
2525
  "type": "option"
2615
2526
  },
2616
- "global-data": {
2617
- "description": "Global data units to export (comma-separated: meta_data,custom_types,etc.)",
2618
- "name": "global-data",
2619
- "hasDynamicHelp": false,
2620
- "multiple": false,
2621
- "type": "option"
2622
- },
2623
- "data-units": {
2624
- "char": "d",
2625
- "description": "Full data units configuration as JSON string",
2626
- "name": "data-units",
2527
+ "body": {
2528
+ "char": "B",
2529
+ "description": "Raw JSON request body (for system jobs with non-standard schemas)",
2530
+ "exclusive": [
2531
+ "param"
2532
+ ],
2533
+ "name": "body",
2627
2534
  "hasDynamicHelp": false,
2628
2535
  "multiple": false,
2629
2536
  "type": "option"
2630
2537
  },
2631
- "keep-archive": {
2632
- "char": "k",
2633
- "description": "Keep archive on instance after download",
2634
- "name": "keep-archive",
2635
- "allowNo": false,
2636
- "type": "boolean"
2637
- },
2638
- "no-download": {
2639
- "description": "Do not download the archive (leave on instance)",
2640
- "name": "no-download",
2641
- "allowNo": false,
2642
- "type": "boolean"
2643
- },
2644
- "zip-only": {
2645
- "description": "Save as zip file without extracting",
2646
- "name": "zip-only",
2538
+ "no-wait-running": {
2539
+ "description": "Do not wait for running job to finish before starting",
2540
+ "name": "no-wait-running",
2647
2541
  "allowNo": false,
2648
2542
  "type": "boolean"
2649
2543
  },
2650
- "timeout": {
2651
- "char": "t",
2652
- "description": "Timeout in seconds (default: no timeout)",
2653
- "name": "timeout",
2654
- "hasDynamicHelp": false,
2655
- "multiple": false,
2656
- "type": "option"
2657
- },
2658
2544
  "show-log": {
2659
2545
  "description": "Show job log on failure",
2660
2546
  "name": "show-log",
@@ -2664,7 +2550,7 @@
2664
2550
  },
2665
2551
  "hasDynamicHelp": false,
2666
2552
  "hiddenAliases": [],
2667
- "id": "job:export",
2553
+ "id": "job:run",
2668
2554
  "pluginAlias": "@salesforce/b2c-cli",
2669
2555
  "pluginName": "@salesforce/b2c-cli",
2670
2556
  "pluginType": "core",
@@ -2675,24 +2561,19 @@
2675
2561
  "dist",
2676
2562
  "commands",
2677
2563
  "job",
2678
- "export.js"
2564
+ "run.js"
2679
2565
  ]
2680
2566
  },
2681
- "job:import": {
2567
+ "job:search": {
2682
2568
  "aliases": [],
2683
- "args": {
2684
- "target": {
2685
- "description": "Directory, zip file, or remote filename to import",
2686
- "name": "target",
2687
- "required": true
2688
- }
2689
- },
2690
- "description": "Import a site archive to a B2C Commerce instance using sfcc-site-archive-import job",
2569
+ "args": {},
2570
+ "description": "Search for job executions on a B2C Commerce instance",
2691
2571
  "examples": [
2692
- "<%= config.bin %> <%= command.id %> ./my-site-data",
2693
- "<%= config.bin %> <%= command.id %> ./export.zip",
2694
- "<%= config.bin %> <%= command.id %> ./my-site-data --keep-archive",
2695
- "<%= config.bin %> <%= command.id %> existing-archive.zip --remote"
2572
+ "<%= config.bin %> <%= command.id %>",
2573
+ "<%= config.bin %> <%= command.id %> --job-id my-custom-job",
2574
+ "<%= config.bin %> <%= command.id %> --status RUNNING,PENDING",
2575
+ "<%= config.bin %> <%= command.id %> --count 50",
2576
+ "<%= config.bin %> <%= command.id %> --json"
2696
2577
  ],
2697
2578
  "flags": {
2698
2579
  "json": {
@@ -2906,38 +2787,69 @@
2906
2787
  "multiple": false,
2907
2788
  "type": "option"
2908
2789
  },
2909
- "keep-archive": {
2910
- "char": "k",
2911
- "description": "Keep archive on instance after import",
2912
- "name": "keep-archive",
2913
- "allowNo": false,
2914
- "type": "boolean"
2790
+ "job-id": {
2791
+ "char": "j",
2792
+ "description": "Filter by job ID",
2793
+ "name": "job-id",
2794
+ "hasDynamicHelp": false,
2795
+ "multiple": false,
2796
+ "type": "option"
2915
2797
  },
2916
- "remote": {
2917
- "char": "r",
2918
- "description": "Target is a filename already on the instance (in Impex/src/instance/)",
2919
- "name": "remote",
2920
- "allowNo": false,
2921
- "type": "boolean"
2798
+ "status": {
2799
+ "description": "Filter by status (comma-separated: RUNNING,PENDING,OK,ERROR)",
2800
+ "name": "status",
2801
+ "delimiter": ",",
2802
+ "hasDynamicHelp": false,
2803
+ "multiple": true,
2804
+ "type": "option"
2922
2805
  },
2923
- "timeout": {
2924
- "char": "t",
2925
- "description": "Timeout in seconds (default: no timeout)",
2926
- "name": "timeout",
2806
+ "count": {
2807
+ "char": "n",
2808
+ "description": "Maximum number of results",
2809
+ "name": "count",
2810
+ "default": 25,
2927
2811
  "hasDynamicHelp": false,
2928
2812
  "multiple": false,
2929
2813
  "type": "option"
2930
2814
  },
2931
- "show-log": {
2932
- "description": "Show job log on failure",
2933
- "name": "show-log",
2934
- "allowNo": false,
2935
- "type": "boolean"
2815
+ "start": {
2816
+ "description": "Starting index for pagination",
2817
+ "name": "start",
2818
+ "default": 0,
2819
+ "hasDynamicHelp": false,
2820
+ "multiple": false,
2821
+ "type": "option"
2822
+ },
2823
+ "sort-by": {
2824
+ "description": "Sort by field",
2825
+ "name": "sort-by",
2826
+ "default": "start_time",
2827
+ "hasDynamicHelp": false,
2828
+ "multiple": false,
2829
+ "options": [
2830
+ "start_time",
2831
+ "end_time",
2832
+ "job_id",
2833
+ "status"
2834
+ ],
2835
+ "type": "option"
2836
+ },
2837
+ "sort-order": {
2838
+ "description": "Sort order",
2839
+ "name": "sort-order",
2840
+ "default": "desc",
2841
+ "hasDynamicHelp": false,
2842
+ "multiple": false,
2843
+ "options": [
2844
+ "asc",
2845
+ "desc"
2846
+ ],
2847
+ "type": "option"
2936
2848
  }
2937
2849
  },
2938
2850
  "hasDynamicHelp": false,
2939
2851
  "hiddenAliases": [],
2940
- "id": "job:import",
2852
+ "id": "job:search",
2941
2853
  "pluginAlias": "@salesforce/b2c-cli",
2942
2854
  "pluginName": "@salesforce/b2c-cli",
2943
2855
  "pluginType": "core",
@@ -2948,25 +2860,28 @@
2948
2860
  "dist",
2949
2861
  "commands",
2950
2862
  "job",
2951
- "import.js"
2863
+ "search.js"
2952
2864
  ]
2953
2865
  },
2954
- "job:run": {
2866
+ "job:wait": {
2955
2867
  "aliases": [],
2956
2868
  "args": {
2957
2869
  "jobId": {
2958
- "description": "Job ID to execute",
2870
+ "description": "Job ID",
2959
2871
  "name": "jobId",
2960
2872
  "required": true
2873
+ },
2874
+ "executionId": {
2875
+ "description": "Execution ID to wait for",
2876
+ "name": "executionId",
2877
+ "required": true
2961
2878
  }
2962
2879
  },
2963
- "description": "Execute a job on a B2C Commerce instance",
2880
+ "description": "Wait for a job execution to complete",
2964
2881
  "examples": [
2965
- "<%= config.bin %> <%= command.id %> my-custom-job",
2966
- "<%= config.bin %> <%= command.id %> my-custom-job --wait",
2967
- "<%= config.bin %> <%= command.id %> my-custom-job -P \"SiteScope={\\\"all_storefront_sites\\\":true}\" -P OtherParam=value",
2968
- "<%= config.bin %> <%= command.id %> my-custom-job --wait --timeout 600",
2969
- "<%= config.bin %> <%= command.id %> sfcc-search-index-product-full-update --body '{\"site_scope\":{\"named_sites\":[\"RefArch\"]}}'"
2882
+ "<%= config.bin %> <%= command.id %> my-job abc123-def456",
2883
+ "<%= config.bin %> <%= command.id %> my-job abc123-def456 --timeout 600",
2884
+ "<%= config.bin %> <%= command.id %> my-job abc123-def456 --poll-interval 5"
2970
2885
  ],
2971
2886
  "flags": {
2972
2887
  "json": {
@@ -3180,49 +3095,22 @@
3180
3095
  "multiple": false,
3181
3096
  "type": "option"
3182
3097
  },
3183
- "wait": {
3184
- "char": "w",
3185
- "description": "Wait for job to complete",
3186
- "name": "wait",
3187
- "allowNo": false,
3188
- "type": "boolean"
3189
- },
3190
3098
  "timeout": {
3191
3099
  "char": "t",
3192
- "description": "Timeout in seconds when waiting (default: no timeout)",
3100
+ "description": "Timeout in seconds (default: no timeout)",
3193
3101
  "name": "timeout",
3194
3102
  "hasDynamicHelp": false,
3195
3103
  "multiple": false,
3196
3104
  "type": "option"
3197
3105
  },
3198
- "param": {
3199
- "char": "P",
3200
- "description": "Job parameter in format \"name=value\" (use -P multiple times for multiple params)",
3201
- "exclusive": [
3202
- "body"
3203
- ],
3204
- "name": "param",
3205
- "hasDynamicHelp": false,
3206
- "multiple": true,
3207
- "type": "option"
3208
- },
3209
- "body": {
3210
- "char": "B",
3211
- "description": "Raw JSON request body (for system jobs with non-standard schemas)",
3212
- "exclusive": [
3213
- "param"
3214
- ],
3215
- "name": "body",
3106
+ "poll-interval": {
3107
+ "description": "Polling interval in seconds",
3108
+ "name": "poll-interval",
3109
+ "default": 3,
3216
3110
  "hasDynamicHelp": false,
3217
3111
  "multiple": false,
3218
3112
  "type": "option"
3219
3113
  },
3220
- "no-wait-running": {
3221
- "description": "Do not wait for running job to finish before starting",
3222
- "name": "no-wait-running",
3223
- "allowNo": false,
3224
- "type": "boolean"
3225
- },
3226
3114
  "show-log": {
3227
3115
  "description": "Show job log on failure",
3228
3116
  "name": "show-log",
@@ -3232,7 +3120,7 @@
3232
3120
  },
3233
3121
  "hasDynamicHelp": false,
3234
3122
  "hiddenAliases": [],
3235
- "id": "job:run",
3123
+ "id": "job:wait",
3236
3124
  "pluginAlias": "@salesforce/b2c-cli",
3237
3125
  "pluginName": "@salesforce/b2c-cli",
3238
3126
  "pluginType": "core",
@@ -3243,19 +3131,20 @@
3243
3131
  "dist",
3244
3132
  "commands",
3245
3133
  "job",
3246
- "run.js"
3134
+ "wait.js"
3247
3135
  ]
3248
3136
  },
3249
- "job:search": {
3137
+ "mrt:push": {
3250
3138
  "aliases": [],
3251
3139
  "args": {},
3252
- "description": "Search for job executions on a B2C Commerce instance",
3140
+ "description": "Push a bundle to Managed Runtime",
3253
3141
  "examples": [
3254
- "<%= config.bin %> <%= command.id %>",
3255
- "<%= config.bin %> <%= command.id %> --job-id my-custom-job",
3256
- "<%= config.bin %> <%= command.id %> --status RUNNING,PENDING",
3257
- "<%= config.bin %> <%= command.id %> --count 50",
3258
- "<%= config.bin %> <%= command.id %> --json"
3142
+ "<%= config.bin %> <%= command.id %> --project my-storefront",
3143
+ "<%= config.bin %> <%= command.id %> --project my-storefront --environment staging",
3144
+ "<%= config.bin %> <%= command.id %> --project my-storefront --environment production --message \"Release v1.0.0\"",
3145
+ "<%= config.bin %> <%= command.id %> --project my-storefront --build-dir ./dist",
3146
+ "<%= config.bin %> <%= command.id %> --project my-storefront --node-version 20.x",
3147
+ "<%= config.bin %> <%= command.id %> --project my-storefront --ssr-param SSRProxyPath=/api"
3259
3148
  ],
3260
3149
  "flags": {
3261
3150
  "json": {
@@ -3340,198 +3229,120 @@
3340
3229
  },
3341
3230
  "extra-body": {
3342
3231
  "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
3343
- "env": "SFCC_EXTRA_BODY",
3344
- "helpGroup": "GLOBAL",
3345
- "hidden": true,
3346
- "name": "extra-body",
3347
- "hasDynamicHelp": false,
3348
- "multiple": false,
3349
- "type": "option"
3350
- },
3351
- "extra-headers": {
3352
- "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
3353
- "env": "SFCC_EXTRA_HEADERS",
3354
- "helpGroup": "GLOBAL",
3355
- "hidden": true,
3356
- "name": "extra-headers",
3357
- "hasDynamicHelp": false,
3358
- "multiple": false,
3359
- "type": "option"
3360
- },
3361
- "client-id": {
3362
- "description": "Client ID for OAuth",
3363
- "env": "SFCC_CLIENT_ID",
3364
- "helpGroup": "AUTH",
3365
- "name": "client-id",
3366
- "hasDynamicHelp": false,
3367
- "multiple": false,
3368
- "type": "option"
3369
- },
3370
- "client-secret": {
3371
- "description": "Client Secret for OAuth",
3372
- "env": "SFCC_CLIENT_SECRET",
3373
- "helpGroup": "AUTH",
3374
- "name": "client-secret",
3375
- "hasDynamicHelp": false,
3376
- "multiple": false,
3377
- "type": "option"
3378
- },
3379
- "scope": {
3380
- "description": "OAuth scopes to request (comma-separated)",
3381
- "env": "SFCC_OAUTH_SCOPES",
3382
- "helpGroup": "AUTH",
3383
- "name": "scope",
3384
- "delimiter": ",",
3385
- "hasDynamicHelp": false,
3386
- "multiple": true,
3387
- "type": "option"
3388
- },
3389
- "short-code": {
3390
- "description": "SCAPI short code",
3391
- "env": "SFCC_SHORTCODE",
3392
- "helpGroup": "AUTH",
3393
- "name": "short-code",
3232
+ "env": "SFCC_EXTRA_BODY",
3233
+ "helpGroup": "GLOBAL",
3234
+ "hidden": true,
3235
+ "name": "extra-body",
3394
3236
  "hasDynamicHelp": false,
3395
3237
  "multiple": false,
3396
3238
  "type": "option"
3397
3239
  },
3398
- "auth-methods": {
3399
- "description": "Allowed auth methods in priority order (comma-separated)",
3400
- "env": "SFCC_AUTH_METHODS",
3401
- "helpGroup": "AUTH",
3402
- "name": "auth-methods",
3403
- "delimiter": ",",
3240
+ "extra-headers": {
3241
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
3242
+ "env": "SFCC_EXTRA_HEADERS",
3243
+ "helpGroup": "GLOBAL",
3244
+ "hidden": true,
3245
+ "name": "extra-headers",
3404
3246
  "hasDynamicHelp": false,
3405
- "multiple": true,
3406
- "options": [
3407
- "client-credentials",
3408
- "implicit",
3409
- "basic",
3410
- "api-key"
3411
- ],
3247
+ "multiple": false,
3412
3248
  "type": "option"
3413
3249
  },
3414
- "account-manager-host": {
3415
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
3416
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
3250
+ "api-key": {
3251
+ "description": "MRT API key",
3252
+ "env": "SFCC_MRT_API_KEY",
3417
3253
  "helpGroup": "AUTH",
3418
- "name": "account-manager-host",
3254
+ "name": "api-key",
3419
3255
  "hasDynamicHelp": false,
3420
3256
  "multiple": false,
3421
3257
  "type": "option"
3422
3258
  },
3423
- "server": {
3424
- "char": "s",
3425
- "description": "B2C instance hostname",
3426
- "env": "SFCC_SERVER",
3427
- "helpGroup": "INSTANCE",
3428
- "name": "server",
3259
+ "project": {
3260
+ "char": "p",
3261
+ "description": "MRT project slug (or set mrtProject in dw.json)",
3262
+ "env": "SFCC_MRT_PROJECT",
3263
+ "name": "project",
3429
3264
  "hasDynamicHelp": false,
3430
3265
  "multiple": false,
3431
3266
  "type": "option"
3432
3267
  },
3433
- "webdav-server": {
3434
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
3435
- "env": "SFCC_WEBDAV_SERVER",
3436
- "helpGroup": "INSTANCE",
3437
- "name": "webdav-server",
3268
+ "environment": {
3269
+ "char": "e",
3270
+ "description": "MRT environment (e.g., staging, production; or set mrtEnvironment in dw.json)",
3271
+ "env": "SFCC_MRT_ENVIRONMENT",
3272
+ "name": "environment",
3438
3273
  "hasDynamicHelp": false,
3439
3274
  "multiple": false,
3440
3275
  "type": "option"
3441
3276
  },
3442
- "code-version": {
3443
- "char": "v",
3444
- "description": "Code version",
3445
- "env": "SFCC_CODE_VERSION",
3446
- "helpGroup": "INSTANCE",
3447
- "name": "code-version",
3277
+ "cloud-origin": {
3278
+ "description": "MRT cloud origin URL (default: https://cloud.mobify.com)",
3279
+ "env": "SFCC_MRT_CLOUD_ORIGIN",
3280
+ "name": "cloud-origin",
3448
3281
  "hasDynamicHelp": false,
3449
3282
  "multiple": false,
3450
3283
  "type": "option"
3451
3284
  },
3452
- "username": {
3453
- "char": "u",
3454
- "description": "Username for Basic Auth (WebDAV)",
3455
- "env": "SFCC_USERNAME",
3456
- "helpGroup": "AUTH",
3457
- "name": "username",
3285
+ "credentials-file": {
3286
+ "description": "Path to MRT credentials file (overrides default ~/.mobify)",
3287
+ "env": "MRT_CREDENTIALS_FILE",
3288
+ "name": "credentials-file",
3458
3289
  "hasDynamicHelp": false,
3459
3290
  "multiple": false,
3460
3291
  "type": "option"
3461
3292
  },
3462
- "password": {
3463
- "char": "p",
3464
- "description": "Password/access key for Basic Auth (WebDAV)",
3465
- "env": "SFCC_PASSWORD",
3466
- "helpGroup": "AUTH",
3467
- "name": "password",
3293
+ "message": {
3294
+ "char": "m",
3295
+ "description": "Bundle message/description",
3296
+ "name": "message",
3468
3297
  "hasDynamicHelp": false,
3469
3298
  "multiple": false,
3470
3299
  "type": "option"
3471
3300
  },
3472
- "job-id": {
3473
- "char": "j",
3474
- "description": "Filter by job ID",
3475
- "name": "job-id",
3301
+ "build-dir": {
3302
+ "char": "b",
3303
+ "description": "Path to the build directory",
3304
+ "name": "build-dir",
3305
+ "default": "build",
3476
3306
  "hasDynamicHelp": false,
3477
3307
  "multiple": false,
3478
3308
  "type": "option"
3479
3309
  },
3480
- "status": {
3481
- "description": "Filter by status (comma-separated: RUNNING,PENDING,OK,ERROR)",
3482
- "name": "status",
3483
- "delimiter": ",",
3484
- "hasDynamicHelp": false,
3485
- "multiple": true,
3486
- "type": "option"
3487
- },
3488
- "count": {
3489
- "char": "n",
3490
- "description": "Maximum number of results",
3491
- "name": "count",
3492
- "default": 25,
3310
+ "ssr-only": {
3311
+ "description": "Glob patterns for server-only files (comma-separated)",
3312
+ "name": "ssr-only",
3313
+ "default": "ssr.js,ssr.mjs,server/**/*",
3493
3314
  "hasDynamicHelp": false,
3494
3315
  "multiple": false,
3495
3316
  "type": "option"
3496
3317
  },
3497
- "start": {
3498
- "description": "Starting index for pagination",
3499
- "name": "start",
3500
- "default": 0,
3318
+ "ssr-shared": {
3319
+ "description": "Glob patterns for shared files (comma-separated)",
3320
+ "name": "ssr-shared",
3321
+ "default": "static/**/*,client/**/*",
3501
3322
  "hasDynamicHelp": false,
3502
3323
  "multiple": false,
3503
3324
  "type": "option"
3504
3325
  },
3505
- "sort-by": {
3506
- "description": "Sort by field",
3507
- "name": "sort-by",
3508
- "default": "start_time",
3326
+ "node-version": {
3327
+ "char": "n",
3328
+ "description": "Node.js version for SSR runtime (default: 22.x)",
3329
+ "name": "node-version",
3509
3330
  "hasDynamicHelp": false,
3510
3331
  "multiple": false,
3511
- "options": [
3512
- "start_time",
3513
- "end_time",
3514
- "job_id",
3515
- "status"
3516
- ],
3517
3332
  "type": "option"
3518
3333
  },
3519
- "sort-order": {
3520
- "description": "Sort order",
3521
- "name": "sort-order",
3522
- "default": "desc",
3334
+ "ssr-param": {
3335
+ "description": "SSR parameter in key=value format (can be specified multiple times)",
3336
+ "name": "ssr-param",
3337
+ "default": [],
3523
3338
  "hasDynamicHelp": false,
3524
- "multiple": false,
3525
- "options": [
3526
- "asc",
3527
- "desc"
3528
- ],
3339
+ "multiple": true,
3529
3340
  "type": "option"
3530
3341
  }
3531
3342
  },
3532
3343
  "hasDynamicHelp": false,
3533
3344
  "hiddenAliases": [],
3534
- "id": "job:search",
3345
+ "id": "mrt:push",
3535
3346
  "pluginAlias": "@salesforce/b2c-cli",
3536
3347
  "pluginName": "@salesforce/b2c-cli",
3537
3348
  "pluginType": "core",
@@ -3541,29 +3352,22 @@
3541
3352
  "relativePath": [
3542
3353
  "dist",
3543
3354
  "commands",
3544
- "job",
3545
- "search.js"
3355
+ "mrt",
3356
+ "push.js"
3546
3357
  ]
3547
3358
  },
3548
- "job:wait": {
3359
+ "ods:create": {
3549
3360
  "aliases": [],
3550
- "args": {
3551
- "jobId": {
3552
- "description": "Job ID",
3553
- "name": "jobId",
3554
- "required": true
3555
- },
3556
- "executionId": {
3557
- "description": "Execution ID to wait for",
3558
- "name": "executionId",
3559
- "required": true
3560
- }
3561
- },
3562
- "description": "Wait for a job execution to complete",
3361
+ "args": {},
3362
+ "description": "Create a new on-demand sandbox",
3563
3363
  "examples": [
3564
- "<%= config.bin %> <%= command.id %> my-job abc123-def456",
3565
- "<%= config.bin %> <%= command.id %> my-job abc123-def456 --timeout 600",
3566
- "<%= config.bin %> <%= command.id %> my-job abc123-def456 --poll-interval 5"
3364
+ "<%= config.bin %> <%= command.id %> --realm abcd",
3365
+ "<%= config.bin %> <%= command.id %> --realm abcd --ttl 48",
3366
+ "<%= config.bin %> <%= command.id %> --realm abcd --profile large",
3367
+ "<%= config.bin %> <%= command.id %> --realm abcd --auto-scheduled",
3368
+ "<%= config.bin %> <%= command.id %> --realm abcd --wait",
3369
+ "<%= config.bin %> <%= command.id %> --realm abcd --wait --poll-interval 15",
3370
+ "<%= config.bin %> <%= command.id %> --realm abcd --json"
3567
3371
  ],
3568
3372
  "flags": {
3569
3373
  "json": {
@@ -3728,81 +3532,91 @@
3728
3532
  "multiple": false,
3729
3533
  "type": "option"
3730
3534
  },
3731
- "server": {
3732
- "char": "s",
3733
- "description": "B2C instance hostname",
3734
- "env": "SFCC_SERVER",
3735
- "helpGroup": "INSTANCE",
3736
- "name": "server",
3535
+ "sandbox-api-host": {
3536
+ "description": "ODS API hostname",
3537
+ "env": "SFCC_SANDBOX_API_HOST",
3538
+ "name": "sandbox-api-host",
3539
+ "default": "admin.dx.commercecloud.salesforce.com",
3737
3540
  "hasDynamicHelp": false,
3738
3541
  "multiple": false,
3739
3542
  "type": "option"
3740
3543
  },
3741
- "webdav-server": {
3742
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
3743
- "env": "SFCC_WEBDAV_SERVER",
3744
- "helpGroup": "INSTANCE",
3745
- "name": "webdav-server",
3544
+ "realm": {
3545
+ "char": "r",
3546
+ "description": "Realm ID (four-letter ID)",
3547
+ "name": "realm",
3548
+ "required": true,
3746
3549
  "hasDynamicHelp": false,
3747
3550
  "multiple": false,
3748
3551
  "type": "option"
3749
3552
  },
3750
- "code-version": {
3751
- "char": "v",
3752
- "description": "Code version",
3753
- "env": "SFCC_CODE_VERSION",
3754
- "helpGroup": "INSTANCE",
3755
- "name": "code-version",
3553
+ "ttl": {
3554
+ "description": "Time to live in hours (0 for infinite)",
3555
+ "name": "ttl",
3556
+ "default": 24,
3756
3557
  "hasDynamicHelp": false,
3757
3558
  "multiple": false,
3758
3559
  "type": "option"
3759
3560
  },
3760
- "username": {
3761
- "char": "u",
3762
- "description": "Username for Basic Auth (WebDAV)",
3763
- "env": "SFCC_USERNAME",
3764
- "helpGroup": "AUTH",
3765
- "name": "username",
3561
+ "profile": {
3562
+ "description": "Resource profile (medium, large, xlarge, xxlarge)",
3563
+ "name": "profile",
3564
+ "default": "medium",
3766
3565
  "hasDynamicHelp": false,
3767
3566
  "multiple": false,
3567
+ "options": [
3568
+ "medium",
3569
+ "large",
3570
+ "xlarge",
3571
+ "xxlarge"
3572
+ ],
3768
3573
  "type": "option"
3769
3574
  },
3770
- "password": {
3771
- "char": "p",
3772
- "description": "Password/access key for Basic Auth (WebDAV)",
3773
- "env": "SFCC_PASSWORD",
3774
- "helpGroup": "AUTH",
3775
- "name": "password",
3776
- "hasDynamicHelp": false,
3777
- "multiple": false,
3778
- "type": "option"
3575
+ "auto-scheduled": {
3576
+ "description": "Enable automatic start/stop scheduling",
3577
+ "name": "auto-scheduled",
3578
+ "allowNo": false,
3579
+ "type": "boolean"
3779
3580
  },
3780
- "timeout": {
3781
- "char": "t",
3782
- "description": "Timeout in seconds (default: no timeout)",
3783
- "name": "timeout",
3581
+ "wait": {
3582
+ "char": "w",
3583
+ "description": "Wait for the sandbox to reach started or failed state before returning",
3584
+ "name": "wait",
3585
+ "allowNo": false,
3586
+ "type": "boolean"
3587
+ },
3588
+ "poll-interval": {
3589
+ "dependsOn": [
3590
+ "wait"
3591
+ ],
3592
+ "description": "Polling interval in seconds when using --wait",
3593
+ "name": "poll-interval",
3594
+ "default": 10,
3784
3595
  "hasDynamicHelp": false,
3785
3596
  "multiple": false,
3786
3597
  "type": "option"
3787
3598
  },
3788
- "poll-interval": {
3789
- "description": "Polling interval in seconds",
3790
- "name": "poll-interval",
3791
- "default": 3,
3599
+ "timeout": {
3600
+ "dependsOn": [
3601
+ "wait"
3602
+ ],
3603
+ "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
3604
+ "name": "timeout",
3605
+ "default": 600,
3792
3606
  "hasDynamicHelp": false,
3793
3607
  "multiple": false,
3794
3608
  "type": "option"
3795
3609
  },
3796
- "show-log": {
3797
- "description": "Show job log on failure",
3798
- "name": "show-log",
3799
- "allowNo": false,
3610
+ "set-permissions": {
3611
+ "description": "Automatically set OCAPI and WebDAV permissions for the client ID used to create the sandbox",
3612
+ "name": "set-permissions",
3613
+ "allowNo": true,
3800
3614
  "type": "boolean"
3801
3615
  }
3802
3616
  },
3803
3617
  "hasDynamicHelp": false,
3804
3618
  "hiddenAliases": [],
3805
- "id": "job:wait",
3619
+ "id": "ods:create",
3806
3620
  "pluginAlias": "@salesforce/b2c-cli",
3807
3621
  "pluginName": "@salesforce/b2c-cli",
3808
3622
  "pluginType": "core",
@@ -3812,30 +3626,25 @@
3812
3626
  "relativePath": [
3813
3627
  "dist",
3814
3628
  "commands",
3815
- "job",
3816
- "wait.js"
3629
+ "ods",
3630
+ "create.js"
3817
3631
  ]
3818
3632
  },
3819
- "mrt:push": {
3633
+ "ods:delete": {
3820
3634
  "aliases": [],
3821
- "args": {},
3822
- "description": "Push a bundle to Managed Runtime",
3635
+ "args": {
3636
+ "sandboxId": {
3637
+ "description": "Sandbox ID (UUID)",
3638
+ "name": "sandboxId",
3639
+ "required": true
3640
+ }
3641
+ },
3642
+ "description": "Delete an on-demand sandbox",
3823
3643
  "examples": [
3824
- "<%= config.bin %> <%= command.id %> --project my-storefront",
3825
- "<%= config.bin %> <%= command.id %> --project my-storefront --environment staging",
3826
- "<%= config.bin %> <%= command.id %> --project my-storefront --environment production --message \"Release v1.0.0\"",
3827
- "<%= config.bin %> <%= command.id %> --project my-storefront --build-dir ./dist",
3828
- "<%= config.bin %> <%= command.id %> --project my-storefront --node-version 20.x",
3829
- "<%= config.bin %> <%= command.id %> --project my-storefront --ssr-param SSRProxyPath=/api"
3644
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
3645
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --force"
3830
3646
  ],
3831
3647
  "flags": {
3832
- "json": {
3833
- "description": "Output logs as JSON lines",
3834
- "helpGroup": "GLOBAL",
3835
- "name": "json",
3836
- "allowNo": false,
3837
- "type": "boolean"
3838
- },
3839
3648
  "log-level": {
3840
3649
  "description": "Set logging verbosity level",
3841
3650
  "env": "SFCC_LOG_LEVEL",
@@ -3862,6 +3671,13 @@
3862
3671
  "allowNo": false,
3863
3672
  "type": "boolean"
3864
3673
  },
3674
+ "json": {
3675
+ "description": "Output logs as JSON lines",
3676
+ "helpGroup": "GLOBAL",
3677
+ "name": "json",
3678
+ "allowNo": false,
3679
+ "type": "boolean"
3680
+ },
3865
3681
  "lang": {
3866
3682
  "char": "L",
3867
3683
  "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
@@ -3929,127 +3745,114 @@
3929
3745
  "multiple": false,
3930
3746
  "type": "option"
3931
3747
  },
3932
- "api-key": {
3933
- "description": "MRT API key",
3934
- "env": "SFCC_MRT_API_KEY",
3748
+ "client-id": {
3749
+ "description": "Client ID for OAuth",
3750
+ "env": "SFCC_CLIENT_ID",
3935
3751
  "helpGroup": "AUTH",
3936
- "name": "api-key",
3937
- "hasDynamicHelp": false,
3938
- "multiple": false,
3939
- "type": "option"
3940
- },
3941
- "project": {
3942
- "char": "p",
3943
- "description": "MRT project slug (or set mrtProject in dw.json)",
3944
- "env": "SFCC_MRT_PROJECT",
3945
- "name": "project",
3946
- "hasDynamicHelp": false,
3947
- "multiple": false,
3948
- "type": "option"
3949
- },
3950
- "environment": {
3951
- "char": "e",
3952
- "description": "MRT environment (e.g., staging, production; or set mrtEnvironment in dw.json)",
3953
- "env": "SFCC_MRT_ENVIRONMENT",
3954
- "name": "environment",
3955
- "hasDynamicHelp": false,
3956
- "multiple": false,
3957
- "type": "option"
3958
- },
3959
- "cloud-origin": {
3960
- "description": "MRT cloud origin URL (default: https://cloud.mobify.com)",
3961
- "env": "SFCC_MRT_CLOUD_ORIGIN",
3962
- "name": "cloud-origin",
3752
+ "name": "client-id",
3963
3753
  "hasDynamicHelp": false,
3964
3754
  "multiple": false,
3965
3755
  "type": "option"
3966
3756
  },
3967
- "credentials-file": {
3968
- "description": "Path to MRT credentials file (overrides default ~/.mobify)",
3969
- "env": "MRT_CREDENTIALS_FILE",
3970
- "name": "credentials-file",
3757
+ "client-secret": {
3758
+ "description": "Client Secret for OAuth",
3759
+ "env": "SFCC_CLIENT_SECRET",
3760
+ "helpGroup": "AUTH",
3761
+ "name": "client-secret",
3971
3762
  "hasDynamicHelp": false,
3972
3763
  "multiple": false,
3973
3764
  "type": "option"
3974
3765
  },
3975
- "message": {
3976
- "char": "m",
3977
- "description": "Bundle message/description",
3978
- "name": "message",
3766
+ "scope": {
3767
+ "description": "OAuth scopes to request (comma-separated)",
3768
+ "env": "SFCC_OAUTH_SCOPES",
3769
+ "helpGroup": "AUTH",
3770
+ "name": "scope",
3771
+ "delimiter": ",",
3979
3772
  "hasDynamicHelp": false,
3980
- "multiple": false,
3773
+ "multiple": true,
3981
3774
  "type": "option"
3982
3775
  },
3983
- "build-dir": {
3984
- "char": "b",
3985
- "description": "Path to the build directory",
3986
- "name": "build-dir",
3987
- "default": "build",
3776
+ "short-code": {
3777
+ "description": "SCAPI short code",
3778
+ "env": "SFCC_SHORTCODE",
3779
+ "helpGroup": "AUTH",
3780
+ "name": "short-code",
3988
3781
  "hasDynamicHelp": false,
3989
3782
  "multiple": false,
3990
3783
  "type": "option"
3991
3784
  },
3992
- "ssr-only": {
3993
- "description": "Glob patterns for server-only files (comma-separated)",
3994
- "name": "ssr-only",
3995
- "default": "ssr.js,ssr.mjs,server/**/*",
3785
+ "auth-methods": {
3786
+ "description": "Allowed auth methods in priority order (comma-separated)",
3787
+ "env": "SFCC_AUTH_METHODS",
3788
+ "helpGroup": "AUTH",
3789
+ "name": "auth-methods",
3790
+ "delimiter": ",",
3996
3791
  "hasDynamicHelp": false,
3997
- "multiple": false,
3792
+ "multiple": true,
3793
+ "options": [
3794
+ "client-credentials",
3795
+ "implicit",
3796
+ "basic",
3797
+ "api-key"
3798
+ ],
3998
3799
  "type": "option"
3999
3800
  },
4000
- "ssr-shared": {
4001
- "description": "Glob patterns for shared files (comma-separated)",
4002
- "name": "ssr-shared",
4003
- "default": "static/**/*,client/**/*",
3801
+ "account-manager-host": {
3802
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
3803
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
3804
+ "helpGroup": "AUTH",
3805
+ "name": "account-manager-host",
4004
3806
  "hasDynamicHelp": false,
4005
3807
  "multiple": false,
4006
3808
  "type": "option"
4007
3809
  },
4008
- "node-version": {
4009
- "char": "n",
4010
- "description": "Node.js version for SSR runtime (default: 22.x)",
4011
- "name": "node-version",
3810
+ "sandbox-api-host": {
3811
+ "description": "ODS API hostname",
3812
+ "env": "SFCC_SANDBOX_API_HOST",
3813
+ "name": "sandbox-api-host",
3814
+ "default": "admin.dx.commercecloud.salesforce.com",
4012
3815
  "hasDynamicHelp": false,
4013
3816
  "multiple": false,
4014
3817
  "type": "option"
4015
3818
  },
4016
- "ssr-param": {
4017
- "description": "SSR parameter in key=value format (can be specified multiple times)",
4018
- "name": "ssr-param",
4019
- "default": [],
4020
- "hasDynamicHelp": false,
4021
- "multiple": true,
4022
- "type": "option"
3819
+ "force": {
3820
+ "char": "f",
3821
+ "description": "Skip confirmation prompt",
3822
+ "name": "force",
3823
+ "allowNo": false,
3824
+ "type": "boolean"
4023
3825
  }
4024
3826
  },
4025
3827
  "hasDynamicHelp": false,
4026
3828
  "hiddenAliases": [],
4027
- "id": "mrt:push",
3829
+ "id": "ods:delete",
4028
3830
  "pluginAlias": "@salesforce/b2c-cli",
4029
3831
  "pluginName": "@salesforce/b2c-cli",
4030
3832
  "pluginType": "core",
4031
3833
  "strict": true,
4032
- "enableJsonFlag": true,
3834
+ "enableJsonFlag": false,
4033
3835
  "isESM": true,
4034
3836
  "relativePath": [
4035
3837
  "dist",
4036
3838
  "commands",
4037
- "mrt",
4038
- "push.js"
3839
+ "ods",
3840
+ "delete.js"
4039
3841
  ]
4040
3842
  },
4041
- "ods:create": {
3843
+ "ods:get": {
4042
3844
  "aliases": [],
4043
- "args": {},
4044
- "description": "Create a new on-demand sandbox",
3845
+ "args": {
3846
+ "sandboxId": {
3847
+ "description": "Sandbox ID (UUID)",
3848
+ "name": "sandboxId",
3849
+ "required": true
3850
+ }
3851
+ },
3852
+ "description": "Get details of a specific sandbox",
4045
3853
  "examples": [
4046
- "<%= config.bin %> <%= command.id %> --realm abcd",
4047
- "<%= config.bin %> <%= command.id %> --realm abcd --ttl 48",
4048
- "<%= config.bin %> <%= command.id %> --realm abcd --profile large",
4049
- "<%= config.bin %> <%= command.id %> --realm abcd --auto-scheduled",
4050
- "<%= config.bin %> <%= command.id %> --realm abcd --wait",
4051
- "<%= config.bin %> <%= command.id %> --realm abcd --wait --poll-interval 15",
4052
- "<%= config.bin %> <%= command.id %> --realm abcd --json"
3854
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
3855
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
4053
3856
  ],
4054
3857
  "flags": {
4055
3858
  "json": {
@@ -4183,122 +3986,50 @@
4183
3986
  "short-code": {
4184
3987
  "description": "SCAPI short code",
4185
3988
  "env": "SFCC_SHORTCODE",
4186
- "helpGroup": "AUTH",
4187
- "name": "short-code",
4188
- "hasDynamicHelp": false,
4189
- "multiple": false,
4190
- "type": "option"
4191
- },
4192
- "auth-methods": {
4193
- "description": "Allowed auth methods in priority order (comma-separated)",
4194
- "env": "SFCC_AUTH_METHODS",
4195
- "helpGroup": "AUTH",
4196
- "name": "auth-methods",
4197
- "delimiter": ",",
4198
- "hasDynamicHelp": false,
4199
- "multiple": true,
4200
- "options": [
4201
- "client-credentials",
4202
- "implicit",
4203
- "basic",
4204
- "api-key"
4205
- ],
4206
- "type": "option"
4207
- },
4208
- "account-manager-host": {
4209
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
4210
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
4211
- "helpGroup": "AUTH",
4212
- "name": "account-manager-host",
4213
- "hasDynamicHelp": false,
4214
- "multiple": false,
4215
- "type": "option"
4216
- },
4217
- "sandbox-api-host": {
4218
- "description": "ODS API hostname",
4219
- "env": "SFCC_SANDBOX_API_HOST",
4220
- "name": "sandbox-api-host",
4221
- "default": "admin.dx.commercecloud.salesforce.com",
4222
- "hasDynamicHelp": false,
4223
- "multiple": false,
4224
- "type": "option"
4225
- },
4226
- "realm": {
4227
- "char": "r",
4228
- "description": "Realm ID (four-letter ID)",
4229
- "name": "realm",
4230
- "required": true,
4231
- "hasDynamicHelp": false,
4232
- "multiple": false,
4233
- "type": "option"
4234
- },
4235
- "ttl": {
4236
- "description": "Time to live in hours (0 for infinite)",
4237
- "name": "ttl",
4238
- "default": 24,
3989
+ "helpGroup": "AUTH",
3990
+ "name": "short-code",
4239
3991
  "hasDynamicHelp": false,
4240
3992
  "multiple": false,
4241
3993
  "type": "option"
4242
3994
  },
4243
- "profile": {
4244
- "description": "Resource profile (medium, large, xlarge, xxlarge)",
4245
- "name": "profile",
4246
- "default": "medium",
3995
+ "auth-methods": {
3996
+ "description": "Allowed auth methods in priority order (comma-separated)",
3997
+ "env": "SFCC_AUTH_METHODS",
3998
+ "helpGroup": "AUTH",
3999
+ "name": "auth-methods",
4000
+ "delimiter": ",",
4247
4001
  "hasDynamicHelp": false,
4248
- "multiple": false,
4002
+ "multiple": true,
4249
4003
  "options": [
4250
- "medium",
4251
- "large",
4252
- "xlarge",
4253
- "xxlarge"
4004
+ "client-credentials",
4005
+ "implicit",
4006
+ "basic",
4007
+ "api-key"
4254
4008
  ],
4255
4009
  "type": "option"
4256
4010
  },
4257
- "auto-scheduled": {
4258
- "description": "Enable automatic start/stop scheduling",
4259
- "name": "auto-scheduled",
4260
- "allowNo": false,
4261
- "type": "boolean"
4262
- },
4263
- "wait": {
4264
- "char": "w",
4265
- "description": "Wait for the sandbox to reach started or failed state before returning",
4266
- "name": "wait",
4267
- "allowNo": false,
4268
- "type": "boolean"
4269
- },
4270
- "poll-interval": {
4271
- "dependsOn": [
4272
- "wait"
4273
- ],
4274
- "description": "Polling interval in seconds when using --wait",
4275
- "name": "poll-interval",
4276
- "default": 10,
4011
+ "account-manager-host": {
4012
+ "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
4013
+ "env": "SFCC_ACCOUNT_MANAGER_HOST",
4014
+ "helpGroup": "AUTH",
4015
+ "name": "account-manager-host",
4277
4016
  "hasDynamicHelp": false,
4278
4017
  "multiple": false,
4279
4018
  "type": "option"
4280
4019
  },
4281
- "timeout": {
4282
- "dependsOn": [
4283
- "wait"
4284
- ],
4285
- "description": "Maximum time to wait in seconds when using --wait (0 for no timeout)",
4286
- "name": "timeout",
4287
- "default": 600,
4020
+ "sandbox-api-host": {
4021
+ "description": "ODS API hostname",
4022
+ "env": "SFCC_SANDBOX_API_HOST",
4023
+ "name": "sandbox-api-host",
4024
+ "default": "admin.dx.commercecloud.salesforce.com",
4288
4025
  "hasDynamicHelp": false,
4289
4026
  "multiple": false,
4290
4027
  "type": "option"
4291
- },
4292
- "set-permissions": {
4293
- "description": "Automatically set OCAPI and WebDAV permissions for the client ID used to create the sandbox",
4294
- "name": "set-permissions",
4295
- "allowNo": true,
4296
- "type": "boolean"
4297
4028
  }
4298
4029
  },
4299
4030
  "hasDynamicHelp": false,
4300
4031
  "hiddenAliases": [],
4301
- "id": "ods:create",
4032
+ "id": "ods:get",
4302
4033
  "pluginAlias": "@salesforce/b2c-cli",
4303
4034
  "pluginName": "@salesforce/b2c-cli",
4304
4035
  "pluginType": "core",
@@ -4309,24 +4040,26 @@
4309
4040
  "dist",
4310
4041
  "commands",
4311
4042
  "ods",
4312
- "create.js"
4043
+ "get.js"
4313
4044
  ]
4314
4045
  },
4315
- "ods:delete": {
4046
+ "ods:info": {
4316
4047
  "aliases": [],
4317
- "args": {
4318
- "sandboxId": {
4319
- "description": "Sandbox ID (UUID)",
4320
- "name": "sandboxId",
4321
- "required": true
4322
- }
4323
- },
4324
- "description": "Delete an on-demand sandbox",
4048
+ "args": {},
4049
+ "description": "Display ODS user and system information",
4325
4050
  "examples": [
4326
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
4327
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --force"
4051
+ "<%= config.bin %> <%= command.id %>",
4052
+ "<%= config.bin %> <%= command.id %> --json",
4053
+ "<%= config.bin %> <%= command.id %> --host admin.eu01.dx.commercecloud.salesforce.com"
4328
4054
  ],
4329
4055
  "flags": {
4056
+ "json": {
4057
+ "description": "Output logs as JSON lines",
4058
+ "helpGroup": "GLOBAL",
4059
+ "name": "json",
4060
+ "allowNo": false,
4061
+ "type": "boolean"
4062
+ },
4330
4063
  "log-level": {
4331
4064
  "description": "Set logging verbosity level",
4332
4065
  "env": "SFCC_LOG_LEVEL",
@@ -4353,13 +4086,6 @@
4353
4086
  "allowNo": false,
4354
4087
  "type": "boolean"
4355
4088
  },
4356
- "json": {
4357
- "description": "Output logs as JSON lines",
4358
- "helpGroup": "GLOBAL",
4359
- "name": "json",
4360
- "allowNo": false,
4361
- "type": "boolean"
4362
- },
4363
4089
  "lang": {
4364
4090
  "char": "L",
4365
4091
  "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
@@ -4497,44 +4223,36 @@
4497
4223
  "hasDynamicHelp": false,
4498
4224
  "multiple": false,
4499
4225
  "type": "option"
4500
- },
4501
- "force": {
4502
- "char": "f",
4503
- "description": "Skip confirmation prompt",
4504
- "name": "force",
4505
- "allowNo": false,
4506
- "type": "boolean"
4507
4226
  }
4508
4227
  },
4509
4228
  "hasDynamicHelp": false,
4510
4229
  "hiddenAliases": [],
4511
- "id": "ods:delete",
4230
+ "id": "ods:info",
4512
4231
  "pluginAlias": "@salesforce/b2c-cli",
4513
4232
  "pluginName": "@salesforce/b2c-cli",
4514
4233
  "pluginType": "core",
4515
4234
  "strict": true,
4516
- "enableJsonFlag": false,
4235
+ "enableJsonFlag": true,
4517
4236
  "isESM": true,
4518
4237
  "relativePath": [
4519
4238
  "dist",
4520
4239
  "commands",
4521
4240
  "ods",
4522
- "delete.js"
4241
+ "info.js"
4523
4242
  ]
4524
4243
  },
4525
- "ods:get": {
4244
+ "ods:list": {
4526
4245
  "aliases": [],
4527
- "args": {
4528
- "sandboxId": {
4529
- "description": "Sandbox ID (UUID)",
4530
- "name": "sandboxId",
4531
- "required": true
4532
- }
4533
- },
4534
- "description": "Get details of a specific sandbox",
4246
+ "args": {},
4247
+ "description": "List all on-demand sandboxes",
4535
4248
  "examples": [
4536
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
4537
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
4249
+ "<%= config.bin %> <%= command.id %>",
4250
+ "<%= config.bin %> <%= command.id %> --realm abcd",
4251
+ "<%= config.bin %> <%= command.id %> --filter-params \"realm=abcd&state=started\"",
4252
+ "<%= config.bin %> <%= command.id %> --show-deleted",
4253
+ "<%= config.bin %> <%= command.id %> --extended",
4254
+ "<%= config.bin %> <%= command.id %> --columns realm,instance,state,hostname",
4255
+ "<%= config.bin %> <%= command.id %> --json"
4538
4256
  ],
4539
4257
  "flags": {
4540
4258
  "json": {
@@ -4707,11 +4425,47 @@
4707
4425
  "hasDynamicHelp": false,
4708
4426
  "multiple": false,
4709
4427
  "type": "option"
4428
+ },
4429
+ "realm": {
4430
+ "char": "r",
4431
+ "description": "Filter by realm ID (four-letter ID)",
4432
+ "name": "realm",
4433
+ "hasDynamicHelp": false,
4434
+ "multiple": false,
4435
+ "type": "option"
4436
+ },
4437
+ "filter-params": {
4438
+ "description": "Raw filter parameters (e.g., \"realm=abcd&state=started&resourceProfile=medium\")",
4439
+ "name": "filter-params",
4440
+ "hasDynamicHelp": false,
4441
+ "multiple": false,
4442
+ "type": "option"
4443
+ },
4444
+ "show-deleted": {
4445
+ "description": "Include deleted sandboxes in the list",
4446
+ "name": "show-deleted",
4447
+ "allowNo": false,
4448
+ "type": "boolean"
4449
+ },
4450
+ "columns": {
4451
+ "char": "c",
4452
+ "description": "Columns to display (comma-separated). Available: realm, instance, state, profile, created, eol, id, hostname, createdBy, autoScheduled",
4453
+ "name": "columns",
4454
+ "hasDynamicHelp": false,
4455
+ "multiple": false,
4456
+ "type": "option"
4457
+ },
4458
+ "extended": {
4459
+ "char": "x",
4460
+ "description": "Show all columns including extended fields",
4461
+ "name": "extended",
4462
+ "allowNo": false,
4463
+ "type": "boolean"
4710
4464
  }
4711
4465
  },
4712
4466
  "hasDynamicHelp": false,
4713
4467
  "hiddenAliases": [],
4714
- "id": "ods:get",
4468
+ "id": "ods:list",
4715
4469
  "pluginAlias": "@salesforce/b2c-cli",
4716
4470
  "pluginName": "@salesforce/b2c-cli",
4717
4471
  "pluginType": "core",
@@ -4722,17 +4476,22 @@
4722
4476
  "dist",
4723
4477
  "commands",
4724
4478
  "ods",
4725
- "get.js"
4479
+ "list.js"
4726
4480
  ]
4727
4481
  },
4728
- "ods:info": {
4482
+ "ods:restart": {
4729
4483
  "aliases": [],
4730
- "args": {},
4731
- "description": "Display ODS user and system information",
4484
+ "args": {
4485
+ "sandboxId": {
4486
+ "description": "Sandbox ID (UUID)",
4487
+ "name": "sandboxId",
4488
+ "required": true
4489
+ }
4490
+ },
4491
+ "description": "Restart an on-demand sandbox",
4732
4492
  "examples": [
4733
- "<%= config.bin %> <%= command.id %>",
4734
- "<%= config.bin %> <%= command.id %> --json",
4735
- "<%= config.bin %> <%= command.id %> --host admin.eu01.dx.commercecloud.salesforce.com"
4493
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
4494
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
4736
4495
  ],
4737
4496
  "flags": {
4738
4497
  "json": {
@@ -4909,7 +4668,7 @@
4909
4668
  },
4910
4669
  "hasDynamicHelp": false,
4911
4670
  "hiddenAliases": [],
4912
- "id": "ods:info",
4671
+ "id": "ods:restart",
4913
4672
  "pluginAlias": "@salesforce/b2c-cli",
4914
4673
  "pluginName": "@salesforce/b2c-cli",
4915
4674
  "pluginType": "core",
@@ -4920,21 +4679,22 @@
4920
4679
  "dist",
4921
4680
  "commands",
4922
4681
  "ods",
4923
- "info.js"
4682
+ "restart.js"
4924
4683
  ]
4925
4684
  },
4926
- "ods:list": {
4685
+ "ods:start": {
4927
4686
  "aliases": [],
4928
- "args": {},
4929
- "description": "List all on-demand sandboxes",
4687
+ "args": {
4688
+ "sandboxId": {
4689
+ "description": "Sandbox ID (UUID)",
4690
+ "name": "sandboxId",
4691
+ "required": true
4692
+ }
4693
+ },
4694
+ "description": "Start an on-demand sandbox",
4930
4695
  "examples": [
4931
- "<%= config.bin %> <%= command.id %>",
4932
- "<%= config.bin %> <%= command.id %> --realm abcd",
4933
- "<%= config.bin %> <%= command.id %> --filter-params \"realm=abcd&state=started\"",
4934
- "<%= config.bin %> <%= command.id %> --show-deleted",
4935
- "<%= config.bin %> <%= command.id %> --extended",
4936
- "<%= config.bin %> <%= command.id %> --columns realm,instance,state,hostname",
4937
- "<%= config.bin %> <%= command.id %> --json"
4696
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
4697
+ "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
4938
4698
  ],
4939
4699
  "flags": {
4940
4700
  "json": {
@@ -5107,47 +4867,11 @@
5107
4867
  "hasDynamicHelp": false,
5108
4868
  "multiple": false,
5109
4869
  "type": "option"
5110
- },
5111
- "realm": {
5112
- "char": "r",
5113
- "description": "Filter by realm ID (four-letter ID)",
5114
- "name": "realm",
5115
- "hasDynamicHelp": false,
5116
- "multiple": false,
5117
- "type": "option"
5118
- },
5119
- "filter-params": {
5120
- "description": "Raw filter parameters (e.g., \"realm=abcd&state=started&resourceProfile=medium\")",
5121
- "name": "filter-params",
5122
- "hasDynamicHelp": false,
5123
- "multiple": false,
5124
- "type": "option"
5125
- },
5126
- "show-deleted": {
5127
- "description": "Include deleted sandboxes in the list",
5128
- "name": "show-deleted",
5129
- "allowNo": false,
5130
- "type": "boolean"
5131
- },
5132
- "columns": {
5133
- "char": "c",
5134
- "description": "Columns to display (comma-separated). Available: realm, instance, state, profile, created, eol, id, hostname, createdBy, autoScheduled",
5135
- "name": "columns",
5136
- "hasDynamicHelp": false,
5137
- "multiple": false,
5138
- "type": "option"
5139
- },
5140
- "extended": {
5141
- "char": "x",
5142
- "description": "Show all columns including extended fields",
5143
- "name": "extended",
5144
- "allowNo": false,
5145
- "type": "boolean"
5146
4870
  }
5147
4871
  },
5148
4872
  "hasDynamicHelp": false,
5149
4873
  "hiddenAliases": [],
5150
- "id": "ods:list",
4874
+ "id": "ods:start",
5151
4875
  "pluginAlias": "@salesforce/b2c-cli",
5152
4876
  "pluginName": "@salesforce/b2c-cli",
5153
4877
  "pluginType": "core",
@@ -5158,10 +4882,10 @@
5158
4882
  "dist",
5159
4883
  "commands",
5160
4884
  "ods",
5161
- "list.js"
4885
+ "start.js"
5162
4886
  ]
5163
4887
  },
5164
- "ods:restart": {
4888
+ "ods:stop": {
5165
4889
  "aliases": [],
5166
4890
  "args": {
5167
4891
  "sandboxId": {
@@ -5170,7 +4894,7 @@
5170
4894
  "required": true
5171
4895
  }
5172
4896
  },
5173
- "description": "Restart an on-demand sandbox",
4897
+ "description": "Stop an on-demand sandbox",
5174
4898
  "examples": [
5175
4899
  "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
5176
4900
  "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
@@ -5350,7 +5074,7 @@
5350
5074
  },
5351
5075
  "hasDynamicHelp": false,
5352
5076
  "hiddenAliases": [],
5353
- "id": "ods:restart",
5077
+ "id": "ods:stop",
5354
5078
  "pluginAlias": "@salesforce/b2c-cli",
5355
5079
  "pluginName": "@salesforce/b2c-cli",
5356
5080
  "pluginType": "core",
@@ -5361,22 +5085,17 @@
5361
5085
  "dist",
5362
5086
  "commands",
5363
5087
  "ods",
5364
- "restart.js"
5088
+ "stop.js"
5365
5089
  ]
5366
5090
  },
5367
- "ods:start": {
5091
+ "sites:list": {
5368
5092
  "aliases": [],
5369
- "args": {
5370
- "sandboxId": {
5371
- "description": "Sandbox ID (UUID)",
5372
- "name": "sandboxId",
5373
- "required": true
5374
- }
5375
- },
5376
- "description": "Start an on-demand sandbox",
5093
+ "args": {},
5094
+ "description": "List sites on a B2C Commerce instance",
5377
5095
  "examples": [
5378
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
5379
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
5096
+ "<%= config.bin %> <%= command.id %>",
5097
+ "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
5098
+ "<%= config.bin %> <%= command.id %> --json"
5380
5099
  ],
5381
5100
  "flags": {
5382
5101
  "json": {
@@ -5541,11 +5260,51 @@
5541
5260
  "multiple": false,
5542
5261
  "type": "option"
5543
5262
  },
5544
- "sandbox-api-host": {
5545
- "description": "ODS API hostname",
5546
- "env": "SFCC_SANDBOX_API_HOST",
5547
- "name": "sandbox-api-host",
5548
- "default": "admin.dx.commercecloud.salesforce.com",
5263
+ "server": {
5264
+ "char": "s",
5265
+ "description": "B2C instance hostname",
5266
+ "env": "SFCC_SERVER",
5267
+ "helpGroup": "INSTANCE",
5268
+ "name": "server",
5269
+ "hasDynamicHelp": false,
5270
+ "multiple": false,
5271
+ "type": "option"
5272
+ },
5273
+ "webdav-server": {
5274
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
5275
+ "env": "SFCC_WEBDAV_SERVER",
5276
+ "helpGroup": "INSTANCE",
5277
+ "name": "webdav-server",
5278
+ "hasDynamicHelp": false,
5279
+ "multiple": false,
5280
+ "type": "option"
5281
+ },
5282
+ "code-version": {
5283
+ "char": "v",
5284
+ "description": "Code version",
5285
+ "env": "SFCC_CODE_VERSION",
5286
+ "helpGroup": "INSTANCE",
5287
+ "name": "code-version",
5288
+ "hasDynamicHelp": false,
5289
+ "multiple": false,
5290
+ "type": "option"
5291
+ },
5292
+ "username": {
5293
+ "char": "u",
5294
+ "description": "Username for Basic Auth (WebDAV)",
5295
+ "env": "SFCC_USERNAME",
5296
+ "helpGroup": "AUTH",
5297
+ "name": "username",
5298
+ "hasDynamicHelp": false,
5299
+ "multiple": false,
5300
+ "type": "option"
5301
+ },
5302
+ "password": {
5303
+ "char": "p",
5304
+ "description": "Password/access key for Basic Auth (WebDAV)",
5305
+ "env": "SFCC_PASSWORD",
5306
+ "helpGroup": "AUTH",
5307
+ "name": "password",
5549
5308
  "hasDynamicHelp": false,
5550
5309
  "multiple": false,
5551
5310
  "type": "option"
@@ -5553,7 +5312,7 @@
5553
5312
  },
5554
5313
  "hasDynamicHelp": false,
5555
5314
  "hiddenAliases": [],
5556
- "id": "ods:start",
5315
+ "id": "sites:list",
5557
5316
  "pluginAlias": "@salesforce/b2c-cli",
5558
5317
  "pluginName": "@salesforce/b2c-cli",
5559
5318
  "pluginType": "core",
@@ -5563,23 +5322,25 @@
5563
5322
  "relativePath": [
5564
5323
  "dist",
5565
5324
  "commands",
5566
- "ods",
5567
- "start.js"
5325
+ "sites",
5326
+ "list.js"
5568
5327
  ]
5569
5328
  },
5570
- "ods:stop": {
5329
+ "webdav:get": {
5571
5330
  "aliases": [],
5572
5331
  "args": {
5573
- "sandboxId": {
5574
- "description": "Sandbox ID (UUID)",
5575
- "name": "sandboxId",
5332
+ "remote": {
5333
+ "description": "Remote file path relative to root",
5334
+ "name": "remote",
5576
5335
  "required": true
5577
5336
  }
5578
5337
  },
5579
- "description": "Stop an on-demand sandbox",
5338
+ "description": "Download a file from WebDAV",
5580
5339
  "examples": [
5581
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789",
5582
- "<%= config.bin %> <%= command.id %> abc12345-1234-1234-1234-abc123456789 --json"
5340
+ "<%= config.bin %> <%= command.id %> src/instance/export.zip",
5341
+ "<%= config.bin %> <%= command.id %> src/instance/export.zip -o ./downloads/export.zip",
5342
+ "<%= config.bin %> <%= command.id %> --root=logs customerror.log",
5343
+ "<%= config.bin %> <%= command.id %> --root=logs customerror.log -o -"
5583
5344
  ],
5584
5345
  "flags": {
5585
5346
  "json": {
@@ -5744,11 +5505,80 @@
5744
5505
  "multiple": false,
5745
5506
  "type": "option"
5746
5507
  },
5747
- "sandbox-api-host": {
5748
- "description": "ODS API hostname",
5749
- "env": "SFCC_SANDBOX_API_HOST",
5750
- "name": "sandbox-api-host",
5751
- "default": "admin.dx.commercecloud.salesforce.com",
5508
+ "server": {
5509
+ "char": "s",
5510
+ "description": "B2C instance hostname",
5511
+ "env": "SFCC_SERVER",
5512
+ "helpGroup": "INSTANCE",
5513
+ "name": "server",
5514
+ "hasDynamicHelp": false,
5515
+ "multiple": false,
5516
+ "type": "option"
5517
+ },
5518
+ "webdav-server": {
5519
+ "description": "Separate hostname for WebDAV (cert. hostname, etc)",
5520
+ "env": "SFCC_WEBDAV_SERVER",
5521
+ "helpGroup": "INSTANCE",
5522
+ "name": "webdav-server",
5523
+ "hasDynamicHelp": false,
5524
+ "multiple": false,
5525
+ "type": "option"
5526
+ },
5527
+ "code-version": {
5528
+ "char": "v",
5529
+ "description": "Code version",
5530
+ "env": "SFCC_CODE_VERSION",
5531
+ "helpGroup": "INSTANCE",
5532
+ "name": "code-version",
5533
+ "hasDynamicHelp": false,
5534
+ "multiple": false,
5535
+ "type": "option"
5536
+ },
5537
+ "username": {
5538
+ "char": "u",
5539
+ "description": "Username for Basic Auth (WebDAV)",
5540
+ "env": "SFCC_USERNAME",
5541
+ "helpGroup": "AUTH",
5542
+ "name": "username",
5543
+ "hasDynamicHelp": false,
5544
+ "multiple": false,
5545
+ "type": "option"
5546
+ },
5547
+ "password": {
5548
+ "char": "p",
5549
+ "description": "Password/access key for Basic Auth (WebDAV)",
5550
+ "env": "SFCC_PASSWORD",
5551
+ "helpGroup": "AUTH",
5552
+ "name": "password",
5553
+ "hasDynamicHelp": false,
5554
+ "multiple": false,
5555
+ "type": "option"
5556
+ },
5557
+ "root": {
5558
+ "char": "r",
5559
+ "description": "WebDAV root directory",
5560
+ "helpGroup": "WEBDAV",
5561
+ "name": "root",
5562
+ "default": "IMPEX",
5563
+ "hasDynamicHelp": false,
5564
+ "multiple": false,
5565
+ "options": [
5566
+ "impex",
5567
+ "temp",
5568
+ "cartridges",
5569
+ "realmdata",
5570
+ "catalogs",
5571
+ "libraries",
5572
+ "static",
5573
+ "logs",
5574
+ "securitylogs"
5575
+ ],
5576
+ "type": "option"
5577
+ },
5578
+ "output": {
5579
+ "char": "o",
5580
+ "description": "Output file path (use - for stdout, defaults to filename in current directory)",
5581
+ "name": "output",
5752
5582
  "hasDynamicHelp": false,
5753
5583
  "multiple": false,
5754
5584
  "type": "option"
@@ -5756,7 +5586,7 @@
5756
5586
  },
5757
5587
  "hasDynamicHelp": false,
5758
5588
  "hiddenAliases": [],
5759
- "id": "ods:stop",
5589
+ "id": "webdav:get",
5760
5590
  "pluginAlias": "@salesforce/b2c-cli",
5761
5591
  "pluginName": "@salesforce/b2c-cli",
5762
5592
  "pluginType": "core",
@@ -5766,18 +5596,25 @@
5766
5596
  "relativePath": [
5767
5597
  "dist",
5768
5598
  "commands",
5769
- "ods",
5770
- "stop.js"
5599
+ "webdav",
5600
+ "get.js"
5771
5601
  ]
5772
5602
  },
5773
- "sites:list": {
5603
+ "webdav:ls": {
5774
5604
  "aliases": [],
5775
- "args": {},
5776
- "description": "List sites on a B2C Commerce instance",
5605
+ "args": {
5606
+ "path": {
5607
+ "default": "",
5608
+ "description": "Path relative to root (defaults to root directory)",
5609
+ "name": "path"
5610
+ }
5611
+ },
5612
+ "description": "List files and directories in a WebDAV location",
5777
5613
  "examples": [
5778
5614
  "<%= config.bin %> <%= command.id %>",
5779
- "<%= config.bin %> <%= command.id %> --server my-sandbox.demandware.net",
5780
- "<%= config.bin %> <%= command.id %> --json"
5615
+ "<%= config.bin %> <%= command.id %> src/instance",
5616
+ "<%= config.bin %> <%= command.id %> --root=cartridges",
5617
+ "<%= config.bin %> <%= command.id %> --root=logs --json"
5781
5618
  ],
5782
5619
  "flags": {
5783
5620
  "json": {
@@ -5990,11 +5827,32 @@
5990
5827
  "hasDynamicHelp": false,
5991
5828
  "multiple": false,
5992
5829
  "type": "option"
5830
+ },
5831
+ "root": {
5832
+ "char": "r",
5833
+ "description": "WebDAV root directory",
5834
+ "helpGroup": "WEBDAV",
5835
+ "name": "root",
5836
+ "default": "IMPEX",
5837
+ "hasDynamicHelp": false,
5838
+ "multiple": false,
5839
+ "options": [
5840
+ "impex",
5841
+ "temp",
5842
+ "cartridges",
5843
+ "realmdata",
5844
+ "catalogs",
5845
+ "libraries",
5846
+ "static",
5847
+ "logs",
5848
+ "securitylogs"
5849
+ ],
5850
+ "type": "option"
5993
5851
  }
5994
5852
  },
5995
5853
  "hasDynamicHelp": false,
5996
5854
  "hiddenAliases": [],
5997
- "id": "sites:list",
5855
+ "id": "webdav:ls",
5998
5856
  "pluginAlias": "@salesforce/b2c-cli",
5999
5857
  "pluginName": "@salesforce/b2c-cli",
6000
5858
  "pluginType": "core",
@@ -6004,25 +5862,24 @@
6004
5862
  "relativePath": [
6005
5863
  "dist",
6006
5864
  "commands",
6007
- "sites",
6008
- "list.js"
5865
+ "webdav",
5866
+ "ls.js"
6009
5867
  ]
6010
5868
  },
6011
- "webdav:get": {
5869
+ "webdav:mkdir": {
6012
5870
  "aliases": [],
6013
5871
  "args": {
6014
- "remote": {
6015
- "description": "Remote file path relative to root",
6016
- "name": "remote",
5872
+ "path": {
5873
+ "description": "Directory path to create (relative to root)",
5874
+ "name": "path",
6017
5875
  "required": true
6018
5876
  }
6019
5877
  },
6020
- "description": "Download a file from WebDAV",
5878
+ "description": "Create a directory on WebDAV",
6021
5879
  "examples": [
6022
- "<%= config.bin %> <%= command.id %> src/instance/export.zip",
6023
- "<%= config.bin %> <%= command.id %> src/instance/export.zip -o ./downloads/export.zip",
6024
- "<%= config.bin %> <%= command.id %> --root=logs customerror.log",
6025
- "<%= config.bin %> <%= command.id %> --root=logs customerror.log -o -"
5880
+ "<%= config.bin %> <%= command.id %> src/instance/my-folder",
5881
+ "<%= config.bin %> <%= command.id %> --root=temp my-temp-dir",
5882
+ "<%= config.bin %> <%= command.id %> --root=cartridges new-cartridge"
6026
5883
  ],
6027
5884
  "flags": {
6028
5885
  "json": {
@@ -6256,19 +6113,11 @@
6256
6113
  "securitylogs"
6257
6114
  ],
6258
6115
  "type": "option"
6259
- },
6260
- "output": {
6261
- "char": "o",
6262
- "description": "Output file path (use - for stdout, defaults to filename in current directory)",
6263
- "name": "output",
6264
- "hasDynamicHelp": false,
6265
- "multiple": false,
6266
- "type": "option"
6267
6116
  }
6268
6117
  },
6269
6118
  "hasDynamicHelp": false,
6270
6119
  "hiddenAliases": [],
6271
- "id": "webdav:get",
6120
+ "id": "webdav:mkdir",
6272
6121
  "pluginAlias": "@salesforce/b2c-cli",
6273
6122
  "pluginName": "@salesforce/b2c-cli",
6274
6123
  "pluginType": "core",
@@ -6279,24 +6128,29 @@
6279
6128
  "dist",
6280
6129
  "commands",
6281
6130
  "webdav",
6282
- "get.js"
6131
+ "mkdir.js"
6283
6132
  ]
6284
6133
  },
6285
- "webdav:ls": {
6134
+ "webdav:put": {
6286
6135
  "aliases": [],
6287
6136
  "args": {
6288
- "path": {
6289
- "default": "",
6290
- "description": "Path relative to root (defaults to root directory)",
6291
- "name": "path"
6137
+ "local": {
6138
+ "description": "Local file path to upload",
6139
+ "name": "local",
6140
+ "required": true
6141
+ },
6142
+ "remote": {
6143
+ "description": "Remote destination (directory or file path). If ending with / or is /, uses source filename.",
6144
+ "name": "remote",
6145
+ "required": true
6292
6146
  }
6293
6147
  },
6294
- "description": "List files and directories in a WebDAV location",
6148
+ "description": "Upload a file to WebDAV",
6295
6149
  "examples": [
6296
- "<%= config.bin %> <%= command.id %>",
6297
- "<%= config.bin %> <%= command.id %> src/instance",
6298
- "<%= config.bin %> <%= command.id %> --root=cartridges",
6299
- "<%= config.bin %> <%= command.id %> --root=logs --json"
6150
+ "<%= config.bin %> <%= command.id %> ./export.zip / # uploads to root as export.zip",
6151
+ "<%= config.bin %> <%= command.id %> ./export.zip src/instance/ # uploads to src/instance/export.zip",
6152
+ "<%= config.bin %> <%= command.id %> ./data.xml src/instance/renamed.xml # uploads with new name",
6153
+ "<%= config.bin %> <%= command.id %> ./file.tar.gz / --root=temp # uploads to Temp/file.tar.gz"
6300
6154
  ],
6301
6155
  "flags": {
6302
6156
  "json": {
@@ -6534,7 +6388,7 @@
6534
6388
  },
6535
6389
  "hasDynamicHelp": false,
6536
6390
  "hiddenAliases": [],
6537
- "id": "webdav:ls",
6391
+ "id": "webdav:put",
6538
6392
  "pluginAlias": "@salesforce/b2c-cli",
6539
6393
  "pluginName": "@salesforce/b2c-cli",
6540
6394
  "pluginType": "core",
@@ -6545,23 +6399,23 @@
6545
6399
  "dist",
6546
6400
  "commands",
6547
6401
  "webdav",
6548
- "ls.js"
6402
+ "put.js"
6549
6403
  ]
6550
6404
  },
6551
- "webdav:mkdir": {
6405
+ "webdav:rm": {
6552
6406
  "aliases": [],
6553
6407
  "args": {
6554
6408
  "path": {
6555
- "description": "Directory path to create (relative to root)",
6409
+ "description": "Path to delete relative to root",
6556
6410
  "name": "path",
6557
6411
  "required": true
6558
6412
  }
6559
6413
  },
6560
- "description": "Create a directory on WebDAV",
6414
+ "description": "Delete a file or directory from WebDAV",
6561
6415
  "examples": [
6562
- "<%= config.bin %> <%= command.id %> src/instance/my-folder",
6563
- "<%= config.bin %> <%= command.id %> --root=temp my-temp-dir",
6564
- "<%= config.bin %> <%= command.id %> --root=cartridges new-cartridge"
6416
+ "<%= config.bin %> <%= command.id %> src/instance/old-export.zip",
6417
+ "<%= config.bin %> <%= command.id %> src/instance/old-export.zip --force",
6418
+ "<%= config.bin %> <%= command.id %> --root=temp my-temp-dir --force"
6565
6419
  ],
6566
6420
  "flags": {
6567
6421
  "json": {
@@ -6795,11 +6649,18 @@
6795
6649
  "securitylogs"
6796
6650
  ],
6797
6651
  "type": "option"
6652
+ },
6653
+ "force": {
6654
+ "char": "f",
6655
+ "description": "Skip confirmation prompt",
6656
+ "name": "force",
6657
+ "allowNo": false,
6658
+ "type": "boolean"
6798
6659
  }
6799
6660
  },
6800
6661
  "hasDynamicHelp": false,
6801
6662
  "hiddenAliases": [],
6802
- "id": "webdav:mkdir",
6663
+ "id": "webdav:rm",
6803
6664
  "pluginAlias": "@salesforce/b2c-cli",
6804
6665
  "pluginName": "@salesforce/b2c-cli",
6805
6666
  "pluginType": "core",
@@ -6810,29 +6671,22 @@
6810
6671
  "dist",
6811
6672
  "commands",
6812
6673
  "webdav",
6813
- "mkdir.js"
6674
+ "rm.js"
6814
6675
  ]
6815
6676
  },
6816
- "webdav:put": {
6677
+ "webdav:unzip": {
6817
6678
  "aliases": [],
6818
6679
  "args": {
6819
- "local": {
6820
- "description": "Local file path to upload",
6821
- "name": "local",
6822
- "required": true
6823
- },
6824
- "remote": {
6825
- "description": "Remote destination (directory or file path). If ending with / or is /, uses source filename.",
6826
- "name": "remote",
6680
+ "path": {
6681
+ "description": "Remote zip file path (relative to root)",
6682
+ "name": "path",
6827
6683
  "required": true
6828
6684
  }
6829
6685
  },
6830
- "description": "Upload a file to WebDAV",
6686
+ "description": "Extract a remote zip archive",
6831
6687
  "examples": [
6832
- "<%= config.bin %> <%= command.id %> ./export.zip / # uploads to root as export.zip",
6833
- "<%= config.bin %> <%= command.id %> ./export.zip src/instance/ # uploads to src/instance/export.zip",
6834
- "<%= config.bin %> <%= command.id %> ./data.xml src/instance/renamed.xml # uploads with new name",
6835
- "<%= config.bin %> <%= command.id %> ./file.tar.gz / --root=temp # uploads to Temp/file.tar.gz"
6688
+ "<%= config.bin %> <%= command.id %> src/instance/export.zip",
6689
+ "<%= config.bin %> <%= command.id %> --root=cartridges my-cartridge.zip"
6836
6690
  ],
6837
6691
  "flags": {
6838
6692
  "json": {
@@ -7070,7 +6924,7 @@
7070
6924
  },
7071
6925
  "hasDynamicHelp": false,
7072
6926
  "hiddenAliases": [],
7073
- "id": "webdav:put",
6927
+ "id": "webdav:unzip",
7074
6928
  "pluginAlias": "@salesforce/b2c-cli",
7075
6929
  "pluginName": "@salesforce/b2c-cli",
7076
6930
  "pluginType": "core",
@@ -7081,23 +6935,22 @@
7081
6935
  "dist",
7082
6936
  "commands",
7083
6937
  "webdav",
7084
- "put.js"
6938
+ "unzip.js"
7085
6939
  ]
7086
6940
  },
7087
- "webdav:rm": {
6941
+ "webdav:zip": {
7088
6942
  "aliases": [],
7089
6943
  "args": {
7090
6944
  "path": {
7091
- "description": "Path to delete relative to root",
6945
+ "description": "Remote path to zip (relative to root)",
7092
6946
  "name": "path",
7093
6947
  "required": true
7094
6948
  }
7095
6949
  },
7096
- "description": "Delete a file or directory from WebDAV",
6950
+ "description": "Create a zip archive of a remote file or directory",
7097
6951
  "examples": [
7098
- "<%= config.bin %> <%= command.id %> src/instance/old-export.zip",
7099
- "<%= config.bin %> <%= command.id %> src/instance/old-export.zip --force",
7100
- "<%= config.bin %> <%= command.id %> --root=temp my-temp-dir --force"
6952
+ "<%= config.bin %> <%= command.id %> src/instance/data",
6953
+ "<%= config.bin %> <%= command.id %> --root=cartridges my-cartridge"
7101
6954
  ],
7102
6955
  "flags": {
7103
6956
  "json": {
@@ -7331,18 +7184,11 @@
7331
7184
  "securitylogs"
7332
7185
  ],
7333
7186
  "type": "option"
7334
- },
7335
- "force": {
7336
- "char": "f",
7337
- "description": "Skip confirmation prompt",
7338
- "name": "force",
7339
- "allowNo": false,
7340
- "type": "boolean"
7341
7187
  }
7342
7188
  },
7343
7189
  "hasDynamicHelp": false,
7344
7190
  "hiddenAliases": [],
7345
- "id": "webdav:rm",
7191
+ "id": "webdav:zip",
7346
7192
  "pluginAlias": "@salesforce/b2c-cli",
7347
7193
  "pluginName": "@salesforce/b2c-cli",
7348
7194
  "pluginType": "core",
@@ -7353,22 +7199,23 @@
7353
7199
  "dist",
7354
7200
  "commands",
7355
7201
  "webdav",
7356
- "rm.js"
7202
+ "zip.js"
7357
7203
  ]
7358
7204
  },
7359
- "webdav:unzip": {
7205
+ "docs:download": {
7360
7206
  "aliases": [],
7361
7207
  "args": {
7362
- "path": {
7363
- "description": "Remote zip file path (relative to root)",
7364
- "name": "path",
7208
+ "output": {
7209
+ "description": "Output directory for extracted documentation",
7210
+ "name": "output",
7365
7211
  "required": true
7366
7212
  }
7367
7213
  },
7368
- "description": "Extract a remote zip archive",
7214
+ "description": "Download Script API documentation from a B2C Commerce instance",
7369
7215
  "examples": [
7370
- "<%= config.bin %> <%= command.id %> src/instance/export.zip",
7371
- "<%= config.bin %> <%= command.id %> --root=cartridges my-cartridge.zip"
7216
+ "<%= config.bin %> <%= command.id %> ./docs",
7217
+ "<%= config.bin %> <%= command.id %> ./docs --keep-archive",
7218
+ "<%= config.bin %> <%= command.id %> --server sandbox.demandware.net ./my-docs"
7372
7219
  ],
7373
7220
  "flags": {
7374
7221
  "json": {
@@ -7582,31 +7429,158 @@
7582
7429
  "multiple": false,
7583
7430
  "type": "option"
7584
7431
  },
7585
- "root": {
7586
- "char": "r",
7587
- "description": "WebDAV root directory",
7588
- "helpGroup": "WEBDAV",
7589
- "name": "root",
7590
- "default": "IMPEX",
7432
+ "keep-archive": {
7433
+ "description": "Keep the downloaded archive file",
7434
+ "name": "keep-archive",
7435
+ "allowNo": false,
7436
+ "type": "boolean"
7437
+ }
7438
+ },
7439
+ "hasDynamicHelp": false,
7440
+ "hiddenAliases": [],
7441
+ "id": "docs:download",
7442
+ "pluginAlias": "@salesforce/b2c-cli",
7443
+ "pluginName": "@salesforce/b2c-cli",
7444
+ "pluginType": "core",
7445
+ "strict": true,
7446
+ "enableJsonFlag": true,
7447
+ "isESM": true,
7448
+ "relativePath": [
7449
+ "dist",
7450
+ "commands",
7451
+ "docs",
7452
+ "download.js"
7453
+ ]
7454
+ },
7455
+ "docs:read": {
7456
+ "aliases": [],
7457
+ "args": {
7458
+ "query": {
7459
+ "description": "Search query for documentation (class name, module path, or partial match)",
7460
+ "name": "query",
7461
+ "required": true
7462
+ }
7463
+ },
7464
+ "description": "Read Script API documentation for a class or module",
7465
+ "examples": [
7466
+ "<%= config.bin %> <%= command.id %> ProductMgr",
7467
+ "<%= config.bin %> <%= command.id %> dw.catalog.ProductMgr",
7468
+ "<%= config.bin %> <%= command.id %> \"dw system Status\"",
7469
+ "<%= config.bin %> <%= command.id %> ProductMgr --raw",
7470
+ "<%= config.bin %> <%= command.id %> ProductMgr --json"
7471
+ ],
7472
+ "flags": {
7473
+ "json": {
7474
+ "description": "Output logs as JSON lines",
7475
+ "helpGroup": "GLOBAL",
7476
+ "name": "json",
7477
+ "allowNo": false,
7478
+ "type": "boolean"
7479
+ },
7480
+ "log-level": {
7481
+ "description": "Set logging verbosity level",
7482
+ "env": "SFCC_LOG_LEVEL",
7483
+ "helpGroup": "GLOBAL",
7484
+ "name": "log-level",
7591
7485
  "hasDynamicHelp": false,
7592
7486
  "multiple": false,
7593
7487
  "options": [
7594
- "impex",
7595
- "temp",
7596
- "cartridges",
7597
- "realmdata",
7598
- "catalogs",
7599
- "libraries",
7600
- "static",
7601
- "logs",
7602
- "securitylogs"
7488
+ "trace",
7489
+ "debug",
7490
+ "info",
7491
+ "warn",
7492
+ "error",
7493
+ "silent"
7603
7494
  ],
7604
7495
  "type": "option"
7496
+ },
7497
+ "debug": {
7498
+ "char": "D",
7499
+ "description": "Enable debug logging (shorthand for --log-level debug)",
7500
+ "env": "SFCC_DEBUG",
7501
+ "helpGroup": "GLOBAL",
7502
+ "name": "debug",
7503
+ "allowNo": false,
7504
+ "type": "boolean"
7505
+ },
7506
+ "lang": {
7507
+ "char": "L",
7508
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
7509
+ "helpGroup": "GLOBAL",
7510
+ "name": "lang",
7511
+ "hasDynamicHelp": false,
7512
+ "multiple": false,
7513
+ "type": "option"
7514
+ },
7515
+ "config": {
7516
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
7517
+ "env": "SFCC_CONFIG",
7518
+ "helpGroup": "GLOBAL",
7519
+ "name": "config",
7520
+ "hasDynamicHelp": false,
7521
+ "multiple": false,
7522
+ "type": "option"
7523
+ },
7524
+ "instance": {
7525
+ "char": "i",
7526
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
7527
+ "env": "SFCC_INSTANCE",
7528
+ "helpGroup": "GLOBAL",
7529
+ "name": "instance",
7530
+ "hasDynamicHelp": false,
7531
+ "multiple": false,
7532
+ "type": "option"
7533
+ },
7534
+ "working-directory": {
7535
+ "description": "Project working directory",
7536
+ "env": "SFCC_WORKING_DIRECTORY",
7537
+ "helpGroup": "GLOBAL",
7538
+ "name": "working-directory",
7539
+ "hasDynamicHelp": false,
7540
+ "multiple": false,
7541
+ "type": "option"
7542
+ },
7543
+ "extra-query": {
7544
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
7545
+ "env": "SFCC_EXTRA_QUERY",
7546
+ "helpGroup": "GLOBAL",
7547
+ "hidden": true,
7548
+ "name": "extra-query",
7549
+ "hasDynamicHelp": false,
7550
+ "multiple": false,
7551
+ "type": "option"
7552
+ },
7553
+ "extra-body": {
7554
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
7555
+ "env": "SFCC_EXTRA_BODY",
7556
+ "helpGroup": "GLOBAL",
7557
+ "hidden": true,
7558
+ "name": "extra-body",
7559
+ "hasDynamicHelp": false,
7560
+ "multiple": false,
7561
+ "type": "option"
7562
+ },
7563
+ "extra-headers": {
7564
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
7565
+ "env": "SFCC_EXTRA_HEADERS",
7566
+ "helpGroup": "GLOBAL",
7567
+ "hidden": true,
7568
+ "name": "extra-headers",
7569
+ "hasDynamicHelp": false,
7570
+ "multiple": false,
7571
+ "type": "option"
7572
+ },
7573
+ "raw": {
7574
+ "char": "r",
7575
+ "description": "Output raw markdown without terminal formatting",
7576
+ "name": "raw",
7577
+ "allowNo": false,
7578
+ "type": "boolean"
7605
7579
  }
7606
7580
  },
7607
7581
  "hasDynamicHelp": false,
7608
7582
  "hiddenAliases": [],
7609
- "id": "webdav:unzip",
7583
+ "id": "docs:read",
7610
7584
  "pluginAlias": "@salesforce/b2c-cli",
7611
7585
  "pluginName": "@salesforce/b2c-cli",
7612
7586
  "pluginType": "core",
@@ -7616,23 +7590,25 @@
7616
7590
  "relativePath": [
7617
7591
  "dist",
7618
7592
  "commands",
7619
- "webdav",
7620
- "unzip.js"
7593
+ "docs",
7594
+ "read.js"
7621
7595
  ]
7622
7596
  },
7623
- "webdav:zip": {
7597
+ "docs:schema": {
7624
7598
  "aliases": [],
7625
7599
  "args": {
7626
- "path": {
7627
- "description": "Remote path to zip (relative to root)",
7628
- "name": "path",
7629
- "required": true
7600
+ "query": {
7601
+ "description": "Schema name or partial match (e.g., \"catalog\", \"order\")",
7602
+ "name": "query",
7603
+ "required": false
7630
7604
  }
7631
7605
  },
7632
- "description": "Create a zip archive of a remote file or directory",
7606
+ "description": "Read an XSD schema file",
7633
7607
  "examples": [
7634
- "<%= config.bin %> <%= command.id %> src/instance/data",
7635
- "<%= config.bin %> <%= command.id %> --root=cartridges my-cartridge"
7608
+ "<%= config.bin %> <%= command.id %> catalog",
7609
+ "<%= config.bin %> <%= command.id %> order",
7610
+ "<%= config.bin %> <%= command.id %> --list",
7611
+ "<%= config.bin %> <%= command.id %> catalog --json"
7636
7612
  ],
7637
7613
  "flags": {
7638
7614
  "json": {
@@ -7735,142 +7711,166 @@
7735
7711
  "multiple": false,
7736
7712
  "type": "option"
7737
7713
  },
7738
- "client-id": {
7739
- "description": "Client ID for OAuth",
7740
- "env": "SFCC_CLIENT_ID",
7741
- "helpGroup": "AUTH",
7742
- "name": "client-id",
7743
- "hasDynamicHelp": false,
7744
- "multiple": false,
7745
- "type": "option"
7714
+ "list": {
7715
+ "char": "l",
7716
+ "description": "List all available schemas",
7717
+ "name": "list",
7718
+ "allowNo": false,
7719
+ "type": "boolean"
7720
+ }
7721
+ },
7722
+ "hasDynamicHelp": false,
7723
+ "hiddenAliases": [],
7724
+ "id": "docs:schema",
7725
+ "pluginAlias": "@salesforce/b2c-cli",
7726
+ "pluginName": "@salesforce/b2c-cli",
7727
+ "pluginType": "core",
7728
+ "strict": true,
7729
+ "enableJsonFlag": true,
7730
+ "isESM": true,
7731
+ "relativePath": [
7732
+ "dist",
7733
+ "commands",
7734
+ "docs",
7735
+ "schema.js"
7736
+ ]
7737
+ },
7738
+ "docs:search": {
7739
+ "aliases": [],
7740
+ "args": {
7741
+ "query": {
7742
+ "description": "Search query (fuzzy match against class/module names)",
7743
+ "name": "query",
7744
+ "required": false
7745
+ }
7746
+ },
7747
+ "description": "Search Script API documentation",
7748
+ "examples": [
7749
+ "<%= config.bin %> <%= command.id %> ProductMgr",
7750
+ "<%= config.bin %> <%= command.id %> \"catalog product\"",
7751
+ "<%= config.bin %> <%= command.id %> status --limit 5",
7752
+ "<%= config.bin %> <%= command.id %> --list"
7753
+ ],
7754
+ "flags": {
7755
+ "json": {
7756
+ "description": "Output logs as JSON lines",
7757
+ "helpGroup": "GLOBAL",
7758
+ "name": "json",
7759
+ "allowNo": false,
7760
+ "type": "boolean"
7746
7761
  },
7747
- "client-secret": {
7748
- "description": "Client Secret for OAuth",
7749
- "env": "SFCC_CLIENT_SECRET",
7750
- "helpGroup": "AUTH",
7751
- "name": "client-secret",
7762
+ "log-level": {
7763
+ "description": "Set logging verbosity level",
7764
+ "env": "SFCC_LOG_LEVEL",
7765
+ "helpGroup": "GLOBAL",
7766
+ "name": "log-level",
7752
7767
  "hasDynamicHelp": false,
7753
7768
  "multiple": false,
7769
+ "options": [
7770
+ "trace",
7771
+ "debug",
7772
+ "info",
7773
+ "warn",
7774
+ "error",
7775
+ "silent"
7776
+ ],
7754
7777
  "type": "option"
7755
7778
  },
7756
- "scope": {
7757
- "description": "OAuth scopes to request (comma-separated)",
7758
- "env": "SFCC_OAUTH_SCOPES",
7759
- "helpGroup": "AUTH",
7760
- "name": "scope",
7761
- "delimiter": ",",
7762
- "hasDynamicHelp": false,
7763
- "multiple": true,
7764
- "type": "option"
7779
+ "debug": {
7780
+ "char": "D",
7781
+ "description": "Enable debug logging (shorthand for --log-level debug)",
7782
+ "env": "SFCC_DEBUG",
7783
+ "helpGroup": "GLOBAL",
7784
+ "name": "debug",
7785
+ "allowNo": false,
7786
+ "type": "boolean"
7765
7787
  },
7766
- "short-code": {
7767
- "description": "SCAPI short code",
7768
- "env": "SFCC_SHORTCODE",
7769
- "helpGroup": "AUTH",
7770
- "name": "short-code",
7788
+ "lang": {
7789
+ "char": "L",
7790
+ "description": "Language for messages (e.g., en, de). Also respects LANGUAGE env var.",
7791
+ "helpGroup": "GLOBAL",
7792
+ "name": "lang",
7771
7793
  "hasDynamicHelp": false,
7772
7794
  "multiple": false,
7773
7795
  "type": "option"
7774
7796
  },
7775
- "auth-methods": {
7776
- "description": "Allowed auth methods in priority order (comma-separated)",
7777
- "env": "SFCC_AUTH_METHODS",
7778
- "helpGroup": "AUTH",
7779
- "name": "auth-methods",
7780
- "delimiter": ",",
7781
- "hasDynamicHelp": false,
7782
- "multiple": true,
7783
- "options": [
7784
- "client-credentials",
7785
- "implicit",
7786
- "basic",
7787
- "api-key"
7788
- ],
7789
- "type": "option"
7790
- },
7791
- "account-manager-host": {
7792
- "description": "Account Manager hostname for OAuth (default: account.demandware.com)",
7793
- "env": "SFCC_ACCOUNT_MANAGER_HOST",
7794
- "helpGroup": "AUTH",
7795
- "name": "account-manager-host",
7797
+ "config": {
7798
+ "description": "Path to config file (in dw.json format; defaults to ./dw.json)",
7799
+ "env": "SFCC_CONFIG",
7800
+ "helpGroup": "GLOBAL",
7801
+ "name": "config",
7796
7802
  "hasDynamicHelp": false,
7797
7803
  "multiple": false,
7798
7804
  "type": "option"
7799
7805
  },
7800
- "server": {
7801
- "char": "s",
7802
- "description": "B2C instance hostname",
7803
- "env": "SFCC_SERVER",
7804
- "helpGroup": "INSTANCE",
7805
- "name": "server",
7806
+ "instance": {
7807
+ "char": "i",
7808
+ "description": "Instance name from configuration file (i.e. dw.json, etc)",
7809
+ "env": "SFCC_INSTANCE",
7810
+ "helpGroup": "GLOBAL",
7811
+ "name": "instance",
7806
7812
  "hasDynamicHelp": false,
7807
7813
  "multiple": false,
7808
7814
  "type": "option"
7809
7815
  },
7810
- "webdav-server": {
7811
- "description": "Separate hostname for WebDAV (cert. hostname, etc)",
7812
- "env": "SFCC_WEBDAV_SERVER",
7813
- "helpGroup": "INSTANCE",
7814
- "name": "webdav-server",
7816
+ "working-directory": {
7817
+ "description": "Project working directory",
7818
+ "env": "SFCC_WORKING_DIRECTORY",
7819
+ "helpGroup": "GLOBAL",
7820
+ "name": "working-directory",
7815
7821
  "hasDynamicHelp": false,
7816
7822
  "multiple": false,
7817
7823
  "type": "option"
7818
7824
  },
7819
- "code-version": {
7820
- "char": "v",
7821
- "description": "Code version",
7822
- "env": "SFCC_CODE_VERSION",
7823
- "helpGroup": "INSTANCE",
7824
- "name": "code-version",
7825
+ "extra-query": {
7826
+ "description": "Extra query parameters as JSON (e.g., '{\"debug\":\"true\"}')",
7827
+ "env": "SFCC_EXTRA_QUERY",
7828
+ "helpGroup": "GLOBAL",
7829
+ "hidden": true,
7830
+ "name": "extra-query",
7825
7831
  "hasDynamicHelp": false,
7826
7832
  "multiple": false,
7827
7833
  "type": "option"
7828
7834
  },
7829
- "username": {
7830
- "char": "u",
7831
- "description": "Username for Basic Auth (WebDAV)",
7832
- "env": "SFCC_USERNAME",
7833
- "helpGroup": "AUTH",
7834
- "name": "username",
7835
+ "extra-body": {
7836
+ "description": "Extra body fields to merge as JSON (e.g., '{\"_internal\":true}')",
7837
+ "env": "SFCC_EXTRA_BODY",
7838
+ "helpGroup": "GLOBAL",
7839
+ "hidden": true,
7840
+ "name": "extra-body",
7835
7841
  "hasDynamicHelp": false,
7836
7842
  "multiple": false,
7837
7843
  "type": "option"
7838
7844
  },
7839
- "password": {
7840
- "char": "p",
7841
- "description": "Password/access key for Basic Auth (WebDAV)",
7842
- "env": "SFCC_PASSWORD",
7843
- "helpGroup": "AUTH",
7844
- "name": "password",
7845
+ "extra-headers": {
7846
+ "description": "Extra HTTP headers as JSON (e.g., '{\"X-Custom-Header\": \"value\"}')",
7847
+ "env": "SFCC_EXTRA_HEADERS",
7848
+ "helpGroup": "GLOBAL",
7849
+ "hidden": true,
7850
+ "name": "extra-headers",
7845
7851
  "hasDynamicHelp": false,
7846
7852
  "multiple": false,
7847
7853
  "type": "option"
7848
7854
  },
7849
- "root": {
7850
- "char": "r",
7851
- "description": "WebDAV root directory",
7852
- "helpGroup": "WEBDAV",
7853
- "name": "root",
7854
- "default": "IMPEX",
7855
+ "limit": {
7856
+ "char": "l",
7857
+ "description": "Maximum number of results to display",
7858
+ "name": "limit",
7859
+ "default": 20,
7855
7860
  "hasDynamicHelp": false,
7856
7861
  "multiple": false,
7857
- "options": [
7858
- "impex",
7859
- "temp",
7860
- "cartridges",
7861
- "realmdata",
7862
- "catalogs",
7863
- "libraries",
7864
- "static",
7865
- "logs",
7866
- "securitylogs"
7867
- ],
7868
7862
  "type": "option"
7863
+ },
7864
+ "list": {
7865
+ "description": "List all available documentation entries",
7866
+ "name": "list",
7867
+ "allowNo": false,
7868
+ "type": "boolean"
7869
7869
  }
7870
7870
  },
7871
7871
  "hasDynamicHelp": false,
7872
7872
  "hiddenAliases": [],
7873
- "id": "webdav:zip",
7873
+ "id": "docs:search",
7874
7874
  "pluginAlias": "@salesforce/b2c-cli",
7875
7875
  "pluginName": "@salesforce/b2c-cli",
7876
7876
  "pluginType": "core",
@@ -7880,8 +7880,8 @@
7880
7880
  "relativePath": [
7881
7881
  "dist",
7882
7882
  "commands",
7883
- "webdav",
7884
- "zip.js"
7883
+ "docs",
7884
+ "search.js"
7885
7885
  ]
7886
7886
  },
7887
7887
  "mrt:env:create": {
@@ -10938,5 +10938,5 @@
10938
10938
  ]
10939
10939
  }
10940
10940
  },
10941
- "version": "0.0.0-nightly.20260119053920"
10941
+ "version": "0.0.0-nightly.20260120023917"
10942
10942
  }