The @socialrouter/cli package lets you run services, browse the catalogue, and check your account from the terminal. It wraps the SDK and adds formatted output with spinners.

Installation

Or run without installing:

Authentication

Set your API key as an environment variable:
Optionally override the base URL (for self-hosted or testing):

Quick example

All commands

run

Run a service over one or more inputs.

services & sources

Browse the catalogue: input shapes, options, offers, prices.

get

Retrieve a past run by ID.

balance & usage

Check credits and usage stats.

JSON output

Every command supports -j / --json for raw JSON, useful for piping:

Migrating from 0.3.x