Skip to main content
Before you start, make sure difyctl is installed.
The CLI’s API endpoints (/openapi/v1/*) are off by default: set api.openapi.enabled: true in the Helm values before you sign in. api.enableOauthBearer must stay true (the default).

Step 1: Sign In

Run the login command with the host URL your administrator gave you:
difyctl prints a one-time code and a verification URL, opens the URL in your default browser, and waits:
The browser walks you through your company’s usual sign-in flow, then asks for the one-time code. Once you complete it, the terminal confirms:

Step 2: See the Apps You Can Run

List the apps your administrator permitted you to use:
You should see something like this:
Copy the ID of the app you want to run.

Step 3: Run Your App

How you pass input depends on the app type.
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