# pier restart

> Restart an app or a Postgres instance

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

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

Restart an app or a Postgres instance.

## Arguments

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

## Flags

| Flag          | Value    | Default | Description                                            |
| ------------- | -------- | ------- | ------------------------------------------------------ |
| `--type`      | `STRING` |         | Disambiguate a name shared by several kinds: app or pg |
| `-y`, `--yes` |          |         | Skip the resume confirmation prompt                    |
| `--no-resume` |          |         | Fail instead of resuming a paused resource/ancestor    |

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