Better Auth CLI

Project initialization and schema-migration CLI invoked with `npx @better-auth/cli` (or `npx auth init`). Generates database schema, configures the auth route handler, and scaffolds plugin wiring.

Better Auth CLI is one of 4 APIs that Better Auth publishes on the APIs.io network.

Tagged areas include CLI and Tooling. The published artifact set on APIs.io includes API documentation.

Documentation

API entry from apis.yml

apis.yml Raw ↑
aid: better-auth:cli
name: Better Auth CLI
description: Project initialization and schema-migration CLI invoked with `npx @better-auth/cli` (or `npx
  auth init`). Generates database schema, configures the auth route handler, and scaffolds plugin wiring.
humanURL: https://www.better-auth.com/docs/cli
baseURL: https://github.com/better-auth/better-auth
tags:
- CLI
- Tooling
properties:
- type: Documentation
  url: https://www.better-auth.com/docs/cli