Zero ceremony.
Run it anywhere.
# Run without installing
> npx dumpall src/
# Or install globally
> npm install -g dumpall
One mental model.
Every flag.
# CORE I/O
--clip, -c Copy output to clipboard
--out, -o <file> Write output to file
--note, -m [text] Prepend a prompt (omit value for interactive)
--format <fmt> Output format: md (default), xml, json
--stdin Read sources from stdin (one per line)
--share Upload and print a shareable URL
--qr Upload and display a scannable QR code
# FILTERING
--exclude, -e <pat> Exclude glob pattern
--grep <pattern> Only include files containing pattern
--max-file-size <size> Skip files larger than size (default: 1MB)
# CONTEXT MANAGEMENT
--tree-only Output only the directory tree
--tokens Show estimated token count
--max-tokens <n> Truncate to budget (drops largest files first)
# SYSTEM & CACHE
--follow-symlinks Follow symlinks during traversal
--strict Abort on any error instead of skipping
--no-cache Bypass cache for remote fetching
--cache-ttl <dur> Cache TTL for branch refs (e.g. 1h, 30m, 0)
--max-pages <n> Max pages to fetch for URL globs (default: 50)
--install-completions Install shell completions (bash/zsh/fish)
Environment Variables.
DUMPALL_FORMAT Default output format (md, xml, json)
DUMPALL_MAX_PAGES Default max pages for URL glob fetching
DUMPALL_CACHE_DIR Override cache dir (default: ~/.cache/dumpall)
# PRIVATE REPO AUTHENTICATION
# Set token manually or let dumpall fallback to 'gh auth login'
GITHUB_TOKEN Token for private GitHub repos
GITLAB_TOKEN Token for private GitLab repos
BITBUCKET_TOKEN Token for private Bitbucket repos