Download youtube video from command line
youtube-dl is a small command-line program to download videos from YouTube.com. It requires the Python interpreter (2.6, 2.7, or 3.3+), and works on all platform.
To install on windows click here
To install it right away for all UNIX users (Linux, OS X, etc.), type:
sudo curl https://yt-dl.org/downloads/2014.11.21.1/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl
If you do not have curl, you can alternatively use a recent wget:
sudo wget https://yt-dl.org/downloads/2014.11.21.1/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl
For more information you can read at https://rg3.github.io/youtube-dl/index.html