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>:
These topics are built into the CLI. For which variables
difyctl actually reads, see Environment Variables.
Machine-Readable Help
Every help surface accepts-o json and -o yaml. A coding agent driving difyctl works from two of them: the compact command map to pick a command, then that command’s descriptor for its arguments and flags. The full document adds the cross-command contract and the topic list in one read.
Compact Command Map
Add--compact to top-level help to get every command as a three-field entry:
- Its
commandpath - One-line
description effectlabel (read,write, ordestructive)
--compact applies to top-level help only and needs -o json or -o yaml. On per-command help, or without a structured format, it fails as a usage error with exit code 2.
Per-Command Descriptor
Once a command is chosen, its descriptor supplies everything the map leaves out. Both per-command help forms return it:effect label, and an agentGuide string of command-specific guidance for agents, where one exists.
Full Document
Without--compact, top-level help emits the complete command surface in one document:
bin: the executable name,difyctlcontract: exit codes, output formats, the shape of error output, and cross-command rulescommands: one full descriptor per commandtopics: the guide topics by name and one-line summary; each topic’s text comes fromdifyctl help <topic>
Exit Codes
See Output Formats and Exit Codes for the full scheme.