# services.<name>.pre_deploy

> Command run once per deployment, in a separate VM with the same variables, before traffic moves (for migrations).

Command run once per deployment, in a separate VM with the same variables, before traffic moves (for migrations). Failure stops the rollout.

- **Type:** string
- **Since:** manifest v1

## Example

```yaml
services:
  web:
    pre_deploy: pnpm --filter db migrate deploy
```

## See also

- [services](/docs/manifest/services/): all fields of `services`
- [guv.yaml reference](/docs/manifest/)
