dumpall logo

The smart file aggregator for AI context, code reviews, or archiving.

npx dumpall . -e node_modules

See it in Action

Watch `dumpall` quickly transform your project files into structured Markdown.

dumpall visual demo

Powerful Features

LLM-Optimized Output

Formats content into clean Markdown fenced code blocks, ideal for AI consumption.

Clipboard Integration

Copy the entire formatted output directly to your clipboard with a single flag.

Smart Exclusions

Easily ignore unwanted directories like `node_modules` or `.git` with `--exclude`.

Command-Line Options

Fine-tune `dumpall`'s behavior to fit your exact needs.

Option Alias Description
--exclude <pattern> -e Exclude glob pattern. Repeatable.
--clip -c Copy output to clipboard.
--out <file> -o Write output to a file.
--note [text] -m Prepend a message or prompt. Omit value for interactive input.
--tree Prepend a directory tree to output.
--tree-only Output only the directory tree.
--tokens Show estimated token count.
--max-tokens <n> Truncate to fit token budget (drops largest files first).
--format <fmt> Output format: md (default), xml, json.
--share Upload and print a shareable URL.
--qr Upload and display a scannable QR code.
--version -v Show the current version.
--help -h Show help.

Practical Examples

Get started quickly with these common use cases.

Dump Current Directory (Excluding)

Process all files in the current folder, ignoring `node_modules` and `.git` directories.

npx dumpall . -e node_modules -e .git

Dump `src` and Copy to Clipboard

Get the formatted content of your `src` folder directly into your clipboard.

npx dumpall ./src --clip

Fetch a GitHub Repo

Pull any public repo directly — no cloning needed. Cached locally for speed.

npx dumpall github.com/owner/repo

Share as a Public URL

Upload output and get a shareable link. Add --qr for a scannable QR code instead.

npx dumpall src/ --share