Invoke a method on a given Dapr application.
dapr invoke [flags]
Name | Environment Variable | Default | Description |
---|---|---|---|
--app-id , -a | The application id to invoke | ||
--help , -h | Print this help message | ||
--method , -m | The method to invoke | ||
--data , -d | The JSON serialized data string (optional) | ||
--data-file , -f | A file containing the JSON serialized data (optional) | ||
--verb , -v | POST | The HTTP verb to use |
dapr invoke --app-id target --method sample --data '{"key":"value"}'
dapr invoke --app-id target --method sample --verb GET