difyctl help system covers four surfaces: the top-level overview, per-command and group help, guide topics, and a machine-readable form of all of them. All help prints to stdout and exits 0.
Get Help
Four invocations show the same top-level overview:Help for One Command or Group
Append--help to any command, or put help in front of it:
unknown help topic: <name>, suggestions, and exit code 1.
Guide Topics
Long-form topics ship inside the CLI, read withdifyctl help <topic>:
| Topic | What it covers |
|---|---|
account | Onboarding guidance. |
agent | The cross-command contract for agents driving difyctl. |
environment | The CLI’s own descriptions of the DIFY_* environment variables. |
external | Sign-in help for external SSO users. |
difyctl actually reads, see Environment Variables.
Machine-Readable Help
Every help surface accepts-o json and -o yaml. The top-level form emits the complete command surface in one document:
bin,contract: exit codes, output formats, the shape of error output, and cross-command rulescommands: one descriptor per commandtopics: the available guide topics by name, with each topic’s text read viadifyctl help <topic>
effect label (read, write, or destructive), and an agentGuide string where one exists. This is how coding agents discover difyctl.
Exit Codes
| Code | Meaning |
|---|---|
0 | Help printed |
1 | Unknown help topic or command name |