KosmoKrator

sales

Lemlist CLI for Shell Scripts

Use the Lemlist CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Username and password auth

Lemlist 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 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 Shell Scripts
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

FunctionTypeParametersDescription
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

Related Lemlist CLI Pages