Skip to content

Account Recovery

Use the local bootstrap commands when first-run setup is complete and an operator account must be created or reset directly against the Oath Bringer SQLite database.

Create an admin account:

OATH_BRINGER_BOOTSTRAP_PASSWORD='new-password' \
pnpm ops:user:create -- --email=[email protected] --name='Your Name' --role=admin

Reset an existing account and revoke sessions:

OATH_BRINGER_BOOTSTRAP_PASSWORD='new-password' \
pnpm ops:user:reset -- --email=[email protected] --name='Your Name' --role=admin

Set DATABASE_URL=file:/path/to/oath-bringer.db when running outside the default local project database path. In Docker, run the command in the API container or against the mounted /data/oath-bringer.db database.