How to specify proxy using wget? ie. localhost:8082

Using curl you can run:
curl -fsS http://localhost:8082 <link>
to download something in a templateVM.

But I’m not sure how to do this with wget. I used wget -e use_proxy but that resulted in an error, unknown command: use_proxy.

Like any other tools: follow the docs or learn how to use it.

There is no mention of wget in that article.

It seems like what I need to get wget working is to run the following in the dom0 terminal:

export HTTP_PROXY=http://127.0.0.1:8082 http_proxy=$HTTP_PROXY \
         HTTPS_PROXY=$HTTP_PROXY https_proxy=$HTTPS_PROXY \
         ALL_PROXY=$HTTP_PROXY all_proxy=$ALL_PROXY \
         NO_PROXY=127.0.0.1 no_proxy=$NO_PROXY

Is that right? And then wget will work? I read the section Using the updates proxy

No. First, read the whole content before that section too. Then reconsider where you want to run that command: you should use it in the template, not dom0.