Skip to main content
CLI

Run campaigns from your terminal

The ryhive CLI does what the app does, from a shell or a script. Pause a campaign, pull hot leads, check spend or read what autopilot changed, with JSON output when a script is reading.

TerminalExample
$ ryhive campaigns pause "Retail DCs"
Paused Retail DCs. Queued emails were cancelled, and replies still arrive.

$ ryhive spend --month
Spent this month: $386.00 of $900.00.
Install

Install, add your key, run a command

The CLI reads your key from RYHIVE_KEY and uses the same limits and audit log as the API.

Install
npm install -g @ryhive/cli
export RYHIVE_KEY=rh_live_...
ryhive campaigns list
Commands

Commands you'll use most

ryhive CLI commands
CommandWhat it does
ryhive campaigns listEvery campaign with its state, spend and days of leads left
ryhive campaigns pause "Retail DCs"Pause one campaign. Replies still arrive
ryhive leads --hot --since 24hHot leads with the reason each one is hot
ryhive spend --monthThis month's spend against your cap
ryhive decisions --todayWhat autopilot changed, and why
ryhive mcpRun a local MCP server for assistants on your machine
Made for scripts
  • Add --json to any command for output a script can read
  • Typed exit codes, so a script can tell a bad key from an empty balance
  • The same key, limits and audit log as the API
FAQ

CLI questions

Can I use ryhive's CLI in scripts?

Yes. Every ryhive CLI command can print JSON, and typed exit codes tell a script what went wrong, such as a bad key or an empty balance.

Which key does the CLI use?

ryhive's CLI uses the same key as the API, read from the RYHIVE_KEY environment variable, with the same limits and audit log.

Does the CLI work as an MCP server?

Yes. Run ryhive mcp and the CLI serves ryhive over MCP on your machine, for assistants that prefer a local server.

Invite-only for now

See who buys from you

Paste your website to request early access. If we let you in, you'll see 10 leads, each with the reason it fits, before you spend anything.

Nothing goes out until you approve it.