[GH-ISSUE #8622] Old CLI should throw a warning when used with Better Auth v.1.5.x due to undefined behaviour #19773

Open
opened 2026-04-15 19:06:53 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @kvanbere on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8622

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

If you use the old CLI with a Better Auth v1.5.x project, some things do not work correctly.

As an example, per this thread https://github.com/better-auth/better-auth/issues/8542#issuecomment-4060326229 the CLI was generating a verifications table even though KV was configured.

Current vs. Expected behavior

In this case it would have been helpful if the old CLI threw a warning such as "you are using the Better Auth v1.4.x CLI with a Better Auth v1.5.x project, this could lead to unexpected results"

The user should be prompted to use the new auth CLI instead.

What version of Better Auth are you using?

1.5.x

System info

N/A

Which area(s) are affected? (Select all that apply)

Package

Auth config (if applicable)


Additional context

No response

Originally created by @kvanbere on GitHub (Mar 15, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8622 ### Is this suited for github? - [ ] Yes, this is suited for github ### To Reproduce If you use the old CLI with a Better Auth `v1.5.x` project, some things do not work correctly. As an example, per this thread https://github.com/better-auth/better-auth/issues/8542#issuecomment-4060326229 the CLI was generating a `verifications` table even though KV was configured. ### Current vs. Expected behavior In this case it would have been helpful if the old CLI threw a warning such as "you are using the Better Auth v1.4.x CLI with a Better Auth v1.5.x project, this could lead to unexpected results" The user should be prompted to use the new `auth` CLI instead. ### What version of Better Auth are you using? 1.5.x ### System info ```bash N/A ``` ### Which area(s) are affected? (Select all that apply) Package ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the devtools label 2026-04-15 19:06:53 -05:00
Author
Owner

@luchersou commented on GitHub (Mar 16, 2026):

Hey, I've opened a PR addressing this: #8624

The fix adds a version check in the old CLI that warns the user when better-auth >= 1.5.0 is detected in the project, suggesting npx auth@latest instead.

<!-- gh-comment-id:4064489508 --> @luchersou commented on GitHub (Mar 16, 2026): Hey, I've opened a PR addressing this: #8624 The fix adds a version check in the old CLI that warns the user when `better-auth >= 1.5.0` is detected in the project, suggesting `npx auth@latest` instead.
Author
Owner

@kvanbere commented on GitHub (Mar 16, 2026):

Super fast, thank you and well done.

<!-- gh-comment-id:4065656379 --> @kvanbere commented on GitHub (Mar 16, 2026): Super fast, thank you and well done.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19773