English | Русский
An interactive terminal tool that merges your project files into a single document, ready to paste into any LLM context window.
When working with AI coding assistants (Claude, GPT, Gemini, etc.), you often need to share your codebase as context. FileCLI solves this: point it at a folder, pick the files you want, and get a clean merged .txt in seconds.
python merge_files.py
Key capabilities:
- Navigate your project with a keyboard driven TUI, no dependencies required
- Select or deselect individual files; FileCLI remembers your choices per directory
- Drag and drop folders or files directly into the terminal (Windows, Linux, macOS, Termux)
- Skips binary files, build artifacts, and
node_modulesautomatically - Supports English, Russian, and Chinese interfaces
FileCLI requires no third party packages, just Python 3.8 or later.
Clone and run:
git clone https://github.com/Datvex/FileCLI.git
cd FileCLI
python merge_files.pyOr download the script directly:
curl -O https://raw.githubusercontent.com/Datvex/FileCLI/main/merge_files.py
python merge_files.py| Platform | Supported |
|---|---|
| Windows 10/11 | yes |
| Linux | yes |
| macOS | yes |
| Termux | yes |
- Launch the script.
- Press
1to start, then enter a folder path or drag and drop it into the terminal. - Toggle files on/off by typing their numbers. Press
0to confirm. - Find the merged
.txtfile in your Downloads folder (or a custom path from Settings).
The output file is formatted with clear separators between files, so any LLM can parse it easily.
Press 2 from the main menu to open Settings:
- Output path — change where merged files are saved
- Language — switch between English, Russian, and Chinese
Settings are saved automatically across sessions.