Skip to content

Health command

Pro

Run the same checks as the health endpoint from the command line. No Health Token needed, and results are never cached.

Terminal window
php craft lettermint/health
ok token Lettermint accepts the project API token.
ok teamToken Lettermint accepts the team API token.
warning usage The monthly volume of the plan is nearly used up, with 46000 of 50000 emails.
Status: warning
Option Description
--json Print the report as JSON, like the endpoint
--strict Fail on warning too
Exit code When
0 ok or warning
69 error, or warning with --strict
78 Lettermint isn’t the transport, or Standard edition