Home / Market / sendblue cli

sendblue cli

Send iMessage and SMS from the shell via the @sendblue/cli npm package — outbound sends, contact management, and account setup with no API client or webhook server required.

skill★ 507680 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: sendblue-cli description: "Send iMessage and SMS from the shell via the @sendblue/cli npm package — outbound sends, contact management, and account setup with no API client or webhook server required." category: api-integration risk: critical source: community source_repo: sendblue-api/sendblue-cli source_type: official date_added: "2026-05-22" author: AnthonyFirth tags: [sendblue, imessage, sms, cli, messaging, notifications] tools: [claude, cursor, gemini] license: "MIT" license_source: "https://github.com/sendblue-api/sendblue-cli/blob/main/LICENSE" plugin: targets: codex: blocked claude: blocked

---

Sendblue CLI

Overview

@sendblue/cli is a Node CLI that creates a Sendblue account, provisions an iMessage-enabled number, and sends messages. It is the fastest way to text from a shell, script, or Claude Code hook — no API client, no webhook server, no credentials in env vars. Credentials live at ~/.sendblue/credentials.json (mode 600) and Node.js 18+ is required.

When to Use This Skill

How It Works

Step 1: Install

npm install -g @sendblue/cli       # global, exposes `sendblue`
# or one-shot:
npx @sendblue/cli <command>

Step 2: Set up an account

sendblue setup runs interactively by default. For CI/scripts, run it in two phases — the first call sends an 8-digit verification code by email, the second consumes it.

sendblue setup --email you@example.com                                       # sends code
sendblue setup --email you@example.com --code 12345678 \
               --company my-co --contact +15551234567                        # completes setup

| Flag | Notes | |---|---| | --email | Email address | | --code | 8-digit verification code (from the email) | | --company | Lowercase, hyphens/underscores, 3–64 chars | | --contact | First contact, E.164 |

Step 3: Send messages

sendblue send +15551234567 'Hello from Sendblue!'
sendblue messages --inbound --limit 20

Phone numbers must be E.164 (+ + country code + digits, no spaces or dashes).

Step 4: Manage contacts and plan

On the free plan, a contact must text your Sendblue number once before outbound sends to that contact will work. After sendblue setup ... --contact +15551234567, have that contact send any text to the printed Sendblue number, then run sendblue contacts to confirm verification.

Command Reference

| Command | Purpose | |---|---| | sendblue setup | Create account, verify email, set company name, add first contact | | sendblue login | Log in to an existing account | | sendblue send <number> <message> | Send an iMessage | | sendblue messages [--inbound\|--outbound] [-n <number>] [-l <count>] | List recent messages | | sendblue add-contact <number> | Register a contact | | sendblue contacts | List contacts and their verification status | | sendblue status | Account/plan info | | sendblue whoami | Show current credentials and verify validity |

Examples

Example 1: Notify when a long task finishes

long_running_thing && sendblue send +15551234567 "✅ done: $(date)"

Example 2: Read recent inbound for a specific contact

sendblue messages -n +15551234567 --inbound --limit 50

Example 3: Verify creds are good before a batch send

sendblue whoami || sendblue login

Example 4: Wire to a Claude Code Stop hook

To text yourself at the end of every agent turn, register a Stop hook in settings.json that shells out to sendblue send. Defer the actual hook wiring to [[update-config]] and the trigger logic to [[sendblue-notify]] — this skill only owns the CLI invocation.

Best Practices

Limitations

Security & Safety Notes

Common Pitfalls

Related Skills

Links