Dapr command line interface (CLI) reference

Detailed information on the Dapr CLI

The Dapr CLI allows you to setup Dapr on your local dev machine or on a Kubernetes cluster, provides debugging support, and launches and manages Dapr instances.

  1. ____/ /___ _____ _____
  2. / __ / __ '/ __ \/ ___/
  3. / /_/ / /_/ / /_/ / /
  4. \__,_/\__,_/ .___/_/
  5. /_/
  6. ===============================
  7. Distributed Application Runtime
  8. Usage:
  9. dapr [command]
  10. Available Commands:
  11. completion Generates shell completion scripts
  12. components List all Dapr components. Supported platforms: Kubernetes
  13. configurations List all Dapr configurations. Supported platforms: Kubernetes
  14. dashboard Start Dapr dashboard. Supported platforms: Kubernetes and self-hosted
  15. help Help about any command
  16. init Install Dapr on supported hosting platforms. Supported platforms: Kubernetes and self-hosted
  17. invoke Invoke a method on a given Dapr application. Supported platforms: Self-hosted
  18. list List all Dapr instances. Supported platforms: Kubernetes and self-hosted
  19. logs Get Dapr sidecar logs for an application. Supported platforms: Kubernetes
  20. mtls Check if mTLS is enabled. Supported platforms: Kubernetes
  21. publish Publish a pub-sub event. Supported platforms: Self-hosted
  22. run Run Dapr and (optionally) your application side by side. Supported platforms: Self-hosted
  23. status Show the health status of Dapr services. Supported platforms: Kubernetes
  24. stop Stop Dapr instances and their associated apps. . Supported platforms: Self-hosted
  25. uninstall Uninstall Dapr runtime. Supported platforms: Kubernetes and self-hosted
  26. Flags:
  27. -h, --help help for dapr
  28. --version version for dapr
  29. Use "dapr [command] --help" for more information about a command.

Command Reference

You can learn more about each Dapr command from the links below.

Environment Variables

Some Dapr flags can be set via environment variables (e.g. DAPR_NETWORK for the --network flag of the dapr init command). Note that specifying the flag on the command line overrides any set environment variable.

Last modified February 16, 2021: Merge pull request #1235 from dapr/update-v0.11 (b4e9fbb)