crev is a command-line tool that allows you to easily bundle your codebase into a single file for use with LLMs.
This project is a fork of vossenwout/crev, with improvements to the command
syntax to make the bundle command more intuitive and customizable for various use cases. The bundle command follows
familiar patterns from other Linux command-line tools, taking a directory as its primary argument and supporting include
and exclude flags for granular control. It also supports globbing for include and exclude flags, using the excellent
doublestar library.
- Bundle your codebase into a single .txt file.
- Select files and directories to include or exclude.
- Cross-platform support (Linux, macOS, Windows).
- Customizable (ignore / include specific files, directories, etc).
- Written in Go.
For installation instructions and documentation, go to the official docs.
-
Bundle your codebase (saved locally as a .txt file):
crev bundle . -
Generate a
.crev-config.yamlfile to customise includes and excludes.:crev init
The crev bundle command accepts include and exclude flags and supports file globbing for finer-grained control over
which files are included in the project. If no path is specified as the first argument, it defaults to the current
directory.
crev bundle --exclude='*.md' --exclude='test/*'
crev bundle --include='src/**' --exclude='src/vendor/**'We welcome contributions!