Official command-line interface for the Data Legion API. Enrich and search person and company data from the terminal. Designed for both human users and AI agents.
Use this file to discover all available pages before exploring further.
The official Data Legion CLI lets you enrich and search person and company data directly from the terminal. It’s fully async, outputs JSON to stdout (logs to stderr), and works as both a human-friendly tool and an AI agent backend. AI coding agents like Claude Code, Cursor, OpenClaw, Cline, and Aider can call it directly as a shell tool.
Look up a person by email, phone, social URL, name, or other identifiers.
# By emaildatalegion-cli person enrich --email jane.doe@example.com# By phonedatalegion-cli person enrich --phone "+15551234567"# By social URLdatalegion-cli person enrich --social-url https://linkedin.com/in/janedoe# By name and companydatalegion-cli person enrich --name "Jane Doe" --company "Acme Corp"# By first/last name with location contextdatalegion-cli person enrich --first-name Jane --last-name Doe \ --company Acme --city "San Francisco" --state california# Return multiple matches with confidence scoresdatalegion-cli person enrich --name "Jane Doe" --company Acme \ --multiple --min-confidence high --limit 5# Return specific fields onlydatalegion-cli person enrich --email jane@example.com \ --fields full_name,job_title,company_name# Read input from stdinecho '{"email": "jane@example.com"}' | datalegion-cli person enrich --stdin
Look up a company by domain, name, ticker, social URL, or other identifiers.
# By domaindatalegion-cli company enrich --domain google.com# By tickerdatalegion-cli company enrich --ticker GOOGL# By namedatalegion-cli company enrich --name "Alphabet Inc"# By name with industry qualifierdatalegion-cli company enrich --name "Mercury" --industry "financial services"# Return multiple matchesdatalegion-cli company enrich --name Google --multiple --limit 5
The CLI is designed for AI agent workflows. Claude Code, Cursor, OpenClaw, Cline, Aider, 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.
# Pipe to jqdatalegion-cli person enrich --email jane@example.com | jq '.full_name'# Pipe from stdinecho '{"email": "jane@example.com"}' | datalegion-cli person enrich --stdin# Quiet mode (suppress all non-JSON output)datalegion-cli person enrich --email jane@example.com --quiet
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.