How to install and initialize Authverse in your project.
Authverse makes it simple to generate a complete, production-ready authentication system for your project with a single command.
This guide covers quick install, optional UI screens, environment variables, and common post-install steps so you can get up and running fast.
Run the following in your project root:
npx authverse@latest initThe init command scaffolds configuration, models, routes, UI components (optional), and recommended environment variables.
Authverse can optionally scaffold ShadCN-based auth screens:
Choose the UI option during init or run a later generator provided in the project.
Once Authverse is installed and files are generated, complete the following:
DATABASE_URLOpen your .env file and set your database connection string, for example:
DATABASE_URL=""Run the following to generate the Prisma client and apply migrations:
npx prisma generate
npx prisma db pushRun the following to generate Drizzle SQL migrations:
npx drizzle-kit generate.env contains required keys.DATABASE_URL and ensure your database is running.You're ready — Authverse has scaffolded:
Happy building!