# ed music shuffle

> Turns shuffle on or off for Edith's own player, or reports it.

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

Turns shuffle on or off for Edith's own player, or reports it.

```
ed music shuffle [state] [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `state` | `on`, `off`, `true`, `false`, `yes`, `no`, `1`, `0`, `enabled`, `disabled` | none, which reports | What to set shuffle to. Leave it out to read the current value. |
| `--json` | flag | off | Emit JSON on stdout. |

```json
{
  "shuffle": true
}
```

```
ed music shuffle
ed music shuffle on
ed music shuffle off --json
```

Reading prints `on` or `off`. Setting prints `shuffle on` or `shuffle off` and
writes the `musicShuffling` preference, which is the same key
`ed config set musicShuffling true` writes and the same footer toggle the UI
shows. A playing queue reorders at once, and this never exits 4.

The words are matched case-insensitively. A word that is not one of them exits
1, not 2, with `<state> is not on or off` and the hint `pass on, off, true or
false`.

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