From 93c78c62d95325f4d98972b5ffd2d185a57f3445 Mon Sep 17 00:00:00 2001 From: "Yuito Akatsuki (Tani Yutaka)" Date: Sun, 1 Mar 2026 10:51:11 +0900 Subject: [PATCH] docs(better-auth): Change CLI command from @better-auth to auth Updated command for generating secret and authentication tokens. --- .../content/docs/guides/authentication/better-auth/nextjs.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx b/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx index 2efe54a154..9369663935 100644 --- a/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx +++ b/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx @@ -179,7 +179,7 @@ npm install better-auth Next, generate a secure secret that Better Auth will use to sign authentication tokens. This ensures your tokens cannot be messed with. ```npm -npx @better-auth/cli@latest secret +npx auth@latest secret ``` Copy the generated secret and add it, along with your application's URL, to your `.env` file: @@ -259,7 +259,7 @@ Better Auth provides a CLI command to automatically add the necessary authentica Run the following command: ```npm -npx @better-auth/cli generate +npx auth generate ``` :::note