Skip to content

mxr undo

Generated from mxr undo --help. After editing crates/daemon/src/cli/, update and review the snapshots with scripts/cargo-test -p mxr --test integration cli_help::, then rebuild site/.

Undo a recent destructive mutation by its id (~60s window). The mutation id is printed by archive, trash, spam, mark-read, read-archive and desk done; copy it from there. A job started with --all cannot be undone

mxr undo [OPTIONS] <MUTATION_ID>
Flag Description
<MUTATION_ID>
Flag Description
--dry-run Show which undo would run without mutating state
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Preview reversing a mutation using the mutation ID returned by the original operation.

Terminal window
mxr undo MUTATION_ID --dry-run --format json