# ed music mkdir

> ed music mkdir in the Edith ed command line reference. Makes a folder in the library. Aliased newfolder.

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

Makes a folder in the library. Aliased `newfolder`.

```
ed music mkdir <name> [--under <folder>] [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `name` | text | required | What to call it. |
| `--under` | path relative to the library root | `""`, the root | Folder to make it inside. |
| `--json` | flag | off | Emit JSON on stdout. |

```json
{
  "name": "Chill",
  "path": "Focus/Chill"
}
```

```
ed music mkdir Chill
ed music mkdir Deep --under Focus
ed music mkdir "Late Night" --json
```

The name is sanitised before use: it is trimmed, and `/` and `:` each become
`-`, so a name cannot escape the folder it was asked for. A name that is blank
after trimming exits 1 with `a name cannot be blank`, and a folder that already
exists exits 1 with `<path> is already there` rather than being reused. A
`--under` that does not exist exits 3. On success `ed` posts
`musicFolderChanged`, so an open Edith picks the new folder up without a
rescan.

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