All commands below assume you’re signed in.
Send a Message
Send a message to a Chatbot, Chatflow, Agent, or Text Generator app by passing it as a positional argument to difyctl run app. The reply prints to stdout.
Run a Workflow
Pass the inputs as a single JSON object with --inputs instead of a positional message. The outputs print to stdout as JSON.
Find Your Apps
List the apps in your workspace with difyctl get app. Narrow the list with --name or --mode.
Stream a Long Response
Add --stream to print the response as it’s generated instead of all at once at the end.
Continue a Conversation
Copy the conversation ID from the hint that follows each Chatbot or Chatflow reply, then pass it back with --conversation to continue the same conversation.
Get JSON Output for Scripts
Add -o json to any command to get the raw response as pipe-friendly JSON.
Switch Your Workspace Cloud
Change your active workspace with difyctl use workspace. List available workspaces with get workspace.
Before running an unfamiliar app, check its app type and input schema with difyctl describe app: names, types, and which inputs are required.
Last modified on July 2, 2026