Skip to content

Commit 57ad854

Browse files
committed
Changed script install to download-review first
1 parent 738ad10 commit 57ad854

1 file changed

Lines changed: 27 additions & 9 deletions

File tree

docs-ref-conceptual/Latest-version/includes/cli-install-linux-apt.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,36 @@ There are two options to install the Azure CLI on your system. You can download
1919
that runs the install commands for you, or you can execute the install commands yourself in a
2020
step-by-step process. Both methods are provided here:
2121

22-
### Option 1: Install with one command
22+
### Option 1: Install with a script
2323

24-
The easiest way to install the Azure CLI is through a script maintained by the Azure CLI team. This
25-
script runs all installation commands in one step. This script is downloaded via `curl` and piped
26-
directly to `bash` to install the CLI.
24+
The Azure CLI team maintains an installation script that performs all required setup steps in a
25+
single process.
2726

28-
If you wish to inspect the contents of the script yourself before executing, download the script
29-
first using `curl` and inspect it in your favorite text editor.
27+
Instead of piping the script directly to an elevated shell, download it first, review its contents,
28+
and then execute it. This approach lets you verify exactly what runs on your system.
3029

31-
```bash
32-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
33-
```
30+
1. Download the script
31+
32+
```bash
33+
curl -fsSL 'https://azurecliprod.blob.core.windows.net/$root/deb_install.sh' -o InstallAzureCLIDeb.sh
34+
```
35+
36+
1. Review the script
37+
38+
Open the file in your preferred text editor:
39+
40+
```bash
41+
less InstallAzureCLIDeb.sh
42+
```
43+
44+
1. Run the script
45+
46+
After reviewing the contents, make it executable and run it with elevated privileges:
47+
48+
```bash
49+
chmod +x InstallAzureCLIDeb.sh
50+
sudo ./InstallAzureCLIDeb.sh
51+
```
3452

3553
### Option 2: Step-by-step installation instructions
3654

0 commit comments

Comments
 (0)