AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents