Skip to main content
The Rewrite CLI is the official command-line tool to interact with Rewrite directly from your terminal. Built for developers, it lets you send SMS, manage resend flows, listen to webhooks, simulate deliveries, and automate messaging pipelines — all without leaving your shell.

Capabilities

Authentication

Secure login, API key management, and multiple profiles.

SMS

Send, inspect, and resend messages directly from your terminal.

Webhooks

Listen, forward, and debug webhook events in real time.

Simulation

Simulate delivery statuses and edge cases safely.

Automation

JSON output, non-interactive mode, and scriptable workflows.

Configuration

Global flags, environments, and output formatting.

Installation

Verify installation

1

Authenticate

Authenticate using your API key or OAuth flow.
2

Listen for webhooks

Events will stream in real time and optionally forward to your local server.
3

Send a SMS

Design Principles

Rewrite CLI was built to be:
  • Explicit — No hidden behavior
  • Scriptable — Predictable structured output
  • CI-friendly — Fully non-interactive via flags
  • Fast — Minimal startup time and low footprint

Unix-friendly

Clean output, easy to pipe and integrate.

Single Binary

No heavy runtime dependencies.

REST API

Full HTTP API for advanced integrations.

SDKs

Official libraries for multiple languages.

Open Source

Source code, issues, and contributions.