Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Getting started

Install

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.

From source

git clone https://github.com/driftsys/prim
cd prim
./bootstrap          # installs git-std and configures git hooks
cargo build --release

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: at this early stage prim applies whitespace hygiene (trailing-whitespace removal, single final line-feed, LF endings) to the parsed formats and the orphan allowlist. Structured per-format formatting (JSON/YAML/TOML/Markdown) lands in later milestones.