Command-line tool
code2prompt
brew/code2prompt
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
CLI tool to convert your codebase into a single LLM prompt
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
cargo install code2prompt
macOS
brew install code2prompt cargo install code2prompt
Linux
brew install code2prompt cargo install code2prompt
Generate a prompt for the current project and copy it to the clipboard (default behavior)
code2prompt path/to/project
Include only specific files and exclude a directory
code2prompt path/to/project -i "**/*.rs" -e "tests/**"
Write the prompt to a file instead of the clipboard
code2prompt path/to/project -O my_prompt.txt
Browse
Related command-line tools
- markdown2html-converter
A tool for converting a Markdown file to a single HTML file with built-in CSS and JS. - fastmod
Fast, partial replacement for codemod (find/replace tool for programmers) - pdftohtml
Utility which converts PDF files into HTML and XML formats - mlx-lm
Run LLMs with MLX - xmlto
Convert XML to another format (based on XSL or other tools) - codebase-memory-mcp
Code intelligence knowledge graph MCP server for AI coding agents - fallow
Codebase intelligence for TypeScript and JavaScript - tagref
Refer to other locations in your codebase
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents