@better-auth/cli generate command (or @better-auth/cli/api generateDrizzleSchema function) doesn't require access to the database.drizzleAdapter from better-auth/adapters/drizzle requires the db parameter to be provided.db parameter would actually be required at runtime (during schema generation).