NuGet behind a proxy

I figure out that NuGet allows proxy settings configuration since 1.4 version (June 2011). But, I can't find any command line example. I'm trying to run some build and NuGet can't connect. How do I