Postmark CLI
$ postmark Official Med RiskPostmark CLI (postmark / postmark-cli) manages Postmark email templates (templates pull, templates push), servers (servers list), and transactional test sends (email raw/email template) from the terminal. Useful for syncing HTML/text email templates in Git, though it lacks --json and --dry-run.
npm install -g postmark-cli postmark reads and writes local HTML/text template directories directly inside your codebase so templates stay Git-versioned.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Simple subcommands (templates, servers, email), but prompts interactively if token flags/env vars are absent and lacks --json output.
- Interactive token prompt triggers if token env vars/flags are omitted
- No
--jsonor--no-interactiveglobal flag
templates pull only writes local files, while templates push and email mutate remote state without a --dry-run preview.
- No
--dry-runontemplates pushoremailsends
Cross-platform Node.js CLI via npm install -g postmark-cli or npx postmark-cli.
- Available on npm across macOS, Linux, and Windows
Focused on syncing email templates and quick test sends, covering only a small slice of the Postmark API.
- Limited to
email,servers, andtemplatescommand groups
Official ActiveCampaign/Postmark repository (ActiveCampaign/postmark-cli) under MIT license, with modest maintenance cadence.
- Official
ActiveCampaign/postmark-cliMIT repo
Basic README and Postmark template CLI guide, with limited structured CLI reference.
- Documented in GitHub README and Postmark user guide
Security, Auth & Guardrails
Reads POSTMARK_SERVER_TOKEN or POSTMARK_ACCOUNT_TOKEN from environment variables (or --server-token / --account-token flags); prompts interactively if omitted.
MIT open-source CLI; Postmark offers a free developer tier (100 emails/month) and paid volume plans.
# Postmark CLI (postmark) Agent Rules - Always pass `--server-token` / `--account-token` (or set `POSTMARK_SERVER_TOKEN` / `POSTMARK_ACCOUNT_TOKEN`) to prevent interactive token prompts. - Pull and inspect Git diff before running `postmark templates push`. - Never send test emails to real customer addresses from `postmark email`.
Agent-Ready Command Recipes
Safe Read-Only Queries
postmark templates pull ./emails/templates --server-token "$POSTMARK_SERVER_TOKEN"
Downloads templates and metadata from a Postmark server into ./emails/templates without modifying remote templates.
Controlled Writes & Previews
postmark templates push ./emails/templates --server-token "$POSTMARK_SERVER_TOKEN"
Uploads modified local HTML/text templates back to the target Postmark server.
Strengths for Agents
- + Clean Git-friendly template directory layout via
templates pullandtemplates push. - + Lightweight npm package with simple token-based server scoping.
Caveats & Pitfalls
- ! Lacks
--json,--dry-run, and--non-interactiveflags. - ! Prompts interactively for tokens if
POSTMARK_SERVER_TOKEN/--server-tokenis missing.