
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
saas-boilerplate
Advanced tools
A command-line interface (CLI) tool to quickly scaffold and set up the SaaS Boilerplate project—a modern, multi-tenant SaaS starter kit built with Next.js 15, Igniter.js, Prisma, Better Auth, Stripe, and more. This CLI handles repository cloning, dependency installation, environment configuration, Docker services setup, and database migrations, getting you from zero to a running development environment in minutes.
.env, start Docker services (Postgres, Redis, MinIO, Mailhog), and run initial DB migrations.main).dev command to restart services and run the development server.The underlying boilerplate includes:
Before using the CLI:
Verify:
node --version # >=18
git --version # >=2.30
docker --version # >=20
bun --version # If using Bun
Install globally via npm/Bun/Yarn/pnpm (requires Node.js):
# Using Bun (recommended)
bun add -g saas-boilerplate
# Using npm
npm install -g saas-boilerplate
# Using Yarn
yarn global add saas-boilerplate
# Using pnpm
pnpm add -g saas-boilerplate
Or run directly without global install:
npx saas-boilerplate create my-app --branch main
The CLI provides three main commands: create (scaffold a new project), dev (start dev mode in an existing project), and lia (configure AI Code Agents).
Run the create command to scaffold the boilerplate:
# Basic usage
saas-boilerplate create my-saas-app
# With options
saas-boilerplate create my-saas-app --branch release/2.1.0
# Or with npx
npx saas-boilerplate create my-saas-app --branch main
~/.ssh/id_rsa added to GitHub).package.json name..env vars (app name, secrets, platform).docker compose up -d..env.dev immediately.Example output (abridged):
◇ What is the name of your project? my-saas-app
◇ Choose GitHub authentication method: HTTPS
◇ Choose your preferred package manager: Bun
◑ 1. Installing SaaS Boilerplate... ✓
◑ 2. Setting up project... ✓
◑ 3. Environment configured. ✓
◑ 4. Local development services started. ✓
◑ 5. Database setup complete. ✓
◇ Do you want to configure Stripe for payments now? Yes/No
◇ Start the development server now? Yes/No
🚀 Your my-saas-app project is ready!
[Expanded guide...]
--branch <branch>: Git branch to clone (default: main). Use for releases like release/2.1.0.In an existing project directory:
cd my-saas-app
saas-boilerplate-cli dev
docker compose down && up -d (restarts services).node_modules missing.bun dev (or equivalent; opens http://localhost:3000).Configure AI development assistants with SaaS-specific patterns and Igniter.js awareness:
# Show LIA interactive menu
saas-boilerplate-cli lia
# Generate configurations for specific tools
saas-boilerplate-cli lia generate --targets copilot,cursor,claudecode
# Import existing configurations
saas-boilerplate-cli lia import --targets claudecode,copilot
# Sync all AI tools
saas-boilerplate-cli lia sync
# Update .gitignore with AI patterns
saas-boilerplate-cli lia gitignore
When creating a new project, LIA setup is offered:
◇ Do you want to configure AI Code Agents (LIA) now? Yes/No
If confirmed, it configures preferred tools automatically before starting the dev server.
Example LIA session:
🤖 LIA - AI Code Agents Configuration
✅ Checking system requirements... Ready
◆ What would you like to do with LIA?
│ ● Initialize LIA on my Code Agents (Eg. Cursor, Claude Code, Codex)
│ ○ Sync All Configurations
│ ○ Update .gitignore
└
◆ Select your preferred Code Agents:
│ ● GitHub Copilot
│ ● Cursor
│ ● Claude Code
│ ● Codex CLI
└
◆ Ready to configure 4 Code Agents? ● Yes / ○ No
◑ Setting up GitHub Copilot... ✓
◑ Setting up Cursor... ✓
◑ Setting up Claude Code... ✓
◑ Setting up Codex CLI... ✓
✅ LIA is ready! All 4 Code Agents are now configured with SaaS Boilerplate patterns.
🚀 Your AI agents are now ready to assist!
lia - Show interactive configuration menulia generate --targets <tools> - Generate for specific AI toolslia import --targets <sources> - Import existing configurationslia sync - Sync all AI tools configurationslia gitignore - Update .gitignore with AI patterns--verbose - Enable detailed output--targets - Comma-separated tool list: copilot,cursor,claudecode,codexcli,geminicli,opencode,cline,roocode,qwencode,kiroide,amazonq,junie,augmentcode,windsurf,warpssh-keygen -t ed25519) and added to GitHub (Settings > SSH keys). Test: ssh -T git@github.com.npm install -g yarn).docker-compose.yml for ports/volumes.| Command | Description | Example |
|---|---|---|
create <name> [--branch <branch>] | Scaffold new SaaS project. | saas-boilerplate create app --branch main |
dev | Start dev mode (in project dir). | saas-boilerplate dev |
lia [subcommand] [options] | Configure AI Code Agents (LIA). | saas-boilerplate lia |
lia generate --targets <tools> | Generate for specific AI tools. | saas-boilerplate lia generate --targets copilot,cursor |
lia import --targets <sources> | Import existing configs. | saas-boilerplate lia import --targets claudecode |
lia sync | Sync all AI configurations. | saas-boilerplate lia sync |
lia gitignore | Update .gitignore with AI patterns. | saas-boilerplate lia gitignore |
LIA Targets Available: copilot, cursor, claudecode, codexcli, geminicli, opencode, cline, roocode, qwencode, kiroide, amazonq, junie, augmentcode, windsurf, warp
Global Options: --branch, --targets, --verbose, --debug
See the scaffolded project's README.md for full boilerplate docs.
Common issues and fixes:
git clone https://github.com/vibe-dev/saas-boilerplate test-clone. For SSH: ssh -T git@github.com.ssh-add ~/.ssh/id_rsa).release/2.1.0). Default: main.--depth=1 manually; CLI doesn't shallow-clone yet.docker logout && docker login (create/verify free account at hub.docker.com).docker --version && docker compose ps.lsof -i :5432 | kill -9 <PID> (Postgres). Edit docker-compose.yml ports.docker system prune -a. Retry: docker compose pull.docker compose logs postgres (or service name).curl -fsSL https://bun.sh/install | bash for Bun).nvm install 22).node_modules + lockfile (bun.lockb/yarn.lock), retry install.docker compose ps.prisma generate manually. Reset DB: docker compose down -v && up -d && db:migrate:dev.postgresql://docker:docker@localhost:5432/docker).lsof -i :3000 | kill -9 <PID>.lint or typecheck.npx rulesync --version.saas-boilerplate create first.saas-boilerplate lia gitignore to add generated files to .gitignore.--targets copilot,cursor.--verbose for detailed error messages and debugging info.npm install -g npx.DEBUG=* saas-boilerplate create app for verbose logs.chmod +x index.js if needed.npm update -g saas-boilerplate-cli (or equivalent).If LIA issues persist, run with --verbose and check console output or open a GitHub issue with error logs, OS, and steps to reproduce.
git clone <your-fork> && cd saas-boilerplate-cli.bun install (or your manager).bun index.js create test-app (tests setup).See CONTRIBUTING.md for details.
MIT License. See LICENSE for details.
Made with ❤️ by Felipe Barcelos. Questions? Open an issue.
FAQs
CLI tool to set up a SaaS boilerplate project
We found that saas-boilerplate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.