@outputai/cli output flag changes in v0.9.0. It only affects how you invoke the CLI and parse its output — no code changes are required in your workflows.
What changed
The old--format json flag still printed preamble to stdout (the version-check banner and lines like Fetching result for workflow...), which broke piping:
--format json for the native --json flag from @oclif v4+, which guarantees stdout is valid JSON. Informational logs and the update banner now go to stderr, so --json pipes cleanly.
Migration steps
Replace --format json with --json
On workflow result, status, run, cost, debug, and test, the --format flag is removed. Text stays the default; pass --json for JSON.
Update list commands that kept --format
workflow list, runs list, and dataset list still accept --format for their non-JSON layouts (list / table / text). Only the JSON value moved to --json.
If a script stripped the banner or
Fetching... preamble before parsing, you can drop that workaround — --json stdout is now pure JSON. The update banner prints to stderr in every mode; redirect with 2>/dev/null to hide it in interactive use.Checklist
- Replace
--format jsonwith--jsoneverywhere (result,status,run,cost,debug,test,list,runs list,dataset list). - Keep
--formaton the list commands for theirlist/table/textlayouts. - Drop any preamble-stripping workarounds, and update CI jobs, aliases, and docs that reference
--format json.