# ed music toggle

> Toggles play and pause on the active player. Aliased playpause.

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

Toggles play and pause on the active player. Aliased `playpause`.

```
ed music toggle [--json] [--player <name>]
ed music playpause [--json] [--player <name>]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit JSON on stdout. |
| `--player` | `builtin`, `spotify`, `apple` | whichever is active | Force one player. |

```json
{
  "action": "toggled",
  "name": "Spotify",
  "player": "spotify"
}
```

```
ed music toggle
ed music playpause --player spotify
```

This is the verb to bind to a hotkey: it needs no state of its own and it picks
the player that is playing, which is usually the one you meant.

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