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.
Go from no installation to an authenticated LeadMagic CLI workspace and enriched local data in a few minutes.
Step-by-Step
Install LeadMagic CLI
Open a new terminal, then verify:
Sign in
A browser opens for OAuth. LeadMagic CLI does not require a pasted LeadMagic API key for normal use.
Verify your setup
Doctor auto-repairs fixable issues by default. Diagnostics only:
Scan for data files
Lists CSV, TSV, and Excel files with row counts and detected columns.
Analyze a file
Get a data health report: quality score, coverage, and recommendations. Save with -o report.md.
Open the LeadMagic CLI workspace
Or just lm: chat is the default command. Try:
Results land in .leadmagic/export/.
Alternative: Direct Commands
- Validate emails
- Find contacts
- Batch enrich
- Recipe
What Happens to Your Data
- Local storage: Working files and results stay under
~/.leadmagic/or project-local.leadmagic/. - Exports: Timestamped dirs in
.leadmagic/export/{timestamp}-{operation}/. - Privacy: Only fields needed for each API call are sent. Your full dataset stays local.
Check Credits
Or in chat: "How many credits do I have?" / /credits
Next Steps
LeadMagic CLI Authentication
Sign in to LeadMagic CLI securely. The lm login session powers interactive work, enrichment, validation, credits, and connected services.
LeadMagic CLI Workflows
Practical LeadMagic CLI workflows for local list cleanup, enrichment, hot folders, schedules, job changes, ICP scoring, outbound tools, and CRM sync.
Was this page helpful?
We value your feedback.