1.0.0 • Published 7 years ago
switch-proxy v1.0.0
switch-proxy
switch-proxy(sp) simplifies switching proxies of your git, docker, npm, etc.
By default, switch-proxy needs a http-proxy service but you can setup one from
an existing SOCKS5 service with the --use-socks option.
Installation
npm i -g switch-proxySupported Tools
- git
- You need to use
httpsinstead ofsshto utilize the http-proxy.
- You need to use
- npm
- switch-proxy will set
strict-ssl=falseas well.
- switch-proxy will set
- apm
- vscode
- Currently, installation from CLI is supported, i.e.
code --install-extension. See the doc for detail.
- Currently, installation from CLI is supported, i.e.
Please submit PRs to help us support more tools.
Usage
ls
List http-proxy configs in the config files of target tools:
sp ls gitls all
List http-proxy configs in the config files of all supported tools:
sp ls allset
Set http-proxy config of the target tool in its config file:
sp set git http://127.0.0.1:8080set all
Set http-proxy config of the all tools in their config files:
sp set all http://127.0.0.1:8080set --use-socks
Set the configs and setup the http-proxy service from an existing SOCKS5 service:
sp set all http://127.0.0.1:8080 --use-socks=127.0.0.1:1080unset
Unset the http-proxy configs of related tools in their config files:
sp unset allConfigs
Using the --help option to list all commands and options.
LICENSE
MIT
1.0.0
7 years ago