Simple Context, Powerful Workflows
In a world of complex tools, dumpall
embraces Unix philosophy: do one thing well.
It's a simple CLI tool that aggregates selected files into a single, structured output – transforming scattered code into actionable context for any need.
Modern AI coders/editors often misinterpret context, consume too many tokens with irrelevant files, or fail to reference critical files even with @ mentions. Web-based AI chat versions are often better with document input, but getting that document is manual.
dumpall lets you precisely curate the exact set of files (and exclude noise like node_modules) to feed to an AI. It produces a clean, structured Markdown document perfect for pasting into an AI chat (web or CLI) or for generating embeddings.
npx dumpall . -e node_modules -e .git --clip
You're working in your terminal, but your preferred AI model is a web-based chat interface (e.g., ChatGPT, Claude, GitHub Copilot Chat in browser). Manually opening, copying, and pasting multiple files is tedious and error-prone.
With a single command, dumpall . --clip, you can scoop up your entire folder's relevant code (excluding specified files) and instantly have it ready in your clipboard. Just a quick Ctrl/Cmd+V in your browser, and your AI has all the context it needs.
npx dumpall . --clip
Reviewing a large pull request or debugging a bug across several interconnected files often means constantly opening new tabs, scrolling, and losing context.
Quickly gather all files related to a feature branch or a specific bug. The aggregated output gives you a single, unified view of the relevant code, making it easier to spot inconsistencies, architectural issues, or the root cause of a bug.
npx dumpall feature-x/ --color
Need to share a few related code files with a colleague, put them in a Slack thread, or quickly prepare snippets for a blog post? Manual copying can be slow, especially with formatting.
dumpall aggregates your files into a clean, Markdown-formatted output. Copy to clipboard (--clip) and paste anywhere. This provides a consistent, readable format that includes file paths as headings, maintaining context better than raw text dumps.
npx dumpall ./src --clip
Managing a personal or team-shared knowledge base of useful code patterns. Copying and organizing snippets from live projects can be a fragmented process.
Extract specific folders or file types to quickly populate your custom knowledge base. The structured output ensures your snippets retain their source context, making them more discoverable and reusable later.
npx dumpall utils/sql --clip
Many automation tasks (e.g., custom linters, static analysis, transformation scripts) require feeding an aggregated view of code, not just individual files. Building this aggregation logic from scratch in scripts can be complex.
dumpall adheres to Unix principles by being pipe-friendly. Its output can be easily redirected or piped directly to other CLI tools, making it a powerful building block in custom shell scripts, CI/CD pipelines, or automation workflows.
npx dumpall . > all_code.md
The sheer inefficiency and frustration of manually navigating a file tree, selecting text from multiple files, and copy-pasting them one by one. This is a repetitive, error-prone task that breaks focus.
This tool exists to eliminate this tedious manual labor. One command, and all your desired files are instantly consolidated, formatted, and ready for use. It's about saving developer time and cognitive load, focusing on what matters: solving problems, not tedious data aggregation.
npx dumpall . -e node_modules -e .git
Many "all-in-one" code tools are bloated, slow, or have steep learning curves. Sometimes you just need a straightforward utility that does one job extremely well.
dumpall is designed to be minimal, fast, and easy to use. It sticks to the Unix philosophy: a simple CLI command that combines files. It doesn't try to be an IDE, a linter, or a full AI agent; it's a powerful pre-processing step that empowers other tools and workflows.
npx dumpall --help
Experience the power of simple, structured code aggregation. One command, infinite possibilities.
npx dumpall . -e node_modules