Yt-dlp --netrc [new] Jun 2026
C:\Users\ \.netrc (Note: You may need to set the %HOME% environment variable manually if it's not recognized). Standard Configuration Format
Windows historically uses _netrc (underscore prefix). yt-dlp attempts to check both .netrc and _netrc . Ensure your HOME environment variable is set correctly, or the application might not find the file. yt-dlp --netrc
If you cannot log in via .netrc because of 2FA, the recommended method is to use : C:\Users\ \
If the URL requires authentication, yt-dlp will automatically look up the credentials for that host in your .netrc file. yt-dlp --netrc