All commands should get an extra option (-o|--output [output], text|json, default text) that determines whether the command should render its output as a JSON string or plain text. Using JSON will be very useful when using the CLI in non-interactive mode and passing the output from one command into another. Any errors returned by the command should be passed as JSON objects so that they can be easily detected by other commands.
All commands should get an extra option (
-o|--output [output], text|json, defaulttext) that determines whether the command should render its output as a JSON string or plain text. Using JSON will be very useful when using the CLI in non-interactive mode and passing the output from one command into another. Any errors returned by the command should be passed as JSON objects so that they can be easily detected by other commands.