CLI reference
Every mt command by group, each linking to its page of flags, notes and generated transcripts.
Your task files are plain text, and you can edit them in any editor. mt does the fiddly parts for you: it stamps status dates, writes link paths, fills template slots and checks every task. Each command prints its result, and its exit code reports whether it succeeded.
The build generates these pages from the binary: the commands and flags come from mt’s own argument parser (mt _cli --json). Each example is a command the build ran in a terminal, most of them in examples/api-service, a sample backend project’s backlog, so what you see is what that run printed.
$ mt --version
mt 0.6.0mt --help ends on these lines:
Every status is a command too, like mt wip <task> and mt done <task>.
Run mt flip --list to see them all.
Put @name first, as in mt @work ls, to run in a project or set mt at lists.
Hints
Every refusal ends on a hint that states what to do next, and the command it gives is one mt provides: mt check, mt flip, mt allow. The hint never gives a just recipe from this repository’s own Justfile, because mt installs into projects that have no Justfile. There, just check fails before it can fix anything.
just lint no-just-in-output holds that rule over the strings the binary prints, and points at the file and line of a hint that breaks it. tests/it/cli_text_e2e.rs holds the reflected help text to the same rule. A doc comment may mention a recipe: a reader of the source is in this repository, and a user of the binary never sees the comment.
Global flags
Every command takes these flags:
-w, --worktree <PATH> | Use the project at PATH, not the one the current directory is in PATH is the directory holding |
-v, --verbose… | Print more logging: It also lists every site of a Typst warning that
|
--color <WHEN> | When to color the output
|
--path-separator <SEP> | Write the separator between folders in every path mt shows you Defaults to your platform's own, |
Paths
mt shows you each path in your platform’s own separator, \ on Windows and / everywhere else. That’s the file column, --format path, the location an error names, and every path in a message, so you can paste any of them straight into your shell.
A path a program reads uses / on every platform. That’s the file field of --json and --format csv, the file and place of mt check --json, and every link mt writes into a task. A script reads the same output on every machine, and a task file has the same paths in every checkout.
--path-separator picks the separator of the paths shown to you, as it does in ripgrep and fd. What a program reads keeps its /.
$ mt --path-separator '\' ls ready -n 2 --format path
tasks\index-the-orders-by-customer.typ
tasks\reject-expired-sessions-on-token-refresh.typ
$ mt --path-separator '\' ls ready -n 2 --json | jq -r '.tasks[].file'
tasks/index-the-orders-by-customer.typ
tasks/reject-expired-sessions-on-token-refresh.typFiles
mt add | File a new task from a template |
mt import | Import tasks from JSON (the `mt ls --json` format), checking them all first |
mt mv | Rename a task's file and update every link that points to it |
mt go | Open a task in your editor, set by `[go] editor` |
mt eval | Evaluate one task file and print it, even outside a project |
Fields
mt set | Change one field of a task: `mt set <task> <field>=<value>` |
Listing
mt ls | List tasks, optionally filtered |
mt find | Find tasks that contain every word you give |
mt board | Show one row per project: its open, ready and blocked counts and what's next |
Graph
mt graph | Draw tasks and the links between them, as Graphviz DOT or Mermaid |
Links
mt link | Link tasks: one link at a time, or many from a file |
Status
Recurring tasks
mt recur | Write the next occurrence of a recurring task |
Validate and inspect config
mt check | Check every task and every template against your project's rules |
mt dicts | List the project's dictionaries, or one dictionary's entries |
mt templates | List the templates `mt add` accepts, with the kind each sets |
mt config | Show the config mt uses |
mt schema | Print or check the JSON Schema for a machine output |
Retire
mt rm | Delete tasks, keeping links to them findable in git history |
Setup
These commands write the files that Quickstart, Configuration and For AI agents describe.
mt init | Create `.mindtape/config.toml` in the current directory |
mt install | Install the Typst package, defaults, schema and completions |
mt fix | Rewrite the files an mt upgrade left behind |
mt packs | Fetch the pack sources `.mindtape/packs.lock` pins, or move the lock |
mt allow | Trust the commands your config runs in this repo |
mt at | List the `@name`s of `at.toml`, or the projects one of them holds |
mt preset | Save this project's setup as a preset for `mt init`, or list presets |
mt, For AI agents collects the JSON output, exit codes and environment variables it reads.