LeadMagic CLI Workspace
Use the interactive LeadMagic CLI workspace for AI-assisted local data work, enrichment, slash commands, file references, sessions, and keyboard shortcuts.
The LeadMagic CLI workspace is the interactive surface installed with the lm command. Ask for what you need, or use / slash commands and keyboard shortcuts. It works with local files, LeadMagic enrichment and configured integrations, with live progress in your terminal.
Requires a real TTY. If lm doctor warns about a non-interactive terminal, run from a normal terminal app (not a piped CI shell).
AI replies are billed in credits from your organization's balance, by model usage. A short reply on the default model is about 0.2 credits; long sessions with large files cost more. Enrichment tools the AI runs are billed at their normal prices, and a daily AI spend limit applies per user and per organization. If your balance is too low for a reply, the workspace shows how many credits it needs and links to billing.
Agent modes
Press Shift+Tab to cycle between modes (shown in the workspace header):
| Mode | Best for |
|---|---|
| LeadMagic Data Enrichment Agent | Load, clean, validate, enrich, export |
| LeadMagic Prospecting Agent | Find people, roles, companies, jobs |
| LeadMagic Analysis Agent | SQL, column profiling, ICP scoring, summaries |
Example conversations
Load and enrich a CSV
Load and enrich a CSV
Validate then push outbound
Validate then push outbound
Or slash: /instantly, /smartlead, /emailbison.
Research a company
Research a company
CLI equivalents: lm research tech|funding|competitors -d stripe.com.
Score against ICP
Score against ICP
Or: /icp score "SaaS Series A": scoring uses AI usage credits, not enrichment credits. Manage definitions with lm icp create|list|show|delete.
Slash commands
Type / then a command (filter as you type). /help: full reference with examples. /commands: compact list.
Files
Files
| Command | Aliases | Description |
|---|---|---|
/browse | ls, dir | Browse files in a directory |
/find | search, locate | Find CSV or XLSX files |
/files | cwd, pwd | Show files in the current directory |
/output | export-dir, outdir | Set export directory |
/clean | dedupe, normalize | Cleaning operation picker |
/merge | combine, append, join | Merge CSV/Excel files |
Also: @ in the input bar to reference a file or directory.
Info
Info
| Command | Aliases | Description |
|---|---|---|
/commands | cmd, list, all | Compact slash-command list |
/help | h, ?, docs | Full reference with examples |
/status | s, stat | System status |
/whoami | me, user, identity | Logged-in user |
/credits | c, balance, bal | Credit balance / session usage |
/pricing | price, costs | API pricing cheat sheet |
/shortcuts | keys, hotkeys | Keyboard shortcuts dialog |
Config
Config
| Command | Aliases | Description |
|---|---|---|
/config | cfg, settings | Current configuration |
/theme | themes, color, colors | Theme picker or /theme <name> |
/scroll | scrollspeed, speed | Scroll speed (1–10) |
/auth | login, account | Auth / session status for enrichment |
/model | m | AI routing status (read-only) |
Themes: leadmagic · catppuccin · dracula · tokyo-night · nord · gruvbox · rosepine · monokai · solarized · github · one-dark
Chat and sessions
Chat and sessions
| Command | Aliases | Description |
|---|---|---|
/sessions | sess, session | List and switch sessions |
/editor | e, edit, compose | Compose in $EDITOR |
/export | exp, save | Export session as Markdown to .leadmagic/export/ |
/search | find-message | Search messages in the current session |
/thinking | think, reasoning | Toggle visibility of model reasoning blocks |
/expand | reasoning-expand, expand-reasoning | Expand/collapse reasoning blocks |
/clear-context | clearctx, forget | Clear enrichment follow-up context (collapse result tables) |
/clear | cls, reset | Clear all chat history |
Sessions persist in the local database across restarts.
Data and system
Data and system
| Command | Aliases | Description |
|---|---|---|
/table | show, data | Show current data as a table |
/columns | cols | Toggle visible columns on the last table |
/compact | mini | Toggle compact mode |
/analyze | health | Data health of the loaded file |
/optimize | vacuum | Optimize the local workspace |
/profile | stats, col-stats | Column statistics and data quality |
/query | sql | Run SQL against the local database |
/exit | quit, q, bye | Exit the workspace |
Enrichment
Enrichment
Available after the chat session initializes the shared database.
| Command | Aliases | Description |
|---|---|---|
/validate | val, check-email | Validate a single email: /validate john@acme.com |
/find-email | findemail, get-email, email | Find a work email for a contact |
/find-mobile | findmobile, get-mobile, phone, mobile | Find a mobile number |
/enrich-company | company, enrichcompany | Company enrichment by domain or name |
/icp | icp-score | Score local contacts: /icp score [name] |
/role-finder | rf, find-role, findrole | People by role at a company |
/employees | emp, find-employees | Employees at a company |
/email-to-profile | e2p, profile-lookup | Email → B2B profile |
/personal-email | pe, find-personal-email | Personal emails from a B2B profile URL |
For batch file workflows, prefer natural language ("validate the email column") or CLI: lm enrich, lm validate -f …, lm find ….
Automation
Automation
| Command | Aliases | Description |
|---|---|---|
/recipe | recipes | List / work with recipes |
/watch | Hot-folder status / start / stop | |
/schedule | schedules, sched | List schedules or scheduling help |
/job-change | jc, jobchange | Job-change detection helpers |
/intent-signals | is, intentsignals, signals | Funding / tech / hiring signals |
Outbound and CRM
Outbound and CRM
| Command | Aliases | Description |
|---|---|---|
/instantly | int | Instantly campaigns and push |
/smartlead | sl | Smartlead campaigns and push |
/emailbison | bison | EmailBison campaigns and push |
/hubspot | connect · push · stats (secure browser connection) | |
/salesforce | connect · push · stats (secure browser connection) |
Outbound keys: lm config set instantlyApiKey (and Smartlead / EmailBison equivalents). CRM connections open a secure browser window.
Keyboard shortcuts
Open in-app with /shortcuts.
- Input
- System
- Leader key
| Keys | Action |
|---|---|
/ | Slash commands: type to filter |
@ | Reference a file or directory |
Tab | Autocomplete |
Shift+Tab | Cycle agent mode |
↑ / ↓ | Recall previous messages |
Shift+Enter | Newline in input |
Ctrl+J | Alternative newline |
Enter | Send message |
Tips
- Natural language first for multi-step CSV workflows; use slash commands for precise one-offs.
/clear-contextwhen result tables are crowding follow-up questions;/clearfor a full reset.- Credits: ask "How many credits?" or
/credits. Pricing:/pricingorlm pricing. - Non-interactive / CI: use
lm enrich,lm recipe,lm validateinstead of chat.
Next steps
lm Command Reference
Complete reference for the lm command installed by LeadMagic CLI, including chat, enrich, find, recipes, watch, schedules, integrations, and setup.
LeadMagic CLI Configuration
Configure LeadMagic CLI paths, project-local or global storage, themes, exports, and third-party outbound integrations.
Was this page helpful?
We value your feedback.