Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Fix update --dry-run: skip version check so dry-run output is shown

Martin Vogela515fec7bd6f
diff --git a/src/cli/cli.c b/src/cli/cli.c
index f54903ae5..919c27b45 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -3395,8 +3395,8 @@ int cbm_cmd_update(int argc, char **argv) {
printf("codebase-memory-mcp update (current: %s)\n\n", CBM_VERSION);
- /* Version check — skip download if already on latest. */
- if (!force && check_already_latest()) {
+ /* Version check — skip download if already on latest (not in dry-run). */
+ if (!force && !dry_run && check_already_latest()) {
return 0;
}