How to set a proxy for PlatformIO CLI?

Upper case is required!

> set HTTP_PROXY="http://10.10.1.10:3128"
> set HTTPS_PROXY="http://10.10.1.10:1080"

See also this thread