Skip to content

output

2 pages
  • JSON Output

    In Reference

    Referenceclioutputjson

    Use --json on data commands to read one newline-terminated JSON document from stdout. Diagnostics go to stderr. log export is the exception: it writes JSON Lines and does not accept --json. sow status -r demo --json | jq '.result.status' Envelope …

    Use --json on data commands to read one newline-terminated JSON document from stdout. Diagnostics go to stderr. log export is the exception: it writes JSON Lines and does not accept --json. sow status -r demo --json | jq '.result.status' Envelope …

  • Exit Codes

    In Reference

    Referenceclioutput

    Use exit codes in scripts and read the diagnostic for the specific cause. SOW uses the same code meanings across commands. Code Meaning Next step 0 Success or no-op Read the result; no-op commands may report noop: true 1 Runtime I/O, package …

    Use exit codes in scripts and read the diagnostic for the specific cause. SOW uses the same code meanings across commands. Code Meaning Next step 0 Success or no-op Read the result; no-op commands may report noop: true 1 Runtime I/O, package …