CLI
After install, a sendafrica command is available:
export SENDAFRICA_API_KEY="SA-..."
sendafrica balance
sendafrica sms send --to 0712345678 --message "Hello from CLI" --sender MYBRAND
sendafrica sms logs --status delivered --per-page 50
sendafrica rates
sendafrica sender-ids list
sendafrica sender-ids requirements
sendafrica sender-ids usableThe CLI reads the API key from the environment. Errors are reported to stderr and exit with code 1.
It shares the same client, normalizers, and error types as the SDK, so behavior in scripts matches behavior in your application code.
Last updated on