---
title: "ezgh deploy rollback"
description: "Deploy an earlier deployment again."
---

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

# ezgh deploy rollback

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh deploy rollback --to <deployment> [flags]
```

Deploy an earlier succeeded deployment of the environment again: its commit and its images. Prints the new deployment's ID.

Part of [`ezgh deploy`](/cli/reference/deploy).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--to` | string |  | the succeeded deployment (dpl\_…) to deploy again |

Inherited from parent commands:

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--dir` | string | `.` | the repository's checkout (any directory inside it) |
| `--json` | boolean |  | print JSON, as -o json does |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/deploy-rollback/index.mdx
