# `mix ash_phoenix.gen.live`
[🔗](https://github.com/ash-project/ash_phoenix/blob/v2.3.21/lib/mix/tasks/ash_phoenix.gen.live.ex#L6)

Generates liveviews for a given domain and resource.

The domain and resource must already exist, this task does not define them.

## Example

```bash
mix ash_phoenix.gen.live --domain MyApp.Shop --resource MyApp.Shop.Product --resourceplural products
```

## Options

* `--domain`   - Existing domain
* `--resource` - Existing resource module name
* `--resource-plural` - Pluralized version resource name for the route paths and templates
* `--resource-plural-for-routes` - Override the plural name used in route paths (e.g. "random-things"). Useful when the route prefix contains dashes.
* `--phx-version` - Phoenix version 1.7 (old) or 1.8 (new). Defaults to 1.8

# `igniter`

---

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