difyctl is installed.
Step 1: Sign In
-
Sign in to your company’s Dify host. Use the console API URL for your instance.
difyctlprints a one-time code and a verification URL, then waits: -
Open the URL in a browser, enter the code, and sign in. Return to the terminal and you’ll see:
Step 2: Find Your App
List the apps in your workspace:Step 3: Run Your App
How you pass input depends on the app type.- Chatbot / Chatflow / Agent / Text Generator
- Workflow
Pass your message as a positional argument:The reply prints to stdout. For Chatbot, Chatflow, and Agent apps, a hint also prints to stderr so you can continue the same conversation later:
Next Steps
- The everyday commands, copy-paste ready: Common Tasks
- Where your token lives and how sessions work: Authenticate
- Everything else you can do with
difyctl: Command Index