LeadMagic CLI Workflows
Practical LeadMagic CLI workflows for local list cleanup, enrichment, hot folders, schedules, job changes, ICP scoring, outbound tools, and CRM sync.
Choose a starting point
| If you want to… | Start with |
|---|---|
| Explore interactively | lm chat |
| Repeat the same pipeline | lm recipe |
| Automate drop folders | lm watch |
| Run on a cadence | lm schedule |
| Sequence outbound | lm integrations instantly|smartlead|emailbison |
| Sync CRM | lm integrations hubspot|salesforce |
| Catch movers | lm job-change |
| Prioritize spend | lm icp + then enrich |
| Use an IDE agent | MCP setup |
Playbooks
Outbound list cleanup
Outbound list cleanup
Turn a messy export into validated, enriched contacts.
Or in the interactive workspace:
Built-in recipes
| Recipe | Steps | Best for |
|---|---|---|
validate-and-export | load → validate → export | Bounce protection |
default-enrich | load → clean → enrich emails → export | Quick enrichment |
full-pipeline | load → clean → validate → emails + mobiles → export | End-to-end with budget cap |
Find emails and mobiles for an account list
Find emails and mobiles for an account list
In chat:
Hot folder pipeline
Hot folder pipeline
Whenever a new CSV lands, enrich it automatically.
Flow: inbound/ → processing/ → done/{timestamp}-{file}/ (or failed/ with error.log).
Defaults live under ~/.leadmagic/watch/. Pair with a recipe that has max_credits_per_run so spend stays bounded.
Scheduled enrichment
Scheduled enrichment
Use for weekly re-validation of active campaigns, job-change batches, or refreshing a champion list before outbound.
Push to Instantly, Smartlead or EmailBison
Push to Instantly, Smartlead or EmailBison
Enrich → validate → sequence without CSV download/upload.
In chat:
The CLI prefers SMTP-valid (or freshly found) emails and skips addresses already pushed to that campaign.
Job-change reactivation
Job-change reactivation
Typical automation: schedule a batch on your CRM export → export changers → lm find email at the new company → push to a “new role” Instantly campaign.
Intent signals on tracked accounts
Intent signals on tracked accounts
Use when you want funding, tech-stack shifts, or hiring surges without leaving the terminal. Results stay available locally for replay.
Score against your ICP before spending credits
Score against your ICP before spending credits
In the workspace: "score my contacts against the SaaS Series A ICP" or /icp score "SaaS Series A". Scoring uses AI usage credits, not enrichment credits. Enrich only high scores next.
Company research before a list build
Company research before a list build
Useful for TAM mapping, lookalike account research, and hiring-intent campaigns.
HubSpot or Salesforce sync
HubSpot or Salesforce sync
Same pattern for salesforce. Connect securely in the browser; push uses verified contacts that have not already synced.
SQL checks on enriched data
SQL checks on enriched data
In chat: "show a breakdown of contacts by state" or /query.
Dry runs and scoped keys for CI
Dry runs and scoped keys for CI
Interactive use stays on lm login. For scripts and CI:
Use --dry-run / recipe estimate before spending credits. Scoped keys are for programmatic API access. Sign in to LeadMagic CLI separately.
Next Steps
LeadMagic CLI Quickstart
Install LeadMagic CLI, sign in with browser OAuth, open the terminal workspace, and enrich your first local CSV with the lm command.
lm Command Reference
Complete reference for the lm command installed by LeadMagic CLI, including chat, enrich, find, recipes, watch, schedules, integrations, and setup.
Was this page helpful?
We value your feedback.