clean-auth

1.0.9 • Public • Published

Full Stack Clean Auth CLI

CLI tool for scaffolding full-stack authentication projects with clean architecture.

npm version License: MIT Downloads

Documentation

https://clean-auth-template.vercel.app

GitHub

https://github.com/sinanptm/clean-auth-template


Installation

npm install -g clean-auth

Or use with npx:

npx clean-auth init my-project

Commands

init - Initialize Project

Create a new full-stack authentication project with clean architecture.

clean-auth init <project-name> [options]

Options:

  • -i, --install - Automatically install dependencies after project creation

Examples:

clean-auth init my-auth-project
clean-auth init my-auth-project --install

auth-config - Configure Authentication

Set up environment variables and authentication configuration.

clean-auth auth-config [options]

Options:

  • -s, --skip - Skip interactive prompts and use default values

Examples:

clean-auth auth-config
clean-auth auth-config --skip

clean - Clean Project Structure

Remove unnecessary parts of your project structure to customize it for your needs.

clean-auth clean [options]

Options:

  • -s, --server - Remove entire server directory and update root configurations
  • -w, --web - Remove entire web directory and update root configurations
  • -o, --opensource - Remove open source files (LICENSE, CONTRIBUTING.md, README.md)

Examples:

clean-auth clean --server
clean-auth clean --web --opensource

help - Show All Commands

Display a list of all available commands.

clean-auth help

Examples:

clean-auth --help
clean-auth init --help

Development

After project creation:

cd my-auth-project

# Configure environment variables with prompts
clean-auth auth-config

# Start development servers
pnpm dev

This starts:

Prerequisites

  • Node.js 18+
  • MongoDB (local or Atlas)
  • Firebase project with Authentication enabled

License

MIT © sinanptm

Package Sidebar

Install

npm i clean-auth

Weekly Downloads

104

Version

1.0.9

License

MIT

Unpacked Size

31.5 kB

Total Files

14

Last publish

Collaborators

  • sinanptm