courier-cli

module
v5.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: Apache-2.0

README

Courier CLI

The Courier CLI sends notifications, inspects delivery, and manages Courier resources from your terminal or a script. It covers the same API surface as the SDKs, so anything you can send from code you can send from the command line.

Installation

npm install -g @trycourier/cli

This downloads a platform-specific native binary in a postinstall step — no Node.js runtime is needed afterwards.

With Go instead (requires Go 1.22+):

go install 'github.com/trycourier/courier-cli/v3/cmd/courier@latest'

That puts the binary in $(go env GOPATH)/bin, which needs to be on your PATH.

Quick Start

export COURIER_API_KEY='your-api-key'

courier send message \
  --message '{"to": {"user_id": "your_user_id"}, "template": "your_template_id"}'

Every command follows the same shape:

courier [resource] <command> [flags...]

Use --help on any command to see its flags, and --api-key to override the COURIER_API_KEY environment variable.

Documentation

Full documentation: courier.com/docs/tools/cli

Directories

Path Synopsis
cmd
courier command
internal
pkg
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL