upgrade CLI command reference

Detailed information on the upgrade CLI command

Description

Upgrade or downgrade Dapr on supported hosting platforms.

Warning

Version steps should be done incrementally, including minor versions as you upgrade or downgrade.

Prior to downgrading, confirm components are backwards compatible and application code does ultilize APIs that are not supported in previous versions of Dapr.

Supported platforms

Usage

  1. dapr upgrade [flags]

Flags

NameEnvironment VariableDefaultDescription
—help, -hPrint this help message
—kubernetes, -kfalseUpgrade/Downgrade Dapr in a Kubernetes cluster
—runtime-versionlatestThe version of the Dapr runtime to upgrade/downgrade 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

  1. dapr upgrade -k

Upgrade or downgrade to a specified version of Dapr runtime in Kubernetes

  1. dapr upgrade -k --runtime-version 1.2

Upgrade or downgrade to a specified version of Dapr runtime in Kubernetes with value set

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

Related links

Last modified September 20, 2021 : Merge pull request #1800 from greenie-msft/gRPC_proxying_video (36dff3c)