Briglia CLI
GitHub
Guide

Media toolchain

Briglia reads PDFs and images, extracts frames from video and renders office documents with a handful of well-known open-source tools. On macOS most of this is built in; on Linux Briglia installs or manages them for you.

What is used for what

ToolUsed forRequired?
poppler-utilsPDF text extraction, page rendering, split/mergeyes (Linux)
ImageMagickimage conversion and resizing before the model sees themyes (Linux)
ffmpeg / ffprobeaudio extraction for voice notes, video frames and scene probingyes (Linux)
pandocdocument generation (~150 MB)optional
LibreOffice (headless writer/calc/impress)DOCX / XLSX / PPTX → PDF rendering (~350–600 MB)optional

Verify the pipeline any time with briglia media-selftest; briglia doctor reports the toolchain too.

Node.js and Python packages (Briglia's own)

Since CLI 0.2.64 Briglia never installs into your system Node.js or Python. Node.js (used by the managed browser): if yours is at least as new as Briglia's pinned LTS, it is used as-is; otherwise Briglia downloads a private, hash-checked Node.js 24.22.3 into ~/.local/share/briglia/runtime/node/, used only by Briglia. Python packages for the document and media skills (python-docx, python-pptx, openpyxl, Pillow, PyMuPDF, WeasyPrint and friends) live in a private environment built from a locked, hash-checked list; scripts run with briglia-python instead of python3. If it is missing, set it up with:

briglia python-env install

Briglia builds the environment on the newest supported Python it finds (3.14 down to 3.11; since CLI 0.2.65 a newer one such as Homebrew's 3.15 is skipped, because the locked packages don't exist for it yet). If only newer versions are installed, it tells you which one to add (on a Mac: brew install python@3.14). Since CLI 0.2.71, a Mac with no usable Python 3.11 to 3.14 gets Homebrew's python@3.14 installed during the tools install (briglia menu, briglia quicksetup, the setup wizard or briglia python-env install from a terminal); it never happens in the background or at startup. Without Homebrew, Briglia tells you to get Python 3.14 from python.org. On Debian, Ubuntu and Raspberry Pi OS, if the system Python lacks its python3.X-venv package, an install run from a terminal installs it with sudo apt-get; it never does that in the background.

If the Python it was built from moves or is replaced, the environment is rebuilt. Briglia never upgrades or downgrades anything you installed yourself; briglia doctor reports both.

Desktop and server Linux

The setup wizard detects what is missing and offers the exact package-manager command (sudo apt install poppler-utils imagemagick ffmpeg on Debian/Ubuntu, or dnf/pacman equivalents). Nothing is installed without your consent, and updates come from your distribution as usual. Since CLI 0.2.72, on apt systems the install first runs sudo apt-get update once, so out-of-date package lists no longer cause 404 Not Found errors; it only refreshes the lists and never upgrades what you already have. Pressing Ctrl-C during the refresh stops the install.

Ubuntu Touch: the userdata prefix

The phone's system partition is small (~3 GB) and read-only, and an OTA update wipes anything you apt install onto it. So Briglia installs the tools into your user data instead — ~/.local/share/briglia/toolchain/prefix — with no root and no changes to the OS partition: packages are downloaded through apt and extracted (never installed via dpkg), wrapped with small launcher scripts, and each wrapper is verified with a real probe (LibreOffice must actually convert a document, not just print a version). The core trio installs automatically on Ubuntu Touch during setup; LibreOffice and pandoc are opt-in.

briglia toolchain status
briglia toolchain install [--pandoc] [--libreoffice]install what is missing (self-healing: a tool that fails its probe because of a missing shared library gets the library fetched and retried)
briglia toolchain upgraderefresh apt metadata, detect stale or renamed packages, rebuild transactionally
briglia toolchain removedelete the prefix and wrappers

Rebuilds are transactional: the new prefix is staged, validated and swapped in with a durable commit marker; a crash or power loss mid-way rolls back to the working prefix. Operations take a cross-process lock, so two installs can't collide.

Updates are yours to start

A userdata prefix does not receive your distribution's security updates by itself. Run briglia toolchain upgrade when you want them — or tap “Check for tool updates” in the companion app's Settings. Briglia never schedules toolchain updates on its own; that is deliberate.

Ghost packages: on some phones dpkg believes LibreOffice and friends are installed while their files are gone; Briglia's prefix is independent of that state. briglia doctor also detects dangling apt-state symlinks left over from older manual setups and prints the exact repair command.