Put this line in your “.zshrc” or “.bashrc”.

On the first run set mpv as default player.

You can search with:

Now you can listen to YouTube from terminal and you will consume less bandwidth as well.
youtube-in-terminal
youtube-in-terminal-1