DEV Community

Marc Duiker
Marc Duiker

Posted on • Edited on

How to upgrade your local Dapr runtime and CLI

EDIT: updated for the Dapr 1.12 release :)

I've recently upgraded my local Dapr runtime and the Dapr CLI due to the new 1.12 release being available. Since I'll be upgrading to new releases on a regular basis, and use both Mac and a Windows machines, I might as well help my future self and write this down since I forget these things after a week 😅.

Upgrading the self-hosted environment (which I call the runtime) is described in detail in the official docs, but here I'm writing a slimmed down version, useful if you're either running Windows with winget, or macOS with Homebrew.

  1. Uninstall the old Dapr runtime:

    dapr uninstall
    

    If you also want to remove the Redis and Zipkin images run:

    dapr uninstall --all
    
  2. Install the new Dapr runtime:

    dapr init
    
  3. Upgrade the Dapr CLI:

    Using Windows and winget:

    winget upgrade Dapr.CLI
    

    Using macOS and brew:

    brew upgrade dapr-cli
    
  4. Verify that everything is upgraded:

    dapr -v
    

    The response should list the new versions:

    CLI version: 1.12.0
    Runtime version: 1.12.0
    


    `

🚨 Bleeding edge 🚨

If you need the very latest, (bleeding) edge bits of Dapr, you can:

Enjoy the latest Dapr release!
Dappy

Top comments (0)