Skip to content

Commit 7f4efe7

Browse files
committed
Add http_proxy / sudo -E instructions
Added instructions to honour http_proxy and other env-vars when using sudo. Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent fd5addc commit 7f4efe7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/cli/install.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ You can install the CLI with a `curl` utility script, `brew` or by downloading t
77
Utility script with `curl`:
88

99
```bash
10-
$ curl -sSL https://cli.openfaas.com | sudo sh
10+
$ curl -sSL https://cli.openfaas.com | sudo -E sh
1111
```
1212

13+
> The flag `-E` allows for any `http_proxy` environmental variables to be passed through to the installation bash script.
14+
1315
Non-root with curl (requires further actions as advised after downloading):
1416

1517
```bash
@@ -32,9 +34,14 @@ $version = (Invoke-WebRequest "https://api.github.com/repos/openfaas/faas-cli/re
3234
(New-Object System.Net.WebClient).DownloadFile("https://github.com/openfaas/faas-cli/releases/download/$version/faas-cli.exe", "faas-cli.exe")
3335
```
3436

37+
## Running `faas-cli` with sudo
38+
39+
If you're running the faas-cli with `sudo` we recommend using `sudo -E` to pass through any environmental variables you may have configured such as a `http_proxy`, `https_proxy` or `no_proxy` entry.
40+
3541
## Build from source
3642

3743
The [contributing guide](../contributing) has instructions for building from source and for configuring a Golang development environment.
38-
## Learn about the CLI
3944

40-
[Morning coffee with the OpenFaaS CLI](https://blog.alexellis.io/quickstart-openfaas-cli/)
45+
## Tutorial: learn how to use the CLI
46+
47+
[Morning coffee with the OpenFaaS CLI](https://blog.alexellis.io/quickstart-openfaas-cli/)

0 commit comments

Comments
 (0)