The Dapr CLI is the main tool you’ll be using for various Dapr related tasks. You can use it to run an application with a Dapr sidecar, as well as review sidecar logs, list running services, and run the Dapr dashboard. The Dapr CLI works with both self-hosted and Kubernetes environments.
Begin by downloading and installing the Dapr CLI for v1.0.0-rc.3. This is used to initialize your environment on your desired platform.
Install Docker Compose on RHEL 8 / CentOS 8. Follow our separate guide on installation of latest Docker Compose on Linux. Install Docker Compose on Linux. For the sake of keeping this guide brief, we won’t dive into Docker compose usage. I’ll recommend you go through Official Docker documentation and Docker Compose documentation to learn more. Install the Dapr CLI. The Dapr CLI is the main tool you’ll be using for various Dapr related tasks. You can use it to run an application with a Dapr sidecar, as well as review sidecar logs, list running services, and run the Dapr dashboard. The Dapr CLI works with both self-hosted and Kubernetes environments.
This command installs the latest linux Dapr CLI to /usr/local/bin
:
This Command Prompt command installs the latest windows Dapr cli to C:dapr
and adds this directory to User PATH environment variable.
This command installs the latest darwin Dapr CLI to /usr/local/bin
:
Or you can install via Homebrew:
Each release of Dapr CLI includes various OSes and architectures. These binary versions can be manually downloaded and installed.
/usr/local/bin
C:dapr
and add this directory to your User PATH, by editing your system environment variable.You can verify the CLI is installed by restarting your terminal/command prompt and running the following:
The output should look like this: