One-line commands
Use the moor command without its menu. Each command does one thing and prints one answer, for a quick check from your iPad or a script on your Mac.
Everything in moor's menu can also be done with a single command. Each one
runs, prints its answer and finishes, which is handy for a quick check over
SSH or for a script.
The commands
moor ls # every session: number, project, name, branch, state
moor attach 3 # open session 3 (or by its tab name)
moor send 3 "please rebase" # type a line into session 3 without opening it
moor cards -p skiver # a project's open cards
moor cards -p skiver --status ready # ready, in-progress, in-review, done or all
moor card SKV-8 # read a card
moor new "Fix the login" -b "Details" # add a card, with an optional description
moor comment SKV-8 "Checked on iPad" # comment on a card
moor start SKV-8 # start work: worktree, branch and Claude, card linked
moor new-session -p skiver # a new session in the project's folder
moor --version # which moor you have
moor --help # what moor is, and every commandChoose the project
-pnames a project by its code (skv), its name (skiver) or its id, in any case.- Without
-p,mooruses the project whose folder you're in. - A card key such as
SKV-8finds its own project. - A bare number such as
8needs the project from-por the folder.
If two projects share a name, moor asks you to be more specific and lists
both folders.
Aim at the right session
moor attach and moor send take a session's number, its tab name (in any
case) or its tmux session name.
A number means the line it had in the last list this terminal showed,
from moor ls or the menu, not whatever has that number now. So if a tab
opens or closes after your list, moor send 2 still reaches the session you
saw as 2:
$ moor send 2 "please rebase"
Sent to skiver · Review.- If that session has closed since,
moorrefuses and names it, rather than typing into whatever is number 2 now. Runmoor lsagain. - If this terminal hasn't listed any sessions yet, run
moor lsfirst, or use the tab name. - Each terminal has its own list, so two SSH connections never mix up each other's numbers.
- In a script, use tab names. They never move. If two tabs share a name,
moorasks for the number.
Text that starts with a dash
Text that starts with a dash is fine, unless it looks like one of moor's
own options. To be sure, put -- before it:
moor comment SKV-5 "-1, agree"
moor send 3 -- -pUse moor in scripts
-
JSON.
ls,cardsandcardtake--jsonand print Mooring's answer as JSON:moor ls --json moor cards -p skiver --status all --json -
Exit codes.
0means done.1means a refusal, something not found or a mistake in the command.2means Mooring isn't running, or its MCP is switched off.
$ moor ls
Mooring's MCP is switched off: Settings ▸ MCP.
$ echo $?
2Good to know
-
Changes need a switch on the Mac.
new,comment,start,new-sessionandsendneed Allow agents to make changes (writes) in Settings ▸ MCP, andstartandnew-sessionalso need Allow creating worktrees & spawning agents. A refusal names the switch that is off. -
moor startreturns as soon as the worktree and its tab exist. The card's text reaches Claude a moment later, and the card turns In Progress then. -
A change is never sent twice. If the connection drops part way,
moorsays the change may or may not have happened, and names the command that shows which:Mooring closed the connection before confirming, so it may or may not have happened. Check with: moor card SKV-5 -
Reading never moves your Mac's window.
start,new-sessionand opening a session that isn't running do, because a session's tab is made in the Mac's window. The Mac's screen can be off while they do. -
Not from inside Mooring. In one of Mooring's own tabs,
mooronly reads. Use Terminal, or SSH from another device, to change things.
Your cards
Read, filter and add cards from your iPad, comment on them, change their status, and start work on a card in a worktree of its own.
If something isn't working
What each message from the moor command means and what to do about it, from a missing command to a Mac that can't be reached or a switch left off.