mirror of https://github.com/dapr/docs.git
				
				
				
			Merge pull request #3163 from berndverst/patch-16
Instructions for installing a specific CLI version
This commit is contained in:
		
						commit
						fe3b047f86
					
				|  | @ -29,6 +29,15 @@ Install the latest Linux Dapr CLI to `/usr/local/bin`: | |||
| wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash | ||||
| ``` | ||||
| 
 | ||||
| ##### Installing a specific CLI version | ||||
| 
 | ||||
| The following example shows how to install CLI version `{{% dapr-latest-version cli="true" %}}`. You can also install release candidates by specifying the version (for example, `1.10.0-rc.3`). | ||||
| 
 | ||||
| ```bash | ||||
| wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s 1.9.1 | ||||
| ``` | ||||
| 
 | ||||
| 
 | ||||
| #### Install without `sudo` | ||||
| 
 | ||||
| If you do not have access to the `sudo` command or your username is not in the `sudoers` file, you can install Dapr to an alternate directory via the `DAPR_INSTALL_DIR` environment variable. This directory must already exist and be accessible by the current user. | ||||
|  | @ -37,6 +46,14 @@ If you do not have access to the `sudo` command or your username is not in the ` | |||
| wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | DAPR_INSTALL_DIR="$HOME/dapr" /bin/bash | ||||
| ``` | ||||
| 
 | ||||
| ##### Installing a specific CLI version without `sudo` | ||||
| 
 | ||||
| The following example shows how to install CLI version `{{% dapr-latest-version cli="true" %}}`. You can also install release candidates by specifying the version (for example, `1.10.0-rc.3`). | ||||
| 
 | ||||
| ```bash | ||||
| wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | DAPR_INSTALL_DIR="$HOME/dapr" /bin/bash -s 1.9.1 | ||||
| ``` | ||||
| 
 | ||||
| {{% /codetab %}} | ||||
| 
 | ||||
| {{% codetab %}} | ||||
|  | @ -51,6 +68,14 @@ powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master | |||
| 
 | ||||
| **Note:** Updates to PATH might not be visible until you restart your terminal application. | ||||
| 
 | ||||
| ##### Installing a specific CLI version | ||||
| 
 | ||||
| The following example shows how to install CLI version `{{% dapr-latest-version cli="true" %}}`. You can also install release candidates by specifying the version (for example, `1.10.0-rc.3`). | ||||
| 
 | ||||
| ```powershell | ||||
| powershell -Command "$script=iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1; $block=[ScriptBlock]::Create($script); invoke-command -ScriptBlock $block -ArgumentList 1.9.1" | ||||
| ``` | ||||
| 
 | ||||
| #### Install without administrative rights | ||||
| 
 | ||||
| If you do not have admin rights, you can install Dapr to an alternate directory via the `DAPR_INSTALL_DIR` environment variable. The script below creates the directory if it does not exist. | ||||
|  | @ -60,6 +85,15 @@ $Env:DAPR_INSTALL_DIR = "<your_alt_install_dir_path>" | |||
| $script=iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1; $block=[ScriptBlock]::Create($script); invoke-command -ScriptBlock $block -ArgumentList "", "$Env:DAPR_INSTALL_DIR" | ||||
| ``` | ||||
| 
 | ||||
| #### Installing a specific CLI version without administrative rights | ||||
| 
 | ||||
| The following example shows how to install CLI version `{{% dapr-latest-version cli="true" %}}`. You can also install release candidates by specifying the version (for example, `1.10.0-rc.3`). | ||||
| 
 | ||||
| ```powershell | ||||
| $Env:DAPR_INSTALL_DIR = "<your_alt_install_dir_path>" | ||||
| $script=iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1; $block=[ScriptBlock]::Create($script); invoke-command -ScriptBlock $block -ArgumentList "1.9.1", "$Env:DAPR_INSTALL_DIR" | ||||
| ``` | ||||
| 
 | ||||
| #### Install using winget | ||||
| 
 | ||||
| Install the latest Windows Dapr CLI to `$Env:SystemDrive\dapr` and add this directory to the user PATH environment variable: | ||||
|  | @ -97,6 +131,14 @@ Install the latest Darwin Dapr CLI to `/usr/local/bin`: | |||
| curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash | ||||
| ``` | ||||
| 
 | ||||
| ##### Installing a specific CLI version | ||||
| 
 | ||||
| The following example shows how to install CLI version `{{% dapr-latest-version cli="true" %}}`. You can also install release candidates by specifying the version (for example, `1.10.0-rc.3`). | ||||
| 
 | ||||
| ```bash | ||||
| curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash -s 1.9.1 | ||||
| ``` | ||||
| 
 | ||||
| **For ARM64 Macs:** | ||||
| 
 | ||||
| When installing from the terminal, native ARM64 binaries are available.  | ||||
|  | @ -130,6 +172,14 @@ If you do not have access to the `sudo` command or your username is not in the ` | |||
| curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | DAPR_INSTALL_DIR="$HOME/dapr" /bin/bash | ||||
| ``` | ||||
| 
 | ||||
| ##### Installing a specific CLI version without `sudo` | ||||
| 
 | ||||
| The following example shows how to install CLI version `{{% dapr-latest-version cli="true" %}}`. You can also install release candidates by specifying the version (for example, `1.10.0-rc.3`). | ||||
| 
 | ||||
| ```bash | ||||
| curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | DAPR_INSTALL_DIR="$HOME/dapr" -s 1.9.1 | ||||
| ``` | ||||
| 
 | ||||
| {{% /codetab %}} | ||||
| 
 | ||||
| {{% codetab %}} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue