# `mix bb_inference.install`
[🔗](https://github.com/beam-bots/bb_inference/blob/main/lib/mix/tasks/bb_inference.install.ex#L6)

Installs BB.Inference into a robot

- Adds `BB.Inference` to the robot's `use BB, extensions: [...]`.
- Adds the `:bb_inference` compiler after the project's others, so every
  build fetches the robot's model artefacts into `priv/bb_inference`.
- Ignores `priv/bb_inference/` in `.gitignore`, since it is rebuilt from
  the declarations.

Running it again changes nothing.

## Example

```bash
mix igniter.install bb_inference
mix igniter.install bb_inference --robot MyRobot.Robot
```

---

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