# ed machines docker compose ls

> Lists the compose projects on the machine. Also answers to list, and runs when you name no compose subcommand.

- Canonical URL: https://getedith.pro/docs/cli/machines-docker/compose-ls
- Updated: 2026-12-02

Lists the compose projects on the machine. Also answers to `list`, and runs when
you name no compose subcommand.

```
ed machines docker compose ls [--json] <machine>
```

## Arguments

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<machine>` | machine name, ssh alias, id, or any unambiguous prefix | required | Which machine to ask. |

## Options

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emit JSON on stdout instead of the plain lines. |
| `--help`, `-h` | flag | off | Print the help for this command on stdout and exit 0. |

Human output is one project name per line. With no projects, the message goes to
stderr and stdout stays empty:

```
$ ed machines devbox docker compose ls
no compose projects on Devbox
```

## `--json` shape

A top-level array of strings, and `[]` rather than nothing when there are none:

```json
[
  "noveum-local-db"
]
```

Only the project name is reported. The status and config file path that
`docker compose ls` also prints are parsed away.

## Examples

```
ed machines devbox docker compose ls
ed machines devbox docker compose list --json
ed machines devbox docker compose ls --json | jq -r '.[]'
```

## Behaviour notes

Read only, 30 second ceiling, `docker compose ls --format json 2>/dev/null`.
Note the missing `-a`: docker lists only projects that are currently running, so
a project whose containers are all stopped does not appear here even though its
containers still exist. That is not cosmetic, because every other compose verb
refuses a project this command did not list.

To see the stopped ones, ask docker directly through the raw form:

```
$ ed devbox 'docker compose ls -a --format json'
[{"Name":"noveum-local-db","Status":"exited(3)","ConfigFiles":"/home/you/Desktop/noveum-app-nextjs/extras/db/docker-compose.local-db.yml"}]
```

A machine whose docker has no compose plugin fails rather than reporting
nothing. Compose's complaint is discarded by the `2>/dev/null`, but its non-zero
status is not, so you get exit 1 naming the command that failed and an empty
hint:

```
$ ed machines old-box docker compose ls
error: docker compose ls --format json 2>/dev/null exited 1 on old-box
hint:
```

## Where to go next

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