docs: update CLI references to auth (#11214)

This commit is contained in:
Taesu
2026-09-08 07:24:38 +00:00
committed by GitHub
parent e025ce665c
commit cfedf97dbc
4 changed files with 6 additions and 5 deletions
+1
View File
@@ -31,6 +31,7 @@ This is the Better Auth repository - a comprehensive authentication framework fo
- Use `import type` for type-only imports
- Use `node:` protocol for Node.js built-ins (e.g. `node:crypto`)
- JSDoc comments for public APIs
- The Better Auth CLI package was renamed from `@better-auth/cli` to `auth`. Use `npx auth@latest` in docs and user-facing messages, while preserving historical references in changelogs and explanations of the rename.
- Plugins should be as independent as possible. When working on a plugin, prefer modifying the plugin over changing core.
### URL Composition
@@ -137,7 +137,7 @@ Better Auth 1.7.0 through 1.7.2 added a required `issuer` column to the `account
Regenerate instead of writing SQL. The generated `account` model drops both the field and the compound unique index, and your own tooling produces the migration.
```bash
npx @better-auth/cli@latest generate
npx auth@latest generate
```
</Tab>
@@ -435,7 +435,7 @@ describe("pinned-kid + signingAlgorithm against legacy null-alg rows", () => {
/* -----------------------------------------------------------------------
* jwks schema persistence (alg, crv) — tripwire for downstream consumers
* that skipped `npx @better-auth/cli generate` after the schema bump.
* that skipped `npx auth generate` after the schema bump.
* --------------------------------------------------------------------- */
describe("jwks.alg / jwks.crv persistence after createJwk", () => {
@@ -687,7 +687,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
for (const key in values) {
if (!schema[key]) {
throw new BetterAuthError(
`The field "${key}" does not exist in the "${model}" Drizzle schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli@latest generate".`,
`The field "${key}" does not exist in the "${model}" Drizzle schema. Please update your drizzle schema or re-generate using "npx auth@latest generate".`,
);
}
}
@@ -709,7 +709,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
const queryModel = getQueryModel(model);
if (!db.query || !queryModel) {
logger.error(
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx @better-auth/cli@latest generate".`,
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx auth@latest generate".`,
);
logger.info("Falling back to regular query");
} else {
@@ -797,7 +797,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
const queryModel = getQueryModel(model);
if (!db.query || !queryModel) {
logger.error(
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx @better-auth/cli@latest generate".`,
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx auth@latest generate".`,
);
logger.info("Falling back to regular query");
} else {