Vainu CLI

Vainu CLI makes using Vainu Data and APIs easy for humans and AI agents.

Vainu CLI — one command, straight to the Vainu API Diagram showing the flow from a terminal command through the Vainu API to company data, with a terminal window rendering the example vainu organizations-async CLI command. >_ YOUR TERMINAL vainu CLI 1 COMMAND { } REST OVER HTTPS Vainu API JSON REPLY READY TO USE Company data zsh — vainu-cli $ vainu organizations-async --payload '{"query": {"?GTE": {"financial_data.revenue": 1000000}}, "database": "FI"}' 🖥️ Built for your terminal 🤖 Agent-ready No SDK. No boilerplate.

Install the Vainu CLI

macOS and Linux

curl -LsSf https://raw.githubusercontent.com/vainu-app/vainu-cli/main/scripts/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/vainu-app/vainu-cli/main/scripts/install.ps1 | iex

Run Your First Query Using Vainu CLI

Open a terminal window. Login and run your first query:

vainu login
vainu organizations --payload '{"query": {"?GTE": {"financial_data.revenue": 1000000}}, "fields": ["business_id", "name", "financial_data.revenue"], "database": "FI"}'

Verify your setup

Run vainu doctor. When the install and credentials are working, the output ends with All checks passed.

vainu doctor

Vainu CLI Commands

Organizations API (v3)

CommandEndpointDocumentationRecipes
vainu organizationsPOST /v3/organizations/Filtering Company Data, Data Reference, Response Formats, API referenceSimple Filtering, Filter Contacts, Technology Search, Geo Sphere, Track Modifications
vainu organizations-asyncPOST /v3/organizations/async/Asynchronous Requests, API referenceGet All Companies in a Vainu List
vainu organizations-countPOST /v3/organizations/count/Count Organizations API, API referenceAmount of Companies Matching the Query
vainu organizations-searchPOST /v3/organizations/search/Search Organizations API, API referenceSimple Fuzzy Search API
vainu fields organizationsGET /v3/organizations_fields/Data Reference

Lists, signals, and agents

CommandEndpointDocumentationRecipes
vainu listsGET /v3/lists/organizations/List Management APIs, API referenceList Management Examples
vainu lists static/v3/lists/organizations/static/Create, Add, RemoveList Management Examples
vainu lists dynamic/v3/lists/organizations/dynamic/Create, UpdateList Management Examples
vainu signals-newsPOST /v3/signals/news/Signals API (BETA)
vainu signals-data-changesPOST /v3/signals/data-changes/Signals API (BETA)
vainu enrichment-agentPOST /v3/enrichment_agent/Run Enrichment Agent for One Company

Prerequisites

  • Python 3.11 or later. The installer installs Python for you if it is missing.
  • A Vainu account with API access.
  • Credentials for the commands you plan to run. A static API key does not cover every command — see Authentication methods below.
  • Access to a terminal: Terminal on macOS, a shell on Linux, or PowerShell on Windows.