The Sharek CLI
The Sharek CLI puts your account in the terminal. Schedule posts, list channels, upload media and pull analytics without opening a browser, and script any of it.
It covers posting, channels, analytics and uploads from the public API, with the HTTP taken care of. The rest of the API has no command: post settings, uploading from a URL, listing your media, notifications, video, finding the next free slot, deleting a post group, looking up the account a credential acts for, and connecting or disconnecting a channel. Call the API directly for those.
Install
Section titled “Install”The package is sharek-cli and the command it installs is sharek.
npm install -g sharek-clipnpm add -g sharek-cliYou need Node 18 or newer. Check the install worked:
sharek --versionsharek --helpSign in
Section titled “Sign in”Every command needs credentials.
Not on every plan. The CLI works through the public API, which needs a plan that includes it. See pricing.
The quickest way to sign in is the browser flow:
sharek auth:loginThat prints a code, opens Sharek for you to approve it, and stores
the result. Authentication covers the flow in full, the
SHAREK_API_KEY alternative, and which one wins when you have both.
What the output looks like
Section titled “What the output looks like”Commands print a short human line, then the JSON the API returned (trimmed here):
$ sharek integrations:list🔌 Connected Integrations:[ { "id": "channel-id", "name": "My X account", "identifier": "x" }]posts:delete and the three auth:* commands print only their own messages, with no
JSON.
Where to go next
Section titled “Where to go next”- Authentication to sign in and stay signed in.
- Command reference for all 16 commands, their flags and their defaults.
- The agent skill if you want an AI coding agent driving the CLI for you.