The documentation you are viewing is for Dapr v1.3 which is an older version of Dapr. For up-to-date documentation, see the latest version.
init CLI command reference
Detailed information on the init CLI command
Description
Install Dapr on supported hosting platforms.
Supported platforms
Usage
dapr init [flags]
Flags
Name | Environment Variable | Default | Description |
---|---|---|---|
--enable-ha |
false |
Enable high availability (HA) mode | |
--enable-mtls |
true |
Enable mTLS in your cluster | |
--help , -h |
Print this help message | ||
--kubernetes , -k |
false |
Deploy Dapr to a Kubernetes cluster | |
--wait |
false |
Wait for Kubernetes initialization to complete | |
--timeout |
300 |
The wait timeout for the Kubernetes installation | |
--namespace , -n |
dapr-system |
The Kubernetes namespace to install Dapr in | |
--network |
DAPR_NETWORK |
The Docker network on which to deploy the Dapr runtime | |
--runtime-version |
latest |
The version of the Dapr runtime to install, for example: 1.0.0 |
|
--slim , -s |
false |
Exclude placement service, Redis and Zipkin containers from self-hosted installation |
Examples
Initialize Dapr in self-hosted mode
dapr init
Initialize Dapr in Kubernetes
dapr init -k
Initialize Dapr in Kubernetes and wait for the installation to complete
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.
dapr init -k --wait --timeout 600
Initialize specified version of Dapr runtime in self-hosted mode
dapr init --runtime-version 0.10.0
Initialize specified version of Dapr runtime in Kubernetes
dapr init -k --runtime-version 0.10.0
Initialize Dapr in slim self-hosted mode
dapr init -s
Last modified
July 12, 2022
: update nav bar for v1.3 (#2640) (b98ea06)