Skip to content
Artboard Created with Sketch.

Dapr tool installer

Actions
Install a specific version of Dapr CLI. Acceptable values are semantic version string like 1.2.0
v2
Latest
By dapr
Verified creator
Star (11)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Setup Dapr CLI

Install a specific version of Dapr CLI on a GitHub Actions runner

Acceptable values are any semantic version string like 1.13.0. Use this action in workflow to define which version of Dapr CLI will be used.

- name: Setup Dapr CLI specific version
  uses: dapr/setup-dapr@v1
  with:
    version: "1.13.0"
  id: install

The cached Dapr CLI path is added to the PATH environment variable as well as stored in the dapr-path output variable. Refer to the action metadata file for details about all the inputs https://github.com/dapr/setup-dapr/blob/main/action.yml

This action does not initialize the Dapr Runtime. To do this add another step to initialize like this and remember that Dapr CLI and Dapr Runtime versions may differ:

- name: Initialize Dapr
  if: ${{ matrix.os == 'ubuntu-latest'}}
  run: |
    export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
    dapr init --runtime-version=1.13.0
    dapr --version

For a complete example see ./.github/workflows/test.yaml

Code of Conduct

Please refer to our Dapr Community Code of Conduct

Dapr tool installer is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install a specific version of Dapr CLI. Acceptable values are semantic version string like 1.2.0
v2
Latest
By dapr

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Dapr tool installer is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.