Yt Dlp commands
feature-rich command-line audio/video downloader with support for thousands of sites.
30 commands
Basic Usage
yt-dlp <URL>Download video from URL
yt-dlp -o "%(title)s.%(ext)s" <URL>Custom output filename
yt-dlp -P <path> <URL>Download to specific folder
Format Selection
yt-dlp -F <URL>List all available formats
yt-dlp -f <format> <URL>Download specific format
yt-dlp -f "best" <URL>Download best quality
yt-dlp -f "bv*+ba/b" <URL>Best video + audio merge
Audio Extraction
yt-dlp -x <URL>Extract audio only
yt-dlp -x --audio-format mp3 <URL>Convert to MP3
yt-dlp -x --audio-quality 0 <URL>Best audio quality
Subtitles
yt-dlp --write-subs <URL>Download subtitles
yt-dlp --write-auto-subs <URL>Download auto-generated subtitles
yt-dlp --sub-lang en <URL>Download English subtitles
Playlist
yt-dlp <playlist_url>Download full playlist
yt-dlp --playlist-start 5 <URL>Start from item 5
yt-dlp --playlist-end 10 <URL>End at item 10
Download Control
yt-dlp -r 1M <URL>Limit download speed
yt-dlp --retries 10 <URL>Retry failed downloads
yt-dlp --fragment-retries 10 <URL>Retry fragments
Authentication
yt-dlp -u <user> -p <pass> <URL>Login with credentials
yt-dlp --cookies <file> <URL>Use cookies file
Metadata & Thumbnails
yt-dlp --write-thumbnail <URL>Download thumbnail
yt-dlp --embed-thumbnail <URL>Embed thumbnail
yt-dlp --add-metadata <URL>Add metadata to file
Search
yt-dlp "ytsearch:query"Search YouTube
yt-dlp "ytsearch10:query"Download top 10 results
Advanced
yt-dlp --proxy <url> <URL>Use proxy
yt-dlp --geo-bypass <URL>Bypass geo restrictions
yt-dlp --exec "<cmd>" <URL>Run command after download
yt-dlp --config-location <path>Use custom config file