Skip to content
/patternsdocs
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/patterns

Prefer pnpm or Bun? The equivalents are:

pnpm add -g @mimrai/patterns
bun add -g @mimrai/patterns

Verify that the global command is available:

patterns --help

Run 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@latest

The same @latest tag works with pnpm add -g and bun add -g.

On this page