[PR #5660] [CLOSED] feat: auth CLI #6146

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5660
Author: @ping-maxwell
Created: 10/29/2025
Status: Closed

Base: canaryHead: feat/auth-cli


📝 Commits (10+)

  • 38fdb84 feat: auth CLI
  • be6ca06 update: documentation & logging
  • 1a1b341 Merge branch 'canary' into feat/auth-cli
  • 77d96e5 Merge branch 'canary' into feat/auth-cli
  • 0ebe05d Merge branch 'canary' into feat/auth-cli
  • 8c8c37a Merge branch 'canary' into feat/auth-cli
  • 6dbf187 Merge branch 'canary' into feat/auth-cli
  • 8612b6e Merge branch 'canary' into feat/auth-cli
  • a728304 Merge branch 'canary' into feat/auth-cli
  • 0c98e48 Merge branch 'canary' into feat/auth-cli

📊 Changes

6 files changed (+86 additions, -10 deletions)

View changed files

📝 docs/content/docs/concepts/cli.mdx (+8 -8)
packages/auth-cli/package.json (+46 -0)
packages/auth-cli/src/index.ts (+3 -0)
packages/auth-cli/tsconfig.json (+11 -0)
📝 packages/cli/src/commands/migrate.ts (+2 -2)
📝 pnpm-lock.yaml (+16 -0)

📄 Description

Essentially the @better-auth/cli but under the auth package name.

  • Updated docs
  • Updated logs that suggested @better-auth/cli for stuff like migration/generations
image

Summary by cubic

Adds the new “auth” CLI that wraps and re-exports @better-auth/cli. Same commands, shorter name.

  • New Features

    • Added packages/auth-cli with an executable bin and TypeScript config.
    • Entrypoint forwards to @better-auth/cli; docs and logs now recommend npx auth@latest; pnpm lock updated.
  • Migration

    • Use npx auth@latest for all commands. npx @better-auth/cli still works.

Written for commit bd8a502a9b. Summary will update automatically on new commits.


🔄 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/5660 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/29/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/auth-cli` --- ### 📝 Commits (10+) - [`38fdb84`](https://github.com/better-auth/better-auth/commit/38fdb844e68086bacaf6868268d9365d04b073f5) feat: `auth` CLI - [`be6ca06`](https://github.com/better-auth/better-auth/commit/be6ca0644b4a9b5da7f9d44090dc3293a0e09d86) update: documentation & logging - [`1a1b341`](https://github.com/better-auth/better-auth/commit/1a1b34142b6a51126712543636ba93905725c206) Merge branch 'canary' into feat/auth-cli - [`77d96e5`](https://github.com/better-auth/better-auth/commit/77d96e5dd34cccb768be04a974fd942bfdea085c) Merge branch 'canary' into feat/auth-cli - [`0ebe05d`](https://github.com/better-auth/better-auth/commit/0ebe05dc5ac7ae5160a61a0adf589b05ea583d70) Merge branch 'canary' into feat/auth-cli - [`8c8c37a`](https://github.com/better-auth/better-auth/commit/8c8c37a6b4d08124b0079999a2cb5bceeed95861) Merge branch 'canary' into feat/auth-cli - [`6dbf187`](https://github.com/better-auth/better-auth/commit/6dbf187b2ea6fc2fc4e2f7eb581f4cb84d078e2d) Merge branch 'canary' into feat/auth-cli - [`8612b6e`](https://github.com/better-auth/better-auth/commit/8612b6e5ae4df8afcb4772bc9f2be50358bc76aa) Merge branch 'canary' into feat/auth-cli - [`a728304`](https://github.com/better-auth/better-auth/commit/a728304583d8e071d28212308ea7325a74c3fc05) Merge branch 'canary' into feat/auth-cli - [`0c98e48`](https://github.com/better-auth/better-auth/commit/0c98e48f661b3e11a6540089b46fcae04fcdb73d) Merge branch 'canary' into feat/auth-cli ### 📊 Changes **6 files changed** (+86 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/cli.mdx` (+8 -8) ➕ `packages/auth-cli/package.json` (+46 -0) ➕ `packages/auth-cli/src/index.ts` (+3 -0) ➕ `packages/auth-cli/tsconfig.json` (+11 -0) 📝 `packages/cli/src/commands/migrate.ts` (+2 -2) 📝 `pnpm-lock.yaml` (+16 -0) </details> ### 📄 Description Essentially the `@better-auth/cli` but under the `auth` package name. - [x] Updated docs - [x] Updated logs that suggested `@better-auth/cli` for stuff like migration/generations <img width="2080" height="732" alt="image" src="https://github.com/user-attachments/assets/41e39dca-7bf9-4ba1-b6a9-5c42e1f63794" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds the new “auth” CLI that wraps and re-exports @better-auth/cli. Same commands, shorter name. - **New Features** - Added packages/auth-cli with an executable bin and TypeScript config. - Entrypoint forwards to @better-auth/cli; docs and logs now recommend npx auth@latest; pnpm lock updated. - **Migration** - Use npx auth@latest for all commands. npx @better-auth/cli still works. <sup>Written for commit bd8a502a9ba299a84b66f990241873dbb4c1341c. Summary will update automatically on new commits.</sup> <!-- 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:49:15 -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#6146