Tools

CLI

The neolife command-line tool — manage keys, stream events, and test webhooks locally.

The CLI is the fastest way to explore the API and to build a webhook handler without a public URL.

Install#

npm install -g @neolifehealth/cli

Sign in#

neolife login

This authenticates the CLI against your account. You can also point it at a specific key with NEOLIFE_API_KEY.

Stream events to localhost#

neolife listen streams your live, PHI-free events to a local receiver — signed exactly like production — so you can exercise a real webhook handler end to end while you build:

neolife listen --forward http://localhost:3000/neolife/webhooks

Each event is re-signed for your local secret, so your signature-verification code runs for real.

Manage keys#

neolife keys list
neolife keys create --scope orders:submit

Explore events#

neolife events list --limit 20
neolife events replay evt_1a2b3c

Relationship to the MCP server#

The CLI is for humans at a terminal; the MCP server is the same capability surface for AI agents. Both enforce the identical server-side rules — provider approval, idempotency, and the PHI boundary.