Herald CLI
Install and authenticate the Herald Protocol CLI to send notifications, run health checks, and automate your protocol from the terminal.
Herald CLI
The Herald CLI (herald) lets you interact with the Herald Protocol directly from your terminal — no code required. It is designed for both humans and automated agents (CI/CD pipelines, LLM workflows, cron jobs).
# Install globally
npm install -g @herald-protocol/cli
# or with pnpm
pnpm add -g @herald-protocol/cliRequires Node.js ≥ 18.
Authenticate
herald auth loginYou will be prompted for your API key (hrld_live_…) and Protocol ID — both available in the Herald Dashboard under API Keys.
Credentials are saved to ~/.config/herald-cli/config.json.
CI/CD — use environment variables instead
In automated environments, skip interactive login entirely:
export HERALD_API_KEY=hrld_live_…
export HERALD_PROTOCOL_ID=77a7cf6e-…The CLI always checks env vars first and falls back to the config file.
Send your first notification
herald notify send \
--wallet 9TXw1ZfGvdWvjEhMGLAqFQwHo7xqj8JyBfCbiPJmpBTF \
--subject "Governance vote live" \
--body "Proposal #42 is open — cast your vote before Friday." \
--category governanceRun a health check
herald doctorPings the gateway, verifies your API key, checks all permission scopes, and reports quota — in under 2 seconds.
# Machine-readable output for CI
herald doctor --jsonVerify auth
herald auth whoamiNext steps
- Command Reference — every command and flag explained
- CI/CD & Agent Use —
--json,--wait,--from-stdin, exit codes, GitHub Actions example - TypeScript SDK — for programmatic integration in your backend