CLI commands
This reference describes CLI version 1.2.3. Each command on this page calls the Tomba API with your credentials, so it uses credits and counts toward your limits exactly like the endpoint it calls: see Credit costs and Rate limits. Commands with their own pages: tomba bulk, tomba chat, tomba serve, tomba skill, tomba login and tomba logout, and tomba version, tomba completion, and tomba update.
Global flags
Every command accepts these flags.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | The command's input: a domain, email address, URL, or text, depending on the command. |
--json | -j | bool | false | Print the response as JSON. |
--yaml | -y | bool | false | Print the response as YAML. Overrides --json. |
--csv | — | bool | false | Print the response's data as CSV. |
--output | -o | string | — | Also write the response as JSON to this file. For tomba bulk and tomba chat --file, the path of the output CSV. |
--key | -k | string | — | API key. See Pass credentials per command. |
--secret | -s | string | — | API secret. |
--no-color | — | bool | false | Disable colored output. Setting the NO_COLOR environment variable to any value does the same. |
--port | -p | int | 3000 | Port for tomba serve. Other commands ignore it. |
--verbose | — | bool | false | Accepted, but has no effect. |
--help | -h | — | — | Show help for any command. |
Output and errors
By default, commands print a formatted summary. --json prints the response as JSON, syntax-colored only when the output is a terminal. --yaml output always contains terminal color codes, even with --no-color, so use --json when you redirect or parse the output. --csv suits flat responses; nested objects aren't flattened.
The list subcommands of lead, leads-list, attribute, key, and flag number the rows in their text output but don't show IDs. Run them with --json to get the id values that get, update, and delete take.
When a request fails, or when search, finder, author, enrich, linkedin, verify, sources, or count has no result, the CLI prints a short message instead of the response, even with --json. API errors appear as error: <HTTP status>, status code: <code>, such as error: 429 Too Many Requests, status code: 429; the response body isn't shown. See Status codes. The exit status is 0 in all of these cases; only usage errors, such as an unknown or missing flag, exit with 1. In scripts, parse the output rather than the exit status, and add --no-color.
Aliases
| Alias | Runs |
|---|---|
a | tomba author |
ai | tomba chat |
b | tomba bulk |
c | tomba count |
e | tomba enrich |
l | tomba linkedin |
pf | tomba phone-finder |
pv | tomba phone-validator |
r | tomba reveal |
s | tomba finder |
sim | tomba similar |
sk | tomba skill |
t | tomba status |
tech | tomba technology |
upgrade | tomba update |
w | tomba whoami |
The help for tomba search and tomba sources lists the alias s, and the help for tomba verify lists t, but those aliases run tomba finder and tomba status.
tomba search
Find the email addresses Tomba has for a domain. Calls GET /v1/domain-search.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain to search. Required. |
--limit | — | int | 10 | Addresses per page: 10, 20, or 50. The CLI rejects other values. The value affects the cost. |
--page | — | int | 1 | Page of results. |
--department | — | string | — | Has no effect: the CLI doesn't send it to the API. |
Code
The text output shows the organization, then a table of addresses with name, position, department, and confidence score. The Free plan restricts --limit and --page; see Free plan limits.
tomba finder
Find a person's email address from their name and company domain. Calls GET /v1/email-finder.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Company domain. Required. |
--first | -f | string | — | First name. Use with --last. |
--last | -l | string | — | Last name. Use with --first. |
--full | — | string | — | Full name, instead of --first and --last. Ignored when both are set. |
--enrich-mobile | — | bool | false | Also return the person's phone number. Phone data changes the cost. |
Code
tomba author
Find the email address of an article's author. Calls GET /v1/author-finder.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | URL of the article. Required. |
Code
tomba enrich
Look up the person behind an email address: name, position, company, social profiles, and sources. Calls GET /v1/enrich. For separate person and company profiles, use tomba enrichment.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Email address. Required. |
--enrich-mobile | — | bool | false | Also return the person's phone number. Phone data changes the cost. |
Code
tomba enrichment
Get a person profile, a company profile, or both. Each subcommand takes its input with --target and has no other flags.
Code
tomba enrichment person
Get the profile of the person who owns an email address. Calls GET /v1/people/find.
Code
tomba enrichment company
Get the profile of the company behind a domain. Calls GET /v1/companies/find.
Code
tomba enrichment combined
Get the person and company profiles for an email address in one request. Calls GET /v1/combined/find.
Code
tomba verify
Check whether an email address is deliverable. Calls GET /v1/email-verifier. For what the status and result values mean, see Email verifier response.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Email address. Required. |
Code
For an address at a webmail or disposable email domain, the CLI prints a warning instead of the result, even with --json. The verification still runs and uses credits as usual.
tomba linkedin
Find the email address for a LinkedIn profile. Calls GET /v1/linkedin.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | LinkedIn profile URL. Required. |
--enrich-mobile | — | bool | false | Also return the person's phone number. Phone data changes the cost. |
Code
tomba sources
List the public web pages where Tomba found an email address. Calls GET /v1/email-sources.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Email address. Required. |
Code
tomba count
Count the email addresses Tomba has for a domain, by department and seniority. Calls GET /v1/email-count.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain. Required. |
Code
tomba status
Check whether a domain belongs to a webmail or disposable email provider. Calls GET /v1/domain-status.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain. Required. |
Code
tomba format
Get the email address patterns a domain uses, such as {first}.{last}. Calls GET /v1/email-format.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain. Required. |
Code
tomba location
Get a company's employee counts by location. Calls GET /v1/location.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain. Required. |
Code
tomba autocomplete
Suggest companies, with their domains and email counts, from part of a name. Calls GET /v1/domain-suggestions.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Company name or domain, complete or partial. Required. |
Code
tomba phone-finder
Find phone numbers from an email address, a domain, or a LinkedIn profile. Calls GET /v1/phone-finder.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--email | — | string | — | Email address to look up. |
--domain | — | string | — | Domain to look up. |
--linkedin | — | string | — | LinkedIn profile URL to look up. |
--full | — | bool | false | Return every phone number found instead of one. |
--target | -t | string | — | Used as --email when none of the three inputs is set. |
Pass one input. If you pass more than one, the CLI sends only the first of --email, --domain, and --linkedin. The input type affects the cost.
Code
tomba phone-validator
Check whether a phone number is valid, and get its formats, line type, and carrier. Calls GET /v1/phone-validator.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--phone | — | string | — | Number to validate, in international format or, with --country-code, in local format. Required. |
--country-code | — | string | — | Two-letter country code for parsing a local number, such as US. |
Code
tomba reveal
Search for companies with a natural-language query or with filters. Calls POST /v1/reveal/search.
Code
Use --query or filter flags, not both: the API rejects a request that has both. Each filter flag takes a comma-separated list, or you can repeat the flag; the CLI sends the values as include filters. Accepted values are listed in Search Companies.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--query | -q | string | — | Description of the companies to find, such as Fintech companies in France. |
--page | — | int | 1 | Page of results. |
--country | — | strings | — | Country codes (ISO 3166-1 alpha-2), such as US,GB. |
--state | — | strings | — | States or regions. |
--city | — | strings | — | Cities. |
--industry | — | strings | — | Industries. |
--size | — | strings | — | Employee-count ranges, such as 51-200. |
--type | — | strings | — | Company types. |
--keywords | — | strings | — | Keywords. |
--founded | — | strings | — | Founding-year ranges. |
--technologies | — | strings | — | Technologies the company uses. |
--similar | — | strings | — | Domains of companies to find look-alikes of. |
--revenue | — | strings | — | Revenue ranges. |
--sic | — | strings | — | SIC codes. |
--naics | — | strings | — | NAICS codes. |
Code
On the Free plan, company search returns only the first page and ignores some filters; see Free plan limits.
tomba similar
Find companies similar to a domain. Calls GET /v1/similar.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain. Required. |
Code
tomba technology
List the technologies detected on a domain's website. Calls GET /v1/technology.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--target | -t | string | — | Domain. Required. |
Code
tomba flag
Report data from Tomba that's wrong, such as an address that bounced, and list your reports. Some confirmed reports return a credit; see Refunds for incorrect data.
tomba flag create
Report an item. Calls POST /v1/flag.
Code
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--type | — | string | — | Kind of item: email, organization, phone, author_url, or website. Required. |
--value | — | string | — | The item: an email address, domain, phone number, or URL. Required. |
--reason | — | string | — | Why it's wrong. The valid reasons depend on --type; tomba flag create --help lists them. Required. |
--comment | — | string | — | Optional details. |
Code
tomba flag list
List your reports and their review status. Calls GET /v1/flag. The text output leaves the reported item blank; use --json.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--page | — | int | 1 | Page of results. |
--limit | — | int | 10 | Reports per page. |
Code
tomba lead
Manage the leads saved in your account. Get lead IDs from tomba lead list --json.
Code
tomba lead list
List leads, newest first. Calls GET /v1/leads.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--page | — | int | 1 | Page of results. |
--limit | — | int | 10 | Leads per page. |
--domain | — | string | — | Has no effect: the API doesn't filter leads by domain. |
tomba lead get
Get one lead. Calls GET /v1/leads/{id}. Requires --id.
tomba lead create
Save a lead. Calls POST /v1/leads.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--email | — | string | — | Email address. Required. |
--list-id | — | string | — | Lead list ID. Required by the CLI, but not applied: see below. |
--first-name | — | string | — | First name. |
--last-name | — | string | — | Last name. |
The CLI sends --list-id as a string, which the API doesn't accept as a list ID, so the lead is saved without a list. To add a lead to a list, use the dashboard or POST /v1/leads with a numeric list_id.
Code
tomba lead update
Change a lead's email address or name. Calls PUT /v1/leads/{id}.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--id | — | string | — | Lead ID. Required. |
--email | — | string | — | New email address. |
--first-name | — | string | — | New first name. |
--last-name | — | string | — | New last name. |
tomba lead delete
Delete a lead. Calls DELETE /v1/leads/{id}. Requires --id.
tomba leads-list
Manage lead lists. Get list IDs from tomba leads-list list --json.
Code
tomba leads-list list
List your lead lists. Calls GET /v1/leads_lists. Takes no flags.
tomba leads-list get
Get one list. Calls GET /v1/leads_lists/{id}. Requires --id.
tomba leads-list create
Create a list. Calls POST /v1/leads_lists. Requires --name.
Code
tomba leads-list update
Rename a list. Calls PUT /v1/leads_lists/{id}. Requires --id and --name.
tomba leads-list delete
Delete a list. Calls DELETE /v1/leads_lists/{id}. Requires --id.
tomba attribute
Manage custom lead attributes. Get attribute IDs from tomba attribute list --json.
Code
tomba attribute list
List your custom attributes. Calls GET /v1/attributes. Takes no flags.
tomba attribute get
Get one attribute. Calls GET /v1/attributes/{id}. Requires --id.
tomba attribute create
Create an attribute. Calls POST /v1/attributes. Requires --name and --type; the accepted types are listed in Create a Lead Attribute.
Code
tomba attribute update
Calls PUT /v1/attributes/{id} with --id and --name. The API also requires the attribute's type, which the CLI doesn't send, so this subcommand fails with error: 422 Unprocessable Entity. Rename attributes in the dashboard or with the API.
tomba attribute delete
Delete an attribute. Calls DELETE /v1/attributes/{id}. Requires --id.
tomba key
Manage the API keys of your workspace. For how keys expire and how to replace them, see Key expiry and Rotate keys. Get key IDs from tomba key list --json.
Code
tomba key list
List the keys of every member of your workspace. Calls GET /v1/keys. The text output shortens each key; --json shows full values, IDs, and expiry dates.
tomba key get
Get one key. Calls GET /v1/keys/{id}. Requires --id.
tomba key create
Create a key with a generated name and the default lifetime. Calls POST /v1/keys. The text output shows only the new key's ID; run tomba key create --json to get the key itself, in data.message. The command takes no flags; to set a name or a shorter lifetime, use the dashboard or the API.
tomba key delete
Delete a key. Calls DELETE /v1/keys/{id}. Requires --id. Requests that use the key fail from then on, including the CLI's own if you logged in with that key.
tomba key reset
Calls PUT /v1/keys/{id}/reset, a route the API doesn't have, so it fails with error: 404 Not Found. To rotate a key, use the dashboard or PUT /v1/keys/{id}.
tomba whoami
Show the account the CLI is signed in to. Calls GET /v1/me.
Code
The text output shows your account details and plan name. --json adds your search and verification allowances and usage, in requests.domains and requests.verifications (Check usage), and your API secret, in secret_token. Don't share --json or --output output from this command.
tomba usage
Show your daily usage. Calls GET /v1/usage.
Code
The CLI keeps only the verification counts from the response; search and other counts show as 0. For your balances, use tomba whoami --json, the Usage page of the dashboard, or GET /v1/usage.
tomba logs
Show your 20 most recent logged requests, newest first. Calls GET /v1/logs. Only charged lookups are logged, including repeats charged 0; see Duplicate requests. The text output lists each request's method, URI, type, and date; --json adds its cost.
Code
The command takes no paging flags. To page through older entries, call GET /v1/logs with page and limit.