[PR #8204] [MERGED] feat(cli): add upgrade command to update better-auth packages #24715

Closed
opened 2026-04-15 22:31:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8204
Author: @himself65
Created: 2/28/2026
Status: Merged
Merged: 2/28/2026
Merged by: @himself65

Base: canaryHead: feat/cli-upgrade-command


📝 Commits (1)

  • aaf30a6 feat(cli): add upgrade command to update better-auth packages

📊 Changes

3 files changed (+198 additions, -0 deletions)

View changed files

packages/cli/src/commands/upgrade.ts (+177 -0)
📝 packages/cli/src/index.ts (+2 -0)
packages/cli/src/utils/fetch-latest-version.ts (+19 -0)

📄 Description

Adds npx auth upgrade which scans package.json for better-auth and @better-auth/* dependencies, fetches the latest versions from npm, displays an upgrade table, and installs pinned versions using the detected package manager. Supports --cwd and -y/--yes flags.


🔄 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/8204 **Author:** [@himself65](https://github.com/himself65) **Created:** 2/28/2026 **Status:** ✅ Merged **Merged:** 2/28/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/cli-upgrade-command` --- ### 📝 Commits (1) - [`aaf30a6`](https://github.com/better-auth/better-auth/commit/aaf30a6c8759a176d63485c85c37c27af71d1873) feat(cli): add `upgrade` command to update better-auth packages ### 📊 Changes **3 files changed** (+198 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/cli/src/commands/upgrade.ts` (+177 -0) 📝 `packages/cli/src/index.ts` (+2 -0) ➕ `packages/cli/src/utils/fetch-latest-version.ts` (+19 -0) </details> ### 📄 Description Adds `npx auth upgrade` which scans package.json for better-auth and @better-auth/* dependencies, fetches the latest versions from npm, displays an upgrade table, and installs pinned versions using the detected package manager. Supports --cwd and -y/--yes flags. --- <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-15 22:31:39 -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#24715