# ed download retry

> Puts a failed or interrupted entry back into the queue.

- Canonical URL: https://getedith.pro/docs/cli/download/retry
- Updated: 2026-12-02

Puts a failed or interrupted entry back into the queue.

Usage:

```
ed download retry <n> [--json]
ed download retry --all [--json]
```

Arguments:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<n>` | integer, counting from 1 | none | The download to retry, numbered as `ed download ls` numbers it. Optional, but required unless `--all` is passed. |

Options:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--all` | flag | off | Retries everything that failed or was interrupted. |
| `--json` | flag | off | Emits one JSON document on stdout. |

Only `failed` and `interrupted` entries can be retried; retrying sets them back
to `queued` and leaves everything else alone. Naming an entry in any other
state exits 1 and says which state it is in, rather than silently doing
nothing. Passing neither a number nor `--all` also exits 1. `--all` on a queue
with nothing to retry is not an error: it reports 0 and exits 0.

`--json` shape:

```json
{
  "record": {
    "id": "58F41E66-1D3E-4C0C-9D89-63DC3C082D79",
    "index": 2,
    "state": "queued"
  },
  "retried": 1
}
```

The `record` field is present for a numbered retry. `--all` returns only the
count because it can target several records.

Examples:

```
ed download retry 3
ed download retry --all
ed download retry --all --json
```

```
$ ed download retry 1
error: download 1 is done, so there is nothing to retry
```

Behaviour: `retry` rewrites `downloads.json` when something changed, and posts
`downloadQueueChanged` either way, so a running Edith picks the work up at once
rather than waiting for its next look at the file. Retrying
by number resolves the selected persisted record ID, so identical URLs remain
independent.

## Where to go next

- [`ed download`](https://getedith.pro/docs/cli/download), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
