Skip to main content
Go from zero to enriched data in 5 minutes. This guide walks you through installing the CLI, authenticating, and running your first enrichment.

Step-by-Step

1

Install the CLI

Open a new terminal after install, then verify:
2

Sign in

lm login opens your browser and saves a local OAuth session for chat, enrichment, dashboard, and account-backed commands.
3

Verify your setup

You should see all checks passing. If not, run lm doctor --fix to auto-repair.
4

Scan for data files

This scans the current directory for CSV, TSV, and Excel files. You’ll see a list of files with row counts and detected columns.
5

Analyze a file

Get a data health report: quality score, column coverage, and enrichment recommendations. Save the report with -o report.md.
6

Start an AI chat

This opens the interactive AI chat. Try these prompts:
The AI loads your file, calls the right LeadMagic tools, and saves results to .leadmagic/export/.

Alternative: Direct Commands

If you prefer commands over chat, you can enrich and validate directly:
Validate specific emails:
Validate from a CSV file:

What Happens to Your Data

  • Local storage: CSV/Excel files are loaded into a local database in ~/.leadmagic/ (or project-local .leadmagic/).
  • Exports: Enriched results are saved to .leadmagic/export/{timestamp}-{operation}/ with timestamped directories.
  • Privacy: Only the specific fields needed for enrichment (emails, names, domains) are sent to the LeadMagic API. Your full dataset stays local.

Check Your Credits

See your account balance and usage:
Or ask in chat: “How many credits do I have?”

Next Steps

Command Reference

Commands for enrichment, local SQL, recipes, schedules, watch mode, and outbound integrations.

AI Chat Guide

Slash commands, sessions, and natural language workflows.

Configuration

Database, model, and theme settings.

Credits & Pricing

Credit costs per service and plan options.