Command line
Work with your tasks from Terminal, shell scripts and AI agents with the todebaran command.
The todebaran command reads and changes your tasks, projects, tags, slips,
journal and habits from Terminal — for you at a prompt, for your shell scripts, and for AI
agents that work with a shell, like Claude Code or Codex. It talks to the
Todebaran app on your Mac; the app owns your data, the command only asks it.
Pro, and off until you turn it on
The command line is part of Todebaran Pro. Turn it on in Settings → Automation → Command Line.
Install it
Todebaran puts todebaran on your PATH by itself the first time it runs, when a
folder on your PATH takes it without a password. Otherwise open Settings →
Automation → Command Line and press Install — macOS asks for your
password to put it in /usr/local/bin — or paste the command shown there into
Terminal. Installing from Settings also turns the command line on.
Check that everything is in place:
todebaran check
It walks through the command, the app, the API token, the Command Line switch and your MCP clients, and says what to fix first.
The app doesn't need to be open
When a command needs the app, Todebaran starts in the background — no window, no Dock icon — and quits by itself after 15 minutes without a request.
Everyday commands
todebaran today # Today, as the app shows it
todebaran upcoming # Upcoming, day by day
todebaran inbox # the Inbox
todebaran add "Call Petr #work @Home friday !2026-11-20"
todebaran done "Buy milk" # complete a task
todebaran open "Call Petr" # show it in the app
todebaran open --project Home
todebaran search-tasks --search-query invoice
add reads one line the way Quick Add does: a date
schedules the task, ! with a date sets the deadline, #name adds a tag and
@name puts it in a project.
Names work where ids go
Anything that names a task, project, collection, tag, heading, slip, countdown, habit or printer takes its exact name as well as its id — case and accents don't matter. When several open things share a name, the command refuses and lists them with their ids; use an id then.
todebaran move-to-project "Call the garage" --project-id Home
Every action is a command
Everything an AI client can do is also a command, named
after it: create-task, update-task, schedule-task, set-task-tags,
upsert-journal, append-journal, print-slip, focus-start…
todebaran help # every command
todebaran help schedule-task # its flags
todebaran actions --json # the list, for scripts
- The first required field may be given without its flag:
todebaran schedule-task "Call Petr" --start-date 2026-11-13. nullclears a field that can be cleared:--deadline null.-reads a value from standard input:todebaran append-journal 2026-11-10 --content - < notes.md.- Lists take repeated flags or commas:
--tag-ids work --tag-ids errand. - Days are always
YYYY-MM-DD; a start date may also besomeday. - For input a flag can't say, pass JSON:
todebaran call todebaran_update_task '{"id":"…","subtasks":[…]}'.
Deleting
Commands that delete something ask first in a terminal, and need --yes in a
script. A task goes to the Trash; a
project or collection takes the projects below it along, and its tasks go to the
Trash — except in a shared area, where they're
deleted for every member.
Slips
todebaran slips # every slip: what it reads, asks and uses
todebaran slip "Morning Brief" # one in full: its questions, triggers, last run
todebaran run "Day Close" --answer Mood=tired # run without paper, print what it made here
todebaran print --slip "Morning Brief" --answer City=Brno
todebaran outbox # what waits in the slip queue
todebaran runs --slip "Morning Brief" # the latest runs, from Activity
--answer name=value answers a question the slip asks, by the Input's name;
repeat it for each. A question left out takes the Input's own value, and the
command says which did. A slip runs in a Todebaran window — with none open, it
waits in the queue until one opens.
todebaran done on a task with a slip of its own runs the slip first, as the app
does, and completes the task once it went through.
Tasks as text
todebaran export-text --project-id Home > home.md # a project as Todebaran Markdown
todebaran export-text --view inbox # today (the default), inbox or someday
pbpaste | todebaran add-text - --today # every line of the clipboard, planned for today
todebaran add-text - --project-id Home < plan.md # into a project, ## headings and all
add-text reads text the way pasting into a list does — Markdown, bullets,
checkboxes, TaskPaper, Obsidian Tasks — into the Inbox, a project
(--project-id) or today (--today). See Tasks as text.
Habits
todebaran habits # every habit, as it stands today
todebaran habits --due-only # only what Today asks for
todebaran check-in Water # done — or one more glass
todebaran check-in Read --day 2026-11-13 # a day you forgot
todebaran set-habit-day Read --state skipped # skip, or --state none to undo
todebaran set-habit-day Water --count 5 # set a count outright
todebaran open --habit Water # show it in the habits manager
check-in never takes anything away: a day already done stays as it is. Use
set-habit-day to undo, skip or set a count. A day still ahead can only be
skipped. See Habits.
Printing and focus
echo "Back at 3" | todebaran print # plain text to the receipt printer
todebaran print --slip "Morning Brief" # run a slip and print it
todebaran printers # printers, and whether each is ready
todebaran focus start "Write report"
todebaran focus pause # resume, skip, stop
todebaran focus status --short # ● 24:13 Write report — for a prompt or status bar
focus status never starts the app, so it's safe in a shell prompt that runs
every few seconds. Printing isn't idempotent: running a print twice prints twice.
In scripts
Add --json to any command. Its standard output is then exactly one JSON value
— the answer, or on failure { "success": false, "error", "kind", "candidates" }
— and messages go to standard error.
Branch on the exit code, never on the wording:
| Code | Meaning |
|---|---|
0 | Done |
1 | The command ran and failed — a print that didn't print, a project that's completed |
2 | Wrong usage — an unknown command, a missing or malformed flag, a date that isn't one |
3 | Not found — or a name several things share (candidates lists them) |
4 | Todebaran unreachable, Command Line turned off, wrong token, or no Pro |
5 | A destructive command without --yes and no terminal to ask |
For AI agents
todebaran guide >> AGENTS.md
prints a guide for an agent with a shell — the rules, --json, the exit codes
and every command — read off the app itself, so it's never older than your
install.
To keep an agent from changing anything, turn on Read only in Settings → Automation → Command Line: commands that read keep working, and anything that would change your data is refused.
MCP from the command line
todebaran mcp is the MCP server AI apps run. It sets them up too:
todebaran mcp install claude-code # or claude-desktop, cursor
todebaran mcp clients # which are set up
todebaran mcp config # the JSON, for any other client
See MCP integration.
Shell completions
Tab completes commands, flags, and the names of your projects, tags and tasks while Todebaran is open:
echo 'eval "$(todebaran completions zsh)"' >> ~/.zshrc
echo 'eval "$(todebaran completions bash)"' >> ~/.bashrc
todebaran completions fish > ~/.config/fish/completions/todebaran.fish
If it doesn't work
Run todebaran check — it says what stands in the way. The most common answers:
- "The command line is turned off" — turn it on in Settings → Automation → Command Line. In a terminal, the command offers to open that page for you.
- "Todebaran did not become reachable" — something else holds port
21983. Quit it, then quit and reopen Todebaran. - "this command is …; quit and reopen Todebaran" — an older Todebaran is still running after an update.