CLI to scaffold production-ready Turborepo monorepos with TypeScript, React, Tailwind CSS, Biome, Lefthook, Docker (PostgreSQL + Redis), and automated CI/CD.
pnpm create @aiherrera/turbo my-app
cd my-app
pnpm devnpm create @aiherrera/turbo my-app
cd my-app
npm run devyarn create @aiherrera/turbo my-app
cd my-app
yarn devbun create @aiherrera/turbo my-app
cd my-app
bun devpnpx @aiherrera/create-turbo my-app
# or
npx @aiherrera/create-turbo my-apppnpm create @aiherrera/turbo [project-name] [options][project-name]- Name of your project (optional, will prompt if not provided)
-p, --package-manager <manager>- Package manager to use (pnpm, npm, yarn, bun)--skip-install- Skip installing dependencies--skip-git- Skip git initialization--with-addons <addons>- Comma-separated list of add-ons to include (e.g., expo)-h, --help- Display help-V, --version- Display version
# Interactive mode (prompts for project name, package manager, and add-ons)
pnpm create @aiherrera/turbo
# With project name
pnpm create @aiherrera/turbo my-awesome-app
# With specific package manager
pnpm create @aiherrera/turbo my-app -p npm
# With add-ons (Expo mobile app)
pnpm create @aiherrera/turbo my-app --with-addons expo
# Skip dependency installation (useful for CI/CD)
pnpm create @aiherrera/turbo my-app --skip-install
# Skip git initialization
pnpm create @aiherrera/turbo my-app --skip-git
# Combine options
pnpm create @aiherrera/turbo my-app -p yarn --with-addons expo --skip-gitThis CLI scaffolds a production-ready Turborepo monorepo with:
- TypeScript - Type-safe development
- React - UI library
- Tailwind CSS - Utility-first styling
- Biome - Lightning-fast linting and formatting
- Turborepo - High-performance build orchestration
- pnpm - Efficient package management
- Lefthook - Fast git hooks
- Conventional Commits - Enforced commit standards
- Semantic Release - Automated versioning and releases
- PostgreSQL + Redis - Pre-configured databases
- Multi-stage builds - Optimized for dev and production
- @repo/ui - Shared React components
- @repo/typescript-config - Shared TypeScript configurations
- GitHub Actions - Pre-configured workflows
- Automated releases - On every push to main
Enhance your monorepo with optional add-ons during setup or by using the --with-addons flag:
- Repository: Lynsoft/turborepo-template-apps-expo
- Location:
apps/mobile-expo - Description: React Native mobile app with Expo, fully integrated with your monorepo
- Features:
- Pre-configured Expo app with Sentry, NativeWind, and file-based routing
- Shared UI components from
@repo/ui - TypeScript support
- Ready for iOS and Android development
- Automatic Configuration: The CLI automatically updates:
turbo.json: Adds Expo-specific build outputs (android/app/build/**,ios/build/**,.expo/**)biome.json: Adds Expo directory exclusions (!.expo,!android,!ios)
# Interactive selection (prompts during setup)
pnpm create @aiherrera/turbo my-app
# Via CLI flag
pnpm create @aiherrera/turbo my-app --with-addons expo
# Multiple add-ons (when more become available)
pnpm create @aiherrera/turbo my-app --with-addons expo,otherThis CLI clones from: Lynsoft/turborepo-template
# Clone the repository
git clone https://github.com/Lynsoft/create-turbo.git
cd create-turbo
# Install dependencies
pnpm install
# Run tests (automatically builds first)
pnpm test
# Or build manually
pnpm build
# Test locally
pnpm link --global
pnpm create @aiherrera/turbo test-appThis project uses semantic-release for automated versioning and publishing to npm.
-
Commit with conventional commits (required):
git commit -m "feat: add new feature" git commit -m "fix: resolve bug" git commit -m "docs: update README"
-
Push to main branch:
git push origin main
-
Automated release (GitHub Actions):
- Analyzes commits since last release
- Determines version bump (major/minor/patch)
- Generates CHANGELOG.md
- Creates GitHub release
- Publishes to npm
- Commits version bump back to repo
feat:β Minor version bump (1.0.0 β 1.1.0)fix:β Patch version bump (1.0.0 β 1.0.1)perf:β Patch version bumpdocs:β Patch version bumpBREAKING CHANGE:β Major version bump (1.0.0 β 2.0.0)chore:,test:,ci:β No release
This project uses npm Trusted Publishing (provenance) for secure, token-free publishing.
-
Configure npm Trusted Publishing:
- Go to npmjs.com β Account Settings β Publishing Access
- Click "Configure Trusted Publishing"
- Add GitHub as a provider:
- Repository:
Lynsoft/create-turbo - Workflow:
publish.yml - Environment: (leave empty)
- Repository:
- Save configuration
-
GITHUB_TOKEN: Automatically provided by GitHub Actions (no setup needed)
If you can't use Trusted Publishing:
- NPM_TOKEN: Your npm access token
- Go to npmjs.com β Access Tokens β Generate New Token
- Select "Automation" type
- Add to GitHub: Settings β Secrets β New repository secret β
NPM_TOKEN
Note: Trusted Publishing is more secure and doesn't require managing tokens!
MIT Β© Alain Iglesias