marketing
Buffer CLI for Shell Scripts
Use the Buffer CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Manual OAuth token auth
Buffer CLI for Shell Scripts
Call integration functions from shell scripts with stable JSON input and output.
Use shell scripts for small local automations that need one or more integration calls. The Buffer CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Buffer CLI for Shell Scripts
kosmokrator integrations:configure buffer --set access_token="$BUFFER_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call buffer.buffer_list_profiles '{}' --json Discovery Before Execution
Agents and scripts can inspect Buffer docs and schemas before choosing a function.
kosmo integrations:docs buffer --json
kosmo integrations:docs buffer.buffer_list_profiles --json
kosmo integrations:schema buffer.buffer_list_profiles --json
kosmo integrations:search "Buffer" --json
kosmo integrations:list --json Useful Buffer CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
buffer.buffer_list_profiles | Read | none | List all social media profiles connected to the Buffer account. Returns profile IDs, service types (e.g., Twitter, Facebook, LinkedIn), and display names. |
buffer.buffer_get_profile | Read | profileId | Get details of a specific social media profile in Buffer by its ID. Returns profile service type, display name, and account metadata. |
buffer.buffer_list_pending_updates | Read | profileId, count, page | List scheduled (pending) updates for a Buffer profile. Returns update IDs, text content, scheduled times, and status. Supports pagination. |
buffer.buffer_create_update | Write | text, profileIds, shorten, now, scheduledAt, media | Create and schedule a new social media update in Buffer. Provide the text content, target profile IDs, and optionally a scheduled time or media attachments. |
buffer.buffer_list_sent_updates | Read | profileId, count, page | List already posted (sent) updates for a Buffer profile. Returns update IDs, text content, sent times, and engagement metrics. Supports pagination. |
buffer.buffer_get_update | Read | updateId | Get details of a specific Buffer update by its ID. Returns the update text, scheduled or sent time, social profiles, media, and delivery status. |
buffer.buffer_get_current_user | Read | none | Get the currently authenticated Buffer user profile. Returns the user name, email, and account info. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.