Is it possible to configure ballerina command to use http proxy when searching for the packages?

Doing `ballerina search twitter` fails with the following error message:

`Connection to the remote host failed : connection timed out: api.central.ballerina.io/35.227.97.45:443`

I tried setting up both http and https proxy in `JAVA_OPTS` environment variable, but it didn't work.