sales
Lemlist CLI for Cron Jobs
Use the Lemlist CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Username and password auth
Lemlist 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 Lemlist CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Lemlist CLI for Cron Jobs
kosmokrator integrations:configure lemlist --set username="$LEMLIST_USERNAME" --set password="$LEMLIST_PASSWORD" --enable --read allow --write ask --json
kosmo integrations:call lemlist.lemlist_list_campaigns '{"status":"example_status","limit":1,"offset":1}' --json Discovery Before Execution
Agents and scripts can inspect Lemlist docs and schemas before choosing a function.
kosmo integrations:docs lemlist --json
kosmo integrations:docs lemlist.lemlist_list_campaigns --json
kosmo integrations:schema lemlist.lemlist_list_campaigns --json
kosmo integrations:search "Lemlist" --json
kosmo integrations:list --json Useful Lemlist CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
lemlist.lemlist_list_campaigns | Read | status, limit, offset | List all outreach campaigns in Lemlist. Returns campaign IDs, names, statuses, and other metadata. |
lemlist.lemlist_get_campaign | Read | campaign_id | Get details of a specific Lemlist campaign by ID. Returns the full campaign configuration and statistics. |
lemlist.lemlist_list_leads | Read | campaign_id, status, limit, offset | List leads in a specific Lemlist campaign. Returns lead contact information, email status, and campaign progress. |
lemlist.lemlist_add_lead | Write | campaign_id, email, firstName, lastName, companyName, phone, linkedinUrl, variables | Add a lead to a Lemlist campaign. The lead will be queued for outreach according to the campaign schedule. |
lemlist.lemlist_list_teams | Read | none | List all teams in the Lemlist account. Returns team names, member lists, and configuration. |
lemlist.lemlist_list_subaccounts | Read | none | List all sub-accounts in Lemlist. Returns sub-account names, statuses, and usage details. |
lemlist.lemlist_get_current_user | Read | none | Get the profile of the currently authenticated Lemlist user. Returns name, email, plan, and account details. |
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.