# ed machines files mkdir

> ed machines files mkdir in the Edith ed command line reference. Makes a directory on the machine.

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

Makes a directory on the machine.

```
ed machines files mkdir <machine> <path> [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `machine` | machine name, SSH alias, id or unambiguous prefix | required | Which machine. |
| `path` | remote directory path | required | The directory to make. |
| `--json` | flag | off | Emit JSON on stdout. |

```json
{
  "done": true,
  "machine": "Devbox",
  "path": "/home/you/backup/2026-08"
}
```

```
ed machines files mkdir devbox /home/you/backup
ed machines files mkdir devbox /srv/releases/2026-08/staging
ed machines files mkdir devbox /tmp/work --json
```

What runs is `mkdir -p`, so missing parents are created in one go and a
directory that already exists is not an error: it prints `made <path>` and exits
0. A path the account cannot write exits 1 with the machine's message. The Files
pane's New Folder action does the same, then refreshes the directory and starts
renaming the new item.

## Where to go next

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