I have been using RepoMix on and off for projects on Github, but I never knew they had a CLI for it. It’s extremely useful and easy to setup. I was using a custom python script but the repomix cli is much easier to work with.
There are a bunch of useful commands. Here is a quick overview:
# Install using npm
npm install -g repomix
# Then run in any project directory
repomix
Pack specific files or directories
repomix --include "src/**/*.ts,**/*.md"
Exclude specific files or directories
repomix --ignore "**/*.log,tmp/"
Pack remote repositories
npx repomix --remote https://github.com/yamadashy/repomix
Initialize new config file
repomix --init
Choose your output style
# XML format (default)
repomix --style xml
# Markdown format
repomix --style markdown
# Plain text format
repomix --style plain