# `mix polar_express.install`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/mix/tasks/polar_express.install.ex#L2)

Installs and configures polar_express in a Phoenix application.

    $ mix polar_express.install

This installer:

1. Adds Polar API key config to `config/dev.exs` (sandbox environment)
2. Adds runtime config with env vars to `config/runtime.exs` (production)
3. Adds `PolarExpress.WebhookPlug` to the Phoenix endpoint (before `Plug.Parsers`)
4. Scaffolds a `PolarWebhookController` with event handler skeleton for Polar events
5. Adds the webhook route to the router
6. Shows next steps and configuration guidance

---

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