# `mix juggernaut.install`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/mix/tasks/juggernaut.install.ex#L2)

Sets a project up for Juggernaut.

    mix igniter.install juggernaut
    mix juggernaut.install [--agents] [--from-mutare]

`mix igniter.install juggernaut` adds
`{:juggernaut, "~> X.Y", only: [:dev, :test], runtime: false}` and then runs this task,
which:

  * creates `.juggernaut.exs` with small defaults; an existing one is kept, and the
    recommended keys are shown as a notice instead. When the project depends on
    `ecto_sql`, `raw_calls` lists `Ecto.Query.from` and `Ecto.Schema.schema` and
    `embedded_schema` (compile-time macros whose arguments cannot be mutated).
    `test_lanes` names the integration tests: the `:integration` tag, plus the
    conventional integration tags the test files set (`:external`, `:e2e`, `:db`,
    ...), which a notice lists;
  * appends `/_build/juggernaut/` to `.gitignore` unless `_build` is already ignored;
  * with `--agents`, writes a marked section to `AGENTS.md` telling coding agents how to
    use Juggernaut, replacing the section in place on later runs, and the agent skill
    `.claude/skills/juggernaut/SKILL.md` (how to use it, choose a lane, read its output,
    and tell when a fresh boot or the integration tests are needed), written again
    whenever it differs from this version's;
  * with `--from-mutare`, converts the `call_routes` of `.mutare.exs` to `raw_calls`
    and `skip_calls`, warning about any it cannot convert.

No test helper change is needed. A second run changes nothing. Igniter's own flags
(`--yes`, `--dry-run`, `--check`) apply; their exit codes are Igniter's.

---

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