Apollo CLI Overview

Access Apollo's full API directly from your terminal. Search and enrich people and companies, manage CRM data, and drive sequences — all from a single command line tool.

The Apollo CLI gives you shell-native access to Apollo's full API. Search 275M+ contacts, enrich people and companies, manage CRM records, and run sequences — all without leaving your terminal. It's pipeable with jq, supports multiple output formats, and works natively with AI coding agents like Claude Code and Cursor.

Check out the following sections to install the CLI, authenticate your account, and start running commands.


Prerequisites

Before you install the Apollo CLI, make sure you have:

  • macOS or Linux (Windows isn't supported yet).
  • An active Apollo.io account.

Install the Apollo CLI

You can install the Apollo CLI in three ways: via Homebrew, a prebuilt binary, or from source.

Option 1: Homebrew (Recommended)

To install via Homebrew:

brew install apolloio/apollo-io-cli/apollo-io-cli

Or tap once, then install by short name:

brew tap apolloio/apollo-io-cli
brew install apollo-io-cli

Upgrade anytime with brew upgrade apollo-io-cli.

Option 2: Prebuilt Binary

No Node.js required. Download the binary for your platform from the GitHub releases page:

PlatformFile
macOS (Apple Silicon)apollo-macos-arm64
macOS (Intel)apollo-macos-x64
Linux (x64)apollo-linux-x64

To set up the binary:

  1. Make the file executable and move it to your PATH.
chmod +x apollo-macos-arm64
mv apollo-macos-arm64 /usr/local/bin/apollo
xattr -d com.apple.quarantine /usr/local/bin/apollo

You have now installed the Apollo CLI.

Each release also includes a GPG signature file. To verify the binary:

gpg --import release-signing-key.asc
gpg --verify apollo-macos-arm64.asc apollo-macos-arm64

Option 3: From Source

Requires Node 18 or above.

git clone https://github.com/apolloio/apollo-io-cli.git
cd apollo-io-cli
npm install
npm link

Authenticate

The CLI uses OAuth 2.0 — no API key needed. Log in once and your token refreshes automatically.

To authenticate:

  1. Run the login command. Your browser opens to authorize the connection and saves your credentials to ~/.config/apollo/credentials.
apollo auth login
  1. Confirm you're logged in.
apollo auth whoami

You have now authenticated the Apollo CLI.

To log out and revoke your credentials at any time, run apollo auth logout.

Check Yourself Before You Wreck Yourself Run apollo auth whoami before any other command. If authentication fails, resolve it first — don't work around it.


Available Commands

The Apollo CLI is organized into command groups that map to core areas of the Apollo platform.

People

CommandWhat It Does
apollo people searchSearch Apollo's database by title, city, seniority, department, technology, domain, industry, and more.
apollo people enrichEnrich a single person by email, LinkedIn URL, or name and company.
apollo people bulk-enrichEnrich multiple people by email in one request.
apollo people emailRequest an email address by Apollo person ID.
apollo people employeesFind employees at a company by domain, name, or LinkedIn URL.

Companies

CommandWhat It Does
apollo companies searchSearch by industry, employee range, location, technology, revenue, funding, and hiring signals.
apollo companies enrichEnrich a single company by domain or name.
apollo companies bulk-enrichEnrich multiple companies by domain.
apollo companies getGet full details by Apollo organization ID.
apollo companies jobsGet active job postings for a company.

News

CommandWhat It Does
apollo news searchFind news articles related to a company.

Contacts

CommandWhat It Does
apollo contacts searchSearch your CRM contacts.
apollo contacts createCreate a new contact.
apollo contacts updateUpdate an existing contact.
apollo contacts bulk-createCreate multiple contacts from a JSON file.

Accounts

CommandWhat It Does
apollo accounts createCreate a new account.
apollo accounts updateUpdate an existing account.
apollo accounts bulk-createCreate multiple accounts from a JSON file.

Deals

CommandWhat It Does
apollo deals createCreate a new deal.
apollo deals searchSearch your deals.
apollo deals showGet details for a specific deal.

Sequences

CommandWhat It Does
apollo sequences searchSearch sequences by name.
apollo email-accounts listList all linked sending inboxes.
apollo sequences add-contactsEnroll contacts into a sequence.
apollo sequences remove-contactsRemove or stop contacts from a sequence.

This One's for Real apollo sequences add-contacts sends real emails to real people. Always confirm the sequence name, sender inbox, and contact list before running this command.

Calls

CommandWhat It Does
apollo calls logLog a phone call record.
apollo calls searchSearch call records.
apollo calls updateUpdate a call record.

Tasks

CommandWhat It Does
apollo tasks createCreate a new task.
apollo tasks bulk-createCreate multiple tasks from a JSON file.
apollo tasks searchSearch tasks.

Users and Credits

CommandWhat It Does
apollo users profileView your profile. Add --credits to include credit usage.
apollo users searchFind teammates by name, email, or title.
apollo usage creditsView credit usage stats across all credit types.

Analytics

CommandWhat It Does
apollo analytics reportGenerate an analytics report. Pass the full request body as a JSON file via --payload.

Output Formats

Every command accepts --format (default: json):

FormatFlagBest For
JSON--format jsonPiping to jq, scripts, and agents.
JSONL--format jsonlStreaming one record per line.
CSV--format csvSpreadsheets and bulk exports.
YAML--format yamlHuman-readable inspection.
Table--format tableBrowsing results in the terminal.
apollo people search --domain stripe.com | jq '.people[].email'
apollo companies search --industry fintech | jq '.organizations[].name'

Pagination

Use these flags to page through large result sets:

  • --per-page <n> — Results per page (default: 10).
  • --page <n> — Page number (default: 1).
  • --sort-by <field> — Sort field (varies by command).
  • --sort-asc — Sort in ascending order (default is descending).
apollo people search --title "VP of Engineering" --per-page 25 --page 2

Use the Apollo CLI with AI Agents

The Apollo CLI works natively with AI coding agents. A Claude Code skill is available that gives the agent full knowledge of every command, its options, JSON response shapes, and jq examples.

Set Up with Claude Code

Global install (available in every project on your machine):

mkdir -p ~/.claude/skills/apollo-cli
curl -fsSL https://raw.githubusercontent.com/apolloio/apollo-io-cli/main/.claude/skills/apollo-cli/SKILL.md \
  -o ~/.claude/skills/apollo-cli/SKILL.md

Per-project install (scoped to one repo):

mkdir -p .claude/skills/apollo-cli
curl -fsSL https://raw.githubusercontent.com/apolloio/apollo-io-cli/main/.claude/skills/apollo-cli/SKILL.md \
  -o .claude/skills/apollo-cli/SKILL.md

Claude Code automatically loads any skill file it finds — global or local. You can also invoke it manually with /apollo-cli.

Set Up with Cursor or Other Agents

Point your project instructions at the raw skill URL directly — no file copying required:

https://raw.githubusercontent.com/apolloio/apollo-io-cli/main/.claude/skills/apollo-cli/SKILL.md

Add this URL to your AGENTS.md or project instructions and any agent in any repo can use it. It always reflects the latest version.


Best Practices

  • Authenticate first — Run apollo auth whoami before anything else. Surface errors to the user — don't work around them.
  • Use JSON and jq together--format json is the most reliable format for field extraction in scripts and agents.
  • Don't guess IDs — Always call apollo email-accounts list to get a verified inbox ID before enrolling contacts in a sequence.
  • Treat sequence enrollment as a write actionsequences add-contacts sends real emails. Confirm the sequence, sender, and contact list first.
  • Page through large result sets — The default is ten results per page. Use --per-page and --page for larger searches.

Next Steps

Check out the following resources to keep building with Apollo:

ResourceDescription
APIs OverviewGet familiar with Apollo's REST API — the same endpoints the CLI uses under the hood.
Apollo MCP ServerUse Apollo directly inside Claude without leaving your conversation.
Search for PeopleLearn how people search works and what filters are available.
Enrich People DataUnderstand how enrichment works, what data it returns, and how credits are consumed.
Apollo API FAQsFind answers to the most common questions about the Apollo API.