CLI reference
The commands you need to inspect, generate, sync, control, run, and check.
Run a command
Use npx @usehive/cli from the application root, followed by one of the commands below, or hive if you installed the CLI globally. Every command also accepts -C /path/to/app to target another application root.
npx @usehive/cli inspectCommand reference
scan --dry-runPreview discovery without writing files.scan --installReview, generate approved tools, and install generated dependencies.scan --read-onlyApprove only supported read operations explicitly.scan --jsonOutput machine-readable analysis without writing files.scan --select <names>Select named capabilities from a previous scan for scripts or CI.scan --no-scriptGenerate without changing your app's package.json.generateRe-scan, review everything, and regenerate selected tools.syncRe-scan and bring the generated server up to date, keeping unchanged approvals.sync --checkReport drift and exit 1 if the server is out of date. Writes nothing; for CI.sync --accept-changedRe-approve changed tools without prompting.toolsList generated tools with their risk and enabled status.tools disable <name>Hide and refuse a tool without restarting. enable <name> reverses it.tools mode <mode>Set the server mode: all, read-only, or off.logsShow recent agent tool calls. Filter with --tool, --errors, --since 2h; follow with -f.deploy --app-url <url>Host the server on your Vercel account and print a link for Claude or ChatGPT.deploy --rotate-keyRedeploy with a new secret link. The old link stops working.deploy --project <name>Use a Vercel project name other than <app>-mcp.inspectShow the generated manifest and candidates.devRun the generated local Streamable HTTP server.dev --stdioRun the generated server with stdio transport.doctorCheck the local generated setup.doctor --networkAlso check that your app and the MCP server answer.Without a terminal, generation requires an explicit --select or --read-only. There is no automatic “expose everything” mode.
When your app changes
Run sync to bring the generated server up to date without reviewing everything again. It compares the tools the server serves with a fresh scan:
Unchanged toolsApproved tools whose name, description, input schema, risk, and source file are unchanged stay approved.Changed toolsNeed re-approval, interactively or with --accept-changed. Changed tools you don't re-approve are removed.Removed routesApproved tools whose route is gone are removed.New operationsAre listed and offered for review, never approved automatically.npx @usehive/cli syncIn CI or a pre-commit hook, sync --check writes nothing and exits 1 when the server is out of date or was generated by another HIVE version. Without a terminal and without --accept-changed, sync writes nothing and exits 1. To review every selection again, run generate.
For each changed tool, sync says whether it's a BREAKING change, meaning a call an agent made before can now be rejected or misread, or a safe change.
~ create_todo safe change — POST /api/todos
✓ body.dueDate: new optional field
~ add_application BREAKING — POST /api/applications
✗ body.company: removed: agents that still send it are rejected
✗ body.organization: new required field: older calls are rejectedBreaking: removed fields, new required fields, optional fields becoming required, type changes, removed enum values, tighter limits or formats, values no longer nullable, renames, and raised risk. Safe: new optional fields, added enum values, looser limits, required fields becoming optional, and description updates. If you host the server, run deploy again after syncing.
Current scope
The published CLI supports one TypeScript Next.js App Router application root at a time. It runs the generated MCP server on your machine, or hosts it on your own Vercel account with a shared secret link. Other frameworks, the Pages Router, GraphQL, other hosting providers, and per-user OAuth are not part of this release.