# `mix ash.gen.preparation`
[🔗](https://github.com/ash-project/ash/blob/v3.23.1/lib/mix/tasks/gen/ash.gen.preparation.ex#L6)

Generates a custom preparation

See [Custom Preparations](https://hexdocs.pm/ash/preparations.html#custom-preparations) for more.

## Example

```bash
mix ash.gen.preparation MyApp.Preparations.Top5
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
