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.

    1. 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 :

      1. 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.

      1. curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | DAPR_INSTALL_DIR="$HOME/dapr" /bin/bash
      1. Download the desired Dapr CLI from the latest
      2. Unpack it (e.g. dapr_linux_amd64.tar.gz, dapr_windows_amd64.zip)
      3. 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.

      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: