> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alpic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# deployment logs

> Retrieve build logs for a deployment

Retrieves the build logs for a specific deployment or the latest deployment of an environment.

## Usage

```bash theme={null}
alpic deployment logs --deployment-id <deploymentId>
```

Prints the build logs for the specified deployment.

## Extended Usage

Follow logs while the build is still running:

```bash theme={null}
alpic deployment logs --deployment-id <deploymentId> --follow
```

Retrieve logs for the latest deployment of an environment:

```bash theme={null}
alpic deployment logs --environment-id <environmentId>
```

Disable colorized output:

```bash theme={null}
alpic deployment logs --deployment-id <deploymentId> --no-color
```

## Options

| Flag | Description | Default |
| - | - | - |
| `--deployment-id` | The ID of the deployment (e.g. `dpl_xxx`). Mutually exclusive with `--environment-id`. | — |
| `--environment-id` | Show logs for the latest deployment of this environment. Mutually exclusive with `--deployment-id`. | — |
| `-f, --follow` | Poll for new logs while the build is still running. | `false` |
| `--no-color` | Disable colorized output. | `false` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.