Getting started
Install the CLI
Install the deterministic, LLM-free patterns command from npm.
The CLI ships as the npm package @mimrai/patterns. Install it globally so the patterns command is on your PATH:
npm install -g @mimrai/patternsPrefer pnpm or Bun? The equivalents are:
pnpm add -g @mimrai/patterns
bun add -g @mimrai/patternsVerify that the global command is available:
patterns --helpRun it without installing
For a one-off, npx @mimrai/patterns find "…" runs the latest published version without a global install. Installing globally keeps the shorter patterns command that the rest of these docs use.
Update the CLI
Reinstall the package to move to the latest published version:
npm install -g @mimrai/patterns@latestThe same @latest tag works with pnpm add -g and bun add -g.