Skip to main content
Real-world scripting patterns that combine the CLI commands. All examples assume LONESCALE_API_KEY is already exported (see Overview → Authenticate).

Fire and poll

The async pattern, broken into two explicit steps:
Or condensed into a single blocking call:

Batch enrichment across multiple files

Pipe sourcing → enrichment

Source contacts at a company, then immediately enrich the LinkedIn URLs:

Filter with jq

Look up a list of companies

Debug mode

Pass --debug to print every HTTP request and response to stderr. API keys are redacted automatically.
Because logs go to stderr and data goes to stdout, you can debug a pipeline without polluting the JSON output:

CI / cron usage

Need something else?

Tell us your use case at happy@lonescale.com.