mirror of https://github.com/dapr/docs.git
1.3 KiB
1.3 KiB
type | title | linkTitle | description |
---|---|---|---|
docs | list CLI command reference | list | Detailed information on the list CLI command |
Description
List all Dapr instances.
Supported platforms
- [Self-Hosted]({{< ref self-hosted >}})
- [Kubernetes]({{< ref kubernetes >}})
Usage
dapr list [flags]
Flags
Name | Environment Variable | Default | Description |
---|---|---|---|
--all-namespaces , -A |
false |
List all Dapr pods in all namespaces (optional) | |
--help , -h |
Print this help message | ||
--kubernetes , -k |
false |
List all Dapr pods in a Kubernetes cluster (optional) | |
--namespace , -n |
default |
List the Dapr pods in the defined namespace in Kubernetes. Only with -k flag (optional) |
|
--output , -o |
table |
The output format of the list. Valid values are: json , yaml , or table |
Examples
# List Dapr instances in self-hosted mode
dapr list
# List Dapr instances in all namespaces in Kubernetes mode
dapr list -k
# List Dapr instances in JSON format
dapr list -o json
# List Dapr instances in a specific namespace in Kubernetes mode
dapr list -k --namespace default
# List Dapr instances in all namespaces in Kubernetes mode
dapr list -k --all-namespaces