$ codeprint$ codeprint -f mcp # Generate MCP format$ codeprint -f txt # Generate TXT format (default)$ codeprint -c$ codeprint -p /path/to/projectScan specific directory
$ codeprint -o my_snapshot.txtCustom output file
$ codeprint --include-hiddenInclude hidden files
$ codeprint --max-files 1000 --max-file-size 2048 --max-lines 2000Set custom limits
$ codeprint --no-auto-detectDisable automatic project detection
$ codeprint --no-gitignoreDisable gitignore patterns
$ codeprint -vVerbose output
CodePrint automatically detects your project type and applies appropriate ignore patterns:
| Project Type | Detection Files | Auto-Ignored |
|---|---|---|
| Python | requirements.txt, setup.py, pyproject.toml | __pycache__, *.pyc, venv/, .egg-info/ |
| JavaScript | package.json | node_modules/, dist/, *.min.js |
| TypeScript | tsconfig.json | node_modules/, dist/, *.d.ts |
| Java | pom.xml, build.gradle | target/, *.class, .gradle/ |
| Android | AndroidManifest.xml, gradle.properties | build/, *.apk, *.aab |
| iOS | Podfile, *.xcodeproj | Pods/, *.ipa, DerivedData/ |
| React | package.json + React files | node_modules/, build/, .next/ |
| .NET | *.csproj, *.sln | bin/, obj/, packages/ |
| Go | go.mod | vendor/, *.exe |
| Rust | Cargo.toml | target/, Cargo.lock |
| Flutter | pubspec.yaml | build/, .dart_tool/ |
Simple text format with file contents and directory structure. Perfect for quick sharing.
Structured markdown format with metadata, syntax highlighting, and better organization. Ideal for AI assistants.
| Flag | Description | Default |
|---|---|---|
| -f, --format | Output format (txt/mcp) | txt |
| -o, --output | Output file name | auto-generated |
| -c, --clipboard | Copy to clipboard | false |
| -p, --path | Path to scan | current directory |
| --max-file-size | Max file size (KB) | 1024 |
| --max-files | Max number of files | 500 |
| --max-lines | Max lines per file | 1000 |
| --include-hidden | Include hidden files | false |
| --no-gitignore | Ignore .gitignore patterns | false |
| --no-auto-detect | Disable project type detection | false |
| --no-progress | Disable progress output | false |
| --no-parallel | Disable parallel processing | false |
| -v, --verbose | Verbose output | false |
export GEMINI_DEFAULT_FORMAT=mcpexport GEMINI_CLIPBOARD=trueexport GEMINI_MAX_FILES=1000# Clone the repository$ git clone https://github.com/Tanayk07/codeprint.git$ cd codeprint# Install dependencies$ pip install -r requirements.txt# Run locally$ python src/codeprint.py# Run tests$ pytest tests/# Build distributions$ python setup.py sdist bdist_wheel