# `mix zharp.install`
[🔗](https://github.com/zharp-io/zharp-elixir-lib/blob/v0.1.0/lib/mix/tasks/zharp.install.ex#L2)

Sets up Zharp: the plug in your endpoint, the release step and the runtime config

    mix igniter.install zharp
    mix igniter.install zharp --key zpk_...

- `plug Zharp.Plug` in each Phoenix endpoint (request and response headers, user and session
  on each request's span);
- `config :zharp` in `config/runtime.exs` (the key from `ZHARP_KEY`, the environment from
  `config_env()`), and Zharp off in `config/test.exs`;
- the release step that packs your source into `mix release`
  (`Zharp.Release.package_source/1`), when the project has no `releases:` of its own yet;
- with `--key`, `ZHARP_KEY` in `.env` when the project has one.

---

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