MailerLite CLI for Headless Automation
Use the MailerLite CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
8 functions 4 read 4 write API key auth
MailerLite CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The MailerLite CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# MailerLite CLI for Headless Automation
kosmokrator integrations:configure mailerlite --set api_key="$MAILERLITE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call mailerlite.mailerlite_list_subscribers '{"page":1,"limit":1,"status":"example_status"}' --json Discovery Before Execution
Agents and scripts can inspect MailerLite docs and schemas before choosing a function.
kosmo integrations:docs mailerlite --json
kosmo integrations:docs mailerlite.mailerlite_list_subscribers --json
kosmo integrations:schema mailerlite.mailerlite_list_subscribers --json
kosmo integrations:search "MailerLite" --json
kosmo integrations:list --json Useful MailerLite CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
mailerlite.mailerlite_list_subscribers | Read | page, limit, status | List subscribers from MailerLite. Supports pagination and filtering by status (active, unsubscribed, etc.). |
mailerlite.mailerlite_get_subscriber | Read | id | Get details for a single MailerLite subscriber by their ID. |
mailerlite.mailerlite_create_subscriber | Write | email, name, fields | Add a new subscriber to MailerLite. Provide an email address and optionally a name and custom fields. |
mailerlite.mailerlite_update_subscriber | Write | id, name, fields | Update an existing subscriber in MailerLite. Provide the subscriber ID and fields to update. |
mailerlite.mailerlite_delete_subscriber | Write | id | Delete a subscriber from MailerLite by their ID. This action is permanent. |
mailerlite.mailerlite_list_groups | Read | page, limit | List subscriber groups (segments) from MailerLite. Supports pagination. |
mailerlite.mailerlite_add_subscriber_to_group | Write | group_id, email, name | Add a subscriber to a MailerLite group by providing the group ID and subscriber email. |
mailerlite.mailerlite_get_current_user | Read | none | Get the currently authenticated MailerLite account information. Useful for verifying API credentials. |
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.