Why dumpall?

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.

8 Practical Use Cases

1. Effortless Context for AI (Smart Prompting)

Pain Point:

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 Solution:

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

2. Bridging CLI to Browser-based AI

Pain Point:

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.

dumpall Solution:

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

3. Rapid Code Review & Debugging Prep

Pain Point:

Reviewing a large pull request or debugging a bug across several interconnected files often means constantly opening new tabs, scrolling, and losing context.

dumpall Solution:

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

4. Instant Code Sharing & Ad-Hoc Documentation

Pain Point:

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 Solution:

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

5. Building Custom Knowledge Bases & Code Snippet Collections

Pain Point:

Managing a personal or team-shared knowledge base of useful code patterns. Copying and organizing snippets from live projects can be a fragmented process.

dumpall Solution:

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

6. Scripting & Automation Input

Pain Point:

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 Solution:

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

7. Overcoming Manual Copy-Pasting Headaches

Pain Point:

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.

dumpall Solution:

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

8. Lean, Unix-Philosophied Simplicity

Pain Point:

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 Solution:

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

Ready to Get Started?

Experience the power of simple, structured code aggregation. One command, infinite possibilities.

npx dumpall . -e node_modules
← Back to Home