// cli

Reviews from your terminal.

Run the same multi-agent review on your machine, in CI, or as a pre-push hook. Same engine, same rules, same models — review before code ever leaves your laptop.

$ installnpm
~ ❯ npm install -g @mesrai/cli
~ ❯ mesrai auth login
~ ❯ mesrai review
I.Where the CLI fits
4 workflows

Pre-push hook

local

Wire `mesrai review` into your git pre-push hook. Reviews run before code leaves your machine.

CI step

ci

Drop one shell line into GitHub Actions, GitLab CI, Bitbucket Pipelines, or Azure DevOps. Same engine, same rules, same models.

Branch batch

batch

Run `mesrai review --all` on a feature branch — get a single report across every changed file before you open the PR.

Mesrai Rules everywhere

rules

CLI reads the same Mesrai Rules + centralized config your cloud workspace uses. Local + remote review stay identical.

II.Common commands
5 essentials
  • mesrai auth loginAuthorize the CLI to your workspace
  • mesrai reviewReview the current diff against base branch
  • mesrai review --files src/api/users.tsReview specific files only
  • mesrai review --severity highSet minimum severity threshold for output
  • mesrai rules syncPull latest Mesrai Rules from your workspace
III.Reviews show up in the cloud too
audit

Every CLI review lands in your workspace

CLI reviews appear under /cli-reviews in your Mesrai workspace — full audit trail of who ran what, when, and what findings shipped to the cloud or stayed local.

// install

One npm install. Same engine.

Free CLI for free-tier workspaces. Get a CLI key from your workspace settings.