list CLI command reference

Detailed information on the list CLI command

Description

List all Dapr instances.

Supported platforms

Usage

  1. dapr list [flags]

Flags

NameEnvironment VariableDefaultDescription
—all-namespaces, -AfalseList all Dapr pods in all namespaces (optional)
—help, -hPrint this help message
—kubernetes, -kfalseList all Dapr pods in a Kubernetes cluster (optional)
—namespace, -ndefaultList the Dapr pods in the defined namespace in Kubernetes. Only with -k flag (optional)
—output, -otableThe output format of the list. Valid values are: json, yaml, or table

Examples

  1. # List Dapr instances in self-hosted mode
  2. dapr list
  3. # List Dapr instances in all namespaces in Kubernetes mode
  4. dapr list -k
  5. # List Dapr instances in JSON format
  6. dapr list -o json
  7. # List Dapr instances in a specific namespace in Kubernetes mode
  8. dapr list -k --namespace default
  9. # List Dapr instances in all namespaces in Kubernetes mode
  10. dapr list -k --all-namespaces

Warning messages - Kubernetes Mode

This command can issue warning messages.

Root certificate renewal warning

If the mtls root certificate deployed to the Kubernetes cluster expires in under 30 days the following warning message is displayed:

  1. Dapr root certificate of your Kubernetes cluster expires in <n> days. Expiry date: <date:time> UTC.
  2. Please see docs.dapr.io for certificate renewal instructions to avoid service interruptions.

Last modified March 21, 2024: Merge pull request #4082 from newbe36524/v1.13 (f4b0938)