@se-studio/contentful-cms 2.4.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/HOSTED.md +2 -2
  3. package/INSTALL.md +14 -136
  4. package/README.md +16 -40
  5. package/dist/bin/contentful-cms.js +2 -12
  6. package/dist/bin/contentful-cms.js.map +1 -1
  7. package/dist/cli/program.d.ts.map +1 -1
  8. package/dist/cli/program.js +10 -8
  9. package/dist/cli/program.js.map +1 -1
  10. package/dist/commands/article-tags-from-json.d.ts +4 -0
  11. package/dist/commands/article-tags-from-json.d.ts.map +1 -0
  12. package/dist/commands/article-tags-from-json.js +54 -0
  13. package/dist/commands/article-tags-from-json.js.map +1 -0
  14. package/dist/commands/bulk-rtf-replace.d.ts +4 -0
  15. package/dist/commands/bulk-rtf-replace.d.ts.map +1 -0
  16. package/dist/commands/bulk-rtf-replace.js +103 -0
  17. package/dist/commands/bulk-rtf-replace.js.map +1 -0
  18. package/dist/commands/create-person-from-json.d.ts +4 -0
  19. package/dist/commands/create-person-from-json.d.ts.map +1 -0
  20. package/dist/commands/create-person-from-json.js +85 -0
  21. package/dist/commands/create-person-from-json.js.map +1 -0
  22. package/dist/commands/create-person.d.ts +4 -0
  23. package/dist/commands/create-person.d.ts.map +1 -0
  24. package/dist/commands/create-person.js +56 -0
  25. package/dist/commands/create-person.js.map +1 -0
  26. package/dist/commands/create-taxonomy-from-json.d.ts.map +1 -1
  27. package/dist/commands/create-taxonomy-from-json.js +47 -31
  28. package/dist/commands/create-taxonomy-from-json.js.map +1 -1
  29. package/dist/commands/create-taxonomy.d.ts +2 -0
  30. package/dist/commands/create-taxonomy.d.ts.map +1 -1
  31. package/dist/commands/create-taxonomy.js +7 -6
  32. package/dist/commands/create-taxonomy.js.map +1 -1
  33. package/dist/commands/ensure.d.ts.map +1 -1
  34. package/dist/commands/ensure.js +49 -0
  35. package/dist/commands/ensure.js.map +1 -1
  36. package/dist/commands/help.js +1 -1
  37. package/dist/commands/help.js.map +1 -1
  38. package/dist/commands/project.d.ts.map +1 -1
  39. package/dist/commands/project.js +35 -0
  40. package/dist/commands/project.js.map +1 -1
  41. package/dist/contentful/article-tags-from-json.d.ts +25 -0
  42. package/dist/contentful/article-tags-from-json.d.ts.map +1 -0
  43. package/dist/contentful/article-tags-from-json.js +121 -0
  44. package/dist/contentful/article-tags-from-json.js.map +1 -0
  45. package/dist/contentful/bulk-rtf-replace.d.ts +29 -0
  46. package/dist/contentful/bulk-rtf-replace.d.ts.map +1 -0
  47. package/dist/contentful/bulk-rtf-replace.js +119 -0
  48. package/dist/contentful/bulk-rtf-replace.js.map +1 -0
  49. package/dist/contentful/entry-fields.d.ts +1 -1
  50. package/dist/contentful/entry-fields.d.ts.map +1 -1
  51. package/dist/contentful/entry-fields.js +13 -0
  52. package/dist/contentful/entry-fields.js.map +1 -1
  53. package/dist/contentful/person-create.d.ts +31 -0
  54. package/dist/contentful/person-create.d.ts.map +1 -0
  55. package/dist/contentful/person-create.js +111 -0
  56. package/dist/contentful/person-create.js.map +1 -0
  57. package/dist/editor-pack/capabilities.d.ts +82 -0
  58. package/dist/editor-pack/capabilities.d.ts.map +1 -0
  59. package/dist/editor-pack/capabilities.js +350 -0
  60. package/dist/editor-pack/capabilities.js.map +1 -0
  61. package/dist/editor-pack/generate.d.ts.map +1 -1
  62. package/dist/editor-pack/generate.js +57 -15
  63. package/dist/editor-pack/generate.js.map +1 -1
  64. package/dist/generated/hosted-guide.d.ts +1 -1
  65. package/dist/generated/hosted-guide.d.ts.map +1 -1
  66. package/dist/generated/hosted-guide.js +1 -1
  67. package/dist/generated/hosted-guide.js.map +1 -1
  68. package/dist/generated/version.d.ts +1 -1
  69. package/dist/generated/version.js +1 -1
  70. package/dist/hosted/customer-playbooks.d.ts.map +1 -1
  71. package/dist/hosted/customer-playbooks.js +3 -16
  72. package/dist/hosted/customer-playbooks.js.map +1 -1
  73. package/dist/hosted/next/pages/CmsEditPage.d.ts.map +1 -1
  74. package/dist/hosted/next/pages/CmsEditPage.js +1 -1
  75. package/dist/hosted/next/pages/CmsEditPage.js.map +1 -1
  76. package/dist/hosted/next/pages/CustomerPlaybooksPage.d.ts.map +1 -1
  77. package/dist/hosted/next/pages/CustomerPlaybooksPage.js +12 -3
  78. package/dist/hosted/next/pages/CustomerPlaybooksPage.js.map +1 -1
  79. package/dist/hosted/next/pages/HomePage.d.ts.map +1 -1
  80. package/dist/hosted/next/pages/HomePage.js +1 -1
  81. package/dist/hosted/next/pages/HomePage.js.map +1 -1
  82. package/dist/mcp/guide.d.ts +2 -2
  83. package/dist/mcp/guide.d.ts.map +1 -1
  84. package/dist/mcp/guide.js +10 -5
  85. package/dist/mcp/guide.js.map +1 -1
  86. package/dist/mcp/prompts/onboarding.d.ts.map +1 -1
  87. package/dist/mcp/prompts/onboarding.js +116 -2
  88. package/dist/mcp/prompts/onboarding.js.map +1 -1
  89. package/dist/mcp/server.d.ts +1 -1
  90. package/dist/mcp/server.d.ts.map +1 -1
  91. package/dist/project/doctor.d.ts +9 -0
  92. package/dist/project/doctor.d.ts.map +1 -0
  93. package/dist/project/doctor.js +136 -0
  94. package/dist/project/doctor.js.map +1 -0
  95. package/docs/FUNCTIONAL_SPEC.md +1 -1
  96. package/docs/MEDIA_INDEX_PLAN.md +1 -1
  97. package/docs/SKILLS.md +3 -3
  98. package/docs/editor-tasks/article-tags.md +47 -0
  99. package/docs/editor-tasks/authors-import.md +53 -0
  100. package/docs/editor-tasks/bulk-find-replace.md +52 -0
  101. package/docs/editor-tasks/clone-page.md +39 -0
  102. package/docs/editor-tasks/create-article.md +46 -0
  103. package/docs/editor-tasks/create-from-document.md +45 -0
  104. package/docs/editor-tasks/create-page.md +41 -0
  105. package/docs/editor-tasks/edit-rich-text.md +44 -0
  106. package/docs/editor-tasks/edit-scalar-fields.md +47 -0
  107. package/docs/editor-tasks/featured-images.md +46 -0
  108. package/docs/editor-tasks/media-reuse-and-upload.md +51 -0
  109. package/docs/editor-tasks/navigation.md +39 -0
  110. package/docs/editor-tasks/preview-verify.md +38 -0
  111. package/docs/editor-tasks/publish-handoff.md +36 -0
  112. package/docs/editor-tasks/seo-descriptions.md +48 -0
  113. package/docs/editor-tasks/taxonomy.md +51 -0
  114. package/docs/help/article-tags-from-json.md +62 -0
  115. package/docs/help/bulk-rtf-replace.md +80 -0
  116. package/docs/help/index.md +16 -1
  117. package/docs/help/person-from-json.md +82 -0
  118. package/docs/mcp/hosted-guide.md +15 -4
  119. package/package.json +3 -5
  120. package/skills/README.md +1 -1
  121. package/skills/core/SKILL.md +7 -1
  122. package/skills/editor-tasks/SKILL.md +83 -0
  123. package/skills/manifest.json +2 -1
  124. package/skills/setup/SKILL.md +21 -87
  125. package/dist/bin/cms-edit-mcp.d.ts +0 -3
  126. package/dist/bin/cms-edit-mcp.d.ts.map +0 -1
  127. package/dist/bin/cms-edit-mcp.js +0 -15
  128. package/dist/bin/cms-edit-mcp.js.map +0 -1
  129. package/dist/bin/cms-edit-setup.d.ts +0 -3
  130. package/dist/bin/cms-edit-setup.d.ts.map +0 -1
  131. package/dist/bin/cms-edit-setup.js +0 -7
  132. package/dist/bin/cms-edit-setup.js.map +0 -1
  133. package/dist/setup/wizard.d.ts +0 -4
  134. package/dist/setup/wizard.d.ts.map +0 -1
  135. package/dist/setup/wizard.js +0 -260
  136. package/dist/setup/wizard.js.map +0 -1
@@ -0,0 +1,45 @@
1
+ # Capability: Create from a document
2
+
3
+ ## Intent phrases
4
+
5
+ - create from Google Doc
6
+ - import from document
7
+ - build page from a brief
8
+
9
+ ## Requires capabilities
10
+
11
+ `pages` or `articles`
12
+
13
+ ## Prerequisites
14
+
15
+ - Fetch document content (Google Drive MCP, paste, or `site-workflows-copy-doc-snapshot` in dev repos)
16
+ - Read `cms-edit://customer/components-index`, `routing`, `articles` (if article)
17
+
18
+ ## Steps
19
+
20
+ 1. Read `cms-edit://customer/tasks-index` and relevant playbooks
21
+ 2. **Infer structure** — map sections to component types from `components-index`
22
+ 3. **Propose plan** in plain English: slug, title, template/article type, component list — **ask user to confirm**
23
+ 4. For pages: `list --type template` — pick template
24
+ 5. Build `create from-json` payload
25
+ 6. `cms_edit ["create", "from-json", "--file", "<path>", "--dry-run", "--strict"]`
26
+ 7. On approval, create and `save`
27
+ 8. Remind user to publish in Contentful UI
28
+
29
+ Use MCP prompts `cms_edit_create_from_doc` or `cms_edit_create_article_from_doc` when available.
30
+
31
+ ## Confirmation gates
32
+
33
+ 1. Plain-English plan — mandatory user confirmation before create
34
+ 2. `--dry-run --strict`
35
+ 3. `diff` before `save`
36
+
37
+ ## Out of scope
38
+
39
+ - Publish
40
+ - Asset upload without reuse check (see **Media** capability)
41
+
42
+ ## Related resources
43
+
44
+ - `cms-edit://customer/components-index`
45
+ - `task-media-reuse-and-upload`
@@ -0,0 +1,41 @@
1
+ # Capability: Create a page
2
+
3
+ ## Intent phrases
4
+
5
+ - create a new page
6
+ - add a landing page
7
+ - new marketing page
8
+
9
+ ## Requires capabilities
10
+
11
+ `pages`
12
+
13
+ ## Prerequisites
14
+
15
+ - Read `cms-edit://customer/components-index` and `cms-edit://customer/routing`
16
+ - `cms_edit ["index", "sync"]` for template lookup
17
+
18
+ ## Steps
19
+
20
+ 1. `cms_edit ["list", "--type", "template"]` — pick template ID
21
+ 2. `cms_edit ["create", "page", "--slug", "<slug>", "--title", "<title>", "--template-id", "<id>"]`
22
+ 3. `cms_edit ["snapshot"]` — review structure
23
+ 4. Add components: `add <ComponentType>`; set fields with `set` / `rtf`
24
+ 5. `cms_edit ["diff"]` → `cms_edit ["save"]`
25
+
26
+ For multi-component pages, prefer `create from-json` with `--dry-run --strict` first.
27
+
28
+ ## Confirmation gates
29
+
30
+ 1. Confirm slug, title, and template with user
31
+ 2. `create from-json --dry-run --strict` before create when using JSON
32
+ 3. `diff` before `save`
33
+
34
+ ## Out of scope
35
+
36
+ - Publish
37
+
38
+ ## Related resources
39
+
40
+ - `cms-edit://customer/components-index`
41
+ - `task-create-from-document` for doc-driven pages
@@ -0,0 +1,44 @@
1
+ # Capability: Edit rich text
2
+
3
+ ## Intent phrases
4
+
5
+ - edit body copy
6
+ - update a paragraph
7
+ - change rich text content
8
+
9
+ ## Requires capabilities
10
+
11
+ Always available.
12
+
13
+ ## Prerequisites
14
+
15
+ - Open session on the target page or article
16
+ - `snapshot` to locate RTF fields on `@ref` nodes
17
+
18
+ ## Steps
19
+
20
+ 1. `cms_edit ["open", "--page-slug", "<slug>"]`
21
+ 2. `cms_edit ["snapshot"]`
22
+ 3. `cms_edit ["read", "@cN", "body"]` — inspect RTF field name
23
+ 4. `cms_edit ["rtf", "@cN", "body", "--content", "<markdown or plain>"]`
24
+ 5. `cms_edit ["diff"]`
25
+ 6. `cms_edit ["save"]`
26
+
27
+ For partial updates within one RTF field:
28
+
29
+ ```
30
+ cms_edit ["rtf", "replace", "@cN", "body", "--find", "old text", "--replace-plain", "new text"]
31
+ ```
32
+
33
+ ## Confirmation gates
34
+
35
+ 1. Identify the `@ref` and field before editing
36
+ 2. Show `diff` before `save`
37
+
38
+ ## Out of scope
39
+
40
+ - Publish
41
+
42
+ ## Related resources
43
+
44
+ - `cms-edit://customer/components-index`
@@ -0,0 +1,47 @@
1
+ # Capability: Edit scalar fields
2
+
3
+ ## Intent phrases
4
+
5
+ - change a field on a page or article
6
+ - update title or description
7
+ - set a tracking field
8
+
9
+ ## Requires capabilities
10
+
11
+ Always available.
12
+
13
+ ## Prerequisites
14
+
15
+ - Open the target entry: `open --page-slug` or `open --article-slug`
16
+ - `snapshot` to find `@ref` IDs
17
+
18
+ ## Steps
19
+
20
+ 1. `cms_edit ["open", "--page-slug", "<slug>"]` (or `--article-slug`)
21
+ 2. `cms_edit ["snapshot"]`
22
+ 3. `cms_edit ["read", "@p0", "fieldName"]` — inspect current value
23
+ 4. `cms_edit ["set", "@p0", "fieldName", "new value"]`
24
+ 5. `cms_edit ["diff"]` — review all changes
25
+ 6. `cms_edit ["save"]`
26
+
27
+ For unrelated entries in one session, use `batch set`:
28
+
29
+ ```
30
+ cms_edit ["batch", "set", "<entryId>:description=New meta", "<entryId2>:title=New title"]
31
+ cms_edit ["batch", "save"]
32
+ ```
33
+
34
+ ## Confirmation gates
35
+
36
+ 1. State which entry and field you will change
37
+ 2. Show `diff` before `save`
38
+
39
+ ## Out of scope
40
+
41
+ - Publish (human in Contentful UI)
42
+ - Rich text fields (use **Edit rich text** capability)
43
+
44
+ ## Related resources
45
+
46
+ - `cms-edit://customer/routing`
47
+ - `cms-edit://customer/components-index`
@@ -0,0 +1,46 @@
1
+ # Capability: Featured images
2
+
3
+ ## Intent phrases
4
+
5
+ - set featured image
6
+ - social sharing image
7
+ - OG image for article
8
+
9
+ ## Requires capabilities
10
+
11
+ `pages` or `articles`
12
+
13
+ ## Prerequisites
14
+
15
+ - Read `cms-edit://customer/defaults` for article inheritance rules
16
+ - **Reuse-first:** `task-media-reuse-and-upload`
17
+
18
+ ## Steps
19
+
20
+ **Articles — decision tree:**
21
+
22
+ 1. Custom image on article when editor provides one
23
+ 2. Else inherit from linked **articleType** featured image
24
+ 3. Else site default from `editor.defaults`
25
+
26
+ **Pages:** optional `featuredImage`; no automatic fallback.
27
+
28
+ ```
29
+ cms_edit ["set", "@p0", "featuredImage", "<assetId>", "--links"]
30
+ ```
31
+
32
+ Or in from-json: `featuredImageAssetFilename` after `index sync`.
33
+
34
+ ## Confirmation gates
35
+
36
+ 1. Confirm image choice (custom vs inherited)
37
+ 2. `diff` before `save`
38
+
39
+ ## Out of scope
40
+
41
+ - Publish
42
+
43
+ ## Related resources
44
+
45
+ - `cms-edit://customer/defaults`
46
+ - `task-media-reuse-and-upload`
@@ -0,0 +1,51 @@
1
+ # Capability: Media — reuse and upload
2
+
3
+ ## Intent phrases
4
+
5
+ - upload image
6
+ - find existing asset
7
+ - add photo to page or article
8
+
9
+ ## Requires capabilities
10
+
11
+ `assetSearch` and `assetUpload`
12
+
13
+ ## Prerequisites
14
+
15
+ - **Always run `index sync` first** if the catalog may be stale
16
+
17
+ ## Reuse-first workflow (default)
18
+
19
+ 1. `cms_edit ["index", "sync"]`
20
+ 2. **Search existing assets:**
21
+ - `cms_edit ["asset", "search", "--filename-match", "<partial-name>"]`
22
+ - `cms_edit ["list", "--type", "media", "--asset-filename-match", "<partial>"]`
23
+ 3. If match found — link by asset ID or filename in `set` / `create from-json` (`featuredImageAssetFilename`, `visualAssetFilename`, etc.)
24
+ 4. Or `cms_edit ["create", "media", "--asset-id", "<id>", "--name", "…"]` for RTF embeds
25
+
26
+ ## Upload only when no match
27
+
28
+ ```
29
+ cms_edit ["asset", "upload", "./file.jpg", "--title", "…", "--if-exists-by-filename"]
30
+ ```
31
+
32
+ Sources: local `--file`, `--url <https>`, or `--base64` with `--mime`.
33
+
34
+ Optional Media wrapper:
35
+
36
+ ```
37
+ cms_edit ["asset", "upload", "./figure.png", "--with-media", "--media-name", "Figure 1"]
38
+ ```
39
+
40
+ ## Confirmation gates
41
+
42
+ 1. Report search results before uploading
43
+ 2. Confirm upload filename/title with user if ambiguous
44
+
45
+ ## Out of scope
46
+
47
+ - Publish assets (draft upload; human publishes in Contentful UI if needed)
48
+
49
+ ## Related resources
50
+
51
+ - `cms-edit://customer/defaults` (featured image rules)
@@ -0,0 +1,39 @@
1
+ # Capability: Navigation
2
+
3
+ ## Intent phrases
4
+
5
+ - update menu
6
+ - change navigation links
7
+ - edit footer
8
+
9
+ ## Requires capabilities
10
+
11
+ `navigation`
12
+
13
+ ## Prerequisites
14
+
15
+ - Read `cms-edit://customer/routing` for URL shapes
16
+ - `cms_edit ["index", "sync"]` for navigation entry lookup
17
+
18
+ ## Steps
19
+
20
+ 1. `cms_edit ["list", "--type", "navigation"]` — find nav entry
21
+ 2. `cms_edit ["nav", "open", "--id", "<navigationId>"]` or by slug
22
+ 3. `snapshot` — inspect nav items
23
+ 4. Add/clone/link items per navigation commands
24
+ 5. `diff` → `save`
25
+
26
+ See `contentful-cms-navigation` skill for full command reference in dev environments.
27
+
28
+ ## Confirmation gates
29
+
30
+ 1. Confirm which menu (header/footer) and link changes
31
+ 2. `diff` before `save`
32
+
33
+ ## Out of scope
34
+
35
+ - Publish
36
+
37
+ ## Related resources
38
+
39
+ - `cms-edit://customer/routing`
@@ -0,0 +1,38 @@
1
+ # Capability: Preview verification
2
+
3
+ ## Intent phrases
4
+
5
+ - preview changes
6
+ - check staging
7
+ - verify page looks right
8
+
9
+ ## Requires capabilities
10
+
11
+ Always available.
12
+
13
+ ## Prerequisites
14
+
15
+ - Draft saved (`save` creates drafts)
16
+ - Staging URL from `cms-edit://customer/overview`
17
+
18
+ ## Steps
19
+
20
+ 1. After `save`, get preview URL:
21
+ ```
22
+ cms_edit ["preview", "url", "--page-slug", "<slug>"]
23
+ ```
24
+ 2. Open in browser (browser MCP in dev environments)
25
+ 3. Report visual/layout issues to user before they publish in Contentful
26
+
27
+ ## Confirmation gates
28
+
29
+ 1. Confirm draft saved before preview
30
+ 2. Summarize what to check (headings, CTAs, images)
31
+
32
+ ## Out of scope
33
+
34
+ - Publish
35
+
36
+ ## Related resources
37
+
38
+ - `cms-edit://customer/overview`
@@ -0,0 +1,36 @@
1
+ # Capability: Publish handoff
2
+
3
+ ## Intent phrases
4
+
5
+ - publish changes
6
+ - go live
7
+ - make changes live
8
+
9
+ ## Requires capabilities
10
+
11
+ Always available.
12
+
13
+ ## What cms-edit does
14
+
15
+ - Creates and updates **drafts only**
16
+ - **Cannot** publish, unpublish, archive, or delete published entries
17
+
18
+ ## Handoff steps
19
+
20
+ 1. Ensure all edits are saved (`diff` was reviewed)
21
+ 2. Tell the user which entries were changed (slugs/titles)
22
+ 3. Direct them to **Contentful UI** → filter by draft → review → **Publish**
23
+ 4. Optional: `task-preview-verify` on staging before publish
24
+
25
+ ## Confirmation gates
26
+
27
+ 1. Never claim changes are live until a human publishes
28
+ 2. List draft entries awaiting publish
29
+
30
+ ## Out of scope
31
+
32
+ - Automated publish (intentionally unsupported)
33
+
34
+ ## Related resources
35
+
36
+ - `cms-edit://customer/overview`
@@ -0,0 +1,48 @@
1
+ # Capability: SEO meta descriptions
2
+
3
+ ## Intent phrases
4
+
5
+ - update meta descriptions
6
+ - improve SEO for Google
7
+ - change page descriptions for search
8
+
9
+ ## Requires capabilities
10
+
11
+ `pages` or `articles`
12
+
13
+ ## Prerequisites
14
+
15
+ - Field name is **`description`** (meta description) on pages and articles
16
+ - `cms_edit ["sitemap"]` for inventory
17
+
18
+ ## Steps
19
+
20
+ **Per entry (hosted editors):**
21
+
22
+ 1. `cms_edit ["open", "--page-slug", "<slug>"]`
23
+ 2. `cms_edit ["set", "@p0", "description", "<new meta description>"]`
24
+ 3. `cms_edit ["diff"]` → `cms_edit ["save"]`
25
+
26
+ **Many entries with known IDs:**
27
+
28
+ ```
29
+ cms_edit ["batch", "set", "<pageId>:description=…", …]
30
+ cms_edit ["batch", "save"]
31
+ ```
32
+
33
+ **Dev agents only** — if `capabilities.devTools.cmsSeoAudit` is true, developers may run the site's `cms:seo-audit` CSV workflow locally. Hosted editors should use per-entry updates above.
34
+
35
+ ## Confirmation gates
36
+
37
+ 1. Propose new descriptions (or selection of pages) — user approves
38
+ 2. `diff` before `save`
39
+
40
+ ## Out of scope
41
+
42
+ - Publish
43
+ - Keyword research (descriptions are editorial)
44
+
45
+ ## Related resources
46
+
47
+ - `cms-edit://customer/routing`
48
+ - `cms-edit://customer/brand` (if present)
@@ -0,0 +1,51 @@
1
+ # Capability: Taxonomy setup
2
+
3
+ ## Intent phrases
4
+
5
+ - create tags
6
+ - set up taxonomy
7
+ - add tag types and tags
8
+
9
+ ## Requires capabilities
10
+
11
+ `tags`
12
+
13
+ ## Prerequisites
14
+
15
+ - `cms_edit ["index", "sync"]`
16
+
17
+ ## Steps
18
+
19
+ **From JSON (batch):**
20
+
21
+ ```
22
+ cms_edit ["create", "taxonomy-from-json", "--file", "<path>", "--if-not-exists"]
23
+ ```
24
+
25
+ **Individual entries:**
26
+
27
+ ```
28
+ cms_edit ["ensure", "tag-type", "--slug", "topic", "--name", "Topic"]
29
+ cms_edit ["ensure", "tag", "--slug", "mental-health", "--name", "Mental Health", "--tag-type-slug", "topic"]
30
+ ```
31
+
32
+ Verify:
33
+
34
+ ```
35
+ cms_edit ["list", "--type", "tagType"]
36
+ cms_edit ["list", "--type", "tag"]
37
+ ```
38
+
39
+ ## Confirmation gates
40
+
41
+ 1. Show taxonomy plan before import
42
+ 2. Summarize created vs existing IDs
43
+
44
+ ## Out of scope
45
+
46
+ - Publish
47
+ - Assigning tags to articles (see **Article tags** capability)
48
+
49
+ ## Related resources
50
+
51
+ - `cms-edit://customer/routing`
@@ -0,0 +1,62 @@
1
+ # cms-edit article-tags-from-json — Batch Article Tagging
2
+
3
+ `article-tags-from-json` sets the `tags` link array on one or more articles from a JSON file. Tag slugs are resolved via the local index — run `cms-edit index sync` first.
4
+
5
+ ```bash
6
+ cms-edit index sync
7
+ cms-edit article-tags-from-json --file tags.json --dry-run
8
+ cms-edit article-tags-from-json --file tags.json
9
+ ```
10
+
11
+ All writes create **drafts** only.
12
+
13
+ **Batch behaviour:** Processes every article in the file. Failures on one article do not stop the rest — the command exits non-zero if any item failed and prints which slugs succeeded vs failed.
14
+
15
+ ---
16
+
17
+ ## JSON schema
18
+
19
+ ```jsonc
20
+ {
21
+ "articles": [
22
+ {
23
+ "articleSlug": "resources/blog/my-post",
24
+ "tagSlugs": ["asco-2025", "oncology"],
25
+ "append": false
26
+ },
27
+ {
28
+ "articleSlug": "resources/blog/another-post",
29
+ "tagSlugs": ["press-release"],
30
+ "append": true
31
+ }
32
+ ]
33
+ }
34
+ ```
35
+
36
+ | Key | Required | Description |
37
+ |---|---|---|
38
+ | `articleSlug` | Yes | Article slug (with or without leading `/`) |
39
+ | `tagSlugs` | Yes | Tag slugs to apply |
40
+ | `append` | No | When `true`, append to existing tags (deduped). Default: replace |
41
+
42
+ ---
43
+
44
+ ## Session alternative (single article)
45
+
46
+ ```bash
47
+ cms-edit open --article-slug resources/blog/my-post
48
+ cms-edit set @p0 tags <id1>,<id2> --links
49
+ cms-edit diff && cms-edit save
50
+ ```
51
+
52
+ Resolve tag IDs: `cms-edit resolve --tag-slug <slug> --json`
53
+
54
+ ---
55
+
56
+ ## Related commands
57
+
58
+ | Command | Purpose |
59
+ |---|---|
60
+ | `cms-edit create tag` | Create a new tag |
61
+ | `cms-edit create taxonomy-from-json` | Bootstrap tagTypes and tags |
62
+ | `cms-edit help taxonomy-from-json` | Taxonomy batch import |
@@ -0,0 +1,80 @@
1
+ # cms-edit bulk-rtf-replace — Sitewide Rich Text Find-Replace
2
+
3
+ `bulk-rtf-replace` finds plain text in Rich Text fields across page and article entry trees (including linked components and collections) and replaces it in one pass.
4
+
5
+ ```bash
6
+ cms-edit bulk-rtf-replace --find "Old Company Name" --replace-plain "New Company Name" --dry-run
7
+ cms-edit bulk-rtf-replace --find "Old Company Name" --replace-plain "New Company Name"
8
+ ```
9
+
10
+ **Always dry-run first** and confirm the match count with the user before saving.
11
+
12
+ All saves create **drafts** only.
13
+
14
+ ---
15
+
16
+ ## How it works
17
+
18
+ 1. Fetches root entries (`page` and `article` by default) from Contentful
19
+ 2. For each root, loads the full linked entry tree
20
+ 3. Scans every Rich Text field on every entry in the tree
21
+ 4. Applies `replace-plain` (same engine as `cms-edit rtf replace`)
22
+ 5. Saves each modified entry as a draft
23
+
24
+ ---
25
+
26
+ ## Options
27
+
28
+ | Option | Description |
29
+ |---|---|
30
+ | `--find <text>` | Plain text to find (required) |
31
+ | `--replace-plain <text>` | Plain text replacement (required) |
32
+ | `--include <types>` | Root content types (default: `page,article`) |
33
+ | `--prefix <slug>` | Only roots whose slug starts with this prefix (e.g. `/blog`) |
34
+ | `--limit <n>` | Max root entries total across all `--include` types (default: 500) |
35
+ | `--dry-run` | Report matches without saving |
36
+
37
+ ---
38
+
39
+ ## Scoped replace
40
+
41
+ ```bash
42
+ # Blog articles only
43
+ cms-edit bulk-rtf-replace \
44
+ --find "2024" \
45
+ --replace-plain "2025" \
46
+ --include article \
47
+ --prefix resources/blog \
48
+ --dry-run
49
+ ```
50
+
51
+ ---
52
+
53
+ ## JSON output
54
+
55
+ ```bash
56
+ CMS_EDIT_JSON=1 cms-edit bulk-rtf-replace --find "foo" --replace-plain "bar" --dry-run
57
+ ```
58
+
59
+ Dry-run response includes `entriesWithMatches`, `matches`, and per-entry `changes`.
60
+
61
+ ---
62
+
63
+ ## When to use sessions instead
64
+
65
+ For a **small** number of entries, or when you need `diff` review per page:
66
+
67
+ ```bash
68
+ cms-edit open --page-slug /about
69
+ cms-edit rtf replace @c1 body --find "…" --replace-plain "…"
70
+ cms-edit diff && cms-edit save
71
+ ```
72
+
73
+ For **scalar** fields on many entries, prefer `cms-edit batch set`.
74
+
75
+ ---
76
+
77
+ ## Related resources
78
+
79
+ - Editor task: `task-bulk-find-replace` (confirmation gates)
80
+ - `cms-edit search <text>` — discover affected entries before bulk replace
@@ -19,6 +19,9 @@ Available topics for `cms-edit help <topic>`:
19
19
  | `workflow` | Standard editing workflow — open, snapshot, edit, save |
20
20
  | `create-from-json` | Create a new page or article from a JSON file (single-shot) |
21
21
  | `taxonomy-from-json` | Batch-create tagType, articleType, and tag entries from JSON |
22
+ | `person-from-json` | Batch-create person/author entries from JSON |
23
+ | `article-tags-from-json` | Set tags on multiple articles from JSON |
24
+ | `bulk-rtf-replace` | Find-replace plain text across Rich Text fields in entry trees |
22
25
  | `run` | Execute a batch of operations from a JSON file |
23
26
  | `batch` | Edit multiple entries by Contentful entry ID, then save once |
24
27
  | `fields` | Overview of all content types |
@@ -56,6 +59,15 @@ cms-edit create from-json --file my-page.json --dry-run
56
59
  # Bootstrap taxonomy for import scripts
57
60
  cms-edit create taxonomy-from-json --file taxonomy.json --if-not-exists
58
61
 
62
+ # Import authors from JSON
63
+ cms-edit create person-from-json --file authors.json --if-not-exists
64
+
65
+ # Bulk retag articles
66
+ cms-edit article-tags-from-json --file tags.json
67
+
68
+ # Sitewide rich-text find-replace (dry-run first)
69
+ cms-edit bulk-rtf-replace --find "Old" --replace-plain "New" --dry-run
70
+
59
71
  # Run a batch of edits
60
72
  cms-edit run --file patch.json
61
73
  ```
@@ -110,6 +122,10 @@ cms-edit run --file patch.json
110
122
  |---|---|
111
123
  | `create from-json` | Create a page/article from a JSON file |
112
124
  | `create taxonomy-from-json` | Batch-create tagType, articleType, and tag entries |
125
+ | `create person-from-json` | Batch-create person entries from JSON |
126
+ | `create person` | Create a person entry (draft) |
127
+ | `article-tags-from-json` | Set tags on articles from JSON |
128
+ | `bulk-rtf-replace` | Find-replace in Rich Text across entry trees |
113
129
  | `create tag-type` | Create a tagType entry (draft) |
114
130
  | `create article-type` | Create an articleType entry (draft) |
115
131
  | `create tag` | Create a tag entry (draft) |
@@ -130,7 +146,6 @@ cms-edit run --file patch.json
130
146
  | `preview showcase` | Generate a component/collection showcase URL |
131
147
  | `preview` | Generate preview URLs |
132
148
  | `skill` | Manage installed skills |
133
- | `setup` | Configure Claude Desktop with your credentials |
134
149
 
135
150
  ---
136
151