A lightweight command-line tool that lets you extract and display transcripts from any YouTube video.
- Extract transcripts from YouTube videos using just a URL
- Support for transcripts in different languages
- Handle various YouTube URL formats (standard, shortened, embed)
- Simple and intuitive command-line interface
- Fast performance with minimal dependencies
This tool requires Bun runtime.
- Clone this repository
git clone https://github.com/MichalBastrzyk/yt-transcript-cli.git
cd yt-transcript-cli
- Install dependencies
bun install
- Build the project
bun run build
- Use the install script
chmod +x install.sh
./install.sh
This will copy the executable to ~/.local/bin/
. Make sure this directory is in your PATH.
yt-transcript-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ
yt-transcript-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ fr
yt-transcript-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ > transcript.txt
Contributions are welcome! Please feel free to submit a Pull Request.
MIT