Skip to content
bili

v0.1.1

Color tables and the list format: bili now renders with lipgloss rounded borders, colored headers, and syntax-highlighted JSON on any true-color terminal.

The big visible change in this release is the output layer. bili swaps its plain tabwriter table for a lipgloss grid with rounded borders and a pink bold header row, and every JSON or JSONL record gains syntax highlighting when connected to a color terminal. The underlying data model and API are unchanged.

What changed

Colored table output. The default table view now uses rounded box-drawing borders and bolds the header row in the same accent color the rest of the tool family uses. Wide tables shrink to fit the terminal so they never wrap at the edge. Color is detected automatically and is never emitted when stdout is piped, so scripts that capture output are unaffected.

Syntax-highlighted JSON. bili video BV... -o json and -o jsonl now color keys, strings, numbers, and boolean/null tokens on a terminal. The highlighting goes away the moment you pipe through jq or redirect to a file, so machine readers see plain JSON.

New formats: list and markdown. -o list renders each record as a short named section — a heading drawn from the first field, then the remaining fields as a bullet list. It streams as records arrive, so a long bili comments run stays responsive. -o markdown emits a GitHub-flavored pipe table that pastes cleanly into an issue or README.

--output flag cleaned up. The accepted values are now list|table|markdown|json|jsonl|csv|tsv|url|raw. The undocumented yaml alias is removed; use -o jsonl | yq if you want YAML.

Terminal width awareness. The table renderer reads $COLUMNS first, then the real terminal width, and shrinks a too-wide grid accordingly. The old tabwriter had no width cap, so a video with a long title could scroll past the right edge.

Install

go install github.com/tamnd/bilibili-cli/cmd/bili@latest

Prebuilt archives for Linux, macOS, and Windows, plus Linux packages (deb, rpm, apk) and checksums, are on the release page. The container image is on GHCR:

docker run --rm ghcr.io/tamnd/bili:0.1.1 search 'lofi' -n 10