# pier rollback

> Roll an app or site back to a previous deploy

URL: https://pier.run/docs/cli/reference/rollback

```bash
pier rollback [<ref>] [flags]
```

Roll an app or site back to a previous deploy.

## Arguments

| Argument | Required | Description                                                  |
| -------- | -------- | ------------------------------------------------------------ |
| `<ref>`  | no       | App or site to roll back (name or name/target); omit to pick |

## Flags

| Flag          | Value    | Default | Description                                                                      |
| ------------- | -------- | ------- | -------------------------------------------------------------------------------- |
| `--type`      | `STRING` |         | Disambiguate a name shared by several kinds: app or site                         |
| `--to`        | `STRING` |         | Deploy to roll back to (an id from 'pier deploys ls'); default: the previous one |
| `-y`, `--yes` |          |         | Skip confirmation prompt                                                         |
| `--no-resume` |          |         | Fail instead of resuming a paused app/ancestor                                   |

[Global flags](/docs/cli/reference#global-flags) apply to every command.
