{"id":18678,"library":"postmark-cli","title":"Postmark CLI","description":"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+.","status":"active","version":"1.6.19","language":"javascript","source_language":"en","source_url":"https://github.com/activecampaign/postmark-cli","tags":["javascript","postmark","cli","templates","email","transactional","typescript"],"install":[{"cmd":"npm install postmark-cli","lang":"bash","label":"npm"},{"cmd":"yarn add postmark-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add postmark-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Postmark API client for sending emails and managing templates","package":"postmark","optional":false}],"imports":[{"note":"Install globally or use npx. Local install is unusual for a CLI tool.","wrong":"npm i postmark-cli --save-dev","symbol":"postmark-cli","correct":"npm i -g postmark-cli"}],"quickstart":{"code":"# Install globally\nnpm i -g postmark-cli\n\n# Send a basic email\npostmark email send \\\n  --server-token 'SERVER_TOKEN' \\\n  --from 'sender@example.com' \\\n  --to 'recipient@example.com' \\\n  --subject 'Hello from Postmark CLI' \\\n  --text-body 'This is a test email.'\n\n# Pull all templates into a directory\npostmark templates pull ./templates \\\n  --server-token 'SERVER_TOKEN'\n\n# Push modified templates only\npostmark templates push ./templates \\\n  --server-token 'SERVER_TOKEN'","lang":"javascript","description":"Shows global installation and basic email sending and template management commands."},"warnings":[{"fix":"Use --non-interactive flag or pipe stdin for automation.","message":"Inquirer prompts may change in future versions; interactive mode not fully scriptable.","severity":"deprecated","affected_versions":">=1.4.0"},{"fix":"Add --all argument to push all templates regardless of modification state.","message":"Template push only pushes modified or new templates by default (since v1.5.8); use --all to force push.","severity":"gotcha","affected_versions":">=1.5.8"},{"fix":"Upgrade Node.js to version 14 or later.","message":"Node.js 10 and below no longer supported; requires Node 14+.","severity":"breaking","affected_versions":">=1.6.18"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install globally: npm i -g postmark-cli","cause":"Missing peer dependency postmark when installing locally without --save.","error":"Error: Cannot find module 'postmark'"},{"fix":"Run npx postmark or reinstall globally: npm i -g postmark-cli","cause":"Global installation not in PATH or not installed globally.","error":"postmark: command not found"},{"fix":"Ensure you provide a valid server token via --server-token or environment variable POSTMARK_SERVER_TOKEN.","cause":"Invalid or missing Server-Token.","error":"Error: Template push failed: Unauthorized"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}