- keep next package versions at 1.7.0-beta.1 - keep both changelog streams by inserting the stable 1.6.5, 1.6.6, and 1.6.7 sections below the 1.7.0-beta entries - keep the cimd and dash deps on demo/nextjs (next-only); regenerate pnpm-lock.yaml - resolve TODO(sync-from-main-9226) in oauth-provider authorize.ts: findRegisteredRedirectUri now uses isLoopbackIP from @better-auth/core/utils/host to cover the full 127.0.0.0/8 range per RFC 8252 §7.3 - drop the unused saml import that main's #9262 added to sso/src/routes/sso.ts; next already migrated to saml-pipeline
Better Auth CLI
Better Auth comes with a built-in CLI to help you manage the database schema needed for both core functionality and plugins.
Init
The CLI includes an init command to add Better Auth to your project.
npx auth@latest init
Generate
The generate command creates the schema required by Better Auth.
If you’re using a database adapter like Prisma or Drizzle, this command will
generate the right schema for your ORM.
If you’re using the built-in Kysely adapter, it will generate an SQL file you
can run directly on your database.
npx auth@latest generate
Migrate
The migrate command applies the Better Auth schema directly to your database.
This is available if you’re using the built-in Kysely adapter.
For other adapters, you’ll need to apply the schema using your ORM’s migration
tool.
npx auth@latest migrate
Secret
The CLI also provides a way to generate a secret key for your Better Auth instance.
npx auth@latest secret
License
MIT