# ed download tool

> Reports the yt-dlp that does the work, or runs its self-update.

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

Reports the yt-dlp that does the work, or runs its self-update.

Usage:

```
ed download tool [--update] [--json]
```

Options:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--update` | flag | off | Runs `yt-dlp -U` on the copy that was found, rather than only reporting its version. |
| `--json` | flag | off | Emits one JSON document on stdout. |

There are no positional arguments. yt-dlp is the one external program this
group depends on, and it is the only tool `ed download` manages. It is looked
up by scanning a fixed list of directories in order and taking the first
executable called `yt-dlp`:

```
~/Library/Application Support/Edith/Tools/bin    what Edith installs for you
every directory in your login shell PATH
~/.local/bin
~/.nvm/current/bin and each ~/.nvm/versions/node/*/bin, reverse alphabetical
/opt/homebrew/bin
/usr/local/bin
/usr/bin, /bin, /usr/sbin, /sbin
whatever your own PATH already contained, in its own order
```

Edith's own `Tools/bin` comes first, so a copy the app installed wins over a
Homebrew one. Directories under `/Volumes` that are not inside your home directory are
dropped from the search, so an unplugged external disk never decides the
answer. This is the same lookup the app uses, so `ed` and the Download sheet
always agree on which binary runs.

Installing is not here. `ed tools install yt-dlp` and the Install yt-dlp button
in Download or Music settings use Edith's shared installer: it downloads
`yt-dlp_macos` from the latest official yt-dlp release, checks it against the
release's published SHA-256 checksums, and saves it into
`~/Library/Application Support/Edith/Tools/bin`. `ed tools ls` reports which copy
Edith finds and where it came from. See [`ed tools`](https://getedith.pro/docs/cli/tools).

`--json` shape without `--update`:

```json
{
  "installed": true,
  "path": "/Users/you/Library/Application Support/Edith/Tools/bin/yt-dlp",
  "version": "2026.07.04"
}
```

`--json` shape with `--update`:

```json
{
  "after": "2026.08.02",
  "before": "2026.07.04",
  "changed": true,
  "path": "/Users/you/Library/Application Support/Edith/Tools/bin/yt-dlp"
}
```

`path` and `version` are `null` when nothing was found, and `changed` compares
the version string before the update with the one after, so an update that had
nothing to do reports `false`.

Examples:

```
ed download tool
ed download tool --json
ed download tool --update
```

```
$ ed download tool
2026.07.04  /Users/you/Library/Application Support/Edith/Tools/bin/yt-dlp

$ ed download tool --update
Updating to stable@2026.08.02 ... Updated yt-dlp to stable@2026.08.02
```

Behaviour: the two output modes disagree about what a missing yt-dlp means, on
purpose. The human path exits 4 with `yt-dlp is not installed` and a hint
pointing at `ed tools install yt-dlp` and Download settings, because a person
typing this wants to be told. The
`--json` path reports `"installed": false` with two nulls and exits 0, because
an agent asking whether the tool is there should get an answer rather than an
error. `--update` draws no such distinction: with no yt-dlp to update it exits
4 in both modes, `--json` included. An update that runs and finds nothing newer
is not that case; it exits 0 and reports `"changed": false`.

Neither form needs Edith running. The shared Download tool operation runs the
same binary for the app and CLI, accepts a version only after a successful
`--version`, and limits probes to five seconds. A broken copy reports as not
installed instead of treating an error message as its version. Updates have a
two-minute bound, print yt-dlp's own output, and fall back to `yt-dlp is
<version>` when the update was silent. A failed update is an error rather than
a successful unchanged result. There is no `--yes` guard on `--update`, and a
self-update run against a Homebrew copy will say what Homebrew's yt-dlp says
about being managed elsewhere.

## 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
