Text and JSON
How a person and a script read the same command.
Every command can print for a person or for a script. Pass --output text or --output json. Any other value exits 1. The default is text, which is the form you read in a terminal.
A person reads aligned labels or a table. Errors go to stderr as error: code: message. A request id is printed only when DFLOW_DEBUG=1.
Use --output json in CI and in an editor. The exit code still tells you whether the command worked. The meanings are on Exit codes.
How is this guide?
Last updated on