[PR #1682] [CLOSED] add(cli): doctor command #12187

Closed
opened 2026-04-13 08:13:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1682
Author: @ping-maxwell
Created: 3/4/2025
Status: Closed

Base: mainHead: feat/cli/doctor


📝 Commits (2)

📊 Changes

5 files changed (+505 additions, -25 deletions)

View changed files

📝 docs/content/docs/concepts/cli.mdx (+16 -1)
packages/cli/src/commands/doctor.ts (+454 -0)
📝 packages/cli/src/commands/init.ts (+5 -24)
📝 packages/cli/src/index.ts (+2 -0)
packages/cli/src/utils/find-auth-config.ts (+28 -0)

📄 Description

npx @better-auth/cli doctor checks for:

  • package.json
  • tsconfig.json
  • better-auth version
  • better-auth cli version
  • auth config path
  • nextCookies plugin at end of array
  • env files included variables.

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/1682 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 3/4/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/cli/doctor` --- ### 📝 Commits (2) - [`407ec2a`](https://github.com/better-auth/better-auth/commit/407ec2a30b8402437d517698992354a4e8a3a642) add(cli): `doctor` command - [`be1eb6f`](https://github.com/better-auth/better-auth/commit/be1eb6fc7393308504a722049f09323d9efef5f2) add: docs on doctor cmd ### 📊 Changes **5 files changed** (+505 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/cli.mdx` (+16 -1) ➕ `packages/cli/src/commands/doctor.ts` (+454 -0) 📝 `packages/cli/src/commands/init.ts` (+5 -24) 📝 `packages/cli/src/index.ts` (+2 -0) ➕ `packages/cli/src/utils/find-auth-config.ts` (+28 -0) </details> ### 📄 Description `npx @better-auth/cli doctor` checks for: * package.json * tsconfig.json * better-auth version * better-auth cli version * auth config path * nextCookies plugin at end of array * env files included variables. ![image](https://github.com/user-attachments/assets/b4b40654-75b2-46e6-94c3-ebee1c6716ca) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:13:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#12187