riverbankcms 0.31.1 → 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.
@@ -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:** The `--yes` flag is required to confirm deletion.
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.