difyctl command you run in it picks them up. A command flag wins, then an environment variable. They’re shell-scoped and last only as long as the session.
Variables difyctl Reads
An invalid value fails as a usage error (exit code
2) rather than being silently ignored, for example a non-UUID DIFY_WORKSPACE_ID.
Only the variables above change
difyctl’s behavior. The others reported by the env list command are recognized but currently have no effect.See What’s Set
env list shows the current value of each difyctl environment variable in your shell. It reads only your local environment and never calls the server, so it works before you sign in.
Flags
env list takes --json, not the -o global flag.Examples
Check which variables are set in the current shell:Output
Unset variables show<unset>, and sensitive variables never print their value (only <set> or <unset>). With DIFY_LIMIT=50 exported:
--json prints a JSON array, one entry per variable, masked the same way:
Exit Codes
See Output Formats and Exit Codes for the full scheme.