Skip to content

CLI

The bindly CLI is the fastest way to work with your Bindly workspace from a terminal or a script. It wraps the REST API and handles sign-in and token refresh for you. Source lives at github.com/taventech/bindly-cli.

Terminal window
npm i -g bindly-cli

The npm package is bindly-cli and it provides the bindly command. The Homebrew and curl options install a self-contained binary, so Node is not required.

Terminal window
bindly login

By default bindly login uses the OAuth 2.1 device flow: it prints a short code and a URL, you approve the sign-in in Bindly, and the CLI stores a short-lived token. Other modes:

Terminal window
bindly login --browser # loopback browser sign-in on a machine with a browser
bindly login --api-key bsk_... # non-interactive, using a workspace API key

Sign out with bindly logout. Credentials are stored at ~/.config/taven-cli/bindly.prod.json with 0600 permissions, and access tokens refresh automatically. For the full auth model, see Authentication.

Run bindly <command> --help for flags and examples on any command.

Command What it does
bindly session new --insured <name> [--state ST] [--lob a,b] [--naics code] Start an intake session for an insured.
bindly session list List your workspace’s sessions.
bindly session get <session-id> Show one session’s detail and intake progress.
bindly session submit <session-id> Submit a ready session to Hedge on your connected account.
bindly login / bindly logout Sign in and out.
  1. Sign in once:

    Terminal window
    bindly login
  2. Start an intake session for the insured:

    Terminal window
    bindly session new --insured "Acme HVAC" --state TX --lob general_liability
  3. Fill the intake in the Bindly app, or from an MCP assistant, then check progress:

    Terminal window
    bindly session get <session-id>
  4. Submit the finished session to Hedge:

    Terminal window
    bindly session submit <session-id>

    The command returns the Hedge submission id.