Genie React
Reference

CLI commands

Setup, discovery, live calls, and machine output.

Commands

CommandPurpose
initWire Genie into a Vite or Next.js app.
doctorCheck config and packages. Add --live for the running stack.
hubStart the standalone local hub.
linkLink packages from a local Genie checkout.
toolsList groups or show one tool contract.
statusShow bridge, app, session, and readiness state.
callRun one live tool.
batchRun several calls over one connection.

Discover a tool

npx @genie-react/cli tools
npx @genie-react/cli tools react.render
npx @genie-react/cli tools react_render_causes

The last command shows the description, input schema, limits, and a runnable example.

Time limits

npx @genie-react/cli call react_get_tree '{}' \
  --connect-timeout 8000 \
  --wait 15000 \
  --timeout 30000
OptionWhat it bounds
--connect-timeoutOpening the bridge WebSocket. Range: 100–120000 ms.
--waitWaiting for an app session. Range: 1–120000 ms.
--timeoutOne tool call. The bridge clamps it to 1000–120000 ms.

[busy] means the app's main thread is blocked. Wait for the returned delay and retry.

Targeting

npx @genie-react/cli status --session checkout-agent
npx @genie-react/cli status --url ws://localhost:4390/__genie/ws

Use GENIE_SESSION and GENIE_BRIDGE_URL to set these once per shell.

Stable failures

Machine-mode failures keep stdout as valid JSON. They include a stable reason and a safe next command when recovery is known. A failed batch item does not stop later items.

On this page