spatie/mailcoach-cli
Command-line tool for Mailcoach. Log in with your instance URL and API token, then run autogenerated commands for every Mailcoach API endpoint (lists, campaigns, etc.). Includes clear-cache/logout and an AI agent skill for Boost/skills.sh.
Artisan command structure, reducing friction for TPMs managing Laravel-based email workflows..env or a secrets manager). Risk of credential leaks if not managed properly..env suffice, or is a secrets manager (e.g., HashiCorp Vault) required?laravel/boost (Laravel 13+) simplifies integration. The CLI’s commands align with Laravel’s Artisan conventions, reducing learning curves.composer global require, but loses Laravel-specific benefits (e.g., service container integration).mailcoach clear-cache to refresh if needed./account/api-tokens)..env or a secrets manager).composer.json (dev dependency) or install globally.mailcoach login to configure the instance URL.list-campaigns) to validate data integrity.create-campaign).spatie/mailcoach-cli for updates to the API spec or bug fixes. Use Composer’s update or require to patch.env or a secrets manager). Avoid hardcoding tokens.mailcoach clear-cache) after Mailcoach API updates or every 24h in high-churn environments.mailcoach --verbose or Laravel’s log channels.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| API token revoked/expired | All CLI commands fail | Implement token rotation; use short-lived tokens. |
| Mailcoach API downtime | CLI commands hang or fail | Add retry logic with exponential backoff. |
| API spec changes | CLI commands break | Test against staging; clear cache proactively. |
| Rate limit exceeded | Slow performance or failures | Implement queueing; monitor usage. |
| Agent skill instability | AI-driven workflows fail | Fall back to manual CLI commands. |
mailcoach login and token management.How can I help you explore Laravel packages today?