The documentation you are viewing is for Dapr v1.2 which is an older version of Dapr. For up-to-date documentation, see the latest version.

upgrade CLI command reference

Detailed information on the upgrade CLI command


Upgrade Dapr on supported hosting platforms.

Supported platforms


dapr upgrade [flags]


Name Environment Variable Default Description
--help, -h Print this help message
--kubernetes, -k false Upgrade Dapr in a Kubernetes cluster
--runtime-version latest The version of the Dapr runtime to upgrade to, for example: 1.0.0
--set Set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)


Upgrade Dapr in Kubernetes to latest version

dapr upgrade -k

Upgrade specified version of Dapr runtime in Kubernetes

dapr upgrade -k --runtime-version 1.2

Upgrade specified version of Dapr runtime in Kubernetes with value set

dapr upgrade -k --runtime-version 1.2 --set global.logAsJson=true

Related links

Last modified November 24, 2021 : Merge pull request #1991 from tanvigour/v1.2 (7e41f5b)