Install the Dapr CLI
Begin by downloading and installing the Dapr CLI:
This command installs the latest linux Dapr CLI to /usr/local/bin
:
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 Command Prompt command installs the latest windows Dapr cli to C:\dapr
and adds this directory to User PATH environment variable.
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"
Install without administrative rights
This command installs the latest darwin Dapr CLI to /usr/local/bin
:
Install from Homebrew
You can install via :
brew install dapr/tap/dapr-cli
Note for M1 Macs
For M1 Macs, homebrew is not supported. You will need to use the dapr install script and have the rosetta amd64 compatibility layer installed. If you do not have it installed already, you can run the following:
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.
curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | DAPR_INSTALL_DIR="$HOME/dapr" /bin/bash
- Download the desired Dapr CLI from the latest
- Unpack it (e.g. dapr_linux_amd64.tar.gz, dapr_windows_amd64.zip)
- Move it to your desired location.
- For Linux/MacOS
/usr/local/bin
is recommended. - For Windows, create a directory and add this to your System PATH. For example create a directory called
C:\dapr
and add this directory to your User PATH, by editing your system environment variable.
- For Linux/MacOS
Step 2: Verify the installation
You can verify the CLI is installed by restarting your terminal/command prompt and running the following:
The output should look like this: