Files
better-auth/packages/cli/CHANGELOG.md
better-release[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ba12fcdfa7 chore: release v1.7.2 (#10870)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-26 18:53:57 +00:00

56 KiB

auth

1.7.2

Patch Changes

1.7.1

Patch Changes

  • #10863 845bbd1 Thanks @gustavovalverde! - auth migrate no longer attempts to add a required column with no default value to a table that already has rows. It stops with an error naming the column and the backfill to run first. Previously the generated statement failed on SQLite, Postgres, and SQL Server; on MySQL it filled the new column with an empty string for every existing row and reported success. If auth migrate already ran against a MySQL database on 1.7, run the check in the upgrade guide's account identity section.

    getMigrations throws the new UnsafeMigrationError (exported from better-auth/db/migration) for this refusal, so callers can distinguish it from other migration errors such as an index-definition conflict.

    auth generate still emits the statements for external migration tooling, with a comment banner naming any column that needs a manual backfill first.

    A required field whose database column is still nullable logs a warning instead of blocking the migration.

    A CLI command that fails now prints its error and exits with a non-zero code instead of an unhandled promise rejection.

  • Updated dependencies [845bbd1]:

    • better-auth@1.7.1
    • @better-auth/core@1.7.1
    • @better-auth/telemetry@1.7.1

1.7.0

Minor Changes

  • #9501 526aa32 Thanks @bytaesu! - The CLI now auto-detects auth configs that export the same instance as both a named export and the default export (e.g. export const auth = betterAuth(...); export default auth;). Previously such configs failed when no explicit --config path was passed.

  • #10170 6ddb555 Thanks @gustavovalverde! - The auth CLI now requires Node.js 22.12 or newer, following its upgrade to Commander 15. Update your Node.js runtime before upgrading the CLI.

  • #10402 763a267 Thanks @gustavovalverde! - Plugin database schemas can now define named or generated table-level indexes across multiple fields. SQL migrations and generated Drizzle or Prisma schemas resolve configured table and column names consistently, while the MongoDB adapter creates the same indexes before the first index-enforcing write.

  • #9547 15bb169 Thanks @GautamBytes! - Add a create-admin CLI command for creating an initial admin user through the configured Better Auth instance.

Patch Changes

1.7.0-rc.6

Patch Changes

  • #10770 692b22c Thanks @ping-maxwell! - Export the generated pgSchema binding so drizzle-kit can emit CREATE SCHEMA for custom PostgreSQL namespaces.

  • Updated dependencies [773de54, 2ad2928]:

    • better-auth@1.7.0-rc.6
    • @better-auth/core@1.7.0-rc.6
    • @better-auth/telemetry@1.7.0-rc.6

1.7.0-rc.5

Patch Changes

  • Updated dependencies [6782647, 081d3c3]:
    • better-auth@1.7.0-rc.5
    • @better-auth/core@1.7.0-rc.5
    • @better-auth/telemetry@1.7.0-rc.5

1.7.0-rc.4

Patch Changes

  • Updated dependencies [90b5093]:
    • better-auth@1.7.0-rc.4
    • @better-auth/core@1.7.0-rc.4
    • @better-auth/telemetry@1.7.0-rc.4

1.7.0-rc.3

Patch Changes

1.7.0-rc.2

Minor Changes

  • #10402 763a267 Thanks @gustavovalverde! - Plugin database schemas can now define named or generated table-level indexes across multiple fields. SQL migrations and generated Drizzle or Prisma schemas resolve configured table and column names consistently, while the MongoDB adapter creates the same indexes before the first index-enforcing write.

Patch Changes

1.7.0-rc.1

Patch Changes

  • Updated dependencies [fe4c820]:
    • better-auth@1.7.0-rc.1
    • @better-auth/core@1.7.0-rc.1
    • @better-auth/telemetry@1.7.0-rc.1

1.7.0-rc.0

Patch Changes

  • Updated dependencies []:
    • better-auth@1.7.0-rc.0
    • @better-auth/core@1.7.0-rc.0
    • @better-auth/telemetry@1.7.0-rc.0

1.7.0-beta.10

Minor Changes

  • #10170 6ddb555 Thanks @gustavovalverde! - The auth CLI now requires Node.js 22.12 or newer, following its upgrade to Commander 15. Update your Node.js runtime before upgrading the CLI.

Patch Changes

  • Updated dependencies [6ddb555]:
    • better-auth@1.7.0-beta.10
    • @better-auth/core@1.7.0-beta.10
    • @better-auth/telemetry@1.7.0-beta.10

1.7.0-beta.9

Patch Changes

  • Updated dependencies []:
    • better-auth@1.7.0-beta.9
    • @better-auth/core@1.7.0-beta.9
    • @better-auth/telemetry@1.7.0-beta.9

1.7.0-beta.8

Patch Changes

1.7.0-beta.7

Patch Changes

  • Updated dependencies [3d04fab, de8394d]:
    • better-auth@1.7.0-beta.7
    • @better-auth/core@1.7.0-beta.7
    • @better-auth/telemetry@1.7.0-beta.7

1.7.0-beta.6

Patch Changes

1.7.0-beta.5

Patch Changes

1.7.0-beta.4

Minor Changes

  • #9547 15bb169 Thanks @GautamBytes! - Add a create-admin CLI command for creating an initial admin user through the configured Better Auth instance.

1.6.30

Patch Changes

  • Updated dependencies [07c1718]:
    • @better-auth/core@1.6.30
    • better-auth@1.6.30
    • @better-auth/telemetry@1.6.30

1.6.29

Patch Changes

  • Updated dependencies [e6e1b4e]:
    • better-auth@1.6.29
    • @better-auth/core@1.6.29
    • @better-auth/telemetry@1.6.29

1.6.28

Patch Changes

  • Updated dependencies [773de54, 2ad2928]:
    • better-auth@1.6.28
    • @better-auth/core@1.6.28
    • @better-auth/telemetry@1.6.28

1.6.27

Patch Changes

  • #10743 b8077b7 Thanks @bytaesu! - The upgrade command now targets the running CLI version, including prereleases, instead of the npm latest tag.

  • Updated dependencies [2ae491e, 90b5093]:

    • @better-auth/core@1.6.27
    • better-auth@1.6.27
    • @better-auth/telemetry@1.6.27

1.6.26

Patch Changes

1.6.25

Patch Changes

  • Updated dependencies [5124c34, 0ffd1fb, 7439359]:
    • better-auth@1.6.25
    • @better-auth/core@1.6.25
    • @better-auth/telemetry@1.6.25

1.6.24

Patch Changes

1.6.23

Patch Changes

  • #10259 3fedfcb Thanks @bytaesu! - Fix better-auth generate emitting an invalid Drizzle schema when a field's string default value contains a quote or backslash.

  • Updated dependencies [8581f97]:

    • better-auth@1.6.23
    • @better-auth/core@1.6.23
    • @better-auth/telemetry@1.6.23

1.6.22

Patch Changes

  • Updated dependencies [c06a56d, 8bd43d9, 3a035e9]:
    • better-auth@1.6.22
    • @better-auth/core@1.6.22
    • @better-auth/telemetry@1.6.22

1.6.21

Patch Changes

1.6.20

Patch Changes

  • Updated dependencies [21448b1, 8ecf238, 930f534]:
    • better-auth@1.6.20
    • @better-auth/core@1.6.20
    • @better-auth/telemetry@1.6.20

1.6.19

Patch Changes

1.6.18

Patch Changes

  • Updated dependencies [9ef7240, b21a5f7]:
    • better-auth@1.6.18
    • @better-auth/core@1.6.18
    • @better-auth/telemetry@1.6.18

1.6.17

Patch Changes

1.6.16

Patch Changes

1.6.15

Patch Changes

1.6.14

Patch Changes

1.6.13

Patch Changes

  • Updated dependencies [e7eb45b, 03e6c94, 1e5b808, 13abc79]:
    • better-auth@1.7.0-beta.4
    • @better-auth/core@1.7.0-beta.4
    • @better-auth/telemetry@1.7.0-beta.4

1.7.0-beta.3

Minor Changes

  • #9501 526aa32 Thanks @bytaesu! - The CLI now auto-detects auth configs that export the same instance as both a named export and the default export (e.g. export const auth = betterAuth(...); export default auth;). Previously such configs failed when no explicit --config path was passed.

Patch Changes

  • Updated dependencies [4e8e4c7, 523f95c, 729c00d]:
    • better-auth@1.7.0-beta.3
    • @better-auth/core@1.7.0-beta.3
    • @better-auth/telemetry@1.7.0-beta.3

1.7.0-beta.2

Patch Changes

  • Updated dependencies [9aed910, acbd6ef, 954b664, 39d6af2]:
    • better-auth@1.7.0-beta.2
    • @better-auth/core@1.7.0-beta.2
    • @better-auth/telemetry@1.7.0-beta.2

1.7.0-beta.1

Patch Changes

1.7.0-beta.0

1.6.10

Patch Changes

1.6.9

Patch Changes

  • Updated dependencies [815ecf6]:
    • @better-auth/core@1.6.9
    • better-auth@1.6.9
    • @better-auth/telemetry@1.6.9

1.6.8

Patch Changes

  • Updated dependencies [856ab24, 9aa8e63]:
    • better-auth@1.6.8
    • @better-auth/core@1.6.8
    • @better-auth/telemetry@1.6.8

1.6.7

Patch Changes

1.6.6

Patch Changes

1.6.5

Patch Changes

  • Updated dependencies [938dd80, 0538627]:
    • better-auth@1.6.5
    • @better-auth/core@1.6.5
    • @better-auth/telemetry@1.6.5

1.6.4

Patch Changes

  • Updated dependencies [9aed910, acbd6ef, 39d6af2]:
    • better-auth@1.6.4
    • @better-auth/core@1.6.4
    • @better-auth/telemetry@1.6.4

1.6.3

Patch Changes

1.6.2

Patch Changes

1.6.1

Patch Changes

  • Updated dependencies [2e537df, f61ad1c, 7495830]:
    • better-auth@1.6.1
    • @better-auth/core@1.6.1
    • @better-auth/telemetry@1.6.1

1.6.0

Minor Changes

Patch Changes

1.6.0-beta.0

Minor Changes

Patch Changes