Config File Location
The CLI checks for a project-local
.leadmagic/ directory first, walking up the directory tree. If none is found, it uses the global directory at ~/.leadmagic/.
Initialize a project-local directory:
Configuration Keys
Manage config values withlm config:
User Config Keys
These keys can be set vialm config set <key> <value>:
Internal Config Keys
These are managed automatically by the CLI:Environment Variables
Database Configuration
The CLI uses a local embedded database for storing loaded data, query results, and metadata.AI Gateway Routing
The CLI routes AI chat and prompt workflows through the LeadMagic AI Gateway. Concrete model selection is managed server-side so the CLI can use the best available model for each workflow. Check AI routing:Themes
The CLI supports multiple terminal themes:
Set a theme:
Export Directory
All enrichment, validation, and export results are saved to timestamped subdirectories:Interactive Configuration
Open the full interactive configuration UI:lm config ui, lm config tui.
Next Steps
Command Reference
Commands for enrichment, local SQL, automation, and integrations.
Troubleshooting
Common issues and how to fix them.