CLI Tools
Email checker for CLI tools. Claude Code, Codex, Gemini CLI integration guides.
AI-powered CLI tools can directly call EmailVerify to verify emails during development, debugging, and automation workflows.
Supported CLI Tools
Claude Code
Anthropic's CLI programming assistant
Gemini CLI
Google's AI assistant for the terminal
Codex CLI
OpenAI's code generation tool
OpenCode
Open-source AI coding assistant
Droid
Terminal AI assistant for developers
EmailVerify CLI
In addition to AI-powered tools, EmailVerify provides its own CLI for direct verification:
Installation
npm install -g @emailverify/cliConfiguration
bv config set api-key YOUR_API_KEYOr use environment variable:
export EMAILVERIFY_API_KEY=your-api-keyBasic Commands
# Verify single email
bv verify user@example.com
# JSON output
bv verify user@example.com --json
# Verify multiple emails
bv verify user1@example.com user2@test.com
# Verify from file
bv verify --file emails.txt
# Check credits
bv creditsOutput Formats
Human-readable (default):
Email: user@example.com
Status: valid
Score: 0.95
Deliverable: yes
Disposable: no
Role: noJSON output:
bv verify user@example.com --json{
"email": "user@example.com",
"status": "valid",
"result": {
"deliverable": true,
"disposable": false,
"role": false
},
"score": 0.95
}Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success, email is valid |
| 1 | Email is invalid |
| 2 | Email status unknown |
| 3 | API error |
| 4 | Configuration error |
Use in scripts:
if bv verify --quiet user@example.com; then
echo "Email is valid"
else
echo "Email is invalid or verification failed"
fiShell Integration
Add these functions to your .bashrc or .zshrc:
# Quick email verification
vmail() {
bv verify "$1" --color
}
# Verify and copy result
vmail-copy() {
bv verify "$1" --json | pbcopy
echo "Result copied to clipboard"
}
# Check if email is valid (returns 0 or 1)
is-valid-email() {
bv verify "$1" --quiet &>/dev/null
}Piping and Automation
# Pipe from stdin
echo "test@example.com" | bv verify --stdin
# Pipe to other commands
bv verify test@example.com --json | jq '.score'
# Extract and verify emails from a file
grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' document.txt | \
xargs -I {} bv verify {} --quiet