upgrade CLI command reference

Detailed information on the upgrade CLI command

Description

Upgrade Dapr on supported hosting platforms.

Supported platforms

Usage

dapr upgrade [flags]

Flags

NameEnvironment VariableDefaultDescription
--help, -hPrint this help message
--kubernetes, -kfalseUpgrade Dapr in a Kubernetes cluster
--runtime-versionlatestThe version of the Dapr runtime to upgrade to, for example: 1.0.0
--setSet values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)

Examples

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 May 26, 2021: Update to 1.2 (#1519) (5d71c507)