difyctl version to see which difyctl build you have and whether it works with your Dify server. It prints the client build, probes your active host, and reports a compatibility verdict.
In a script, --check-compat turns that verdict into an exit code.
Check Client and Server Versions
Flags
Examples
Print the full report:Output
The default
text report:
--short prints only the client semver:
-o json:
--check-compat, the command exits 0 even when the server is unreachable or incompatible. The verdict is the report, not an error.
Exit Codes
See Output Formats and Exit Codes for the full scheme.
Compatibility Verdicts
difyctl version compares your build against the server’s version and reports one of three verdicts. You don’t need to be signed in, but you do need a stored host to probe.
The
detail field says which case you’re in, for example server 1.16.0 outside [1.15.0, 1.15.0].
Gate Scripts on Compatibility
--check-compat makes the verdict scriptable: anything other than compatible, including every unknown case, exits 64.
The full report still goes to stdout in your chosen format, and the one-line reason goes to stderr, so difyctl version -o json --check-compat | jq works the same on both outcomes.
64 is specific to this flag. No other difyctl failure uses it.