@se-studio/contentful-cms 2.5.0 → 2.6.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 (131) hide show
  1. package/CHANGELOG.md +48 -11
  2. package/INSTALL.md +1 -1
  3. package/README.md +10 -17
  4. package/dist/audit/asset-usage.d.ts +15 -0
  5. package/dist/audit/asset-usage.d.ts.map +1 -0
  6. package/dist/audit/asset-usage.js +81 -0
  7. package/dist/audit/asset-usage.js.map +1 -0
  8. package/dist/audit/media-review.d.ts +2 -0
  9. package/dist/audit/media-review.d.ts.map +1 -1
  10. package/dist/audit/media-review.js.map +1 -1
  11. package/dist/cli/program.d.ts.map +1 -1
  12. package/dist/cli/program.js +4 -22
  13. package/dist/cli/program.js.map +1 -1
  14. package/dist/commands/add.js +1 -1
  15. package/dist/commands/add.js.map +1 -1
  16. package/dist/commands/asset.d.ts.map +1 -1
  17. package/dist/commands/asset.js +9 -0
  18. package/dist/commands/asset.js.map +1 -1
  19. package/dist/commands/batch.d.ts.map +1 -1
  20. package/dist/commands/batch.js +5 -2
  21. package/dist/commands/batch.js.map +1 -1
  22. package/dist/commands/create-from-json.d.ts.map +1 -1
  23. package/dist/commands/create-from-json.js +24 -2
  24. package/dist/commands/create-from-json.js.map +1 -1
  25. package/dist/commands/help.d.ts.map +1 -1
  26. package/dist/commands/help.js +3 -2
  27. package/dist/commands/help.js.map +1 -1
  28. package/dist/commands/run.d.ts +1 -1
  29. package/dist/commands/run.d.ts.map +1 -1
  30. package/dist/commands/run.js +3 -3
  31. package/dist/commands/run.js.map +1 -1
  32. package/dist/commands/schema.d.ts.map +1 -1
  33. package/dist/commands/schema.js +228 -85
  34. package/dist/commands/schema.js.map +1 -1
  35. package/dist/generated/hosted-guide.d.ts +1 -1
  36. package/dist/generated/hosted-guide.d.ts.map +1 -1
  37. package/dist/generated/hosted-guide.js +1 -1
  38. package/dist/generated/hosted-guide.js.map +1 -1
  39. package/dist/generated/version.d.ts +1 -1
  40. package/dist/generated/version.js +1 -1
  41. package/dist/mcp/guide.js +1 -1
  42. package/dist/mcp/guide.js.map +1 -1
  43. package/dist/mcp/prompts/onboarding.js +7 -7
  44. package/dist/mcp/prompts/onboarding.js.map +1 -1
  45. package/dist/mcp/tools/cms-edit.d.ts +1 -1
  46. package/dist/mcp/tools/cms-edit.d.ts.map +1 -1
  47. package/dist/mcp/tools/cms-edit.js +1 -1
  48. package/docs/FUNCTIONAL_SPEC.md +2 -2
  49. package/docs/SKILLS.md +3 -3
  50. package/docs/editor-tasks/article-tags.md +47 -0
  51. package/docs/editor-tasks/authors-import.md +53 -0
  52. package/docs/editor-tasks/bulk-find-replace.md +52 -0
  53. package/docs/editor-tasks/clone-page.md +39 -0
  54. package/docs/editor-tasks/create-article.md +46 -0
  55. package/docs/editor-tasks/create-from-document.md +45 -0
  56. package/docs/editor-tasks/create-page.md +41 -0
  57. package/docs/editor-tasks/edit-rich-text.md +44 -0
  58. package/docs/editor-tasks/edit-scalar-fields.md +47 -0
  59. package/docs/editor-tasks/featured-images.md +46 -0
  60. package/docs/editor-tasks/media-reuse-and-upload.md +51 -0
  61. package/docs/editor-tasks/navigation.md +39 -0
  62. package/docs/editor-tasks/preview-verify.md +38 -0
  63. package/docs/editor-tasks/publish-handoff.md +36 -0
  64. package/docs/editor-tasks/seo-descriptions.md +48 -0
  65. package/docs/editor-tasks/taxonomy.md +51 -0
  66. package/docs/help/asset-review.md +4 -0
  67. package/docs/help/{run.md → batch-run.md} +8 -8
  68. package/docs/help/create-from-json.md +3 -2
  69. package/docs/help/fields-article.md +2 -2
  70. package/docs/help/fields-component.md +3 -3
  71. package/docs/help/fields-taxonomy.md +6 -6
  72. package/docs/help/fields.md +2 -2
  73. package/docs/help/index-sync.md +1 -1
  74. package/docs/help/index.md +23 -18
  75. package/docs/help/lookup.md +1 -1
  76. package/docs/help/person-from-json.md +3 -3
  77. package/docs/help/taxonomy-from-json.md +3 -3
  78. package/docs/help/workflow.md +1 -1
  79. package/docs/mcp/hosted-guide.md +6 -6
  80. package/package.json +3 -3
  81. package/skills/README.md +2 -2
  82. package/skills/core/SKILL.md +33 -40
  83. package/skills/setup/SKILL.md +1 -1
  84. package/dist/bin/contentful-cms.d.ts +0 -3
  85. package/dist/bin/contentful-cms.d.ts.map +0 -1
  86. package/dist/bin/contentful-cms.js +0 -5
  87. package/dist/bin/contentful-cms.js.map +0 -1
  88. package/dist/commands/audit.d.ts +0 -4
  89. package/dist/commands/audit.d.ts.map +0 -1
  90. package/dist/commands/audit.js +0 -399
  91. package/dist/commands/audit.js.map +0 -1
  92. package/dist/commands/backup.d.ts +0 -3
  93. package/dist/commands/backup.d.ts.map +0 -1
  94. package/dist/commands/backup.js +0 -143
  95. package/dist/commands/backup.js.map +0 -1
  96. package/dist/commands/colours.d.ts +0 -4
  97. package/dist/commands/colours.d.ts.map +0 -1
  98. package/dist/commands/colours.js +0 -91
  99. package/dist/commands/colours.js.map +0 -1
  100. package/dist/commands/ensure.d.ts +0 -4
  101. package/dist/commands/ensure.d.ts.map +0 -1
  102. package/dist/commands/ensure.js +0 -152
  103. package/dist/commands/ensure.js.map +0 -1
  104. package/dist/commands/restore.d.ts +0 -4
  105. package/dist/commands/restore.d.ts.map +0 -1
  106. package/dist/commands/restore.js +0 -146
  107. package/dist/commands/restore.js.map +0 -1
  108. package/dist/commands/revert.d.ts +0 -4
  109. package/dist/commands/revert.d.ts.map +0 -1
  110. package/dist/commands/revert.js +0 -143
  111. package/dist/commands/revert.js.map +0 -1
  112. package/dist/commands/sitemap.d.ts +0 -4
  113. package/dist/commands/sitemap.d.ts.map +0 -1
  114. package/dist/commands/sitemap.js +0 -151
  115. package/dist/commands/sitemap.js.map +0 -1
  116. package/dist/commands/skill.d.ts +0 -4
  117. package/dist/commands/skill.d.ts.map +0 -1
  118. package/dist/commands/skill.js +0 -40
  119. package/dist/commands/skill.js.map +0 -1
  120. package/dist/commands/types.d.ts +0 -4
  121. package/dist/commands/types.d.ts.map +0 -1
  122. package/dist/commands/types.js +0 -78
  123. package/dist/commands/types.js.map +0 -1
  124. package/dist/session/backup.d.ts +0 -34
  125. package/dist/session/backup.d.ts.map +0 -1
  126. package/dist/session/backup.js +0 -64
  127. package/dist/session/backup.js.map +0 -1
  128. package/dist/skills/install.d.ts +0 -13
  129. package/dist/skills/install.d.ts.map +0 -1
  130. package/dist/skills/install.js +0 -37
  131. package/dist/skills/install.js.map +0 -1
@@ -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 ["list", "--type", "page"]` for page 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 ["create", "tag-type", "--slug", "topic", "--name", "Topic", "--if-not-exists"]
29
+ cms_edit ["create", "tag", "--slug", "mental-health", "--name", "Mental Health", "--tag-type-slug", "topic", "--if-not-exists"]
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`
@@ -15,8 +15,11 @@ Default: **Preview API** (includes drafts). Use `--published` on sync/review for
15
15
  ```bash
16
16
  cms-edit asset review
17
17
  cms-edit --json asset review --space brightline > media-review.json
18
+ cms-edit --json asset review --include-usage --include-passing > image-inventory.json
18
19
  ```
19
20
 
21
+ `--include-usage` adds slug-bearing page/article ancestry per asset (slower; uses CMA walk-up). Use with `--include-passing` for a full image inventory (replaces the old `audit images` command).
22
+
20
23
  ## Checks
21
24
 
22
25
  - Filename quality (stock IDs, camera defaults, generic names)
@@ -35,6 +38,7 @@ cms-edit --json asset review --space brightline > media-review.json
35
38
  | `--max-video-mb` | 8 |
36
39
  | `--max-lottie-kb` | 400 |
37
40
  | `--include-passing` | off (failures only) |
41
+ | `--include-usage` | off (no usage ancestry in JSON) |
38
42
  | `--published` | off (Preview index) |
39
43
 
40
44
  Exit code **1** when any asset has failing issues.
@@ -1,10 +1,10 @@
1
- # cms-edit run — Batch Operations Guide
1
+ # cms-edit batch run — JSON Operation Scripts
2
2
 
3
- `run` executes a sequence of `cms-edit` operations from a JSON file. It is best suited for **patching fields on existing entries** — for creating complete new pages, use `create from-json` instead.
3
+ `batch run` executes a sequence of `cms-edit` operations from a JSON file. It is best suited for **patching fields on existing entries** — for creating complete new pages, use `create from-json` instead.
4
4
 
5
5
  ```bash
6
- cms-edit run --file patch.json
7
- cms-edit run --file patch.json --dry-run # validate without saving
6
+ cms-edit batch run --file patch.json
7
+ cms-edit batch run --file patch.json --dry-run # validate without saving
8
8
  ```
9
9
 
10
10
  ---
@@ -162,13 +162,13 @@ Do all `add` operations in one batch. Re-snapshot to see final refs. Write a sec
162
162
 
163
163
  ```bash
164
164
  # Batch 1: add all items
165
- cms-edit run --file add-items.json
165
+ cms-edit batch run --file add-items.json
166
166
 
167
167
  # Inspect final refs
168
168
  cms-edit snapshot
169
169
 
170
170
  # Batch 2: set fields using the stable refs from snapshot
171
- cms-edit run --file set-fields.json
171
+ cms-edit batch run --file set-fields.json
172
172
  ```
173
173
 
174
174
  ### Pattern C — Append to end only
@@ -200,8 +200,8 @@ For building complete page trees from scratch, `create from-json` is safer than
200
200
 
201
201
  Run:
202
202
  ```bash
203
- cms-edit run --file patch.json --dry-run # validate first
204
- cms-edit run --file patch.json # apply
203
+ cms-edit batch run --file patch.json --dry-run # validate first
204
+ cms-edit batch run --file patch.json # apply
205
205
  cms-edit open --page-slug /solutions # inspect result
206
206
  ```
207
207
 
@@ -6,6 +6,7 @@
6
6
  cms-edit create from-json --file my-page.json
7
7
  cms-edit create from-json --file my-page.json --dry-run # validate without writing
8
8
  cms-edit create from-json --file my-page.json --strict # fail on unknown JSON keys
9
+ cms-edit create from-json --file my-page.json --if-not-exists # return existing ID when slug exists
9
10
  ```
10
11
 
11
12
  Run `cms-edit index sync` before using any `*AssetFilename` shorthand (index-backed exact `file.fileName` lookup).
@@ -121,7 +122,7 @@ Each item in `components` (and `items` for collections) follows this shape:
121
122
  "contentType": "component",
122
123
 
123
124
  // The type discriminator value (e.g. HeroSimple, TextBlock, CardGrid).
124
- // Run `cms-edit types` to see valid values.
125
+ // Run `cms-edit schema types <content-type>` to see valid values.
125
126
  "type": "HeroSimple",
126
127
 
127
128
  // Optional. Human-readable label in Contentful's entry list. Defaults to `type`.
@@ -299,7 +300,7 @@ If a run fails mid-way (e.g. a missing internal link slug), the page entry is al
299
300
 
300
301
  Options:
301
302
  1. Delete the partial entry in Contentful, fix the dependency order, and re-run.
302
- 2. Repair the partial entry using `cms-edit run` with targeted `set`/`rtf` operations.
303
+ 2. Repair the partial entry using `cms-edit batch run` with targeted `set`/`rtf` operations.
303
304
  3. Use `cms-edit open --page-slug /solutions` + individual `add` operations to rebuild the content.
304
305
 
305
306
  ---
@@ -41,10 +41,10 @@ Sort by publication `date` (matches the website), not `sys.updatedAt`:
41
41
  ```bash
42
42
  cms-edit list --type article --sort date -n 10
43
43
  cms-edit search "keyword" --type article
44
- cms-edit sitemap --include article --sort date
44
+ cms-edit list --type article --sort date
45
45
  ```
46
46
 
47
- To find **draft** articles: `cms-edit sitemap --include article --status draft`, then `cms-edit peek --article-slug <slug>` or `cms-edit open --id <id>`. `peek` and `open` load draft content — only `list --published` is published-only.
47
+ To find **draft** articles: `cms-edit list --type article --sort date` (preview index includes drafts), then `cms-edit peek --article-slug <slug>` or `cms-edit open --id <id>`. `peek` and `open` load draft content — only `list --published` is published-only.
48
48
 
49
49
  ---
50
50
 
@@ -9,7 +9,7 @@ A `component` entry is an individual content section — a hero, text block, car
9
9
  | Field | Type | Description |
10
10
  |---|---|---|
11
11
  | `cmsLabel` | Text | Human-readable label in Contentful's entry list |
12
- | `componentType` | Text | Variant discriminator — e.g. `HeroSimple`, `TextBlock`, `Generic`. Run `cms-edit types` to see valid values |
12
+ | `componentType` | Text | Variant discriminator — e.g. `HeroSimple`, `TextBlock`, `Generic`. Run `cms-edit schema types component` to see valid values |
13
13
  | `heading` | Text | Main heading text |
14
14
  | `preHeading` | Text | Small label above the heading. Rendered as `<p>`, not a heading tag |
15
15
  | `postHeading` | Text | Small label below the heading. Rendered as `<p>`, not a heading tag |
@@ -17,8 +17,8 @@ A `component` entry is an individual content section — a hero, text block, car
17
17
  | `links` | Array of Links | CTA link entries attached to this component |
18
18
  | `visual` | Link (Asset or Entry) | Primary visual: image asset or responsive visual entry |
19
19
  | `mobileVisual` | Link (Asset or Entry) | Alternative visual for mobile viewports |
20
- | `backgroundColour` | Text | Named colour. Run `cms-edit colours` to see valid values |
21
- | `textColour` | Text | Named colour for text. Run `cms-edit colours` to see valid values |
20
+ | `backgroundColour` | Text | Named colour. Run `cms-edit schema colours` to see valid values |
21
+ | `textColour` | Text | Named colour for text. Run `cms-edit schema colours` to see valid values |
22
22
 
23
23
  Not all components use all fields — unused fields are simply null.
24
24
 
@@ -10,7 +10,7 @@ cms-edit create tag --slug easl-congress-2026 --name "EASL Congress 2026" --tag-
10
10
  --description "Research presented at EASL Congress 2026." --featured-image <logoAssetId>
11
11
 
12
12
  # Idempotent import helpers
13
- cms-edit ensure tag-type --slug conference-venue --name "Conference Venue"
13
+ cms-edit create tag-type --slug conference-venue --name "Conference Venue" --if-not-exists
14
14
  cms-edit resolve --tag-type-slug presentation-type
15
15
  ```
16
16
 
@@ -53,8 +53,8 @@ All creates are draft-only. See `cms-edit help taxonomy-from-json` for batch boo
53
53
  | `articleTemplate` | Link (Entry) | No | Template for article detail pages |
54
54
  | `articlePageTopContent` | Array of Links | No | Top content on article detail |
55
55
  | `structuredData` | Array of Links | No | Schema entries for article pages |
56
- | `backgroundColour` | Symbol | No | Valid values: `cms-edit colours` |
57
- | `textColour` | Symbol | No | Valid values: `cms-edit colours` |
56
+ | `backgroundColour` | Symbol | No | Valid values: `cms-edit schema colours` |
57
+ | `textColour` | Symbol | No | Valid values: `cms-edit schema colours` |
58
58
  | `indexed` | Boolean | Yes | Search indexing (default: `true`) |
59
59
  | `hidden` | Boolean | Yes | Sitemap visibility (default: `false`) |
60
60
  | `indexPageHidden` | Boolean | No | Hide article index page |
@@ -82,8 +82,8 @@ All creates are draft-only. See `cms-edit help taxonomy-from-json` for batch boo
82
82
  | `template` | Link (Entry) | No | Template for tag detail |
83
83
  | `topContent` | Array of Links | No | Top content on tag detail |
84
84
  | `structuredData` | Array of Links | No | Schema entries |
85
- | `backgroundColour` | Symbol | No | Valid values: `cms-edit colours` |
86
- | `textColour` | Symbol | No | Valid values: `cms-edit colours` |
85
+ | `backgroundColour` | Symbol | No | Valid values: `cms-edit schema colours` |
86
+ | `textColour` | Symbol | No | Valid values: `cms-edit schema colours` |
87
87
  | `indexed` | Boolean | Yes | Search indexing (default: `true`) |
88
88
  | `hidden` | Boolean | Yes | Sitemap visibility (default: `false`) |
89
89
  | `show` | Boolean | No | Visual display on cards/detail |
@@ -153,6 +153,6 @@ These top-level keys resolve to Contentful Entry/Asset links (same conventions a
153
153
  | `--if-not-exists` | Return existing entry ID when slug matches (exit 0) |
154
154
  | `--dry-run` | Validate field build and link resolution without writing |
155
155
 
156
- **Idempotency:** `--if-not-exists` and `ensure` check Contentful then create. They work for **sequential** import scripts. Do not run two creates for the same slug in parallel — both may succeed. Re-run with `--if-not-exists` to converge.
156
+ **Idempotency:** `--if-not-exists` checks Contentful then creates. They work for **sequential** import scripts. Do not run two creates for the same slug in parallel — both may succeed. Re-run with `--if-not-exists` to converge.
157
157
 
158
158
  Use `CMS_EDIT_JSON=1` or `--json` for machine-readable output: `{ ok, id, slug, contentType, status: "created"|"existing"|"dry-run" }` (`id` is empty on dry-run).
@@ -27,7 +27,7 @@ Many content types have a `*Type` field that picks a specific variant:
27
27
  | `component` | `componentType` | `HeroSimple`, `TextBlock`, `CardGrid`, `Generic`, etc. |
28
28
  | `collection` | `collectionType` | `CardGrid`, `Timeline`, `CategoryExplorer`, etc. |
29
29
 
30
- Run `cms-edit types` to see all valid discriminator values for the current space.
30
+ Run `cms-edit schema types <content-type>` to see all valid discriminator values for the current space.
31
31
 
32
32
  ---
33
33
 
@@ -35,7 +35,7 @@ Run `cms-edit types` to see all valid discriminator values for the current space
35
35
 
36
36
  The `backgroundColour` and `textColour` fields accept named values, not hex codes.
37
37
 
38
- Run `cms-edit colours` to see valid values for the current space.
38
+ Run `cms-edit schema colours` to see valid values for the current space.
39
39
 
40
40
  Common values: `"Navy"`, `"White"`, `"Grey"`, `"Black"`, `"Brand"`.
41
41
 
@@ -40,7 +40,7 @@ Catalog commands **prefer** the index when present (CMA fallback if a row is mis
40
40
 
41
41
  - `cms-edit list --type page|article|pageVariant|template|articleType|tagType|tag|navigation|navigationItem`
42
42
  - `cms-edit open`, `cms-edit resolve`, `cms-edit nav open` — see [lookup.md](./lookup.md)
43
- - `cms-edit create … --if-not-exists` / `ensure` for taxonomy
43
+ - `cms-edit create … --if-not-exists` for taxonomy
44
44
  - `tagTypeSlug` / `tagTypeName` shorthands in JSON create flows
45
45
 
46
46
  For `--type template`, `--slug` filters by **cmsLabel** (not URL slug).
@@ -10,7 +10,8 @@
10
10
  |---|---|
11
11
  | `cms-edit` | Command list + one-line descriptions |
12
12
  | `cms-edit <command> --help` | Options and synopsis for a command |
13
- | `cms-edit help <topic>` | Full narrative help with examples |
13
+ | `cms-edit guide [topic]` | Short getting-started markdown for hosted MCP (`overview`, `workflow`, `commands`, `troubleshooting`, `hosted`) |
14
+ | `cms-edit help <topic>` | Detailed CLI playbooks with examples (this index lists topics) |
14
15
 
15
16
  Available topics for `cms-edit help <topic>`:
16
17
 
@@ -22,8 +23,8 @@ Available topics for `cms-edit help <topic>`:
22
23
  | `person-from-json` | Batch-create person/author entries from JSON |
23
24
  | `article-tags-from-json` | Set tags on multiple articles from JSON |
24
25
  | `bulk-rtf-replace` | Find-replace plain text across Rich Text fields in entry trees |
25
- | `run` | Execute a batch of operations from a JSON file |
26
26
  | `batch` | Edit multiple entries by Contentful entry ID, then save once |
27
+ | `batch-run` | Execute a JSON script of operations (`batch run --file`) |
27
28
  | `fields` | Overview of all content types |
28
29
  | `fields-page` | All fields on a `page` entry |
29
30
  | `fields-article` | All fields on an `article` entry |
@@ -39,8 +40,8 @@ Available topics for `cms-edit help <topic>`:
39
40
  ## Quick-Start One-Liners
40
41
 
41
42
  ```bash
42
- # See what pages exist
43
- cms-edit sitemap
43
+ # See what pages exist (catalog index; auto-syncs if needed)
44
+ cms-edit list --type page
44
45
 
45
46
  # Open a page and inspect it
46
47
  cms-edit open --page-slug /about
@@ -69,7 +70,7 @@ cms-edit article-tags-from-json --file tags.json
69
70
  cms-edit bulk-rtf-replace --find "Old" --replace-plain "New" --dry-run
70
71
 
71
72
  # Run a batch of edits
72
- cms-edit run --file patch.json
73
+ cms-edit batch run --file patch.json
73
74
  ```
74
75
 
75
76
  ---
@@ -77,6 +78,9 @@ cms-edit run --file patch.json
77
78
  ## Commands by Category
78
79
 
79
80
  ### Navigation & Discovery
81
+
82
+ **Content discovery** uses the local catalog index (`index sync`) and `list --type <type>`. Catalog types: `page`, `article`, `pageVariant`, `template`, `articleType`, `tagType`, `tag`, `navigation`, `navigationItem`. Other types (e.g. `person`, `customType`, `pageTest`): `list --type <type> --force-cma`.
83
+
80
84
  | Command | Description |
81
85
  |---|---|
82
86
  | `open --page-slug <slug>` | Load a page into the session (see `help lookup`) |
@@ -86,15 +90,14 @@ cms-edit run --file patch.json
86
90
  | `snapshot` | Re-print the current session's content tree with @refs |
87
91
  | `read [@ref] [field]` | Read fields from the active session (@refs from snapshot) |
88
92
  | `read <id> --id [field]` | Read entry fields by ID without an open session |
89
- | `sitemap` | List all pages with their slugs |
90
- | `list --type <ct>` | List all entries of a content type |
93
+ | `list --type <ct>` | List catalog entries (page, article, pageVariant, template, taxonomy, nav, …) |
91
94
  | `search <query>` | Full-text search across entries |
92
95
  | `resolve <id>` | Resolve a Contentful entry or asset ID |
93
96
  | `resolve --page-slug <slug>` | Resolve an entry by flat lookup flag (no session); see `help lookup` |
94
- | `ensure tag-type\|tag\|article-type …` | Idempotent taxonomy create (returns existing entry if slug matches) |
95
- | `types` | List valid type-discriminator values |
96
- | `colours` | List valid backgroundColour / textColour values |
97
- | `schema` | Display the content model schema |
97
+ | `create tag-type\|tag\|article-type … --if-not-exists` | Idempotent taxonomy create (returns existing entry if slug matches) |
98
+ | `schema types <content-type>` | List valid type-discriminator values |
99
+ | `schema colours` | List valid backgroundColour / textColour values |
100
+ | `schema <content-type>` | Display field definitions for a content type |
98
101
  | `health` | Check Contentful API connectivity |
99
102
 
100
103
  ### Editing
@@ -115,7 +118,6 @@ cms-edit run --file patch.json
115
118
  | `diff` | Show unsaved changes |
116
119
  | `save` | Write changes to Contentful as drafts |
117
120
  | `discard` | Discard unsaved changes |
118
- | `revert` | Revert an entry to its published version |
119
121
 
120
122
  ### Content Creation
121
123
  | Command | Description |
@@ -135,17 +137,19 @@ cms-edit run --file patch.json
135
137
  ### Batch Operations
136
138
  | Command | Description |
137
139
  |---|---|
138
- | `run --file <path>` | Execute a JSON batch of operations |
140
+ | `batch set <entryId>:field=value …` | Queue scalar updates on multiple entries by ID |
141
+ | `batch diff` / `batch save` / `batch discard` | Review and commit batch session |
142
+ | `batch run --file <path>` | Execute a JSON batch of operations |
139
143
 
140
144
  ### Utilities
141
145
  | Command | Description |
142
146
  |---|---|
143
- | `backup` | Snapshot Contentful state |
144
- | `audit` | Audit content issues (images, alt-text, orphaned) |
147
+ | `asset review` | Audit visual assets (filename, alt, size, dimensions) |
145
148
  | `preview url` | Generate a page preview URL |
146
149
  | `preview showcase` | Generate a component/collection showcase URL |
147
150
  | `preview` | Generate preview URLs |
148
- | `skill` | Manage installed skills |
151
+
152
+ Agent skills: `npx skills add @se-studio/skills`
149
153
 
150
154
  ---
151
155
 
@@ -163,10 +167,11 @@ cms-edit run --file patch.json
163
167
 
164
168
  ## Further Reading
165
169
 
170
+ - `cms-edit guide overview` — hosted/MCP getting started
166
171
  - `cms-edit help workflow` — step-by-step editing guide
167
172
  - `cms-edit help create-from-json` — single-shot page creation
168
173
  - `cms-edit help taxonomy-from-json` — batch taxonomy bootstrap
169
174
  - `cms-edit help fields-taxonomy` — tagType, articleType, and tag field reference
170
- - `cms-edit help run` — batch operations and variable binding
175
+ - `cms-edit help batch-run` — JSON operation scripts and variable binding
171
176
  - `cms-edit help fields-page` — complete page field reference
172
- - `cms-edit --docs` — full README path (for reading in an editor)
177
+ - `cms-edit --docs` — full README path (for reading in an editor)
@@ -35,7 +35,7 @@ cms-edit open --page-slug /
35
35
  cms-edit open --page-slug /index
36
36
  ```
37
37
 
38
- `sitemap` lists the homepage as `/index` (display formatting). Non-standard sites (e.g. Pedestal `home`) document overrides in the editor-pack `routing` resource.
38
+ `list --type page` shows slugs as stored in Contentful. Non-standard homepage slugs (e.g. Pedestal `home`) are documented in the editor-pack `routing` resource; open with `--page-slug /` or the CMS slug from routing.
39
39
 
40
40
  ```bash
41
41
  cms-edit open --page-slug /pricing/
@@ -54,7 +54,7 @@ You can also pass a full Rich Text document on `bio` inside `fields` instead of
54
54
 
55
55
  ```bash
56
56
  cms-edit create person --slug jane-smith --name "Jane Smith" --job-title "CMO" --bio-file bio.md
57
- cms-edit ensure person --slug jane-smith --name "Jane Smith"
57
+ cms-edit create person --slug jane-smith --name "Jane Smith" --if-not-exists
58
58
  ```
59
59
 
60
60
  ---
@@ -69,7 +69,7 @@ cms-edit set @p0 authors <personId1>,<personId2> --links
69
69
  cms-edit diff && cms-edit save
70
70
  ```
71
71
 
72
- Or batch-link in a `cms-edit run` ops file.
72
+ Or batch-link in a `cms-edit batch run` ops file.
73
73
 
74
74
  ---
75
75
 
@@ -78,5 +78,5 @@ Or batch-link in a `cms-edit run` ops file.
78
78
  | Command | Purpose |
79
79
  |---|---|
80
80
  | `cms-edit create person` | Create one person |
81
- | `cms-edit ensure person` | Idempotent single create |
81
+ | `cms-edit create person … --if-not-exists` | Idempotent single create |
82
82
  | `cms-edit help fields` | Field overview |
@@ -88,7 +88,7 @@ Human mode prints a summary per entry. JSON mode (`CMS_EDIT_JSON=1` or `--json`)
88
88
 
89
89
  ## Idempotent import pattern
90
90
 
91
- Combine batch bootstrap with `ensure` and `resolve` for script-friendly imports:
91
+ Combine batch bootstrap with `create … --if-not-exists` and `resolve` for script-friendly imports:
92
92
 
93
93
  ```bash
94
94
  # One-time taxonomy bootstrap
@@ -99,7 +99,7 @@ cms-edit resolve --tag-type-slug presentation-type --json
99
99
  cms-edit resolve --tag-slug asco-2025 --json
100
100
 
101
101
  # Add a single entry idempotently
102
- cms-edit ensure tag --slug new-tag --name "New Tag" --tag-type presentation-type
102
+ cms-edit create tag --slug new-tag --name "New Tag" --tag-type presentation-type --if-not-exists
103
103
  ```
104
104
 
105
105
  ---
@@ -111,5 +111,5 @@ cms-edit ensure tag --slug new-tag --name "New Tag" --tag-type presentation-type
111
111
  | `cms-edit create tag-type` | Create one tagType |
112
112
  | `cms-edit create article-type` | Create one articleType |
113
113
  | `cms-edit create tag` | Create one tag |
114
- | `cms-edit ensure …` | Alias for create with `--if-not-exists` |
114
+ | `cms-edit create … --if-not-exists` | Idempotent single-entry create |
115
115
  | `cms-edit help fields-taxonomy` | Full field reference |
@@ -8,7 +8,7 @@ The standard workflow is: **open → snapshot → read/edit → diff → save**.
8
8
 
9
9
  ```bash
10
10
  # List all pages with slugs
11
- cms-edit sitemap
11
+ cms-edit list --type page
12
12
 
13
13
  # Search for entries by text
14
14
  cms-edit search "hepatology"
@@ -58,7 +58,7 @@ When a site editor pack is deployed, these MCP resources provide **site-specific
58
58
  | `cms_edit_create_article` | Create an article (requires article type; featured image rules) |
59
59
  | `cms_edit_create_from_doc` | Create a page from a freeform document (infer → confirm → dry-run) |
60
60
  | `cms_edit_create_article_from_doc` | Create an article from a freeform document |
61
- | `cms_edit_taxonomy` | Import or ensure taxonomy entries |
61
+ | `cms_edit_taxonomy` | Import taxonomy entries (`create … --if-not-exists`) |
62
62
  | `cms_edit_bulk_seo` | Update SEO meta descriptions (read `task-seo-descriptions`) |
63
63
  | `cms_edit_bulk_find_replace` | Bulk find-replace in rich text across entries |
64
64
  | `cms_edit_bulk_article_tags` | Update tags on one or more articles |
@@ -81,7 +81,7 @@ Each step is a separate `cms_edit` call. Sessions persist in Redis between calls
81
81
  ["open", "--id", "<entry-id>"]
82
82
  ```
83
83
 
84
- **Homepage (all SE Studio sites):** Contentful stores the marketing homepage slug as `index`. The live site URL is `/`. In cms-edit, `--page-slug /` and `--page-slug /index` are equivalent (both resolve to `index`). `sitemap` displays this page as `/index` — that is formatting, not a different slug. Read `cms-edit://customer/routing` for site-specific exceptions (e.g. Pedestal uses `home`).
84
+ **Homepage (all SE Studio sites):** Contentful stores the marketing homepage slug as `index`. The live site URL is `/`. In cms-edit, `--page-slug /` and `--page-slug /index` are equivalent (both resolve to `index`). Read `cms-edit://customer/routing` for site-specific exceptions (e.g. Pedestal uses `home`).
85
85
 
86
86
  ### 2. Snapshot — see the content tree
87
87
 
@@ -169,7 +169,7 @@ Use MCP prompt `cms_edit_create_article` for guided creation.
169
169
  ### List all pages
170
170
 
171
171
  ```
172
- ["sitemap"]
172
+ ["list", "--type", "page"]
173
173
  ```
174
174
 
175
175
  ### Refresh local index (assets, media, templates, taxonomy)
@@ -254,12 +254,12 @@ Asset search and media-by-filename list **require** the index. Template/taxonomy
254
254
  ["list", "--type", "article", "--sort", "date", "-n", "10"]
255
255
  ```
256
256
 
257
- Alternatives: `["search", "<keyword>", "--type", "article"]` (also sorts by date), `["sitemap", "--include", "article", "--sort", "date"]`.
257
+ Alternative: `["search", "<keyword>", "--type", "article"]` (also sorts by date).
258
258
 
259
259
  **Draft articles** — `peek` and `open` load drafts via CMA (not published-only). To discover drafts:
260
260
 
261
261
  ```json
262
- ["sitemap", "--include", "article", "--status", "draft"]
262
+ ["list", "--type", "article", "--sort", "date"]
263
263
  ["search", "<title>", "--type", "article"]
264
264
  ["list", "--type", "article", "--slug", "<slug>"]
265
265
  ```
@@ -272,7 +272,7 @@ After upgrading cms-edit, run `["index", "sync"]` once so the local index includ
272
272
 
273
273
  ## Command reference (cms_edit args)
274
274
 
275
- **Discovery:** `sitemap`, `list --type <type>`, `search <query>`, `schema <contentType>`, `index sync`, `index status`
275
+ **Discovery:** `list --type <type>`, `search <query>`, `schema <contentType>`, `index sync`, `index status`
276
276
 
277
277
  **Reading:** `open --page-slug <slug>`, `open --id <id>`, `peek --page-slug <slug>`, `peek --id <id>`, `snapshot`, `read <ref>`, `read <ref> <field>`, `read <id> --id [field]`
278
278