A fast, zero-config CLI tool to fetch YouTube transcripts from the command line. No API key required.
go install github.com/Cap0n3/pulltra-cli@latestOr build from source:
git clone https://github.com/Cap0n3/pulltra-cli.git
cd pulltra-cli
go build -o pulltra-cli .pulltra-cli [flags] <video-url-or-id>
| Flag | Short | Default | Description |
|---|---|---|---|
--copy |
-c |
false |
Copy transcript to clipboard |
--lang |
-l |
en |
Transcript language (BCP 47 code) |
--plain |
-p |
false |
Plain text without timestamps |
--output |
-o |
Write output to a file |
Fetch a transcript with timestamps:
pulltra-cli https://www.youtube.com/watch?v=dQw4w9WgXcQ[0:00] Welcome to the channel. Today we're going to cover...
[0:15] Let's start with the basics. This is something you'll want to know...
Copy transcript to clipboard:
pulltra-cli --copy dQw4w9WgXcQGet plain text (no timestamps):
pulltra-cli --plain dQw4w9WgXcQSave to a file in French:
pulltra-cli --lang fr --output transcript.txt https://youtu.be/dQw4w9WgXcQhttps://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/shorts/VIDEO_ID- Bare video ID (e.g.
dQw4w9WgXcQ)
Clipboard support requires wl-copy (Wayland), xclip, or xsel (X11) on Linux, and pbcopy on macOS.
pulltra-cli uses YouTube's innertube API to retrieve caption data — no API key or authentication needed. It supports both manual and auto-generated captions.
Each package has godoc comments. Browse them with:
# Project overview
go doc -all .
# Individual packages
go doc -all ./cmd
go doc -all ./internal/youtube
go doc -all ./internal/format
go doc -all ./internal/clipboardOr serve as HTML locally:
go install golang.org/x/tools/cmd/godoc@latest
godoc -http=:6060
# Then open http://localhost:6060/pkg/github.com/Cap0n3/pulltra-cli/MIT