# mt recur

`mt recur` is the only command that advances a `recur:` field. Read commands such as `mt ls` never change it. [Recurring tasks](https://mlavrinenko.github.io/mindtape/recurring/index.md) describes the schedule format and what a new occurrence keeps.

`mt recur` writes a new occurrence through the same destination guard. That guard refuses a template directory, a reserved `.mindtape` or `.git` path, a destination that is itself a symlink, and a new file under a Git ignore rule. It suggests moving the task or unignoring its path. [Which files count as tasks](https://mlavrinenko.github.io/mindtape/concepts/index.md#which-files-count-as-tasks) defines the paths that qualify.

Write the next occurrence of a recurring task

By default it writes a new task linked back to this one. With `materialize: "mutate"`, it resets this task in place instead. `mt done` closes a recurring task without writing the next one.

Runs on one project and refuses a [set](https://mlavrinenko.github.io/mindtape/read-many-projects/index.md).

- `<TASK>`: The task: its stem, its hash, or the path to its file
- `--dry-run`: Show what the command would write without writing it
- `--advance <N>`: Write the next N occurrences as new tasks at once
  Works only for a task that spawns a new file each time.
- `--skip`: Move the schedule past the next occurrence without writing it
- `--force`: Write the next occurrence even if one already exists

```
$ mt recur rotate-the-jwt-signing-key --dry-run    # preview without writing
would spawn tasks/rotate-the-jwt-signing-key-2026-12-30.typ (due 2026-12-30) from rotate-the-jwt-signing-key
$ mt recur rotate-the-jwt-signing-key              # spawn a new file, or refresh in place
spawned tasks/rotate-the-jwt-signing-key-2026-12-30.typ (due 2026-12-30)
$ mt recur rotate-the-jwt-signing-key --force      # spawn again even if a successor exists
spawned tasks/rotate-the-jwt-signing-key-2026-12-30-2.typ (due 2026-12-30)
$ mt recur rotate-the-jwt-signing-key --skip       # advance the anchor and count, spawn nothing
skipped rotate-the-jwt-signing-key (Rotate the JWT signing key): now due 2026-12-30
```

Every command also takes the [global flags](https://mlavrinenko.github.io/mindtape/cli/index.md#global-flags).
