Formatting output¶
Read commands (list, view, status, and friends) render a human-friendly
table or summary by default. For scripting, two flags mirror the GitHub CLI.
--json¶
Pass --json to emit the raw backend response as JSON instead of the rendered
view:
Unlike gh, --json takes no field list. It prints the full JSON object or
array as returned by the Bitbucket or Jira API. Pipe it into a tool of your
choice, or use --jq below.
--jq / -q¶
Filter the JSON with a jq expression:
Note: unlike
gh(which embeds a jq engine),bj --jqshells out to thejqbinary, sojqmust be installed and on yourPATH. If it is missing,bjprints a clear error.
When --jq is given, --json is implied. There is currently no --template
flag; use --jq for output shaping.
Colors¶
bj uses rich for rendering. Set NO_COLOR to
any value to disable ANSI colors (see Environment).