Skip to main content
Without --json, CLI errors are written to standard error as human-readable text beginning with error:. With --json, errors contain schema_version and an error object with code, message, and exit_code.
Exit codeMeaningRecovery
0SuccessConsume stdout.
1Database or operation failure, or an unhealthy doctor reportCheck the reported action or inspect the diagnostic report and confirm app and CLI compatibility.
2Meeting, note, or other requested data not foundList meetings again and use a returned ID.
3Database file not foundOpen Anarlog once or provide the correct database path.
4Export output already existsChoose another path or explicitly pass --force to replace the file.
Invalid arguments use the invalid_arguments error code with Clap’s nonzero exit code. MCP reports missing meetings as invalid parameters. Database and serialization failures are internal MCP errors. Do not recover by creating tables, running migrations, or issuing SQL. The desktop app owns schema initialization and migrations.