Something like:
winget install git.git --proxy="http://127.0.0.1:2345"
This will make winget download git through the proxy server.
Possible proxy configuration options are:
WINGET_PROXY_URL)1080端口,老局域网用户了
please consider also proxy the download link inside the package , for example ,
winget install kodi --proxy http://xxx/
please also proxy the download link 'https://mirrors.kodi.tv/releases/windows/win64/kodi-18.7-Leia-x64.exe' which insided the installation package.
Possible proxy configuration options are:
- Environment variables ( e.g.
WINGET_PROXY_URL)- Auto-detecting settings from inetcpl.cpl aka IE
- command line arguments
- config file
- registry config separate from IE. This would tie in nicely with ADMX (group policy) templates down the road
I would recommend standard variables like HTTP_PROXY or HTTPS_PROXY
When adding proxy support, please do not forget supporting proxies that require NTLM-authentication!!!
In an enterprise environment where the workstations are joined to a domain, and the users use domain accounts, entering a password should not be necessary! (Windows Integrated Authentication)
Thank you!
Any plan regarding this feature?
Most helpful comment
Possible proxy configuration options are:
WINGET_PROXY_URL)