Skip to main content

CLI Command Reference

The vibereview CLI exposes seven commands. Run any of them with npx -y @securityreviewai/vibereview@latest <command> or, if installed globally, as vibereview <command>.

CommandPurpose
initConfigure the MCP server and install rules/skills/hooks for IDE/CLI tools.
statusShow current configuration and installed targets.
switch-projectRe-pick the linked project (rules only).
syncUpload structured scan JSON to VibeReview.
flushBackstop sync, designed for IDE SessionStart hooks.
guardrailsList the active guardrails for the configured project.
projectShow the resolved project and tenant.

init

Configures the MCP server and installs rules/skills/hooks. This is the primary command — see Installation.

FlagDescription
-t, --target <name...>Target IDE/CLI (one or more supported target names).
-a, --allInstall for all supported targets.
--mcp-url <url>MCP server URL (default http://localhost:3000).
--api-url <url>API URL (default http://localhost:8000).
--api-key <token>API token credential.
--project-slug <slug>Preselect project by slug or ID.
--switch-projectRe-pick project; updates rules only.
--skip-mcpSkip MCP server configuration.
--skip-rulesSkip workspace rules/skills/hooks.
--no-hooksSkip IDE hooks (policy lockdown).
--approval-mode <mode>Local human-in-the-loop mode: auto | critical | always.
-y, --yesNon-interactive run using defaults.
# Interactive
npx -y @securityreviewai/vibereview@latest init

# Scripted, all IDEs, critical approval
npx -y @securityreviewai/vibereview@latest init --all --approval-mode critical --yes

The --approval-mode values mirror the tenant MCP approval mode:

  • auto — apply guardrails silently.
  • critical — ask before auth / authz / crypto / secrets changes.
  • always — ask before every guardrail change.

status

Displays the current configuration and which IDE/CLI targets are installed.

npx -y @securityreviewai/vibereview@latest status

switch-project

Re-pick the project the workspace is linked to; updates rules/skills/hooks only (does not touch MCP config).

FlagDescription
--project-slug <slug>Project to switch to.
-y, --yesNon-interactive.
npx -y @securityreviewai/vibereview@latest switch-project --project-slug viberev-benchmark

sync

Uploads structured scan JSON to VibeReview. With no --file, it drains the local queue — every artifact in .vibereview/scans/.

FlagDescription
--file <path>Upload a single artifact.
--forceRe-upload even if the content hash matches a prior upload.
# Upload one event (normal IDE workflow)
npx -y @securityreviewai/vibereview@latest sync --file .vibereview/scans/<event>.json

# Drain everything pending (manual recovery / backstop)
npx -y @securityreviewai/vibereview@latest sync

flush

A backstop sync intended to run from IDE SessionStart hooks.

FlagDescription
--backgroundDetach and exit immediately.
--forceRe-upload all artifacts.
npx -y @securityreviewai/vibereview@latest flush --background

guardrails

Lists the active guardrails for the configured project.

npx -y @securityreviewai/vibereview@latest guardrails

project

Shows the resolved project and tenant information for the current workspace.

npx -y @securityreviewai/vibereview@latest project
Version note

The published package is v0.2.5. The CLI's internal --version string may report 0.2.0 due to a minor version-string lag; treat the npm package version as authoritative.