Postonus
CLI

Install

Install the CLI and sign in with a browser-approved device code.

Last updated on

Requires Node 22.12 or later.

npm install -g @postonus/cli
postonus login

login prints a code and opens your browser. Approve it there and the terminal picks it up automatically. On a remote machine with no browser, open the printed URL on any other device and type the code in — that is what the flow is designed for.

postonus post "shipping today" --to x,linkedin --optimal

postonus --help, or postonus <command> --help, lists everything. See Commands for every group.

Where credentials live

A session token from login is stored at ~/.config/postonus/config.json (or $XDG_CONFIG_HOME/postonus/config.json), permissioned so only your user can read it. postonus logout removes it.

Environment

VariablePurpose
POSTONUS_API_KEYAn API key for non-interactive use. Takes precedence over a stored session — set it and login is unnecessary.
POSTONUS_API_URLWhich dashboard to talk to. Defaults to https://app.postonus.com.
EDITOR / VISUALEditor opened by post --editor.
NO_COLORDisable coloured output.
XDG_CONFIG_HOMEWhere the session is stored. Defaults to ~/.config.

For non-interactive use — CI, scripts — see CI and Scripting.

On this page