# `mix phoenix_datastar.install`
[🔗](https://github.com/RicoTrevisan/phoenix_datastar/blob/v0.1.14/lib/mix/tasks/phoenix_datastar.install.ex#L1)

Installs PhoenixDatastar into your Phoenix application.

## Usage

    mix phoenix_datastar.install

This will:
1. Add the Registry to your application's supervision tree
2. Enable stripping of debug annotations in dev (for SSE patches)
3. Add `import PhoenixDatastar.Router` to your router
4. Add `"sse"` to the browser pipeline's `:accepts` plug
5. Add the global `/__datastar` scope with `StreamPlug` and `NavPlug` routes
6. Add `def live_datastar` and `def datastar` to your web module
7. Add the Datastar JavaScript to your root layout

---

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