Skip to main content
The LeadMagic CLI includes chat-first workflows plus direct commands for deterministic enrichment, analytics, automation, and outbound handoff. Run lm help for the current command list or lm COMMAND --help for command-specific flags.

Global Options

Everyday Commands

Data And AI Commands

Use these when you want file-level analysis or one-off AI assistance outside chat.

Enrichment Commands

Direct enrichment commands call LeadMagic for specific lookup types.

Company Research

The research command focuses on account intelligence signals.

Local Database

LeadMagic stores imported data, enrichment output, chat history, recipes, schedules, and run history in a local analytics database. Use SQL when you want exact answers.
lm db reset --confirm deletes local tables and run history. Export anything important first.

Recipes, Schedules, And Watch Mode

Recipes are YAML enrichment pipelines. They make repeated cleanup and enrichment work predictable, estimable, and automatable.

Job Change Monitoring

Use job-change commands to check whether contacts still work where you expect. Alias: lm jc.

Outbound Integrations

Push enriched, eligible contacts from the local database into outbound platforms. Each integration can verify credentials, list or create campaigns, push leads, show push history, export campaign leads, and read campaign stats. Examples:
Alias: lm int.

Configuration And Setup

Useful config keys include dbPath, dbMemoryLimit, dbThreads, outputDir, theme, plainTextMessages, instantlyApiKey, emailBisonApiKey, emailBisonInstanceUrl, and smartleadApiKey.

Common Workflows