Postmark CLI (v1.6.19) is a command-line tool for managing transactional email templates, sending emails, and fetching server information via the Postmark API. Released under MIT, it is maintained by ActiveCampaign with regular updates. Key differentiators include local template preview with hot reloading, smart push that only uploads modified templates, and support for layouts. The CLI integrates easily into CI/CD pipelines and offers interactive prompts via Inquirer. It requires Node.js 14+.
npm install postmark-cliVerified import paths — ran on the pinned version, not inferred.
Shows global installation and basic email sending and template management commands.
Use --non-interactive flag or pipe stdin for automation.
Add --all argument to push all templates regardless of modification state.
Upgrade Node.js to version 14 or later.
Install globally: npm i -g postmark-cli
Run npx postmark or reinstall globally: npm i -g postmark-cli
Ensure you provide a valid server token via --server-token or environment variable POSTMARK_SERVER_TOKEN.