# `mix cf_bouncer.sync`
[🔗](https://github.com/egze/cf_bouncer/blob/main/lib/mix/tasks/cf_bouncer.sync.ex#L1)

Generates a WAF block rule from the Phoenix router, endpoint sockets,
and static paths, then pushes it to Cloudflare.

    mix cf_bouncer.sync           # sync to Cloudflare
    mix cf_bouncer.sync --dry-run # preview expression without pushing
    mix cf_bouncer.sync --force   # push even if unchanged

The rule is only updated if the expression has changed.

## Required configuration

See `CfBouncer` module docs.

---

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