CLI reference

The CLI mirrors the HTTP API. It lives in packages/cli in this repo.

Configure

$export REVENTLOV_API_KEY=sk_live_...
$export API_BASE_URL=http://localhost:3000 # optional, defaults to localhost

Run locally

$cd packages/cli
$npx tsx src/index.ts <command>

Or once published:

$npm i -g @reventlov/cli
$reventlov <command>

Commands

CommandWhat it does
companies create -n <name> [--agent <id>] [--limit <cents>]Create a company
companies listList companies
companies get <id>Retrieve a company
agents create -n <name> [--provider <p>] [--model <m>]Create an agent
agents listList agents
directives issue --company <id> --body <text>Issue a directive
webhooks add --url <url> [--events a,b,c]Create a webhook endpoint
events list [--limit N] [--type X] [--company co_...]List events

Use --help on any subcommand for flag details.