# `mix arc.gen.proxies`
[🔗](https://github.com/Cratis/Arc.Elixir/blob/main/lib/mix/tasks/arc.gen.proxies.ex#L4)

Generates TypeScript proxies for the React frontend. Proxy generation is opt-in.

    mix arc.gen.proxies
    mix arc.gen.proxies --application MyApp.Arc --output assets/src/arc
    mix arc.gen.proxies --check

## Options

  * `--application` - the `Arc.Application` module; defaults to `arc: [application: ...]` in `mix.exs`
  * `--output` - the output directory; defaults to `arc: [output: ...]` in `mix.exs`
  * `--layout` - `namespace` (default) or `colocated`; defaults to `arc: [layout: ...]`
  * `--check` - write nothing; exit with an error when the proxies on disk are out of date.
    Use it in CI to keep committed proxies current.
  * `--no-remove-stale` - keep generated files of artifacts that no longer exist

See `Arc.ProxyGenerator`.

---

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