|
| 1 | +# Command Line Options |
| 2 | + |
| 3 | +## Basic Options |
| 4 | + |
| 5 | +```bash |
| 6 | +repomix [directory] # Process specific directory (default: ".") |
| 7 | +``` |
| 8 | + |
| 9 | +## Output Options |
| 10 | + |
| 11 | +| Option | Description | Default | |
| 12 | +|--------|-------------|---------| |
| 13 | +| `-o, --output <file>` | Output file name | `repomix-output.txt` | |
| 14 | +| `--style <type>` | Output style (`plain`, `xml`, `markdown`) | `plain` | |
| 15 | +| `--output-show-line-numbers` | Add line numbers | `false` | |
| 16 | +| `--copy` | Copy to clipboard | `false` | |
| 17 | +| `--no-file-summary` | Disable file summary | `true` | |
| 18 | +| `--no-directory-structure` | Disable directory structure | `true` | |
| 19 | +| `--remove-comments` | Remove comments | `false` | |
| 20 | +| `--remove-empty-lines` | Remove empty lines | `false` | |
| 21 | + |
| 22 | +## Filter Options |
| 23 | + |
| 24 | +| Option | Description | |
| 25 | +|--------|-------------| |
| 26 | +| `--include <patterns>` | Include patterns (comma-separated) | |
| 27 | +| `-i, --ignore <patterns>` | Ignore patterns (comma-separated) | |
| 28 | + |
| 29 | +## Remote Repository |
| 30 | + |
| 31 | +| Option | Description | |
| 32 | +|--------|-------------| |
| 33 | +| `--remote <url>` | Process remote repository | |
| 34 | +| `--remote-branch <name>` | Specify branch/tag/commit | |
| 35 | + |
| 36 | +## Configuration |
| 37 | + |
| 38 | +| Option | Description | |
| 39 | +|--------|-------------| |
| 40 | +| `-c, --config <path>` | Custom config file path | |
| 41 | +| `--init` | Create config file | |
| 42 | +| `--global` | Use global config | |
| 43 | + |
| 44 | +## Security |
| 45 | + |
| 46 | +| Option | Description | Default | |
| 47 | +|--------|-------------|---------| |
| 48 | +| `--no-security-check` | Disable security check | `true` | |
| 49 | + |
| 50 | +## Other Options |
| 51 | + |
| 52 | +| Option | Description | |
| 53 | +|--------|-------------| |
| 54 | +| `-v, --version` | Show version | |
| 55 | +| `--verbose` | Enable verbose logging | |
| 56 | +| `--top-files-len <number>` | Number of top files to show | `5` | |
| 57 | + |
| 58 | +## Examples |
| 59 | + |
| 60 | +```bash |
| 61 | +# Basic usage |
| 62 | +repomix |
| 63 | + |
| 64 | +# Custom output |
| 65 | +repomix -o output.xml --style xml |
| 66 | + |
| 67 | +# Process specific files |
| 68 | +repomix --include "src/**/*.ts" --ignore "**/*.test.ts" |
| 69 | + |
| 70 | +# Remote repository |
| 71 | +repomix --remote user/repo --remote-branch main |
| 72 | +``` |
0 commit comments