riverbankcms 0.31.2 → 0.32.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.
- package/dist/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +4669 -2268
- package/dist/cli/init-docs/content/cli-reference.md +24 -1
- package/dist/{entryCommands-BnfJSvqs.mjs → entryCommands-BJFkJn_e.mjs} +2121 -1066
- package/dist/{eventUpsertInputSchema-NGbAnXH1.mjs → eventUpsertInputSchema-BD_RuhcK.mjs} +2 -2
- package/dist/load-config-CODn5_ki.mjs +4 -0
- package/dist/{load-config-CMeJVHDQ.mjs → load-config-CfL4ZWC8.mjs} +3 -2
- package/dist/{plan-CiwCwXPF.mjs → plan-CbzdsZp3.mjs} +1 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-BMYgDeSe.mjs → sdk-event-upsert-SodZay6g.mjs} +13293 -2591
- package/dist/{src-BXMUcFYN.mjs → src-CVyy-M-N.mjs} +377 -328
- package/dist/testing.mjs +4 -4
- package/package.json +2 -1
- package/dist/load-config-B-bx73AK.mjs +0 -4
|
@@ -1068,6 +1068,11 @@ in the CMS and are omitted from portable authored content.
|
|
|
1068
1068
|
|
|
1069
1069
|
Delete content from the CMS.
|
|
1070
1070
|
|
|
1071
|
+
Delete commands prompt locally, require `--yes` remotely, and require `--yes`
|
|
1072
|
+
with `--json`. Missing confirmation in remote or JSON mode exits with code 1.
|
|
1073
|
+
Successful JSON results contain `{ "message": "Entry deleted: …" }` (or the
|
|
1074
|
+
block equivalent) inside the standard invocation envelope.
|
|
1075
|
+
|
|
1071
1076
|
### delete entry
|
|
1072
1077
|
|
|
1073
1078
|
Delete an entry.
|
|
@@ -1086,12 +1091,30 @@ riverbankcms delete block <page-id> <block-id> --yes
|
|
|
1086
1091
|
riverbankcms delete block home old-section --yes
|
|
1087
1092
|
```
|
|
1088
1093
|
|
|
1089
|
-
**Note:**
|
|
1094
|
+
**Note:** Local interactive deletions can be confirmed at the prompt; remote
|
|
1095
|
+
and JSON deletions require `--yes`.
|
|
1090
1096
|
|
|
1091
1097
|
---
|
|
1092
1098
|
|
|
1093
1099
|
## Utility Commands
|
|
1094
1100
|
|
|
1101
|
+
### migrate entries
|
|
1102
|
+
|
|
1103
|
+
Migrate local entry files, optionally scoped to one content type:
|
|
1104
|
+
|
|
1105
|
+
```bash
|
|
1106
|
+
riverbankcms migrate entries [type] --dry-run --json
|
|
1107
|
+
riverbankcms migrate entries [type] --yes
|
|
1108
|
+
```
|
|
1109
|
+
|
|
1110
|
+
`--dry-run` previews without writing files or prompting. Writes prompt locally;
|
|
1111
|
+
JSON writes require `--yes`. `--content-dir <dir>` overrides the configured content
|
|
1112
|
+
directory; `--force` overwrites existing files during legacy conversion. JSON
|
|
1113
|
+
`result` contains `{ dryRun, metrics }`, where metrics has named migration counters
|
|
1114
|
+
rather than table rows. This command works on local files; `--env=both` is refused.
|
|
1115
|
+
Historically `--env=remote` is accepted but still acts locally, so use the default
|
|
1116
|
+
`--env=local` to avoid ambiguity.
|
|
1117
|
+
|
|
1095
1118
|
### preview
|
|
1096
1119
|
|
|
1097
1120
|
Render a block preview.
|