# Command-line tool Integration for Email Validation

URL: https://email-validation.org/integrations/cli/
Updated: 2026-11-30

> Documentation index: https://email-validation.org/llms.txt

The email-validation command checks one address, sends a whole CSV file or list of addresses as one bulk list and saves the results, and shows your balance, from a terminal or a script. It is free, MIT-licensed and installs from npm.

[Read the full setup guide](https://email-validation.org/docs/guides/cli/) [Get an API key](https://email-validation.org/signin/)

- Status: Setup guide
- One command for single checks, bulk lists and your balance

**Terminal** Install, set the key, check

Shell

```bash
npm install -g @email-validation/cli
read -rs EV_API_KEY && export EV_API_KEY   # paste the key, then Enter
email-validation validate accepted@sandbox.email-validation.org
```

## At a glance.

- **Status**: **Setup guide.** Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
- **For**: Developers, data and operations people who want to check an address or clean a list from a terminal, in a shell script or in a scheduled job, without writing code against the API.
- **You need**: Node.js 24 or later and an [API key](https://email-validation.org/app/api-keys/) made for it, with a [daily credit cap](https://email-validation.org/docs/authentication/#limits). Add the Bulk lists permission to send files.
- **Costs**: 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org and, in a bulk list, repeats of an address (charged once).
- **Full guide**: [Read the full setup guide](https://email-validation.org/docs/guides/cli/)

## Typical uses.

- **Check one address**: validate prints the status, the reason, the action and, for a likely typo, the address it may have meant. Add --json for the API’s own answer.
- **Clean a whole file**: bulk sends a CSV file or one address per line (up to 100 MB) as one bulk list, shows its progress and saves the results CSV beside the file.
- **Script it**: Each outcome has its own exit code (a refused key, no credits, still rate limited), so a script or a scheduled job can tell what happened without reading the text.

## Set it up. 4 steps.

The short version of the [full setup guide](https://email-validation.org/docs/guides/cli/), which stays the reference when a step does not match what you see.

1. **Install it**: Run `npm install -g @email-validation/cli`. It needs Node.js 24 or later.
2. **Set your key**: Create a key on the [API keys page](https://email-validation.org/app/api-keys/) and set it as `EV_API_KEY` without typing it into a command (the guide shows the line for bash, zsh and PowerShell), or keep it in a file and pass `--api-key-file`.
3. **Check a test address**: Run `email-validation validate accepted@sandbox.email-validation.org`: the answer is `valid`, reason `accepted`, and it costs nothing.
4. **Send a file**: Run `email-validation bulk list.csv`. The results are saved as `list.results.csv`.

## Good to know.

- Ctrl-C stops the waiting, not the bulk job: the tool prints the command that picks the same job up again. Until the results are saved, running the same command on the same file follows the job it already created instead of starting a second one (within the 30 days a list is kept).
- There is no flag for the key itself, because a key typed in a command is saved in your shell history. The tool never prints the key, and its progress lines show job ids and counts, never addresses.
- For [EU data residency](https://email-validation.org/docs/eu-data-residency/), add `--region eu` to send the requests to `https://api-eu.email-validation.org`: the same key and credits work on both.
- Try it first with `accepted@sandbox.email-validation.org` and the other [test addresses](https://email-validation.org/docs/test-addresses/): each returns the result its name says and costs nothing.

## Related

- [The full Command-line tool setup guide](https://email-validation.org/docs/guides/cli/)
- [Using the tool on Windows](https://email-validation.org/docs/guides/cli/#windows)
- [How bulk lists work](https://email-validation.org/docs/bulk/)
- [The JavaScript client library the tool is built on](https://email-validation.org/docs/sdks/javascript/)
- [Django integration](https://email-validation.org/integrations/django/)
- [Laravel integration](https://email-validation.org/integrations/laravel/)
- [Postman integration](https://email-validation.org/integrations/postman/)
- [Rails integration](https://email-validation.org/integrations/rails/)
- [All integrations](https://email-validation.org/integrations/)
