From b479734efebce106647333a4ab2e7ac07fd4f43e Mon Sep 17 00:00:00 2001 From: Bernd Verst Date: Fri, 10 Feb 2023 12:46:20 -0800 Subject: [PATCH] Install a specific CLI version Useful for installing RCs Signed-off-by: Bernd Verst --- .../en/getting-started/install-dapr-cli.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/daprdocs/content/en/getting-started/install-dapr-cli.md b/daprdocs/content/en/getting-started/install-dapr-cli.md index 4c8d39880..1c03eefea 100644 --- a/daprdocs/content/en/getting-started/install-dapr-cli.md +++ b/daprdocs/content/en/getting-started/install-dapr-cli.md @@ -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 + +This example shows how to install CLI version `1.9.1`. Release candidates can be installed similarly, simplify specify the version, e.g. `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` + +This example shows how to install CLI version `1.9.1`. Release candidates can be installed similarly, simplify specify the version, e.g. `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 %}}