init CLI command reference

Detailed information on the init CLI command

Description

Install Dapr on supported hosting platforms.

Supported platforms

Usage

  1. dapr init [flags]

Flags

NameEnvironment VariableDefaultDescription
—enable-hafalseEnable high availability (HA) mode
—enable-mtlstrueEnable mTLS in your cluster
—help, -hPrint this help message
—kubernetes, -kfalseDeploy Dapr to a Kubernetes cluster
—waitfalseWait for Kubernetes initialization to complete
—timeout300The wait timeout for the Kubernetes installation
—namespace, -ndapr-systemThe Kubernetes namespace to install Dapr in
—runtime-versionlatestThe version of the Dapr runtime to install, for example: 1.0.0
—slim, -sfalseExclude placement service, Redis and Zipkin containers from self-hosted installation

Examples

Self-hosted environment

  1. dapr init

You can also specify a specific runtime version. Be default, the latest version is used.

  1. dapr init --runtime-version 1.4.0

Dapr can also run Slim self-hosted mode without Docker.

  1. dapr init -s

Kubernetes environment

  1. dapr init -k

You can wait for the installation to complete its deployment with the --wait flag. The default timeout is 300s (5 min), but can be customized with the --timeout flag.

  1. dapr init -k --wait --timeout 600

You can also specify a specific runtime version.

  1. dapr init -k --runtime-version 1.4.0

Last modified February 18, 2022: Update setup-jetstream.md (#2200) (428d8c2)