PostKing Docs
API and CLI

The pking CLI

Install the PostKing command line tool, sign in, and run common tasks from a terminal or an agent.

pking covers sign-in, brands, posts, blogs, landing pages, SEO, scheduling and more from the terminal.

Install and sign in

npm install -g postking-cli
pking login

pking login prints a short code and a URL. Open the URL, approve, and the CLI saves the credential. Each CLI sign-in appears as a session key on the API keys page. pking logout clears it.

Common commands

TaskCommand
Onboard a brand from a URLpking onboard https://yoursite.com --name "My Brand"
List brandspking brand list
Switch active brandpking brand set <brandId>
Show the brand profilepking brand info
Generate post optionspking posts generate --platform linkedin --variations 3
Approve and schedulepking posts approve <postId> --variation 2 --schedule 2026-04-01T09:00:00Z
Generate in another language for one callpking posts generate --platform linkedin --language cs
Read or set the brand languagepking brand language

Use pking --help and pking <command> --help for the full list.

Language flag

Every generation command accepts --language <code> to override the brand language for that call. Supported codes: en, es, pt-BR, de, fr, cs. Leaving the flag out uses the brand language. See Voice and languages.

On this page