Getting started
Install
From a release (recommended)
curl -sSfL https://raw.githubusercontent.com/driftsys/prim/main/install.sh | bash
This downloads the prebuilt prim binary for your platform, verifies its
SHA-256 checksum, installs it to ~/.local/bin, and sets up shell completions.
From crates.io
cargo install prim-cli
The crate is prim-cli; the installed binary is prim.
For the full platform matrix, manual download with checksum verification, and building from source, see Installation.
First run
prim --version
prim --help
prim formats files in place, or a whole directory tree:
prim README.md config.yaml # specific files
prim . # the current directory, recursively
Note: prim applies both whitespace hygiene (trailing-whitespace removal, single final line-feed, LF endings, leading-BOM strip) and structured per-format formatting (JSON/JSONC, YAML, TOML, Markdown) to every file it owns — see What prim formats for the full allowlist.