mxr archive
Generated from
mxr archive --help. Edit the clap definitions incrates/daemon/src/cli/and re-runnpm run buildinsite/to regenerate.
Archive a message (remove from inbox)
mxr archive [OPTIONS] [MESSAGE_ID]...Arguments
Section titled “Arguments”| Flag | Description |
|---|---|
[MESSAGE_ID] | … Message ID(s). If omitted, reads IDs from stdin when stdin is piped |
Options
Section titled “Options”| Flag | Description |
|---|---|
--search <SEARCH> | Operate on messages matching search query |
--yes | Skip confirmation |
--dry-run | Show what would happen |
--format <FORMAT> | [possible values: table, json, jsonl, csv, ids] |
-h, --help | Print help |
Use When
Section titled “Use When”Clear mail from the inbox without deleting it. Always dry-run bulk queries first.
Everyday Examples
Section titled “Everyday Examples”mxr archive MESSAGE_IDmxr archive --search 'label:newsletters older_than:30d' --dry-runSee also
Section titled “See also”- CLI overview — full command index
- Concepts — query operators, search modes, JSON shapes
- Automation contract — which commands support
--format json,--dry-run, stdin