Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

Install the command-line tool

Install the laminapdf tool on macOS, Linux or Windows. Homebrew and npm install and update it with one command; a direct download suits a machine with neither, such as a build server.

On macOS and Linux, Homebrew installs it from Lamina PDF’s own tap:

Terminal window
brew install laudebugs/tap/laminapdf

npm installs the same tool, with no Rust or WebAssembly involved:

Terminal window
npm install -g @laminapdf/cli@0.9.0

To run it once without installing it, use npx @laminapdf/cli@0.9.0 info report.pdf. The package holds a small launcher, and npm installs the build for your system as one of its optional dependencies. No install script runs and nothing else is downloaded.

Each release attaches the tool, built for eight systems, to its page on GitHub. Pick your system, download its archive and its checksum, then unpack the archive and put the laminapdf program on your PATH.

System Archive Checksum
macOS, Apple silicon laminapdf-cli-aarch64-apple-darwin.tar.xz .sha256
macOS, Intel laminapdf-cli-x86_64-apple-darwin.tar.xz .sha256
Linux, Arm64 laminapdf-cli-aarch64-unknown-linux-gnu.tar.xz .sha256
Linux, x86-64 laminapdf-cli-x86_64-unknown-linux-gnu.tar.xz .sha256
Linux, Arm64, static laminapdf-cli-aarch64-unknown-linux-musl.tar.xz .sha256
Linux, x86-64, static laminapdf-cli-x86_64-unknown-linux-musl.tar.xz .sha256
Windows, Arm64 laminapdf-cli-aarch64-pc-windows-msvc.zip .sha256
Windows, x86-64 laminapdf-cli-x86_64-pc-windows-msvc.zip .sha256

The Linux builds use the system’s C library, glibc. The static builds carry their own, so they also run where glibc is missing, such as Alpine Linux and minimal containers. Every link above is for version 0.9.0; the release page also has sha256.sum, every checksum in one file.

A checksum proves the archive arrived as the release built it. On macOS and Linux, run this in the folder holding both files. It prints OK beside the archive’s name, and may also warn about a blank line in the checksum file, which you can ignore:

Terminal window
shasum -a 256 -c laminapdf-cli-aarch64-apple-darwin.tar.xz.sha256

On Windows, Get-FileHash laminapdf-cli-x86_64-pc-windows-msvc.zip in PowerShell prints the hash to compare with the one in the .sha256 file.

The tool isn’t signed yet. On macOS, a program downloaded with a browser is quarantined, and Gatekeeper refuses to open it. Remove the quarantine once, from the unpacked folder:

Terminal window
xattr -d com.apple.quarantine laminapdf

On Windows, SmartScreen may warn the first time you run it. Homebrew and npm installs avoid most of these warnings, and curl downloads aren’t quarantined.

Besides the laminapdf program, each archive holds its licences (LICENSE-MIT and LICENSE-APACHE) and THIRD_PARTY_NOTICES.md, the licence of every library inside the program. It also has a manual page per command in man/, which man ./man/laminapdf-info.1 reads in place, and shell completions in completions/. Homebrew and npm install neither, but the tool writes its completions itself.

The tool writes the completion script for your shell, so Tab completes its commands and flags. For zsh, write it to a folder on your fpath:

Terminal window
laminapdf completions zsh > ~/.zfunc/_laminapdf

It also writes bash, fish, powershell and elvish scripts.

laminapdf --version prints the version, and laminapdf help lists the commands:

Terminal window
$ laminapdf --version
laminapdf 0.9.0

To try a change that isn’t released yet, build the tool from the repository with Cargo, the MCP server included:

Terminal window
cargo install --git https://github.com/laudebugs/laminapdf laminapdf-cli --features mcp

Next: inspect and check PDFs.