[PR #4143] [MERGED] feat(cli): add info script #5218

Closed
opened 2026-03-13 12:14:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4143
Author: @himself65
Created: 8/22/2025
Status: Merged
Merged: 8/27/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/08/21/info


📝 Commits (5)

  • 74875d1 feat(cli): add info script
  • afdcf8d Merge branch 'canary' into himself65/2025/08/21/info
  • a6e8907 fix: make tmpdir in another place
  • 3dc8d02 fix: increase test timeout
  • 448b134 docs: update

📊 Changes

4 files changed (+937 additions, -5 deletions)

View changed files

📝 docs/content/docs/concepts/cli.mdx (+42 -5)
packages/cli/src/commands/info.ts (+539 -0)
📝 packages/cli/src/index.ts (+2 -0)
packages/cli/test/info.test.ts (+354 -0)

📄 Description

Summary by cubic

Adds a new CLI command, info, to print system, Node, package manager, frameworks, database clients, and a sanitized Better Auth config. Supports JSON output and clipboard copy to streamline issue reports.

  • New Features
    • Added info command with --json, --copy, --cwd, and --config options.
    • Detects frameworks and database clients from package.json.
    • Loads Better Auth config and redacts secrets (e.g., keys, tokens, URLs).
    • Human-readable output by default; JSON mode for tooling; cross-platform clipboard copy.
    • Gracefully handles missing package.json and absent config.
    • Registered the command in the CLI and added tests covering sanitization, detection, custom config path, and fallback cases.

🔄 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/4143 **Author:** [@himself65](https://github.com/himself65) **Created:** 8/22/2025 **Status:** ✅ Merged **Merged:** 8/27/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/08/21/info` --- ### 📝 Commits (5) - [`74875d1`](https://github.com/better-auth/better-auth/commit/74875d167bb8a3b91601f16fb3dfd7a74301cecd) feat(cli): add `info` script - [`afdcf8d`](https://github.com/better-auth/better-auth/commit/afdcf8de2df7e9ef35f438f6681baa5ebbb4dbaa) Merge branch 'canary' into himself65/2025/08/21/info - [`a6e8907`](https://github.com/better-auth/better-auth/commit/a6e890700904e9a58f0ed24514772f664a069166) fix: make tmpdir in another place - [`3dc8d02`](https://github.com/better-auth/better-auth/commit/3dc8d02c6c01563c6d95e7031b651322f9902c8e) fix: increase test timeout - [`448b134`](https://github.com/better-auth/better-auth/commit/448b1345a2c08b87f7b19afeb08cc196db6df565) docs: update ### 📊 Changes **4 files changed** (+937 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/cli.mdx` (+42 -5) ➕ `packages/cli/src/commands/info.ts` (+539 -0) 📝 `packages/cli/src/index.ts` (+2 -0) ➕ `packages/cli/test/info.test.ts` (+354 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a new CLI command, info, to print system, Node, package manager, frameworks, database clients, and a sanitized Better Auth config. Supports JSON output and clipboard copy to streamline issue reports. - New Features - Added info command with --json, --copy, --cwd, and --config options. - Detects frameworks and database clients from package.json. - Loads Better Auth config and redacts secrets (e.g., keys, tokens, URLs). - Human-readable output by default; JSON mode for tooling; cross-platform clipboard copy. - Gracefully handles missing package.json and absent config. - Registered the command in the CLI and added tests covering sanitization, detection, custom config path, and fallback cases. <!-- End of auto-generated description by cubic. --> --- <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-03-13 12:14:35 -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#5218