Commands
Count a TAM
Reads the website, poses the segments and counts them, then prints the TAM with its segments, what was left out and the question that would sharpen it. One run takes 20 to 60 seconds.
CMD
npx rivolt-tam <domain> [--json] [--lang fr]Input
domainRequired | stringThe company website. A bare domain, acme.com. https:// and www. are stripped. |
--jsonOptional | flagPrint the raw JSON result instead of the readable view. For scripts and agents. |
--langOptional | en | frLanguage of the labels and notes. Default en. |
Example
Terminal
npx -y rivolt-tam acme.com --jsonJSON
{
"domain": "acme.com",
"tam": 12400,
"companies": 12400,
"contacts_per_company": 1,
"pages_read": 14,
"niche": "…",
"geography": "…",
"clients_seen": ["…"],
"clients_in_registry": ["…"],
"segments": [
{ "label": "…", "filter": "62.01Z, headcount bands 11, 12", "companies": 8200, "note": "" }
],
"left_out": "…",
"next_question": "…",
"sources": [{ "label": "Sirene", "url": "https://…" }],
"seconds": 38
}The full field list is on the Output page.
Behaviour
- While it counts, a spinner on stderr names the current stage. stdout only ever carries the result, so --json pipes cleanly.
- Several companies: run them one after the other, not in parallel.
- Exit code 0 on success, 1 when the count fails, 2 when the argument is not a website.