Skip to content

mxr attachments

Generated from mxr attachments --help. Edit the clap definitions in crates/daemon/src/cli/ and re-run npm run build in site/ to regenerate.

Manage message attachments

mxr attachments <COMMAND>
Subcommand Purpose
list List attachments for one message, or for every match of a --search QUERY. Multi-message output prefixes each section with --- MESSAGE_ID ---
download Download attachment(s)
open Open attachment with system handler
help Print this message or the help of the given subcommand(s)
Flag Description
-h, --help Print help

List, open, or download message attachments.

Terminal window
mxr attachments list MESSAGE_ID
mxr attachments download MESSAGE_ID 1 --dir ~/Downloads/mxr

Download attachment(s)

mxr attachments download [OPTIONS] <MESSAGE_ID> [INDEX]
Flag Description
<MESSAGE_ID>
[INDEX] Attachment index (1-based, omit for all)
Flag Description
--account <ACCOUNT>
--dir <DIR> Output directory
-h, --help Print help

List attachments for one message, or for every match of a --search QUERY. Multi-message output prefixes each section with --- MESSAGE_ID ---

mxr attachments list [OPTIONS] [MESSAGE_ID]
Flag Description
[MESSAGE_ID]
Flag Description
--search <SEARCH>
--account <ACCOUNT>
--first
--limit <LIMIT>
--format <FORMAT> [possible values: table, json, jsonl, csv, ids]
-h, --help Print help

Open attachment with system handler

mxr attachments open [OPTIONS] <MESSAGE_ID> <INDEX>
Flag Description
<MESSAGE_ID>
<INDEX> Attachment index (1-based)
Flag Description
--account <ACCOUNT>
-h, --help Print help