@autonomad1/computeback-cli
v0.1.0
Published
Command-line client for Computeback / CB Hire — sign in as a business, list offers, tail outcome events, manage webhooks.
Maintainers
Readme
@autonomad1/computeback-cli
Command-line client for Computeback and the
CB Hire B2B labor surface. Lets a business sign in, list offers, tail
outcome events, and manage outbound webhooks without opening the web
portal — ideal for CI scripts, ops dashboards, and cron-driven
reporting.
Install
npm install -g @autonomad1/computeback-cli
# or run on demand:
npx -y @autonomad1/computeback-cliBoth cb and computeback bins are installed.
Sign in
cb login
# Email: [email protected]
# Password: ********
# Logged in. Session saved to /home/you/.computeback/config.jsonThe session token is stored at ~/.computeback/config.json with 0600
permissions. Override the backend URL via env var:
COMPUTEBACK_API_URL=https://staging.computeback.com/api cb loginCommands
cb login [--email EMAIL] # sign in
cb logout # drop session
cb whoami # show logged-in business
cb offers list [--status STATUS] [--limit N] # list your offers
cb offers get <offer-id> # full offer detail (JSON)
cb outcomes recent [--type TYPE] [--limit N] # tail outcome events
cb webhooks list # list webhooks
cb webhooks add <url> [--events e1,e2,...] # register a webhook
cb webhooks remove <webhook-id> # delete a webhook
cb help
cb versionExample: notify Slack when a new lead lands
#!/usr/bin/env bash
# poll-leads.sh — run from cron every 5 min
cb outcomes recent --type landing_form_submitted --limit 50 \
| grep -A2 "today" \
| curl -X POST -H 'content-type: application/json' \
-d "{\"text\":\"$(cat -)\"}" \
"$SLACK_WEBHOOK"For first-class CRM push (Salesforce, HubSpot, Pipedrive), use the
outbound webhook integration on the backend — see the parent project's
docs/outcome-routing.md.
Where things live
- Source:
cli/src/in theAutonomad1/computebackmonorepo. - Auth:
Authorization: Bearer <session>header; sessions are server-issued viaPOST /v1/business/login. - Envelope: every response is
{ data, meta, errors }— the CLI unwrapsdatafor display and surfaceserrors[0]on non-2xx.
License
MIT
