PostJr
Sign in Start for $0

PostJr on the command line

The postjr command drafts, schedules and follows social posts from a terminal, a shell script or a CI job. It calls the same REST API as the web app, and prints JSON.

Install

You need Node 20 or newer.

npm install -g postjr

Or run it without installing:

npx postjr --help

Sign in

Make an API key in PostJr under Settings, then Developer access. Then run:

postjr login

It asks for the key (nothing is echoed), checks it against PostJr and saves it. In CI, skip the login and set POSTJR_API_KEY in the environment. To use another PostJr instance, add --url to postjr login, or set POSTJR_URL.

Examples

List your connected accounts and copy the ids of the ones you want:

postjr channels list

Save a draft. With no account named, nothing is scheduled:

postjr posts create "Launch notes"

Schedule a post on two accounts. --at is ISO 8601 with an offset or Z; leave it out to publish at once:

postjr posts create "Shipped dark mode" --channel <id> --channel <id> --at 2026-12-01T09:00:00Z

Upload an image, then attach it by the id the upload prints:

postjr media upload ./screenshot.png
postjr posts create "New look" --media <asset id> --channel <id>

Wait for a post to finish publishing, or list what failed:

postjr publications wait <publication id>
postjr publications list --state failed

Every command has --help. Other commands cover posts that repeat, client review links, analytics, webhooks and RSS feeds.

In scripts and CI

Output is one JSON line on stdout, so it pipes to jq. A failure, a mistyped command included, prints a JSON problem on stderr and exits with code 1. A post create can carry an --id (an uppercase ULID), so a retry never makes a second post.

For an agent that talks MCP, see AI agents. For plain HTTP, the API reference lists every endpoint. The features page covers what else PostJr does.

Start for $0

$0 today. 7 days free, card required, then from $29 a month. Three plans, by how many accounts you connect.

Questions

What do I need to run the PostJr CLI?

Node 20 or newer and a PostJr account. Install it with npm install -g postjr, or run it with npx postjr.

Does the CLI cost extra?

No. It is in every plan, from $29 a month.

Where does the CLI keep my API key?

In a config file only you can read (~/.config/j-post/config.json, or %APPDATA%\j-post\config.json on Windows). The key is read from a prompt or from stdin, never from a flag, because process lists show flags. For CI, set POSTJR_API_KEY instead and nothing is saved.

Can a script or an AI agent use it?

Yes. Every command prints JSON on stdout. A failure prints a JSON problem on stderr and exits with code 1, so a script can branch on it.

Is the CLI the same as the API?

It calls the same REST API as the web app and the MCP server, so it sends what they send and is held to the same limits.