Support Lithia.js by becoming a sponsor at

Menu

create-lithia-app

Lithia.js Official Project Initializer

Next-Gen Project Scaffolding

Curated Production Templates

TemplateStack HighlightsUse Case
defaultMinimal core configurationAPI development
with-drizzleDrizzle ORM + PostgreSQL setupData-intensive applications
with-prismaPrisma + PostgreSQL setupRapid prototyping

Zero-Config Initialization

Launch projects with industry-best practices:

Terminal

npx create-lithia-app@latest

Intelligent Configuration Workflow

Core Project Settings

PromptDefault ValueKey Functionality
Project Namemy-lithia-appCreates namespaced directory
Template SelectiondefaultOptimized tech stack bootstrap
Dependency InstallYesAuto-detects package manager
Git InitializationYesCreates .gitignore with defaults

Advanced Options

FlagCommand ExampleExecution Impact
--name--name=api-serviceForces specific project name
--template--template=with-drizzleBypasses template selection
--package-manager--package-manager=yarnOverrides auto-detection logic
--yes--yesSilent mode for CI/CD pipelines

Enterprise-Grade Features

Multi-Environment Ready

  1. Development setup:

Terminal

npx create-lithia-app --template=with-prisma
  1. Production foundation:

Terminal

npx create-lithia-app --template=with-drizzle --no-install

Package Manager Support

ManagerStatusFlags
npmNative--package-manager=npm
YarnStable--package-manager=yarn
pnpmBeta--package-manager=pnpm
BunBeta--package-manager=bun

Optimized Workflows

CI/CD Integration Example

Terminal

npx create-lithia-app@latest \
 --name=payment-gateway \
 --template=with-drizzle \
 --package-manager=pnpm \
 --yes

Post-Install Automation

  1. Security audit with npm audit
  2. TypeScript type checking
  3. Pre-commit hook setup (optional)
  4. Health check endpoint generation

Technical Reference

Full Command Specification

OptionTypeDefaultEnvironment
--namestringmy-lithia-appDevelopment
--templateenumdefaultAll
--no-installbooleanfalseCI/CD
--gitbooleantrueNew projects
--overwritebooleanfalseExisting folders

Exit Codes

CodeScenario
0Successful project creation
1Validation error
2Network failure
3File system permission issue

Pro Tip: Combine with lithia dev for instant hot-reload development experience after project creation.