The specimen Command

Inspect, optimize, convert and rasterize from a terminal.

Use the same engine in scripts and builds.

Install

On macOS, open the disk image and run install-cli.sh, or copy the specimen binary to a folder on your PATH. The Linux packages install specimen with the desktop app.

Commands

specimen inspect icon.svg prints the audit; add --json for scripts. specimen optimize writes a cleaned SVG. specimen convert writes React, Svelte, SwiftUI or a data URI. specimen raster writes PNG, WebP or AVIF at one or more scales.

Run specimen --help, or specimen <command> --help, for every option. Existing files are replaced only with --force.