@se-studio/contentful-cms 1.0.91 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +56 -2
  3. package/dist/cli/program.d.ts.map +1 -1
  4. package/dist/cli/program.js +10 -1
  5. package/dist/cli/program.js.map +1 -1
  6. package/dist/commands/asset.d.ts.map +1 -1
  7. package/dist/commands/asset.js +233 -56
  8. package/dist/commands/asset.js.map +1 -1
  9. package/dist/commands/create-from-json.d.ts.map +1 -1
  10. package/dist/commands/create-from-json.js +63 -69
  11. package/dist/commands/create-from-json.js.map +1 -1
  12. package/dist/commands/create-taxonomy-from-json.d.ts +4 -0
  13. package/dist/commands/create-taxonomy-from-json.d.ts.map +1 -0
  14. package/dist/commands/create-taxonomy-from-json.js +79 -0
  15. package/dist/commands/create-taxonomy-from-json.js.map +1 -0
  16. package/dist/commands/create-taxonomy.d.ts +29 -0
  17. package/dist/commands/create-taxonomy.d.ts.map +1 -0
  18. package/dist/commands/create-taxonomy.js +191 -0
  19. package/dist/commands/create-taxonomy.js.map +1 -0
  20. package/dist/commands/create.d.ts.map +1 -1
  21. package/dist/commands/create.js +17 -36
  22. package/dist/commands/create.js.map +1 -1
  23. package/dist/commands/ensure.d.ts +4 -0
  24. package/dist/commands/ensure.d.ts.map +1 -0
  25. package/dist/commands/ensure.js +95 -0
  26. package/dist/commands/ensure.js.map +1 -0
  27. package/dist/commands/help.js +1 -1
  28. package/dist/commands/help.js.map +1 -1
  29. package/dist/commands/index-dump.d.ts +15 -0
  30. package/dist/commands/index-dump.d.ts.map +1 -0
  31. package/dist/commands/index-dump.js +207 -0
  32. package/dist/commands/index-dump.js.map +1 -0
  33. package/dist/commands/index.d.ts +4 -0
  34. package/dist/commands/index.d.ts.map +1 -0
  35. package/dist/commands/index.js +102 -0
  36. package/dist/commands/index.js.map +1 -0
  37. package/dist/commands/list.d.ts.map +1 -1
  38. package/dist/commands/list.js +147 -20
  39. package/dist/commands/list.js.map +1 -1
  40. package/dist/commands/resolve-options.d.ts +20 -0
  41. package/dist/commands/resolve-options.d.ts.map +1 -0
  42. package/dist/commands/resolve-options.js +51 -0
  43. package/dist/commands/resolve-options.js.map +1 -0
  44. package/dist/commands/resolve.d.ts.map +1 -1
  45. package/dist/commands/resolve.js +138 -27
  46. package/dist/commands/resolve.js.map +1 -1
  47. package/dist/commands/skill.d.ts.map +1 -1
  48. package/dist/commands/skill.js +11 -35
  49. package/dist/commands/skill.js.map +1 -1
  50. package/dist/config/load.d.ts.map +1 -1
  51. package/dist/config/load.js +10 -0
  52. package/dist/config/load.js.map +1 -1
  53. package/dist/config/types.d.ts +14 -0
  54. package/dist/config/types.d.ts.map +1 -1
  55. package/dist/contentful/asset-link-from-json.d.ts +17 -0
  56. package/dist/contentful/asset-link-from-json.d.ts.map +1 -0
  57. package/dist/contentful/asset-link-from-json.js +41 -0
  58. package/dist/contentful/asset-link-from-json.js.map +1 -0
  59. package/dist/contentful/assets.d.ts +19 -8
  60. package/dist/contentful/assets.d.ts.map +1 -1
  61. package/dist/contentful/assets.js +82 -31
  62. package/dist/contentful/assets.js.map +1 -1
  63. package/dist/contentful/cda-sync.d.ts +43 -0
  64. package/dist/contentful/cda-sync.d.ts.map +1 -0
  65. package/dist/contentful/cda-sync.js +157 -0
  66. package/dist/contentful/cda-sync.js.map +1 -0
  67. package/dist/contentful/delivery-token.d.ts +17 -0
  68. package/dist/contentful/delivery-token.d.ts.map +1 -0
  69. package/dist/contentful/delivery-token.js +103 -0
  70. package/dist/contentful/delivery-token.js.map +1 -0
  71. package/dist/contentful/entry-fields.d.ts +71 -0
  72. package/dist/contentful/entry-fields.d.ts.map +1 -0
  73. package/dist/contentful/entry-fields.js +341 -0
  74. package/dist/contentful/entry-fields.js.map +1 -0
  75. package/dist/contentful/fetch.d.ts +11 -1
  76. package/dist/contentful/fetch.d.ts.map +1 -1
  77. package/dist/contentful/fetch.js +30 -6
  78. package/dist/contentful/fetch.js.map +1 -1
  79. package/dist/contentful/field-value-from-json.d.ts +24 -0
  80. package/dist/contentful/field-value-from-json.d.ts.map +1 -0
  81. package/dist/contentful/field-value-from-json.js +205 -0
  82. package/dist/contentful/field-value-from-json.js.map +1 -0
  83. package/dist/contentful/list-entry-format.d.ts +18 -0
  84. package/dist/contentful/list-entry-format.d.ts.map +1 -0
  85. package/dist/contentful/list-entry-format.js +45 -0
  86. package/dist/contentful/list-entry-format.js.map +1 -0
  87. package/dist/contentful/media.d.ts +24 -0
  88. package/dist/contentful/media.d.ts.map +1 -0
  89. package/dist/contentful/media.js +70 -0
  90. package/dist/contentful/media.js.map +1 -0
  91. package/dist/contentful/reference-record.d.ts +32 -0
  92. package/dist/contentful/reference-record.d.ts.map +1 -0
  93. package/dist/contentful/reference-record.js +58 -0
  94. package/dist/contentful/reference-record.js.map +1 -0
  95. package/dist/contentful/regex.d.ts +14 -0
  96. package/dist/contentful/regex.d.ts.map +1 -0
  97. package/dist/contentful/regex.js +38 -0
  98. package/dist/contentful/regex.js.map +1 -0
  99. package/dist/contentful/resolve-content-type.d.ts +9 -0
  100. package/dist/contentful/resolve-content-type.d.ts.map +1 -0
  101. package/dist/contentful/resolve-content-type.js +38 -0
  102. package/dist/contentful/resolve-content-type.js.map +1 -0
  103. package/dist/contentful/upload-fetch.d.ts +11 -0
  104. package/dist/contentful/upload-fetch.d.ts.map +1 -0
  105. package/dist/contentful/upload-fetch.js +26 -0
  106. package/dist/contentful/upload-fetch.js.map +1 -0
  107. package/dist/contentful/upload-limits.d.ts +7 -0
  108. package/dist/contentful/upload-limits.d.ts.map +1 -0
  109. package/dist/contentful/upload-limits.js +13 -0
  110. package/dist/contentful/upload-limits.js.map +1 -0
  111. package/dist/generated/hosted-guide.d.ts +1 -1
  112. package/dist/generated/hosted-guide.d.ts.map +1 -1
  113. package/dist/generated/hosted-guide.js +1 -1
  114. package/dist/generated/hosted-guide.js.map +1 -1
  115. package/dist/generated/version.d.ts +1 -1
  116. package/dist/generated/version.d.ts.map +1 -1
  117. package/dist/generated/version.js +1 -1
  118. package/dist/generated/version.js.map +1 -1
  119. package/dist/index/db.d.ts +12 -0
  120. package/dist/index/db.d.ts.map +1 -0
  121. package/dist/index/db.js +29 -0
  122. package/dist/index/db.js.map +1 -0
  123. package/dist/index/errors.d.ts +18 -0
  124. package/dist/index/errors.d.ts.map +1 -0
  125. package/dist/index/errors.js +18 -0
  126. package/dist/index/errors.js.map +1 -0
  127. package/dist/index/mode.d.ts +7 -0
  128. package/dist/index/mode.d.ts.map +1 -0
  129. package/dist/index/mode.js +9 -0
  130. package/dist/index/mode.js.map +1 -0
  131. package/dist/index/paths.d.ts +6 -0
  132. package/dist/index/paths.d.ts.map +1 -0
  133. package/dist/index/paths.js +23 -0
  134. package/dist/index/paths.js.map +1 -0
  135. package/dist/index/query.d.ts +105 -0
  136. package/dist/index/query.d.ts.map +1 -0
  137. package/dist/index/query.js +338 -0
  138. package/dist/index/query.js.map +1 -0
  139. package/dist/index/reference-lookup.d.ts +18 -0
  140. package/dist/index/reference-lookup.d.ts.map +1 -0
  141. package/dist/index/reference-lookup.js +107 -0
  142. package/dist/index/reference-lookup.js.map +1 -0
  143. package/dist/index/require.d.ts +21 -0
  144. package/dist/index/require.d.ts.map +1 -0
  145. package/dist/index/require.js +54 -0
  146. package/dist/index/require.js.map +1 -0
  147. package/dist/index/run-sync.d.ts +18 -0
  148. package/dist/index/run-sync.d.ts.map +1 -0
  149. package/dist/index/run-sync.js +48 -0
  150. package/dist/index/run-sync.js.map +1 -0
  151. package/dist/index/schema.d.ts +6 -0
  152. package/dist/index/schema.d.ts.map +1 -0
  153. package/dist/index/schema.js +48 -0
  154. package/dist/index/schema.js.map +1 -0
  155. package/dist/index/sync-lock.d.ts +8 -0
  156. package/dist/index/sync-lock.d.ts.map +1 -0
  157. package/dist/index/sync-lock.js +85 -0
  158. package/dist/index/sync-lock.js.map +1 -0
  159. package/dist/index/sync.d.ts +42 -0
  160. package/dist/index/sync.d.ts.map +1 -0
  161. package/dist/index/sync.js +235 -0
  162. package/dist/index/sync.js.map +1 -0
  163. package/dist/mcp/guide.d.ts +2 -2
  164. package/dist/mcp/guide.d.ts.map +1 -1
  165. package/dist/mcp/guide.js +3 -0
  166. package/dist/mcp/guide.js.map +1 -1
  167. package/dist/mcp/prompts/onboarding.d.ts.map +1 -1
  168. package/dist/mcp/prompts/onboarding.js +61 -0
  169. package/dist/mcp/prompts/onboarding.js.map +1 -1
  170. package/dist/output/json.d.ts +6 -0
  171. package/dist/output/json.d.ts.map +1 -1
  172. package/dist/output/json.js +21 -0
  173. package/dist/output/json.js.map +1 -1
  174. package/dist/output/terminal-table.d.ts +15 -0
  175. package/dist/output/terminal-table.d.ts.map +1 -0
  176. package/dist/output/terminal-table.js +60 -0
  177. package/dist/output/terminal-table.js.map +1 -0
  178. package/dist/setup/wizard.d.ts.map +1 -1
  179. package/dist/setup/wizard.js +23 -1
  180. package/dist/setup/wizard.js.map +1 -1
  181. package/dist/skills/install.d.ts +13 -0
  182. package/dist/skills/install.d.ts.map +1 -0
  183. package/dist/skills/install.js +37 -0
  184. package/dist/skills/install.js.map +1 -0
  185. package/docs/FUNCTIONAL_SPEC.md +11 -0
  186. package/docs/MEDIA_INDEX_PLAN.md +256 -0
  187. package/docs/SKILLS.md +29 -0
  188. package/docs/help/create-from-json.md +54 -2
  189. package/docs/help/fields-article.md +5 -0
  190. package/docs/help/fields-component.md +11 -1
  191. package/docs/help/fields-page.md +2 -0
  192. package/docs/help/fields-taxonomy.md +154 -0
  193. package/docs/help/index-sync.md +108 -0
  194. package/docs/help/index.md +16 -0
  195. package/docs/help/taxonomy-from-json.md +115 -0
  196. package/docs/mcp/hosted-guide.md +16 -1
  197. package/package.json +9 -4
  198. package/skills/README.md +30 -0
  199. package/skills/core/SKILL.md +873 -0
  200. package/skills/manifest.json +5 -0
  201. package/skills/setup/SKILL.md +129 -0
  202. package/skills/templates/SKILL.md +21 -0
@@ -0,0 +1,873 @@
1
+ ---
2
+ name: contentful-cms-core
3
+ description: "Use cms-edit CLI to read/edit Contentful content (open → snapshot → read → set/rtf → diff → save)."
4
+ ---
5
+
6
+ # Skill: contentful-cms CLI
7
+
8
+ Use this skill when you need to read or edit content in Contentful CMS using the `cms-edit` CLI tool.
9
+
10
+ ## Overview
11
+
12
+ `cms-edit` lets you read and edit Contentful draft content without publishing. It uses a **snapshot → ref → edit → save** workflow:
13
+
14
+ 1. `open` a page to load the content tree into a session
15
+ 2. `snapshot` to see the tree with `@ref` labels
16
+ 3. `read` an entry to inspect its fields
17
+ 4. `set` / `rtf` to modify fields
18
+ 5. `diff` to review changes
19
+ 6. `save` to write drafts to Contentful (NEVER publishes)
20
+
21
+ ## Safety Rules
22
+
23
+ **This tool CANNOT and WILL NOT:**
24
+ - Publish any entry
25
+ - Unpublish any entry
26
+ - Archive or delete published entries
27
+ - Upload new assets
28
+
29
+ All `save` operations create **draft** versions. A human must review and publish in Contentful.
30
+
31
+ ## Prerequisites
32
+
33
+ - `.contentful-cms.json` must exist in the project root (or ancestor directory)
34
+ - A Contentful Management Token with editor-only permissions (no publish rights) must be set as an env var and referenced in the config
35
+
36
+ To get the path to the full README (e.g. for an LLM to read): `cms-edit --docs`
37
+
38
+ ## Core Workflow
39
+
40
+ ### Step 1: Open a page
41
+
42
+ ```bash
43
+ # By slug
44
+ cms-edit open /pricing
45
+
46
+ # By slug with explicit space
47
+ cms-edit --space om1 open /pricing
48
+
49
+ # By Contentful entry ID
50
+ cms-edit open 4xKj2abcDef --id
51
+
52
+ # Home page (slug is 'index')
53
+ cms-edit open /
54
+ ```
55
+
56
+ **Slug `open`:** matches **page**, **article**, **articleType**, and **tag** by `fields.slug` (in that order; first match wins). For **template** or **navigation**, use `open <id> --id` or `cms-edit nav open`.
57
+
58
+ ### Step 2: Read the snapshot
59
+
60
+ ```bash
61
+ cms-edit snapshot
62
+ ```
63
+
64
+ Output:
65
+ ```
66
+ Page: /pricing [4xKj2abc | published] · om1
67
+
68
+ @c0 Component[HeroSimple] "Transparent Pricing" [published]
69
+ @c1 Component[RichText] "How it works" [published]
70
+ @c2 Collection[CardGrid] "Plans" [published]
71
+ @c3 Component[Card] "Starter" [published]
72
+ @c4 Component[Card] "Pro" [draft]
73
+ @c5 Component[CTA] "Get started today" [published]
74
+ ```
75
+
76
+ Use `snapshot -c` for compact output (types only, no labels).
77
+
78
+ **Ref cheat sheet:**
79
+ | Ref | Resolves to |
80
+ |-----|-------------|
81
+ | `@root` | Root entry of the current session (works in any session type) |
82
+ | `@p0` | Root entry — alias for `@root` in **page** and **article** sessions only |
83
+ | `@c0` | Same as `@root` (first entry in depth-first traversal order) |
84
+ | `@c1`, `@c2`, … | Child entries in depth-first traversal order |
85
+
86
+ In **navigation sessions**, use `@root` or `@c0` for the nav root — `@p0` is not valid.
87
+
88
+ ### Step 3: Read entry fields
89
+
90
+ ```bash
91
+ # All fields summary
92
+ cms-edit read @c0
93
+
94
+ # Specific field (shows plain text for scalars, Markdown for rich text)
95
+ cms-edit read @c0 heading
96
+ cms-edit read @c1 body
97
+ ```
98
+
99
+ ### Step 4: Edit fields
100
+
101
+ **Scalar fields** (heading, title, slug, showHeading, etc.):
102
+ ```bash
103
+ cms-edit set @c0 heading "New heading text"
104
+ cms-edit set @c0 showHeading true
105
+ cms-edit set @c0 preHeading "Featured"
106
+ cms-edit set @c0 anchor "hero-section"
107
+ ```
108
+
109
+ **Bulk scalar updates** — set a field on multiple entries in one command:
110
+ ```bash
111
+ cms-edit set @c1:cmsLabel="Hero — School avoidance" @c2:cmsLabel="What is school avoidance?" @c3:cmsLabel="Signs of school avoidance"
112
+ cms-edit set @c1:heading="Title A" @c2:heading="Title B"
113
+ ```
114
+ Each token is `@ref:fieldName=value`. All values are scalar (string, boolean, number). Flags like `--link`, `--links`, `--file` do not apply in multi mode.
115
+
116
+ **Entry link fields** (template, articleType, etc. — value is the linked entry ID):
117
+ ```bash
118
+ cms-edit set @c0 template 3I0HxGKbUd173wIpFCsbVr --link
119
+ ```
120
+
121
+ **Entry link arrays** (`--links` works on any field that is an array of entry links — not just the standard page content fields):
122
+ ```bash
123
+ # Standard page content arrays
124
+ cms-edit set @p0 content @c1,@c2,@c3 --links
125
+ cms-edit set @p0 bottomContent @c4 --links --append
126
+
127
+ # Navigation items array (use @root or @c0 in a nav session)
128
+ cms-edit set @root items <id1>,<id2>,<id3> --links
129
+ ```
130
+
131
+ **Rich text fields** (body, additionalCopy):
132
+ ```bash
133
+ printf '## Why it matters\n\nOur platform helps teams **move faster** with [confidence](https://example.com).\n\n- Instant setup\n- No code required\n- 99.9%% uptime\n' | cms-edit rtf @c1 body --markdown -
134
+ ```
135
+
136
+ Markdown support:
137
+ - `# Heading 1` through `###### Heading 6`
138
+ - `**bold**`, `_italic_`, `***bold italic***`
139
+ - `[link text](https://url)`
140
+ - `- item` for unordered lists, `1. item` for ordered
141
+ - `> blockquote`
142
+ - `` `inline code` ``
143
+ - `---` for horizontal rule
144
+
145
+ For any content with multiple paragraphs or newlines, use `printf` piped to stdin — `\n` in a double-quoted shell string is **not** interpreted as a newline by bash:
146
+
147
+ ```bash
148
+ # Correct — printf interprets \n properly
149
+ printf '## Why it matters\n\nOur platform helps teams **move faster**.\n\n- Instant setup\n- No code required\n' | cms-edit rtf @c1 body --markdown -
150
+
151
+ # Also correct — file input
152
+ cms-edit rtf @c1 body --markdown --file path/to/file.md
153
+ cms-edit rtf @c1 body --markdown - < path/to/file.md
154
+ ```
155
+
156
+ Single-line content (no newlines) can be passed as a quoted argument directly:
157
+
158
+ ```bash
159
+ cms-edit rtf @c1 body --markdown "Simple single-paragraph body text with **bold**."
160
+ ```
161
+
162
+ **Surgical rich text replace** (compliance / quidget tokens — does not re-import the whole field):
163
+
164
+ - Matching is **per Contentful text node** only. If the author split a phrase with bold (e.g. `**Annual fee: **$95`), the string `Annual fee: $95` will **not** match as one piece; use a shorter `--find` or full `rtf … --file`.
165
+ - Quidget strings contain `*`, which Markdown would treat as italic — use **`--replace-plain`**, not `--replace`.
166
+
167
+ ```bash
168
+ # Replace every "$95" in this field with the quidget (e.g. multiple table cells)
169
+ cms-edit rtf replace @c2 body --find '$95' --replace-plain '{*credit_card_id*:*5048345*,*field*:*annual_fees*,*api*:*cc*}' --mode all
170
+
171
+ # Exactly one occurrence required (fails if 0 or 2+)
172
+ cms-edit rtf replace @c2 body --find '75,000 miles after spending $4,000 in the first 3 months' \
173
+ --replace-plain '{*credit_card_id*:*5048345*,*field*:*bonus_miles*,*api*:*cc*}' --mode exactlyOne
174
+ ```
175
+
176
+ ### Step 5: Review changes
177
+
178
+ ```bash
179
+ cms-edit diff
180
+ ```
181
+
182
+ Shows a diff of all modified fields across all changed entries.
183
+
184
+ ### Step 6: Save
185
+
186
+ ```bash
187
+ cms-edit save
188
+ ```
189
+
190
+ Writes all changes to Contentful as **drafts**. The changes are visible in Contentful's web app but NOT live until a human publishes them.
191
+
192
+ After saving, the session is cleared automatically if all changes were saved.
193
+
194
+ ### Discard
195
+
196
+ ```bash
197
+ cms-edit discard
198
+ ```
199
+
200
+ Throws away all unsaved local changes without writing to Contentful.
201
+
202
+ ## Content Field Names
203
+
204
+ Based on the SE Studio content model:
205
+
206
+ ### Component fields
207
+ | Field | Type | Notes |
208
+ |-------|------|-------|
209
+ | `cmsLabel` | string | Internal name (required) |
210
+ | `componentType` | string | Type discriminator (e.g. `HeroSimple`) |
211
+ | `heading` | string | Main heading (only shown when `showHeading` is true) |
212
+ | `showHeading` | boolean | Whether to display the heading |
213
+ | `preHeading` | string | Text above the heading |
214
+ | `postHeading` | string | Text below the heading |
215
+ | `body` | rich text | Main body copy |
216
+ | `additionalCopy` | rich text | Secondary body copy |
217
+ | `anchor` | string | Section anchor ID |
218
+ | `backgroundColour` | string | Background colour name |
219
+ | `textColour` | string | Text colour name |
220
+
221
+ ### Collection fields
222
+ Same as Component plus:
223
+ | Field | Type | Notes |
224
+ |-------|------|-------|
225
+ | `collectionType` | string | Type discriminator (e.g. `CardGrid`) |
226
+
227
+ ### Page fields
228
+ | Field | Type | Notes |
229
+ |-------|------|-------|
230
+ | `slug` | string | URL slug (no leading slash in CMS) |
231
+ | `title` | string | SEO/display title |
232
+ | `description` | string | Meta description |
233
+ | `indexed` | boolean | Whether to index in search engines |
234
+
235
+ ## Order of operations: article + CTA
236
+
237
+ When adding body content and a CTA (e.g. PDF download) to an article:
238
+
239
+ 1. `cms-edit open <article-slug>` (or `open <id> --id`)
240
+ 2. Set body: `cms-edit rtf @<ref> body --markdown "..."` or `--markdown --file path/to.md`. If you need to add a body component first, use `add` then `rtf`.
241
+ 3. `cms-edit add CTA --target bottomContent`
242
+ 4. Set CTA links: use `--type external --label "Download PDF" --href <url>` for an external PDF URL, or `--type download --label "Download PDF" --asset-id <asset-id>` for a Contentful asset (get the ID from `cms-edit asset search "..."` or `asset info <id>`).
243
+ 5. `cms-edit save`
244
+
245
+ ## Structure Commands
246
+
247
+ ### Add a new component
248
+
249
+ ```bash
250
+ # Add at the end of page content
251
+ cms-edit add HeroSimple
252
+
253
+ # Add to article/page bottomContent (when session is an article or page)
254
+ cms-edit add CTA --target bottomContent
255
+
256
+ # Add after a specific component
257
+ cms-edit add HeroSimple --after @c1
258
+
259
+ # Add inside a collection (--parent derives target field from the parent's content type)
260
+ # collection parent → uses 'contents'; page/article parent → uses 'content' by default
261
+ cms-edit add Card --parent @c2
262
+ cms-edit add Hero --parent @c0 --target content # explicit target when parent is a page
263
+
264
+ # Add an explicit collection type
265
+ cms-edit add CardGrid --content-type collection
266
+
267
+ # Link an EXISTING entry instead of creating a new one (e.g. a shared CTA used on every page)
268
+ cms-edit add CTA --content-type component --existing-id 4xKj2abcDef
269
+ ```
270
+
271
+ Discover available types first:
272
+ ```bash
273
+ cms-edit types component
274
+ cms-edit types collection
275
+ ```
276
+
277
+ ### Remove a component
278
+
279
+ ```bash
280
+ cms-edit remove @c3
281
+ ```
282
+
283
+ If the entry is a draft and unreferenced elsewhere, it will be deleted on save. If it's published, it's unlinked only.
284
+
285
+ ### Move/reorder
286
+
287
+ ```bash
288
+ # Move @c3 to after @c1
289
+ cms-edit move @c3 --after @c1
290
+
291
+ # Move to before @c1
292
+ cms-edit move @c3 --before @c1
293
+
294
+ # Move to first position
295
+ cms-edit move @c3
296
+ ```
297
+
298
+ ## Links (CTAs)
299
+
300
+ Put the ref **after the subcommand** (e.g. `links add @c5`). The `links add` command creates the link entry and attaches it to the CTA in one step.
301
+
302
+ - **External:** `--type external --label "..." --href <url>` (required: `--href`)
303
+ - **Internal:** use `--slug /page` to look up by slug, or `--id <entry-id>` to reference by Contentful entry ID (required: `--slug` or `--id`)
304
+ - **Download:** `--type download --label "..." --asset-id <asset-id>` (required: `--asset-id`; get the ID from `asset search` or `asset info`)
305
+
306
+ ```bash
307
+ # List current links
308
+ cms-edit links list @c5
309
+
310
+ # Add an external link
311
+ cms-edit links add @c5 --type external --label "Learn more" --href https://example.com
312
+
313
+ # Add an external PDF CTA (URL to the file)
314
+ cms-edit links add @c5 --type external --label "Download PDF" --href "https://www.example.com/whitepaper.pdf"
315
+
316
+ # Add an internal link by slug
317
+ cms-edit links add @c5 --type internal --label "Pricing" --slug /pricing
318
+
319
+ # Add an internal link by entry ID
320
+ cms-edit links add @c5 --type internal --label "About" --id 4xKj2abcDef
321
+
322
+ # Add a download link (Contentful asset)
323
+ cms-edit links add @c5 --type download --label "Download PDF" --asset-id 5xKj2abcDef
324
+
325
+ # Remove link at index 1
326
+ cms-edit links remove @c5 1
327
+
328
+ # Move link from index 2 to index 0
329
+ cms-edit links move @c5 2 0
330
+ ```
331
+
332
+ You can also bulk-replace the `links` array on a component using `set --links`:
333
+
334
+ ```bash
335
+ # Replace the entire links array with specific IDs
336
+ cms-edit set @c5 links linkId1,linkId2,linkId3 --links
337
+
338
+ # Append a link entry ID to the existing array
339
+ cms-edit set @c5 links linkId4 --links --append
340
+ ```
341
+
342
+ ## Assets
343
+
344
+ **Content index:** Run `cms-edit index sync` once per space before asset search, media-by-filename list, asset audit, or `--if-exists-by-filename`. The same sync also indexes **templates**, **articleType**, **tagType**, and **tag** for fast `list --type` and taxonomy `--if-not-exists`. Default sync uses the **Preview API** (draft content). See `cms-edit help index-sync`.
345
+
346
+ ```bash
347
+ cms-edit index sync
348
+ cms-edit index status
349
+ cms-edit list --type template
350
+ cms-edit resolve --type tagType --slug topic
351
+
352
+ # Published-only index (optional)
353
+ cms-edit index sync --published
354
+
355
+ # Search for an asset by title (requires index)
356
+ cms-edit asset search "hero background"
357
+
358
+ # Search by fileName
359
+ cms-edit asset search --filename istockphoto-123.jpg
360
+ cms-edit asset search --filename-match 'istockphoto-.*'
361
+
362
+ # Upload from local file, URL, or base64
363
+ cms-edit asset upload ./poster.jpg --title "Poster"
364
+ cms-edit asset upload --url https://example.com/image.jpg --if-exists-by-filename
365
+ cms-edit asset upload --base64 "$B64" --mime image/png --file-name poster.png
366
+
367
+ # Upload and create a Media wrapper in one step
368
+ cms-edit asset upload ./figure.png --with-media --media-name "Figure 1" --media-position Middle
369
+
370
+ # Get asset details
371
+ cms-edit asset info 5xKj2abcDef
372
+
373
+ # Set a visual field
374
+ cms-edit asset set @c0 visual 5xKj2abcDef
375
+ ```
376
+
377
+ JSON output for upload (`CMS_EDIT_JSON=1`): `{ ok, id, fileName, url, mediaId?, mediaIds? }`. Max upload size is **10MB** per file.
378
+
379
+ **Idempotent upload:** `--if-exists-by-filename` is check-then-create. Do not upload the same `fileName` in parallel — serialize per fileName or re-run to converge.
380
+
381
+ ## Navigation
382
+
383
+ ```bash
384
+ # Open a navigation entry
385
+ cms-edit nav open main-navigation
386
+
387
+ # Add a new item
388
+ cms-edit nav add --label "Pricing" --slug /pricing
389
+ cms-edit nav add --label "Docs" --href https://docs.example.com --after @c1
390
+
391
+ # Link an existing NavigationItem (share items across navigations)
392
+ cms-edit nav add --existing-id <navigationItem-entry-id>
393
+
394
+ # Clone a navigation (duplicates all items)
395
+ cms-edit nav clone <source-nav-id>
396
+ cms-edit nav clone <source-nav-id> --label "LP Nav" --slug lp-nav
397
+ ```
398
+
399
+ ## Create New Entries
400
+
401
+ ```bash
402
+ # Create a new page (session opens on the new entry)
403
+ # All flags after --title are optional
404
+ cms-edit create page --slug /about-us --title "About Us" --description "Learn about our team"
405
+ cms-edit create page --slug /about-us --title "About Us" \
406
+ --template-id <template-entry-id> \
407
+ --featured-image <asset-id> \
408
+ --indexed \
409
+ --cms-label "About Us (internal)"
410
+
411
+ # Create a new article (requires articleType entry ID)
412
+ cms-edit create article --slug /blog/my-post --title "My Post" --article-type-id 3abcDef456
413
+
414
+ # Create taxonomy entries (draft only)
415
+ cms-edit create tag-type --slug conference-venue --name "Conference Venue"
416
+ cms-edit create article-type --slug resources/publications --name "Publications"
417
+ cms-edit create tag --slug poster-presentation --name "Poster Presentation" --tag-type presentation-type
418
+
419
+ # Full fields via JSON
420
+ cms-edit create tag --json-file tag.json --tag-type presentation-type --if-not-exists
421
+
422
+ # Batch bootstrap
423
+ cms-edit create taxonomy-from-json --file taxonomy.json --if-not-exists
424
+
425
+ # Idempotent single-entry creates
426
+ cms-edit ensure tag-type --slug conference-venue --name "Conference Venue"
427
+ cms-edit ensure tag --slug asco-2025 --name "ASCO 2025" --tag-type conference-venue
428
+ ```
429
+
430
+ See `cms-edit help fields-taxonomy` and `cms-edit help taxonomy-from-json` for field reference and batch schema.
431
+
432
+ **Idempotent taxonomy:** `--if-not-exists` / `ensure` are check-then-create — safe for sequential imports, not for parallel creates on the same slug.
433
+
434
+ ```bash
435
+ # Resolve taxonomy IDs without a session
436
+ cms-edit resolve --type tag-type --slug presentation-type
437
+ ```
438
+
439
+ `resolve --type` accepts `page`, `article`, `articleType`, `tagType`, `tag` (kebab aliases such as `tag-type`).
440
+
441
+ ## Search and Discovery
442
+
443
+ ```bash
444
+ # Search entries full-text (searches all content types by default)
445
+ cms-edit search "pricing page"
446
+ cms-edit search "hero" --type component
447
+
448
+ # List valid type values
449
+ cms-edit types component
450
+ cms-edit types collection
451
+
452
+ # List entries with filters
453
+ cms-edit list --type article --has-download # articles with a download asset
454
+ cms-edit list --type article --slug my-article # article with a specific slug
455
+ cms-edit list --type article --has-field tags # articles where tags field is non-empty
456
+
457
+ # Resolve any entry or asset by ID (no open session required)
458
+ cms-edit resolve 4xKj2abcDefGhijK # entry: shows type, title, slug, status
459
+ cms-edit resolve 7pQrStuvWxyzAbc # asset: shows title, fileName, URL
460
+ cms-edit resolve --type tagType --slug presentation-type
461
+ cms-edit resolve --type tag --slug asco-2025
462
+ cms-edit resolve <id> --json # full Contentful object
463
+
464
+ # Find Media entries by asset
465
+ cms-edit list --type media --asset-id 7pQrStuvWxyzAbc
466
+ cms-edit list --type media --asset-filename istockphoto-123.jpg
467
+ cms-edit list --type media --asset-filename-match 'istockphoto-.*'
468
+ ```
469
+
470
+ To resolve a **tag entry ID** to its slug or label (e.g. for constructing article URLs such as `/resources/publications/<tag>/<slug>`):
471
+
472
+ ```bash
473
+ cms-edit resolve <tag-entry-id>
474
+ # Output includes: content type, title/slug, status
475
+ # Use the slug field value to build the URL path segment
476
+ ```
477
+
478
+ ## Multi-space
479
+
480
+ ```bash
481
+ # Specify space explicitly
482
+ cms-edit --space brightline open /home
483
+ cms-edit --space om1 open /pricing
484
+ ```
485
+
486
+ Or set `CMS_EDIT_SPACE=om1` environment variable.
487
+
488
+ ## Complete Example: Update a Hero Section
489
+
490
+ ```bash
491
+ # 1. Open the page
492
+ cms-edit open /about-us
493
+
494
+ # 2. Find the hero component
495
+ cms-edit snapshot
496
+
497
+ # 3. Read it to understand current state
498
+ cms-edit read @c0
499
+
500
+ # 4. Update the heading
501
+ cms-edit set @c0 heading "We build for the future"
502
+
503
+ # 5. Update the body copy (use printf for multiline content)
504
+ printf '## Our mission\n\nWe help companies **ship faster** and _smarter_.\n\n- Founded in 2018\n- 500+ clients\n- [Join us](/careers)\n' | cms-edit rtf @c0 body --markdown -
505
+
506
+ # 6. Review
507
+ cms-edit diff
508
+
509
+ # 7. Save as draft
510
+ cms-edit save
511
+ # → "Saved 1 entry as draft. A human must publish for changes to go live."
512
+ ```
513
+
514
+ ## Common Patterns
515
+
516
+ ### Update an existing article
517
+ ```bash
518
+ cms-edit open /blog/old-title --id # or by slug
519
+ cms-edit set @p0 title "New Article Title" # @p0 works in article sessions too
520
+ cms-edit set @p0 slug new-article-slug
521
+ cms-edit set @p0 description "Updated description"
522
+ cms-edit save
523
+ ```
524
+
525
+ ### Add a new section to a page
526
+ ```bash
527
+ cms-edit open /products
528
+ cms-edit types component # discover what's available
529
+ cms-edit add CTA --after @c3
530
+ cms-edit set @c4 heading "Ready to get started?"
531
+ cms-edit rtf @c4 body --markdown "Join thousands of teams who trust us."
532
+ cms-edit links add @c4 --type external --label "Start free trial" --href https://app.example.com
533
+ cms-edit save
534
+ ```
535
+
536
+ ### Reorder page sections
537
+ ```bash
538
+ cms-edit open /home
539
+ cms-edit snapshot # see current order
540
+ cms-edit move @c3 --after @c1 # move section 3 to position 2
541
+ cms-edit save
542
+ ```
543
+
544
+ ## Screenshots
545
+
546
+ The `screenshot` command captures a PNG of a component, collection, external component, person, or page using [agent-browser](https://github.com/vercel-labs/agent-browser).
547
+
548
+ **Prerequisites:** `npm install -g agent-browser && agent-browser install`. For `@ref` and `--json-file`, the app must be running at `devBaseUrl`.
549
+
550
+ **Config:** Add `devBaseUrl` to the space in `.contentful-cms.json` so the CLI knows where your dev server runs:
551
+ ```json
552
+ {
553
+ "spaces": {
554
+ "om1": {
555
+ "devBaseUrl": "http://localhost:3013"
556
+ }
557
+ }
558
+ }
559
+ ```
560
+ If omitted, defaults to `http://localhost:3000` with a warning.
561
+
562
+ ### From session ref (full-fidelity)
563
+
564
+ `cms-edit screenshot @c0` uses the app's convert API and `/cms/preview/render-json` so **all** entry types render with real converted data: component, collection, externalComponent, person. No separate "mock vs live" for refs.
565
+
566
+ ```bash
567
+ # Any entry type (component, collection, externalComponent, person)
568
+ cms-edit screenshot @c0
569
+
570
+ # Full-page capture (auto-applied for component/collection)
571
+ cms-edit screenshot @c0 --full
572
+
573
+ # Just print URL
574
+ cms-edit screenshot @c0 --url-only
575
+ ```
576
+
577
+ ### From JSON file (no Contentful)
578
+
579
+ Screenshot an IBase* JSON file (e.g. exported from `cms-edit read @c0 --json` or a fixture). App must be running.
580
+
581
+ ```bash
582
+ cms-edit screenshot --json-file path/to/component.json
583
+ ```
584
+
585
+ ### By type (showcase mock, no session)
586
+
587
+ Uses `/cms/showcase/render` with mock data. Fast, no preview token.
588
+
589
+ ```bash
590
+ cms-edit screenshot --component HeroSimple
591
+ cms-edit screenshot --collection CardGrid
592
+ cms-edit screenshot @c0 --embedded --full # when using ref with showcase-style capture
593
+ ```
594
+
595
+ ### Page screenshots
596
+
597
+ ```bash
598
+ # Current open page (uses session root slug)
599
+ cms-edit screenshot
600
+
601
+ # Explicit page slug
602
+ cms-edit screenshot /pricing
603
+ cms-edit screenshot /about-us --full
604
+ ```
605
+
606
+ ### Options
607
+
608
+ | Flag | Description |
609
+ |------|-------------|
610
+ | `--json-file <path>` | Read IBase* JSON from file and screenshot via render-json (no Contentful) |
611
+ | `--live` | Legacy: use `/cms/preview/render?id=...` for ref (optional; @ref is already full-fidelity) |
612
+ | `--out <path>` | Output file path (default: `./screenshot-<type>-<timestamp>.png`) |
613
+ | `--full` | Full-page capture (passed to `agent-browser screenshot --full`) |
614
+ | `--embedded` | Append `&embedded=true` to showcase URL (suppresses IframeHeightReporter) |
615
+ | `--wait <ms>` | Wait milliseconds after page load before capturing (default: 500) |
616
+ | `--url-only` | Print URL only, do not invoke agent-browser |
617
+ | `--json` | Output `{ ok, url, file }` as JSON |
618
+
619
+ ### Visual diffing
620
+
621
+ Use `agent-browser diff screenshot` to compare before/after a content change:
622
+
623
+ ```bash
624
+ # 1. Capture baseline before editing
625
+ cms-edit screenshot @c0 --out before.png
626
+
627
+ # 2. Edit content
628
+ cms-edit set @c0 heading "New heading"
629
+ cms-edit save
630
+
631
+ # 3. Capture after
632
+ cms-edit screenshot @c0 --out after.png
633
+
634
+ # 4. Diff
635
+ agent-browser diff screenshot --baseline before.png after.png
636
+ ```
637
+
638
+ ## Revert
639
+
640
+ Field-level undo — restore fields to their original values from when the session was opened.
641
+
642
+ ```bash
643
+ cms-edit revert @c0 heading # Revert a single field to its original value
644
+ cms-edit revert @c0 # Revert all fields on an entry
645
+ cms-edit revert --all # Revert all modified entries (session stays open)
646
+ ```
647
+
648
+ Note: Entries created via `add` cannot be reverted — use `remove` instead.
649
+
650
+ ## Health Check
651
+
652
+ Validate config and connectivity before running a workflow.
653
+
654
+ ```bash
655
+ cms-edit health # Check config file, space config, Contentful connectivity, agent-browser
656
+ ```
657
+
658
+ ## Schema Inspection
659
+
660
+ Inspect field definitions for a content type. Prefer this over `cms-edit types <ct>` when you need full field info.
661
+
662
+ ```bash
663
+ cms-edit schema component # Show all fields, types, enum values, link targets
664
+ cms-edit schema component --json # Full JSON output
665
+ ```
666
+
667
+ ## Sitemap
668
+
669
+ Browse all pages in the space.
670
+
671
+ ```bash
672
+ cms-edit sitemap # All pages, sorted by slug
673
+ cms-edit sitemap --prefix /blog # Filter by slug prefix
674
+ cms-edit sitemap --status draft # Draft pages only
675
+ cms-edit sitemap --sort updated # Most recently updated first
676
+ cms-edit sitemap --tree # Tree rendering
677
+ cms-edit sitemap --include page,article # Include articles too
678
+ ```
679
+
680
+ ## Peek
681
+
682
+ Inspect a page without affecting your active session.
683
+
684
+ ```bash
685
+ cms-edit peek /pricing # Show snapshot of /pricing; your active session is unchanged
686
+ cms-edit peek <id> --id # Look up by entry ID
687
+ ```
688
+
689
+ ## Batch Operations (run)
690
+
691
+ Run a sequence of operations from a JSON file or stdin.
692
+
693
+ ```bash
694
+ cms-edit run --file ops.json # Run batch ops from file
695
+ echo '[...]' | cms-edit run # Pipe from stdin
696
+ cms-edit run --file ops.json --dry-run # Validate without saving
697
+ ```
698
+
699
+ Supported ops: `open`, `set`, `rtf`, `rtf-replace`, `save`, `add`, `links-add`.
700
+
701
+ | Op | args | opts |
702
+ |----|------|------|
703
+ | `open` | `["/slug"]` | — |
704
+ | `set` | `[ref, field, value]` | — |
705
+ | `rtf` | `[ref, field, markdown]` | — |
706
+ | `rtf-replace` | `[ref, field]` | `{ find, replacePlain?, mode? }` |
707
+ | `save` | — | — |
708
+ | `add` | `[type, contentType]` | `{ after?, parent?, target?, existingId? }` |
709
+ | `links-add` | `[ref]` | `{ type, label, href?, slug?, id?, assetId? }` |
710
+
711
+ The `add` op returns the new `@ref` in the step message; subsequent ops can reference it.
712
+
713
+ Example `ops.json` — update an existing page with a new CTA that has two buttons:
714
+ ```json
715
+ [
716
+ { "cmd": "open", "args": ["/pricing"] },
717
+ { "cmd": "add", "args": ["CTA", "component"], "opts": { "target": "bottomContent" } },
718
+ { "cmd": "set", "args": ["@c5", "heading", "Ready to get started?"] },
719
+ { "cmd": "links-add", "args": ["@c5"], "opts": { "type": "external", "label": "Start free trial", "href": "https://app.example.com" } },
720
+ { "cmd": "links-add", "args": ["@c5"], "opts": { "type": "internal", "label": "Learn more", "slug": "/about" } },
721
+ { "cmd": "save" }
722
+ ]
723
+ ```
724
+
725
+ ## Create Page or Article from JSON
726
+
727
+ Create a complete page or article — including all components, fields, and CTA links — from a single declarative JSON file. This is the recommended approach for creating multiple pages or articles in bulk.
728
+
729
+ ```bash
730
+ cms-edit create from-json --file page.json # Create from file
731
+ cms-edit create from-json --file page.json --dry-run # Preview without writing
732
+ cat page.json | cms-edit create from-json # Pipe from stdin
733
+ ```
734
+
735
+ **Page JSON schema:**
736
+
737
+ ```json
738
+ {
739
+ "type": "page",
740
+ "slug": "/parent-coaching/digital-life-safety/cyberbullying",
741
+ "title": "Cyberbullying",
742
+ "description": "Optional meta description (SEO)",
743
+ "templateId": "contentful-template-entry-id",
744
+ "indexed": true,
745
+ "components": [
746
+ {
747
+ "contentType": "component",
748
+ "type": "HeroSimple",
749
+ "cmsLabel": "Hero — Protecting Your Child from Cyberbullying",
750
+ "target": "content",
751
+ "fields": {
752
+ "heading": "Protecting Your Child from Cyberbullying",
753
+ "body": "## Why it matters\n\nContent here with **bold** and [links](https://example.com).",
754
+ "backgroundColour": "Yellow"
755
+ },
756
+ "links": [
757
+ { "type": "external", "label": "Download Guide", "href": "https://example.com/guide.pdf" },
758
+ { "type": "internal", "label": "Learn More", "slug": "/resources" }
759
+ ]
760
+ },
761
+ {
762
+ "contentType": "collection",
763
+ "type": "CardGrid",
764
+ "cmsLabel": "Related topics grid",
765
+ "fields": { "heading": "Related topics" },
766
+ "items": [
767
+ {
768
+ "contentType": "component",
769
+ "type": "Card",
770
+ "cmsLabel": "Card — Screen Time",
771
+ "fields": { "heading": "Screen Time" }
772
+ },
773
+ {
774
+ "existingId": "abc123def456",
775
+ "comment": "Reuse existing 'Emotional Regulation' card"
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "existingId": "xyz789ghi012",
781
+ "comment": "Shared 'Join BLK Now' CTA reused on every page"
782
+ }
783
+ ]
784
+ }
785
+ ```
786
+
787
+ **Article JSON schema:**
788
+
789
+ ```json
790
+ {
791
+ "type": "article",
792
+ "slug": "/resources/publications/cyberbullying/new-research-2025",
793
+ "title": "New Research on Cyberbullying 2025",
794
+ "description": "Key findings from the 2025 cyberbullying study.",
795
+ "articleTypeId": "3abcDef456ghi",
796
+ "date": "2025-04-14",
797
+ "components": [
798
+ {
799
+ "contentType": "component",
800
+ "type": "RichText",
801
+ "fields": {
802
+ "body": "## Introduction\n\nNew research shows..."
803
+ }
804
+ },
805
+ {
806
+ "contentType": "component",
807
+ "type": "CTA",
808
+ "target": "bottomContent",
809
+ "links": [
810
+ { "type": "external", "label": "Download Full Report", "href": "https://example.com/report.pdf" }
811
+ ]
812
+ }
813
+ ]
814
+ }
815
+ ```
816
+
817
+ - `type` defaults to `"page"`. Set `"type": "article"` (or include `articleTypeId`) for articles.
818
+ - `articleTypeId` is required for articles. Find valid IDs with `cms-edit list --type articleType`.
819
+ - `date` defaults to today (YYYY-MM-DD) if omitted.
820
+
821
+ **Key points:**
822
+ - Any component entry in `components` or `items` may use `{ existingId }` to link an existing entry instead of creating a new one.
823
+ - The same applies to `links` entries — use `{ existingId }` to attach an existing link entry.
824
+ - `cmsLabel` sets the human-readable label shown in Contentful's entry list. Defaults to `type` or `contentType` if omitted. **Always set `cmsLabel` on components when a page has multiple instances of the same type** (e.g. three CTAs) — editors need to distinguish them.
825
+ - String `fields` values become Rich Text when they auto-detect as Markdown (same heuristic), HTML (tag-like), or Rich Text JSON (`nodeType: document`). Otherwise strings stay as-is — use `{ "value": "…", "format": "text"|"markdown"|"html"|"json" }` or `cms-edit rtf` with `--text|--markdown|--html|--rtf-json`.
826
+ - `target` sets which content array to use: `topContent`, `content` (default), or `bottomContent`.
827
+ - Slugs must not have a trailing slash — `from-json` strips it with a warning, but avoid it in source JSON.
828
+ - All entries are created as **drafts**. A human must publish in Contentful.
829
+ - `--dry-run` prints the full plan without writing anything.
830
+
831
+ ## Find Existing Entries (for existingId)
832
+
833
+ When building page JSON that references existing entries, find their Contentful IDs first:
834
+
835
+ ```bash
836
+ # Search for a shared component by name
837
+ cms-edit search "join blk now" --type component --json
838
+ # → output includes "id" field — use this as existingId in your page JSON
839
+
840
+ # Browse all components of a specific type
841
+ cms-edit list --type component --filter 'fields.componentType=CTA'
842
+
843
+ # Confirm an entry before referencing it
844
+ cms-edit resolve 4xKj2abcDef
845
+ ```
846
+
847
+ ## Inventory & Status
848
+
849
+ Use `sitemap` to see all pages in a space with their publication status:
850
+
851
+ ```bash
852
+ cms-edit sitemap # All pages
853
+ cms-edit sitemap --prefix /parent-coaching # Filter by slug prefix
854
+ cms-edit sitemap --status draft # Draft pages only
855
+ cms-edit sitemap --sort updated # Most recently updated first
856
+ cms-edit sitemap --tree # Tree view
857
+ cms-edit sitemap --include page,article # Include articles
858
+ ```
859
+
860
+ **Note on bulk publish:** The tool cannot publish entries — all saves create drafts only. This is intentional. Review and publish drafts from the Contentful web app.
861
+
862
+ ## Concurrent Sessions
863
+
864
+ Use `--session <name>` or `CONTENTFUL_CMS_SESSION=<name>` to isolate parallel workflows.
865
+
866
+ ```bash
867
+ cms-edit --session agent-1 open /pricing
868
+ cms-edit --session agent-2 open /blog
869
+ ```
870
+
871
+ ## Related skills
872
+
873
+ For templates see the **templates** skill; for navigation see the **navigation** skill; for rich text and embeds see the **rich-text** skill; for screenshots see the **screenshots** skill.