Command line

The command line reads and changes your Actions and Matters straight from the notes, for scripts, scheduled jobs and the terminal. Obsidian doesn’t need to be running.

matters-that-matter works with the Actions and Matters in a vault from a terminal or a script. It reads and writes the notes themselves, applying the same rules as the plugin, so Obsidian doesn’t need to be running; if it is, it picks the changes up like any other edit.

It works only with the data of Matters that Matter: Actions, Matters and the workflow. It never deletes anything and never changes settings, and every write says what it changed, property by property.

Install

It needs Node.js 20 or later. Run it without installing anything:

npx -y matters-that-matter today --vault ~/Notes

Or install it once, with npm:

npm install -g matters-that-matter

or with Homebrew:

brew install manueldelgado/tap/matters-that-matter

Then:

matters-that-matter today --vault ~/Notes

The examples below use matters-that-matter; with npx, put npx -y in front.

Your vault

Name the vault with --vault, or set MTM_VAULT once:

export MTM_VAULT=~/Notes
matters-that-matter today

The vault needs Matters that Matter installed and set up in Obsidian, since the command line reads the plugin’s settings for your statuses, types and folders. Before setup, reads work and say so; writes are refused. The command line finds your vault’s configuration folder by itself: .obsidian when it holds the plugin’s settings, otherwise the one other configuration folder that does. Name it with --config-dir <folder> only when .obsidian doesn’t hold them and several other folders do, or to choose another folder.

Commands

$ matters-that-matter --help
Matters that Matter, from the command line.            matters-that-matter 0.3.0

  matters-that-matter <command> [options]

  today                    What matters today?
  add <text> [fields]      Add an Action (quick add’s words work)
  update <action> [fields] Change an Action
  done <action>            Mark as done
  reopen <action>          Reopen a done Action
  show <action>            Everything about one Action
  list [filters]           Actions, done hidden
  add-matter <name>        New Matter
  update-matter <matter>   Change a Matter
  reviewed <matter>        Mark as reviewed
  matters                  Matters in board order
  workflow                 Statuses, types and Spheres
  parse <text>             What quick add would make of it
  open <action|matter>     Open it in Obsidian
  mcp                      Run as an MCP server (stdio)

  --vault <path>        the vault (or MTM_VAULT)
  --config-dir <dir>    its configuration folder, when not found by itself
  --json                for scripts
  --dry-run             show what would change
  --help, -h            this, or one command’s: matters-that-matter <command> --help
  --version, -V         the version

matters-that-matter <command> --help shows each command’s fields and filters. matters-that-matter mcp runs the MCP server for AI assistants.

Commands that take no words (today, list, matters, workflow, mcp) refuse them, rather than ignore what you meant:

$ matters-that-matter list Kitchen
“list” takes no words. For the Actions of a Matter, use --matter "Kitchen".

Naming things. An Action is named by its path (MTM/Actions/Call Marco about the quote.md, .md optional), its full path on disk (as the shell’s tab completion, find or ls give it), its title, or its ID (mtm-id, which --json gives as id). Matters are named by ID too, or by name, path or link text, loosely, as quick add matches them, and so are people; statuses, types and Spheres by label or ID. When a name matches several Actions, nothing is written and the command lists them:

$ matters-that-matter done "Call Marco"
Several Actions match “Call Marco”:
  MTM/Actions/Call Marco about the quote.md
  MTM/Actions/Call Marco back.md
Use the path, or more of the title.

The examples on this page come from the sample content, on Friday 9 October 2026, and from a small vault with a kitchen renovation and a builder called Marco Rossi.

What matters today?

$ matters-that-matter today
What matters today?  Friday 9 October · ~/Notes

Due today or late
  ● Buy      Pay the council tax                     Household admin            Yesterday    high
  ● Call     Confirm the worktop measurements        Kitchen renovation         Today 10:00  high
  ● Message  Answer Eve's question about the essay   Research methods course    Yesterday    medium
  ● Message  Reply to the new enquiry                Advisory practice          Today        medium
  ● Message  Data export from Bob                    Lakeside strategy review   Tue 6 Oct
  ● Visit    Visit the tile showroom                 Kitchen renovation         Wed 7 Oct

4 to sort in the Inbox · 3 reviews due · 2 long waits

As on the Today page: what’s due today or late, or, when nothing is, the next Actions (“Nothing due today. Next up:”); then the Inbox, the reviews due and the long waits.

Add an Action

$ matters-that-matter add "Call Marco about the quote /call #Kitchen !1" --due "fri 10:00"
Added “Call Marco about the quote”
  Kitchen renovation · Later · Call · due Fri 16 Oct 10:00 · high priority
  MTM/Actions/Call Marco about the quote.md

The text works as in quick add: /type, #Matter, @person, !1 to !3, and dates in words, in the languages turned on in the plugin’s settings. People and dates keep their words in the title, so add "Call @Marco on fri 10:00" is saved as “Call Marco on fri 10.00”; give the date with --due to keep it out of the title. Fields given as options win over the text. A name that matches nothing falls back as quick add does (the default type, the Inbox, the backlog status), and the output says so in a line:

$ matters-that-matter add "Ask about the gym /message #Gym"
Added “Ask about the gym”
  Inbox · Later · Message
  No Matter matches “Gym”, so it went to the Inbox.
  MTM/Actions/Ask about the gym.md

A date in the text that can’t be read, one that names no real day or has a time zone, sets no date, with a line that says so:

$ matters-that-matter add "Order the tiles 2026-13-12 #Kitchen"
Added “Order the tiles 2026-13-12”
  Kitchen renovation · Later · Write
  “2026-13-12” isn’t a real date, so no date was set.
  MTM/Actions/Order the tiles 2026-13-12.md

Nothing else is created: no Matters, no people. A new Action never takes a name another note in the vault already has: it gets ” 2”, so links to that note keep reaching it. Names are compared as your disk compares them, so “Résumé” typed either way, or “STRASSE” beside “Straße”, count as one name.

On add, an empty value (--due "", --matter "", say from a variable a script left unset) is left out, as if it hadn’t been given. When the Inbox’s note is missing, an Action added to the Inbox says so in a line; the plugin creates the note again the next time the vault is open in Obsidian.

Text that starts with a dash

Text that starts with a dash and a figure or a space is read as text: add "-5 degrees outside". Text that starts with a dash and a letter would look like an option, so put it after --, with every option before it:

matters-that-matter add --due fri -- "-x marks the spot"

A value that starts like an option is given with =: --details="--see the notes". Any option can be written that way: --due="fri 10:00".

Fields

add and update take the same fields:

Option Value
--title <text> The title. On update, it renames the note
--matter <name> A Matter
--status <status> A status
--type <type> An Action type
--priority <p> 1, 2 or 3, or high, medium or low
--start <date>, --due <date> 2026-10-16, 2026-10-16T10:00, or words such as "fri 10:00", in local time. A date that can’t be read, or that has a time zone (2026-10-16T10:00Z, "fri 10am EST"), is refused
--waiting-on <name> A person (a note); they are added to the people too
--people <name> A person; repeat for more. On update, the list replaces the people: a person left out is removed, even the one the Action waits on (who it waits on doesn’t change)
--details <text> The details. A line that starts with <!-- mtm-details or <!-- /mtm-details is refused: the plugin marks where the details start and end with such lines
--checklist <item> A checklist item; repeat for more. On update, they are added; an open item the Action already has isn’t added again
--link <note or address> A note in the vault or an http(s) address, added as a line at the end, unless the Action has that line already. Spaces in an address are written as %20, so the line stays one link
$ matters-that-matter add "Order the sink" --matter Kitchen --type buy --due 2026-10-20 --waiting-on Marco --checklist "Pick a size"
Added “Order the sink”
  Kitchen renovation · Later · Buy · due Tue 20 Oct · waiting on Marco Rossi
  MTM/Actions/Order the sink.md

Change an Action

update changes only the fields you give. Remove a value with --no-priority, --no-start, --no-due, --no-waiting-on, --no-people or --no-details. Removing who an Action waits on leaves them among its people.

$ matters-that-matter update "Confirm the worktop measurements" --status doing --no-priority --checklist "Check the corners"
Changed “Confirm the worktop measurements”
  mtm-status    next → doing
  mtm-priority  1 → (none)
  checklist     + Check the corners
  MTM/Actions/Confirm the worktop measurements.md

An empty value is refused, so a variable a script left unset never removes anything:

$ matters-that-matter update "Confirm the worktop measurements" --due ""
--due can’t be empty: give a value, or remove it with --no-due.

A checklist item or a link the Action already has isn’t added again, so asking twice adds once. When that’s all you asked for, the answer is “already as asked”.

update is strict: a value that matches nothing is refused, with the values that would work, and nothing is written. Moving an existing Action somewhere by accident would be worse than asking again.

$ matters-that-matter update "Call Marco about the quote" --status Someday
No status matches “Someday”. Statuses here: Later, Next, Doing, Waiting, Done.
Nothing was changed.

Mark as done and reopen

done sets your done status and today’s completion date; reopen moves a done Action back to the backlog status and removes it:

$ matters-that-matter done "Send the invoice"
“Send the invoice” marked as done
  mtm-status     doing → done
  mtm-completed  (none) → 2026-10-09
  MTM/Actions/Send the invoice.md
$ matters-that-matter reopen "Order the tiles"
Reopened “Order the tiles”
  mtm-status     done → later
  mtm-completed  2026-10-01 → (none)
  MTM/Actions/Order the tiles.md

Asking again changes nothing: ““Send the invoice” is already as asked. Nothing was changed.”

Show and list

show gives everything about one Action: its values, details, checklist, people, the names of the notes it links to and its attachments (the files it embeds that aren’t notes, such as a PDF or a floor plan).

$ matters-that-matter show "Confirm the worktop measurements"
Confirm the worktop measurements
  Kitchen renovation · Next · Call · due today 10:00 · high priority
  MTM/Actions/Confirm the worktop measurements.md

  Confirm the worktop measurements before ordering.

  Checklist (1 of 2)
    [ ] Ask for the revised quote
    [x] Measure the wall

  Linked notes: Some note, Marco Rossi
  Attachments: Kitchen floor plan.svg

list shows open Actions grouped by Matter, in board order. Values the plugin doesn’t recognise are named, as the badges on the board name them:

$ matters-that-matter list
Inbox
  ● Call     Call Marco back                    Later
  ● Write    Mystery                            Later                             Not recognised: status “someday” (shown as Later), type “fax” (shown as Write), Matter “[[Nowhere]]” (shown in the Inbox)
  ● Buy      Pay the council tax                Next     Yesterday, late

Kitchen renovation
  ● Call     Confirm the worktop measurements   Next     Today 10:00, late  high
  ● Call     Call Marco about the quote         Next
  ● Message  Revised quote from Marco           Waiting                           waiting on Marco Rossi, 2 weeks

Advisory work
  ● Write    Send the invoice                   Doing    Tue 20 Oct

7 Actions

Filters combine: --matter, --status, --type, --sphere, --person (with them, or waiting on them), --due-from <date>, --due-to <date>, --waiting, and --done to include done Actions. A done status in --status shows done Actions. An empty filter (--matter "") is refused: give a value, or leave the filter out. In a terminal, long titles are cut to fit its width; never in a pipe or with --json.

$ matters-that-matter list --waiting
Kitchen renovation
  ● Message  Revised quote from Marco   Waiting  waiting on Marco Rossi, 2 weeks

1 Action

Matters and the workflow

$ matters-that-matter matters
Inbox                      4 open
Kitchen renovation         Home · 7 open · 2 today or late · 1 waiting · reviewed 3 days ago
Household admin            Home · 4 open · 1 today or late · 1 waiting · review due
Learn to sail              Home · dormant · 1 open
Lakeside strategy review   Advisory · 5 open · 1 today or late · 1 waiting · reviewed yesterday
  Last time, 8 Oct: Waiting for Bob's data before the next workshop
…

Under a Matter, “Last time” is its latest review note.

add-matter adds a Matter, last on the board, with --icon (a Lucide name, such as house), --sphere, --state (active, dormant or closed), --outcome and --review-every (7d, 2w, 1m):

$ matters-that-matter add-matter "Garden shed" --sphere Home --review-every 2w --outcome "A dry place for the tools"
Added Matter “Garden shed”
  Home · active · review every 2 weeks
  A dry place for the tools
  MTM/Matters/Garden shed.md

update-matter changes a Matter: the same fields as add-matter, and only those you give. Like update, it is strict: a value that matches nothing is refused, and nothing is written. --no-outcome, --no-review-every and --no-sphere remove a value. The Inbox has only its icon to change; rename a Matter in Obsidian, which updates the links to it.

$ matters-that-matter update-matter "Learn to sail" --state active --review-every 1m
Changed “Learn to sail”
  mtm-state         dormant → active
  mtm-review-every  (none) → 1m
  MTM/Matters/Learn to sail.md

reviewed marks a Matter as reviewed, as Mark as reviewed does in Obsidian: today becomes its last review, so it’s no longer due. --note keeps a line for next time at the end of the Matter’s note, as the review does:

$ matters-that-matter reviewed "Household admin" --note "Tax return filed; the boiler service is next"
“Household admin” marked as reviewed
  mtm-last-reviewed  2026-09-06 → 2026-10-09
  review note        + Reviewed 2026-10-09: Tax return filed; the boiler service is next
  MTM/Matters/Household admin.md

workflow lists the statuses, types and Spheres with the IDs notes store:

$ matters-that-matter workflow
Statuses
  Later    later    Open    backlog
  Next     next     Open
  Doing    doing    Active
  Waiting  waiting  Active
  Done     done     Closed  done

Action types
  ● Call     call
  ● Message  message
  ● Write    write    default
  ● Meet     meet
  ● Buy      buy
  ● Visit    visit

Spheres
  Home      home
  Advisory  advisory
  Research  research
  Teaching  teaching

Try quick add’s words

parse shows what quick add would make of a text, and writes nothing:

$ matters-that-matter parse "Call Marco about the tiles /call #Kitchen @Marco @Zed fri 10:00 !1"
“Call Marco about the tiles”
  Kitchen renovation · Later · Call · due Fri 16 Oct 10:00 · high priority
  People: Marco Rossi
  Read: /call, #Kitchen, @Marco, @Zed (matched nothing), fri 10:00, !1
  No note matches “Zed”, so it is left out.

A date it can’t read shows as 2026-13-12 (not read as a date), with a line saying why. When nothing would be left for a title, parse says that add would refuse the text:

$ matters-that-matter parse "/call tomorrow"
“”
  Inbox · Later · Call · due tomorrow
  Read: /call, tomorrow
  No title is left once the words quick add reads are taken out, so adding this text would be refused.

Open in Obsidian

matters-that-matter open opens an Action’s note or a Matter’s overview in Obsidian, through an obsidian://mtm-open link:

$ matters-that-matter open "Send the invoice"
Opening “Send the invoice” in Obsidian.
  obsidian://mtm-open?vault=Notes&file=MTM%2FActions%2FSend%20the%20invoice.md

An Action or Matter whose path, title, name or link text matches exactly wins over a loose match of either kind: open "Kitchen renovation" opens the Matter even when an Action is called “Kitchen renovation budget”. Only when nothing matches exactly are loose matches used; when several Actions and Matters match loosely, nothing opens and the command lists them.

The link names the vault by its ID from Obsidian’s own list of vaults, so two vaults whose folders share a name can’t be confused; when the list doesn’t know the folder, by the folder’s name. If the system can’t open the link, the command line prints it for you to open. Opening links on Windows hasn’t been tried yet.

Dry runs

--dry-run shows what a write would change, and writes nothing:

$ matters-that-matter done "Call Marco about the quote" --dry-run
Would mark “Call Marco about the quote” as done
  mtm-status     next → done
  mtm-completed  (none) → 2026-10-09
  MTM/Actions/Call Marco about the quote.md
Nothing written (dry run).

A dry run checks everything the write would: a note or folder that can’t be written, or a path outside the vault, is refused just as the write would refuse it.

Output for scripts

--json prints JSON. Reads give both the raw properties and the values the plugin shows, so a script never has to work out the rules itself. The first Kitchen Action in Next, at 9:00 on 9 October (shortened: the full result also has the start date, who it’s waiting on and since when, the completion date and more):

matters-that-matter list --matter Kitchen --status next --json | jq '.[0]'
{
  "path": "MTM/Actions/Confirm the worktop measurements.md",
  "id": "6f1c2a4e-8b3d-4c6a-9e2f-1d7b5a3c9e40",
  "title": "Confirm the worktop measurements",
  "matter": { "path": "MTM/Matters/Kitchen renovation.md", "name": "Kitchen renovation", "isInbox": false },
  "status": { "id": "next", "label": "Next", "category": "open" },
  "type": { "id": "call", "label": "Call" },
  "priority": 1,
  "due": "2026-10-09T10:00",
  "today": true,
  "overdue": false,
  "orphans": [],
  "raw": { "mtm-kind": "action", "mtm-status": "next", "…": "…" }
}

Every Action and Matter has its id, the note’s mtm-id, or null while it has none: an older note gets one with its first write. The text output leaves a new ID out, but changes in JSON lists it.

show adds the details, the checklist, the people, and the names and paths of linked notes and of attachments (attachments, each with its path and name). Writes give the Action (or Matter) after the write, whether anything changed, dryRun, written, every change (changes), warnings, the links a rename updated (links) and danglingLinks, how many links are left pointing to the old name. Each warning has a code, such as unmatched-matter, unreadable-date, missing-inbox, or, from parse, no-title.

Errors are JSON too, on standard output: { "error": { "code", "message", … } }, with candidates when a name matches several things. Its field says what the name was looked for as: open gives "field": "matter" when every candidate is a Matter, and "action" otherwise. Other warnings, such as settings from a newer version of Matters that Matter, go to standard error, so standard output stays the answer.

Colour is used only when the output is a terminal and NO_COLOR isn’t set, and nothing is said by colour alone.

Exit codes

Code Meaning
0 Done
1 Nothing matched, several things did, a value can’t be read or is empty, the command or its options aren’t right, or a note’s properties aren’t valid YAML, or the properties to be changed use YAML the command line can’t change safely (an anchor, alias or tag on them; change those in Obsidian). Nothing was written. Also when matters-that-matter open couldn’t open the link
2 The vault isn’t ready: no vault named or no settings of Matters that Matter (nothing runs), or, for a write, setup not done or settings from a newer version of the plugin (reads still work then, and say so; writes are refused)
3 The write didn’t happen, and nothing was written. The vault changed while the command line was writing: a note it writes or relies on (the Matter it files an Action under, say) changed or went away, or the plugin’s settings changed, twice in a row; a note took the new name meanwhile, even after a few tries with other free names; or another write is adding a note of the same name right now. Or a write would have gone outside the vault, a note or folder to be written is read-only (a note locked in the Finder too), or writing failed and everything was put back. If the vault changed, try again; make a read-only note or folder writable first. In the rare case that something couldn’t be put back, the message names those files
130, 143 Stopped with Ctrl-C (130) or kill (143). A write in progress was finished first, or put back, never left half done

Safety

  • Only the plugin’s lines. Only mtm- properties change, and in an Action’s body only its details, checklist and links. Everything else in a note stays as it is, line endings included. The one change to other notes is a rename’s link updates, described above.
  • All or nothing. Every note is checked against what was read before anything is written. New contents go to hidden temporary files beside the notes (.mtm-….tmp; one left behind by a crash can be deleted), then move into place; if a step fails, everything already moved is put back. If another program changed a note the write depends on, or the plugin’s settings, in the meantime, the command line reads everything again once (the settings too) and works the write out afresh, then gives up (exit code 3) rather than overwrite that change.
  • Ctrl-C waits for the write. Stopping the command with Ctrl-C or kill while it writes lets the write finish, or be put back, and then ends it (exit code 130 or 143). A write is never left half done.
  • Two writes at once. While a write gives a note a new name, a hidden lock file beside it (.mtm-….lock) keeps other runs of the command line, and other MCP servers, from taking the same name. Several adds of one title at the same time each get their own name (” 2”, ” 3”…) and never overwrite each other. A lock left behind by a crash is taken over after 10 seconds, or can be deleted.
  • Inside the vault. Nothing is written outside the vault folder, nor through a link (symlink) to a folder elsewhere. Linked files and folders are skipped when reading.
  • Read-only notes stay as they are. A note made read-only (say with chmod 444, or locked in the Finder), or one in a folder that can’t be written, is never written: the whole write is refused (exit code 3) and nothing changes. A dry run says so too.
  • Creation dates are kept. A written note is a new file put in the old one’s place. On macOS it keeps its creation date, which Obsidian shows as the note’s created time. Extended attributes, such as Finder tags, aren’t kept, and a hard link to the note keeps the old content.
  • Nothing deleted, and settings never written.
  • Obsidian open at the same time is fine. It sees each change as it lands, and since the completion and waiting-since dates are already set, Matters that Matter doesn’t set them again.