Skip to content

mxr snippets

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

Manage compose snippets (;name expansions)

mxr snippets [OPTIONS] [COMMAND]
SubcommandPurpose
listList all snippets (default if no subcommand)
setCreate or update a snippet inline
removeDelete a snippet by name
helpPrint this message or the help of the given subcommand(s)
FlagDescription
--format <FORMAT>[possible values: table, json, jsonl, csv, ids]
-h, --helpPrint help

Manage stock reply snippets.

Terminal window
mxr snippets set thanks 'Thanks, will follow up.'
mxr snippets list --format json

List all snippets (default if no subcommand)

mxr snippets list
FlagDescription
-h, --helpPrint help

Delete a snippet by name

mxr snippets remove <NAME>
FlagDescription
<NAME>
FlagDescription
-h, --helpPrint help

Create or update a snippet inline

mxr snippets set [OPTIONS] <NAME> <BODY>
FlagDescription
<NAME>Short keyword (no spaces). Used after ; in compose
<BODY>Snippet body. Use {var_name} for placeholders
FlagDescription
--vars <VARS>Comma-separated list of declared {var} placeholders
-h, --helpPrint help