Skip to Content
Reference

CLI

Run the conciv commands the agent drives your app with, from your own terminal.

The conciv CLI sets a project up and drives your running dev server. The agent uses the same commands. Run one from your project folder:

Terminal
npx @conciv/cli tools page snapshot

Every command accepts --help for its flags, for example npx @conciv/cli auth link --help. The full list of commands and flags is at the end of the page.

Bare conciv is for the agent

The agents conciv starts have conciv on their PATH, from .conciv/bin. Your own shell does not, so you type npx @conciv/cli instead.

These commands print one JSON document, {"ok":true,"data":...} or {"ok":false,"error":...}:

  • tools
  • plugin
  • auth
  • mcp connect, mcp disconnect and mcp list

Pipe it to jq in a script.

init

Sets a project up: installs @conciv/it, wires your bundler config, and connects your agents.

Terminal
npx @conciv/cli@latest init
  • --yes accepts every detected default, with no prompts.
  • --dry-run prints the plan and touches nothing.
  • --force runs even with uncommitted git changes.
  • --json prints one JSON result and never prompts. Pair it with --yes:
Terminal
npx @conciv/cli@latest init --yes --json

Learn more in Getting started.

tools

Reads and drives the live page through your running dev server. The commands under tools come from the engine's own tool list. A plugin's tools show up as soon as the engine loads it.

Terminal
npx @conciv/cli tools page click --name SubmitButton

page is the tool group. click is the tool. A tool that targets an element takes one of:

  • --selector: a CSS selector
  • --ref: a ref from the last snapshot
  • --name: a React component name

--tab with a session id acts on that one tab, on whichever dev server holds it.

tools --help lists every tool the running engine serves.

tools tabs lists the open conciv tabs of every running dev server on this machine:

Terminal
npx @conciv/cli tools tabs

Learn more in Page control.

plugin call

Calls a method a plugin registered on the running engine, and prints its output.

Terminal
npx @conciv/cli plugin call server open --data '{"file":"src/routes/index.tsx","line":12}'

server is the plugin's RPC id. open is the method. --data, or -d, sends the method's input as JSON. Learn more in the Dev server documentation.

Prints a one-time login link for a page served by the conciv dev server.

Terminal
npx @conciv/cli auth link http://localhost:5173/

Open the link in the browser you want to log in. Learn more in Logging in.

auth revoke

With no id, lists the browsers that logged in to this project's engine. It logs nobody out:

Terminal
npx @conciv/cli auth revoke

With an id from that list, logs that one browser out. --all logs every browser out:

Terminal
npx @conciv/cli auth revoke 3f2a9c1d

mcp connect

Adds conciv to an agent CLI, so that agent can find and drive your open conciv tabs.

Terminal
npx @conciv/cli mcp connect claude

The agent is one of claude, codex, gemini-cli or opencode. Learn more in Agents.

mcp disconnect

Removes conciv from an agent CLI.

Terminal
npx @conciv/cli mcp disconnect codex

mcp list

Lists the agents connected to conciv.

Terminal
npx @conciv/cli mcp list

mcp serve

Serves conciv to an outside agent over MCP on stdio, not JSON. mcp connect writes this command into the agent's config. You rarely run it yourself.

Terminal
npx @conciv/cli mcp serve --agent claude

--version

--version, or -v, prints the CLI's version as plain text.

Terminal
npx @conciv/cli --version

All commands

conciv generates this list from the CLI's own command tree. A flag listed under a command applies to the commands below it too.

conciv

The conciv dev-agent CLI.

Prop

Type

conciv tools tabs

list the open conciv tabs of every running conciv dev server on this machine

conciv init

Set this project up for conciv: install, wire the bundler, connect your agents.

Prop

Type

conciv auth revoke

Stop trusting a browser that logged in to the conciv engine.

Prop

Type

conciv auth link

Print a one-time login link for a page served with the conciv dev server.

Prop

Type

conciv mcp serve

Serve conciv to an outside agent over MCP stdio, through the running conciv dev server.

Prop

Type

conciv mcp connect

Add conciv to an agent CLI, so that agent can find and drive your open conciv tabs.

Prop

Type

conciv mcp disconnect

Stop conciv answering an agent and remove conciv from that agent CLI.

Prop

Type

conciv mcp list

The agents connected to conciv.

conciv logs

Read the logs the conciv engine stored, newest first; switch or clean them with the subcommands.

Prop

Type

conciv logs level

Print the engine and widget log levels, or set them.

Prop

Type

conciv logs cleanup

Delete the stored logs older than the retention (logRetention, 7d by default) now.

conciv plugin call

Call a plugin's RPC method on the running conciv engine and print its output.

Prop

Type

Next steps

On this page