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

# Deployment History

> See past deployments of an environment or service with their trigger, author, duration and status, and cancel a deployment or open its logs.

> [tab] Console
>
> You can access the deployment history from the **Deployments** tab on any environment or service page.
>
> ![Deployment History](https://mintcdn.com/qovery/ziWdn5St6rf4bcBc/images/deployment/deployment_history.png?fit=max\&auto=format\&n=ziWdn5St6rf4bcBc\&q=85\&s=206db6f0bd4d2fffa82e61f4510d0378)

> [tab] CLI and API
>
> You need the [Qovery CLI](https://www.qovery.com/docs/cli/overview.md), signed in with `qovery auth`. The `qovery api` command sends authenticated requests to the [Qovery API](https://www.qovery.com/docs/api-reference/introduction.md).
>
> List the deployments of an environment:
>
> ```bash theme={null}
> PROJECT_NAME="REPLACE_WITH_PROJECT_NAME"
> ENVIRONMENT_NAME="REPLACE_WITH_ENVIRONMENT_NAME"
>
> qovery environment deployment list --project "$PROJECT_NAME" --environment "$ENVIRONMENT_NAME"
> ```
>
> Each row shows the execution ID, the date, the status and the duration. Add `--json` for JSON output. To see what happened in one execution, stage by stage and service by service:
>
> ```bash theme={null}
> EXECUTION_ID="REPLACE_WITH_EXECUTION_ID"  # from the Id column above
>
> qovery environment deployment explain --project "$PROJECT_NAME" --environment "$ENVIRONMENT_NAME" --id "$EXECUTION_ID"
> ```
>
> With the API, call `GET /environment/{environmentId}/deploymentHistoryV2`. It returns the last 20 deployments by default and is paginated.

### Check it worked

After a deployment, `qovery environment deployment list` shows a new row with its execution ID and a final status. Use that ID with `qovery environment deployment logs --environment "<environmentName>" --execution-id "<executionId>"` to read its logs.

## Information Available

The deployment history shows the following information for each past deployment trigger:

### Execution ID

An internal ID assigned to each deployment. This ID can be shared with the Qovery support team when troubleshooting deployment issues.

### Service Details

Each service deployed during the execution is listed with:

* Deployment status
* Version deployed (commit hash or image tag)

### Trigger Source

Each deployment entry shows the origin of the trigger with an icon:

| Icon | Source |
| - | - |
| Git | Triggered by a push or merge to the configured branch |
| Console | Triggered manually from the Qovery web console |
| API | Triggered via the Qovery REST API |
| CLI | Triggered via the Qovery CLI |
| Terraform | Triggered by a Terraform provider apply |
| Internal | Triggered automatically by Qovery (e.g. auto-deploy, scheduled action) |

### Triggered By

Shows who or what initiated the deployment: a user account (name or email) for manual triggers, or a system identifier for automated ones.

### Duration

The elapsed time between when the deployment started and when it reached a terminal status (success, failed, or cancelled).

### Status

The current or final status of the deployment. See [Deployment Statuses](https://www.qovery.com/docs/configuration/deployment/statuses.md) for the full list of possible values.

## Available Actions

### Cancel a Deployment

Deployments in **Queued** or **In Progress** status can be cancelled. Click the cancel icon next to the deployment entry in the history table. Cancelling a running deployment stops the ongoing operation and leaves the environment in the state it was in before the deployment started.

From the CLI, run `qovery environment cancel --environment "<environmentName>"`. With the API, call `POST /environment/{environmentId}/cancelDeployment`.

> [!WARNING]
>
> Cancelling a deployment mid-execution may leave some services partially updated. Redeploy once the cancellation completes to restore a consistent state.

### Open Pipeline View

Click **Pipeline view** on any deployment entry to see a stage-by-stage breakdown of that execution. The pipeline view shows which services were deployed in each stage, their individual statuses, and any dependency ordering that was applied.

### View Logs

Click **View logs** on any deployment entry to open the logs for that specific execution. This is useful for debugging failed deployments or reviewing what happened during a past run. See [Deployment Logs](https://www.qovery.com/docs/configuration/deployment/logs.md) for more details.

From the CLI, run `qovery environment deployment logs --environment "<environmentName>" --execution-id "<executionId>"`. Without `--execution-id`, it prints the logs of the latest deployment.

## Next Steps

> [card] [Deployment Logs](https://www.qovery.com/docs/configuration/deployment/logs.md)
>
> Access deployment logs

> [card] [Deployment Actions](https://www.qovery.com/docs/configuration/deployment/actions.md)
>
> Control your deployments

> [card] [Deployment Statuses](https://www.qovery.com/docs/configuration/deployment/statuses.md)
>
> Understand deployment statuses

> [card] [Deployment Pipeline](https://www.qovery.com/docs/configuration/deployment/pipeline.md)
>
> Configure deployment stages


## Related topics

- [Deployment](https://www.qovery.com/docs/configuration/deployment/overview.md)
- [Deployment Actions](https://www.qovery.com/docs/configuration/deployment/actions.md)
- [List container deployments](https://www.qovery.com/docs/api-reference/container-deployment-history/list-container-deployments.md)
- [List cluster deployments](https://www.qovery.com/docs/api-reference/cluster-deployment-history/list-cluster-deployments.md)
- [List helm deployments](https://www.qovery.com/docs/api-reference/helm-deployment-history/list-helm-deployments.md)


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