KosmoKrator

social-media

Typefully CLI for Cron Jobs

Use the Typefully CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.

5 functions 4 read 1 write API key auth

Typefully CLI for Cron Jobs

Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.

Use the headless CLI from cron when an operation should run without an interactive agent session. The Typefully CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Typefully CLI for Cron Jobs
kosmokrator integrations:configure typefully --set api_key="$TYPEFULLY_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call typefully.typefully_create_draft '{"content":"example_content","type":"example_type","schedule_date":"example_schedule_date","thread_connector":true,"is_tweet_pin":true,"is_tweet_reply":true,"reply_to":"example_reply_to","mail_subject":"example_mail_subject"}' --json

Discovery Before Execution

Agents and scripts can inspect Typefully docs and schemas before choosing a function.

kosmo integrations:docs typefully --json
kosmo integrations:docs typefully.typefully_create_draft --json
kosmo integrations:schema typefully.typefully_create_draft --json
kosmo integrations:search "Typefully" --json
kosmo integrations:list --json

Useful Typefully CLI Functions

FunctionTypeParametersDescription
typefully.typefully_create_draft Write content, type, schedule_date, thread_connector, is_tweet_pin, is_tweet_reply, reply_to, mail_subject, mail_subtitle, audience_id, label_ids Create a new draft in Typefully. Supports tweets, threads, and newsletter drafts. Separate individual tweets in a thread with four newlines (\\n\\n\\n\\n).
typefully.typefully_list_scheduled Read limit, offset List scheduled drafts in Typefully that are queued for publication. Returns draft content, scheduled dates, and metadata.
typefully.typefully_list_published Read limit, offset List published drafts in Typefully. Returns content, publication dates, engagement metrics, and metadata.
typefully.typefully_get_draft Read id Get details of a specific Typefully draft by its ID. Returns full content, scheduling info, and metadata.
typefully.typefully_get_current_user Read none Get the authenticated Typefully user's profile information, including handle, name, and account details.

Automation Notes

Related Typefully CLI Pages