| title | CLI |
|---|---|
| description | Install and use the Recoup CLI to interact with the platform from your terminal. |
The Recoup CLI (@recoupable/cli) is a command-line wrapper around the Recoup API. It's available as a global npm package and is pre-installed in sandbox environments.
npm install -g @recoupable/cliSet your API key as an environment variable. You can get a key from the API Keys page.
export RECOUP_API_KEY=your-api-keyVerify it works:
recoup whoami| Variable | Required | Default | Description |
|---|---|---|---|
RECOUP_API_KEY |
Yes | — | Your Recoup API key |
RECOUP_API_URL |
No | https://recoup-api.vercel.app |
API base URL override |
All commands support --json for machine-readable output and --help for usage info.
Show the authenticated account. See GET /api/accounts/id.
recoup whoami
recoup whoami --jsonManage organizations. See GET /api/organizations.
recoup orgs list
recoup orgs list --account <accountId>
recoup orgs list --jsonManage artists. See GET /api/artists.
recoup artists list
recoup artists list --org <orgId>
recoup artists list --account <accountId>
recoup artists list --jsonSend a notification email to the authenticated account's email address. The recipient is automatically resolved from your API key — no need to specify a to address.
recoup notifications --subject "Pulse Report" --text "Here's your weekly summary."
recoup notifications --subject "Update" --cc manager@example.com --text "New release scheduled."
recoup notifications --subject "Weekly Pulse" --html "<h1>Pulse Report</h1><p>BVB release planning is <strong>active</strong>.</p>"
recoup notifications --subject "Pulse Report" --account <accountId> --text "Here's your weekly summary."| Flag | Required | Description |
|---|---|---|
--subject <text> |
Yes | Email subject line |
--text <body> |
No | Plain text or Markdown body (rendered as HTML) |
--html <body> |
No | Raw HTML body (takes precedence over --text) |
--cc <email> |
No | CC recipient (repeatable) |
--room-id <id> |
No | Room ID for a chat link in the email footer |
--account <accountId> |
No | Send to a specific account (org keys only) |
This command wraps POST /api/notifications.
Manage chats. See GET /api/chats and POST /api/chats.
recoup chats list
recoup chats create --name "My Topic"
recoup chats create --name "My Topic" --artist <artistId>
recoup chats list --jsonManage sandboxes. See GET /api/sandboxes and POST /api/sandboxes.
recoup sandboxes list
recoup sandboxes create
recoup sandboxes create --command "ls -la"
recoup sandboxes list --jsonCheck the status of background task runs. See GET /api/tasks/runs.
recoup tasks status --run <runId>
recoup tasks status --run <runId> --json| Flag | Required | Description |
|---|---|---|
--run <id> |
Yes | Trigger.dev run ID |
Content-creation pipeline commands. Generate AI-powered social videos for artists.
List available content templates. See GET /api/content/templates.
recoup content templates
recoup content templates --jsonCheck that an artist has the required assets (face-guide, songs, context files) before creating content. See POST /api/content/validate.
recoup content validate --artist <artistAccountId>
recoup content validate --artist <artistAccountId> --json| Flag | Required | Description |
|---|---|---|
--artist <id> |
Yes | Artist account ID |
Preview the estimated cost and duration for a content run without starting it. See POST /api/content/estimate.
recoup content estimate --artist <artistAccountId>
recoup content estimate --artist <artistAccountId> --template <name> --json| Flag | Required | Description |
|---|---|---|
--artist <id> |
Yes | Artist account ID |
--template <name> |
No | Template name (default: random) |
--lipsync |
No | Enable lipsync mode |
--upscale |
No | Enable upscaling |
Trigger the full content-creation pipeline. Returns a run ID you can check with recoup tasks status. See POST /api/content.
recoup content create --artist <artistAccountId>
recoup content create --artist <artistAccountId> --template <name> --lipsync --upscale
recoup content create --artist <artistAccountId> --json| Flag | Required | Description |
|---|---|---|
--artist <id> |
Yes | Artist account ID |
--template <name> |
No | Template name (default: random) |
--lipsync |
No | Enable lipsync mode |
--upscale |
No | Enable upscaling |
--caption-length <n> |
No | Max caption length in characters |