# ed music rescan

> Reads the music folder again, which is what to run after adding or removing files behind Edith's back.

- Canonical URL: https://getedith.pro/docs/cli/music/rescan
- Updated: 2026-12-02

Reads the music folder again, which is what to run after adding or removing
files behind Edith's back.

```
ed music rescan [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit JSON on stdout. |

```json
{
  "tracks": 128
}
```

```
ed music rescan
ed music rescan --json
```

`tracks` is the count taken after the cached library root and per-folder track
counts were dropped and the folder was walked again. It is the only field: a
fresh `ed` starts with a cold cache, so a count taken before the walk would only
ever repeat it. The human line prints the same number: `128 track(s) in the
library`.

This walks the disk itself and needs nothing running, then posts
`musicFolderChanged` so a live Edith rescans too. With no music folder
configured it exits 4 and points to `ed music library ~/Music`.

## Where to go next

- [`ed music`](https://getedith.pro/docs/cli/music), 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
