# `mix phoenix_live_calendar.install`
[🔗](https://github.com/mdon/phoenix_live_calendar/blob/v0.5.0/lib/mix/tasks/phoenix_live_calendar.install.ex#L1)

Installs PhoenixLiveCalendar into your Phoenix project.

    $ mix phoenix_live_calendar.install

This task:

1. Finds your `app.css` and adds an `@source` directive so Tailwind scans
   PhoenixLiveCalendar's component templates
2. Finds your `app.js`, adds the JS hook import, and registers
   `window.PhoenixLiveCalendarHooks` in your LiveSocket when it can do so safely

Both steps are idempotent — safe to run multiple times. When the task can't
edit a file automatically it prints exact manual instructions instead of
guessing.

## Options

- `--css-path` — Path to your app.css file (auto-detected if not specified)
- `--js-path` — Path to your app.js file (auto-detected if not specified)

---

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