代理

命令行参数(单次使用)

开启配置

需要管理员权限。

winget settings --enable ProxyCommandLineOptions

使用

winget install Git.Git --proxy http://example.com:port

管理员配置(长期有效)

需要管理员权限。

开启

winget settings set DefaultProxy http://example.com:port

关闭

winget settings reset DefaultProxy