Registry / devops / postmark-cli

postmark-cli

JSON →
library1.6.19jsnpmunverified

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-cli
INSTALL
IMPORT
SIG · POSTMARK-CLI
P
postmark-cli
devopsjavascriptv1.6.19
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

postmark-cli
✓ npm i -g postmark-cli
✗ npm i postmark-cli --save-dev
Install globally or use npx. Local install is unusual for a CLI tool.

Shows global installation and basic email sending and template management commands.

# Install globally npm i -g postmark-cli # Send a basic email postmark email send \ --server-token 'SERVER_TOKEN' \ --from 'sender@example.com' \ --to 'recipient@example.com' \ --subject 'Hello from Postmark CLI' \ --text-body 'This is a test email.' # Pull all templates into a directory postmark templates pull ./templates \ --server-token 'SERVER_TOKEN' # Push modified templates only postmark templates push ./templates \ --server-token 'SERVER_TOKEN'
postmark --version
Debug
Known issues
deprecatedInquirer prompts may change in future versions; interactive mode not fully scriptable.
fix
Use --non-interactive flag or pipe stdin for automation.
affects: >=1.4.0
gotchaTemplate push only pushes modified or new templates by default (since v1.5.8); use --all to force push.
fix
Add --all argument to push all templates regardless of modification state.
affects: >=1.5.8
breakingNode.js 10 and below no longer supported; requires Node 14+.
fix
Upgrade Node.js to version 14 or later.
affects: >=1.6.18
Errors
Common errors & fixes
Error: Cannot find module 'postmark'
Missing peer dependency postmark when installing locally without --save.
fix
Install globally: npm i -g postmark-cli
postmark: command not found
Global installation not in PATH or not installed globally.
fix
Run npx postmark or reinstall globally: npm i -g postmark-cli
Error: Template push failed: Unauthorized
Invalid or missing Server-Token.
fix
Ensure you provide a valid server token via --server-token or environment variable POSTMARK_SERVER_TOKEN.
Upgrade
Version history
1.6.19latest on npm
Audit
Dependencies
postmarkrequiredPostmark API client for sending emails and managing templates
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
postmark-cli — npm install postmark-cli · libregistry