Toggle proxy environments (http_proxy and https_proxy) in command line.
npm install proxy-cmdToggle proxy env variables (http_proxy, https_proxy and no_proxy) in command line.

English | 简体中文
``bash`
npm i -g proxy-cmd
Press Win + R, input "cmd", then press Ctrl + Shift + Enter, open cmd as administrator
`bashInit proxy-cmd
proxy init 'http://127.0.0.1:8234'
$3
Run the following commands in terminal
`bash
Init proxy-cmd
sudo proxy init 'http://127.0.0.1:8234'Set proxy env variables in current terminal, should init first
http_proxy=http://127.0.0.1:8234
https_proxy=http://127.0.0.1:8234
proxy-onDel proxy env variables in current terminal, should init first
proxy-offSet global proxy env variables
Needs restart the terminal after running this command!!!
http_proxy=http://127.0.0.1:8234
https_proxy=http://127.0.0.1:8234
sudo proxy setDel global proxy env variables
Needs restart the terminal after running this command!!!
sudo proxy delShow proxy url
sudo proxy urlSet proxy url
sudo proxy url 'http://127.0.0.1:7890'Change proxy url port
sudo proxy port 8899Show no_proxy config
sudo proxy npChange no_proxy config
sudo proxy np 'localhost,127.0.0.1'Delete no_proxy config
sudo proxy np del
``