Postfield

CLI

A zero-dependency Node CLI over the REST API. Run it from the repo with node cli/postfield.mjs, or npm link to get a global postfield command.

export POSTFIELD_API_KEY=pf_test_demo_summit_0000000000
export POSTFIELD_API_URL=http://localhost:3477

postfield campaigns list
postfield campaigns create --name "Spring Launch" --niche coffee --keywords "cold brew,morning"
postfield accounts add cmp_123 --handle sam.at.summit --bio "Runner. Ambassador for Summit Cold Brew."
postfield content upload cmp_123 ./videos/*.mp4 --hook "POV: you quit $7 coffee" --caption "Fall mornings"
postfield launch cmp_123
postfield tasks cmp_123
postfield metrics cmp_123
postfield usage
postfield hook-score "3 mistakes I made with cold brew"

Note: in this build, content upload registers files by name; upload the video bytes in the dashboard. Direct uploads (signed URLs) are on the launch list.