Skip to content

Create AuthHero

The create-authhero CLI tool helps you quickly scaffold new AuthHero projects with the right configuration and boilerplate code.

Installation

bash
npm install -g create-authhero

Usage

Create a new AuthHero project:

bash
create-authhero my-auth-project

This will:

  • Set up the project structure
  • Install necessary dependencies
  • Create configuration files
  • Provide example code and middleware setup

Project Templates

The CLI provides several project templates:

  • Basic - Simple authentication setup
  • Multi-tenant - Multi-tenant authentication system
  • Cloudflare Workers - Optimized for Cloudflare Workers
  • Next.js - Integration with Next.js applications

Getting Started

After creating your project:

bash
cd my-auth-project
npm install
npm run dev

Released under the ISC License.