Using a Proxy
Proxy support is built-in to the Navify CLI. Proxy settings can be configured via the config file or an environment variable.
To configure proxy settings via the config file, run the following with the URL of the proxy server:
navify config set -g proxy http://proxy.example.com:8888
To configure proxy settings via an environment variable, use one of the following:
$ export HTTP_PROXY="http://proxy.example.com:8888" # also used by npm
$ export HTTPS_PROXY="https://proxy.example.com:8888" # also used by npm
$ export NAVIFY_HTTP_PROXY="http://proxy.example.com:8888"
Other CLIs
Each CLI that you use must be configured separately to proxy network requests.
npm
npm config set proxy http://proxy.company.com:8888
git
git config --global http.proxy http://proxy.example.com:8888
SSL Configuration
The Navify CLI can be configured to use various SSL settings for HTTP requests.
$ navify config set -g ssl.cafile /path/to/cafile # file path to your CA root certificate
$ navify config set -g ssl.certfile /path/to/certfile # file path to a client certificate
$ navify config set -g ssl.keyfile /path/to/keyfile # file path to a client key file
The cafile
, certfile
, and keyfile
entries can be manually edited as arrays of strings in ~/.navify/config.json
to include multiple files.