mix ash_authzed.backfill (ash_authzed v0.2.0)

Copy Markdown View Source

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