CLI
Everything Meerko does, from your terminal or a script: 65 commands. This page is generated from the CLI itself, so it matches the version in the repo.
Docs menu
Set up
The CLI runs from a clone of the repo (Node 20+ and pnpm). Log in once: your browser opens, you continue with Google and click Allow. The sign-in is saved to ~/.meerko/config.json, readable only by you, and renews on its own.
$ git clone https://github.com/polynode-co/meerko ~/meerko && cd ~/meerko && pnpm install$ pnpm meerko login --url https://api.meerko.ai
Without --url it uses http://localhost:8787, a self-hosted API on this machine. On a server without Google or email sign-in, log in with an API key instead: --key mk_…. The MEERKO_API_KEY and MEERKO_API_URL environment variables override the saved login. pnpm meerko logout signs out.
JSON output
Add --json before the command for machine-readable output, handy for scripts and agents: pnpm meerko --json tables ls.
login
pnpm meerko loginSign in with your browser (or an API key) and save it to ~/.meerko/config.json.
- --key <apiKey>
- Use an API key instead of the browser (starts with mk_)
- --url <apiUrl>
- API URL. Default http://localhost:8787.
logout
pnpm meerko logoutSign out: revoke the browser sign-in and forget the saved key.
workspaces
Your workspaces, one per brand (browser sign-in; an API key stays in its own)
pnpm meerko workspaces lsList your workspaces; * marks the one commands act on.
pnpm meerko workspaces use <workspace>Act on another workspace from now on (an id or exact name from `workspaces ls`)
pnpm meerko workspaces create <name>Create a workspace for another brand (shares your plan and credits)
- --use
- Switch to it.
pnpm meerko workspaces rename <workspaceId> <name>Rename a workspace (owners)
tables
Manage prospect tables.
pnpm meerko tables lsList tables.
pnpm meerko tables create <name>Create a table.
pnpm meerko tables add-column <tableId> <name>Add a column.
- -t, --type <type>
- Text | number | email | url | boolean | json. Default text.
- -p, --prompt <prompt>
- Make it an AI column: an instruction your agent answers per row ({{column_key}} inserts values)
pnpm meerko tables import <tableId> <file>Import rows from a CSV (with header row) or a JSON array file.
pnpm meerko tables rows <tableId>List rows, optionally filtered.
- -f, --filter <json>
- Exact-match filter, e.g. '{"country":"Spain"}'.
- -l, --limit <n>
- Max rows. Default 50.
- -o, --offset <n>
- Rows to skip. Default 0.
- -s, --stage <stage>
- Only rows at this pipeline stage (new, contacted, replied, meeting, won, lost)
pnpm meerko tables delete-rows <tableId> <rowIds...>Delete leads by row id (their sequences stop; sent emails and do-not-email entries stay)
pnpm meerko tables delete <tableId>Delete a table with its rows and its paused or draft sequences (pause active ones first)
- -y, --yes
- Don't ask for confirmation.
pnpm meerko tables pending <tableId> <column>Print rows whose AI column is still empty, with the instruction rendered per row (JSON)
- -l, --limit <n>
- Max rows. Default 25.
pnpm meerko tables update <tableId> <file>Merge values into rows from a JSON file: [{ "id": "<rowId>", "data": { ... } }].
pnpm meerko tables stage <tableId> <stage> <rowIds...>Move rows to a pipeline stage: new | contacted | replied | meeting | won | lost.
pipeline
pnpm meerko pipelineLead counts per stage.
- -t, --table <tableId>
- Only this table.
find
pnpm meerko find <kind>Search Icypeas for people or companies and save the results to a table.
- -q, --query <json>
- Filters, e.g. '{"currentJobTitle":{"include":["CTO"]},"location":{"include":["ES"]}}'. Required.
- -l, --limit <n>
- Max results to fetch (costs credits) Default 25.
- -t, --table <tableId>
- Append to an existing table.
- -n, --name <tableName>
- Name for the new table.
- -c, --count
- Only count matches (free)
website
pnpm meerko website <url>Read a website's home page (title, description, headings, text) to work out who it sells to; free.
enrich
pnpm meerko enrich <tableId>Find and verify emails (or, with --fields phone, phone numbers) for rows that don't have them yet.
- --fields <list>
- Comma-separated: email, email_verification, phone (80 credits each, Pro) Default email,email_verification.
- -f, --filter <json>
- Only enrich rows matching this exact-match filter.
- -l, --limit <n>
- Rows per batch (max 50) Default 25.
- --all
- Keep going in batches until no rows remain.
- --overwrite
- Re-run rows that already have a result.
- --min-score <n>
- Only rows whose ICP fit is at least n (0-100)
mailboxes
Connect the inboxes Meerko sends from.
pnpm meerko mailboxes connectConnect an inbox: Gmail by default (app password, from MEERKO_APP_PASSWORD or asked), --provider outlook (signs in with Microsoft in your browser), or zoho, zoho-eu, fastmail, other.
- -e, --email <address>
- The address to send from.
- -p, --provider <provider>
- Gmail (default), outlook, zoho, zoho-eu, fastmail, other. Default gmail.
- --login <account>
- The account to sign in as, when it isn't the address (a Gmail alias's account, or a provider's user name)
- --imap-host <host>
- With --provider other: the IMAP server (TLS, port 993)
- --smtp-host <host>
- With --provider other: the SMTP server.
- --smtp-port <port>
- With --provider other: 465 (TLS, default) or 587 (STARTTLS) Default 465.
- --name <name>
- Sender name shown to recipients.
- Use Google's consent page instead, where the server has it on.
pnpm meerko mailboxes lsList connected mailboxes.
pnpm meerko mailboxes healthCheck SPF, DKIM and DMARC for every domain you send from.
pnpm meerko mailboxes set <mailboxId>Change a mailbox's daily send limit, sender name or ramp.
- --daily-limit <n>
- Max emails per day from this mailbox.
- --name <displayName>
- Sender name shown to recipients, e.g. "Pia from Slalom".
- --ramp
- Restart the 21-day ramp from today (new mailboxes ramp automatically)
- --no-ramp
- Send at the full daily limit now.
pnpm meerko mailboxes resume <mailboxId>Resume sending from a mailbox Meerko paused for too many bounces or spam rejections.
pnpm meerko mailboxes test <mailboxId>Send a test email to check the connection.
- --to <address>
- Recipient. Required.
pnpm meerko mailboxes rm <mailboxId>Disconnect a mailbox.
sequences
Multi-step email sequences sent from your mailbox.
pnpm meerko sequences lsList sequences.
pnpm meerko sequences create <tableId> <file>Create a draft sequence from JSON: {"name","mailbox_ids":[…],"steps":[{"subject","body"},{"body","delay_days"}]}.
pnpm meerko sequences preview <sequenceId>Render every step for one row (the first by default)
- -r, --row <rowId>
- Row to render.
pnpm meerko sequences enroll <sequenceId>Enroll rows from the sequence's table (rows that are unsafe to email are skipped)
- -f, --filter <json>
- Only rows matching this exact-match filter.
- -l, --limit <n>
- Max rows.
pnpm meerko sequences start <sequenceId>Start sending (within the send window, respecting mailbox limits)
pnpm meerko sequences pending [sequenceId]Emails waiting for your approval, as each lead will get them.
- -n, --limit <n>
- How many. Default 20.
pnpm meerko sequences approve [sequenceId]Approve the next email of every lead waiting in a sequence, or of the leads given with --lead.
- -l, --lead <enrollmentId...>
- Only these leads (ids from `meerko seq pending`)
pnpm meerko sequences modeWhether you approve each email first, or Meerko sends on its own (change it in the dashboard)
pnpm meerko sequences pause <sequenceId>Stop sending until started again.
pnpm meerko sequences delete <sequenceId>Delete a paused or draft sequence with its steps and enrollments (replies and leads stay)
- -y, --yes
- Don't ask for confirmation.
pnpm meerko sequences stats <sequenceId>Enrollment states, emails sent and reply rate.
pnpm meerko sequences pool <sequenceId>The mailboxes a sequence sends from, with today's sends and leads per mailbox.
replies
Replies to your sequences.
pnpm meerko replies lsList unclassified replies (newest first)
- -s, --sequence <id>
- Only this sequence.
- -i, --intent <intent>
- Only this intent (interested, not_interested, not_now, question, referral, wrong_person, other)
- -a, --all
- Include classified replies, out-of-office, bounces and unsubscribes.
- -l, --limit <n>
- Max replies. Default 25.
pnpm meerko replies classify <replyId> <intent>Set a reply's intent: interested | not_interested | not_now | question | referral | wrong_person | other.
- --done
- Also mark it handled.
pnpm meerko replies draft <replyId> <file>Save a draft answer to a reply from a text file (nothing is sent until approved)
drafts
Answers to replies, waiting for your approval.
pnpm meerko drafts lsList pending drafts with the reply they answer.
pnpm meerko drafts approve <draftId>Send the draft as a reply in the same thread.
- -f, --file <file>
- Send this edited text instead of the draft.
pnpm meerko drafts discard <draftId>Throw a draft away.
icp
Who this brand sells to; every lead is scored 0-100 against it.
pnpm meerko icp showPrint the ideal customer profile.
pnpm meerko icp set <json>Replace it, e.g. '{"industries":["Software Development"],"countries":["ES"],"headcount":{"min":10,"max":200},"titles":["CTO"]}'.
pnpm meerko icp clearRemove it (scores go blank)
pnpm meerko icp review <tableId> <rowId> <adjust> [note]Move one row's score by -30 to 30 with a reason; adjust 'clear' removes it.
routines
Autopilot: routines your own AI runs, when replies arrive or on a schedule.
pnpm meerko routines lsList routines and how their latest runs went.
pnpm meerko routines show <routineId>A routine's brief, how it runs, the prompt for your AI and its latest runs.
pnpm meerko routines create <name> <briefFile>Create a routine from a brief in a text file: --replies, or --days 1,2,3,4,5 --time 09:00 [--timezone Europe/Madrid].
- --replies
- Run when new replies arrive (Meerko starts it: connect a Claude routine or webhook in the dashboard)
- --days <days>
- ISO weekdays, 1 = Monday … 7 = Sunday. Default 1,2,3,4,5.
- --time <HH:MM>
- Local time.
- --timezone <zone>
- IANA zone (default: this computer's)
pnpm meerko routines pause <routineId>Stop running it until resumed.
pnpm meerko routines resume <routineId>Start running it again.
pnpm meerko routines run <routineId>Run it now (Meerko starts it; on your AI's own schedule, prints the prompt to run)
pnpm meerko routines rm <routineId>Delete a routine.
keys
Bring your own provider keys (calls through them cost no credits)
pnpm meerko keys lsList stored provider keys.
pnpm meerko keys set <provider> <key>Store a provider key (supported: icypeas, firecrawl, generect). It's checked with the provider first.
pnpm meerko keys rm <provider>Remove a stored provider key.
crm
Push contacted leads to HubSpot or Attio.
pnpm meerko crm statusShow the connected CRM.
pnpm meerko crm connect <provider>Connect hubspot (a private app token) or attio (an API key); asks for it without showing it.
- --no-auto
- Only sync when you run `meerko crm sync`.
pnpm meerko crm sync <tableId>Push a table's rows (all not yet pushed, or --rows) to the CRM.
- --rows <ids>
- Comma-separated row ids.
pnpm meerko crm auto <state>Turn automatic sync on or off.
pnpm meerko crm disconnectDisconnect the CRM (contacts already there stay)
credits
pnpm meerko creditsShow the workspace credit balance.