If you have Python installed:
pip install yt-dlp
Method 3: Using Package Managers
Using Scoop:
scoop install yt-dlp
Using Chocolatey:
choco install yt-dlp
Installation on macOS
Using Homebrew:
brew install yt-dlp
Using pip:
pip3 install yt-dlp
Installation on Linux
Debian/Ubuntu:
sudo apt install yt-dlp
Arch Linux:
sudo pacman -S yt-dlp
Using pip:
pip install yt-dlp
Verify Installation
After installation, verify it by running:
yt-dlp --version
If it displays a version number, the installation was successful.
Basic Usage
Download a video:
yt-dlp https://www.youtube.com/watch?v=dQw4w9WgXcQ
Download audio only (MP3 format):
yt-dlp -x --audio-format mp3 https://www.youtube.com/watch?v=dQw4w9WgXcQ
Select specific quality:
yt-dlp -f "best[height<=720]" https://www.youtube.com/watch?v=dQw4w9WgXcQ
yt-dlp Command Generator
Example: https://youtu.be/WSNor6VH7oI
Files will be saved in this path with filename format "title-videoID.extension"