# `mix infusion.gen`
[🔗](https://github.com/mandar1045/infusion/blob/v0.1.0/lib/mix/tasks/infusion.gen.ex#L1)

Generates an Elixir SDK, as a Mix project, from an OpenAPI 3.0 or 3.1 spec.

    $ mix infusion.gen https://example.com/openapi.yaml --name Example
    $ mix infusion.gen openapi.json --name GitHub --out github_sdk --app github_sdk

Options:

  * `--name` (required): the base module, e.g. `OpenAI`
  * `--out`: the directory to write to (default: `<name>_sdk`)
  * `--app`: the OTP app name (default: `<name>_sdk`)
  * `--version`: the SDK's version (default: `0.1.0`)
  * `--license`: the SDK's license, for Hex (default: `Apache-2.0`)
  * `--env-var`: where the API key is read from (default: `<NAME>_API_KEY`)
  * `--runtime-path`: depend on a local `infusion_runtime` checkout

---

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