# pier rename

> Rename a resource in place (non-destructive)

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

```bash
pier rename <kind> <old> <new> [flags]
```

Rename a resource in place (non-destructive).

## Arguments

| Argument | Required | Description                                                               |
| -------- | -------- | ------------------------------------------------------------------------- |
| `<kind>` | yes      | Resource kind: app \| postgres \| site \| bucket \| volume \| environment |
| `<old>`  | yes      | Current name                                                              |
| `<new>`  | yes      | New name                                                                  |

## Flags

| Flag          | Value | Default | Description       |
| ------------- | ----- | ------- | ----------------- |
| `-y`, `--yes` |       |         | Skip confirmation |

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