# `mix ash_authzed.install`
[🔗](https://github.com/boxxxie/ash_authzed/blob/v0.2.0/lib/mix/tasks/ash_authzed.install.ex#L32)

Installs and configures AshAuthzed in an Ash project.

## Options

* `--adapter` or `-a` — Authorization backend to configure (`licet` or `spicedb`). Defaults to `licet`.
* `--repo` or `-r` — The Ecto repo for Licet to use. Defaults to `<MyApp>.Repo`.
* `--schema-path` — Path to the `.zed` or `.yaml` schema bundle. Defaults to `"priv/licet/user_permissions.yaml"`.

## Example

```bash
mix igniter.install ash_authzed --adapter licet
```

# `add_authzed_to_resource`

```elixir
@spec add_authzed_to_resource(Igniter.t(), module(), String.t()) :: Igniter.t()
```

Patches an existing Ash Resource module to use `Ash.Policy.Authorizer` and `AshAuthzed`,
and appends a starter `authzed do ... end` block.

---

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