Install the Socifyr CLI
Install @socifyr/cli globally with your package manager, then run socifyr configure. The CLI needs Node.js 18 or newer.
How do I install the socifyr CLI?
bash
npm install -g @socifyr/clibash
pnpm add -g @socifyr/clibash
bun add -g @socifyr/clibash
yarn global add @socifyr/cliThe unscoped package socifyr is an alias that depends on @socifyr/cli and exposes the same socifyr binary. Verify the install:
bash
socifyr --version
# 0.3.0How do I set my API key?
bash
socifyr configure --key sk_...This writes ~/.socifyr/config.json. Details and flags are on the configure page. Create an API key in the dashboard; each key belongs to one workspace. See API keys.
Which settings does the CLI read, and in what order?
Environment variable first, then the config file, then the built-in default.
| Setting | Env var | Config key |
|---|---|---|
| API key | SOCIFYR_API_KEY | apiKey |
| API URL | SOCIFYR_API_URL | apiUrl (default https://api.socifyr.com/api) |
How do I publish a first post from the CLI?
bash
socifyr connections
socifyr post "Hello from the CLI" --to linkedin-myhandle --waitGlobal flags
| Flag | Description |
|---|---|
-h, --help | Show help for the CLI or a command |
-V, --version | Print the CLI version |
--json is a per-command flag, not a global one. See the CLI overview for the command list and exit codes.