Skip to main content
Overview

Command reference

Complete inventory of every vg subcommand — drift scoring, code graph, AI context, models, IDE, and diagnostics — with links to each full page.

Overview

The Vibgrate CLI installs as @vibgrate/cli and exposes the vg command (vibgrate is an alias). scan is the default subcommand — bare vg scans the current directory. Never append a trailing . to path-defaulting commands.

This page is the full inventory. Each link opens the detailed command page. Under each set, Typical path is the order most teams run the important commands; the table below it is the full list A–Z.


Drift scoring & supply chain

Typical path: vg init → vg scan → vg baseline → vg report → vg fix

CommandPurpose
vg / vg scanScan for upgrade drift (default subcommand)
vg baselineCreate a drift baseline snapshot
vg bisectCommit where a dependency crossed a version line
vg evidenceSigned regulatory evidence (regime-neutral; CRA first)
vg fixRanked, risk-tiered upgrade plans (hosted planner)
vg initInitialize Vibgrate in a project
vg reportGenerate a drift report from a scan artifact
vg sbomSBOM export/delta and OpenVEX
vg scan --vulnsDrift plus known vulnerabilities (OSV)
vg updateUpdate the CLI
vg whyWho introduced a dependency + open vulnerabilities

Change review

Vibgrate Review — did this change move the system toward its declared architecture, weaken a security control, or create an implication the author did not account for? Answered locally from the code map, as one decision in a signed, versioned receipt.

Typical path: vg review → vg review findings-from-diff → vg review propose <id> --model forge --json → vg review --base origin/main --format json in CI → vg review verify <receipt>

CommandPurpose
vg reviewArchitecture + security-control review of the current change (pass / needs_review / fail / undetermined)
vg review findings-from-diffDeterministic vg.review.findings.v1 document for the change (correctness blast-radius and architecture-policy rows plus security scanners; JSON adds publishable; writes .vibgrate/review-propose-handoff.json)
vg review explainThe evidence behind one finding: graph edges, spans, policy rules
vg review proposePatchIR dry-run for one finding (--model relay:<slug> or spark|flow|forge; --findings, same --base / --in-place / --diff as findings-from-diff, or last-run .vibgrate/review-propose-handoff.json; never writes the default branch)
vg review verifyCheck a receipt's digest and Ed25519 signature offline (verified / unverified / failed)

Workspace auth & cloud upload

Sign in, create a DSN for CI, and push scan results. Local drift scoring does not require this — nothing leaves your machine until you push.

Typical path: vg login → vg dsn → vg push → vg logout

CommandPurpose
vg dsnManage DSN tokens
vg loginBrowser auth with your Vibgrate workspace
vg logoutClear stored login credentials
vg pushPush scan results to Vibgrate Cloud

Localization

Vibgrate Localize — your application's translation keys and translations, synced between your repo and Vibgrate Cloud. config and format are local-only and free on every plan; the rest need a Team plan or above.

Typical path: vg locale config → vg locale push → vg locale pull

CommandPurpose
vg localeManage app translations — config, push, pull, status, format (vg localize is an alias)

Code graph

Typical path: vg build → vg status → vg ask → vg impact → vg share

CommandPurpose
vg askAsk the map (budget-bounded context block)
vg buildBuild or update the deterministic code map
vg bundleAir-gapped bundle
vg driftOutdated dependencies (offline; --online for currency)
vg embedPrecompute the local semantic index
vg exportExport the map (JSON, GraphML, SBOM, …)
vg factsDeterministic facts for a node
vg guideCited standards/practices for a node
vg impactBlast radius of a change
vg map / hubs / areas / odditiesOverview, hubs, communities, smells
vg pathShortest path between two nodes
vg savingsTokens/$ saved — grep baseline for map queries, and context compression
vg shareCommitable map + team hooks
vg showExplain a node, with its architecture role
vg show archLocal, interactive architecture map of the graph
vg statusMap freshness, counts, staleness
vg testsTests covering a node
vg treeCall tree from a node
vg unknownsUnresolved sites by blast radius
vg watchRebuild the map when files change (debounced)

AI context & library docs

Typical path: vg serve → vg install → vg lib

CommandPurpose
vg install / uninstallWire AI assistants (or remove wiring)
vg libVersion-correct library docs
vg serveVibgrate AI Context (local MCP)

Context compression

Compression adds no new command. It is a mode of vg serve, a flag on vg install, and a section of vg savings — see the context compression overview.

Typical path: vg install claude --compress → use Claude Code as usual → vg savings

CommandPurpose
vg serve --compressServe the code map and compress context: an Anthropic- and OpenAI-compatible listener on loopback
vg serve --compress --backgroundStart the listener as a background process (or reuse the running one) and return
vg serve --compress <agent>Run one agent session through it, environment only — nothing written; everything after the agent name is the agent's
vg install <agent> --compressRoute an agent through it durably by writing its base-URL config (reversible), and start the listener
vg install <agent> --learnTurn past agent sessions into guardrails in its instructions file (--apply writes)
vg uninstall <agent>Put that config back byte-for-byte, with everything else vg install wrote
vg savingsTokens and dollars saved, today / 7 days / 30 days, by model, client and project
vg savings --benchmarkOffline compression benchmark on built-in fixtures: latency and ratio per content type
vg show savingsOpen the same numbers as a live local page
vg serve status / vg serve stopWhat is listening and which agents are routed; stop a background listener
vg serve configEvery VG_* knob and where its value came from; set / unset write settings.json
vg serve memoryCross-agent project memory: list, search, add, delete, stats, export, import
vg serve compress [file]Run the pipeline over a file by hand — the debug path
vg serve retrieve <hash>Expand a compression marker back to the original, or a slice of it

Code edits & models

Typical path: vg models → vg code

CommandPurpose
vg codeGraph-grounded code edit (dry-run by default)
vg modelsCode Modes (Spark/Flow/Forge) + local fleet

Holistic Code Specification

Deterministic code facts for Rust, Ruby, PHP, Dart, Swift, Scala, C++, COBOL, and VB6 — extract once, then read, map, or gate the stream.

Typical path: vg hcs extract → vg hcs digest / vg hcs map / vg hcs gate

CommandPurpose
vg hcsExtract, digest, map, gate, and validate code-fact streams
vg moduleManage the optional local modules (relevance, arch, hcs)

Diagnostics, IDE & runtime

Typical path: vg doctor → vg lsp → vg daemon

CommandPurpose
vg daemonLocal workspace daemon for multi-root graph sessions
vg doctorDiagnose config, credentials, map, hosted reachability, MCP launch, local inference, compression listener and store
vg llm-hostIsolated inference host process (enterprise isolation)
vg lspLanguage server (stdio) for IDE extensions
vg policyContext-policy production pin and signed patch verify

Try without installing

npx @vibgrate/cli scan

After install, prefer vg (not vibgrate) in docs and scripts.

Related Documentation

Related Help Articles

Vibgrate CLI

See a real scan run

A replay of the actual CLI running against our test repositories — live progress, real findings, a genuine DriftScore. Nothing executes in your browser.

Replay
demo@vibgrate — bash
❯ npx @vibgrate/cli scan
 
╭──────────────────────────────────────────╮
│ Vibgrate Drift Report │
╰──────────────────────────────────────────╯
 
── node-turborepo (node) .
Runtime: >=18.0.0 (6 majors behind)
Frameworks:
Turbo: 1.13.4 → 2.11.7 (1 behind)
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Dependencies:
1 current 1 1-behind 3 2+ behind 1 unknown
 
── @repo/admin (node) apps/admin
Frameworks:
TanStack Query: 5.104.1 → 5.104.1 (current)
React: 18.3.1 → 19.3.0 (1 behind)
React DOM: 18.3.1 → 19.3.0 (1 behind)
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Vite: 5.4.21 → 8.3.3 (3 behind)
Dependencies:
3 current 9 1-behind 3 2+ behind 4 unknown
 
── @repo/api (node) apps/api
Frameworks:
Express: 4.22.3 → 5.2.1 (1 behind)
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Vitest: 1.6.1 → 5.0.3 (4 behind)
Dependencies:
7 current 4 1-behind 4 2+ behind 4 unknown
 
── @repo/web (node) apps/web
Frameworks:
Next.js: 14.2.35 → 16.4.0 (2 behind)
React: 18.3.1 → 19.3.0 (1 behind)
React DOM: 18.3.1 → 19.3.0 (1 behind)
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Dependencies:
2 current 6 1-behind 3 2+ behind 5 unknown
 
── @repo/config (node) packages/config
Frameworks:
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Dependencies:
2 current 2 1-behind 5 2+ behind 0 unknown
 
── @repo/database (node) packages/database
Frameworks:
Prisma: 5.22.0 → 7.10.0 (2 behind)
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Dependencies:
1 current 0 1-behind 3 2+ behind 1 unknown
 
── @repo/types (node) packages/types
Frameworks:
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Dependencies:
0 current 0 1-behind 1 2+ behind 1 unknown
 
── @repo/ui (node) packages/ui
Frameworks:
React: 18.3.1 → 19.3.0 (1 behind)
TypeScript: 5.9.3 → 7.0.2 (2 behind)
React: 18.3.1 → 19.3.0 (1 behind)
Dependencies:
1 current 4 1-behind 1 2+ behind 1 unknown
 
── @repo/utils (node) packages/utils
Frameworks:
TypeScript: 5.9.3 → 7.0.2 (2 behind)
Vitest: 1.6.1 → 5.0.3 (4 behind)
Dependencies:
0 current 1 1-behind 2 2+ behind 1 unknown
 
Tech Stack
Frontend: React, React DOM
Meta-frameworks: Next.js
Bundlers: tsx, Turbo, Vite
CSS / UI: Autoprefixer, PostCSS, Tailwind CSS
Backend: Express
ORM / Database: Prisma, Prisma Client
Testing: Vitest
Lint & Format: ESLint, ESLint Prettier, ESLint React, Prettier, typescript-eslint
 
Services & Integrations
Auth: JWT 9.0.3
Databases: Prisma 5.22.0
 
TypeScript
v5.3.3 · strict ✔ · MIXED · target: ES2022
 
Build & Deploy
Package Managers: pnpm
Monorepo: npm-workspaces, pnpm-workspaces, turbo
 
Product Purpose Signals
Frameworks: react, nextjs
Evidence: 177
Top Signals:
- [heading] Dashboard (apps/admin/src/pages/Dashboard.tsx)
- [title] Revenue Overview (apps/admin/src/pages/Dashboard.tsx)
- [copy] workspace:* (packages/ui/package.json)
- [copy] ./dist (packages/ui/tsconfig.json)
- [copy] ./src/index.ts (packages/ui/package.json)
- [copy] @repo/config/tsconfig-base.json (packages/ui/tsconfig.json)
- [copy] @repo/ui (packages/ui/package.json)
- [copy] #3b82f6 (apps/admin/src/pages/Dashboard.tsx)
Unknowns:
- No pricing or billing evidence found.
- No integrations/connectors evidence found.
- No route structure evidence found.
 
Security Posture
Lockfile ✖ · .env ✔ · node_modules ✔
 
Platform
Native modules: turbo
 
Code Quality
Files: 36 · Functions: 183 · Avg complexity: 2.62 · Avg length: 21.13 lines
Max nesting: 2 · Circular deps: 0 · Dead code: 0%
God files: apps/admin/src/pages/Products (448 lines)
 
Database Schema
postgresql · 8 models · 1 enum
Models: Address, CartItem, Category, Order, OrderItem (+3 more)
 
Findings (16 errors, 11 warnings)
✖ Node.js runtime ">=18.0.0" reached end-of-life on 2025-04-30 (latest: 24.0.0).
vibgrate/runtime-eol in .
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in .
✖ 60% of dependencies are 2+ major versions behind in node-turborepo.
vibgrate/dependency-rot in .
✖ @types/node is 6 major versions behind (spec: ^20.11.0, latest: 26.6.4).
vibgrate/dependency-major-lag in .
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in apps/admin
✖ Vite is 3 major versions behind (current: 5.4.21, latest: 8.3.3).
vibgrate/framework-major-lag in apps/admin
✖ vite is 3 major versions behind (spec: ^5.0.12, latest: 8.3.3).
vibgrate/dependency-major-lag in apps/admin
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in apps/api
✖ Vitest is 4 major versions behind (current: 1.6.1, latest: 5.0.3).
vibgrate/framework-major-lag in apps/api
✖ @types/node is 6 major versions behind (spec: ^20.11.0, latest: 26.6.4).
vibgrate/dependency-major-lag in apps/api
✖ vitest is 4 major versions behind (spec: ^1.2.1, latest: 5.0.3).
vibgrate/dependency-major-lag in apps/api
⚠ Next.js is 2 major versions behind (current: 14.2.35, latest: 16.4.0).
vibgrate/framework-major-lag in apps/web
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in apps/web
✖ @types/node is 6 major versions behind (spec: ^20.11.0, latest: 26.6.4).
vibgrate/dependency-major-lag in apps/web
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in packages/config
✖ 56% of dependencies are 2+ major versions behind in @repo/config.
vibgrate/dependency-rot in packages/config
✖ eslint-plugin-react-hooks is 3 major versions behind (spec: ^4.6.0, latest: 7.1.1).
vibgrate/dependency-major-lag in packages/config
⚠ Prisma is 2 major versions behind (current: 5.22.0, latest: 7.10.0).
vibgrate/framework-major-lag in packages/database
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in packages/database
✖ 75% of dependencies are 2+ major versions behind in @repo/database.
vibgrate/dependency-rot in packages/database
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in packages/types
✖ 100% of dependencies are 2+ major versions behind in @repo/types.
vibgrate/dependency-rot in packages/types
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in packages/ui
⚠ TypeScript is 2 major versions behind (current: 5.9.3, latest: 7.0.2).
vibgrate/framework-major-lag in packages/utils
✖ Vitest is 4 major versions behind (current: 1.6.1, latest: 5.0.3).
vibgrate/framework-major-lag in packages/utils
✖ 67% of dependencies are 2+ major versions behind in @repo/utils.
vibgrate/dependency-rot in packages/utils
✖ vitest is 4 major versions behind (spec: ^1.2.1, latest: 5.0.3).
vibgrate/dependency-major-lag in packages/utils
 
╭──────────────────────────────────────────╮
│ Top Priority Actions │
╰──────────────────────────────────────────╯
 
1. Upgrade EOL runtime in node-turborepo
End-of-life runtimes no longer receive security patches and block ecosystem upgrades.
./.
>=18.0.0 → 24.0.0 (6 majors behind)
Impact: −10 drift points (runtime & EOL)
 
2. Fix security posture: no lockfile found
Without a lockfile, installs are non-deterministic. Run the install command to generate one and commit it.
./
Missing: package-lock.json, pnpm-lock.yaml, or yarn.lock
 
3. Upgrade Vitest 1.6.1 → 5.0.3 in @repo/api (+2 more)
4 major versions behind. Major framework drift increases breaking change risk and blocks access to security fixes and performance improvements.
./apps/api
Vitest: 1.6.1 → 5.0.3 (4 majors behind)
./packages/utils
Vitest: 1.6.1 → 5.0.3 (4 majors behind)
./apps/admin
Vite: 5.4.21 → 8.3.3 (3 majors behind)
Impact: −5–15 drift points
 
4. Reduce dependency rot in @repo/types (100% severely outdated)
1 of 1 dependencies are 2+ majors behind. Run `npm outdated` and prioritise packages with known CVEs or breaking API changes.
./packages/types
typescript: 5.9.3 → 7.0.2 (2 majors behind)
Impact: −5–10 drift points
 
5. Reduce dependency rot in @repo/database (75% severely outdated)
3 of 4 dependencies are 2+ majors behind. Run `npm outdated` and prioritise packages with known CVEs or breaking API changes.
./packages/database
@prisma/client: 5.22.0 → 7.10.0 (2 majors behind)
prisma: 5.22.0 → 7.10.0 (2 majors behind)
typescript: 5.9.3 → 7.0.2 (2 majors behind)
Impact: −5–10 drift points
 
╭──────────────────────────────────────────╮
│ Architecture Layers │
╰──────────────────────────────────────────╯
 
Archetype: nextjs (80% confidence)
Files classified: 24 (11 unclassified)
Folders classified: 8
apps/admin/src presentation 100% 4 files
apps/admin/src/pages presentation 100% 2 files
apps/api/src/middleware middleware 100% 2 files
apps/api/src/routes routing 100% 2 files
apps/web/src/app presentation 100% 4 files
apps/web/src/app/products presentation 100% 2 files
apps/web/src/app/products/[id] presentation 100% 1 file
packages/ui/src presentation 100% 6 files
Unclassified source (sample): 11
 
presentation 15 files drift ████████████████████ 100 risk high
routing 4 files drift ████████████████████ 100 risk high
middleware 2 files drift ███████▍░░░░░░░░░░░░ 37 risk moderate
config 2 files drift ░░░░░░░░░░░░░░░░░░░░ 0 risk none
shared 1 file drift ████████████████████ 100 risk high
 
╭──────────────────────────────────────────╮
│ DriftScore Summary │
╰──────────────────────────────────────────╯
 
DriftScore: 70/100
Risk Level: HIGH
Projects: 9
Classified: 8 nano · 1 micro · 0 small · 0 standard
Billable: 0.42 · 9 detected → 0.42 billable projects (micro-project pricing)
0.1 micro · 0.32 nano
These fractions add up across repositories, then round down to whole billable projects.
 
Score Breakdown
Runtime: ████████████████████ 100
Frameworks: ███████████▊░░░░░░░░ 59
Dependencies: ██████▌░░░░░░░░░░░░░ 33
EOL Risk: ████████████████████ 100
 
Scanned at 2026-10-07T12:34:03.236Z · 6.6s · 286 files scanned · 56 workspace files · 27 dirs
❯
Press Run to start.