You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: example libraries config in content commands
Add a concrete example of the libraries config (mixed shared + site
entries) under b2c content export, and a corresponding inferred-flag
example under b2c content list, so the new behavior is visible in the
CLI command docs and not just the configuration guide.
# With a libraries config entry (see below) marking "homepage" as site-private,
107
+
# --site-library is inferred automatically:
108
+
b2c content export homepage --library homepage
109
+
```
110
+
111
+
### Configuring multiple libraries
112
+
113
+
Listing libraries under `b2c.libraries` in `package.json` (or `libraries` in `dw.json`) lets the CLI pick a default library and infer `--site-library` per entry. Bare strings are shared libraries; `{id, siteLibrary: true}` marks a site-private library. Both forms can be mixed:
114
+
115
+
```json
116
+
{
117
+
"b2c": {
118
+
"libraries": [
119
+
"RefArch",
120
+
{ "id": "homepage", "siteLibrary": true }
121
+
]
122
+
}
123
+
}
124
+
```
125
+
126
+
With this config:
127
+
128
+
```bash
129
+
# Uses RefArch (first entry) as the default library
130
+
b2c content export hero-banner
131
+
132
+
# --site-library is inferred from the matching entry
0 commit comments