Netlify deploy from china is blocked, is there any way to use proxy for netlify deploy?

I’m in China, and https://api.netlify.com is blocked by China from yesterday

when use netlify deploy, there are errors like below:
E:\learning\gatsby\xxxxx(master -> origin)
$ netlify deploy --prod --auth xxxxxx --dir=public --functions=lambda
» Error: request to https://api.netlify.com/api/v1/sites/xxxxx failed, reason: connect ETIMEDOUT 35.201.69.186:443

Is there some way to use a proxy for netlify deploy?

Hi, @chars, the short answer is “yes”. If you are using proxy software, it is possible to deploy to Netlify using the proxy.

If there are other questions about this, please let us know.

Hi, @luke, I’m using netlify-cli to deploy my site, use command "netlify deploy --prod --auth xxxxxx --dir=public --functions=lambda ", and using shadowsocks proxy.

but I don’t know how to use netlify-cli with proxy to deploy a site to netlify, is there any suggestion?

Thanks a lot!

Hi, @chars, I was using proxy and VPN interchangeably when they are not the same thing. This was a mistake on my part.

With a VPN this is possible. With a proxy, there is no way to do this currently. There is an open feature request for this here:

I’m sorry to have provided incorrect information. If/when the feature request (using netlify-cli via proxy) becomes possible, we’ll update you here to let you know about it.