initrepo-cli is a developer utility with two primary functions: scaffolding new projects and preparing existing codebases for AI analysis. It includes a powerful system to generate boilerplate for Next.js, React, and Python applications.
For existing code, it scans your project, filters irrelevant files, and generates a structured .initrepo/ directory. This directory contains a tech stack summary, a visual file tree, and a structured XML file with the complete source code for LLMs.
Quick Project Export
npx initrepo-cli (Exports codebase to 1 file)
Create new projects with organized structure:
Available project types: nextjs, react, react-native, python-automation, python-mcp
initrepo-cli scaffold <type> <project-name>
Examples:
initrepo-cli scaffold nextjs my-web-app
initrepo-cli scaffold python-automation my-script
Features
- 📦 Complete Export - Creates XML export of your entire codebase
- 🚀 Project Scaffolding - Bootstrap new projects with best practices
- 🔍 Smart Analysis - Automatically detects and analyzes your project structure
- 📊 Tech Stack Detection - Identifies dependencies, frameworks, and build tools
- 🌳 Project Visualization - Generates clean file tree representations
- ⚡ Fast & Lightweight - Minimal dependencies, maximum performance