test-rivet-cli
v0.12.4
Published
Local visual web development tool with AI-powered code modification
Downloads
24
Maintainers
Readme
Rivet
Rivet helps you explore multiple design directions for your web app. It opens a local visual editor, generates parallel variants, lets you refine with comments, and can send the chosen direction back into your project.
Install
Run the installer from the project where you want AI agents to use Rivet:
npx -y rivet-design@latest installThe installer writes CLI usage guidance and command allowlists for detected shell-capable agents such as Claude Code, Cursor, and Codex. After installing, start a new agent session and say "Open Rivet" or "/rivet".
You can also run Rivet directly without a global install:
npx -y rivet-design@latest open --project /path/to/appIf installed globally, the package exposes the rivet binary:
rivet open --project /path/to/appCLI Agent Commands
Rivet's agent-facing commands print one JSON envelope on stdout, write progress to stderr, and do not prompt for input.
For interactive user workflows, run rivet open without --no-browser so the Rivet UI opens in the browser. Use --no-browser only for headless/background automation, CI/e2e checks, or when the user explicitly asks not to open a browser; in those cases, report the returned editorUrl.
rivet open --project /path/to/app
rivet status --project /path/to/app
rivet variants start --project /path/to/app --instruction "try three hero layouts" --count 3
rivet wait <workId> --project /path/to/app --timeout 120
rivet variants list --project /path/to/app
rivet variants commit <variantId> --project /path/to/app
rivet changes request --project /path/to/app --instruction "make the header coral" --element "#header"
rivet changes pull --project /path/to/app
rivet stop --project /path/to/appFor a fresh project, create or use an empty directory, open Rivet there, then start variants with --fresh:
rivet open --project /path/to/new-app
rivet variants start --project /path/to/new-app --fresh --instruction "build a SaaS landing page" --count 3For shell agents, pass caller metadata on each command when available:
rivet open --project /path/to/app --caller-agent cursor --caller-model <model> --caller-session <session-id>How It Works
rivet openstarts or attaches to the local Rivet editor server for a project. It can attach to an existing dev server or start the app's standarddev,start, orservescript when possible.- The editor shows your app and variant previews in the browser. Agents use
rivet variants ...andrivet changes ...to enqueue work. - Use
rivet wait,rivet status, orrivet status --watchto observe progress. - Commit the chosen variant with
rivet variants commit <variantId>or use the editor to keep refining.
If Rivet reports pull mode, staged work can be drained with rivet changes pull --project <path>, applied by the agent, then acknowledged with rivet changes pull --project <path> --ack <leaseId>.
Supported Frameworks
- Next.js
- Vite
- Create React App
- Remix
- SvelteKit
- Static HTML
Requirements
- Node.js 24+
- A shell-capable coding agent for agent-driven flows
- Git for variant branch/history features
License
GPL-3.0-or-later
