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.
Homebrew
Section titled “Homebrew”On macOS and Linux, Homebrew installs it from Lamina PDF’s own tap:
brew install laudebugs/tap/laminapdfnpm installs the same tool, with no Rust or WebAssembly involved:
npm install -g @laminapdf/cli@0.9.0To 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.
Download it
Section titled “Download it”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.
Check the download
Section titled “Check the download”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:
shasum -a 256 -c laminapdf-cli-aarch64-apple-darwin.tar.xz.sha256On 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.
Allow it to run
Section titled “Allow it to run”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:
xattr -d com.apple.quarantine laminapdfOn 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.
What the archive holds
Section titled “What the archive holds”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.
Shell completions
Section titled “Shell completions”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:
laminapdf completions zsh > ~/.zfunc/_laminapdfIt also writes bash, fish, powershell and elvish scripts.
Check that it works
Section titled “Check that it works”laminapdf --version prints the version, and laminapdf help lists the commands:
$ laminapdf --versionlaminapdf 0.9.0Try a change before it’s released
Section titled “Try a change before it’s released”To try a change that isn’t released yet, build the tool from the repository with Cargo, the MCP server included:
cargo install --git https://github.com/laudebugs/laminapdf laminapdf-cli --features mcpNext: inspect and check PDFs.