All apps/Dapr

Dapr

dapr

A portable, event-driven runtime for building distributed applications across cloud and edge.

Runs as dapr|macOS, Linux, Windows|dapr.io

Command form

ai-draft · 8 tasks · 31 fields

Self-hosted Dapr workflows: run an app with a sidecar, initialize the runtime, invoke a method or publish an event. Kubernetes options and the app command after -- are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui dapr

dapr run

Run app with Dapr sidecar

Starts the Dapr sidecar for an application; type the app command after -- in the prompt.

Run app with Dapr sidecarExample values, fixed in this page — nothing here reaches a terminal
Basic
App ID*
string
App port
integer
App protocol
string
Dapr HTTP port
integer
Resources path
directory
Configuration file
file
Advanced
Log level
string
TasksEach one presets the form for one job
Run one app
app_idapp_portapp_protocoldapr_http_portresources_pathconfiglog_level
Run multi-app file
run_file
ParametersOnly these flags are editable in the form
App ID
string
--app-id-a
App port
integer
--app-port-p
App protocol
string
--app-protocol-Phttphttpsh2cgrpcgrpcs
Dapr HTTP port
integer
--dapr-http-port-H
Dapr gRPC port
integer
--dapr-grpc-port-G
Resources path
path · repeatable
--resources-path
Configuration file
path
--config-c
Log level
string
--log-leveldebuginfowarnerrorfatalpanic
Multi-app run file
path
--run-file-f
Enable profiling
boolean
--enable-profiling
App uses HTTPS
boolean
--app-ssl

dapr init

Initialize Dapr

Installs the Dapr runtime locally or on Kubernetes.

Initialize DaprExample values, fixed in this page — nothing here reaches a terminal
Basic
Runtime version
string
Container runtime
string
TasksEach one presets the form for one job
Local install
runtime_versioncontainer_runtime
Slim local install
slimruntime_version
Kubernetes install
kubernetesnamespacedevenable_haenable_mtlsruntime_version
ParametersOnly these flags are editable in the form
Slim install (no Docker containers)
boolean
--slim-s
Runtime version
string
--runtime-version
Deploy to Kubernetes
boolean
--kubernetes-k
Kubernetes namespace
string
--namespace-n
Dev mode (Redis, Zipkin in cluster)
boolean
--dev
High availability
boolean
--enable-ha
Enable mTLS
boolean
--enable-mtls
Container runtime
string
--container-runtimedockerpodman
Artifacts directory
path
--from-dir

dapr invoke

Invoke a method

Calls a method on a running Dapr app (self-hosted).

Invoke a methodExample values, fixed in this page — nothing here reaches a terminal
Basic
App ID*
string
Method*
string
HTTP verb
GETstring
TasksEach one presets the form for one job
GET a method
app_idmethodverb
POST JSON
app_idmethodverbdatadata_file
ParametersOnly these flags are editable in the form
App ID
string
--app-id-a
Method
string
--method-m
HTTP verb
string
--verb-vGETPOSTPUTDELETE
JSON data
string
--data-d
JSON data file
path
--data-file-f

dapr publish

Publish an event

Publishes a pub/sub event from a self-hosted app.

Publish an eventExample values, fixed in this page — nothing here reaches a terminal
Basic
Publishing app ID*
string
Pub/sub component*
string
Topic*
string
JSON data
string
Advanced
JSON metadata
string
TasksEach one presets the form for one job
Publish JSON event
publish_app_idpubsubtopicdatametadata
ParametersOnly these flags are editable in the form
Publishing app ID
string
--publish-app-id-i
Pub/sub component
string
--pubsub-p
Topic
string
--topic-t
JSON data
string
--data-d
JSON data file
path
--data-file-f
JSON metadata
string
--metadata-m
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed dapr against its version. A form that does not match your version is not offered.