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