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-clipking loginpking 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
| Task | Command |
|---|---|
| Onboard a brand from a URL | pking onboard https://yoursite.com --name "My Brand" |
| List brands | pking brand list |
| Switch active brand | pking brand set <brandId> |
| Show the brand profile | pking brand info |
| Generate post options | pking posts generate --platform linkedin --variations 3 |
| Approve and schedule | pking posts approve <postId> --variation 2 --schedule 2026-04-01T09:00:00Z |
| Generate in another language for one call | pking posts generate --platform linkedin --language cs |
| Read or set the brand language | pking 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.