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

Streams existing Ash resources from the database and synchronizes their
Zanzibar / ReBAC relationship tuples into Licet or SpiceDB.

## Examples

    # Backfill all resources using AshAuthzed in the current project
    mix ash_authzed.backfill

    # Backfill a specific resource with a custom batch size
    mix ash_authzed.backfill --resource MyApp.Accounts.User --batch-size 250

    # Preview tuple counts without writing to Licet / SpiceDB
    mix ash_authzed.backfill --dry-run

    # Skip deleting non-matching external_role enum values (append-only mode)
    mix ash_authzed.backfill --no-reconcile

---

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