# `Testcontainers.Compose.Cli`
[🔗](https://github.com/testcontainers/testcontainers-elixir/blob/main/lib/compose/cli.ex#L1)

Subprocess wrapper for Docker Compose CLI interaction.

# `build_down_args`

Builds the argument list for `docker compose down`.

# `build_logs_args`

Builds the argument list for `docker compose logs`.

# `build_ps_args`

Builds the argument list for `docker compose ps`.

# `build_pull_args`

Builds the argument list for `docker compose pull`.

# `build_up_args`

Builds the argument list for `docker compose up`.

# `down`

Runs `docker compose down` with the given compose configuration.

# `logs`

Runs `docker compose logs <service>` and returns the output.

# `parse_ps_output`

Parses the JSON output from `docker compose ps`.

Each line is a separate JSON object with fields like Service, ID, State, Publishers.

# `parse_publishers`

Parses the Publishers field from a `docker compose ps` JSON entry
into a list of `{container_port, host_port}` tuples.

# `ps`

Runs `docker compose ps --format=json` and parses the output into a list of maps.

# `pull`

Runs `docker compose pull` with the given compose configuration.

# `up`

Runs `docker compose up -d --wait` with the given compose configuration.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
