Installation
Authentication
Set your API key using the built-in encrypted config store or an environment variable.Person
Enrichment
Look up a person by email, phone, social URL, name, or other identifiers.| Flag | Description |
|---|---|
--email / -e | Email address |
--phone / -p | Phone number |
--social-url | Social profile URL (e.g. LinkedIn) |
--linkedin-id | LinkedIn numeric ID |
--legion-id | Legion ID |
--email-hash | SHA-256, SHA-1, or MD5 email hash |
--name / -n | Full name |
--first-name | First name |
--last-name | Last name |
--company / -c | Company name or domain |
--title | Job title |
--city | City |
--state | State |
--country | Country |
--school | School name |
--birth-date | Birth date (YYYY-MM-DD) |
--address | Full address string |
--postal-code | Postal/ZIP code |
--multiple / -m | Return multiple matches |
--limit / -l | Max results (default: 2) |
--min-confidence | Minimum confidence: high, moderate, low |
--fields | Comma-separated fields to include |
--exclude | Comma-separated fields to exclude |
--required | Comma-separated required fields |
--titlecase | Title-case text fields in response |
--stdin | Read JSON payload from stdin |
Search
Query people using SQL syntax. The query is a positional argument.| Flag | Description |
|---|---|
--limit / -l | Max results (default: 10) |
--fields | Comma-separated fields to include |
--exclude | Comma-separated fields to exclude |
--titlecase | Title-case text fields in response |
Company
Enrichment
Look up a company by domain, name, ticker, social URL, or other identifiers.| Flag | Description |
|---|---|
--domain / -d | Company domain |
--name / -n | Company name |
--ticker / -t | Stock ticker symbol |
--social-url | Social profile URL (e.g. LinkedIn company page) |
--linkedin-id | LinkedIn numeric ID |
--legion-id | Legion ID |
--industry | Industry (narrows name matching) |
--multiple / -m | Return multiple matches |
--limit / -l | Max results (default: 2) |
--min-confidence | Minimum confidence: high, moderate, low |
--fields | Comma-separated fields to include |
--exclude | Comma-separated fields to exclude |
--required | Comma-separated required fields |
--titlecase | Title-case text fields in response |
--stdin | Read JSON payload from stdin |
Search
Query companies using SQL syntax. The query is a positional argument.| Flag | Description |
|---|---|
--limit / -l | Max results (default: 10) |
--fields | Comma-separated fields to include |
--exclude | Comma-separated fields to exclude |
--titlecase | Title-case text fields in response |
Utilities
Utility commands are free and don’t consume credits.Clean Fields
Normalize emails, phones, names, domains, and other fields. Pass a JSON payload as a positional argument or via stdin.| Flag | Description |
|---|---|
--stdin | Read JSON fields from stdin |
--region | Default phone region (default: US) |
Hash Email
Generate privacy-preserving email hashes (SHA-256, SHA-1, MD5). The email is a positional argument.Validate
Check data format and get cleaning suggestions before enrichment.| Flag | Description |
|---|---|
--email | Email to validate |
--phone | Phone to validate |
--name | Name to validate |
--domain | Domain to validate |
--social-url | Social URL to validate |
--company | Company name to validate |
--ticker | Ticker symbol to validate |
--stdin | Read JSON from stdin |
Account
Check Credit Balance
View Usage History
Agent Integration
The CLI is designed for AI agent workflows. Claude Code, Cursor, and other AI coding agents can invoke it as a shell tool — no MCP configuration needed. All structured output goes to stdout as JSON, while logs and progress indicators go to stderr, so agents and scripts can parse results directly.The CLI and MCP server are complementary. Use MCP for native tool-call integration with AI assistants. Use the CLI when you need shell access, scripting, or want a zero-config option that any agent can call via
bash.Global Flags
| Flag | Description |
|---|---|
--verbose / -v | Enable debug logging |
--quiet / -q | Suppress all log output |
--help | Display command help |